configure revision 5a112b11
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xorg-server 21.1.3.
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='21.1.3'
655PACKAGE_STRING='xorg-server 21.1.3'
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
701RELEASE_DATE
702SYSCONFDIR
703PROJECTROOT
704XEPHYR_FALSE
705XEPHYR_TRUE
706KDRIVE_LIBS
707KDRIVE_LOCAL_LIBS
708KDRIVE_MAIN_LIB
709KDRIVE_PURE_LIBS
710KDRIVE_CFLAGS
711KDRIVE_PURE_INCS
712KDRIVE_INCS
713XEPHYR_INCS
714XEPHYR_LIBS
715XEPHYR_CFLAGS
716KDRIVE_FALSE
717KDRIVE_TRUE
718STANDALONE_XPBPROXY_FALSE
719STANDALONE_XPBPROXY_TRUE
720XQUARTZ_SPARKLE_FALSE
721XQUARTZ_SPARKLE_TRUE
722XQUARTZ_FALSE
723XQUARTZ_TRUE
724am__fastdepOBJC_FALSE
725am__fastdepOBJC_TRUE
726OBJCDEPMODE
727OBJCFLAGS
728OBJCLINK
729OBJCCLD
730OBJC
731PSEUDORAMIX_FALSE
732PSEUDORAMIX_TRUE
733XPBPROXY_LIBS
734XPBPROXY_CFLAGS
735XQUARTZ_LIBS
736XWIN_WINDOWS_DRI_FALSE
737XWIN_WINDOWS_DRI_TRUE
738XWIN_GLX_WINDOWS_FALSE
739XWIN_GLX_WINDOWS_TRUE
740XWIN_FALSE
741XWIN_TRUE
742KHRONOS_SPEC_DIR
743KHRONOS_OPENGL_REGISTRY_LIBS
744KHRONOS_OPENGL_REGISTRY_CFLAGS
745PYTHON3
746XWIN_SYS_LIBS
747XWIN_SERVER_NAME
748XWIN_LIBS
749WINDOWSDRI_LIBS
750WINDOWSDRI_CFLAGS
751XWINMODULES_LIBS
752XWINMODULES_CFLAGS
753WINDRES
754GLAMOR_EGL_FALSE
755GLAMOR_EGL_TRUE
756GBM_LIBS
757GBM_CFLAGS
758GLAMOR_LIBS
759GLAMOR_CFLAGS
760GLAMOR_FALSE
761GLAMOR_TRUE
762XORG_DRIVER_INPUT_INPUTTEST_FALSE
763XORG_DRIVER_INPUT_INPUTTEST_TRUE
764XORG_DRIVER_MODESETTING_FALSE
765XORG_DRIVER_MODESETTING_TRUE
766XORG_BUS_PLATFORM_FALSE
767XORG_BUS_PLATFORM_TRUE
768DGA_FALSE
769DGA_TRUE
770SOLARIS_VT_FALSE
771SOLARIS_VT_TRUE
772LNXAPM_FALSE
773LNXAPM_TRUE
774LNXACPI_FALSE
775LNXACPI_TRUE
776XORG_BUS_SPARC_FALSE
777XORG_BUS_SPARC_TRUE
778XORG_BUS_BSDPCI_FALSE
779XORG_BUS_BSDPCI_TRUE
780XORG_BUS_PCI_FALSE
781XORG_BUS_PCI_TRUE
782XORG_FALSE
783XORG_TRUE
784abi_extension
785abi_xinput
786abi_videodrv
787abi_ansic
788logdir
789sysconfigdir
790extdir
791sdkdir
792driverdir
793moduledir
794DEFAULT_XDG_DATA_HOME_LOGDIR
795DEFAULT_XDG_DATA_HOME
796DEFAULT_LOGPREFIX
797DEFAULT_LOGDIR
798DEFAULT_LIBRARY_PATH
799DEFAULT_MODULE_PATH
800XCONFIGDIR
801XF86CONFIGFILE
802XCONFIGFILE
803XF86CONFIGDIR
804XORG_CFLAGS
805XORG_OS_SUBDIR
806XORG_INCS
807XORG_SYS_LIBS
808XORG_LIBS
809XORG_MODULES_LIBS
810XORG_MODULES_CFLAGS
811DGA_LIBS
812DGA_CFLAGS
813SOLARIS_INOUT_ARCH
814PCI_TXT_IDS_PATH
815PCIACCESS_LIBS
816PCIACCESS_CFLAGS
817symbol_visibility
818LIBXCVT_LIBS
819LIBXCVT_CFLAGS
820XNEST_SYS_LIBS
821XNEST_LIBS
822XNEST_FALSE
823XNEST_TRUE
824XNESTMODULES_LIBS
825XNESTMODULES_CFLAGS
826XVFB_SYS_LIBS
827XVFB_LIBS
828XVFB_FALSE
829XVFB_TRUE
830NO_UNDEFINED_FALSE
831NO_UNDEFINED_TRUE
832CYGWIN_FALSE
833CYGWIN_TRUE
834XORG_DRIVER_LIBS
835LD_NO_UNDEFINED_FLAG
836LD_EXPORT_SYMBOLS_FLAG
837UTILS_SYS_LIBS
838XSERVER_SYS_LIBS
839XSERVER_LIBS
840HAVE_LIBUNWIND_FALSE
841HAVE_LIBUNWIND_TRUE
842LIBUNWIND_LIBS
843LIBUNWIND_CFLAGS
844XSERVERLIBS_LIBS
845XSERVERLIBS_CFLAGS
846XSERVERCFLAGS_LIBS
847XSERVERCFLAGS_CFLAGS
848SHA1_CFLAGS
849SHA1_LIBS
850OPENSSL_LIBS
851OPENSSL_CFLAGS
852LIBSHA1_LIBS
853LIBSHA1_CFLAGS
854MAIN_LIB
855OS_LIB
856DIX_LIB
857DEBUG_FALSE
858DEBUG_TRUE
859VENDOR_NAME_SHORT
860DRI_DRIVER_PATH
861BASE_FONT_PATH
862SERVER_MISC_CONFIG_PATH
863COMPILEDDEFAULTFONTPATH
864XF86VIDMODE_FALSE
865XF86VIDMODE_TRUE
866XDMAUTH_FALSE
867XDMAUTH_TRUE
868XDMCP_FALSE
869XDMCP_TRUE
870XDMCP_LIBS
871XDMCP_CFLAGS
872XKB_DFLT_OPTIONS
873XKB_DFLT_VARIANT
874XKB_DFLT_LAYOUT
875XKB_DFLT_MODEL
876XKB_DFLT_RULES
877XKB_COMPILED_DIR
878XKM_OUTPUT_DIR
879XKB_BIN_DIRECTORY
880XKB_BASE_DIRECTORY
881INT10MODULE_FALSE
882INT10MODULE_TRUE
883VGAHW_FALSE
884VGAHW_TRUE
885XF86UTILS_FALSE
886XF86UTILS_TRUE
887DPMSExtension_FALSE
888DPMSExtension_TRUE
889XF86BIGFONT_FALSE
890XF86BIGFONT_TRUE
891DBE_FALSE
892DBE_TRUE
893XCSECURITY_FALSE
894XCSECURITY_TRUE
895SELINUX_LIBS
896SELINUX_CFLAGS
897XSELINUX_FALSE
898XSELINUX_TRUE
899XACE_FALSE
900XACE_TRUE
901XINERAMA_FALSE
902XINERAMA_TRUE
903PRESENT_FALSE
904PRESENT_TRUE
905GLX_SYS_LIBS
906GLX_DEFINES
907HASHTABLE_FALSE
908HASHTABLE_TRUE
909GLX_FALSE
910GLX_TRUE
911GL_LIBS
912GL_CFLAGS
913XLIB_LIBS
914XLIB_CFLAGS
915LIBDRM_LIBS
916LIBDRM_CFLAGS
917DRI3_FALSE
918DRI3_TRUE
919XSHMFENCE_FALSE
920XSHMFENCE_TRUE
921XSHMFENCE_LIBS
922XSHMFENCE_CFLAGS
923BUSFAULT_FALSE
924BUSFAULT_TRUE
925DRI3PROTO_LIBS
926DRI3PROTO_CFLAGS
927DRI2_FALSE
928DRI2_TRUE
929DRI2PROTO_LIBS
930DRI2PROTO_CFLAGS
931DRI_FALSE
932DRI_TRUE
933CLIENTIDS_FALSE
934CLIENTIDS_TRUE
935RES_FALSE
936RES_TRUE
937SCREENSAVER_FALSE
938SCREENSAVER_TRUE
939RECORD_FALSE
940RECORD_TRUE
941MITSHM_FALSE
942MITSHM_TRUE
943COMPOSITE_FALSE
944COMPOSITE_TRUE
945XVMC_FALSE
946XVMC_TRUE
947XV_FALSE
948XV_TRUE
949CONFIG_WSCONS_FALSE
950CONFIG_WSCONS_TRUE
951NEED_DBUS_FALSE
952NEED_DBUS_TRUE
953SUID_WRAPPER_FALSE
954SUID_WRAPPER_TRUE
955SUID_WRAPPER_DIR
956SYSTEMD_LOGIND_FALSE
957SYSTEMD_LOGIND_TRUE
958CONFIG_HAL_FALSE
959CONFIG_HAL_TRUE
960HAL_LIBS
961HAL_CFLAGS
962HAVE_DBUS_FALSE
963HAVE_DBUS_TRUE
964DBUS_LIBS
965DBUS_CFLAGS
966CONFIG_UDEV_KMS_FALSE
967CONFIG_UDEV_KMS_TRUE
968CONFIG_UDEV_FALSE
969CONFIG_UDEV_TRUE
970UDEV_LIBS
971UDEV_CFLAGS
972HAVE_SYSTEMD_DAEMON_FALSE
973HAVE_SYSTEMD_DAEMON_TRUE
974SYSTEMD_DAEMON_LIBS
975SYSTEMD_DAEMON_CFLAGS
976PTHREAD_CFLAGS
977PTHREAD_LIBS
978PTHREAD_CC
979ax_pthread_config
980SDK_REQUIRED_MODULES
981PIXMAN_LIBS
982PIXMAN_CFLAGS
983INT10_STUB_FALSE
984INT10_STUB_TRUE
985INT10_X86EMU_FALSE
986INT10_X86EMU_TRUE
987INT10_VM86_FALSE
988INT10_VM86_TRUE
989SECURE_RPC_FALSE
990SECURE_RPC_TRUE
991INSTALL_SETUID_FALSE
992INSTALL_SETUID_TRUE
993XQUARTZ_SPARKLE_FEED_URL
994XQUARTZ_SPARKLE
995BUNDLE_VERSION_STRING
996BUNDLE_VERSION
997BUNDLE_ID_PREFIX
998APPLE_APPLICATION_NAME
999APPLE_APPLICATIONS_DIR
1000FONT100DPIDIR
1001FONT75DPIDIR
1002FONTTYPE1DIR
1003FONTTTFDIR
1004FONTOTFDIR
1005FONTMISCDIR
1006FONTROOTDIR
1007SPARC64_VIDEO_FALSE
1008SPARC64_VIDEO_TRUE
1009PPC_VIDEO_FALSE
1010PPC_VIDEO_TRUE
1011I386_VIDEO_FALSE
1012I386_VIDEO_TRUE
1013ARM_VIDEO_FALSE
1014ARM_VIDEO_TRUE
1015ALPHA_VIDEO_FALSE
1016ALPHA_VIDEO_TRUE
1017GLX_ARCH_DEFINES
1018FREEBSD_KLDLOAD_FALSE
1019FREEBSD_KLDLOAD_TRUE
1020FBDEVHW_FALSE
1021FBDEVHW_TRUE
1022AGP_FALSE
1023AGP_TRUE
1024POLL_FALSE
1025POLL_TRUE
1026LIBOBJS
1027DLOPEN_LIBS
1028SPECIAL_DTRACE_OBJECTS_FALSE
1029SPECIAL_DTRACE_OBJECTS_TRUE
1030XSERVER_DTRACE_FALSE
1031XSERVER_DTRACE_TRUE
1032DTRACE
1033TRADITIONALCPPFLAGS
1034RAWCPPFLAGS
1035RAWCPP
1036YFLAGS
1037YACC
1038LEXLIB
1039LEX_OUTPUT_ROOT
1040LEX
1041LT_SYS_LIBRARY_PATH
1042OTOOL64
1043OTOOL
1044LIPO
1045NMEDIT
1046DSYMUTIL
1047MANIFEST_TOOL
1048RANLIB
1049ac_ct_AR
1050AR
1051NM
1052ac_ct_DUMPBIN
1053DUMPBIN
1054LD
1055FGREP
1056LIBTOOL
1057OBJDUMP
1058DLLTOOL
1059AS
1060LN_S
1061am__fastdepCCAS_FALSE
1062am__fastdepCCAS_TRUE
1063CCASDEPMODE
1064CCASFLAGS
1065CCAS
1066HAVE_LD_WRAP_FALSE
1067HAVE_LD_WRAP_TRUE
1068ENABLE_UNIT_TESTS_FALSE
1069ENABLE_UNIT_TESTS_TRUE
1070XORG_MALLOC_DEBUG_ENV
1071HAVE_XSLTPROC_FALSE
1072HAVE_XSLTPROC_TRUE
1073XSLTPROC
1074HAVE_FOP_FALSE
1075HAVE_FOP_TRUE
1076FOP
1077HAVE_XMLTO_FALSE
1078HAVE_XMLTO_TRUE
1079HAVE_XMLTO_TEXT_FALSE
1080HAVE_XMLTO_TEXT_TRUE
1081XMLTO
1082ENABLE_DEVEL_DOCS_FALSE
1083ENABLE_DEVEL_DOCS_TRUE
1084ENABLE_DOCS_FALSE
1085ENABLE_DOCS_TRUE
1086HAVE_STYLESHEETS_FALSE
1087HAVE_STYLESHEETS_TRUE
1088XSL_STYLESHEET
1089STYLESHEET_SRCDIR
1090XORG_SGML_PATH
1091HAVE_DOXYGEN_FALSE
1092HAVE_DOXYGEN_TRUE
1093HAVE_DOT_FALSE
1094HAVE_DOT_TRUE
1095HAVE_DOT
1096DOT
1097DOXYGEN
1098MAN_SUBSTS
1099XORG_MAN_PAGE
1100ADMIN_MAN_DIR
1101DRIVER_MAN_DIR
1102MISC_MAN_DIR
1103FILE_MAN_DIR
1104LIB_MAN_DIR
1105APP_MAN_DIR
1106ADMIN_MAN_SUFFIX
1107DRIVER_MAN_SUFFIX
1108MISC_MAN_SUFFIX
1109FILE_MAN_SUFFIX
1110LIB_MAN_SUFFIX
1111APP_MAN_SUFFIX
1112SED
1113host_os
1114host_vendor
1115host_cpu
1116host
1117build_os
1118build_vendor
1119build_cpu
1120build
1121INSTALL_CMD
1122PKG_CONFIG_LIBDIR
1123PKG_CONFIG_PATH
1124PKG_CONFIG
1125CHANGELOG_CMD
1126STRICT_CFLAGS
1127CWARNFLAGS
1128BASE_CFLAGS
1129EGREP
1130GREP
1131CPP
1132am__fastdepCC_FALSE
1133am__fastdepCC_TRUE
1134CCDEPMODE
1135am__nodep
1136AMDEPBACKSLASH
1137AMDEP_FALSE
1138AMDEP_TRUE
1139am__include
1140DEPDIR
1141OBJEXT
1142EXEEXT
1143ac_ct_CC
1144CPPFLAGS
1145LDFLAGS
1146CFLAGS
1147CC
1148AM_BACKSLASH
1149AM_DEFAULT_VERBOSITY
1150AM_DEFAULT_V
1151AM_V
1152am__untar
1153am__tar
1154AMTAR
1155am__leading_dot
1156SET_MAKE
1157AWK
1158mkdir_p
1159MKDIR_P
1160INSTALL_STRIP_PROGRAM
1161STRIP
1162install_sh
1163MAKEINFO
1164AUTOHEADER
1165AUTOMAKE
1166AUTOCONF
1167ACLOCAL
1168VERSION
1169PACKAGE
1170CYGPATH_W
1171am__isrc
1172INSTALL_DATA
1173INSTALL_SCRIPT
1174INSTALL_PROGRAM
1175target_alias
1176host_alias
1177build_alias
1178LIBS
1179ECHO_T
1180ECHO_N
1181ECHO_C
1182DEFS
1183mandir
1184localedir
1185libdir
1186psdir
1187pdfdir
1188dvidir
1189htmldir
1190infodir
1191docdir
1192oldincludedir
1193includedir
1194runstatedir
1195localstatedir
1196sharedstatedir
1197sysconfdir
1198datadir
1199datarootdir
1200libexecdir
1201sbindir
1202bindir
1203program_transform_name
1204prefix
1205exec_prefix
1206PACKAGE_URL
1207PACKAGE_BUGREPORT
1208PACKAGE_STRING
1209PACKAGE_VERSION
1210PACKAGE_TARNAME
1211PACKAGE_NAME
1212PATH_SEPARATOR
1213SHELL
1214am__quote'
1215ac_subst_files=''
1216ac_user_opts='
1217enable_option_checking
1218enable_silent_rules
1219enable_dependency_tracking
1220enable_selective_werror
1221enable_strict_compilation
1222with_doxygen
1223enable_docs
1224enable_devel_docs
1225with_xmlto
1226with_fop
1227with_xsltproc
1228enable_unit_tests
1229enable_static
1230enable_shared
1231with_pic
1232enable_fast_install
1233with_aix_soname
1234with_gnu_ld
1235with_sysroot
1236enable_libtool_lock
1237enable_largefile
1238with_dtrace
1239enable_agp
1240enable_werror
1241enable_debug
1242with_int10
1243with_vendor_name
1244with_vendor_name_short
1245with_vendor_web
1246with_module_dir
1247with_log_dir
1248with_builder_addr
1249with_builderstring
1250enable_listen_tcp
1251enable_listen_unix
1252enable_listen_local
1253with_fallback_input_driver
1254with_fontrootdir
1255with_fontmiscdir
1256with_fontotfdir
1257with_fontttfdir
1258with_fonttype1dir
1259with_font75dpidir
1260with_font100dpidir
1261with_default_font_path
1262with_xkb_path
1263with_xkb_output
1264with_default_xkb_rules
1265with_default_xkb_model
1266with_default_xkb_layout
1267with_default_xkb_variant
1268with_default_xkb_options
1269with_serverconfig_path
1270with_apple_applications_dir
1271with_apple_application_name
1272with_bundle_id_prefix
1273with_bundle_version
1274with_bundle_version_string
1275enable_sparkle
1276with_sparkle_feed_url
1277enable_visibility
1278with_khronos_spec_dir
1279enable_composite
1280enable_mitshm
1281enable_xres
1282enable_record
1283enable_xv
1284enable_xvmc
1285enable_dga
1286enable_screensaver
1287enable_xdmcp
1288enable_xdm_auth_1
1289enable_glx
1290enable_dri
1291enable_dri2
1292enable_dri3
1293enable_present
1294enable_xinerama
1295enable_xf86vidmode
1296enable_xace
1297enable_xselinux
1298enable_xcsecurity
1299enable_dbe
1300enable_xf86bigfont
1301enable_dpms
1302enable_config_udev
1303enable_config_udev_kms
1304enable_config_hal
1305enable_config_wscons
1306enable_xfree86_utils
1307enable_vgahw
1308enable_int10_module
1309enable_windowsdri
1310enable_libdrm
1311enable_clientids
1312enable_pciaccess
1313enable_linux_acpi
1314enable_linux_apm
1315enable_systemd_logind
1316enable_suid_wrapper
1317enable_xorg
1318enable_xvfb
1319enable_xnest
1320enable_xquartz
1321enable_standalone_xpbproxy
1322enable_xwin
1323enable_glamor
1324enable_xf86_input_inputtest
1325enable_kdrive
1326enable_xephyr
1327enable_libunwind
1328enable_xshmfence
1329enable_install_setuid
1330enable_unix_transport
1331enable_tcp_transport
1332enable_ipv6
1333enable_local_transport
1334enable_secure_rpc
1335enable_input_thread
1336with_systemd_daemon
1337enable_xtrans_send_fds
1338with_xkb_bin_directory
1339with_sha1
1340'
1341      ac_precious_vars='build_alias
1342host_alias
1343target_alias
1344CC
1345CFLAGS
1346LDFLAGS
1347LIBS
1348CPPFLAGS
1349CPP
1350PKG_CONFIG
1351PKG_CONFIG_PATH
1352PKG_CONFIG_LIBDIR
1353DOXYGEN
1354DOT
1355XMLTO
1356FOP
1357XSLTPROC
1358XORG_MALLOC_DEBUG_ENV
1359CCAS
1360CCASFLAGS
1361LT_SYS_LIBRARY_PATH
1362YACC
1363YFLAGS
1364PIXMAN_CFLAGS
1365PIXMAN_LIBS
1366SYSTEMD_DAEMON_CFLAGS
1367SYSTEMD_DAEMON_LIBS
1368UDEV_CFLAGS
1369UDEV_LIBS
1370DBUS_CFLAGS
1371DBUS_LIBS
1372HAL_CFLAGS
1373HAL_LIBS
1374DRI2PROTO_CFLAGS
1375DRI2PROTO_LIBS
1376DRI3PROTO_CFLAGS
1377DRI3PROTO_LIBS
1378XSHMFENCE_CFLAGS
1379XSHMFENCE_LIBS
1380LIBDRM_CFLAGS
1381LIBDRM_LIBS
1382XLIB_CFLAGS
1383XLIB_LIBS
1384GL_CFLAGS
1385GL_LIBS
1386SELINUX_CFLAGS
1387SELINUX_LIBS
1388XDMCP_CFLAGS
1389XDMCP_LIBS
1390LIBSHA1_CFLAGS
1391LIBSHA1_LIBS
1392OPENSSL_CFLAGS
1393OPENSSL_LIBS
1394XSERVERCFLAGS_CFLAGS
1395XSERVERCFLAGS_LIBS
1396XSERVERLIBS_CFLAGS
1397XSERVERLIBS_LIBS
1398LIBUNWIND_CFLAGS
1399LIBUNWIND_LIBS
1400XNESTMODULES_CFLAGS
1401XNESTMODULES_LIBS
1402LIBXCVT_CFLAGS
1403LIBXCVT_LIBS
1404PCIACCESS_CFLAGS
1405PCIACCESS_LIBS
1406DGA_CFLAGS
1407DGA_LIBS
1408XORG_MODULES_CFLAGS
1409XORG_MODULES_LIBS
1410GLAMOR_CFLAGS
1411GLAMOR_LIBS
1412GBM_CFLAGS
1413GBM_LIBS
1414XWINMODULES_CFLAGS
1415XWINMODULES_LIBS
1416WINDOWSDRI_CFLAGS
1417WINDOWSDRI_LIBS
1418KHRONOS_OPENGL_REGISTRY_CFLAGS
1419KHRONOS_OPENGL_REGISTRY_LIBS
1420XPBPROXY_CFLAGS
1421XPBPROXY_LIBS
1422XEPHYR_CFLAGS
1423XEPHYR_LIBS'
1424
1425
1426# Initialize some variables set by options.
1427ac_init_help=
1428ac_init_version=false
1429ac_unrecognized_opts=
1430ac_unrecognized_sep=
1431# The variables have the same names as the options, with
1432# dashes changed to underlines.
1433cache_file=/dev/null
1434exec_prefix=NONE
1435no_create=
1436no_recursion=
1437prefix=NONE
1438program_prefix=NONE
1439program_suffix=NONE
1440program_transform_name=s,x,x,
1441silent=
1442site=
1443srcdir=
1444verbose=
1445x_includes=NONE
1446x_libraries=NONE
1447
1448# Installation directory options.
1449# These are left unexpanded so users can "make install exec_prefix=/foo"
1450# and all the variables that are supposed to be based on exec_prefix
1451# by default will actually change.
1452# Use braces instead of parens because sh, perl, etc. also accept them.
1453# (The list follows the same order as the GNU Coding Standards.)
1454bindir='${exec_prefix}/bin'
1455sbindir='${exec_prefix}/sbin'
1456libexecdir='${exec_prefix}/libexec'
1457datarootdir='${prefix}/share'
1458datadir='${datarootdir}'
1459sysconfdir='${prefix}/etc'
1460sharedstatedir='${prefix}/com'
1461localstatedir='${prefix}/var'
1462runstatedir='${localstatedir}/run'
1463includedir='${prefix}/include'
1464oldincludedir='/usr/include'
1465docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1466infodir='${datarootdir}/info'
1467htmldir='${docdir}'
1468dvidir='${docdir}'
1469pdfdir='${docdir}'
1470psdir='${docdir}'
1471libdir='${exec_prefix}/lib'
1472localedir='${datarootdir}/locale'
1473mandir='${datarootdir}/man'
1474
1475ac_prev=
1476ac_dashdash=
1477for ac_option
1478do
1479  # If the previous option needs an argument, assign it.
1480  if test -n "$ac_prev"; then
1481    eval $ac_prev=\$ac_option
1482    ac_prev=
1483    continue
1484  fi
1485
1486  case $ac_option in
1487  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1488  *=)   ac_optarg= ;;
1489  *)    ac_optarg=yes ;;
1490  esac
1491
1492  # Accept the important Cygnus configure options, so we can diagnose typos.
1493
1494  case $ac_dashdash$ac_option in
1495  --)
1496    ac_dashdash=yes ;;
1497
1498  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1499    ac_prev=bindir ;;
1500  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1501    bindir=$ac_optarg ;;
1502
1503  -build | --build | --buil | --bui | --bu)
1504    ac_prev=build_alias ;;
1505  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1506    build_alias=$ac_optarg ;;
1507
1508  -cache-file | --cache-file | --cache-fil | --cache-fi \
1509  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1510    ac_prev=cache_file ;;
1511  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1512  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1513    cache_file=$ac_optarg ;;
1514
1515  --config-cache | -C)
1516    cache_file=config.cache ;;
1517
1518  -datadir | --datadir | --datadi | --datad)
1519    ac_prev=datadir ;;
1520  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1521    datadir=$ac_optarg ;;
1522
1523  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1524  | --dataroo | --dataro | --datar)
1525    ac_prev=datarootdir ;;
1526  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1527  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1528    datarootdir=$ac_optarg ;;
1529
1530  -disable-* | --disable-*)
1531    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1532    # Reject names that are not valid shell variable names.
1533    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1534      as_fn_error $? "invalid feature name: $ac_useropt"
1535    ac_useropt_orig=$ac_useropt
1536    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1537    case $ac_user_opts in
1538      *"
1539"enable_$ac_useropt"
1540"*) ;;
1541      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1542	 ac_unrecognized_sep=', ';;
1543    esac
1544    eval enable_$ac_useropt=no ;;
1545
1546  -docdir | --docdir | --docdi | --doc | --do)
1547    ac_prev=docdir ;;
1548  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1549    docdir=$ac_optarg ;;
1550
1551  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1552    ac_prev=dvidir ;;
1553  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1554    dvidir=$ac_optarg ;;
1555
1556  -enable-* | --enable-*)
1557    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1558    # Reject names that are not valid shell variable names.
1559    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1560      as_fn_error $? "invalid feature name: $ac_useropt"
1561    ac_useropt_orig=$ac_useropt
1562    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563    case $ac_user_opts in
1564      *"
1565"enable_$ac_useropt"
1566"*) ;;
1567      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1568	 ac_unrecognized_sep=', ';;
1569    esac
1570    eval enable_$ac_useropt=\$ac_optarg ;;
1571
1572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1574  | --exec | --exe | --ex)
1575    ac_prev=exec_prefix ;;
1576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1578  | --exec=* | --exe=* | --ex=*)
1579    exec_prefix=$ac_optarg ;;
1580
1581  -gas | --gas | --ga | --g)
1582    # Obsolete; use --with-gas.
1583    with_gas=yes ;;
1584
1585  -help | --help | --hel | --he | -h)
1586    ac_init_help=long ;;
1587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1588    ac_init_help=recursive ;;
1589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1590    ac_init_help=short ;;
1591
1592  -host | --host | --hos | --ho)
1593    ac_prev=host_alias ;;
1594  -host=* | --host=* | --hos=* | --ho=*)
1595    host_alias=$ac_optarg ;;
1596
1597  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1598    ac_prev=htmldir ;;
1599  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1600  | --ht=*)
1601    htmldir=$ac_optarg ;;
1602
1603  -includedir | --includedir | --includedi | --included | --include \
1604  | --includ | --inclu | --incl | --inc)
1605    ac_prev=includedir ;;
1606  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1607  | --includ=* | --inclu=* | --incl=* | --inc=*)
1608    includedir=$ac_optarg ;;
1609
1610  -infodir | --infodir | --infodi | --infod | --info | --inf)
1611    ac_prev=infodir ;;
1612  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1613    infodir=$ac_optarg ;;
1614
1615  -libdir | --libdir | --libdi | --libd)
1616    ac_prev=libdir ;;
1617  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1618    libdir=$ac_optarg ;;
1619
1620  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1621  | --libexe | --libex | --libe)
1622    ac_prev=libexecdir ;;
1623  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1624  | --libexe=* | --libex=* | --libe=*)
1625    libexecdir=$ac_optarg ;;
1626
1627  -localedir | --localedir | --localedi | --localed | --locale)
1628    ac_prev=localedir ;;
1629  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1630    localedir=$ac_optarg ;;
1631
1632  -localstatedir | --localstatedir | --localstatedi | --localstated \
1633  | --localstate | --localstat | --localsta | --localst | --locals)
1634    ac_prev=localstatedir ;;
1635  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1636  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1637    localstatedir=$ac_optarg ;;
1638
1639  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1640    ac_prev=mandir ;;
1641  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1642    mandir=$ac_optarg ;;
1643
1644  -nfp | --nfp | --nf)
1645    # Obsolete; use --without-fp.
1646    with_fp=no ;;
1647
1648  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1649  | --no-cr | --no-c | -n)
1650    no_create=yes ;;
1651
1652  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1653  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1654    no_recursion=yes ;;
1655
1656  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1657  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1658  | --oldin | --oldi | --old | --ol | --o)
1659    ac_prev=oldincludedir ;;
1660  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1661  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1662  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1663    oldincludedir=$ac_optarg ;;
1664
1665  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1666    ac_prev=prefix ;;
1667  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1668    prefix=$ac_optarg ;;
1669
1670  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1671  | --program-pre | --program-pr | --program-p)
1672    ac_prev=program_prefix ;;
1673  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1674  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1675    program_prefix=$ac_optarg ;;
1676
1677  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1678  | --program-suf | --program-su | --program-s)
1679    ac_prev=program_suffix ;;
1680  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1681  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1682    program_suffix=$ac_optarg ;;
1683
1684  -program-transform-name | --program-transform-name \
1685  | --program-transform-nam | --program-transform-na \
1686  | --program-transform-n | --program-transform- \
1687  | --program-transform | --program-transfor \
1688  | --program-transfo | --program-transf \
1689  | --program-trans | --program-tran \
1690  | --progr-tra | --program-tr | --program-t)
1691    ac_prev=program_transform_name ;;
1692  -program-transform-name=* | --program-transform-name=* \
1693  | --program-transform-nam=* | --program-transform-na=* \
1694  | --program-transform-n=* | --program-transform-=* \
1695  | --program-transform=* | --program-transfor=* \
1696  | --program-transfo=* | --program-transf=* \
1697  | --program-trans=* | --program-tran=* \
1698  | --progr-tra=* | --program-tr=* | --program-t=*)
1699    program_transform_name=$ac_optarg ;;
1700
1701  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1702    ac_prev=pdfdir ;;
1703  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1704    pdfdir=$ac_optarg ;;
1705
1706  -psdir | --psdir | --psdi | --psd | --ps)
1707    ac_prev=psdir ;;
1708  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1709    psdir=$ac_optarg ;;
1710
1711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712  | -silent | --silent | --silen | --sile | --sil)
1713    silent=yes ;;
1714
1715  -runstatedir | --runstatedir | --runstatedi | --runstated \
1716  | --runstate | --runstat | --runsta | --runst | --runs \
1717  | --run | --ru | --r)
1718    ac_prev=runstatedir ;;
1719  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1720  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1721  | --run=* | --ru=* | --r=*)
1722    runstatedir=$ac_optarg ;;
1723
1724  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1725    ac_prev=sbindir ;;
1726  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1727  | --sbi=* | --sb=*)
1728    sbindir=$ac_optarg ;;
1729
1730  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1731  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1732  | --sharedst | --shareds | --shared | --share | --shar \
1733  | --sha | --sh)
1734    ac_prev=sharedstatedir ;;
1735  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1736  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1737  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1738  | --sha=* | --sh=*)
1739    sharedstatedir=$ac_optarg ;;
1740
1741  -site | --site | --sit)
1742    ac_prev=site ;;
1743  -site=* | --site=* | --sit=*)
1744    site=$ac_optarg ;;
1745
1746  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1747    ac_prev=srcdir ;;
1748  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1749    srcdir=$ac_optarg ;;
1750
1751  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1752  | --syscon | --sysco | --sysc | --sys | --sy)
1753    ac_prev=sysconfdir ;;
1754  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1755  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1756    sysconfdir=$ac_optarg ;;
1757
1758  -target | --target | --targe | --targ | --tar | --ta | --t)
1759    ac_prev=target_alias ;;
1760  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1761    target_alias=$ac_optarg ;;
1762
1763  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1764    verbose=yes ;;
1765
1766  -version | --version | --versio | --versi | --vers | -V)
1767    ac_init_version=: ;;
1768
1769  -with-* | --with-*)
1770    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1771    # Reject names that are not valid shell variable names.
1772    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1773      as_fn_error $? "invalid package name: $ac_useropt"
1774    ac_useropt_orig=$ac_useropt
1775    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1776    case $ac_user_opts in
1777      *"
1778"with_$ac_useropt"
1779"*) ;;
1780      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1781	 ac_unrecognized_sep=', ';;
1782    esac
1783    eval with_$ac_useropt=\$ac_optarg ;;
1784
1785  -without-* | --without-*)
1786    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1787    # Reject names that are not valid shell variable names.
1788    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1789      as_fn_error $? "invalid package name: $ac_useropt"
1790    ac_useropt_orig=$ac_useropt
1791    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1792    case $ac_user_opts in
1793      *"
1794"with_$ac_useropt"
1795"*) ;;
1796      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1797	 ac_unrecognized_sep=', ';;
1798    esac
1799    eval with_$ac_useropt=no ;;
1800
1801  --x)
1802    # Obsolete; use --with-x.
1803    with_x=yes ;;
1804
1805  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1806  | --x-incl | --x-inc | --x-in | --x-i)
1807    ac_prev=x_includes ;;
1808  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1809  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1810    x_includes=$ac_optarg ;;
1811
1812  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1813  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1814    ac_prev=x_libraries ;;
1815  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1816  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1817    x_libraries=$ac_optarg ;;
1818
1819  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1820Try \`$0 --help' for more information"
1821    ;;
1822
1823  *=*)
1824    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1825    # Reject names that are not valid shell variable names.
1826    case $ac_envvar in #(
1827      '' | [0-9]* | *[!_$as_cr_alnum]* )
1828      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1829    esac
1830    eval $ac_envvar=\$ac_optarg
1831    export $ac_envvar ;;
1832
1833  *)
1834    # FIXME: should be removed in autoconf 3.0.
1835    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1836    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1837      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1838    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1839    ;;
1840
1841  esac
1842done
1843
1844if test -n "$ac_prev"; then
1845  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1846  as_fn_error $? "missing argument to $ac_option"
1847fi
1848
1849if test -n "$ac_unrecognized_opts"; then
1850  case $enable_option_checking in
1851    no) ;;
1852    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1853    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1854  esac
1855fi
1856
1857# Check all directory arguments for consistency.
1858for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1859		datadir sysconfdir sharedstatedir localstatedir includedir \
1860		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1861		libdir localedir mandir runstatedir
1862do
1863  eval ac_val=\$$ac_var
1864  # Remove trailing slashes.
1865  case $ac_val in
1866    */ )
1867      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1868      eval $ac_var=\$ac_val;;
1869  esac
1870  # Be sure to have absolute directory names.
1871  case $ac_val in
1872    [\\/$]* | ?:[\\/]* )  continue;;
1873    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1874  esac
1875  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1876done
1877
1878# There might be people who depend on the old broken behavior: `$host'
1879# used to hold the argument of --host etc.
1880# FIXME: To remove some day.
1881build=$build_alias
1882host=$host_alias
1883target=$target_alias
1884
1885# FIXME: To remove some day.
1886if test "x$host_alias" != x; then
1887  if test "x$build_alias" = x; then
1888    cross_compiling=maybe
1889  elif test "x$build_alias" != "x$host_alias"; then
1890    cross_compiling=yes
1891  fi
1892fi
1893
1894ac_tool_prefix=
1895test -n "$host_alias" && ac_tool_prefix=$host_alias-
1896
1897test "$silent" = yes && exec 6>/dev/null
1898
1899
1900ac_pwd=`pwd` && test -n "$ac_pwd" &&
1901ac_ls_di=`ls -di .` &&
1902ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1903  as_fn_error $? "working directory cannot be determined"
1904test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1905  as_fn_error $? "pwd does not report name of working directory"
1906
1907
1908# Find the source files, if location was not specified.
1909if test -z "$srcdir"; then
1910  ac_srcdir_defaulted=yes
1911  # Try the directory containing this script, then the parent directory.
1912  ac_confdir=`$as_dirname -- "$as_myself" ||
1913$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1914	 X"$as_myself" : 'X\(//\)[^/]' \| \
1915	 X"$as_myself" : 'X\(//\)$' \| \
1916	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1917$as_echo X"$as_myself" |
1918    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1919	    s//\1/
1920	    q
1921	  }
1922	  /^X\(\/\/\)[^/].*/{
1923	    s//\1/
1924	    q
1925	  }
1926	  /^X\(\/\/\)$/{
1927	    s//\1/
1928	    q
1929	  }
1930	  /^X\(\/\).*/{
1931	    s//\1/
1932	    q
1933	  }
1934	  s/.*/./; q'`
1935  srcdir=$ac_confdir
1936  if test ! -r "$srcdir/$ac_unique_file"; then
1937    srcdir=..
1938  fi
1939else
1940  ac_srcdir_defaulted=no
1941fi
1942if test ! -r "$srcdir/$ac_unique_file"; then
1943  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1944  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1945fi
1946ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1947ac_abs_confdir=`(
1948	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1949	pwd)`
1950# When building in place, set srcdir=.
1951if test "$ac_abs_confdir" = "$ac_pwd"; then
1952  srcdir=.
1953fi
1954# Remove unnecessary trailing slashes from srcdir.
1955# Double slashes in file names in object file debugging info
1956# mess up M-x gdb in Emacs.
1957case $srcdir in
1958*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1959esac
1960for ac_var in $ac_precious_vars; do
1961  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1962  eval ac_env_${ac_var}_value=\$${ac_var}
1963  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1964  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1965done
1966
1967#
1968# Report the --help message.
1969#
1970if test "$ac_init_help" = "long"; then
1971  # Omit some internal or obsolete options to make the list less imposing.
1972  # This message is too long to be a string in the A/UX 3.1 sh.
1973  cat <<_ACEOF
1974\`configure' configures xorg-server 21.1.3 to adapt to many kinds of systems.
1975
1976Usage: $0 [OPTION]... [VAR=VALUE]...
1977
1978To assign environment variables (e.g., CC, CFLAGS...), specify them as
1979VAR=VALUE.  See below for descriptions of some of the useful variables.
1980
1981Defaults for the options are specified in brackets.
1982
1983Configuration:
1984  -h, --help              display this help and exit
1985      --help=short        display options specific to this package
1986      --help=recursive    display the short help of all the included packages
1987  -V, --version           display version information and exit
1988  -q, --quiet, --silent   do not print \`checking ...' messages
1989      --cache-file=FILE   cache test results in FILE [disabled]
1990  -C, --config-cache      alias for \`--cache-file=config.cache'
1991  -n, --no-create         do not create output files
1992      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1993
1994Installation directories:
1995  --prefix=PREFIX         install architecture-independent files in PREFIX
1996                          [$ac_default_prefix]
1997  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1998                          [PREFIX]
1999
2000By default, \`make install' will install all the files in
2001\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2002an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2003for instance \`--prefix=\$HOME'.
2004
2005For better control, use the options below.
2006
2007Fine tuning of the installation directories:
2008  --bindir=DIR            user executables [EPREFIX/bin]
2009  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2010  --libexecdir=DIR        program executables [EPREFIX/libexec]
2011  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2012  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2013  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2014  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2015  --libdir=DIR            object code libraries [EPREFIX/lib]
2016  --includedir=DIR        C header files [PREFIX/include]
2017  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2018  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2019  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2020  --infodir=DIR           info documentation [DATAROOTDIR/info]
2021  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2022  --mandir=DIR            man documentation [DATAROOTDIR/man]
2023  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2024  --htmldir=DIR           html documentation [DOCDIR]
2025  --dvidir=DIR            dvi documentation [DOCDIR]
2026  --pdfdir=DIR            pdf documentation [DOCDIR]
2027  --psdir=DIR             ps documentation [DOCDIR]
2028_ACEOF
2029
2030  cat <<\_ACEOF
2031
2032Program names:
2033  --program-prefix=PREFIX            prepend PREFIX to installed program names
2034  --program-suffix=SUFFIX            append SUFFIX to installed program names
2035  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2036
2037System types:
2038  --build=BUILD     configure for building on BUILD [guessed]
2039  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2040_ACEOF
2041fi
2042
2043if test -n "$ac_init_help"; then
2044  case $ac_init_help in
2045     short | recursive ) echo "Configuration of xorg-server 21.1.3:";;
2046   esac
2047  cat <<\_ACEOF
2048
2049Optional Features:
2050  --disable-option-checking  ignore unrecognized --enable/--with options
2051  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2052  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2053  --enable-silent-rules   less verbose build output (undo: "make V=1")
2054  --disable-silent-rules  verbose build output (undo: "make V=0")
2055  --enable-dependency-tracking
2056                          do not reject slow dependency extractors
2057  --disable-dependency-tracking
2058                          speeds up one-time build
2059  --disable-selective-werror
2060                          Turn off selective compiler errors. (default:
2061                          enabled)
2062  --enable-strict-compilation
2063                          Enable all warnings from compiler and make them
2064                          errors (default: disabled)
2065  --enable-docs           Enable building the documentation (default: yes)
2066  --enable-devel-docs     Enable building the developer documentation
2067                          (default: yes)
2068  --enable-unit-tests     Enable building unit test cases (default: auto)
2069  --enable-static[=PKGS]  build static libraries [default=no]
2070  --enable-shared[=PKGS]  build shared libraries [default=yes]
2071  --enable-fast-install[=PKGS]
2072                          optimize for fast installation [default=yes]
2073  --disable-libtool-lock  avoid locking (might break parallel builds)
2074  --disable-largefile     omit support for large files
2075  --enable-agp            Enable AGP support (default: auto)
2076  --enable-werror         Obsolete - use --enable-strict-compilation instead
2077  --enable-debug          Enable debugging (default: disabled)
2078  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2079  --disable-listen-unix   Listen on Unix by default (default:enabled)
2080  --disable-listen-local  Listen on local by default (default:enabled)
2081  --enable-sparkle        Enable updating of X11.app using the Sparkle
2082                          Framework (default: disabled)
2083  --enable-visibility     Enable symbol visibility (default: auto)
2084  --disable-composite     Build Composite extension (default: enabled)
2085  --disable-mitshm        Build SHM extension (default: auto)
2086  --disable-xres          Build XRes extension (default: enabled)
2087  --disable-record        Build Record extension (default: enabled)
2088  --disable-xv            Build Xv extension (default: enabled)
2089  --disable-xvmc          Build XvMC extension (default: enabled)
2090  --disable-dga           Build DGA extension (default: auto)
2091  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2092  --disable-xdmcp         Build XDMCP extension (default: auto)
2093  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2094  --disable-glx           Build GLX extension (default: enabled)
2095  --enable-dri            Build DRI extension (default: auto)
2096  --enable-dri2           Build DRI2 extension (default: auto)
2097  --enable-dri3           Build DRI3 extension (default: auto)
2098  --disable-present       Build Present extension (default: enabled)
2099  --disable-xinerama      Build Xinerama extension (default: enabled)
2100  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2101  --disable-xace          Build X-ACE extension (default: enabled)
2102  --enable-xselinux       Build SELinux extension (default: disabled)
2103  --enable-xcsecurity     Build Security extension (default: disabled)
2104  --disable-dbe           Build DBE extension (default: enabled)
2105  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2106  --disable-dpms          Build DPMS extension (default: enabled)
2107  --enable-config-udev    Build udev support (default: auto)
2108  --enable-config-udev-kms
2109                          Build udev kms support (default: auto)
2110  --disable-config-hal    Build HAL support (default: auto)
2111  --enable-config-wscons  Build wscons config support (default: auto)
2112  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2113  --enable-vgahw          Build Xorg with vga access (default: enabled)
2114  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2115  --enable-windowsdri     Build XWin with WindowsDRI extension (default: auto)
2116  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2117  --disable-clientids     Build Xorg with client ID tracking (default:
2118                          enabled)
2119  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2120  --disable-linux-acpi    Disable building ACPI support on Linux (if
2121                          available).
2122  --disable-linux-apm     Disable building APM support on Linux (if
2123                          available).
2124  --enable-systemd-logind Build systemd-logind support (default: auto)
2125  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2126                          rootless xserver systems (default: no)
2127  --enable-xorg           Build Xorg server (default: auto)
2128  --enable-xvfb           Build Xvfb server (default: yes)
2129  --enable-xnest          Build Xnest server (default: auto)
2130  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2131  --enable-standalone-xpbproxy
2132                          Build a standalone xpbproxy (in addition to the one
2133                          integrated into Xquartz as a separate thread)
2134                          (default: no)
2135  --enable-xwin           Build XWin server (default: auto)
2136  --enable-glamor         Build glamor dix module (default: auto)
2137  --enable-xf86-input-inputtest
2138                          Build Xorg test input driver (default: yes)
2139  --enable-kdrive         Build kdrive servers (default: no)
2140  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2141  --enable-libunwind      Use libunwind for backtracing (default: auto)
2142  --disable-xshmfence     Disable xshmfence (default: auto)
2143  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2144                          (default: auto)
2145  --enable-unix-transport Enable UNIX domain socket transport
2146  --enable-tcp-transport  Enable TCP socket transport
2147  --enable-ipv6           Enable IPv6 support
2148  --enable-local-transport
2149                          Enable os-specific local transport
2150  --enable-secure-rpc     Enable Secure RPC
2151  --enable-input-thread   Enable input threads
2152  --disable-xtrans-send-fds
2153                          Use Xtrans support for fd passing (default: auto)
2154
2155Optional Packages:
2156  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2157  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2158  --with-doxygen          Use doxygen to regenerate documentation (default:
2159                          auto)
2160  --with-xmlto            Use xmlto to regenerate documentation (default:
2161                          auto)
2162  --with-fop              Use fop to regenerate documentation (default: auto)
2163  --with-xsltproc         Use xsltproc for the transformation of XML documents
2164                          (default: auto)
2165  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
2166                          both]
2167  --with-aix-soname=aix|svr4|both
2168                          shared library versioning (aka "SONAME") variant to
2169                          provide on AIX, [default=aix].
2170  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2171  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2172                          compiler's sysroot if not specified).
2173  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2174                          found)
2175  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2176  --with-vendor-name=VENDOR
2177                          Vendor string reported by the server
2178  --with-vendor-name-short=VENDOR
2179                          Short version of vendor string reported by the
2180                          server
2181  --with-vendor-web=URL   Vendor web address reported by the server
2182  --with-module-dir=DIR   Directory where modules are installed (default:
2183                          $libdir/xorg/modules)
2184  --with-log-dir=DIR      Directory where log files are kept (default:
2185                          $localstatedir/log)
2186  --with-builder-addr=ADDRESS
2187                          Builder address (default:
2188                          xorg@lists.freedesktop.org)
2189  --with-builderstring=BUILDERSTRING
2190                          Additional builder string
2191  --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
2192                          Input driver fallback if the requested driver for a
2193                          device is unavailable
2194  --with-fontrootdir=DIR  Path to root directory for font files
2195  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2196  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2197  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2198  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2199  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2200  --with-font100dpidir=DIR
2201                          Path to 100dpi files [FONTROOTDIR/100dpi]
2202  --with-default-font-path=PATH
2203                          Comma separated list of font dirs
2204  --with-xkb-path=PATH    Path to XKB base dir (default: auto)
2205  --with-xkb-output=PATH  Path to XKB output dir (default:
2206                          ${datadir}/X11/xkb/compiled)
2207  --with-default-xkb-rules=RULES
2208                          Keyboard ruleset (default: base/evdev)
2209  --with-default-xkb-model=MODEL
2210                          Keyboard model (default: pc105)
2211  --with-default-xkb-layout=LAYOUT
2212                          Keyboard layout (default: us)
2213  --with-default-xkb-variant=VARIANT
2214                          Keyboard variant (default: (none))
2215  --with-default-xkb-options=OPTIONS
2216                          Keyboard layout options (default: (none))
2217  --with-serverconfig-path=PATH
2218                          Directory where ancillary server config files are
2219                          installed (default: ${libdir}/xorg)
2220  --with-apple-applications-dir=PATH
2221                          Path to the Applications directory (default:
2222                          /Applications/Utilities)
2223  --with-apple-application-name=NAME
2224                          Name for the .app (default: X11)
2225  --with-bundle-id-prefix=RDNS_PREFIX
2226                          Prefix to use for bundle identifiers (default:
2227                          org.x)
2228  --with-bundle-version=VERSION
2229                          Version to use for X11.app's CFBundleVersion
2230                          (default: 21.1.3)
2231  --with-bundle-version-string=VERSION
2232                          Version to use for X11.app's
2233                          CFBundleShortVersionString (default: 21.1.3)
2234  --with-sparkle-feed-url=URL
2235                          URL for the Sparkle feed (default:
2236                          https://www.xquartz.org/releases/sparkle/release.xml)
2237  --with-khronos-spec-dir=PATH
2238                          Path to Khronos OpenGL registry database files
2239                          (default: auto)
2240  --with-systemd-daemon   support systemd socket activation (default: auto)
2241  --with-xkb-bin-directory=DIR
2242                          Directory containing xkbcomp program (default: auto)
2243  --with-sha1=libc|libmd|libnettle|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2244                          choose SHA1 implementation
2245
2246Some influential environment variables:
2247  CC          C compiler command
2248  CFLAGS      C compiler flags
2249  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2250              nonstandard directory <lib dir>
2251  LIBS        libraries to pass to the linker, e.g. -l<library>
2252  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2253              you have headers in a nonstandard directory <include dir>
2254  CPP         C preprocessor
2255  PKG_CONFIG  path to pkg-config utility
2256  PKG_CONFIG_PATH
2257              directories to add to pkg-config's search path
2258  PKG_CONFIG_LIBDIR
2259              path overriding pkg-config's built-in search path
2260  DOXYGEN     Path to doxygen command
2261  DOT         Path to the dot graphics utility
2262  XMLTO       Path to xmlto command
2263  FOP         Path to fop command
2264  XSLTPROC    Path to xsltproc command
2265  XORG_MALLOC_DEBUG_ENV
2266              Environment variables to enable memory checking in tests
2267  CCAS        assembler compiler command (defaults to CC)
2268  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2269  LT_SYS_LIBRARY_PATH
2270              User-defined run-time library search path.
2271  YACC        The `Yet Another Compiler Compiler' implementation to use.
2272              Defaults to the first program found out of: `bison -y', `byacc',
2273              `yacc'.
2274  YFLAGS      The list of arguments that will be passed by default to $YACC.
2275              This script will default YFLAGS to the empty string to avoid a
2276              default value of `-d' given by some make applications.
2277  PIXMAN_CFLAGS
2278              C compiler flags for PIXMAN, overriding pkg-config
2279  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2280  SYSTEMD_DAEMON_CFLAGS
2281              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2282  SYSTEMD_DAEMON_LIBS
2283              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2284  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2285  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2286  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2287  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2288  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2289  HAL_LIBS    linker flags for HAL, overriding pkg-config
2290  DRI2PROTO_CFLAGS
2291              C compiler flags for DRI2PROTO, overriding pkg-config
2292  DRI2PROTO_LIBS
2293              linker flags for DRI2PROTO, overriding pkg-config
2294  DRI3PROTO_CFLAGS
2295              C compiler flags for DRI3PROTO, overriding pkg-config
2296  DRI3PROTO_LIBS
2297              linker flags for DRI3PROTO, overriding pkg-config
2298  XSHMFENCE_CFLAGS
2299              C compiler flags for XSHMFENCE, overriding pkg-config
2300  XSHMFENCE_LIBS
2301              linker flags for XSHMFENCE, overriding pkg-config
2302  LIBDRM_CFLAGS
2303              C compiler flags for LIBDRM, overriding pkg-config
2304  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2305  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2306  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2307  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2308  GL_LIBS     linker flags for GL, overriding pkg-config
2309  SELINUX_CFLAGS
2310              C compiler flags for SELINUX, overriding pkg-config
2311  SELINUX_LIBS
2312              linker flags for SELINUX, overriding pkg-config
2313  XDMCP_CFLAGS
2314              C compiler flags for XDMCP, overriding pkg-config
2315  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2316  LIBSHA1_CFLAGS
2317              C compiler flags for LIBSHA1, overriding pkg-config
2318  LIBSHA1_LIBS
2319              linker flags for LIBSHA1, overriding pkg-config
2320  OPENSSL_CFLAGS
2321              C compiler flags for OPENSSL, overriding pkg-config
2322  OPENSSL_LIBS
2323              linker flags for OPENSSL, overriding pkg-config
2324  XSERVERCFLAGS_CFLAGS
2325              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2326  XSERVERCFLAGS_LIBS
2327              linker flags for XSERVERCFLAGS, overriding pkg-config
2328  XSERVERLIBS_CFLAGS
2329              C compiler flags for XSERVERLIBS, overriding pkg-config
2330  XSERVERLIBS_LIBS
2331              linker flags for XSERVERLIBS, overriding pkg-config
2332  LIBUNWIND_CFLAGS
2333              C compiler flags for LIBUNWIND, overriding pkg-config
2334  LIBUNWIND_LIBS
2335              linker flags for LIBUNWIND, overriding pkg-config
2336  XNESTMODULES_CFLAGS
2337              C compiler flags for XNESTMODULES, overriding pkg-config
2338  XNESTMODULES_LIBS
2339              linker flags for XNESTMODULES, overriding pkg-config
2340  LIBXCVT_CFLAGS
2341              C compiler flags for LIBXCVT, overriding pkg-config
2342  LIBXCVT_LIBS
2343              linker flags for LIBXCVT, overriding pkg-config
2344  PCIACCESS_CFLAGS
2345              C compiler flags for PCIACCESS, overriding pkg-config
2346  PCIACCESS_LIBS
2347              linker flags for PCIACCESS, overriding pkg-config
2348  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2349  DGA_LIBS    linker flags for DGA, overriding pkg-config
2350  XORG_MODULES_CFLAGS
2351              C compiler flags for XORG_MODULES, overriding pkg-config
2352  XORG_MODULES_LIBS
2353              linker flags for XORG_MODULES, overriding pkg-config
2354  GLAMOR_CFLAGS
2355              C compiler flags for GLAMOR, overriding pkg-config
2356  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2357  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2358  GBM_LIBS    linker flags for GBM, overriding pkg-config
2359  XWINMODULES_CFLAGS
2360              C compiler flags for XWINMODULES, overriding pkg-config
2361  XWINMODULES_LIBS
2362              linker flags for XWINMODULES, overriding pkg-config
2363  WINDOWSDRI_CFLAGS
2364              C compiler flags for WINDOWSDRI, overriding pkg-config
2365  WINDOWSDRI_LIBS
2366              linker flags for WINDOWSDRI, overriding pkg-config
2367  KHRONOS_OPENGL_REGISTRY_CFLAGS
2368              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2369              pkg-config
2370  KHRONOS_OPENGL_REGISTRY_LIBS
2371              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2372  XPBPROXY_CFLAGS
2373              C compiler flags for XPBPROXY, overriding pkg-config
2374  XPBPROXY_LIBS
2375              linker flags for XPBPROXY, overriding pkg-config
2376  XEPHYR_CFLAGS
2377              C compiler flags for XEPHYR, overriding pkg-config
2378  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2379
2380Use these variables to override the choices made by `configure' or to help
2381it to find libraries and programs with nonstandard names/locations.
2382
2383Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
2384_ACEOF
2385ac_status=$?
2386fi
2387
2388if test "$ac_init_help" = "recursive"; then
2389  # If there are subdirs, report their specific --help.
2390  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2391    test -d "$ac_dir" ||
2392      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2393      continue
2394    ac_builddir=.
2395
2396case "$ac_dir" in
2397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2398*)
2399  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2400  # A ".." for each directory in $ac_dir_suffix.
2401  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2402  case $ac_top_builddir_sub in
2403  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2404  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2405  esac ;;
2406esac
2407ac_abs_top_builddir=$ac_pwd
2408ac_abs_builddir=$ac_pwd$ac_dir_suffix
2409# for backward compatibility:
2410ac_top_builddir=$ac_top_build_prefix
2411
2412case $srcdir in
2413  .)  # We are building in place.
2414    ac_srcdir=.
2415    ac_top_srcdir=$ac_top_builddir_sub
2416    ac_abs_top_srcdir=$ac_pwd ;;
2417  [\\/]* | ?:[\\/]* )  # Absolute name.
2418    ac_srcdir=$srcdir$ac_dir_suffix;
2419    ac_top_srcdir=$srcdir
2420    ac_abs_top_srcdir=$srcdir ;;
2421  *) # Relative name.
2422    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2423    ac_top_srcdir=$ac_top_build_prefix$srcdir
2424    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2425esac
2426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2427
2428    cd "$ac_dir" || { ac_status=$?; continue; }
2429    # Check for guested configure.
2430    if test -f "$ac_srcdir/configure.gnu"; then
2431      echo &&
2432      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2433    elif test -f "$ac_srcdir/configure"; then
2434      echo &&
2435      $SHELL "$ac_srcdir/configure" --help=recursive
2436    else
2437      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2438    fi || ac_status=$?
2439    cd "$ac_pwd" || { ac_status=$?; break; }
2440  done
2441fi
2442
2443test -n "$ac_init_help" && exit $ac_status
2444if $ac_init_version; then
2445  cat <<\_ACEOF
2446xorg-server configure 21.1.3
2447generated by GNU Autoconf 2.69
2448
2449Copyright (C) 2012 Free Software Foundation, Inc.
2450This configure script is free software; the Free Software Foundation
2451gives unlimited permission to copy, distribute and modify it.
2452_ACEOF
2453  exit
2454fi
2455
2456## ------------------------ ##
2457## Autoconf initialization. ##
2458## ------------------------ ##
2459
2460# ac_fn_c_try_compile LINENO
2461# --------------------------
2462# Try to compile conftest.$ac_ext, and return whether this succeeded.
2463ac_fn_c_try_compile ()
2464{
2465  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466  rm -f conftest.$ac_objext
2467  if { { ac_try="$ac_compile"
2468case "(($ac_try" in
2469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470  *) ac_try_echo=$ac_try;;
2471esac
2472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2473$as_echo "$ac_try_echo"; } >&5
2474  (eval "$ac_compile") 2>conftest.err
2475  ac_status=$?
2476  if test -s conftest.err; then
2477    grep -v '^ *+' conftest.err >conftest.er1
2478    cat conftest.er1 >&5
2479    mv -f conftest.er1 conftest.err
2480  fi
2481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2482  test $ac_status = 0; } && {
2483	 test -z "$ac_c_werror_flag" ||
2484	 test ! -s conftest.err
2485       } && test -s conftest.$ac_objext; then :
2486  ac_retval=0
2487else
2488  $as_echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491	ac_retval=1
2492fi
2493  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494  as_fn_set_status $ac_retval
2495
2496} # ac_fn_c_try_compile
2497
2498# ac_fn_c_try_cpp LINENO
2499# ----------------------
2500# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2501ac_fn_c_try_cpp ()
2502{
2503  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504  if { { ac_try="$ac_cpp conftest.$ac_ext"
2505case "(($ac_try" in
2506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507  *) ac_try_echo=$ac_try;;
2508esac
2509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510$as_echo "$ac_try_echo"; } >&5
2511  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2512  ac_status=$?
2513  if test -s conftest.err; then
2514    grep -v '^ *+' conftest.err >conftest.er1
2515    cat conftest.er1 >&5
2516    mv -f conftest.er1 conftest.err
2517  fi
2518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519  test $ac_status = 0; } > conftest.i && {
2520	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2521	 test ! -s conftest.err
2522       }; then :
2523  ac_retval=0
2524else
2525  $as_echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528    ac_retval=1
2529fi
2530  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2531  as_fn_set_status $ac_retval
2532
2533} # ac_fn_c_try_cpp
2534
2535# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2536# -------------------------------------------------------
2537# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2538# the include files in INCLUDES and setting the cache variable VAR
2539# accordingly.
2540ac_fn_c_check_header_mongrel ()
2541{
2542  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2543  if eval \${$3+:} false; then :
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545$as_echo_n "checking for $2... " >&6; }
2546if eval \${$3+:} false; then :
2547  $as_echo_n "(cached) " >&6
2548fi
2549eval ac_res=\$$3
2550	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551$as_echo "$ac_res" >&6; }
2552else
2553  # Is the header compilable?
2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2555$as_echo_n "checking $2 usability... " >&6; }
2556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557/* end confdefs.h.  */
2558$4
2559#include <$2>
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562  ac_header_compiler=yes
2563else
2564  ac_header_compiler=no
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2568$as_echo "$ac_header_compiler" >&6; }
2569
2570# Is the header present?
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2572$as_echo_n "checking $2 presence... " >&6; }
2573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574/* end confdefs.h.  */
2575#include <$2>
2576_ACEOF
2577if ac_fn_c_try_cpp "$LINENO"; then :
2578  ac_header_preproc=yes
2579else
2580  ac_header_preproc=no
2581fi
2582rm -f conftest.err conftest.i conftest.$ac_ext
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2584$as_echo "$ac_header_preproc" >&6; }
2585
2586# So?  What about this header?
2587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2588  yes:no: )
2589    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2590$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2591    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2592$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2593    ;;
2594  no:yes:* )
2595    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2596$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2597    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2598$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2599    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2600$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2601    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2602$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2603    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2604$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2605( $as_echo "## ----------------------------------------------------------------- ##
2606## Report this to https://gitlab.freedesktop.org/xorg/xserver/issues ##
2607## ----------------------------------------------------------------- ##"
2608     ) | sed "s/^/$as_me: WARNING:     /" >&2
2609    ;;
2610esac
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2612$as_echo_n "checking for $2... " >&6; }
2613if eval \${$3+:} false; then :
2614  $as_echo_n "(cached) " >&6
2615else
2616  eval "$3=\$ac_header_compiler"
2617fi
2618eval ac_res=\$$3
2619	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620$as_echo "$ac_res" >&6; }
2621fi
2622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2623
2624} # ac_fn_c_check_header_mongrel
2625
2626# ac_fn_c_try_run LINENO
2627# ----------------------
2628# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2629# that executables *can* be run.
2630ac_fn_c_try_run ()
2631{
2632  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2633  if { { ac_try="$ac_link"
2634case "(($ac_try" in
2635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636  *) ac_try_echo=$ac_try;;
2637esac
2638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2639$as_echo "$ac_try_echo"; } >&5
2640  (eval "$ac_link") 2>&5
2641  ac_status=$?
2642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2643  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2644  { { case "(($ac_try" in
2645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646  *) ac_try_echo=$ac_try;;
2647esac
2648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2649$as_echo "$ac_try_echo"; } >&5
2650  (eval "$ac_try") 2>&5
2651  ac_status=$?
2652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653  test $ac_status = 0; }; }; then :
2654  ac_retval=0
2655else
2656  $as_echo "$as_me: program exited with status $ac_status" >&5
2657       $as_echo "$as_me: failed program was:" >&5
2658sed 's/^/| /' conftest.$ac_ext >&5
2659
2660       ac_retval=$ac_status
2661fi
2662  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2663  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2664  as_fn_set_status $ac_retval
2665
2666} # ac_fn_c_try_run
2667
2668# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2669# -------------------------------------------------------
2670# Tests whether HEADER exists and can be compiled using the include files in
2671# INCLUDES, setting the cache variable VAR accordingly.
2672ac_fn_c_check_header_compile ()
2673{
2674  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2676$as_echo_n "checking for $2... " >&6; }
2677if eval \${$3+:} false; then :
2678  $as_echo_n "(cached) " >&6
2679else
2680  cat 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  eval "$3=yes"
2687else
2688  eval "$3=no"
2689fi
2690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691fi
2692eval ac_res=\$$3
2693	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2694$as_echo "$ac_res" >&6; }
2695  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2696
2697} # ac_fn_c_check_header_compile
2698
2699# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2700# ---------------------------------------------
2701# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2702# accordingly.
2703ac_fn_c_check_decl ()
2704{
2705  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706  as_decl_name=`echo $2|sed 's/ *(.*//'`
2707  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2709$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2710if eval \${$3+:} false; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h.  */
2715$4
2716int
2717main ()
2718{
2719#ifndef $as_decl_name
2720#ifdef __cplusplus
2721  (void) $as_decl_use;
2722#else
2723  (void) $as_decl_name;
2724#endif
2725#endif
2726
2727  ;
2728  return 0;
2729}
2730_ACEOF
2731if ac_fn_c_try_compile "$LINENO"; then :
2732  eval "$3=yes"
2733else
2734  eval "$3=no"
2735fi
2736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737fi
2738eval ac_res=\$$3
2739	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2740$as_echo "$ac_res" >&6; }
2741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742
2743} # ac_fn_c_check_decl
2744
2745# ac_fn_c_try_link LINENO
2746# -----------------------
2747# Try to link conftest.$ac_ext, and return whether this succeeded.
2748ac_fn_c_try_link ()
2749{
2750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2751  rm -f conftest.$ac_objext conftest$ac_exeext
2752  if { { ac_try="$ac_link"
2753case "(($ac_try" in
2754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755  *) ac_try_echo=$ac_try;;
2756esac
2757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758$as_echo "$ac_try_echo"; } >&5
2759  (eval "$ac_link") 2>conftest.err
2760  ac_status=$?
2761  if test -s conftest.err; then
2762    grep -v '^ *+' conftest.err >conftest.er1
2763    cat conftest.er1 >&5
2764    mv -f conftest.er1 conftest.err
2765  fi
2766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767  test $ac_status = 0; } && {
2768	 test -z "$ac_c_werror_flag" ||
2769	 test ! -s conftest.err
2770       } && test -s conftest$ac_exeext && {
2771	 test "$cross_compiling" = yes ||
2772	 test -x conftest$ac_exeext
2773       }; then :
2774  ac_retval=0
2775else
2776  $as_echo "$as_me: failed program was:" >&5
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
2779	ac_retval=1
2780fi
2781  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2782  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2783  # interfere with the next link command; also delete a directory that is
2784  # left behind by Apple's compiler.  We do this before executing the actions.
2785  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2787  as_fn_set_status $ac_retval
2788
2789} # ac_fn_c_try_link
2790
2791# ac_fn_c_check_func LINENO FUNC VAR
2792# ----------------------------------
2793# Tests whether FUNC exists, setting the cache variable VAR accordingly
2794ac_fn_c_check_func ()
2795{
2796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2798$as_echo_n "checking for $2... " >&6; }
2799if eval \${$3+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h.  */
2804/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2805   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2806#define $2 innocuous_$2
2807
2808/* System header to define __stub macros and hopefully few prototypes,
2809    which can conflict with char $2 (); below.
2810    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2811    <limits.h> exists even on freestanding compilers.  */
2812
2813#ifdef __STDC__
2814# include <limits.h>
2815#else
2816# include <assert.h>
2817#endif
2818
2819#undef $2
2820
2821/* Override any GCC internal prototype to avoid an error.
2822   Use char because int might match the return type of a GCC
2823   builtin and then its argument prototype would still apply.  */
2824#ifdef __cplusplus
2825extern "C"
2826#endif
2827char $2 ();
2828/* The GNU C library defines this for functions which it implements
2829    to always fail with ENOSYS.  Some functions are actually named
2830    something starting with __ and the normal name is an alias.  */
2831#if defined __stub_$2 || defined __stub___$2
2832choke me
2833#endif
2834
2835int
2836main ()
2837{
2838return $2 ();
2839  ;
2840  return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_link "$LINENO"; then :
2844  eval "$3=yes"
2845else
2846  eval "$3=no"
2847fi
2848rm -f core conftest.err conftest.$ac_objext \
2849    conftest$ac_exeext conftest.$ac_ext
2850fi
2851eval ac_res=\$$3
2852	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2853$as_echo "$ac_res" >&6; }
2854  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2855
2856} # ac_fn_c_check_func
2857
2858# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2859# --------------------------------------------
2860# Tries to find the compile-time value of EXPR in a program that includes
2861# INCLUDES, setting VAR accordingly. Returns whether the value could be
2862# computed
2863ac_fn_c_compute_int ()
2864{
2865  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2866  if test "$cross_compiling" = yes; then
2867    # Depending upon the size, compute the lo and hi bounds.
2868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869/* end confdefs.h.  */
2870$4
2871int
2872main ()
2873{
2874static int test_array [1 - 2 * !(($2) >= 0)];
2875test_array [0] = 0;
2876return test_array [0];
2877
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882if ac_fn_c_try_compile "$LINENO"; then :
2883  ac_lo=0 ac_mid=0
2884  while :; do
2885    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886/* end confdefs.h.  */
2887$4
2888int
2889main ()
2890{
2891static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2892test_array [0] = 0;
2893return test_array [0];
2894
2895  ;
2896  return 0;
2897}
2898_ACEOF
2899if ac_fn_c_try_compile "$LINENO"; then :
2900  ac_hi=$ac_mid; break
2901else
2902  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2903			if test $ac_lo -le $ac_mid; then
2904			  ac_lo= ac_hi=
2905			  break
2906			fi
2907			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2908fi
2909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910  done
2911else
2912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913/* end confdefs.h.  */
2914$4
2915int
2916main ()
2917{
2918static int test_array [1 - 2 * !(($2) < 0)];
2919test_array [0] = 0;
2920return test_array [0];
2921
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926if ac_fn_c_try_compile "$LINENO"; then :
2927  ac_hi=-1 ac_mid=-1
2928  while :; do
2929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930/* end confdefs.h.  */
2931$4
2932int
2933main ()
2934{
2935static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2936test_array [0] = 0;
2937return test_array [0];
2938
2939  ;
2940  return 0;
2941}
2942_ACEOF
2943if ac_fn_c_try_compile "$LINENO"; then :
2944  ac_lo=$ac_mid; break
2945else
2946  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2947			if test $ac_mid -le $ac_hi; then
2948			  ac_lo= ac_hi=
2949			  break
2950			fi
2951			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2952fi
2953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2954  done
2955else
2956  ac_lo= ac_hi=
2957fi
2958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959fi
2960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961# Binary search between lo and hi bounds.
2962while test "x$ac_lo" != "x$ac_hi"; do
2963  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h.  */
2966$4
2967int
2968main ()
2969{
2970static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2971test_array [0] = 0;
2972return test_array [0];
2973
2974  ;
2975  return 0;
2976}
2977_ACEOF
2978if ac_fn_c_try_compile "$LINENO"; then :
2979  ac_hi=$ac_mid
2980else
2981  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2982fi
2983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984done
2985case $ac_lo in #((
2986?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2987'') ac_retval=1 ;;
2988esac
2989  else
2990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991/* end confdefs.h.  */
2992$4
2993static long int longval () { return $2; }
2994static unsigned long int ulongval () { return $2; }
2995#include <stdio.h>
2996#include <stdlib.h>
2997int
2998main ()
2999{
3000
3001  FILE *f = fopen ("conftest.val", "w");
3002  if (! f)
3003    return 1;
3004  if (($2) < 0)
3005    {
3006      long int i = longval ();
3007      if (i != ($2))
3008	return 1;
3009      fprintf (f, "%ld", i);
3010    }
3011  else
3012    {
3013      unsigned long int i = ulongval ();
3014      if (i != ($2))
3015	return 1;
3016      fprintf (f, "%lu", i);
3017    }
3018  /* Do not output a trailing newline, as this causes \r\n confusion
3019     on some platforms.  */
3020  return ferror (f) || fclose (f) != 0;
3021
3022  ;
3023  return 0;
3024}
3025_ACEOF
3026if ac_fn_c_try_run "$LINENO"; then :
3027  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3028else
3029  ac_retval=1
3030fi
3031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3032  conftest.$ac_objext conftest.beam conftest.$ac_ext
3033rm -f conftest.val
3034
3035  fi
3036  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3037  as_fn_set_status $ac_retval
3038
3039} # ac_fn_c_compute_int
3040
3041# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3042# -------------------------------------------
3043# Tests whether TYPE exists after having included INCLUDES, setting cache
3044# variable VAR accordingly.
3045ac_fn_c_check_type ()
3046{
3047  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3049$as_echo_n "checking for $2... " >&6; }
3050if eval \${$3+:} false; then :
3051  $as_echo_n "(cached) " >&6
3052else
3053  eval "$3=no"
3054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3055/* end confdefs.h.  */
3056$4
3057int
3058main ()
3059{
3060if (sizeof ($2))
3061	 return 0;
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066if ac_fn_c_try_compile "$LINENO"; then :
3067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068/* end confdefs.h.  */
3069$4
3070int
3071main ()
3072{
3073if (sizeof (($2)))
3074	    return 0;
3075  ;
3076  return 0;
3077}
3078_ACEOF
3079if ac_fn_c_try_compile "$LINENO"; then :
3080
3081else
3082  eval "$3=yes"
3083fi
3084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085fi
3086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087fi
3088eval ac_res=\$$3
3089	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3090$as_echo "$ac_res" >&6; }
3091  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3092
3093} # ac_fn_c_check_type
3094
3095# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3096# ----------------------------------------------------
3097# Tries to find if the field MEMBER exists in type AGGR, after including
3098# INCLUDES, setting cache variable VAR accordingly.
3099ac_fn_c_check_member ()
3100{
3101  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3103$as_echo_n "checking for $2.$3... " >&6; }
3104if eval \${$4+:} false; then :
3105  $as_echo_n "(cached) " >&6
3106else
3107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108/* end confdefs.h.  */
3109$5
3110int
3111main ()
3112{
3113static $2 ac_aggr;
3114if (ac_aggr.$3)
3115return 0;
3116  ;
3117  return 0;
3118}
3119_ACEOF
3120if ac_fn_c_try_compile "$LINENO"; then :
3121  eval "$4=yes"
3122else
3123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124/* end confdefs.h.  */
3125$5
3126int
3127main ()
3128{
3129static $2 ac_aggr;
3130if (sizeof ac_aggr.$3)
3131return 0;
3132  ;
3133  return 0;
3134}
3135_ACEOF
3136if ac_fn_c_try_compile "$LINENO"; then :
3137  eval "$4=yes"
3138else
3139  eval "$4=no"
3140fi
3141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144fi
3145eval ac_res=\$$4
3146	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3147$as_echo "$ac_res" >&6; }
3148  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3149
3150} # ac_fn_c_check_member
3151cat >config.log <<_ACEOF
3152This file contains any messages produced by compilers while
3153running configure, to aid debugging if configure makes a mistake.
3154
3155It was created by xorg-server $as_me 21.1.3, which was
3156generated by GNU Autoconf 2.69.  Invocation command line was
3157
3158  $ $0 $@
3159
3160_ACEOF
3161exec 5>>config.log
3162{
3163cat <<_ASUNAME
3164## --------- ##
3165## Platform. ##
3166## --------- ##
3167
3168hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3169uname -m = `(uname -m) 2>/dev/null || echo unknown`
3170uname -r = `(uname -r) 2>/dev/null || echo unknown`
3171uname -s = `(uname -s) 2>/dev/null || echo unknown`
3172uname -v = `(uname -v) 2>/dev/null || echo unknown`
3173
3174/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3175/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3176
3177/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3178/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3179/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3180/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3181/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3182/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3183/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3184
3185_ASUNAME
3186
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192    $as_echo "PATH: $as_dir"
3193  done
3194IFS=$as_save_IFS
3195
3196} >&5
3197
3198cat >&5 <<_ACEOF
3199
3200
3201## ----------- ##
3202## Core tests. ##
3203## ----------- ##
3204
3205_ACEOF
3206
3207
3208# Keep a trace of the command line.
3209# Strip out --no-create and --no-recursion so they do not pile up.
3210# Strip out --silent because we don't want to record it for future runs.
3211# Also quote any args containing shell meta-characters.
3212# Make two passes to allow for proper duplicate-argument suppression.
3213ac_configure_args=
3214ac_configure_args0=
3215ac_configure_args1=
3216ac_must_keep_next=false
3217for ac_pass in 1 2
3218do
3219  for ac_arg
3220  do
3221    case $ac_arg in
3222    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3223    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3224    | -silent | --silent | --silen | --sile | --sil)
3225      continue ;;
3226    *\'*)
3227      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3228    esac
3229    case $ac_pass in
3230    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3231    2)
3232      as_fn_append ac_configure_args1 " '$ac_arg'"
3233      if test $ac_must_keep_next = true; then
3234	ac_must_keep_next=false # Got value, back to normal.
3235      else
3236	case $ac_arg in
3237	  *=* | --config-cache | -C | -disable-* | --disable-* \
3238	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3239	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3240	  | -with-* | --with-* | -without-* | --without-* | --x)
3241	    case "$ac_configure_args0 " in
3242	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3243	    esac
3244	    ;;
3245	  -* ) ac_must_keep_next=true ;;
3246	esac
3247      fi
3248      as_fn_append ac_configure_args " '$ac_arg'"
3249      ;;
3250    esac
3251  done
3252done
3253{ ac_configure_args0=; unset ac_configure_args0;}
3254{ ac_configure_args1=; unset ac_configure_args1;}
3255
3256# When interrupted or exit'd, cleanup temporary files, and complete
3257# config.log.  We remove comments because anyway the quotes in there
3258# would cause problems or look ugly.
3259# WARNING: Use '\'' to represent an apostrophe within the trap.
3260# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3261trap 'exit_status=$?
3262  # Save into config.log some information that might help in debugging.
3263  {
3264    echo
3265
3266    $as_echo "## ---------------- ##
3267## Cache variables. ##
3268## ---------------- ##"
3269    echo
3270    # The following way of writing the cache mishandles newlines in values,
3271(
3272  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3273    eval ac_val=\$$ac_var
3274    case $ac_val in #(
3275    *${as_nl}*)
3276      case $ac_var in #(
3277      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3278$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3279      esac
3280      case $ac_var in #(
3281      _ | IFS | as_nl) ;; #(
3282      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3283      *) { eval $ac_var=; unset $ac_var;} ;;
3284      esac ;;
3285    esac
3286  done
3287  (set) 2>&1 |
3288    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3289    *${as_nl}ac_space=\ *)
3290      sed -n \
3291	"s/'\''/'\''\\\\'\'''\''/g;
3292	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3293      ;; #(
3294    *)
3295      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3296      ;;
3297    esac |
3298    sort
3299)
3300    echo
3301
3302    $as_echo "## ----------------- ##
3303## Output variables. ##
3304## ----------------- ##"
3305    echo
3306    for ac_var in $ac_subst_vars
3307    do
3308      eval ac_val=\$$ac_var
3309      case $ac_val in
3310      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3311      esac
3312      $as_echo "$ac_var='\''$ac_val'\''"
3313    done | sort
3314    echo
3315
3316    if test -n "$ac_subst_files"; then
3317      $as_echo "## ------------------- ##
3318## File substitutions. ##
3319## ------------------- ##"
3320      echo
3321      for ac_var in $ac_subst_files
3322      do
3323	eval ac_val=\$$ac_var
3324	case $ac_val in
3325	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3326	esac
3327	$as_echo "$ac_var='\''$ac_val'\''"
3328      done | sort
3329      echo
3330    fi
3331
3332    if test -s confdefs.h; then
3333      $as_echo "## ----------- ##
3334## confdefs.h. ##
3335## ----------- ##"
3336      echo
3337      cat confdefs.h
3338      echo
3339    fi
3340    test "$ac_signal" != 0 &&
3341      $as_echo "$as_me: caught signal $ac_signal"
3342    $as_echo "$as_me: exit $exit_status"
3343  } >&5
3344  rm -f core *.core core.conftest.* &&
3345    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3346    exit $exit_status
3347' 0
3348for ac_signal in 1 2 13 15; do
3349  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3350done
3351ac_signal=0
3352
3353# confdefs.h avoids OS command line length limits that DEFS can exceed.
3354rm -f -r conftest* confdefs.h
3355
3356$as_echo "/* confdefs.h */" > confdefs.h
3357
3358# Predefined preprocessor variables.
3359
3360cat >>confdefs.h <<_ACEOF
3361#define PACKAGE_NAME "$PACKAGE_NAME"
3362_ACEOF
3363
3364cat >>confdefs.h <<_ACEOF
3365#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3366_ACEOF
3367
3368cat >>confdefs.h <<_ACEOF
3369#define PACKAGE_VERSION "$PACKAGE_VERSION"
3370_ACEOF
3371
3372cat >>confdefs.h <<_ACEOF
3373#define PACKAGE_STRING "$PACKAGE_STRING"
3374_ACEOF
3375
3376cat >>confdefs.h <<_ACEOF
3377#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3378_ACEOF
3379
3380cat >>confdefs.h <<_ACEOF
3381#define PACKAGE_URL "$PACKAGE_URL"
3382_ACEOF
3383
3384
3385# Let the site file select an alternate cache file if it wants to.
3386# Prefer an explicitly selected file to automatically selected ones.
3387ac_site_file1=NONE
3388ac_site_file2=NONE
3389if test -n "$CONFIG_SITE"; then
3390  # We do not want a PATH search for config.site.
3391  case $CONFIG_SITE in #((
3392    -*)  ac_site_file1=./$CONFIG_SITE;;
3393    */*) ac_site_file1=$CONFIG_SITE;;
3394    *)   ac_site_file1=./$CONFIG_SITE;;
3395  esac
3396elif test "x$prefix" != xNONE; then
3397  ac_site_file1=$prefix/share/config.site
3398  ac_site_file2=$prefix/etc/config.site
3399else
3400  ac_site_file1=$ac_default_prefix/share/config.site
3401  ac_site_file2=$ac_default_prefix/etc/config.site
3402fi
3403for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3404do
3405  test "x$ac_site_file" = xNONE && continue
3406  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3407    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3408$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3409    sed 's/^/| /' "$ac_site_file" >&5
3410    . "$ac_site_file" \
3411      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413as_fn_error $? "failed to load site script $ac_site_file
3414See \`config.log' for more details" "$LINENO" 5; }
3415  fi
3416done
3417
3418if test -r "$cache_file"; then
3419  # Some versions of bash will fail to source /dev/null (special files
3420  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3421  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3422    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3423$as_echo "$as_me: loading cache $cache_file" >&6;}
3424    case $cache_file in
3425      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3426      *)                      . "./$cache_file";;
3427    esac
3428  fi
3429else
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3431$as_echo "$as_me: creating cache $cache_file" >&6;}
3432  >$cache_file
3433fi
3434
3435# Check that the precious variables saved in the cache have kept the same
3436# value.
3437ac_cache_corrupted=false
3438for ac_var in $ac_precious_vars; do
3439  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3440  eval ac_new_set=\$ac_env_${ac_var}_set
3441  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3442  eval ac_new_val=\$ac_env_${ac_var}_value
3443  case $ac_old_set,$ac_new_set in
3444    set,)
3445      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3446$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3447      ac_cache_corrupted=: ;;
3448    ,set)
3449      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3450$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3451      ac_cache_corrupted=: ;;
3452    ,);;
3453    *)
3454      if test "x$ac_old_val" != "x$ac_new_val"; then
3455	# differences in whitespace do not lead to failure.
3456	ac_old_val_w=`echo x $ac_old_val`
3457	ac_new_val_w=`echo x $ac_new_val`
3458	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3459	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3460$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3461	  ac_cache_corrupted=:
3462	else
3463	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3464$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3465	  eval $ac_var=\$ac_old_val
3466	fi
3467	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3468$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3469	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3470$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3471      fi;;
3472  esac
3473  # Pass precious variables to config.status.
3474  if test "$ac_new_set" = set; then
3475    case $ac_new_val in
3476    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3477    *) ac_arg=$ac_var=$ac_new_val ;;
3478    esac
3479    case " $ac_configure_args " in
3480      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3481      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3482    esac
3483  fi
3484done
3485if $ac_cache_corrupted; then
3486  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3489$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3490  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3491fi
3492## -------------------- ##
3493## Main body of script. ##
3494## -------------------- ##
3495
3496ac_ext=c
3497ac_cpp='$CPP $CPPFLAGS'
3498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501
3502
3503RELEASE_DATE="2022-01-02"
3504RELEASE_NAME="Caramel Ice Cream"
3505
3506
3507am__api_version='1.16'
3508
3509ac_aux_dir=
3510for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3511  if test -f "$ac_dir/install-sh"; then
3512    ac_aux_dir=$ac_dir
3513    ac_install_sh="$ac_aux_dir/install-sh -c"
3514    break
3515  elif test -f "$ac_dir/install.sh"; then
3516    ac_aux_dir=$ac_dir
3517    ac_install_sh="$ac_aux_dir/install.sh -c"
3518    break
3519  elif test -f "$ac_dir/shtool"; then
3520    ac_aux_dir=$ac_dir
3521    ac_install_sh="$ac_aux_dir/shtool install -c"
3522    break
3523  fi
3524done
3525if test -z "$ac_aux_dir"; then
3526  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3527fi
3528
3529# These three variables are undocumented and unsupported,
3530# and are intended to be withdrawn in a future Autoconf release.
3531# They can cause serious problems if a builder's source tree is in a directory
3532# whose full name contains unusual characters.
3533ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3534ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3535ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3536
3537
3538# Find a good install program.  We prefer a C program (faster),
3539# so one script is as good as another.  But avoid the broken or
3540# incompatible versions:
3541# SysV /etc/install, /usr/sbin/install
3542# SunOS /usr/etc/install
3543# IRIX /sbin/install
3544# AIX /bin/install
3545# AmigaOS /C/install, which installs bootblocks on floppy discs
3546# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3547# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3548# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3549# OS/2's system install, which has a completely different semantic
3550# ./install, which can be erroneously created by make from ./install.sh.
3551# Reject install programs that cannot install multiple files.
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3553$as_echo_n "checking for a BSD-compatible install... " >&6; }
3554if test -z "$INSTALL"; then
3555if ${ac_cv_path_install+:} false; then :
3556  $as_echo_n "(cached) " >&6
3557else
3558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3559for as_dir in $PATH
3560do
3561  IFS=$as_save_IFS
3562  test -z "$as_dir" && as_dir=.
3563    # Account for people who put trailing slashes in PATH elements.
3564case $as_dir/ in #((
3565  ./ | .// | /[cC]/* | \
3566  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3567  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3568  /usr/ucb/* ) ;;
3569  *)
3570    # OSF1 and SCO ODT 3.0 have their own names for install.
3571    # Don't use installbsd from OSF since it installs stuff as root
3572    # by default.
3573    for ac_prog in ginstall scoinst install; do
3574      for ac_exec_ext in '' $ac_executable_extensions; do
3575	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3576	  if test $ac_prog = install &&
3577	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3578	    # AIX install.  It has an incompatible calling convention.
3579	    :
3580	  elif test $ac_prog = install &&
3581	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3582	    # program-specific install script used by HP pwplus--don't use.
3583	    :
3584	  else
3585	    rm -rf conftest.one conftest.two conftest.dir
3586	    echo one > conftest.one
3587	    echo two > conftest.two
3588	    mkdir conftest.dir
3589	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3590	      test -s conftest.one && test -s conftest.two &&
3591	      test -s conftest.dir/conftest.one &&
3592	      test -s conftest.dir/conftest.two
3593	    then
3594	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3595	      break 3
3596	    fi
3597	  fi
3598	fi
3599      done
3600    done
3601    ;;
3602esac
3603
3604  done
3605IFS=$as_save_IFS
3606
3607rm -rf conftest.one conftest.two conftest.dir
3608
3609fi
3610  if test "${ac_cv_path_install+set}" = set; then
3611    INSTALL=$ac_cv_path_install
3612  else
3613    # As a last resort, use the slow shell script.  Don't cache a
3614    # value for INSTALL within a source directory, because that will
3615    # break other packages using the cache if that directory is
3616    # removed, or if the value is a relative name.
3617    INSTALL=$ac_install_sh
3618  fi
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3621$as_echo "$INSTALL" >&6; }
3622
3623# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3624# It thinks the first close brace ends the variable substitution.
3625test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3626
3627test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3628
3629test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3630
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3632$as_echo_n "checking whether build environment is sane... " >&6; }
3633# Reject unsafe characters in $srcdir or the absolute working directory
3634# name.  Accept space and tab only in the latter.
3635am_lf='
3636'
3637case `pwd` in
3638  *[\\\"\#\$\&\'\`$am_lf]*)
3639    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3640esac
3641case $srcdir in
3642  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3643    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3644esac
3645
3646# Do 'set' in a subshell so we don't clobber the current shell's
3647# arguments.  Must try -L first in case configure is actually a
3648# symlink; some systems play weird games with the mod time of symlinks
3649# (eg FreeBSD returns the mod time of the symlink's containing
3650# directory).
3651if (
3652   am_has_slept=no
3653   for am_try in 1 2; do
3654     echo "timestamp, slept: $am_has_slept" > conftest.file
3655     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3656     if test "$*" = "X"; then
3657	# -L didn't work.
3658	set X `ls -t "$srcdir/configure" conftest.file`
3659     fi
3660     if test "$*" != "X $srcdir/configure conftest.file" \
3661	&& test "$*" != "X conftest.file $srcdir/configure"; then
3662
3663	# If neither matched, then we have a broken ls.  This can happen
3664	# if, for instance, CONFIG_SHELL is bash and it inherits a
3665	# broken ls alias from the environment.  This has actually
3666	# happened.  Such a system could not be considered "sane".
3667	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3668  alias in your environment" "$LINENO" 5
3669     fi
3670     if test "$2" = conftest.file || test $am_try -eq 2; then
3671       break
3672     fi
3673     # Just in case.
3674     sleep 1
3675     am_has_slept=yes
3676   done
3677   test "$2" = conftest.file
3678   )
3679then
3680   # Ok.
3681   :
3682else
3683   as_fn_error $? "newly created file is older than distributed files!
3684Check your system clock" "$LINENO" 5
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3687$as_echo "yes" >&6; }
3688# If we didn't sleep, we still need to ensure time stamps of config.status and
3689# generated files are strictly newer.
3690am_sleep_pid=
3691if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3692  ( sleep 1 ) &
3693  am_sleep_pid=$!
3694fi
3695
3696rm -f conftest.file
3697
3698test "$program_prefix" != NONE &&
3699  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3700# Use a double $ so make ignores it.
3701test "$program_suffix" != NONE &&
3702  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3703# Double any \ or $.
3704# By default was `s,x,x', remove it if useless.
3705ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3706program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3707
3708# Expand $ac_aux_dir to an absolute path.
3709am_aux_dir=`cd "$ac_aux_dir" && pwd`
3710
3711if test x"${MISSING+set}" != xset; then
3712  case $am_aux_dir in
3713  *\ * | *\	*)
3714    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3715  *)
3716    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3717  esac
3718fi
3719# Use eval to expand $SHELL
3720if eval "$MISSING --is-lightweight"; then
3721  am_missing_run="$MISSING "
3722else
3723  am_missing_run=
3724  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3725$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3726fi
3727
3728if test x"${install_sh+set}" != xset; then
3729  case $am_aux_dir in
3730  *\ * | *\	*)
3731    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3732  *)
3733    install_sh="\${SHELL} $am_aux_dir/install-sh"
3734  esac
3735fi
3736
3737# Installed binaries are usually stripped using 'strip' when the user
3738# run "make install-strip".  However 'strip' might not be the right
3739# tool to use in cross-compilation environments, therefore Automake
3740# will honor the 'STRIP' environment variable to overrule this program.
3741if test "$cross_compiling" != no; then
3742  if test -n "$ac_tool_prefix"; then
3743  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3744set dummy ${ac_tool_prefix}strip; ac_word=$2
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746$as_echo_n "checking for $ac_word... " >&6; }
3747if ${ac_cv_prog_STRIP+:} false; then :
3748  $as_echo_n "(cached) " >&6
3749else
3750  if test -n "$STRIP"; then
3751  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756  IFS=$as_save_IFS
3757  test -z "$as_dir" && as_dir=.
3758    for ac_exec_ext in '' $ac_executable_extensions; do
3759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762    break 2
3763  fi
3764done
3765  done
3766IFS=$as_save_IFS
3767
3768fi
3769fi
3770STRIP=$ac_cv_prog_STRIP
3771if test -n "$STRIP"; then
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3773$as_echo "$STRIP" >&6; }
3774else
3775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776$as_echo "no" >&6; }
3777fi
3778
3779
3780fi
3781if test -z "$ac_cv_prog_STRIP"; then
3782  ac_ct_STRIP=$STRIP
3783  # Extract the first word of "strip", so it can be a program name with args.
3784set dummy strip; ac_word=$2
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786$as_echo_n "checking for $ac_word... " >&6; }
3787if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  if test -n "$ac_ct_STRIP"; then
3791  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3792else
3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796  IFS=$as_save_IFS
3797  test -z "$as_dir" && as_dir=.
3798    for ac_exec_ext in '' $ac_executable_extensions; do
3799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800    ac_cv_prog_ac_ct_STRIP="strip"
3801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802    break 2
3803  fi
3804done
3805  done
3806IFS=$as_save_IFS
3807
3808fi
3809fi
3810ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3811if test -n "$ac_ct_STRIP"; then
3812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3813$as_echo "$ac_ct_STRIP" >&6; }
3814else
3815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816$as_echo "no" >&6; }
3817fi
3818
3819  if test "x$ac_ct_STRIP" = x; then
3820    STRIP=":"
3821  else
3822    case $cross_compiling:$ac_tool_warned in
3823yes:)
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826ac_tool_warned=yes ;;
3827esac
3828    STRIP=$ac_ct_STRIP
3829  fi
3830else
3831  STRIP="$ac_cv_prog_STRIP"
3832fi
3833
3834fi
3835INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3836
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3838$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3839if test -z "$MKDIR_P"; then
3840  if ${ac_cv_path_mkdir+:} false; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3845do
3846  IFS=$as_save_IFS
3847  test -z "$as_dir" && as_dir=.
3848    for ac_prog in mkdir gmkdir; do
3849	 for ac_exec_ext in '' $ac_executable_extensions; do
3850	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3851	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3852	     'mkdir (GNU coreutils) '* | \
3853	     'mkdir (coreutils) '* | \
3854	     'mkdir (fileutils) '4.1*)
3855	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3856	       break 3;;
3857	   esac
3858	 done
3859       done
3860  done
3861IFS=$as_save_IFS
3862
3863fi
3864
3865  test -d ./--version && rmdir ./--version
3866  if test "${ac_cv_path_mkdir+set}" = set; then
3867    MKDIR_P="$ac_cv_path_mkdir -p"
3868  else
3869    # As a last resort, use the slow shell script.  Don't cache a
3870    # value for MKDIR_P within a source directory, because that will
3871    # break other packages using the cache if that directory is
3872    # removed, or if the value is a relative name.
3873    MKDIR_P="$ac_install_sh -d"
3874  fi
3875fi
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3877$as_echo "$MKDIR_P" >&6; }
3878
3879for ac_prog in gawk mawk nawk awk
3880do
3881  # Extract the first word of "$ac_prog", so it can be a program name with args.
3882set dummy $ac_prog; ac_word=$2
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
3885if ${ac_cv_prog_AWK+:} false; then :
3886  $as_echo_n "(cached) " >&6
3887else
3888  if test -n "$AWK"; then
3889  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894  IFS=$as_save_IFS
3895  test -z "$as_dir" && as_dir=.
3896    for ac_exec_ext in '' $ac_executable_extensions; do
3897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898    ac_cv_prog_AWK="$ac_prog"
3899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900    break 2
3901  fi
3902done
3903  done
3904IFS=$as_save_IFS
3905
3906fi
3907fi
3908AWK=$ac_cv_prog_AWK
3909if test -n "$AWK"; then
3910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3911$as_echo "$AWK" >&6; }
3912else
3913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915fi
3916
3917
3918  test -n "$AWK" && break
3919done
3920
3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3922$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3923set x ${MAKE-make}
3924ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3925if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3926  $as_echo_n "(cached) " >&6
3927else
3928  cat >conftest.make <<\_ACEOF
3929SHELL = /bin/sh
3930all:
3931	@echo '@@@%%%=$(MAKE)=@@@%%%'
3932_ACEOF
3933# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3934case `${MAKE-make} -f conftest.make 2>/dev/null` in
3935  *@@@%%%=?*=@@@%%%*)
3936    eval ac_cv_prog_make_${ac_make}_set=yes;;
3937  *)
3938    eval ac_cv_prog_make_${ac_make}_set=no;;
3939esac
3940rm -f conftest.make
3941fi
3942if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3944$as_echo "yes" >&6; }
3945  SET_MAKE=
3946else
3947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948$as_echo "no" >&6; }
3949  SET_MAKE="MAKE=${MAKE-make}"
3950fi
3951
3952rm -rf .tst 2>/dev/null
3953mkdir .tst 2>/dev/null
3954if test -d .tst; then
3955  am__leading_dot=.
3956else
3957  am__leading_dot=_
3958fi
3959rmdir .tst 2>/dev/null
3960
3961# Check whether --enable-silent-rules was given.
3962if test "${enable_silent_rules+set}" = set; then :
3963  enableval=$enable_silent_rules;
3964fi
3965
3966case $enable_silent_rules in # (((
3967  yes) AM_DEFAULT_VERBOSITY=0;;
3968   no) AM_DEFAULT_VERBOSITY=1;;
3969    *) AM_DEFAULT_VERBOSITY=1;;
3970esac
3971am_make=${MAKE-make}
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3973$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3974if ${am_cv_make_support_nested_variables+:} false; then :
3975  $as_echo_n "(cached) " >&6
3976else
3977  if $as_echo 'TRUE=$(BAR$(V))
3978BAR0=false
3979BAR1=true
3980V=1
3981am__doit:
3982	@$(TRUE)
3983.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3984  am_cv_make_support_nested_variables=yes
3985else
3986  am_cv_make_support_nested_variables=no
3987fi
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3990$as_echo "$am_cv_make_support_nested_variables" >&6; }
3991if test $am_cv_make_support_nested_variables = yes; then
3992    AM_V='$(V)'
3993  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3994else
3995  AM_V=$AM_DEFAULT_VERBOSITY
3996  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3997fi
3998AM_BACKSLASH='\'
3999
4000if test "`cd $srcdir && pwd`" != "`pwd`"; then
4001  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4002  # is not polluted with repeated "-I."
4003  am__isrc=' -I$(srcdir)'
4004  # test to see if srcdir already configured
4005  if test -f $srcdir/config.status; then
4006    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4007  fi
4008fi
4009
4010# test whether we have cygpath
4011if test -z "$CYGPATH_W"; then
4012  if (cygpath --version) >/dev/null 2>/dev/null; then
4013    CYGPATH_W='cygpath -w'
4014  else
4015    CYGPATH_W=echo
4016  fi
4017fi
4018
4019
4020# Define the identity of the package.
4021 PACKAGE='xorg-server'
4022 VERSION='21.1.3'
4023
4024
4025cat >>confdefs.h <<_ACEOF
4026#define PACKAGE "$PACKAGE"
4027_ACEOF
4028
4029
4030cat >>confdefs.h <<_ACEOF
4031#define VERSION "$VERSION"
4032_ACEOF
4033
4034# Some tools Automake needs.
4035
4036ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4037
4038
4039AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4040
4041
4042AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4043
4044
4045AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4046
4047
4048MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4049
4050# For better backward compatibility.  To be removed once Automake 1.9.x
4051# dies out for good.  For more background, see:
4052# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4053# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4054mkdir_p='$(MKDIR_P)'
4055
4056# We need awk for the "check" target (and possibly the TAP driver).  The
4057# system "awk" is bad on some platforms.
4058# Always define AMTAR for backward compatibility.  Yes, it's still used
4059# in the wild :-(  We should find a proper way to deprecate it ...
4060AMTAR='$${TAR-tar}'
4061
4062
4063# We'll loop over all known methods to create a tar archive until one works.
4064_am_tools='gnutar  pax cpio none'
4065
4066am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4067
4068
4069
4070
4071
4072
4073# POSIX will say in a future version that running "rm -f" with no argument
4074# is OK; and we want to be able to make that assumption in our Makefile
4075# recipes.  So use an aggressive probe to check that the usage we want is
4076# actually supported "in the wild" to an acceptable degree.
4077# See automake bug#10828.
4078# To make any issue more visible, cause the running configure to be aborted
4079# by default if the 'rm' program in use doesn't match our expectations; the
4080# user can still override this though.
4081if rm -f && rm -fr && rm -rf; then : OK; else
4082  cat >&2 <<'END'
4083Oops!
4084
4085Your 'rm' program seems unable to run without file operands specified
4086on the command line, even when the '-f' option is present.  This is contrary
4087to the behaviour of most rm programs out there, and not conforming with
4088the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4089
4090Please tell bug-automake@gnu.org about your system, including the value
4091of your $PATH and any error possibly output before this message.  This
4092can help us improve future automake versions.
4093
4094END
4095  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4096    echo 'Configuration will proceed anyway, since you have set the' >&2
4097    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4098    echo >&2
4099  else
4100    cat >&2 <<'END'
4101Aborting the configuration process, to ensure you take notice of the issue.
4102
4103You can download and install GNU coreutils to get an 'rm' implementation
4104that behaves properly: <https://www.gnu.org/software/coreutils/>.
4105
4106If you want to complete the configuration process using your problematic
4107'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4108to "yes", and re-run configure.
4109
4110END
4111    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4112  fi
4113fi
4114
4115DEPDIR="${am__leading_dot}deps"
4116
4117ac_config_commands="$ac_config_commands depfiles"
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4120$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4121cat > confinc.mk << 'END'
4122am__doit:
4123	@echo this is the am__doit target >confinc.out
4124.PHONY: am__doit
4125END
4126am__include="#"
4127am__quote=
4128# BSD make does it like this.
4129echo '.include "confinc.mk" # ignored' > confmf.BSD
4130# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4131echo 'include confinc.mk # ignored' > confmf.GNU
4132_am_result=no
4133for s in GNU BSD; do
4134  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4135   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4136   ac_status=$?
4137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138   (exit $ac_status); }
4139  case $?:`cat confinc.out 2>/dev/null` in #(
4140  '0:this is the am__doit target') :
4141    case $s in #(
4142  BSD) :
4143    am__include='.include' am__quote='"' ;; #(
4144  *) :
4145    am__include='include' am__quote='' ;;
4146esac ;; #(
4147  *) :
4148     ;;
4149esac
4150  if test "$am__include" != "#"; then
4151    _am_result="yes ($s style)"
4152    break
4153  fi
4154done
4155rm -f confinc.* confmf.*
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4157$as_echo "${_am_result}" >&6; }
4158
4159# Check whether --enable-dependency-tracking was given.
4160if test "${enable_dependency_tracking+set}" = set; then :
4161  enableval=$enable_dependency_tracking;
4162fi
4163
4164if test "x$enable_dependency_tracking" != xno; then
4165  am_depcomp="$ac_aux_dir/depcomp"
4166  AMDEPBACKSLASH='\'
4167  am__nodep='_no'
4168fi
4169 if test "x$enable_dependency_tracking" != xno; then
4170  AMDEP_TRUE=
4171  AMDEP_FALSE='#'
4172else
4173  AMDEP_TRUE='#'
4174  AMDEP_FALSE=
4175fi
4176
4177
4178ac_ext=c
4179ac_cpp='$CPP $CPPFLAGS'
4180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183if test -n "$ac_tool_prefix"; then
4184  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4185set dummy ${ac_tool_prefix}gcc; ac_word=$2
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187$as_echo_n "checking for $ac_word... " >&6; }
4188if ${ac_cv_prog_CC+:} false; then :
4189  $as_echo_n "(cached) " >&6
4190else
4191  if test -n "$CC"; then
4192  ac_cv_prog_CC="$CC" # Let the user override the test.
4193else
4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH
4196do
4197  IFS=$as_save_IFS
4198  test -z "$as_dir" && as_dir=.
4199    for ac_exec_ext in '' $ac_executable_extensions; do
4200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203    break 2
4204  fi
4205done
4206  done
4207IFS=$as_save_IFS
4208
4209fi
4210fi
4211CC=$ac_cv_prog_CC
4212if test -n "$CC"; then
4213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4214$as_echo "$CC" >&6; }
4215else
4216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217$as_echo "no" >&6; }
4218fi
4219
4220
4221fi
4222if test -z "$ac_cv_prog_CC"; then
4223  ac_ct_CC=$CC
4224  # Extract the first word of "gcc", so it can be a program name with args.
4225set dummy gcc; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if ${ac_cv_prog_ac_ct_CC+:} false; then :
4229  $as_echo_n "(cached) " >&6
4230else
4231  if test -n "$ac_ct_CC"; then
4232  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239    for ac_exec_ext in '' $ac_executable_extensions; do
4240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241    ac_cv_prog_ac_ct_CC="gcc"
4242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243    break 2
4244  fi
4245done
4246  done
4247IFS=$as_save_IFS
4248
4249fi
4250fi
4251ac_ct_CC=$ac_cv_prog_ac_ct_CC
4252if test -n "$ac_ct_CC"; then
4253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4254$as_echo "$ac_ct_CC" >&6; }
4255else
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
4258fi
4259
4260  if test "x$ac_ct_CC" = x; then
4261    CC=""
4262  else
4263    case $cross_compiling:$ac_tool_warned in
4264yes:)
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267ac_tool_warned=yes ;;
4268esac
4269    CC=$ac_ct_CC
4270  fi
4271else
4272  CC="$ac_cv_prog_CC"
4273fi
4274
4275if test -z "$CC"; then
4276          if test -n "$ac_tool_prefix"; then
4277    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4278set dummy ${ac_tool_prefix}cc; ac_word=$2
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4280$as_echo_n "checking for $ac_word... " >&6; }
4281if ${ac_cv_prog_CC+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  if test -n "$CC"; then
4285  ac_cv_prog_CC="$CC" # Let the user override the test.
4286else
4287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288for as_dir in $PATH
4289do
4290  IFS=$as_save_IFS
4291  test -z "$as_dir" && as_dir=.
4292    for ac_exec_ext in '' $ac_executable_extensions; do
4293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294    ac_cv_prog_CC="${ac_tool_prefix}cc"
4295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296    break 2
4297  fi
4298done
4299  done
4300IFS=$as_save_IFS
4301
4302fi
4303fi
4304CC=$ac_cv_prog_CC
4305if test -n "$CC"; then
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307$as_echo "$CC" >&6; }
4308else
4309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
4311fi
4312
4313
4314  fi
4315fi
4316if test -z "$CC"; then
4317  # Extract the first word of "cc", so it can be a program name with args.
4318set dummy cc; ac_word=$2
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320$as_echo_n "checking for $ac_word... " >&6; }
4321if ${ac_cv_prog_CC+:} false; then :
4322  $as_echo_n "(cached) " >&6
4323else
4324  if test -n "$CC"; then
4325  ac_cv_prog_CC="$CC" # Let the user override the test.
4326else
4327  ac_prog_rejected=no
4328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331  IFS=$as_save_IFS
4332  test -z "$as_dir" && as_dir=.
4333    for ac_exec_ext in '' $ac_executable_extensions; do
4334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4335    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4336       ac_prog_rejected=yes
4337       continue
4338     fi
4339    ac_cv_prog_CC="cc"
4340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344  done
4345IFS=$as_save_IFS
4346
4347if test $ac_prog_rejected = yes; then
4348  # We found a bogon in the path, so make sure we never use it.
4349  set dummy $ac_cv_prog_CC
4350  shift
4351  if test $# != 0; then
4352    # We chose a different compiler from the bogus one.
4353    # However, it has the same basename, so the bogon will be chosen
4354    # first if we set CC to just the basename; use the full file name.
4355    shift
4356    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4357  fi
4358fi
4359fi
4360fi
4361CC=$ac_cv_prog_CC
4362if test -n "$CC"; then
4363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4364$as_echo "$CC" >&6; }
4365else
4366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367$as_echo "no" >&6; }
4368fi
4369
4370
4371fi
4372if test -z "$CC"; then
4373  if test -n "$ac_tool_prefix"; then
4374  for ac_prog in cl.exe
4375  do
4376    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4377set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379$as_echo_n "checking for $ac_word... " >&6; }
4380if ${ac_cv_prog_CC+:} false; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383  if test -n "$CC"; then
4384  ac_cv_prog_CC="$CC" # Let the user override the test.
4385else
4386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387for as_dir in $PATH
4388do
4389  IFS=$as_save_IFS
4390  test -z "$as_dir" && as_dir=.
4391    for ac_exec_ext in '' $ac_executable_extensions; do
4392  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4395    break 2
4396  fi
4397done
4398  done
4399IFS=$as_save_IFS
4400
4401fi
4402fi
4403CC=$ac_cv_prog_CC
4404if test -n "$CC"; then
4405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4406$as_echo "$CC" >&6; }
4407else
4408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409$as_echo "no" >&6; }
4410fi
4411
4412
4413    test -n "$CC" && break
4414  done
4415fi
4416if test -z "$CC"; then
4417  ac_ct_CC=$CC
4418  for ac_prog in cl.exe
4419do
4420  # Extract the first word of "$ac_prog", so it can be a program name with args.
4421set dummy $ac_prog; ac_word=$2
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4423$as_echo_n "checking for $ac_word... " >&6; }
4424if ${ac_cv_prog_ac_ct_CC+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  if test -n "$ac_ct_CC"; then
4428  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4429else
4430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431for as_dir in $PATH
4432do
4433  IFS=$as_save_IFS
4434  test -z "$as_dir" && as_dir=.
4435    for ac_exec_ext in '' $ac_executable_extensions; do
4436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437    ac_cv_prog_ac_ct_CC="$ac_prog"
4438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4439    break 2
4440  fi
4441done
4442  done
4443IFS=$as_save_IFS
4444
4445fi
4446fi
4447ac_ct_CC=$ac_cv_prog_ac_ct_CC
4448if test -n "$ac_ct_CC"; then
4449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4450$as_echo "$ac_ct_CC" >&6; }
4451else
4452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4453$as_echo "no" >&6; }
4454fi
4455
4456
4457  test -n "$ac_ct_CC" && break
4458done
4459
4460  if test "x$ac_ct_CC" = x; then
4461    CC=""
4462  else
4463    case $cross_compiling:$ac_tool_warned in
4464yes:)
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4467ac_tool_warned=yes ;;
4468esac
4469    CC=$ac_ct_CC
4470  fi
4471fi
4472
4473fi
4474
4475
4476test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478as_fn_error $? "no acceptable C compiler found in \$PATH
4479See \`config.log' for more details" "$LINENO" 5; }
4480
4481# Provide some information about the compiler.
4482$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4483set X $ac_compile
4484ac_compiler=$2
4485for ac_option in --version -v -V -qversion; do
4486  { { ac_try="$ac_compiler $ac_option >&5"
4487case "(($ac_try" in
4488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489  *) ac_try_echo=$ac_try;;
4490esac
4491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492$as_echo "$ac_try_echo"; } >&5
4493  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4494  ac_status=$?
4495  if test -s conftest.err; then
4496    sed '10a\
4497... rest of stderr output deleted ...
4498         10q' conftest.err >conftest.er1
4499    cat conftest.er1 >&5
4500  fi
4501  rm -f conftest.er1 conftest.err
4502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503  test $ac_status = 0; }
4504done
4505
4506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507/* end confdefs.h.  */
4508
4509int
4510main ()
4511{
4512
4513  ;
4514  return 0;
4515}
4516_ACEOF
4517ac_clean_files_save=$ac_clean_files
4518ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4519# Try to create an executable without -o first, disregard a.out.
4520# It will help us diagnose broken compilers, and finding out an intuition
4521# of exeext.
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4523$as_echo_n "checking whether the C compiler works... " >&6; }
4524ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4525
4526# The possible output files:
4527ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4528
4529ac_rmfiles=
4530for ac_file in $ac_files
4531do
4532  case $ac_file in
4533    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4534    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4535  esac
4536done
4537rm -f $ac_rmfiles
4538
4539if { { ac_try="$ac_link_default"
4540case "(($ac_try" in
4541  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542  *) ac_try_echo=$ac_try;;
4543esac
4544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545$as_echo "$ac_try_echo"; } >&5
4546  (eval "$ac_link_default") 2>&5
4547  ac_status=$?
4548  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549  test $ac_status = 0; }; then :
4550  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4551# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4552# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4553# so that the user can short-circuit this test for compilers unknown to
4554# Autoconf.
4555for ac_file in $ac_files ''
4556do
4557  test -f "$ac_file" || continue
4558  case $ac_file in
4559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4560	;;
4561    [ab].out )
4562	# We found the default executable, but exeext='' is most
4563	# certainly right.
4564	break;;
4565    *.* )
4566	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4567	then :; else
4568	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4569	fi
4570	# We set ac_cv_exeext here because the later test for it is not
4571	# safe: cross compilers may not add the suffix if given an `-o'
4572	# argument, so we may need to know it at that point already.
4573	# Even if this section looks crufty: it has the advantage of
4574	# actually working.
4575	break;;
4576    * )
4577	break;;
4578  esac
4579done
4580test "$ac_cv_exeext" = no && ac_cv_exeext=
4581
4582else
4583  ac_file=''
4584fi
4585if test -z "$ac_file"; then :
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587$as_echo "no" >&6; }
4588$as_echo "$as_me: failed program was:" >&5
4589sed 's/^/| /' conftest.$ac_ext >&5
4590
4591{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593as_fn_error 77 "C compiler cannot create executables
4594See \`config.log' for more details" "$LINENO" 5; }
4595else
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4597$as_echo "yes" >&6; }
4598fi
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4600$as_echo_n "checking for C compiler default output file name... " >&6; }
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4602$as_echo "$ac_file" >&6; }
4603ac_exeext=$ac_cv_exeext
4604
4605rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4606ac_clean_files=$ac_clean_files_save
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4608$as_echo_n "checking for suffix of executables... " >&6; }
4609if { { ac_try="$ac_link"
4610case "(($ac_try" in
4611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612  *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615$as_echo "$ac_try_echo"; } >&5
4616  (eval "$ac_link") 2>&5
4617  ac_status=$?
4618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619  test $ac_status = 0; }; then :
4620  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4621# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4622# work properly (i.e., refer to `conftest.exe'), while it won't with
4623# `rm'.
4624for ac_file in conftest.exe conftest conftest.*; do
4625  test -f "$ac_file" || continue
4626  case $ac_file in
4627    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4628    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4629	  break;;
4630    * ) break;;
4631  esac
4632done
4633else
4634  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4636as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4637See \`config.log' for more details" "$LINENO" 5; }
4638fi
4639rm -f conftest conftest$ac_cv_exeext
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4641$as_echo "$ac_cv_exeext" >&6; }
4642
4643rm -f conftest.$ac_ext
4644EXEEXT=$ac_cv_exeext
4645ac_exeext=$EXEEXT
4646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h.  */
4648#include <stdio.h>
4649int
4650main ()
4651{
4652FILE *f = fopen ("conftest.out", "w");
4653 return ferror (f) || fclose (f) != 0;
4654
4655  ;
4656  return 0;
4657}
4658_ACEOF
4659ac_clean_files="$ac_clean_files conftest.out"
4660# Check that the compiler produces executables we can run.  If not, either
4661# the compiler is broken, or we cross compile.
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4663$as_echo_n "checking whether we are cross compiling... " >&6; }
4664if test "$cross_compiling" != yes; then
4665  { { ac_try="$ac_link"
4666case "(($ac_try" in
4667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668  *) ac_try_echo=$ac_try;;
4669esac
4670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671$as_echo "$ac_try_echo"; } >&5
4672  (eval "$ac_link") 2>&5
4673  ac_status=$?
4674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675  test $ac_status = 0; }
4676  if { ac_try='./conftest$ac_cv_exeext'
4677  { { case "(($ac_try" in
4678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679  *) ac_try_echo=$ac_try;;
4680esac
4681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682$as_echo "$ac_try_echo"; } >&5
4683  (eval "$ac_try") 2>&5
4684  ac_status=$?
4685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686  test $ac_status = 0; }; }; then
4687    cross_compiling=no
4688  else
4689    if test "$cross_compiling" = maybe; then
4690	cross_compiling=yes
4691    else
4692	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4694as_fn_error $? "cannot run C compiled programs.
4695If you meant to cross compile, use \`--host'.
4696See \`config.log' for more details" "$LINENO" 5; }
4697    fi
4698  fi
4699fi
4700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4701$as_echo "$cross_compiling" >&6; }
4702
4703rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4704ac_clean_files=$ac_clean_files_save
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4706$as_echo_n "checking for suffix of object files... " >&6; }
4707if ${ac_cv_objext+:} false; then :
4708  $as_echo_n "(cached) " >&6
4709else
4710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h.  */
4712
4713int
4714main ()
4715{
4716
4717  ;
4718  return 0;
4719}
4720_ACEOF
4721rm -f conftest.o conftest.obj
4722if { { ac_try="$ac_compile"
4723case "(($ac_try" in
4724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725  *) ac_try_echo=$ac_try;;
4726esac
4727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4728$as_echo "$ac_try_echo"; } >&5
4729  (eval "$ac_compile") 2>&5
4730  ac_status=$?
4731  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732  test $ac_status = 0; }; then :
4733  for ac_file in conftest.o conftest.obj conftest.*; do
4734  test -f "$ac_file" || continue;
4735  case $ac_file in
4736    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4737    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4738       break;;
4739  esac
4740done
4741else
4742  $as_echo "$as_me: failed program was:" >&5
4743sed 's/^/| /' conftest.$ac_ext >&5
4744
4745{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4747as_fn_error $? "cannot compute suffix of object files: cannot compile
4748See \`config.log' for more details" "$LINENO" 5; }
4749fi
4750rm -f conftest.$ac_cv_objext conftest.$ac_ext
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4753$as_echo "$ac_cv_objext" >&6; }
4754OBJEXT=$ac_cv_objext
4755ac_objext=$OBJEXT
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4757$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4758if ${ac_cv_c_compiler_gnu+:} false; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763
4764int
4765main ()
4766{
4767#ifndef __GNUC__
4768       choke me
4769#endif
4770
4771  ;
4772  return 0;
4773}
4774_ACEOF
4775if ac_fn_c_try_compile "$LINENO"; then :
4776  ac_compiler_gnu=yes
4777else
4778  ac_compiler_gnu=no
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781ac_cv_c_compiler_gnu=$ac_compiler_gnu
4782
4783fi
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4785$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4786if test $ac_compiler_gnu = yes; then
4787  GCC=yes
4788else
4789  GCC=
4790fi
4791ac_test_CFLAGS=${CFLAGS+set}
4792ac_save_CFLAGS=$CFLAGS
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4794$as_echo_n "checking whether $CC accepts -g... " >&6; }
4795if ${ac_cv_prog_cc_g+:} false; then :
4796  $as_echo_n "(cached) " >&6
4797else
4798  ac_save_c_werror_flag=$ac_c_werror_flag
4799   ac_c_werror_flag=yes
4800   ac_cv_prog_cc_g=no
4801   CFLAGS="-g"
4802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h.  */
4804
4805int
4806main ()
4807{
4808
4809  ;
4810  return 0;
4811}
4812_ACEOF
4813if ac_fn_c_try_compile "$LINENO"; then :
4814  ac_cv_prog_cc_g=yes
4815else
4816  CFLAGS=""
4817      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4818/* end confdefs.h.  */
4819
4820int
4821main ()
4822{
4823
4824  ;
4825  return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_compile "$LINENO"; then :
4829
4830else
4831  ac_c_werror_flag=$ac_save_c_werror_flag
4832	 CFLAGS="-g"
4833	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4834/* end confdefs.h.  */
4835
4836int
4837main ()
4838{
4839
4840  ;
4841  return 0;
4842}
4843_ACEOF
4844if ac_fn_c_try_compile "$LINENO"; then :
4845  ac_cv_prog_cc_g=yes
4846fi
4847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4848fi
4849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850fi
4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852   ac_c_werror_flag=$ac_save_c_werror_flag
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4855$as_echo "$ac_cv_prog_cc_g" >&6; }
4856if test "$ac_test_CFLAGS" = set; then
4857  CFLAGS=$ac_save_CFLAGS
4858elif test $ac_cv_prog_cc_g = yes; then
4859  if test "$GCC" = yes; then
4860    CFLAGS="-g -O2"
4861  else
4862    CFLAGS="-g"
4863  fi
4864else
4865  if test "$GCC" = yes; then
4866    CFLAGS="-O2"
4867  else
4868    CFLAGS=
4869  fi
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4872$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4873if ${ac_cv_prog_cc_c89+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  ac_cv_prog_cc_c89=no
4877ac_save_CC=$CC
4878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h.  */
4880#include <stdarg.h>
4881#include <stdio.h>
4882struct stat;
4883/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4884struct buf { int x; };
4885FILE * (*rcsopen) (struct buf *, struct stat *, int);
4886static char *e (p, i)
4887     char **p;
4888     int i;
4889{
4890  return p[i];
4891}
4892static char *f (char * (*g) (char **, int), char **p, ...)
4893{
4894  char *s;
4895  va_list v;
4896  va_start (v,p);
4897  s = g (p, va_arg (v,int));
4898  va_end (v);
4899  return s;
4900}
4901
4902/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4903   function prototypes and stuff, but not '\xHH' hex character constants.
4904   These don't provoke an error unfortunately, instead are silently treated
4905   as 'x'.  The following induces an error, until -std is added to get
4906   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4907   array size at least.  It's necessary to write '\x00'==0 to get something
4908   that's true only with -std.  */
4909int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4910
4911/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4912   inside strings and character constants.  */
4913#define FOO(x) 'x'
4914int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4915
4916int test (int i, double x);
4917struct s1 {int (*f) (int a);};
4918struct s2 {int (*f) (double a);};
4919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4920int argc;
4921char **argv;
4922int
4923main ()
4924{
4925return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4926  ;
4927  return 0;
4928}
4929_ACEOF
4930for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4931	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4932do
4933  CC="$ac_save_CC $ac_arg"
4934  if ac_fn_c_try_compile "$LINENO"; then :
4935  ac_cv_prog_cc_c89=$ac_arg
4936fi
4937rm -f core conftest.err conftest.$ac_objext
4938  test "x$ac_cv_prog_cc_c89" != "xno" && break
4939done
4940rm -f conftest.$ac_ext
4941CC=$ac_save_CC
4942
4943fi
4944# AC_CACHE_VAL
4945case "x$ac_cv_prog_cc_c89" in
4946  x)
4947    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4948$as_echo "none needed" >&6; } ;;
4949  xno)
4950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4951$as_echo "unsupported" >&6; } ;;
4952  *)
4953    CC="$CC $ac_cv_prog_cc_c89"
4954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4955$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4956esac
4957if test "x$ac_cv_prog_cc_c89" != xno; then :
4958
4959fi
4960
4961ac_ext=c
4962ac_cpp='$CPP $CPPFLAGS'
4963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966
4967ac_ext=c
4968ac_cpp='$CPP $CPPFLAGS'
4969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_c_compiler_gnu
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4973$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4974if ${am_cv_prog_cc_c_o+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979
4980int
4981main ()
4982{
4983
4984  ;
4985  return 0;
4986}
4987_ACEOF
4988  # Make sure it works both with $CC and with simple cc.
4989  # Following AC_PROG_CC_C_O, we do the test twice because some
4990  # compilers refuse to overwrite an existing .o file with -o,
4991  # though they will create one.
4992  am_cv_prog_cc_c_o=yes
4993  for am_i in 1 2; do
4994    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4995   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4996   ac_status=$?
4997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998   (exit $ac_status); } \
4999         && test -f conftest2.$ac_objext; then
5000      : OK
5001    else
5002      am_cv_prog_cc_c_o=no
5003      break
5004    fi
5005  done
5006  rm -f core conftest*
5007  unset am_i
5008fi
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5010$as_echo "$am_cv_prog_cc_c_o" >&6; }
5011if test "$am_cv_prog_cc_c_o" != yes; then
5012   # Losing compiler, so override with the script.
5013   # FIXME: It is wrong to rewrite CC.
5014   # But if we don't then we get into trouble of one sort or another.
5015   # A longer-term fix would be to have automake use am__CC in this case,
5016   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5017   CC="$am_aux_dir/compile $CC"
5018fi
5019ac_ext=c
5020ac_cpp='$CPP $CPPFLAGS'
5021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5023ac_compiler_gnu=$ac_cv_c_compiler_gnu
5024
5025
5026depcc="$CC"   am_compiler_list=
5027
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5029$as_echo_n "checking dependency style of $depcc... " >&6; }
5030if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5034  # We make a subdir and do the tests there.  Otherwise we can end up
5035  # making bogus files that we don't know about and never remove.  For
5036  # instance it was reported that on HP-UX the gcc test will end up
5037  # making a dummy file named 'D' -- because '-MD' means "put the output
5038  # in D".
5039  rm -rf conftest.dir
5040  mkdir conftest.dir
5041  # Copy depcomp to subdir because otherwise we won't find it if we're
5042  # using a relative directory.
5043  cp "$am_depcomp" conftest.dir
5044  cd conftest.dir
5045  # We will build objects and dependencies in a subdirectory because
5046  # it helps to detect inapplicable dependency modes.  For instance
5047  # both Tru64's cc and ICC support -MD to output dependencies as a
5048  # side effect of compilation, but ICC will put the dependencies in
5049  # the current directory while Tru64 will put them in the object
5050  # directory.
5051  mkdir sub
5052
5053  am_cv_CC_dependencies_compiler_type=none
5054  if test "$am_compiler_list" = ""; then
5055     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5056  fi
5057  am__universal=false
5058  case " $depcc " in #(
5059     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5060     esac
5061
5062  for depmode in $am_compiler_list; do
5063    # Setup a source with many dependencies, because some compilers
5064    # like to wrap large dependency lists on column 80 (with \), and
5065    # we should not choose a depcomp mode which is confused by this.
5066    #
5067    # We need to recreate these files for each test, as the compiler may
5068    # overwrite some of them when testing with obscure command lines.
5069    # This happens at least with the AIX C compiler.
5070    : > sub/conftest.c
5071    for i in 1 2 3 4 5 6; do
5072      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5073      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5074      # Solaris 10 /bin/sh.
5075      echo '/* dummy */' > sub/conftst$i.h
5076    done
5077    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5078
5079    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5080    # mode.  It turns out that the SunPro C++ compiler does not properly
5081    # handle '-M -o', and we need to detect this.  Also, some Intel
5082    # versions had trouble with output in subdirs.
5083    am__obj=sub/conftest.${OBJEXT-o}
5084    am__minus_obj="-o $am__obj"
5085    case $depmode in
5086    gcc)
5087      # This depmode causes a compiler race in universal mode.
5088      test "$am__universal" = false || continue
5089      ;;
5090    nosideeffect)
5091      # After this tag, mechanisms are not by side-effect, so they'll
5092      # only be used when explicitly requested.
5093      if test "x$enable_dependency_tracking" = xyes; then
5094	continue
5095      else
5096	break
5097      fi
5098      ;;
5099    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5100      # This compiler won't grok '-c -o', but also, the minuso test has
5101      # not run yet.  These depmodes are late enough in the game, and
5102      # so weak that their functioning should not be impacted.
5103      am__obj=conftest.${OBJEXT-o}
5104      am__minus_obj=
5105      ;;
5106    none) break ;;
5107    esac
5108    if depmode=$depmode \
5109       source=sub/conftest.c object=$am__obj \
5110       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5111       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5112         >/dev/null 2>conftest.err &&
5113       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5114       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5115       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5116       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5117      # icc doesn't choke on unknown options, it will just issue warnings
5118      # or remarks (even with -Werror).  So we grep stderr for any message
5119      # that says an option was ignored or not supported.
5120      # When given -MP, icc 7.0 and 7.1 complain thusly:
5121      #   icc: Command line warning: ignoring option '-M'; no argument required
5122      # The diagnosis changed in icc 8.0:
5123      #   icc: Command line remark: option '-MP' not supported
5124      if (grep 'ignoring option' conftest.err ||
5125          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5126        am_cv_CC_dependencies_compiler_type=$depmode
5127        break
5128      fi
5129    fi
5130  done
5131
5132  cd ..
5133  rm -rf conftest.dir
5134else
5135  am_cv_CC_dependencies_compiler_type=none
5136fi
5137
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5140$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5141CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5142
5143 if
5144  test "x$enable_dependency_tracking" != xno \
5145  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5146  am__fastdepCC_TRUE=
5147  am__fastdepCC_FALSE='#'
5148else
5149  am__fastdepCC_TRUE='#'
5150  am__fastdepCC_FALSE=
5151fi
5152
5153
5154
5155ac_ext=c
5156ac_cpp='$CPP $CPPFLAGS'
5157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159ac_compiler_gnu=$ac_cv_c_compiler_gnu
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5161$as_echo_n "checking how to run the C preprocessor... " >&6; }
5162# On Suns, sometimes $CPP names a directory.
5163if test -n "$CPP" && test -d "$CPP"; then
5164  CPP=
5165fi
5166if test -z "$CPP"; then
5167  if ${ac_cv_prog_CPP+:} false; then :
5168  $as_echo_n "(cached) " >&6
5169else
5170      # Double quotes because CPP needs to be expanded
5171    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5172    do
5173      ac_preproc_ok=false
5174for ac_c_preproc_warn_flag in '' yes
5175do
5176  # Use a header file that comes with gcc, so configuring glibc
5177  # with a fresh cross-compiler works.
5178  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5179  # <limits.h> exists even on freestanding compilers.
5180  # On the NeXT, cc -E runs the code through the compiler's parser,
5181  # not just through cpp. "Syntax error" is here to catch this case.
5182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183/* end confdefs.h.  */
5184#ifdef __STDC__
5185# include <limits.h>
5186#else
5187# include <assert.h>
5188#endif
5189		     Syntax error
5190_ACEOF
5191if ac_fn_c_try_cpp "$LINENO"; then :
5192
5193else
5194  # Broken: fails on valid input.
5195continue
5196fi
5197rm -f conftest.err conftest.i conftest.$ac_ext
5198
5199  # OK, works on sane cases.  Now check whether nonexistent headers
5200  # can be detected and how.
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203#include <ac_nonexistent.h>
5204_ACEOF
5205if ac_fn_c_try_cpp "$LINENO"; then :
5206  # Broken: success on invalid input.
5207continue
5208else
5209  # Passes both tests.
5210ac_preproc_ok=:
5211break
5212fi
5213rm -f conftest.err conftest.i conftest.$ac_ext
5214
5215done
5216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217rm -f conftest.i conftest.err conftest.$ac_ext
5218if $ac_preproc_ok; then :
5219  break
5220fi
5221
5222    done
5223    ac_cv_prog_CPP=$CPP
5224
5225fi
5226  CPP=$ac_cv_prog_CPP
5227else
5228  ac_cv_prog_CPP=$CPP
5229fi
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5231$as_echo "$CPP" >&6; }
5232ac_preproc_ok=false
5233for ac_c_preproc_warn_flag in '' yes
5234do
5235  # Use a header file that comes with gcc, so configuring glibc
5236  # with a fresh cross-compiler works.
5237  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238  # <limits.h> exists even on freestanding compilers.
5239  # On the NeXT, cc -E runs the code through the compiler's parser,
5240  # not just through cpp. "Syntax error" is here to catch this case.
5241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242/* end confdefs.h.  */
5243#ifdef __STDC__
5244# include <limits.h>
5245#else
5246# include <assert.h>
5247#endif
5248		     Syntax error
5249_ACEOF
5250if ac_fn_c_try_cpp "$LINENO"; then :
5251
5252else
5253  # Broken: fails on valid input.
5254continue
5255fi
5256rm -f conftest.err conftest.i conftest.$ac_ext
5257
5258  # OK, works on sane cases.  Now check whether nonexistent headers
5259  # can be detected and how.
5260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h.  */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if ac_fn_c_try_cpp "$LINENO"; then :
5265  # Broken: success on invalid input.
5266continue
5267else
5268  # Passes both tests.
5269ac_preproc_ok=:
5270break
5271fi
5272rm -f conftest.err conftest.i conftest.$ac_ext
5273
5274done
5275# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5276rm -f conftest.i conftest.err conftest.$ac_ext
5277if $ac_preproc_ok; then :
5278
5279else
5280  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5282as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5283See \`config.log' for more details" "$LINENO" 5; }
5284fi
5285
5286ac_ext=c
5287ac_cpp='$CPP $CPPFLAGS'
5288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5290ac_compiler_gnu=$ac_cv_c_compiler_gnu
5291
5292
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5294$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5295if ${ac_cv_path_GREP+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  if test -z "$GREP"; then
5299  ac_path_GREP_found=false
5300  # Loop through the user's path and test for each of PROGNAME-LIST
5301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5303do
5304  IFS=$as_save_IFS
5305  test -z "$as_dir" && as_dir=.
5306    for ac_prog in grep ggrep; do
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5309      as_fn_executable_p "$ac_path_GREP" || continue
5310# Check for GNU ac_path_GREP and select it if it is found.
5311  # Check for GNU $ac_path_GREP
5312case `"$ac_path_GREP" --version 2>&1` in
5313*GNU*)
5314  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5315*)
5316  ac_count=0
5317  $as_echo_n 0123456789 >"conftest.in"
5318  while :
5319  do
5320    cat "conftest.in" "conftest.in" >"conftest.tmp"
5321    mv "conftest.tmp" "conftest.in"
5322    cp "conftest.in" "conftest.nl"
5323    $as_echo 'GREP' >> "conftest.nl"
5324    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326    as_fn_arith $ac_count + 1 && ac_count=$as_val
5327    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5328      # Best one so far, save it but keep looking for a better one
5329      ac_cv_path_GREP="$ac_path_GREP"
5330      ac_path_GREP_max=$ac_count
5331    fi
5332    # 10*(2^10) chars as input seems more than enough
5333    test $ac_count -gt 10 && break
5334  done
5335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336esac
5337
5338      $ac_path_GREP_found && break 3
5339    done
5340  done
5341  done
5342IFS=$as_save_IFS
5343  if test -z "$ac_cv_path_GREP"; then
5344    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345  fi
5346else
5347  ac_cv_path_GREP=$GREP
5348fi
5349
5350fi
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5352$as_echo "$ac_cv_path_GREP" >&6; }
5353 GREP="$ac_cv_path_GREP"
5354
5355
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5357$as_echo_n "checking for egrep... " >&6; }
5358if ${ac_cv_path_EGREP+:} false; then :
5359  $as_echo_n "(cached) " >&6
5360else
5361  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5362   then ac_cv_path_EGREP="$GREP -E"
5363   else
5364     if test -z "$EGREP"; then
5365  ac_path_EGREP_found=false
5366  # Loop through the user's path and test for each of PROGNAME-LIST
5367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5369do
5370  IFS=$as_save_IFS
5371  test -z "$as_dir" && as_dir=.
5372    for ac_prog in egrep; do
5373    for ac_exec_ext in '' $ac_executable_extensions; do
5374      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5375      as_fn_executable_p "$ac_path_EGREP" || continue
5376# Check for GNU ac_path_EGREP and select it if it is found.
5377  # Check for GNU $ac_path_EGREP
5378case `"$ac_path_EGREP" --version 2>&1` in
5379*GNU*)
5380  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5381*)
5382  ac_count=0
5383  $as_echo_n 0123456789 >"conftest.in"
5384  while :
5385  do
5386    cat "conftest.in" "conftest.in" >"conftest.tmp"
5387    mv "conftest.tmp" "conftest.in"
5388    cp "conftest.in" "conftest.nl"
5389    $as_echo 'EGREP' >> "conftest.nl"
5390    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5391    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5392    as_fn_arith $ac_count + 1 && ac_count=$as_val
5393    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5394      # Best one so far, save it but keep looking for a better one
5395      ac_cv_path_EGREP="$ac_path_EGREP"
5396      ac_path_EGREP_max=$ac_count
5397    fi
5398    # 10*(2^10) chars as input seems more than enough
5399    test $ac_count -gt 10 && break
5400  done
5401  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5402esac
5403
5404      $ac_path_EGREP_found && break 3
5405    done
5406  done
5407  done
5408IFS=$as_save_IFS
5409  if test -z "$ac_cv_path_EGREP"; then
5410    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5411  fi
5412else
5413  ac_cv_path_EGREP=$EGREP
5414fi
5415
5416   fi
5417fi
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5419$as_echo "$ac_cv_path_EGREP" >&6; }
5420 EGREP="$ac_cv_path_EGREP"
5421
5422
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5424$as_echo_n "checking for ANSI C header files... " >&6; }
5425if ${ac_cv_header_stdc+:} false; then :
5426  $as_echo_n "(cached) " >&6
5427else
5428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429/* end confdefs.h.  */
5430#include <stdlib.h>
5431#include <stdarg.h>
5432#include <string.h>
5433#include <float.h>
5434
5435int
5436main ()
5437{
5438
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443if ac_fn_c_try_compile "$LINENO"; then :
5444  ac_cv_header_stdc=yes
5445else
5446  ac_cv_header_stdc=no
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449
5450if test $ac_cv_header_stdc = yes; then
5451  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454#include <string.h>
5455
5456_ACEOF
5457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5458  $EGREP "memchr" >/dev/null 2>&1; then :
5459
5460else
5461  ac_cv_header_stdc=no
5462fi
5463rm -f conftest*
5464
5465fi
5466
5467if test $ac_cv_header_stdc = yes; then
5468  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471#include <stdlib.h>
5472
5473_ACEOF
5474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475  $EGREP "free" >/dev/null 2>&1; then :
5476
5477else
5478  ac_cv_header_stdc=no
5479fi
5480rm -f conftest*
5481
5482fi
5483
5484if test $ac_cv_header_stdc = yes; then
5485  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5486  if test "$cross_compiling" = yes; then :
5487  :
5488else
5489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490/* end confdefs.h.  */
5491#include <ctype.h>
5492#include <stdlib.h>
5493#if ((' ' & 0x0FF) == 0x020)
5494# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5495# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5496#else
5497# define ISLOWER(c) \
5498		   (('a' <= (c) && (c) <= 'i') \
5499		     || ('j' <= (c) && (c) <= 'r') \
5500		     || ('s' <= (c) && (c) <= 'z'))
5501# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5502#endif
5503
5504#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5505int
5506main ()
5507{
5508  int i;
5509  for (i = 0; i < 256; i++)
5510    if (XOR (islower (i), ISLOWER (i))
5511	|| toupper (i) != TOUPPER (i))
5512      return 2;
5513  return 0;
5514}
5515_ACEOF
5516if ac_fn_c_try_run "$LINENO"; then :
5517
5518else
5519  ac_cv_header_stdc=no
5520fi
5521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5522  conftest.$ac_objext conftest.beam conftest.$ac_ext
5523fi
5524
5525fi
5526fi
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5528$as_echo "$ac_cv_header_stdc" >&6; }
5529if test $ac_cv_header_stdc = yes; then
5530
5531$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5532
5533fi
5534
5535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5536for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5537		  inttypes.h stdint.h unistd.h
5538do :
5539  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5540ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5541"
5542if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5543  cat >>confdefs.h <<_ACEOF
5544#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545_ACEOF
5546
5547fi
5548
5549done
5550
5551
5552
5553  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5554if test "x$ac_cv_header_minix_config_h" = xyes; then :
5555  MINIX=yes
5556else
5557  MINIX=
5558fi
5559
5560
5561  if test "$MINIX" = yes; then
5562
5563$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5564
5565
5566$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5567
5568
5569$as_echo "#define _MINIX 1" >>confdefs.h
5570
5571  fi
5572
5573
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5575$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5576if ${ac_cv_safe_to_define___extensions__+:} false; then :
5577  $as_echo_n "(cached) " >&6
5578else
5579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h.  */
5581
5582#         define __EXTENSIONS__ 1
5583          $ac_includes_default
5584int
5585main ()
5586{
5587
5588  ;
5589  return 0;
5590}
5591_ACEOF
5592if ac_fn_c_try_compile "$LINENO"; then :
5593  ac_cv_safe_to_define___extensions__=yes
5594else
5595  ac_cv_safe_to_define___extensions__=no
5596fi
5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598fi
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5600$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5601  test $ac_cv_safe_to_define___extensions__ = yes &&
5602    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5603
5604  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5605
5606  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5607
5608  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5609
5610  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5611
5612
5613
5614# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5627$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5628if ${ac_cv_prog_cc_c99+:} false; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  ac_cv_prog_cc_c99=no
5632ac_save_CC=$CC
5633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h.  */
5635#include <stdarg.h>
5636#include <stdbool.h>
5637#include <stdlib.h>
5638#include <wchar.h>
5639#include <stdio.h>
5640
5641// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5642#define debug(...) fprintf (stderr, __VA_ARGS__)
5643#define showlist(...) puts (#__VA_ARGS__)
5644#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5645static void
5646test_varargs_macros (void)
5647{
5648  int x = 1234;
5649  int y = 5678;
5650  debug ("Flag");
5651  debug ("X = %d\n", x);
5652  showlist (The first, second, and third items.);
5653  report (x>y, "x is %d but y is %d", x, y);
5654}
5655
5656// Check long long types.
5657#define BIG64 18446744073709551615ull
5658#define BIG32 4294967295ul
5659#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5660#if !BIG_OK
5661  your preprocessor is broken;
5662#endif
5663#if BIG_OK
5664#else
5665  your preprocessor is broken;
5666#endif
5667static long long int bignum = -9223372036854775807LL;
5668static unsigned long long int ubignum = BIG64;
5669
5670struct incomplete_array
5671{
5672  int datasize;
5673  double data[];
5674};
5675
5676struct named_init {
5677  int number;
5678  const wchar_t *name;
5679  double average;
5680};
5681
5682typedef const char *ccp;
5683
5684static inline int
5685test_restrict (ccp restrict text)
5686{
5687  // See if C++-style comments work.
5688  // Iterate through items via the restricted pointer.
5689  // Also check for declarations in for loops.
5690  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5691    continue;
5692  return 0;
5693}
5694
5695// Check varargs and va_copy.
5696static void
5697test_varargs (const char *format, ...)
5698{
5699  va_list args;
5700  va_start (args, format);
5701  va_list args_copy;
5702  va_copy (args_copy, args);
5703
5704  const char *str;
5705  int number;
5706  float fnumber;
5707
5708  while (*format)
5709    {
5710      switch (*format++)
5711	{
5712	case 's': // string
5713	  str = va_arg (args_copy, const char *);
5714	  break;
5715	case 'd': // int
5716	  number = va_arg (args_copy, int);
5717	  break;
5718	case 'f': // float
5719	  fnumber = va_arg (args_copy, double);
5720	  break;
5721	default:
5722	  break;
5723	}
5724    }
5725  va_end (args_copy);
5726  va_end (args);
5727}
5728
5729int
5730main ()
5731{
5732
5733  // Check bool.
5734  _Bool success = false;
5735
5736  // Check restrict.
5737  if (test_restrict ("String literal") == 0)
5738    success = true;
5739  char *restrict newvar = "Another string";
5740
5741  // Check varargs.
5742  test_varargs ("s, d' f .", "string", 65, 34.234);
5743  test_varargs_macros ();
5744
5745  // Check flexible array members.
5746  struct incomplete_array *ia =
5747    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5748  ia->datasize = 10;
5749  for (int i = 0; i < ia->datasize; ++i)
5750    ia->data[i] = i * 1.234;
5751
5752  // Check named initializers.
5753  struct named_init ni = {
5754    .number = 34,
5755    .name = L"Test wide string",
5756    .average = 543.34343,
5757  };
5758
5759  ni.number = 58;
5760
5761  int dynamic_array[ni.number];
5762  dynamic_array[ni.number - 1] = 543;
5763
5764  // work around unused variable warnings
5765  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5766	  || dynamic_array[ni.number - 1] != 543);
5767
5768  ;
5769  return 0;
5770}
5771_ACEOF
5772for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5773do
5774  CC="$ac_save_CC $ac_arg"
5775  if ac_fn_c_try_compile "$LINENO"; then :
5776  ac_cv_prog_cc_c99=$ac_arg
5777fi
5778rm -f core conftest.err conftest.$ac_objext
5779  test "x$ac_cv_prog_cc_c99" != "xno" && break
5780done
5781rm -f conftest.$ac_ext
5782CC=$ac_save_CC
5783
5784fi
5785# AC_CACHE_VAL
5786case "x$ac_cv_prog_cc_c99" in
5787  x)
5788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5789$as_echo "none needed" >&6; } ;;
5790  xno)
5791    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5792$as_echo "unsupported" >&6; } ;;
5793  *)
5794    CC="$CC $ac_cv_prog_cc_c99"
5795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5796$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5797esac
5798if test "x$ac_cv_prog_cc_c99" != xno; then :
5799
5800fi
5801
5802
5803
5804
5805
5806
5807ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
5808if test "x$ac_cv_have_decl___clang__" = xyes; then :
5809  CLANGCC="yes"
5810else
5811  CLANGCC="no"
5812fi
5813
5814ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
5815if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
5816  INTELCC="yes"
5817else
5818  INTELCC="no"
5819fi
5820
5821ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
5822if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
5823  SUNCC="yes"
5824else
5825  SUNCC="no"
5826fi
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5837	if test -n "$ac_tool_prefix"; then
5838  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5839set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841$as_echo_n "checking for $ac_word... " >&6; }
5842if ${ac_cv_path_PKG_CONFIG+:} false; then :
5843  $as_echo_n "(cached) " >&6
5844else
5845  case $PKG_CONFIG in
5846  [\\/]* | ?:[\\/]*)
5847  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5848  ;;
5849  *)
5850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851for as_dir in $PATH
5852do
5853  IFS=$as_save_IFS
5854  test -z "$as_dir" && as_dir=.
5855    for ac_exec_ext in '' $ac_executable_extensions; do
5856  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859    break 2
5860  fi
5861done
5862  done
5863IFS=$as_save_IFS
5864
5865  ;;
5866esac
5867fi
5868PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5869if test -n "$PKG_CONFIG"; then
5870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5871$as_echo "$PKG_CONFIG" >&6; }
5872else
5873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5874$as_echo "no" >&6; }
5875fi
5876
5877
5878fi
5879if test -z "$ac_cv_path_PKG_CONFIG"; then
5880  ac_pt_PKG_CONFIG=$PKG_CONFIG
5881  # Extract the first word of "pkg-config", so it can be a program name with args.
5882set dummy pkg-config; ac_word=$2
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5884$as_echo_n "checking for $ac_word... " >&6; }
5885if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5886  $as_echo_n "(cached) " >&6
5887else
5888  case $ac_pt_PKG_CONFIG in
5889  [\\/]* | ?:[\\/]*)
5890  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5891  ;;
5892  *)
5893  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894for as_dir in $PATH
5895do
5896  IFS=$as_save_IFS
5897  test -z "$as_dir" && as_dir=.
5898    for ac_exec_ext in '' $ac_executable_extensions; do
5899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902    break 2
5903  fi
5904done
5905  done
5906IFS=$as_save_IFS
5907
5908  ;;
5909esac
5910fi
5911ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5912if test -n "$ac_pt_PKG_CONFIG"; then
5913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5914$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5915else
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917$as_echo "no" >&6; }
5918fi
5919
5920  if test "x$ac_pt_PKG_CONFIG" = x; then
5921    PKG_CONFIG=""
5922  else
5923    case $cross_compiling:$ac_tool_warned in
5924yes:)
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927ac_tool_warned=yes ;;
5928esac
5929    PKG_CONFIG=$ac_pt_PKG_CONFIG
5930  fi
5931else
5932  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5933fi
5934
5935fi
5936if test -n "$PKG_CONFIG"; then
5937	_pkg_min_version=0.9.0
5938	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5939$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5940	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5942$as_echo "yes" >&6; }
5943	else
5944		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946		PKG_CONFIG=""
5947	fi
5948fi
5949# Make sure we can run config.sub.
5950$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5951  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5952
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5954$as_echo_n "checking build system type... " >&6; }
5955if ${ac_cv_build+:} false; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  ac_build_alias=$build_alias
5959test "x$ac_build_alias" = x &&
5960  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5961test "x$ac_build_alias" = x &&
5962  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5963ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5964  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5965
5966fi
5967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5968$as_echo "$ac_cv_build" >&6; }
5969case $ac_cv_build in
5970*-*-*) ;;
5971*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5972esac
5973build=$ac_cv_build
5974ac_save_IFS=$IFS; IFS='-'
5975set x $ac_cv_build
5976shift
5977build_cpu=$1
5978build_vendor=$2
5979shift; shift
5980# Remember, the first character of IFS is used to create $*,
5981# except with old shells:
5982build_os=$*
5983IFS=$ac_save_IFS
5984case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5985
5986
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5988$as_echo_n "checking host system type... " >&6; }
5989if ${ac_cv_host+:} false; then :
5990  $as_echo_n "(cached) " >&6
5991else
5992  if test "x$host_alias" = x; then
5993  ac_cv_host=$ac_cv_build
5994else
5995  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5996    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5997fi
5998
5999fi
6000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6001$as_echo "$ac_cv_host" >&6; }
6002case $ac_cv_host in
6003*-*-*) ;;
6004*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6005esac
6006host=$ac_cv_host
6007ac_save_IFS=$IFS; IFS='-'
6008set x $ac_cv_host
6009shift
6010host_cpu=$1
6011host_vendor=$2
6012shift; shift
6013# Remember, the first character of IFS is used to create $*,
6014# except with old shells:
6015host_os=$*
6016IFS=$ac_save_IFS
6017case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6018
6019
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6021$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6022if ${ac_cv_path_SED+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6026     for ac_i in 1 2 3 4 5 6 7; do
6027       ac_script="$ac_script$as_nl$ac_script"
6028     done
6029     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6030     { ac_script=; unset ac_script;}
6031     if test -z "$SED"; then
6032  ac_path_SED_found=false
6033  # Loop through the user's path and test for each of PROGNAME-LIST
6034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037  IFS=$as_save_IFS
6038  test -z "$as_dir" && as_dir=.
6039    for ac_prog in sed gsed; do
6040    for ac_exec_ext in '' $ac_executable_extensions; do
6041      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6042      as_fn_executable_p "$ac_path_SED" || continue
6043# Check for GNU ac_path_SED and select it if it is found.
6044  # Check for GNU $ac_path_SED
6045case `"$ac_path_SED" --version 2>&1` in
6046*GNU*)
6047  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6048*)
6049  ac_count=0
6050  $as_echo_n 0123456789 >"conftest.in"
6051  while :
6052  do
6053    cat "conftest.in" "conftest.in" >"conftest.tmp"
6054    mv "conftest.tmp" "conftest.in"
6055    cp "conftest.in" "conftest.nl"
6056    $as_echo '' >> "conftest.nl"
6057    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6058    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6059    as_fn_arith $ac_count + 1 && ac_count=$as_val
6060    if test $ac_count -gt ${ac_path_SED_max-0}; then
6061      # Best one so far, save it but keep looking for a better one
6062      ac_cv_path_SED="$ac_path_SED"
6063      ac_path_SED_max=$ac_count
6064    fi
6065    # 10*(2^10) chars as input seems more than enough
6066    test $ac_count -gt 10 && break
6067  done
6068  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6069esac
6070
6071      $ac_path_SED_found && break 3
6072    done
6073  done
6074  done
6075IFS=$as_save_IFS
6076  if test -z "$ac_cv_path_SED"; then
6077    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6078  fi
6079else
6080  ac_cv_path_SED=$SED
6081fi
6082
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6085$as_echo "$ac_cv_path_SED" >&6; }
6086 SED="$ac_cv_path_SED"
6087  rm -f conftest.sed
6088
6089
6090
6091
6092
6093
6094# Check whether --enable-selective-werror was given.
6095if test "${enable_selective_werror+set}" = set; then :
6096  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6097else
6098  SELECTIVE_WERROR=yes
6099fi
6100
6101
6102
6103
6104
6105# -v is too short to test reliably with XORG_TESTSET_CFLAG
6106if test "x$SUNCC" = "xyes"; then
6107    BASE_CFLAGS="-v"
6108else
6109    BASE_CFLAGS=""
6110fi
6111
6112# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126xorg_testset_save_CFLAGS="$CFLAGS"
6127
6128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6129	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136/* end confdefs.h.  */
6137int i;
6138_ACEOF
6139if ac_fn_c_try_compile "$LINENO"; then :
6140  xorg_cv_cc_flag_unknown_warning_option=yes
6141else
6142  xorg_cv_cc_flag_unknown_warning_option=no
6143fi
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6148	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6149	CFLAGS="$xorg_testset_save_CFLAGS"
6150fi
6151
6152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6153	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6154		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6155	fi
6156	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163/* end confdefs.h.  */
6164int i;
6165_ACEOF
6166if ac_fn_c_try_compile "$LINENO"; then :
6167  xorg_cv_cc_flag_unused_command_line_argument=yes
6168else
6169  xorg_cv_cc_flag_unused_command_line_argument=no
6170fi
6171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6175	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6176	CFLAGS="$xorg_testset_save_CFLAGS"
6177fi
6178
6179found="no"
6180
6181	if test $found = "no" ; then
6182		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184		fi
6185
6186		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6187			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6188		fi
6189
6190		CFLAGS="$CFLAGS -Wall"
6191
6192		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6193$as_echo_n "checking if $CC supports -Wall... " >&6; }
6194		cacheid=xorg_cv_cc_flag__Wall
6195		if eval \${$cacheid+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h.  */
6200int i;
6201int
6202main ()
6203{
6204
6205  ;
6206  return 0;
6207}
6208_ACEOF
6209if ac_fn_c_try_link "$LINENO"; then :
6210  eval $cacheid=yes
6211else
6212  eval $cacheid=no
6213fi
6214rm -f core conftest.err conftest.$ac_objext \
6215    conftest$ac_exeext conftest.$ac_ext
6216fi
6217
6218
6219		CFLAGS="$xorg_testset_save_CFLAGS"
6220
6221		eval supported=\$$cacheid
6222		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6223$as_echo "$supported" >&6; }
6224		if test "$supported" = "yes" ; then
6225			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6226			found="yes"
6227		fi
6228	fi
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244xorg_testset_save_CFLAGS="$CFLAGS"
6245
6246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6251  $as_echo_n "(cached) " >&6
6252else
6253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254/* end confdefs.h.  */
6255int i;
6256_ACEOF
6257if ac_fn_c_try_compile "$LINENO"; then :
6258  xorg_cv_cc_flag_unknown_warning_option=yes
6259else
6260  xorg_cv_cc_flag_unknown_warning_option=no
6261fi
6262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263fi
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6267	CFLAGS="$xorg_testset_save_CFLAGS"
6268fi
6269
6270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273	fi
6274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6278  $as_echo_n "(cached) " >&6
6279else
6280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h.  */
6282int i;
6283_ACEOF
6284if ac_fn_c_try_compile "$LINENO"; then :
6285  xorg_cv_cc_flag_unused_command_line_argument=yes
6286else
6287  xorg_cv_cc_flag_unused_command_line_argument=no
6288fi
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6294	CFLAGS="$xorg_testset_save_CFLAGS"
6295fi
6296
6297found="no"
6298
6299	if test $found = "no" ; then
6300		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6302		fi
6303
6304		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306		fi
6307
6308		CFLAGS="$CFLAGS -Wpointer-arith"
6309
6310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6311$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
6312		cacheid=xorg_cv_cc_flag__Wpointer_arith
6313		if eval \${$cacheid+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h.  */
6318int i;
6319int
6320main ()
6321{
6322
6323  ;
6324  return 0;
6325}
6326_ACEOF
6327if ac_fn_c_try_link "$LINENO"; then :
6328  eval $cacheid=yes
6329else
6330  eval $cacheid=no
6331fi
6332rm -f core conftest.err conftest.$ac_objext \
6333    conftest$ac_exeext conftest.$ac_ext
6334fi
6335
6336
6337		CFLAGS="$xorg_testset_save_CFLAGS"
6338
6339		eval supported=\$$cacheid
6340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6341$as_echo "$supported" >&6; }
6342		if test "$supported" = "yes" ; then
6343			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6344			found="yes"
6345		fi
6346	fi
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362xorg_testset_save_CFLAGS="$CFLAGS"
6363
6364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6369  $as_echo_n "(cached) " >&6
6370else
6371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372/* end confdefs.h.  */
6373int i;
6374_ACEOF
6375if ac_fn_c_try_compile "$LINENO"; then :
6376  xorg_cv_cc_flag_unknown_warning_option=yes
6377else
6378  xorg_cv_cc_flag_unknown_warning_option=no
6379fi
6380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381fi
6382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6385	CFLAGS="$xorg_testset_save_CFLAGS"
6386fi
6387
6388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391	fi
6392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400int i;
6401_ACEOF
6402if ac_fn_c_try_compile "$LINENO"; then :
6403  xorg_cv_cc_flag_unused_command_line_argument=yes
6404else
6405  xorg_cv_cc_flag_unused_command_line_argument=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6408fi
6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6412	CFLAGS="$xorg_testset_save_CFLAGS"
6413fi
6414
6415found="no"
6416
6417	if test $found = "no" ; then
6418		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6420		fi
6421
6422		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6424		fi
6425
6426		CFLAGS="$CFLAGS -Wmissing-declarations"
6427
6428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6429$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
6430		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6431		if eval \${$cacheid+:} false; then :
6432  $as_echo_n "(cached) " >&6
6433else
6434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h.  */
6436int i;
6437int
6438main ()
6439{
6440
6441  ;
6442  return 0;
6443}
6444_ACEOF
6445if ac_fn_c_try_link "$LINENO"; then :
6446  eval $cacheid=yes
6447else
6448  eval $cacheid=no
6449fi
6450rm -f core conftest.err conftest.$ac_objext \
6451    conftest$ac_exeext conftest.$ac_ext
6452fi
6453
6454
6455		CFLAGS="$xorg_testset_save_CFLAGS"
6456
6457		eval supported=\$$cacheid
6458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6459$as_echo "$supported" >&6; }
6460		if test "$supported" = "yes" ; then
6461			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6462			found="yes"
6463		fi
6464	fi
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480xorg_testset_save_CFLAGS="$CFLAGS"
6481
6482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6487  $as_echo_n "(cached) " >&6
6488else
6489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490/* end confdefs.h.  */
6491int i;
6492_ACEOF
6493if ac_fn_c_try_compile "$LINENO"; then :
6494  xorg_cv_cc_flag_unknown_warning_option=yes
6495else
6496  xorg_cv_cc_flag_unknown_warning_option=no
6497fi
6498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499fi
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6503	CFLAGS="$xorg_testset_save_CFLAGS"
6504fi
6505
6506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6509	fi
6510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518int i;
6519_ACEOF
6520if ac_fn_c_try_compile "$LINENO"; then :
6521  xorg_cv_cc_flag_unused_command_line_argument=yes
6522else
6523  xorg_cv_cc_flag_unused_command_line_argument=no
6524fi
6525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526fi
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6530	CFLAGS="$xorg_testset_save_CFLAGS"
6531fi
6532
6533found="no"
6534
6535	if test $found = "no" ; then
6536		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6538		fi
6539
6540		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6542		fi
6543
6544		CFLAGS="$CFLAGS -Wformat=2"
6545
6546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6547$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
6548		cacheid=xorg_cv_cc_flag__Wformat_2
6549		if eval \${$cacheid+:} false; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6553/* end confdefs.h.  */
6554int i;
6555int
6556main ()
6557{
6558
6559  ;
6560  return 0;
6561}
6562_ACEOF
6563if ac_fn_c_try_link "$LINENO"; then :
6564  eval $cacheid=yes
6565else
6566  eval $cacheid=no
6567fi
6568rm -f core conftest.err conftest.$ac_objext \
6569    conftest$ac_exeext conftest.$ac_ext
6570fi
6571
6572
6573		CFLAGS="$xorg_testset_save_CFLAGS"
6574
6575		eval supported=\$$cacheid
6576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6577$as_echo "$supported" >&6; }
6578		if test "$supported" = "yes" ; then
6579			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6580			found="yes"
6581		fi
6582	fi
6583
6584	if test $found = "no" ; then
6585		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6586			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6587		fi
6588
6589		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6590			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591		fi
6592
6593		CFLAGS="$CFLAGS -Wformat"
6594
6595		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6596$as_echo_n "checking if $CC supports -Wformat... " >&6; }
6597		cacheid=xorg_cv_cc_flag__Wformat
6598		if eval \${$cacheid+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604int
6605main ()
6606{
6607
6608  ;
6609  return 0;
6610}
6611_ACEOF
6612if ac_fn_c_try_link "$LINENO"; then :
6613  eval $cacheid=yes
6614else
6615  eval $cacheid=no
6616fi
6617rm -f core conftest.err conftest.$ac_objext \
6618    conftest$ac_exeext conftest.$ac_ext
6619fi
6620
6621
6622		CFLAGS="$xorg_testset_save_CFLAGS"
6623
6624		eval supported=\$$cacheid
6625		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6626$as_echo "$supported" >&6; }
6627		if test "$supported" = "yes" ; then
6628			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6629			found="yes"
6630		fi
6631	fi
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649xorg_testset_save_CFLAGS="$CFLAGS"
6650
6651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6654$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6655if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660int i;
6661_ACEOF
6662if ac_fn_c_try_compile "$LINENO"; then :
6663  xorg_cv_cc_flag_unknown_warning_option=yes
6664else
6665  xorg_cv_cc_flag_unknown_warning_option=no
6666fi
6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668fi
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6670$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6672	CFLAGS="$xorg_testset_save_CFLAGS"
6673fi
6674
6675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6678	fi
6679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6681$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6682if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6683  $as_echo_n "(cached) " >&6
6684else
6685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686/* end confdefs.h.  */
6687int i;
6688_ACEOF
6689if ac_fn_c_try_compile "$LINENO"; then :
6690  xorg_cv_cc_flag_unused_command_line_argument=yes
6691else
6692  xorg_cv_cc_flag_unused_command_line_argument=no
6693fi
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695fi
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6697$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6698	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6699	CFLAGS="$xorg_testset_save_CFLAGS"
6700fi
6701
6702found="no"
6703
6704	if test $found = "no" ; then
6705		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6706			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707		fi
6708
6709		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6710			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6711		fi
6712
6713		CFLAGS="$CFLAGS -Wstrict-prototypes"
6714
6715		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6716$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
6717		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6718		if eval \${$cacheid+:} false; then :
6719  $as_echo_n "(cached) " >&6
6720else
6721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722/* end confdefs.h.  */
6723int i;
6724int
6725main ()
6726{
6727
6728  ;
6729  return 0;
6730}
6731_ACEOF
6732if ac_fn_c_try_link "$LINENO"; then :
6733  eval $cacheid=yes
6734else
6735  eval $cacheid=no
6736fi
6737rm -f core conftest.err conftest.$ac_objext \
6738    conftest$ac_exeext conftest.$ac_ext
6739fi
6740
6741
6742		CFLAGS="$xorg_testset_save_CFLAGS"
6743
6744		eval supported=\$$cacheid
6745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6746$as_echo "$supported" >&6; }
6747		if test "$supported" = "yes" ; then
6748			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6749			found="yes"
6750		fi
6751	fi
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767xorg_testset_save_CFLAGS="$CFLAGS"
6768
6769if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6770	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6772$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6773if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6774  $as_echo_n "(cached) " >&6
6775else
6776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h.  */
6778int i;
6779_ACEOF
6780if ac_fn_c_try_compile "$LINENO"; then :
6781  xorg_cv_cc_flag_unknown_warning_option=yes
6782else
6783  xorg_cv_cc_flag_unknown_warning_option=no
6784fi
6785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786fi
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6788$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6789	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6790	CFLAGS="$xorg_testset_save_CFLAGS"
6791fi
6792
6793if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6794	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6795		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6796	fi
6797	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6799$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6800if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804/* end confdefs.h.  */
6805int i;
6806_ACEOF
6807if ac_fn_c_try_compile "$LINENO"; then :
6808  xorg_cv_cc_flag_unused_command_line_argument=yes
6809else
6810  xorg_cv_cc_flag_unused_command_line_argument=no
6811fi
6812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813fi
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6815$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6816	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6817	CFLAGS="$xorg_testset_save_CFLAGS"
6818fi
6819
6820found="no"
6821
6822	if test $found = "no" ; then
6823		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6824			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825		fi
6826
6827		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6828			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6829		fi
6830
6831		CFLAGS="$CFLAGS -Wmissing-prototypes"
6832
6833		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6834$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
6835		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6836		if eval \${$cacheid+:} false; then :
6837  $as_echo_n "(cached) " >&6
6838else
6839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840/* end confdefs.h.  */
6841int i;
6842int
6843main ()
6844{
6845
6846  ;
6847  return 0;
6848}
6849_ACEOF
6850if ac_fn_c_try_link "$LINENO"; then :
6851  eval $cacheid=yes
6852else
6853  eval $cacheid=no
6854fi
6855rm -f core conftest.err conftest.$ac_objext \
6856    conftest$ac_exeext conftest.$ac_ext
6857fi
6858
6859
6860		CFLAGS="$xorg_testset_save_CFLAGS"
6861
6862		eval supported=\$$cacheid
6863		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6864$as_echo "$supported" >&6; }
6865		if test "$supported" = "yes" ; then
6866			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6867			found="yes"
6868		fi
6869	fi
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885xorg_testset_save_CFLAGS="$CFLAGS"
6886
6887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6888	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6892  $as_echo_n "(cached) " >&6
6893else
6894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895/* end confdefs.h.  */
6896int i;
6897_ACEOF
6898if ac_fn_c_try_compile "$LINENO"; then :
6899  xorg_cv_cc_flag_unknown_warning_option=yes
6900else
6901  xorg_cv_cc_flag_unknown_warning_option=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904fi
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6907	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6908	CFLAGS="$xorg_testset_save_CFLAGS"
6909fi
6910
6911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6912	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914	fi
6915	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923int i;
6924_ACEOF
6925if ac_fn_c_try_compile "$LINENO"; then :
6926  xorg_cv_cc_flag_unused_command_line_argument=yes
6927else
6928  xorg_cv_cc_flag_unused_command_line_argument=no
6929fi
6930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931fi
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6934	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6935	CFLAGS="$xorg_testset_save_CFLAGS"
6936fi
6937
6938found="no"
6939
6940	if test $found = "no" ; then
6941		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6942			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943		fi
6944
6945		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6946			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947		fi
6948
6949		CFLAGS="$CFLAGS -Wnested-externs"
6950
6951		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6952$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
6953		cacheid=xorg_cv_cc_flag__Wnested_externs
6954		if eval \${$cacheid+:} false; then :
6955  $as_echo_n "(cached) " >&6
6956else
6957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958/* end confdefs.h.  */
6959int i;
6960int
6961main ()
6962{
6963
6964  ;
6965  return 0;
6966}
6967_ACEOF
6968if ac_fn_c_try_link "$LINENO"; then :
6969  eval $cacheid=yes
6970else
6971  eval $cacheid=no
6972fi
6973rm -f core conftest.err conftest.$ac_objext \
6974    conftest$ac_exeext conftest.$ac_ext
6975fi
6976
6977
6978		CFLAGS="$xorg_testset_save_CFLAGS"
6979
6980		eval supported=\$$cacheid
6981		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6982$as_echo "$supported" >&6; }
6983		if test "$supported" = "yes" ; then
6984			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6985			found="yes"
6986		fi
6987	fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003xorg_testset_save_CFLAGS="$CFLAGS"
7004
7005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7010  $as_echo_n "(cached) " >&6
7011else
7012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h.  */
7014int i;
7015_ACEOF
7016if ac_fn_c_try_compile "$LINENO"; then :
7017  xorg_cv_cc_flag_unknown_warning_option=yes
7018else
7019  xorg_cv_cc_flag_unknown_warning_option=no
7020fi
7021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022fi
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7025	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7026	CFLAGS="$xorg_testset_save_CFLAGS"
7027fi
7028
7029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7030	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7031		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7032	fi
7033	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042_ACEOF
7043if ac_fn_c_try_compile "$LINENO"; then :
7044  xorg_cv_cc_flag_unused_command_line_argument=yes
7045else
7046  xorg_cv_cc_flag_unused_command_line_argument=no
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049fi
7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7052	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7053	CFLAGS="$xorg_testset_save_CFLAGS"
7054fi
7055
7056found="no"
7057
7058	if test $found = "no" ; then
7059		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7060			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7061		fi
7062
7063		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7064			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7065		fi
7066
7067		CFLAGS="$CFLAGS -Wbad-function-cast"
7068
7069		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7070$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
7071		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7072		if eval \${$cacheid+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077int i;
7078int
7079main ()
7080{
7081
7082  ;
7083  return 0;
7084}
7085_ACEOF
7086if ac_fn_c_try_link "$LINENO"; then :
7087  eval $cacheid=yes
7088else
7089  eval $cacheid=no
7090fi
7091rm -f core conftest.err conftest.$ac_objext \
7092    conftest$ac_exeext conftest.$ac_ext
7093fi
7094
7095
7096		CFLAGS="$xorg_testset_save_CFLAGS"
7097
7098		eval supported=\$$cacheid
7099		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7100$as_echo "$supported" >&6; }
7101		if test "$supported" = "yes" ; then
7102			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7103			found="yes"
7104		fi
7105	fi
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121xorg_testset_save_CFLAGS="$CFLAGS"
7122
7123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131/* end confdefs.h.  */
7132int i;
7133_ACEOF
7134if ac_fn_c_try_compile "$LINENO"; then :
7135  xorg_cv_cc_flag_unknown_warning_option=yes
7136else
7137  xorg_cv_cc_flag_unknown_warning_option=no
7138fi
7139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7140fi
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7143	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7144	CFLAGS="$xorg_testset_save_CFLAGS"
7145fi
7146
7147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7148	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7149		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7150	fi
7151	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7152	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159int i;
7160_ACEOF
7161if ac_fn_c_try_compile "$LINENO"; then :
7162  xorg_cv_cc_flag_unused_command_line_argument=yes
7163else
7164  xorg_cv_cc_flag_unused_command_line_argument=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167fi
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7170	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7171	CFLAGS="$xorg_testset_save_CFLAGS"
7172fi
7173
7174found="no"
7175
7176	if test $found = "no" ; then
7177		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7178			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7179		fi
7180
7181		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7182			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7183		fi
7184
7185		CFLAGS="$CFLAGS -Wold-style-definition"
7186
7187		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7188$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
7189		cacheid=xorg_cv_cc_flag__Wold_style_definition
7190		if eval \${$cacheid+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h.  */
7195int i;
7196int
7197main ()
7198{
7199
7200  ;
7201  return 0;
7202}
7203_ACEOF
7204if ac_fn_c_try_link "$LINENO"; then :
7205  eval $cacheid=yes
7206else
7207  eval $cacheid=no
7208fi
7209rm -f core conftest.err conftest.$ac_objext \
7210    conftest$ac_exeext conftest.$ac_ext
7211fi
7212
7213
7214		CFLAGS="$xorg_testset_save_CFLAGS"
7215
7216		eval supported=\$$cacheid
7217		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7218$as_echo "$supported" >&6; }
7219		if test "$supported" = "yes" ; then
7220			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7221			found="yes"
7222		fi
7223	fi
7224
7225	if test $found = "no" ; then
7226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7228		fi
7229
7230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232		fi
7233
7234		CFLAGS="$CFLAGS -fd"
7235
7236		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7237$as_echo_n "checking if $CC supports -fd... " >&6; }
7238		cacheid=xorg_cv_cc_flag__fd
7239		if eval \${$cacheid+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h.  */
7244int i;
7245int
7246main ()
7247{
7248
7249  ;
7250  return 0;
7251}
7252_ACEOF
7253if ac_fn_c_try_link "$LINENO"; then :
7254  eval $cacheid=yes
7255else
7256  eval $cacheid=no
7257fi
7258rm -f core conftest.err conftest.$ac_objext \
7259    conftest$ac_exeext conftest.$ac_ext
7260fi
7261
7262
7263		CFLAGS="$xorg_testset_save_CFLAGS"
7264
7265		eval supported=\$$cacheid
7266		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7267$as_echo "$supported" >&6; }
7268		if test "$supported" = "yes" ; then
7269			BASE_CFLAGS="$BASE_CFLAGS -fd"
7270			found="yes"
7271		fi
7272	fi
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288xorg_testset_save_CFLAGS="$CFLAGS"
7289
7290if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7291	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7293$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7294if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7295  $as_echo_n "(cached) " >&6
7296else
7297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298/* end confdefs.h.  */
7299int i;
7300_ACEOF
7301if ac_fn_c_try_compile "$LINENO"; then :
7302  xorg_cv_cc_flag_unknown_warning_option=yes
7303else
7304  xorg_cv_cc_flag_unknown_warning_option=no
7305fi
7306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7309$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7311	CFLAGS="$xorg_testset_save_CFLAGS"
7312fi
7313
7314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317	fi
7318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7320$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7321if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7322  $as_echo_n "(cached) " >&6
7323else
7324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326int i;
7327_ACEOF
7328if ac_fn_c_try_compile "$LINENO"; then :
7329  xorg_cv_cc_flag_unused_command_line_argument=yes
7330else
7331  xorg_cv_cc_flag_unused_command_line_argument=no
7332fi
7333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334fi
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7336$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7337	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7338	CFLAGS="$xorg_testset_save_CFLAGS"
7339fi
7340
7341found="no"
7342
7343	if test $found = "no" ; then
7344		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7345			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7346		fi
7347
7348		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7349			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350		fi
7351
7352		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
7353
7354		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
7355$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
7356		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
7357		if eval \${$cacheid+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362int i;
7363int
7364main ()
7365{
7366
7367  ;
7368  return 0;
7369}
7370_ACEOF
7371if ac_fn_c_try_link "$LINENO"; then :
7372  eval $cacheid=yes
7373else
7374  eval $cacheid=no
7375fi
7376rm -f core conftest.err conftest.$ac_objext \
7377    conftest$ac_exeext conftest.$ac_ext
7378fi
7379
7380
7381		CFLAGS="$xorg_testset_save_CFLAGS"
7382
7383		eval supported=\$$cacheid
7384		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7385$as_echo "$supported" >&6; }
7386		if test "$supported" = "yes" ; then
7387			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
7388			found="yes"
7389		fi
7390	fi
7391
7392
7393
7394
7395
7396# This chunk adds additional warnings that could catch undesired effects.
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410xorg_testset_save_CFLAGS="$CFLAGS"
7411
7412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7413	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7414	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7417  $as_echo_n "(cached) " >&6
7418else
7419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420/* end confdefs.h.  */
7421int i;
7422_ACEOF
7423if ac_fn_c_try_compile "$LINENO"; then :
7424  xorg_cv_cc_flag_unknown_warning_option=yes
7425else
7426  xorg_cv_cc_flag_unknown_warning_option=no
7427fi
7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7432	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7433	CFLAGS="$xorg_testset_save_CFLAGS"
7434fi
7435
7436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7437	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439	fi
7440	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7444  $as_echo_n "(cached) " >&6
7445else
7446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447/* end confdefs.h.  */
7448int i;
7449_ACEOF
7450if ac_fn_c_try_compile "$LINENO"; then :
7451  xorg_cv_cc_flag_unused_command_line_argument=yes
7452else
7453  xorg_cv_cc_flag_unused_command_line_argument=no
7454fi
7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456fi
7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7459	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7460	CFLAGS="$xorg_testset_save_CFLAGS"
7461fi
7462
7463found="no"
7464
7465	if test $found = "no" ; then
7466		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468		fi
7469
7470		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7471			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7472		fi
7473
7474		CFLAGS="$CFLAGS -Wunused"
7475
7476		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7477$as_echo_n "checking if $CC supports -Wunused... " >&6; }
7478		cacheid=xorg_cv_cc_flag__Wunused
7479		if eval \${$cacheid+:} false; then :
7480  $as_echo_n "(cached) " >&6
7481else
7482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484int i;
7485int
7486main ()
7487{
7488
7489  ;
7490  return 0;
7491}
7492_ACEOF
7493if ac_fn_c_try_link "$LINENO"; then :
7494  eval $cacheid=yes
7495else
7496  eval $cacheid=no
7497fi
7498rm -f core conftest.err conftest.$ac_objext \
7499    conftest$ac_exeext conftest.$ac_ext
7500fi
7501
7502
7503		CFLAGS="$xorg_testset_save_CFLAGS"
7504
7505		eval supported=\$$cacheid
7506		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7507$as_echo "$supported" >&6; }
7508		if test "$supported" = "yes" ; then
7509			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7510			found="yes"
7511		fi
7512	fi
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528xorg_testset_save_CFLAGS="$CFLAGS"
7529
7530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538/* end confdefs.h.  */
7539int i;
7540_ACEOF
7541if ac_fn_c_try_compile "$LINENO"; then :
7542  xorg_cv_cc_flag_unknown_warning_option=yes
7543else
7544  xorg_cv_cc_flag_unknown_warning_option=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7547fi
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7551	CFLAGS="$xorg_testset_save_CFLAGS"
7552fi
7553
7554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557	fi
7558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7562  $as_echo_n "(cached) " >&6
7563else
7564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h.  */
7566int i;
7567_ACEOF
7568if ac_fn_c_try_compile "$LINENO"; then :
7569  xorg_cv_cc_flag_unused_command_line_argument=yes
7570else
7571  xorg_cv_cc_flag_unused_command_line_argument=no
7572fi
7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7577	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7578	CFLAGS="$xorg_testset_save_CFLAGS"
7579fi
7580
7581found="no"
7582
7583	if test $found = "no" ; then
7584		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586		fi
7587
7588		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7589			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7590		fi
7591
7592		CFLAGS="$CFLAGS -Wuninitialized"
7593
7594		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7595$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
7596		cacheid=xorg_cv_cc_flag__Wuninitialized
7597		if eval \${$cacheid+:} false; then :
7598  $as_echo_n "(cached) " >&6
7599else
7600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601/* end confdefs.h.  */
7602int i;
7603int
7604main ()
7605{
7606
7607  ;
7608  return 0;
7609}
7610_ACEOF
7611if ac_fn_c_try_link "$LINENO"; then :
7612  eval $cacheid=yes
7613else
7614  eval $cacheid=no
7615fi
7616rm -f core conftest.err conftest.$ac_objext \
7617    conftest$ac_exeext conftest.$ac_ext
7618fi
7619
7620
7621		CFLAGS="$xorg_testset_save_CFLAGS"
7622
7623		eval supported=\$$cacheid
7624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7625$as_echo "$supported" >&6; }
7626		if test "$supported" = "yes" ; then
7627			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7628			found="yes"
7629		fi
7630	fi
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646xorg_testset_save_CFLAGS="$CFLAGS"
7647
7648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7649	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7653  $as_echo_n "(cached) " >&6
7654else
7655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h.  */
7657int i;
7658_ACEOF
7659if ac_fn_c_try_compile "$LINENO"; then :
7660  xorg_cv_cc_flag_unknown_warning_option=yes
7661else
7662  xorg_cv_cc_flag_unknown_warning_option=no
7663fi
7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7669	CFLAGS="$xorg_testset_save_CFLAGS"
7670fi
7671
7672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675	fi
7676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7680  $as_echo_n "(cached) " >&6
7681else
7682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683/* end confdefs.h.  */
7684int i;
7685_ACEOF
7686if ac_fn_c_try_compile "$LINENO"; then :
7687  xorg_cv_cc_flag_unused_command_line_argument=yes
7688else
7689  xorg_cv_cc_flag_unused_command_line_argument=no
7690fi
7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692fi
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7695	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7696	CFLAGS="$xorg_testset_save_CFLAGS"
7697fi
7698
7699found="no"
7700
7701	if test $found = "no" ; then
7702		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704		fi
7705
7706		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7707			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708		fi
7709
7710		CFLAGS="$CFLAGS -Wshadow"
7711
7712		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7713$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
7714		cacheid=xorg_cv_cc_flag__Wshadow
7715		if eval \${$cacheid+:} false; then :
7716  $as_echo_n "(cached) " >&6
7717else
7718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719/* end confdefs.h.  */
7720int i;
7721int
7722main ()
7723{
7724
7725  ;
7726  return 0;
7727}
7728_ACEOF
7729if ac_fn_c_try_link "$LINENO"; then :
7730  eval $cacheid=yes
7731else
7732  eval $cacheid=no
7733fi
7734rm -f core conftest.err conftest.$ac_objext \
7735    conftest$ac_exeext conftest.$ac_ext
7736fi
7737
7738
7739		CFLAGS="$xorg_testset_save_CFLAGS"
7740
7741		eval supported=\$$cacheid
7742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7743$as_echo "$supported" >&6; }
7744		if test "$supported" = "yes" ; then
7745			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7746			found="yes"
7747		fi
7748	fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764xorg_testset_save_CFLAGS="$CFLAGS"
7765
7766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7771  $as_echo_n "(cached) " >&6
7772else
7773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774/* end confdefs.h.  */
7775int i;
7776_ACEOF
7777if ac_fn_c_try_compile "$LINENO"; then :
7778  xorg_cv_cc_flag_unknown_warning_option=yes
7779else
7780  xorg_cv_cc_flag_unknown_warning_option=no
7781fi
7782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783fi
7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7786	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7787	CFLAGS="$xorg_testset_save_CFLAGS"
7788fi
7789
7790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7791	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7792		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793	fi
7794	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7798  $as_echo_n "(cached) " >&6
7799else
7800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7801/* end confdefs.h.  */
7802int i;
7803_ACEOF
7804if ac_fn_c_try_compile "$LINENO"; then :
7805  xorg_cv_cc_flag_unused_command_line_argument=yes
7806else
7807  xorg_cv_cc_flag_unused_command_line_argument=no
7808fi
7809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810fi
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7814	CFLAGS="$xorg_testset_save_CFLAGS"
7815fi
7816
7817found="no"
7818
7819	if test $found = "no" ; then
7820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7822		fi
7823
7824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7826		fi
7827
7828		CFLAGS="$CFLAGS -Wmissing-noreturn"
7829
7830		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7831$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
7832		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7833		if eval \${$cacheid+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837/* end confdefs.h.  */
7838int i;
7839int
7840main ()
7841{
7842
7843  ;
7844  return 0;
7845}
7846_ACEOF
7847if ac_fn_c_try_link "$LINENO"; then :
7848  eval $cacheid=yes
7849else
7850  eval $cacheid=no
7851fi
7852rm -f core conftest.err conftest.$ac_objext \
7853    conftest$ac_exeext conftest.$ac_ext
7854fi
7855
7856
7857		CFLAGS="$xorg_testset_save_CFLAGS"
7858
7859		eval supported=\$$cacheid
7860		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7861$as_echo "$supported" >&6; }
7862		if test "$supported" = "yes" ; then
7863			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7864			found="yes"
7865		fi
7866	fi
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882xorg_testset_save_CFLAGS="$CFLAGS"
7883
7884if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7885	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7887$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7888if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h.  */
7893int i;
7894_ACEOF
7895if ac_fn_c_try_compile "$LINENO"; then :
7896  xorg_cv_cc_flag_unknown_warning_option=yes
7897else
7898  xorg_cv_cc_flag_unknown_warning_option=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7903$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7904	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7909	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7910		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911	fi
7912	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7914$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7915if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7916  $as_echo_n "(cached) " >&6
7917else
7918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919/* end confdefs.h.  */
7920int i;
7921_ACEOF
7922if ac_fn_c_try_compile "$LINENO"; then :
7923  xorg_cv_cc_flag_unused_command_line_argument=yes
7924else
7925  xorg_cv_cc_flag_unused_command_line_argument=no
7926fi
7927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928fi
7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7930$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7931	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7932	CFLAGS="$xorg_testset_save_CFLAGS"
7933fi
7934
7935found="no"
7936
7937	if test $found = "no" ; then
7938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940		fi
7941
7942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7944		fi
7945
7946		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7947
7948		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7949$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7950		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7951		if eval \${$cacheid+:} false; then :
7952  $as_echo_n "(cached) " >&6
7953else
7954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956int i;
7957int
7958main ()
7959{
7960
7961  ;
7962  return 0;
7963}
7964_ACEOF
7965if ac_fn_c_try_link "$LINENO"; then :
7966  eval $cacheid=yes
7967else
7968  eval $cacheid=no
7969fi
7970rm -f core conftest.err conftest.$ac_objext \
7971    conftest$ac_exeext conftest.$ac_ext
7972fi
7973
7974
7975		CFLAGS="$xorg_testset_save_CFLAGS"
7976
7977		eval supported=\$$cacheid
7978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7979$as_echo "$supported" >&6; }
7980		if test "$supported" = "yes" ; then
7981			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7982			found="yes"
7983		fi
7984	fi
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000xorg_testset_save_CFLAGS="$CFLAGS"
8001
8002if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8003	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8005$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8006if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011int i;
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014  xorg_cv_cc_flag_unknown_warning_option=yes
8015else
8016  xorg_cv_cc_flag_unknown_warning_option=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8021$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8022	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8023	CFLAGS="$xorg_testset_save_CFLAGS"
8024fi
8025
8026if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8027	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8028		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029	fi
8030	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8032$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8033if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8034  $as_echo_n "(cached) " >&6
8035else
8036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038int i;
8039_ACEOF
8040if ac_fn_c_try_compile "$LINENO"; then :
8041  xorg_cv_cc_flag_unused_command_line_argument=yes
8042else
8043  xorg_cv_cc_flag_unused_command_line_argument=no
8044fi
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046fi
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8048$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8049	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8050	CFLAGS="$xorg_testset_save_CFLAGS"
8051fi
8052
8053found="no"
8054
8055	if test $found = "no" ; then
8056		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8057			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8058		fi
8059
8060		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8061			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8062		fi
8063
8064		CFLAGS="$CFLAGS -Wredundant-decls"
8065
8066		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8067$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
8068		cacheid=xorg_cv_cc_flag__Wredundant_decls
8069		if eval \${$cacheid+:} false; then :
8070  $as_echo_n "(cached) " >&6
8071else
8072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073/* end confdefs.h.  */
8074int i;
8075int
8076main ()
8077{
8078
8079  ;
8080  return 0;
8081}
8082_ACEOF
8083if ac_fn_c_try_link "$LINENO"; then :
8084  eval $cacheid=yes
8085else
8086  eval $cacheid=no
8087fi
8088rm -f core conftest.err conftest.$ac_objext \
8089    conftest$ac_exeext conftest.$ac_ext
8090fi
8091
8092
8093		CFLAGS="$xorg_testset_save_CFLAGS"
8094
8095		eval supported=\$$cacheid
8096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8097$as_echo "$supported" >&6; }
8098		if test "$supported" = "yes" ; then
8099			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8100			found="yes"
8101		fi
8102	fi
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118xorg_testset_save_CFLAGS="$CFLAGS"
8119
8120if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8121	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8123$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8124if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129int i;
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132  xorg_cv_cc_flag_unknown_warning_option=yes
8133else
8134  xorg_cv_cc_flag_unknown_warning_option=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8139$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8140	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8141	CFLAGS="$xorg_testset_save_CFLAGS"
8142fi
8143
8144if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8145	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8146		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147	fi
8148	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8150$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8151if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8152  $as_echo_n "(cached) " >&6
8153else
8154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155/* end confdefs.h.  */
8156int i;
8157_ACEOF
8158if ac_fn_c_try_compile "$LINENO"; then :
8159  xorg_cv_cc_flag_unused_command_line_argument=yes
8160else
8161  xorg_cv_cc_flag_unused_command_line_argument=no
8162fi
8163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164fi
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8166$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8167	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8168	CFLAGS="$xorg_testset_save_CFLAGS"
8169fi
8170
8171found="no"
8172
8173	if test $found = "no" ; then
8174		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8175			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176		fi
8177
8178		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8179			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8180		fi
8181
8182		CFLAGS="$CFLAGS -Wlogical-op"
8183
8184		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8185$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
8186		cacheid=xorg_cv_cc_flag__Wlogical_op
8187		if eval \${$cacheid+:} false; then :
8188  $as_echo_n "(cached) " >&6
8189else
8190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191/* end confdefs.h.  */
8192int i;
8193int
8194main ()
8195{
8196
8197  ;
8198  return 0;
8199}
8200_ACEOF
8201if ac_fn_c_try_link "$LINENO"; then :
8202  eval $cacheid=yes
8203else
8204  eval $cacheid=no
8205fi
8206rm -f core conftest.err conftest.$ac_objext \
8207    conftest$ac_exeext conftest.$ac_ext
8208fi
8209
8210
8211		CFLAGS="$xorg_testset_save_CFLAGS"
8212
8213		eval supported=\$$cacheid
8214		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8215$as_echo "$supported" >&6; }
8216		if test "$supported" = "yes" ; then
8217			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8218			found="yes"
8219		fi
8220	fi
8221
8222
8223
8224# These are currently disabled because they are noisy.  They will be enabled
8225# in the future once the codebase is sufficiently modernized to silence
8226# them.  For now, I don't want them to drown out the other warnings.
8227# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8228# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8229# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8230
8231# Turn some warnings into errors, so we don't accidently get successful builds
8232# when there are problems that should be fixed.
8233
8234if test "x$SELECTIVE_WERROR" = "xyes" ; then
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248xorg_testset_save_CFLAGS="$CFLAGS"
8249
8250if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8251	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8253$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8254if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8255  $as_echo_n "(cached) " >&6
8256else
8257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258/* end confdefs.h.  */
8259int i;
8260_ACEOF
8261if ac_fn_c_try_compile "$LINENO"; then :
8262  xorg_cv_cc_flag_unknown_warning_option=yes
8263else
8264  xorg_cv_cc_flag_unknown_warning_option=no
8265fi
8266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8269$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8270	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8271	CFLAGS="$xorg_testset_save_CFLAGS"
8272fi
8273
8274if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8275	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8276		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277	fi
8278	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8280$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8281if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8282  $as_echo_n "(cached) " >&6
8283else
8284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8285/* end confdefs.h.  */
8286int i;
8287_ACEOF
8288if ac_fn_c_try_compile "$LINENO"; then :
8289  xorg_cv_cc_flag_unused_command_line_argument=yes
8290else
8291  xorg_cv_cc_flag_unused_command_line_argument=no
8292fi
8293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294fi
8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8296$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8297	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8298	CFLAGS="$xorg_testset_save_CFLAGS"
8299fi
8300
8301found="no"
8302
8303	if test $found = "no" ; then
8304		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8305			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306		fi
8307
8308		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8309			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310		fi
8311
8312		CFLAGS="$CFLAGS -Werror=implicit"
8313
8314		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8315$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
8316		cacheid=xorg_cv_cc_flag__Werror_implicit
8317		if eval \${$cacheid+:} false; then :
8318  $as_echo_n "(cached) " >&6
8319else
8320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321/* end confdefs.h.  */
8322int i;
8323int
8324main ()
8325{
8326
8327  ;
8328  return 0;
8329}
8330_ACEOF
8331if ac_fn_c_try_link "$LINENO"; then :
8332  eval $cacheid=yes
8333else
8334  eval $cacheid=no
8335fi
8336rm -f core conftest.err conftest.$ac_objext \
8337    conftest$ac_exeext conftest.$ac_ext
8338fi
8339
8340
8341		CFLAGS="$xorg_testset_save_CFLAGS"
8342
8343		eval supported=\$$cacheid
8344		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8345$as_echo "$supported" >&6; }
8346		if test "$supported" = "yes" ; then
8347			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8348			found="yes"
8349		fi
8350	fi
8351
8352	if test $found = "no" ; then
8353		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8354			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8355		fi
8356
8357		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8358			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8359		fi
8360
8361		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8362
8363		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8364$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8365		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8366		if eval \${$cacheid+:} false; then :
8367  $as_echo_n "(cached) " >&6
8368else
8369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370/* end confdefs.h.  */
8371int i;
8372int
8373main ()
8374{
8375
8376  ;
8377  return 0;
8378}
8379_ACEOF
8380if ac_fn_c_try_link "$LINENO"; then :
8381  eval $cacheid=yes
8382else
8383  eval $cacheid=no
8384fi
8385rm -f core conftest.err conftest.$ac_objext \
8386    conftest$ac_exeext conftest.$ac_ext
8387fi
8388
8389
8390		CFLAGS="$xorg_testset_save_CFLAGS"
8391
8392		eval supported=\$$cacheid
8393		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8394$as_echo "$supported" >&6; }
8395		if test "$supported" = "yes" ; then
8396			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8397			found="yes"
8398		fi
8399	fi
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415xorg_testset_save_CFLAGS="$CFLAGS"
8416
8417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8420$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8421if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425/* end confdefs.h.  */
8426int i;
8427_ACEOF
8428if ac_fn_c_try_compile "$LINENO"; then :
8429  xorg_cv_cc_flag_unknown_warning_option=yes
8430else
8431  xorg_cv_cc_flag_unknown_warning_option=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8434fi
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8436$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8438	CFLAGS="$xorg_testset_save_CFLAGS"
8439fi
8440
8441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	fi
8445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8447$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8448if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8449  $as_echo_n "(cached) " >&6
8450else
8451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454_ACEOF
8455if ac_fn_c_try_compile "$LINENO"; then :
8456  xorg_cv_cc_flag_unused_command_line_argument=yes
8457else
8458  xorg_cv_cc_flag_unused_command_line_argument=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8463$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8464	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468found="no"
8469
8470	if test $found = "no" ; then
8471		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8472			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473		fi
8474
8475		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8476			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8477		fi
8478
8479		CFLAGS="$CFLAGS -Werror=nonnull"
8480
8481		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8482$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
8483		cacheid=xorg_cv_cc_flag__Werror_nonnull
8484		if eval \${$cacheid+:} false; then :
8485  $as_echo_n "(cached) " >&6
8486else
8487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488/* end confdefs.h.  */
8489int i;
8490int
8491main ()
8492{
8493
8494  ;
8495  return 0;
8496}
8497_ACEOF
8498if ac_fn_c_try_link "$LINENO"; then :
8499  eval $cacheid=yes
8500else
8501  eval $cacheid=no
8502fi
8503rm -f core conftest.err conftest.$ac_objext \
8504    conftest$ac_exeext conftest.$ac_ext
8505fi
8506
8507
8508		CFLAGS="$xorg_testset_save_CFLAGS"
8509
8510		eval supported=\$$cacheid
8511		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8512$as_echo "$supported" >&6; }
8513		if test "$supported" = "yes" ; then
8514			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8515			found="yes"
8516		fi
8517	fi
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533xorg_testset_save_CFLAGS="$CFLAGS"
8534
8535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8540  $as_echo_n "(cached) " >&6
8541else
8542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8543/* end confdefs.h.  */
8544int i;
8545_ACEOF
8546if ac_fn_c_try_compile "$LINENO"; then :
8547  xorg_cv_cc_flag_unknown_warning_option=yes
8548else
8549  xorg_cv_cc_flag_unknown_warning_option=no
8550fi
8551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552fi
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8556	CFLAGS="$xorg_testset_save_CFLAGS"
8557fi
8558
8559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562	fi
8563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571int i;
8572_ACEOF
8573if ac_fn_c_try_compile "$LINENO"; then :
8574  xorg_cv_cc_flag_unused_command_line_argument=yes
8575else
8576  xorg_cv_cc_flag_unused_command_line_argument=no
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8583	CFLAGS="$xorg_testset_save_CFLAGS"
8584fi
8585
8586found="no"
8587
8588	if test $found = "no" ; then
8589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591		fi
8592
8593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8595		fi
8596
8597		CFLAGS="$CFLAGS -Werror=init-self"
8598
8599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8600$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
8601		cacheid=xorg_cv_cc_flag__Werror_init_self
8602		if eval \${$cacheid+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606/* end confdefs.h.  */
8607int i;
8608int
8609main ()
8610{
8611
8612  ;
8613  return 0;
8614}
8615_ACEOF
8616if ac_fn_c_try_link "$LINENO"; then :
8617  eval $cacheid=yes
8618else
8619  eval $cacheid=no
8620fi
8621rm -f core conftest.err conftest.$ac_objext \
8622    conftest$ac_exeext conftest.$ac_ext
8623fi
8624
8625
8626		CFLAGS="$xorg_testset_save_CFLAGS"
8627
8628		eval supported=\$$cacheid
8629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8630$as_echo "$supported" >&6; }
8631		if test "$supported" = "yes" ; then
8632			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8633			found="yes"
8634		fi
8635	fi
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651xorg_testset_save_CFLAGS="$CFLAGS"
8652
8653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8658  $as_echo_n "(cached) " >&6
8659else
8660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661/* end confdefs.h.  */
8662int i;
8663_ACEOF
8664if ac_fn_c_try_compile "$LINENO"; then :
8665  xorg_cv_cc_flag_unknown_warning_option=yes
8666else
8667  xorg_cv_cc_flag_unknown_warning_option=no
8668fi
8669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670fi
8671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8674	CFLAGS="$xorg_testset_save_CFLAGS"
8675fi
8676
8677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680	fi
8681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692  xorg_cv_cc_flag_unused_command_line_argument=yes
8693else
8694  xorg_cv_cc_flag_unused_command_line_argument=no
8695fi
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8701	CFLAGS="$xorg_testset_save_CFLAGS"
8702fi
8703
8704found="no"
8705
8706	if test $found = "no" ; then
8707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8709		fi
8710
8711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8713		fi
8714
8715		CFLAGS="$CFLAGS -Werror=main"
8716
8717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8718$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
8719		cacheid=xorg_cv_cc_flag__Werror_main
8720		if eval \${$cacheid+:} false; then :
8721  $as_echo_n "(cached) " >&6
8722else
8723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726int
8727main ()
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"; then :
8735  eval $cacheid=yes
8736else
8737  eval $cacheid=no
8738fi
8739rm -f core conftest.err conftest.$ac_objext \
8740    conftest$ac_exeext conftest.$ac_ext
8741fi
8742
8743
8744		CFLAGS="$xorg_testset_save_CFLAGS"
8745
8746		eval supported=\$$cacheid
8747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8748$as_echo "$supported" >&6; }
8749		if test "$supported" = "yes" ; then
8750			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8751			found="yes"
8752		fi
8753	fi
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769xorg_testset_save_CFLAGS="$CFLAGS"
8770
8771if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8772	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8774$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8775if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8776  $as_echo_n "(cached) " >&6
8777else
8778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779/* end confdefs.h.  */
8780int i;
8781_ACEOF
8782if ac_fn_c_try_compile "$LINENO"; then :
8783  xorg_cv_cc_flag_unknown_warning_option=yes
8784else
8785  xorg_cv_cc_flag_unknown_warning_option=no
8786fi
8787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788fi
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8790$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8792	CFLAGS="$xorg_testset_save_CFLAGS"
8793fi
8794
8795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798	fi
8799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8801$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8802if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806/* end confdefs.h.  */
8807int i;
8808_ACEOF
8809if ac_fn_c_try_compile "$LINENO"; then :
8810  xorg_cv_cc_flag_unused_command_line_argument=yes
8811else
8812  xorg_cv_cc_flag_unused_command_line_argument=no
8813fi
8814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815fi
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8817$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8818	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8819	CFLAGS="$xorg_testset_save_CFLAGS"
8820fi
8821
8822found="no"
8823
8824	if test $found = "no" ; then
8825		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8826			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8827		fi
8828
8829		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8830			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8831		fi
8832
8833		CFLAGS="$CFLAGS -Werror=missing-braces"
8834
8835		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8836$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
8837		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8838		if eval \${$cacheid+:} false; then :
8839  $as_echo_n "(cached) " >&6
8840else
8841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8842/* end confdefs.h.  */
8843int i;
8844int
8845main ()
8846{
8847
8848  ;
8849  return 0;
8850}
8851_ACEOF
8852if ac_fn_c_try_link "$LINENO"; then :
8853  eval $cacheid=yes
8854else
8855  eval $cacheid=no
8856fi
8857rm -f core conftest.err conftest.$ac_objext \
8858    conftest$ac_exeext conftest.$ac_ext
8859fi
8860
8861
8862		CFLAGS="$xorg_testset_save_CFLAGS"
8863
8864		eval supported=\$$cacheid
8865		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8866$as_echo "$supported" >&6; }
8867		if test "$supported" = "yes" ; then
8868			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8869			found="yes"
8870		fi
8871	fi
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887xorg_testset_save_CFLAGS="$CFLAGS"
8888
8889if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8890	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8892$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8893if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8894  $as_echo_n "(cached) " >&6
8895else
8896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897/* end confdefs.h.  */
8898int i;
8899_ACEOF
8900if ac_fn_c_try_compile "$LINENO"; then :
8901  xorg_cv_cc_flag_unknown_warning_option=yes
8902else
8903  xorg_cv_cc_flag_unknown_warning_option=no
8904fi
8905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906fi
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8908$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8909	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8910	CFLAGS="$xorg_testset_save_CFLAGS"
8911fi
8912
8913if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8914	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8915		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8916	fi
8917	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8919$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8920if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925int i;
8926_ACEOF
8927if ac_fn_c_try_compile "$LINENO"; then :
8928  xorg_cv_cc_flag_unused_command_line_argument=yes
8929else
8930  xorg_cv_cc_flag_unused_command_line_argument=no
8931fi
8932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933fi
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8935$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8936	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8937	CFLAGS="$xorg_testset_save_CFLAGS"
8938fi
8939
8940found="no"
8941
8942	if test $found = "no" ; then
8943		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8944			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8945		fi
8946
8947		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8948			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8949		fi
8950
8951		CFLAGS="$CFLAGS -Werror=sequence-point"
8952
8953		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8954$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
8955		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8956		if eval \${$cacheid+:} false; then :
8957  $as_echo_n "(cached) " >&6
8958else
8959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960/* end confdefs.h.  */
8961int i;
8962int
8963main ()
8964{
8965
8966  ;
8967  return 0;
8968}
8969_ACEOF
8970if ac_fn_c_try_link "$LINENO"; then :
8971  eval $cacheid=yes
8972else
8973  eval $cacheid=no
8974fi
8975rm -f core conftest.err conftest.$ac_objext \
8976    conftest$ac_exeext conftest.$ac_ext
8977fi
8978
8979
8980		CFLAGS="$xorg_testset_save_CFLAGS"
8981
8982		eval supported=\$$cacheid
8983		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8984$as_echo "$supported" >&6; }
8985		if test "$supported" = "yes" ; then
8986			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8987			found="yes"
8988		fi
8989	fi
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005xorg_testset_save_CFLAGS="$CFLAGS"
9006
9007if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9008	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9010$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9011if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9012  $as_echo_n "(cached) " >&6
9013else
9014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015/* end confdefs.h.  */
9016int i;
9017_ACEOF
9018if ac_fn_c_try_compile "$LINENO"; then :
9019  xorg_cv_cc_flag_unknown_warning_option=yes
9020else
9021  xorg_cv_cc_flag_unknown_warning_option=no
9022fi
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9026$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9027	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9028	CFLAGS="$xorg_testset_save_CFLAGS"
9029fi
9030
9031if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9032	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9033		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034	fi
9035	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9037$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9038if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044_ACEOF
9045if ac_fn_c_try_compile "$LINENO"; then :
9046  xorg_cv_cc_flag_unused_command_line_argument=yes
9047else
9048  xorg_cv_cc_flag_unused_command_line_argument=no
9049fi
9050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051fi
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9053$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9054	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9055	CFLAGS="$xorg_testset_save_CFLAGS"
9056fi
9057
9058found="no"
9059
9060	if test $found = "no" ; then
9061		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9062			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9063		fi
9064
9065		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9066			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9067		fi
9068
9069		CFLAGS="$CFLAGS -Werror=return-type"
9070
9071		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9072$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
9073		cacheid=xorg_cv_cc_flag__Werror_return_type
9074		if eval \${$cacheid+:} false; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078/* end confdefs.h.  */
9079int i;
9080int
9081main ()
9082{
9083
9084  ;
9085  return 0;
9086}
9087_ACEOF
9088if ac_fn_c_try_link "$LINENO"; then :
9089  eval $cacheid=yes
9090else
9091  eval $cacheid=no
9092fi
9093rm -f core conftest.err conftest.$ac_objext \
9094    conftest$ac_exeext conftest.$ac_ext
9095fi
9096
9097
9098		CFLAGS="$xorg_testset_save_CFLAGS"
9099
9100		eval supported=\$$cacheid
9101		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9102$as_echo "$supported" >&6; }
9103		if test "$supported" = "yes" ; then
9104			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9105			found="yes"
9106		fi
9107	fi
9108
9109	if test $found = "no" ; then
9110		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9111			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9112		fi
9113
9114		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9115			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116		fi
9117
9118		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9119
9120		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9121$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9122		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9123		if eval \${$cacheid+:} false; then :
9124  $as_echo_n "(cached) " >&6
9125else
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128int i;
9129int
9130main ()
9131{
9132
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137if ac_fn_c_try_link "$LINENO"; then :
9138  eval $cacheid=yes
9139else
9140  eval $cacheid=no
9141fi
9142rm -f core conftest.err conftest.$ac_objext \
9143    conftest$ac_exeext conftest.$ac_ext
9144fi
9145
9146
9147		CFLAGS="$xorg_testset_save_CFLAGS"
9148
9149		eval supported=\$$cacheid
9150		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9151$as_echo "$supported" >&6; }
9152		if test "$supported" = "yes" ; then
9153			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9154			found="yes"
9155		fi
9156	fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172xorg_testset_save_CFLAGS="$CFLAGS"
9173
9174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9177$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9178if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9179  $as_echo_n "(cached) " >&6
9180else
9181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182/* end confdefs.h.  */
9183int i;
9184_ACEOF
9185if ac_fn_c_try_compile "$LINENO"; then :
9186  xorg_cv_cc_flag_unknown_warning_option=yes
9187else
9188  xorg_cv_cc_flag_unknown_warning_option=no
9189fi
9190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9191fi
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9193$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9195	CFLAGS="$xorg_testset_save_CFLAGS"
9196fi
9197
9198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201	fi
9202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9204$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9205if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9206  $as_echo_n "(cached) " >&6
9207else
9208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9209/* end confdefs.h.  */
9210int i;
9211_ACEOF
9212if ac_fn_c_try_compile "$LINENO"; then :
9213  xorg_cv_cc_flag_unused_command_line_argument=yes
9214else
9215  xorg_cv_cc_flag_unused_command_line_argument=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218fi
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9220$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9221	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9222	CFLAGS="$xorg_testset_save_CFLAGS"
9223fi
9224
9225found="no"
9226
9227	if test $found = "no" ; then
9228		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9229			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230		fi
9231
9232		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9233			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234		fi
9235
9236		CFLAGS="$CFLAGS -Werror=trigraphs"
9237
9238		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9239$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
9240		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9241		if eval \${$cacheid+:} false; then :
9242  $as_echo_n "(cached) " >&6
9243else
9244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245/* end confdefs.h.  */
9246int i;
9247int
9248main ()
9249{
9250
9251  ;
9252  return 0;
9253}
9254_ACEOF
9255if ac_fn_c_try_link "$LINENO"; then :
9256  eval $cacheid=yes
9257else
9258  eval $cacheid=no
9259fi
9260rm -f core conftest.err conftest.$ac_objext \
9261    conftest$ac_exeext conftest.$ac_ext
9262fi
9263
9264
9265		CFLAGS="$xorg_testset_save_CFLAGS"
9266
9267		eval supported=\$$cacheid
9268		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9269$as_echo "$supported" >&6; }
9270		if test "$supported" = "yes" ; then
9271			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9272			found="yes"
9273		fi
9274	fi
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290xorg_testset_save_CFLAGS="$CFLAGS"
9291
9292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9297  $as_echo_n "(cached) " >&6
9298else
9299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300/* end confdefs.h.  */
9301int i;
9302_ACEOF
9303if ac_fn_c_try_compile "$LINENO"; then :
9304  xorg_cv_cc_flag_unknown_warning_option=yes
9305else
9306  xorg_cv_cc_flag_unknown_warning_option=no
9307fi
9308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309fi
9310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9313	CFLAGS="$xorg_testset_save_CFLAGS"
9314fi
9315
9316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319	fi
9320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9324  $as_echo_n "(cached) " >&6
9325else
9326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h.  */
9328int i;
9329_ACEOF
9330if ac_fn_c_try_compile "$LINENO"; then :
9331  xorg_cv_cc_flag_unused_command_line_argument=yes
9332else
9333  xorg_cv_cc_flag_unused_command_line_argument=no
9334fi
9335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336fi
9337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9340	CFLAGS="$xorg_testset_save_CFLAGS"
9341fi
9342
9343found="no"
9344
9345	if test $found = "no" ; then
9346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9348		fi
9349
9350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352		fi
9353
9354		CFLAGS="$CFLAGS -Werror=array-bounds"
9355
9356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9357$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
9358		cacheid=xorg_cv_cc_flag__Werror_array_bounds
9359		if eval \${$cacheid+:} false; then :
9360  $as_echo_n "(cached) " >&6
9361else
9362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9363/* end confdefs.h.  */
9364int i;
9365int
9366main ()
9367{
9368
9369  ;
9370  return 0;
9371}
9372_ACEOF
9373if ac_fn_c_try_link "$LINENO"; then :
9374  eval $cacheid=yes
9375else
9376  eval $cacheid=no
9377fi
9378rm -f core conftest.err conftest.$ac_objext \
9379    conftest$ac_exeext conftest.$ac_ext
9380fi
9381
9382
9383		CFLAGS="$xorg_testset_save_CFLAGS"
9384
9385		eval supported=\$$cacheid
9386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9387$as_echo "$supported" >&6; }
9388		if test "$supported" = "yes" ; then
9389			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9390			found="yes"
9391		fi
9392	fi
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408xorg_testset_save_CFLAGS="$CFLAGS"
9409
9410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9415  $as_echo_n "(cached) " >&6
9416else
9417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418/* end confdefs.h.  */
9419int i;
9420_ACEOF
9421if ac_fn_c_try_compile "$LINENO"; then :
9422  xorg_cv_cc_flag_unknown_warning_option=yes
9423else
9424  xorg_cv_cc_flag_unknown_warning_option=no
9425fi
9426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9427fi
9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9431	CFLAGS="$xorg_testset_save_CFLAGS"
9432fi
9433
9434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437	fi
9438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9442  $as_echo_n "(cached) " >&6
9443else
9444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445/* end confdefs.h.  */
9446int i;
9447_ACEOF
9448if ac_fn_c_try_compile "$LINENO"; then :
9449  xorg_cv_cc_flag_unused_command_line_argument=yes
9450else
9451  xorg_cv_cc_flag_unused_command_line_argument=no
9452fi
9453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9458	CFLAGS="$xorg_testset_save_CFLAGS"
9459fi
9460
9461found="no"
9462
9463	if test $found = "no" ; then
9464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9466		fi
9467
9468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470		fi
9471
9472		CFLAGS="$CFLAGS -Werror=write-strings"
9473
9474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9475$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
9476		cacheid=xorg_cv_cc_flag__Werror_write_strings
9477		if eval \${$cacheid+:} false; then :
9478  $as_echo_n "(cached) " >&6
9479else
9480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481/* end confdefs.h.  */
9482int i;
9483int
9484main ()
9485{
9486
9487  ;
9488  return 0;
9489}
9490_ACEOF
9491if ac_fn_c_try_link "$LINENO"; then :
9492  eval $cacheid=yes
9493else
9494  eval $cacheid=no
9495fi
9496rm -f core conftest.err conftest.$ac_objext \
9497    conftest$ac_exeext conftest.$ac_ext
9498fi
9499
9500
9501		CFLAGS="$xorg_testset_save_CFLAGS"
9502
9503		eval supported=\$$cacheid
9504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9505$as_echo "$supported" >&6; }
9506		if test "$supported" = "yes" ; then
9507			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9508			found="yes"
9509		fi
9510	fi
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526xorg_testset_save_CFLAGS="$CFLAGS"
9527
9528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9529	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9533  $as_echo_n "(cached) " >&6
9534else
9535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536/* end confdefs.h.  */
9537int i;
9538_ACEOF
9539if ac_fn_c_try_compile "$LINENO"; then :
9540  xorg_cv_cc_flag_unknown_warning_option=yes
9541else
9542  xorg_cv_cc_flag_unknown_warning_option=no
9543fi
9544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9545fi
9546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9548	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9549	CFLAGS="$xorg_testset_save_CFLAGS"
9550fi
9551
9552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9553	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555	fi
9556	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9557	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9560  $as_echo_n "(cached) " >&6
9561else
9562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565_ACEOF
9566if ac_fn_c_try_compile "$LINENO"; then :
9567  xorg_cv_cc_flag_unused_command_line_argument=yes
9568else
9569  xorg_cv_cc_flag_unused_command_line_argument=no
9570fi
9571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572fi
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9576	CFLAGS="$xorg_testset_save_CFLAGS"
9577fi
9578
9579found="no"
9580
9581	if test $found = "no" ; then
9582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9584		fi
9585
9586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9588		fi
9589
9590		CFLAGS="$CFLAGS -Werror=address"
9591
9592		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9593$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
9594		cacheid=xorg_cv_cc_flag__Werror_address
9595		if eval \${$cacheid+:} false; then :
9596  $as_echo_n "(cached) " >&6
9597else
9598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599/* end confdefs.h.  */
9600int i;
9601int
9602main ()
9603{
9604
9605  ;
9606  return 0;
9607}
9608_ACEOF
9609if ac_fn_c_try_link "$LINENO"; then :
9610  eval $cacheid=yes
9611else
9612  eval $cacheid=no
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615    conftest$ac_exeext conftest.$ac_ext
9616fi
9617
9618
9619		CFLAGS="$xorg_testset_save_CFLAGS"
9620
9621		eval supported=\$$cacheid
9622		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9623$as_echo "$supported" >&6; }
9624		if test "$supported" = "yes" ; then
9625			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9626			found="yes"
9627		fi
9628	fi
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644xorg_testset_save_CFLAGS="$CFLAGS"
9645
9646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9647	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9651  $as_echo_n "(cached) " >&6
9652else
9653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654/* end confdefs.h.  */
9655int i;
9656_ACEOF
9657if ac_fn_c_try_compile "$LINENO"; then :
9658  xorg_cv_cc_flag_unknown_warning_option=yes
9659else
9660  xorg_cv_cc_flag_unknown_warning_option=no
9661fi
9662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9666	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9667	CFLAGS="$xorg_testset_save_CFLAGS"
9668fi
9669
9670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9671	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9672		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9673	fi
9674	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9678  $as_echo_n "(cached) " >&6
9679else
9680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h.  */
9682int i;
9683_ACEOF
9684if ac_fn_c_try_compile "$LINENO"; then :
9685  xorg_cv_cc_flag_unused_command_line_argument=yes
9686else
9687  xorg_cv_cc_flag_unused_command_line_argument=no
9688fi
9689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9690fi
9691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9694	CFLAGS="$xorg_testset_save_CFLAGS"
9695fi
9696
9697found="no"
9698
9699	if test $found = "no" ; then
9700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9702		fi
9703
9704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9706		fi
9707
9708		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9709
9710		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9711$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9712		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9713		if eval \${$cacheid+:} false; then :
9714  $as_echo_n "(cached) " >&6
9715else
9716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717/* end confdefs.h.  */
9718int i;
9719int
9720main ()
9721{
9722
9723  ;
9724  return 0;
9725}
9726_ACEOF
9727if ac_fn_c_try_link "$LINENO"; then :
9728  eval $cacheid=yes
9729else
9730  eval $cacheid=no
9731fi
9732rm -f core conftest.err conftest.$ac_objext \
9733    conftest$ac_exeext conftest.$ac_ext
9734fi
9735
9736
9737		CFLAGS="$xorg_testset_save_CFLAGS"
9738
9739		eval supported=\$$cacheid
9740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9741$as_echo "$supported" >&6; }
9742		if test "$supported" = "yes" ; then
9743			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9744			found="yes"
9745		fi
9746	fi
9747
9748	if test $found = "no" ; then
9749		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9751		fi
9752
9753		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9755		fi
9756
9757		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9758
9759		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9760$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9761		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9762		if eval \${$cacheid+:} false; then :
9763  $as_echo_n "(cached) " >&6
9764else
9765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766/* end confdefs.h.  */
9767int i;
9768int
9769main ()
9770{
9771
9772  ;
9773  return 0;
9774}
9775_ACEOF
9776if ac_fn_c_try_link "$LINENO"; then :
9777  eval $cacheid=yes
9778else
9779  eval $cacheid=no
9780fi
9781rm -f core conftest.err conftest.$ac_objext \
9782    conftest$ac_exeext conftest.$ac_ext
9783fi
9784
9785
9786		CFLAGS="$xorg_testset_save_CFLAGS"
9787
9788		eval supported=\$$cacheid
9789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9790$as_echo "$supported" >&6; }
9791		if test "$supported" = "yes" ; then
9792			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9793			found="yes"
9794		fi
9795	fi
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811xorg_testset_save_CFLAGS="$CFLAGS"
9812
9813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821/* end confdefs.h.  */
9822int i;
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825  xorg_cv_cc_flag_unknown_warning_option=yes
9826else
9827  xorg_cv_cc_flag_unknown_warning_option=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830fi
9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9834	CFLAGS="$xorg_testset_save_CFLAGS"
9835fi
9836
9837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840	fi
9841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849int i;
9850_ACEOF
9851if ac_fn_c_try_compile "$LINENO"; then :
9852  xorg_cv_cc_flag_unused_command_line_argument=yes
9853else
9854  xorg_cv_cc_flag_unused_command_line_argument=no
9855fi
9856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857fi
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9861	CFLAGS="$xorg_testset_save_CFLAGS"
9862fi
9863
9864found="no"
9865
9866	if test $found = "no" ; then
9867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9869		fi
9870
9871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9873		fi
9874
9875		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9876
9877		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9878$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9879		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9880		if eval \${$cacheid+:} false; then :
9881  $as_echo_n "(cached) " >&6
9882else
9883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884/* end confdefs.h.  */
9885int i;
9886int
9887main ()
9888{
9889
9890  ;
9891  return 0;
9892}
9893_ACEOF
9894if ac_fn_c_try_link "$LINENO"; then :
9895  eval $cacheid=yes
9896else
9897  eval $cacheid=no
9898fi
9899rm -f core conftest.err conftest.$ac_objext \
9900    conftest$ac_exeext conftest.$ac_ext
9901fi
9902
9903
9904		CFLAGS="$xorg_testset_save_CFLAGS"
9905
9906		eval supported=\$$cacheid
9907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9908$as_echo "$supported" >&6; }
9909		if test "$supported" = "yes" ; then
9910			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9911			found="yes"
9912		fi
9913	fi
9914
9915 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9916else
9917{ $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
9918$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;}
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932xorg_testset_save_CFLAGS="$CFLAGS"
9933
9934if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9935	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9937$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9938if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9939  $as_echo_n "(cached) " >&6
9940else
9941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942/* end confdefs.h.  */
9943int i;
9944_ACEOF
9945if ac_fn_c_try_compile "$LINENO"; then :
9946  xorg_cv_cc_flag_unknown_warning_option=yes
9947else
9948  xorg_cv_cc_flag_unknown_warning_option=no
9949fi
9950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951fi
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9953$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9954	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9955	CFLAGS="$xorg_testset_save_CFLAGS"
9956fi
9957
9958if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9959	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9960		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961	fi
9962	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9964$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9965if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9966  $as_echo_n "(cached) " >&6
9967else
9968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969/* end confdefs.h.  */
9970int i;
9971_ACEOF
9972if ac_fn_c_try_compile "$LINENO"; then :
9973  xorg_cv_cc_flag_unused_command_line_argument=yes
9974else
9975  xorg_cv_cc_flag_unused_command_line_argument=no
9976fi
9977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978fi
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9980$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9981	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9982	CFLAGS="$xorg_testset_save_CFLAGS"
9983fi
9984
9985found="no"
9986
9987	if test $found = "no" ; then
9988		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9989			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9990		fi
9991
9992		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9993			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9994		fi
9995
9996		CFLAGS="$CFLAGS -Wimplicit"
9997
9998		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9999$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
10000		cacheid=xorg_cv_cc_flag__Wimplicit
10001		if eval \${$cacheid+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10005/* end confdefs.h.  */
10006int i;
10007int
10008main ()
10009{
10010
10011  ;
10012  return 0;
10013}
10014_ACEOF
10015if ac_fn_c_try_link "$LINENO"; then :
10016  eval $cacheid=yes
10017else
10018  eval $cacheid=no
10019fi
10020rm -f core conftest.err conftest.$ac_objext \
10021    conftest$ac_exeext conftest.$ac_ext
10022fi
10023
10024
10025		CFLAGS="$xorg_testset_save_CFLAGS"
10026
10027		eval supported=\$$cacheid
10028		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10029$as_echo "$supported" >&6; }
10030		if test "$supported" = "yes" ; then
10031			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10032			found="yes"
10033		fi
10034	fi
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050xorg_testset_save_CFLAGS="$CFLAGS"
10051
10052if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10053	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10055$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10056if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h.  */
10061int i;
10062_ACEOF
10063if ac_fn_c_try_compile "$LINENO"; then :
10064  xorg_cv_cc_flag_unknown_warning_option=yes
10065else
10066  xorg_cv_cc_flag_unknown_warning_option=no
10067fi
10068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069fi
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10071$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10072	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10073	CFLAGS="$xorg_testset_save_CFLAGS"
10074fi
10075
10076if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10077	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10078		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079	fi
10080	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10082$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10083if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10084  $as_echo_n "(cached) " >&6
10085else
10086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087/* end confdefs.h.  */
10088int i;
10089_ACEOF
10090if ac_fn_c_try_compile "$LINENO"; then :
10091  xorg_cv_cc_flag_unused_command_line_argument=yes
10092else
10093  xorg_cv_cc_flag_unused_command_line_argument=no
10094fi
10095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096fi
10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10098$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10099	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10100	CFLAGS="$xorg_testset_save_CFLAGS"
10101fi
10102
10103found="no"
10104
10105	if test $found = "no" ; then
10106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10108		fi
10109
10110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112		fi
10113
10114		CFLAGS="$CFLAGS -Wnonnull"
10115
10116		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10117$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
10118		cacheid=xorg_cv_cc_flag__Wnonnull
10119		if eval \${$cacheid+:} false; then :
10120  $as_echo_n "(cached) " >&6
10121else
10122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h.  */
10124int i;
10125int
10126main ()
10127{
10128
10129  ;
10130  return 0;
10131}
10132_ACEOF
10133if ac_fn_c_try_link "$LINENO"; then :
10134  eval $cacheid=yes
10135else
10136  eval $cacheid=no
10137fi
10138rm -f core conftest.err conftest.$ac_objext \
10139    conftest$ac_exeext conftest.$ac_ext
10140fi
10141
10142
10143		CFLAGS="$xorg_testset_save_CFLAGS"
10144
10145		eval supported=\$$cacheid
10146		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10147$as_echo "$supported" >&6; }
10148		if test "$supported" = "yes" ; then
10149			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10150			found="yes"
10151		fi
10152	fi
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168xorg_testset_save_CFLAGS="$CFLAGS"
10169
10170if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10171	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10173$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10174if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178/* end confdefs.h.  */
10179int i;
10180_ACEOF
10181if ac_fn_c_try_compile "$LINENO"; then :
10182  xorg_cv_cc_flag_unknown_warning_option=yes
10183else
10184  xorg_cv_cc_flag_unknown_warning_option=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187fi
10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10189$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10190	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10191	CFLAGS="$xorg_testset_save_CFLAGS"
10192fi
10193
10194if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10195	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197	fi
10198	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10200$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10201if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10202  $as_echo_n "(cached) " >&6
10203else
10204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205/* end confdefs.h.  */
10206int i;
10207_ACEOF
10208if ac_fn_c_try_compile "$LINENO"; then :
10209  xorg_cv_cc_flag_unused_command_line_argument=yes
10210else
10211  xorg_cv_cc_flag_unused_command_line_argument=no
10212fi
10213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214fi
10215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10216$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10217	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10218	CFLAGS="$xorg_testset_save_CFLAGS"
10219fi
10220
10221found="no"
10222
10223	if test $found = "no" ; then
10224		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10225			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226		fi
10227
10228		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10229			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230		fi
10231
10232		CFLAGS="$CFLAGS -Winit-self"
10233
10234		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10235$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
10236		cacheid=xorg_cv_cc_flag__Winit_self
10237		if eval \${$cacheid+:} false; then :
10238  $as_echo_n "(cached) " >&6
10239else
10240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h.  */
10242int i;
10243int
10244main ()
10245{
10246
10247  ;
10248  return 0;
10249}
10250_ACEOF
10251if ac_fn_c_try_link "$LINENO"; then :
10252  eval $cacheid=yes
10253else
10254  eval $cacheid=no
10255fi
10256rm -f core conftest.err conftest.$ac_objext \
10257    conftest$ac_exeext conftest.$ac_ext
10258fi
10259
10260
10261		CFLAGS="$xorg_testset_save_CFLAGS"
10262
10263		eval supported=\$$cacheid
10264		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10265$as_echo "$supported" >&6; }
10266		if test "$supported" = "yes" ; then
10267			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10268			found="yes"
10269		fi
10270	fi
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286xorg_testset_save_CFLAGS="$CFLAGS"
10287
10288if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10289	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10290	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10291$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10292if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10293  $as_echo_n "(cached) " >&6
10294else
10295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10296/* end confdefs.h.  */
10297int i;
10298_ACEOF
10299if ac_fn_c_try_compile "$LINENO"; then :
10300  xorg_cv_cc_flag_unknown_warning_option=yes
10301else
10302  xorg_cv_cc_flag_unknown_warning_option=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10305fi
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309	CFLAGS="$xorg_testset_save_CFLAGS"
10310fi
10311
10312if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315	fi
10316	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10320  $as_echo_n "(cached) " >&6
10321else
10322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323/* end confdefs.h.  */
10324int i;
10325_ACEOF
10326if ac_fn_c_try_compile "$LINENO"; then :
10327  xorg_cv_cc_flag_unused_command_line_argument=yes
10328else
10329  xorg_cv_cc_flag_unused_command_line_argument=no
10330fi
10331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10332fi
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10334$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10335	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10336	CFLAGS="$xorg_testset_save_CFLAGS"
10337fi
10338
10339found="no"
10340
10341	if test $found = "no" ; then
10342		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10343			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344		fi
10345
10346		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10347			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10348		fi
10349
10350		CFLAGS="$CFLAGS -Wmain"
10351
10352		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10353$as_echo_n "checking if $CC supports -Wmain... " >&6; }
10354		cacheid=xorg_cv_cc_flag__Wmain
10355		if eval \${$cacheid+:} false; then :
10356  $as_echo_n "(cached) " >&6
10357else
10358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359/* end confdefs.h.  */
10360int i;
10361int
10362main ()
10363{
10364
10365  ;
10366  return 0;
10367}
10368_ACEOF
10369if ac_fn_c_try_link "$LINENO"; then :
10370  eval $cacheid=yes
10371else
10372  eval $cacheid=no
10373fi
10374rm -f core conftest.err conftest.$ac_objext \
10375    conftest$ac_exeext conftest.$ac_ext
10376fi
10377
10378
10379		CFLAGS="$xorg_testset_save_CFLAGS"
10380
10381		eval supported=\$$cacheid
10382		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10383$as_echo "$supported" >&6; }
10384		if test "$supported" = "yes" ; then
10385			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10386			found="yes"
10387		fi
10388	fi
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404xorg_testset_save_CFLAGS="$CFLAGS"
10405
10406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10407	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10414/* end confdefs.h.  */
10415int i;
10416_ACEOF
10417if ac_fn_c_try_compile "$LINENO"; then :
10418  xorg_cv_cc_flag_unknown_warning_option=yes
10419else
10420  xorg_cv_cc_flag_unknown_warning_option=no
10421fi
10422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10423fi
10424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10426	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10427	CFLAGS="$xorg_testset_save_CFLAGS"
10428fi
10429
10430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10431	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10432		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10433	fi
10434	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10438  $as_echo_n "(cached) " >&6
10439else
10440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441/* end confdefs.h.  */
10442int i;
10443_ACEOF
10444if ac_fn_c_try_compile "$LINENO"; then :
10445  xorg_cv_cc_flag_unused_command_line_argument=yes
10446else
10447  xorg_cv_cc_flag_unused_command_line_argument=no
10448fi
10449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10453	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10454	CFLAGS="$xorg_testset_save_CFLAGS"
10455fi
10456
10457found="no"
10458
10459	if test $found = "no" ; then
10460		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10461			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462		fi
10463
10464		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10465			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10466		fi
10467
10468		CFLAGS="$CFLAGS -Wmissing-braces"
10469
10470		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10471$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
10472		cacheid=xorg_cv_cc_flag__Wmissing_braces
10473		if eval \${$cacheid+:} false; then :
10474  $as_echo_n "(cached) " >&6
10475else
10476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h.  */
10478int i;
10479int
10480main ()
10481{
10482
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488  eval $cacheid=yes
10489else
10490  eval $cacheid=no
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493    conftest$ac_exeext conftest.$ac_ext
10494fi
10495
10496
10497		CFLAGS="$xorg_testset_save_CFLAGS"
10498
10499		eval supported=\$$cacheid
10500		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10501$as_echo "$supported" >&6; }
10502		if test "$supported" = "yes" ; then
10503			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10504			found="yes"
10505		fi
10506	fi
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522xorg_testset_save_CFLAGS="$CFLAGS"
10523
10524if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10525	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10527$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10528if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10529  $as_echo_n "(cached) " >&6
10530else
10531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h.  */
10533int i;
10534_ACEOF
10535if ac_fn_c_try_compile "$LINENO"; then :
10536  xorg_cv_cc_flag_unknown_warning_option=yes
10537else
10538  xorg_cv_cc_flag_unknown_warning_option=no
10539fi
10540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541fi
10542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10543$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10545	CFLAGS="$xorg_testset_save_CFLAGS"
10546fi
10547
10548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10551	fi
10552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10554$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10555if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10556  $as_echo_n "(cached) " >&6
10557else
10558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559/* end confdefs.h.  */
10560int i;
10561_ACEOF
10562if ac_fn_c_try_compile "$LINENO"; then :
10563  xorg_cv_cc_flag_unused_command_line_argument=yes
10564else
10565  xorg_cv_cc_flag_unused_command_line_argument=no
10566fi
10567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568fi
10569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10570$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10571	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10572	CFLAGS="$xorg_testset_save_CFLAGS"
10573fi
10574
10575found="no"
10576
10577	if test $found = "no" ; then
10578		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10579			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10580		fi
10581
10582		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10583			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10584		fi
10585
10586		CFLAGS="$CFLAGS -Wsequence-point"
10587
10588		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10589$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
10590		cacheid=xorg_cv_cc_flag__Wsequence_point
10591		if eval \${$cacheid+:} false; then :
10592  $as_echo_n "(cached) " >&6
10593else
10594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h.  */
10596int i;
10597int
10598main ()
10599{
10600
10601  ;
10602  return 0;
10603}
10604_ACEOF
10605if ac_fn_c_try_link "$LINENO"; then :
10606  eval $cacheid=yes
10607else
10608  eval $cacheid=no
10609fi
10610rm -f core conftest.err conftest.$ac_objext \
10611    conftest$ac_exeext conftest.$ac_ext
10612fi
10613
10614
10615		CFLAGS="$xorg_testset_save_CFLAGS"
10616
10617		eval supported=\$$cacheid
10618		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10619$as_echo "$supported" >&6; }
10620		if test "$supported" = "yes" ; then
10621			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10622			found="yes"
10623		fi
10624	fi
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640xorg_testset_save_CFLAGS="$CFLAGS"
10641
10642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10645$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10646if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10647  $as_echo_n "(cached) " >&6
10648else
10649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h.  */
10651int i;
10652_ACEOF
10653if ac_fn_c_try_compile "$LINENO"; then :
10654  xorg_cv_cc_flag_unknown_warning_option=yes
10655else
10656  xorg_cv_cc_flag_unknown_warning_option=no
10657fi
10658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659fi
10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10661$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10662	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10663	CFLAGS="$xorg_testset_save_CFLAGS"
10664fi
10665
10666if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10667	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10668		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10669	fi
10670	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10672$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10673if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10674  $as_echo_n "(cached) " >&6
10675else
10676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h.  */
10678int i;
10679_ACEOF
10680if ac_fn_c_try_compile "$LINENO"; then :
10681  xorg_cv_cc_flag_unused_command_line_argument=yes
10682else
10683  xorg_cv_cc_flag_unused_command_line_argument=no
10684fi
10685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686fi
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10688$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10690	CFLAGS="$xorg_testset_save_CFLAGS"
10691fi
10692
10693found="no"
10694
10695	if test $found = "no" ; then
10696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10698		fi
10699
10700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10702		fi
10703
10704		CFLAGS="$CFLAGS -Wreturn-type"
10705
10706		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10707$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
10708		cacheid=xorg_cv_cc_flag__Wreturn_type
10709		if eval \${$cacheid+:} false; then :
10710  $as_echo_n "(cached) " >&6
10711else
10712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10713/* end confdefs.h.  */
10714int i;
10715int
10716main ()
10717{
10718
10719  ;
10720  return 0;
10721}
10722_ACEOF
10723if ac_fn_c_try_link "$LINENO"; then :
10724  eval $cacheid=yes
10725else
10726  eval $cacheid=no
10727fi
10728rm -f core conftest.err conftest.$ac_objext \
10729    conftest$ac_exeext conftest.$ac_ext
10730fi
10731
10732
10733		CFLAGS="$xorg_testset_save_CFLAGS"
10734
10735		eval supported=\$$cacheid
10736		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10737$as_echo "$supported" >&6; }
10738		if test "$supported" = "yes" ; then
10739			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10740			found="yes"
10741		fi
10742	fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758xorg_testset_save_CFLAGS="$CFLAGS"
10759
10760if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10761	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10763$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10764if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10765  $as_echo_n "(cached) " >&6
10766else
10767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768/* end confdefs.h.  */
10769int i;
10770_ACEOF
10771if ac_fn_c_try_compile "$LINENO"; then :
10772  xorg_cv_cc_flag_unknown_warning_option=yes
10773else
10774  xorg_cv_cc_flag_unknown_warning_option=no
10775fi
10776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777fi
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10779$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10780	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10781	CFLAGS="$xorg_testset_save_CFLAGS"
10782fi
10783
10784if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10785	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10786		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787	fi
10788	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10790$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10791if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h.  */
10796int i;
10797_ACEOF
10798if ac_fn_c_try_compile "$LINENO"; then :
10799  xorg_cv_cc_flag_unused_command_line_argument=yes
10800else
10801  xorg_cv_cc_flag_unused_command_line_argument=no
10802fi
10803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10806$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10807	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10808	CFLAGS="$xorg_testset_save_CFLAGS"
10809fi
10810
10811found="no"
10812
10813	if test $found = "no" ; then
10814		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10815			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816		fi
10817
10818		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10819			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10820		fi
10821
10822		CFLAGS="$CFLAGS -Wtrigraphs"
10823
10824		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10825$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
10826		cacheid=xorg_cv_cc_flag__Wtrigraphs
10827		if eval \${$cacheid+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832int i;
10833int
10834main ()
10835{
10836
10837  ;
10838  return 0;
10839}
10840_ACEOF
10841if ac_fn_c_try_link "$LINENO"; then :
10842  eval $cacheid=yes
10843else
10844  eval $cacheid=no
10845fi
10846rm -f core conftest.err conftest.$ac_objext \
10847    conftest$ac_exeext conftest.$ac_ext
10848fi
10849
10850
10851		CFLAGS="$xorg_testset_save_CFLAGS"
10852
10853		eval supported=\$$cacheid
10854		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10855$as_echo "$supported" >&6; }
10856		if test "$supported" = "yes" ; then
10857			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10858			found="yes"
10859		fi
10860	fi
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876xorg_testset_save_CFLAGS="$CFLAGS"
10877
10878if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10879	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10881$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10882if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10883  $as_echo_n "(cached) " >&6
10884else
10885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886/* end confdefs.h.  */
10887int i;
10888_ACEOF
10889if ac_fn_c_try_compile "$LINENO"; then :
10890  xorg_cv_cc_flag_unknown_warning_option=yes
10891else
10892  xorg_cv_cc_flag_unknown_warning_option=no
10893fi
10894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895fi
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10897$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10899	CFLAGS="$xorg_testset_save_CFLAGS"
10900fi
10901
10902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10905	fi
10906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10908$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10909if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10910  $as_echo_n "(cached) " >&6
10911else
10912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913/* end confdefs.h.  */
10914int i;
10915_ACEOF
10916if ac_fn_c_try_compile "$LINENO"; then :
10917  xorg_cv_cc_flag_unused_command_line_argument=yes
10918else
10919  xorg_cv_cc_flag_unused_command_line_argument=no
10920fi
10921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10922fi
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10924$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10926	CFLAGS="$xorg_testset_save_CFLAGS"
10927fi
10928
10929found="no"
10930
10931	if test $found = "no" ; then
10932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10934		fi
10935
10936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10938		fi
10939
10940		CFLAGS="$CFLAGS -Warray-bounds"
10941
10942		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10943$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
10944		cacheid=xorg_cv_cc_flag__Warray_bounds
10945		if eval \${$cacheid+:} false; then :
10946  $as_echo_n "(cached) " >&6
10947else
10948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949/* end confdefs.h.  */
10950int i;
10951int
10952main ()
10953{
10954
10955  ;
10956  return 0;
10957}
10958_ACEOF
10959if ac_fn_c_try_link "$LINENO"; then :
10960  eval $cacheid=yes
10961else
10962  eval $cacheid=no
10963fi
10964rm -f core conftest.err conftest.$ac_objext \
10965    conftest$ac_exeext conftest.$ac_ext
10966fi
10967
10968
10969		CFLAGS="$xorg_testset_save_CFLAGS"
10970
10971		eval supported=\$$cacheid
10972		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10973$as_echo "$supported" >&6; }
10974		if test "$supported" = "yes" ; then
10975			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10976			found="yes"
10977		fi
10978	fi
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994xorg_testset_save_CFLAGS="$CFLAGS"
10995
10996if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10997	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10999$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11000if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11001  $as_echo_n "(cached) " >&6
11002else
11003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004/* end confdefs.h.  */
11005int i;
11006_ACEOF
11007if ac_fn_c_try_compile "$LINENO"; then :
11008  xorg_cv_cc_flag_unknown_warning_option=yes
11009else
11010  xorg_cv_cc_flag_unknown_warning_option=no
11011fi
11012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013fi
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11015$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11016	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11017	CFLAGS="$xorg_testset_save_CFLAGS"
11018fi
11019
11020if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11021	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11022		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023	fi
11024	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11026$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11027if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11028  $as_echo_n "(cached) " >&6
11029else
11030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031/* end confdefs.h.  */
11032int i;
11033_ACEOF
11034if ac_fn_c_try_compile "$LINENO"; then :
11035  xorg_cv_cc_flag_unused_command_line_argument=yes
11036else
11037  xorg_cv_cc_flag_unused_command_line_argument=no
11038fi
11039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040fi
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11042$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11044	CFLAGS="$xorg_testset_save_CFLAGS"
11045fi
11046
11047found="no"
11048
11049	if test $found = "no" ; then
11050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11052		fi
11053
11054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11056		fi
11057
11058		CFLAGS="$CFLAGS -Wwrite-strings"
11059
11060		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11061$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
11062		cacheid=xorg_cv_cc_flag__Wwrite_strings
11063		if eval \${$cacheid+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h.  */
11068int i;
11069int
11070main ()
11071{
11072
11073  ;
11074  return 0;
11075}
11076_ACEOF
11077if ac_fn_c_try_link "$LINENO"; then :
11078  eval $cacheid=yes
11079else
11080  eval $cacheid=no
11081fi
11082rm -f core conftest.err conftest.$ac_objext \
11083    conftest$ac_exeext conftest.$ac_ext
11084fi
11085
11086
11087		CFLAGS="$xorg_testset_save_CFLAGS"
11088
11089		eval supported=\$$cacheid
11090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11091$as_echo "$supported" >&6; }
11092		if test "$supported" = "yes" ; then
11093			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11094			found="yes"
11095		fi
11096	fi
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112xorg_testset_save_CFLAGS="$CFLAGS"
11113
11114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11119  $as_echo_n "(cached) " >&6
11120else
11121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122/* end confdefs.h.  */
11123int i;
11124_ACEOF
11125if ac_fn_c_try_compile "$LINENO"; then :
11126  xorg_cv_cc_flag_unknown_warning_option=yes
11127else
11128  xorg_cv_cc_flag_unknown_warning_option=no
11129fi
11130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11131fi
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11135	CFLAGS="$xorg_testset_save_CFLAGS"
11136fi
11137
11138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11141	fi
11142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11146  $as_echo_n "(cached) " >&6
11147else
11148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149/* end confdefs.h.  */
11150int i;
11151_ACEOF
11152if ac_fn_c_try_compile "$LINENO"; then :
11153  xorg_cv_cc_flag_unused_command_line_argument=yes
11154else
11155  xorg_cv_cc_flag_unused_command_line_argument=no
11156fi
11157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158fi
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11162	CFLAGS="$xorg_testset_save_CFLAGS"
11163fi
11164
11165found="no"
11166
11167	if test $found = "no" ; then
11168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11170		fi
11171
11172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11174		fi
11175
11176		CFLAGS="$CFLAGS -Waddress"
11177
11178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11179$as_echo_n "checking if $CC supports -Waddress... " >&6; }
11180		cacheid=xorg_cv_cc_flag__Waddress
11181		if eval \${$cacheid+:} false; then :
11182  $as_echo_n "(cached) " >&6
11183else
11184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185/* end confdefs.h.  */
11186int i;
11187int
11188main ()
11189{
11190
11191  ;
11192  return 0;
11193}
11194_ACEOF
11195if ac_fn_c_try_link "$LINENO"; then :
11196  eval $cacheid=yes
11197else
11198  eval $cacheid=no
11199fi
11200rm -f core conftest.err conftest.$ac_objext \
11201    conftest$ac_exeext conftest.$ac_ext
11202fi
11203
11204
11205		CFLAGS="$xorg_testset_save_CFLAGS"
11206
11207		eval supported=\$$cacheid
11208		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11209$as_echo "$supported" >&6; }
11210		if test "$supported" = "yes" ; then
11211			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11212			found="yes"
11213		fi
11214	fi
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230xorg_testset_save_CFLAGS="$CFLAGS"
11231
11232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11237  $as_echo_n "(cached) " >&6
11238else
11239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240/* end confdefs.h.  */
11241int i;
11242_ACEOF
11243if ac_fn_c_try_compile "$LINENO"; then :
11244  xorg_cv_cc_flag_unknown_warning_option=yes
11245else
11246  xorg_cv_cc_flag_unknown_warning_option=no
11247fi
11248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11253	CFLAGS="$xorg_testset_save_CFLAGS"
11254fi
11255
11256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11259	fi
11260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11264  $as_echo_n "(cached) " >&6
11265else
11266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267/* end confdefs.h.  */
11268int i;
11269_ACEOF
11270if ac_fn_c_try_compile "$LINENO"; then :
11271  xorg_cv_cc_flag_unused_command_line_argument=yes
11272else
11273  xorg_cv_cc_flag_unused_command_line_argument=no
11274fi
11275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276fi
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11280	CFLAGS="$xorg_testset_save_CFLAGS"
11281fi
11282
11283found="no"
11284
11285	if test $found = "no" ; then
11286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11288		fi
11289
11290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11292		fi
11293
11294		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11295
11296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11297$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11298		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11299		if eval \${$cacheid+:} false; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304int i;
11305int
11306main ()
11307{
11308
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314  eval $cacheid=yes
11315else
11316  eval $cacheid=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319    conftest$ac_exeext conftest.$ac_ext
11320fi
11321
11322
11323		CFLAGS="$xorg_testset_save_CFLAGS"
11324
11325		eval supported=\$$cacheid
11326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11327$as_echo "$supported" >&6; }
11328		if test "$supported" = "yes" ; then
11329			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11330			found="yes"
11331		fi
11332	fi
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348xorg_testset_save_CFLAGS="$CFLAGS"
11349
11350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11355  $as_echo_n "(cached) " >&6
11356else
11357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358/* end confdefs.h.  */
11359int i;
11360_ACEOF
11361if ac_fn_c_try_compile "$LINENO"; then :
11362  xorg_cv_cc_flag_unknown_warning_option=yes
11363else
11364  xorg_cv_cc_flag_unknown_warning_option=no
11365fi
11366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367fi
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11371	CFLAGS="$xorg_testset_save_CFLAGS"
11372fi
11373
11374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11377	fi
11378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11382  $as_echo_n "(cached) " >&6
11383else
11384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h.  */
11386int i;
11387_ACEOF
11388if ac_fn_c_try_compile "$LINENO"; then :
11389  xorg_cv_cc_flag_unused_command_line_argument=yes
11390else
11391  xorg_cv_cc_flag_unused_command_line_argument=no
11392fi
11393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11394fi
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11398	CFLAGS="$xorg_testset_save_CFLAGS"
11399fi
11400
11401found="no"
11402
11403	if test $found = "no" ; then
11404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11406		fi
11407
11408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11410		fi
11411
11412		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11413
11414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11415$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11416		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11417		if eval \${$cacheid+:} false; then :
11418  $as_echo_n "(cached) " >&6
11419else
11420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421/* end confdefs.h.  */
11422int i;
11423int
11424main ()
11425{
11426
11427  ;
11428  return 0;
11429}
11430_ACEOF
11431if ac_fn_c_try_link "$LINENO"; then :
11432  eval $cacheid=yes
11433else
11434  eval $cacheid=no
11435fi
11436rm -f core conftest.err conftest.$ac_objext \
11437    conftest$ac_exeext conftest.$ac_ext
11438fi
11439
11440
11441		CFLAGS="$xorg_testset_save_CFLAGS"
11442
11443		eval supported=\$$cacheid
11444		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11445$as_echo "$supported" >&6; }
11446		if test "$supported" = "yes" ; then
11447			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11448			found="yes"
11449		fi
11450	fi
11451
11452
11453fi
11454
11455
11456
11457
11458
11459
11460
11461		CWARNFLAGS="$BASE_CFLAGS"
11462		if  test "x$GCC" = xyes ; then
11463		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11464		fi
11465
11466
11467
11468
11469
11470
11471
11472
11473# Check whether --enable-strict-compilation was given.
11474if test "${enable_strict_compilation+set}" = set; then :
11475  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11476else
11477  STRICT_COMPILE=no
11478fi
11479
11480
11481
11482
11483
11484
11485STRICT_CFLAGS=""
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499xorg_testset_save_CFLAGS="$CFLAGS"
11500
11501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11505if ${xorg_cv_cc_flag_unknown_warning_option+:} 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_unknown_warning_option=yes
11514else
11515  xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
11520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11522	CFLAGS="$xorg_testset_save_CFLAGS"
11523fi
11524
11525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11528	fi
11529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h.  */
11537int i;
11538_ACEOF
11539if ac_fn_c_try_compile "$LINENO"; then :
11540  xorg_cv_cc_flag_unused_command_line_argument=yes
11541else
11542  xorg_cv_cc_flag_unused_command_line_argument=no
11543fi
11544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545fi
11546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11549	CFLAGS="$xorg_testset_save_CFLAGS"
11550fi
11551
11552found="no"
11553
11554	if test $found = "no" ; then
11555		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11557		fi
11558
11559		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11561		fi
11562
11563		CFLAGS="$CFLAGS -pedantic"
11564
11565		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11566$as_echo_n "checking if $CC supports -pedantic... " >&6; }
11567		cacheid=xorg_cv_cc_flag__pedantic
11568		if eval \${$cacheid+:} false; then :
11569  $as_echo_n "(cached) " >&6
11570else
11571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572/* end confdefs.h.  */
11573int i;
11574int
11575main ()
11576{
11577
11578  ;
11579  return 0;
11580}
11581_ACEOF
11582if ac_fn_c_try_link "$LINENO"; then :
11583  eval $cacheid=yes
11584else
11585  eval $cacheid=no
11586fi
11587rm -f core conftest.err conftest.$ac_objext \
11588    conftest$ac_exeext conftest.$ac_ext
11589fi
11590
11591
11592		CFLAGS="$xorg_testset_save_CFLAGS"
11593
11594		eval supported=\$$cacheid
11595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11596$as_echo "$supported" >&6; }
11597		if test "$supported" = "yes" ; then
11598			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11599			found="yes"
11600		fi
11601	fi
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617xorg_testset_save_CFLAGS="$CFLAGS"
11618
11619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11622$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11623if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11624  $as_echo_n "(cached) " >&6
11625else
11626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h.  */
11628int i;
11629_ACEOF
11630if ac_fn_c_try_compile "$LINENO"; then :
11631  xorg_cv_cc_flag_unknown_warning_option=yes
11632else
11633  xorg_cv_cc_flag_unknown_warning_option=no
11634fi
11635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636fi
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11638$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11640	CFLAGS="$xorg_testset_save_CFLAGS"
11641fi
11642
11643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11646	fi
11647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11648	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11649$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11650if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654/* end confdefs.h.  */
11655int i;
11656_ACEOF
11657if ac_fn_c_try_compile "$LINENO"; then :
11658  xorg_cv_cc_flag_unused_command_line_argument=yes
11659else
11660  xorg_cv_cc_flag_unused_command_line_argument=no
11661fi
11662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663fi
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11665$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11666	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11667	CFLAGS="$xorg_testset_save_CFLAGS"
11668fi
11669
11670found="no"
11671
11672	if test $found = "no" ; then
11673		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11675		fi
11676
11677		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11679		fi
11680
11681		CFLAGS="$CFLAGS -Werror"
11682
11683		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11684$as_echo_n "checking if $CC supports -Werror... " >&6; }
11685		cacheid=xorg_cv_cc_flag__Werror
11686		if eval \${$cacheid+:} false; then :
11687  $as_echo_n "(cached) " >&6
11688else
11689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690/* end confdefs.h.  */
11691int i;
11692int
11693main ()
11694{
11695
11696  ;
11697  return 0;
11698}
11699_ACEOF
11700if ac_fn_c_try_link "$LINENO"; then :
11701  eval $cacheid=yes
11702else
11703  eval $cacheid=no
11704fi
11705rm -f core conftest.err conftest.$ac_objext \
11706    conftest$ac_exeext conftest.$ac_ext
11707fi
11708
11709
11710		CFLAGS="$xorg_testset_save_CFLAGS"
11711
11712		eval supported=\$$cacheid
11713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11714$as_echo "$supported" >&6; }
11715		if test "$supported" = "yes" ; then
11716			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11717			found="yes"
11718		fi
11719	fi
11720
11721	if test $found = "no" ; then
11722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11724		fi
11725
11726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11728		fi
11729
11730		CFLAGS="$CFLAGS -errwarn"
11731
11732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11733$as_echo_n "checking if $CC supports -errwarn... " >&6; }
11734		cacheid=xorg_cv_cc_flag__errwarn
11735		if eval \${$cacheid+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739/* end confdefs.h.  */
11740int i;
11741int
11742main ()
11743{
11744
11745  ;
11746  return 0;
11747}
11748_ACEOF
11749if ac_fn_c_try_link "$LINENO"; then :
11750  eval $cacheid=yes
11751else
11752  eval $cacheid=no
11753fi
11754rm -f core conftest.err conftest.$ac_objext \
11755    conftest$ac_exeext conftest.$ac_ext
11756fi
11757
11758
11759		CFLAGS="$xorg_testset_save_CFLAGS"
11760
11761		eval supported=\$$cacheid
11762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11763$as_echo "$supported" >&6; }
11764		if test "$supported" = "yes" ; then
11765			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11766			found="yes"
11767		fi
11768	fi
11769
11770
11771
11772# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11773# activate it with -Werror, so we add it here explicitly.
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787xorg_testset_save_CFLAGS="$CFLAGS"
11788
11789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11794  $as_echo_n "(cached) " >&6
11795else
11796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11797/* end confdefs.h.  */
11798int i;
11799_ACEOF
11800if ac_fn_c_try_compile "$LINENO"; then :
11801  xorg_cv_cc_flag_unknown_warning_option=yes
11802else
11803  xorg_cv_cc_flag_unknown_warning_option=no
11804fi
11805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11810	CFLAGS="$xorg_testset_save_CFLAGS"
11811fi
11812
11813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11816	fi
11817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11821  $as_echo_n "(cached) " >&6
11822else
11823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11824/* end confdefs.h.  */
11825int i;
11826_ACEOF
11827if ac_fn_c_try_compile "$LINENO"; then :
11828  xorg_cv_cc_flag_unused_command_line_argument=yes
11829else
11830  xorg_cv_cc_flag_unused_command_line_argument=no
11831fi
11832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11837	CFLAGS="$xorg_testset_save_CFLAGS"
11838fi
11839
11840found="no"
11841
11842	if test $found = "no" ; then
11843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11845		fi
11846
11847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11849		fi
11850
11851		CFLAGS="$CFLAGS -Werror=attributes"
11852
11853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11854$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
11855		cacheid=xorg_cv_cc_flag__Werror_attributes
11856		if eval \${$cacheid+:} false; then :
11857  $as_echo_n "(cached) " >&6
11858else
11859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h.  */
11861int i;
11862int
11863main ()
11864{
11865
11866  ;
11867  return 0;
11868}
11869_ACEOF
11870if ac_fn_c_try_link "$LINENO"; then :
11871  eval $cacheid=yes
11872else
11873  eval $cacheid=no
11874fi
11875rm -f core conftest.err conftest.$ac_objext \
11876    conftest$ac_exeext conftest.$ac_ext
11877fi
11878
11879
11880		CFLAGS="$xorg_testset_save_CFLAGS"
11881
11882		eval supported=\$$cacheid
11883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11884$as_echo "$supported" >&6; }
11885		if test "$supported" = "yes" ; then
11886			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11887			found="yes"
11888		fi
11889	fi
11890
11891
11892
11893if test "x$STRICT_COMPILE" = "xyes"; then
11894    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11895    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11896fi
11897
11898
11899
11900
11901
11902
11903cat >>confdefs.h <<_ACEOF
11904#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11905_ACEOF
11906
11907	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11908	if test "x$PVM" = "x"; then
11909		PVM="0"
11910	fi
11911
11912cat >>confdefs.h <<_ACEOF
11913#define PACKAGE_VERSION_MINOR $PVM
11914_ACEOF
11915
11916	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11917	if test "x$PVP" = "x"; then
11918		PVP="0"
11919	fi
11920
11921cat >>confdefs.h <<_ACEOF
11922#define PACKAGE_VERSION_PATCHLEVEL $PVP
11923_ACEOF
11924
11925
11926
11927CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
11928mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11929|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
11930echo 'git directory not found: installing possibly empty changelog.' >&2)"
11931
11932
11933
11934
11935macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11936INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11937mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11938|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
11939echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
11940
11941
11942
11943
11944
11945
11946if test x$APP_MAN_SUFFIX = x    ; then
11947    APP_MAN_SUFFIX=1
11948fi
11949if test x$APP_MAN_DIR = x    ; then
11950    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11951fi
11952
11953if test x$LIB_MAN_SUFFIX = x    ; then
11954    LIB_MAN_SUFFIX=3
11955fi
11956if test x$LIB_MAN_DIR = x    ; then
11957    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11958fi
11959
11960if test x$FILE_MAN_SUFFIX = x    ; then
11961    case $host_os in
11962	solaris*)	FILE_MAN_SUFFIX=4  ;;
11963	*)		FILE_MAN_SUFFIX=5  ;;
11964    esac
11965fi
11966if test x$FILE_MAN_DIR = x    ; then
11967    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11968fi
11969
11970if test x$MISC_MAN_SUFFIX = x    ; then
11971    case $host_os in
11972	solaris*)	MISC_MAN_SUFFIX=5  ;;
11973	*)		MISC_MAN_SUFFIX=7  ;;
11974    esac
11975fi
11976if test x$MISC_MAN_DIR = x    ; then
11977    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11978fi
11979
11980if test x$DRIVER_MAN_SUFFIX = x    ; then
11981    case $host_os in
11982	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11983	*)		DRIVER_MAN_SUFFIX=4  ;;
11984    esac
11985fi
11986if test x$DRIVER_MAN_DIR = x    ; then
11987    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11988fi
11989
11990if test x$ADMIN_MAN_SUFFIX = x    ; then
11991    case $host_os in
11992	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11993	*)		ADMIN_MAN_SUFFIX=8  ;;
11994    esac
11995fi
11996if test x$ADMIN_MAN_DIR = x    ; then
11997    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11998fi
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014XORG_MAN_PAGE="X Version 11"
12015
12016MAN_SUBSTS="\
12017	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12018	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12019	-e 's|__xservername__|Xorg|g' \
12020	-e 's|__xconfigfile__|xorg.conf|g' \
12021	-e 's|__projectroot__|\$(prefix)|g' \
12022	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12023	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12024	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12025	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12026	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12027	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12028	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12029
12030
12031
12032# Check whether --enable-silent-rules was given.
12033if test "${enable_silent_rules+set}" = set; then :
12034  enableval=$enable_silent_rules;
12035fi
12036
12037case $enable_silent_rules in # (((
12038  yes) AM_DEFAULT_VERBOSITY=0;;
12039   no) AM_DEFAULT_VERBOSITY=1;;
12040    *) AM_DEFAULT_VERBOSITY=0;;
12041esac
12042am_make=${MAKE-make}
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12044$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12045if ${am_cv_make_support_nested_variables+:} false; then :
12046  $as_echo_n "(cached) " >&6
12047else
12048  if $as_echo 'TRUE=$(BAR$(V))
12049BAR0=false
12050BAR1=true
12051V=1
12052am__doit:
12053	@$(TRUE)
12054.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12055  am_cv_make_support_nested_variables=yes
12056else
12057  am_cv_make_support_nested_variables=no
12058fi
12059fi
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12061$as_echo "$am_cv_make_support_nested_variables" >&6; }
12062if test $am_cv_make_support_nested_variables = yes; then
12063    AM_V='$(V)'
12064  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12065else
12066  AM_V=$AM_DEFAULT_VERBOSITY
12067  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12068fi
12069AM_BACKSLASH='\'
12070
12071
12072
12073
12074
12075
12076
12077# Check whether --with-doxygen was given.
12078if test "${with_doxygen+set}" = set; then :
12079  withval=$with_doxygen; use_doxygen=$withval
12080else
12081  use_doxygen=auto
12082fi
12083
12084
12085
12086if test "x$use_doxygen" = x"auto"; then
12087   # Extract the first word of "doxygen", so it can be a program name with args.
12088set dummy doxygen; ac_word=$2
12089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12090$as_echo_n "checking for $ac_word... " >&6; }
12091if ${ac_cv_path_DOXYGEN+:} false; then :
12092  $as_echo_n "(cached) " >&6
12093else
12094  case $DOXYGEN in
12095  [\\/]* | ?:[\\/]*)
12096  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12097  ;;
12098  *)
12099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102  IFS=$as_save_IFS
12103  test -z "$as_dir" && as_dir=.
12104    for ac_exec_ext in '' $ac_executable_extensions; do
12105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108    break 2
12109  fi
12110done
12111  done
12112IFS=$as_save_IFS
12113
12114  ;;
12115esac
12116fi
12117DOXYGEN=$ac_cv_path_DOXYGEN
12118if test -n "$DOXYGEN"; then
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12120$as_echo "$DOXYGEN" >&6; }
12121else
12122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123$as_echo "no" >&6; }
12124fi
12125
12126
12127   if test "x$DOXYGEN" = "x"; then
12128        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
12129$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
12130	have_doxygen=no
12131   else
12132        have_doxygen=yes
12133   fi
12134elif test "x$use_doxygen" = x"yes" ; then
12135   # Extract the first word of "doxygen", so it can be a program name with args.
12136set dummy doxygen; ac_word=$2
12137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12138$as_echo_n "checking for $ac_word... " >&6; }
12139if ${ac_cv_path_DOXYGEN+:} false; then :
12140  $as_echo_n "(cached) " >&6
12141else
12142  case $DOXYGEN in
12143  [\\/]* | ?:[\\/]*)
12144  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12145  ;;
12146  *)
12147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150  IFS=$as_save_IFS
12151  test -z "$as_dir" && as_dir=.
12152    for ac_exec_ext in '' $ac_executable_extensions; do
12153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156    break 2
12157  fi
12158done
12159  done
12160IFS=$as_save_IFS
12161
12162  ;;
12163esac
12164fi
12165DOXYGEN=$ac_cv_path_DOXYGEN
12166if test -n "$DOXYGEN"; then
12167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12168$as_echo "$DOXYGEN" >&6; }
12169else
12170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
12172fi
12173
12174
12175   if test "x$DOXYGEN" = "x"; then
12176        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
12177   fi
12178   have_doxygen=yes
12179elif test "x$use_doxygen" = x"no" ; then
12180   if test "x$DOXYGEN" != "x"; then
12181      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
12182$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
12183   fi
12184   have_doxygen=no
12185else
12186   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
12187fi
12188if test "$have_doxygen" = yes; then
12189    # scrape the doxygen version
12190    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
12191$as_echo_n "checking the doxygen version... " >&6; }
12192    doxygen_version=`$DOXYGEN --version 2>/dev/null`
12193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
12194$as_echo "$doxygen_version" >&6; }
12195    as_arg_v1=$doxygen_version
12196as_arg_v2=1.6.1
12197awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12198case $? in #(
12199  1) :
12200    if test "x$use_doxygen" = xauto; then
12201            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
12202$as_echo "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
12203            have_doxygen=no
12204        else
12205            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
12206        fi ;; #(
12207  0) :
12208     ;; #(
12209  2) :
12210     ;; #(
12211  *) :
12212     ;;
12213esac
12214fi
12215
12216HAVE_DOT=no
12217if test "x$have_doxygen" = "xyes"; then
12218  # Extract the first word of "dot", so it can be a program name with args.
12219set dummy dot; ac_word=$2
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if ${ac_cv_path_DOT+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  case $DOT in
12226  [\\/]* | ?:[\\/]*)
12227  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
12228  ;;
12229  *)
12230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233  IFS=$as_save_IFS
12234  test -z "$as_dir" && as_dir=.
12235    for ac_exec_ext in '' $ac_executable_extensions; do
12236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
12238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239    break 2
12240  fi
12241done
12242  done
12243IFS=$as_save_IFS
12244
12245  ;;
12246esac
12247fi
12248DOT=$ac_cv_path_DOT
12249if test -n "$DOT"; then
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12251$as_echo "$DOT" >&6; }
12252else
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256
12257
12258    if test "x$DOT" != "x"; then
12259      HAVE_DOT=yes
12260    fi
12261fi
12262
12263
12264 if test "$HAVE_DOT" = "yes"; then
12265  HAVE_DOT_TRUE=
12266  HAVE_DOT_FALSE='#'
12267else
12268  HAVE_DOT_TRUE='#'
12269  HAVE_DOT_FALSE=
12270fi
12271
12272 if test "$have_doxygen" = yes; then
12273  HAVE_DOXYGEN_TRUE=
12274  HAVE_DOXYGEN_FALSE='#'
12275else
12276  HAVE_DOXYGEN_TRUE='#'
12277  HAVE_DOXYGEN_FALSE=
12278fi
12279
12280
12281
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
12283$as_echo_n "checking for X.Org SGML entities >= 1.8... " >&6; }
12284XORG_SGML_PATH=
12285if test -n "$PKG_CONFIG" && \
12286    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
12287  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
12288  ac_status=$?
12289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290  test $ac_status = 0; }; then
12291  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12292else
12293  :
12294
12295fi
12296
12297# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12298# the path and the name of the doc stylesheet
12299if test "x$XORG_SGML_PATH" != "x" ; then
12300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12301$as_echo "$XORG_SGML_PATH" >&6; }
12302   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12303   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12304else
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310
12311
12312 if test "x$XSL_STYLESHEET" != "x"; then
12313  HAVE_STYLESHEETS_TRUE=
12314  HAVE_STYLESHEETS_FALSE='#'
12315else
12316  HAVE_STYLESHEETS_TRUE='#'
12317  HAVE_STYLESHEETS_FALSE=
12318fi
12319
12320
12321
12322
12323# Check whether --enable-docs was given.
12324if test "${enable_docs+set}" = set; then :
12325  enableval=$enable_docs; build_docs=$enableval
12326else
12327  build_docs=yes
12328fi
12329
12330
12331 if test x$build_docs = xyes; then
12332  ENABLE_DOCS_TRUE=
12333  ENABLE_DOCS_FALSE='#'
12334else
12335  ENABLE_DOCS_TRUE='#'
12336  ENABLE_DOCS_FALSE=
12337fi
12338
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
12340$as_echo_n "checking whether to build documentation... " >&6; }
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
12342$as_echo "$build_docs" >&6; }
12343
12344
12345
12346# Check whether --enable-devel-docs was given.
12347if test "${enable_devel_docs+set}" = set; then :
12348  enableval=$enable_devel_docs; build_devel_docs=$enableval
12349else
12350  build_devel_docs=yes
12351fi
12352
12353
12354 if test x$build_devel_docs = xyes; then
12355  ENABLE_DEVEL_DOCS_TRUE=
12356  ENABLE_DEVEL_DOCS_FALSE='#'
12357else
12358  ENABLE_DEVEL_DOCS_TRUE='#'
12359  ENABLE_DEVEL_DOCS_FALSE=
12360fi
12361
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12363$as_echo_n "checking whether to build developer documentation... " >&6; }
12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12365$as_echo "$build_devel_docs" >&6; }
12366
12367
12368
12369
12370
12371# Check whether --with-xmlto was given.
12372if test "${with_xmlto+set}" = set; then :
12373  withval=$with_xmlto; use_xmlto=$withval
12374else
12375  use_xmlto=auto
12376fi
12377
12378
12379
12380if test "x$use_xmlto" = x"auto"; then
12381   # Extract the first word of "xmlto", so it can be a program name with args.
12382set dummy xmlto; ac_word=$2
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12384$as_echo_n "checking for $ac_word... " >&6; }
12385if ${ac_cv_path_XMLTO+:} false; then :
12386  $as_echo_n "(cached) " >&6
12387else
12388  case $XMLTO in
12389  [\\/]* | ?:[\\/]*)
12390  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12391  ;;
12392  *)
12393  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394for as_dir in $PATH
12395do
12396  IFS=$as_save_IFS
12397  test -z "$as_dir" && as_dir=.
12398    for ac_exec_ext in '' $ac_executable_extensions; do
12399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402    break 2
12403  fi
12404done
12405  done
12406IFS=$as_save_IFS
12407
12408  ;;
12409esac
12410fi
12411XMLTO=$ac_cv_path_XMLTO
12412if test -n "$XMLTO"; then
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12414$as_echo "$XMLTO" >&6; }
12415else
12416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
12418fi
12419
12420
12421   if test "x$XMLTO" = "x"; then
12422        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12423$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12424	have_xmlto=no
12425   else
12426        have_xmlto=yes
12427   fi
12428elif test "x$use_xmlto" = x"yes" ; then
12429   # Extract the first word of "xmlto", so it can be a program name with args.
12430set dummy xmlto; ac_word=$2
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432$as_echo_n "checking for $ac_word... " >&6; }
12433if ${ac_cv_path_XMLTO+:} false; then :
12434  $as_echo_n "(cached) " >&6
12435else
12436  case $XMLTO in
12437  [\\/]* | ?:[\\/]*)
12438  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12439  ;;
12440  *)
12441  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444  IFS=$as_save_IFS
12445  test -z "$as_dir" && as_dir=.
12446    for ac_exec_ext in '' $ac_executable_extensions; do
12447  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12450    break 2
12451  fi
12452done
12453  done
12454IFS=$as_save_IFS
12455
12456  ;;
12457esac
12458fi
12459XMLTO=$ac_cv_path_XMLTO
12460if test -n "$XMLTO"; then
12461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12462$as_echo "$XMLTO" >&6; }
12463else
12464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465$as_echo "no" >&6; }
12466fi
12467
12468
12469   if test "x$XMLTO" = "x"; then
12470        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12471   fi
12472   have_xmlto=yes
12473elif test "x$use_xmlto" = x"no" ; then
12474   if test "x$XMLTO" != "x"; then
12475      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12476$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12477   fi
12478   have_xmlto=no
12479else
12480   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12481fi
12482
12483# Test for a minimum version of xmlto, if provided.
12484if test "$have_xmlto" = yes; then
12485    # scrape the xmlto version
12486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12487$as_echo_n "checking the xmlto version... " >&6; }
12488    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12490$as_echo "$xmlto_version" >&6; }
12491    as_arg_v1=$xmlto_version
12492as_arg_v2=0.0.20
12493awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12494case $? in #(
12495  1) :
12496    if test "x$use_xmlto" = xauto; then
12497            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
12498$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
12499            have_xmlto=no
12500        else
12501            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
12502        fi ;; #(
12503  0) :
12504     ;; #(
12505  2) :
12506     ;; #(
12507  *) :
12508     ;;
12509esac
12510fi
12511
12512# Test for the ability of xmlto to generate a text target
12513#
12514# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
12515# following test for empty XML docbook files.
12516# For compatibility reasons use the following empty XML docbook file and if
12517# it fails try it again with a non-empty XML file.
12518have_xmlto_text=no
12519cat > conftest.xml << "EOF"
12520EOF
12521if test "$have_xmlto" = yes; then :
12522  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12523  have_xmlto_text=yes
12524else
12525  # Try it again with a non-empty XML file.
12526              cat > conftest.xml << "EOF"
12527<x></x>
12528EOF
12529              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
12530  have_xmlto_text=yes
12531else
12532  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12533$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
12534fi
12535fi
12536fi
12537rm -f conftest.xml
12538 if test $have_xmlto_text = yes; then
12539  HAVE_XMLTO_TEXT_TRUE=
12540  HAVE_XMLTO_TEXT_FALSE='#'
12541else
12542  HAVE_XMLTO_TEXT_TRUE='#'
12543  HAVE_XMLTO_TEXT_FALSE=
12544fi
12545
12546 if test "$have_xmlto" = yes; then
12547  HAVE_XMLTO_TRUE=
12548  HAVE_XMLTO_FALSE='#'
12549else
12550  HAVE_XMLTO_TRUE='#'
12551  HAVE_XMLTO_FALSE=
12552fi
12553
12554
12555
12556
12557
12558
12559# Check whether --with-fop was given.
12560if test "${with_fop+set}" = set; then :
12561  withval=$with_fop; use_fop=$withval
12562else
12563  use_fop=auto
12564fi
12565
12566
12567
12568if test "x$use_fop" = x"auto"; then
12569   # Extract the first word of "fop", so it can be a program name with args.
12570set dummy fop; ac_word=$2
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572$as_echo_n "checking for $ac_word... " >&6; }
12573if ${ac_cv_path_FOP+:} false; then :
12574  $as_echo_n "(cached) " >&6
12575else
12576  case $FOP in
12577  [\\/]* | ?:[\\/]*)
12578  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12579  ;;
12580  *)
12581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582for as_dir in $PATH
12583do
12584  IFS=$as_save_IFS
12585  test -z "$as_dir" && as_dir=.
12586    for ac_exec_ext in '' $ac_executable_extensions; do
12587  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12588    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12590    break 2
12591  fi
12592done
12593  done
12594IFS=$as_save_IFS
12595
12596  ;;
12597esac
12598fi
12599FOP=$ac_cv_path_FOP
12600if test -n "$FOP"; then
12601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12602$as_echo "$FOP" >&6; }
12603else
12604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
12606fi
12607
12608
12609   if test "x$FOP" = "x"; then
12610        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12611$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12612	have_fop=no
12613   else
12614        have_fop=yes
12615   fi
12616elif test "x$use_fop" = x"yes" ; then
12617   # Extract the first word of "fop", so it can be a program name with args.
12618set dummy fop; ac_word=$2
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620$as_echo_n "checking for $ac_word... " >&6; }
12621if ${ac_cv_path_FOP+:} false; then :
12622  $as_echo_n "(cached) " >&6
12623else
12624  case $FOP in
12625  [\\/]* | ?:[\\/]*)
12626  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12627  ;;
12628  *)
12629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632  IFS=$as_save_IFS
12633  test -z "$as_dir" && as_dir=.
12634    for ac_exec_ext in '' $ac_executable_extensions; do
12635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12636    ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
12637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12638    break 2
12639  fi
12640done
12641  done
12642IFS=$as_save_IFS
12643
12644  ;;
12645esac
12646fi
12647FOP=$ac_cv_path_FOP
12648if test -n "$FOP"; then
12649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12650$as_echo "$FOP" >&6; }
12651else
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
12654fi
12655
12656
12657   if test "x$FOP" = "x"; then
12658        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12659   fi
12660   have_fop=yes
12661elif test "x$use_fop" = x"no" ; then
12662   if test "x$FOP" != "x"; then
12663      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12664$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12665   fi
12666   have_fop=no
12667else
12668   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12669fi
12670
12671# Test for a minimum version of fop, if provided.
12672
12673 if test "$have_fop" = yes; then
12674  HAVE_FOP_TRUE=
12675  HAVE_FOP_FALSE='#'
12676else
12677  HAVE_FOP_TRUE='#'
12678  HAVE_FOP_FALSE=
12679fi
12680
12681
12682
12683
12684# Preserves the interface, should it be implemented later
12685
12686
12687
12688# Check whether --with-xsltproc was given.
12689if test "${with_xsltproc+set}" = set; then :
12690  withval=$with_xsltproc; use_xsltproc=$withval
12691else
12692  use_xsltproc=auto
12693fi
12694
12695
12696
12697if test "x$use_xsltproc" = x"auto"; then
12698   # Extract the first word of "xsltproc", so it can be a program name with args.
12699set dummy xsltproc; ac_word=$2
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701$as_echo_n "checking for $ac_word... " >&6; }
12702if ${ac_cv_path_XSLTPROC+:} false; then :
12703  $as_echo_n "(cached) " >&6
12704else
12705  case $XSLTPROC in
12706  [\\/]* | ?:[\\/]*)
12707  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12708  ;;
12709  *)
12710  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713  IFS=$as_save_IFS
12714  test -z "$as_dir" && as_dir=.
12715    for ac_exec_ext in '' $ac_executable_extensions; do
12716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12717    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12719    break 2
12720  fi
12721done
12722  done
12723IFS=$as_save_IFS
12724
12725  ;;
12726esac
12727fi
12728XSLTPROC=$ac_cv_path_XSLTPROC
12729if test -n "$XSLTPROC"; then
12730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12731$as_echo "$XSLTPROC" >&6; }
12732else
12733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734$as_echo "no" >&6; }
12735fi
12736
12737
12738   if test "x$XSLTPROC" = "x"; then
12739        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
12740$as_echo "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
12741	have_xsltproc=no
12742   else
12743        have_xsltproc=yes
12744   fi
12745elif test "x$use_xsltproc" = x"yes" ; then
12746   # Extract the first word of "xsltproc", so it can be a program name with args.
12747set dummy xsltproc; ac_word=$2
12748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12749$as_echo_n "checking for $ac_word... " >&6; }
12750if ${ac_cv_path_XSLTPROC+:} false; then :
12751  $as_echo_n "(cached) " >&6
12752else
12753  case $XSLTPROC in
12754  [\\/]* | ?:[\\/]*)
12755  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12756  ;;
12757  *)
12758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12759for as_dir in $PATH
12760do
12761  IFS=$as_save_IFS
12762  test -z "$as_dir" && as_dir=.
12763    for ac_exec_ext in '' $ac_executable_extensions; do
12764  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12765    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767    break 2
12768  fi
12769done
12770  done
12771IFS=$as_save_IFS
12772
12773  ;;
12774esac
12775fi
12776XSLTPROC=$ac_cv_path_XSLTPROC
12777if test -n "$XSLTPROC"; then
12778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12779$as_echo "$XSLTPROC" >&6; }
12780else
12781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782$as_echo "no" >&6; }
12783fi
12784
12785
12786   if test "x$XSLTPROC" = "x"; then
12787        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
12788   fi
12789   have_xsltproc=yes
12790elif test "x$use_xsltproc" = x"no" ; then
12791   if test "x$XSLTPROC" != "x"; then
12792      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
12793$as_echo "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
12794   fi
12795   have_xsltproc=no
12796else
12797   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
12798fi
12799
12800 if test "$have_xsltproc" = yes; then
12801  HAVE_XSLTPROC_TRUE=
12802  HAVE_XSLTPROC_FALSE='#'
12803else
12804  HAVE_XSLTPROC_TRUE='#'
12805  HAVE_XSLTPROC_FALSE=
12806fi
12807
12808
12809
12810
12811
12812
12813
12814# Check for different types of support on different platforms
12815case $host_os in
12816    solaris*)
12817        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
12818$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
12819if ${ac_cv_lib_umem_umem_alloc+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  ac_check_lib_save_LIBS=$LIBS
12823LIBS="-lumem  $LIBS"
12824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825/* end confdefs.h.  */
12826
12827/* Override any GCC internal prototype to avoid an error.
12828   Use char because int might match the return type of a GCC
12829   builtin and then its argument prototype would still apply.  */
12830#ifdef __cplusplus
12831extern "C"
12832#endif
12833char umem_alloc ();
12834int
12835main ()
12836{
12837return umem_alloc ();
12838  ;
12839  return 0;
12840}
12841_ACEOF
12842if ac_fn_c_try_link "$LINENO"; then :
12843  ac_cv_lib_umem_umem_alloc=yes
12844else
12845  ac_cv_lib_umem_umem_alloc=no
12846fi
12847rm -f core conftest.err conftest.$ac_objext \
12848    conftest$ac_exeext conftest.$ac_ext
12849LIBS=$ac_check_lib_save_LIBS
12850fi
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
12852$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
12853if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
12854  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
12855fi
12856
12857        ;;
12858    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
12859        # both directly and inverted, so should not be 0 or 255.
12860        malloc_debug_env='MALLOC_PERTURB_=15'
12861        ;;
12862    darwin*)
12863        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
12864        ;;
12865    *bsd*)
12866        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
12867        ;;
12868esac
12869
12870# User supplied flags override default flags
12871if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
12872    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
12873fi
12874
12875XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
12876
12877
12878
12879
12880
12881
12882
12883# Check whether --enable-unit-tests was given.
12884if test "${enable_unit_tests+set}" = set; then :
12885  enableval=$enable_unit_tests; enable_unit_tests=$enableval
12886else
12887  enable_unit_tests=auto
12888fi
12889
12890
12891 if test "x$enable_unit_tests" != xno; then
12892  ENABLE_UNIT_TESTS_TRUE=
12893  ENABLE_UNIT_TESTS_FALSE='#'
12894else
12895  ENABLE_UNIT_TESTS_TRUE='#'
12896  ENABLE_UNIT_TESTS_FALSE=
12897fi
12898
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
12900$as_echo_n "checking whether to build unit test cases... " >&6; }
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
12902$as_echo "$enable_unit_tests" >&6; }
12903
12904
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
12906$as_echo_n "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
12907if ${xorg_cv_linker_flags__Wl__wrap_exit+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910
12911      ax_save_FLAGS=$LDFLAGS
12912      LDFLAGS="-Wl,-wrap,exit"
12913      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915#include <stdlib.h>
12916                      void __wrap_exit(int status) { return; }
12917int
12918main ()
12919{
12920exit(0);
12921  ;
12922  return 0;
12923}
12924_ACEOF
12925if ac_fn_c_try_link "$LINENO"; then :
12926  xorg_cv_linker_flags__Wl__wrap_exit=yes
12927else
12928  xorg_cv_linker_flags__Wl__wrap_exit=no
12929fi
12930rm -f core conftest.err conftest.$ac_objext \
12931    conftest$ac_exeext conftest.$ac_ext
12932      LDFLAGS=$ax_save_FLAGS
12933fi
12934
12935eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
12937$as_echo "$xorg_check_linker_flags" >&6; }
12938if test "x$xorg_check_linker_flags" = xyes; then
12939	have_ld_wrap=yes
12940else
12941	have_ld_wrap=no
12942fi
12943
12944# Not having ld wrap when unit testing has been explicitly requested is an error
12945if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
12946  if test "x$have_ld_wrap" = x"no"; then
12947    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
12948  fi
12949fi
12950 if test "$have_ld_wrap" = yes; then
12951  HAVE_LD_WRAP_TRUE=
12952  HAVE_LD_WRAP_FALSE='#'
12953else
12954  HAVE_LD_WRAP_TRUE='#'
12955  HAVE_LD_WRAP_FALSE=
12956fi
12957
12958#
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973ac_config_headers="$ac_config_headers include/do-not-use-config.h"
12974
12975ac_config_headers="$ac_config_headers include/xorg-server.h"
12976
12977ac_config_headers="$ac_config_headers include/dix-config.h"
12978
12979ac_config_headers="$ac_config_headers include/xorg-config.h"
12980
12981ac_config_headers="$ac_config_headers include/xkb-config.h"
12982
12983ac_config_headers="$ac_config_headers include/xwin-config.h"
12984
12985ac_config_headers="$ac_config_headers include/version-config.h"
12986
12987
12988# By default we simply use the C compiler to build assembly code.
12989
12990test "${CCAS+set}" = set || CCAS=$CC
12991test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
12992
12993
12994
12995depcc="$CCAS"   am_compiler_list=
12996
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12998$as_echo_n "checking dependency style of $depcc... " >&6; }
12999if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
13000  $as_echo_n "(cached) " >&6
13001else
13002  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13003  # We make a subdir and do the tests there.  Otherwise we can end up
13004  # making bogus files that we don't know about and never remove.  For
13005  # instance it was reported that on HP-UX the gcc test will end up
13006  # making a dummy file named 'D' -- because '-MD' means "put the output
13007  # in D".
13008  rm -rf conftest.dir
13009  mkdir conftest.dir
13010  # Copy depcomp to subdir because otherwise we won't find it if we're
13011  # using a relative directory.
13012  cp "$am_depcomp" conftest.dir
13013  cd conftest.dir
13014  # We will build objects and dependencies in a subdirectory because
13015  # it helps to detect inapplicable dependency modes.  For instance
13016  # both Tru64's cc and ICC support -MD to output dependencies as a
13017  # side effect of compilation, but ICC will put the dependencies in
13018  # the current directory while Tru64 will put them in the object
13019  # directory.
13020  mkdir sub
13021
13022  am_cv_CCAS_dependencies_compiler_type=none
13023  if test "$am_compiler_list" = ""; then
13024     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13025  fi
13026  am__universal=false
13027
13028
13029  for depmode in $am_compiler_list; do
13030    # Setup a source with many dependencies, because some compilers
13031    # like to wrap large dependency lists on column 80 (with \), and
13032    # we should not choose a depcomp mode which is confused by this.
13033    #
13034    # We need to recreate these files for each test, as the compiler may
13035    # overwrite some of them when testing with obscure command lines.
13036    # This happens at least with the AIX C compiler.
13037    : > sub/conftest.c
13038    for i in 1 2 3 4 5 6; do
13039      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13040      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13041      # Solaris 10 /bin/sh.
13042      echo '/* dummy */' > sub/conftst$i.h
13043    done
13044    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13045
13046    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13047    # mode.  It turns out that the SunPro C++ compiler does not properly
13048    # handle '-M -o', and we need to detect this.  Also, some Intel
13049    # versions had trouble with output in subdirs.
13050    am__obj=sub/conftest.${OBJEXT-o}
13051    am__minus_obj="-o $am__obj"
13052    case $depmode in
13053    gcc)
13054      # This depmode causes a compiler race in universal mode.
13055      test "$am__universal" = false || continue
13056      ;;
13057    nosideeffect)
13058      # After this tag, mechanisms are not by side-effect, so they'll
13059      # only be used when explicitly requested.
13060      if test "x$enable_dependency_tracking" = xyes; then
13061	continue
13062      else
13063	break
13064      fi
13065      ;;
13066    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13067      # This compiler won't grok '-c -o', but also, the minuso test has
13068      # not run yet.  These depmodes are late enough in the game, and
13069      # so weak that their functioning should not be impacted.
13070      am__obj=conftest.${OBJEXT-o}
13071      am__minus_obj=
13072      ;;
13073    none) break ;;
13074    esac
13075    if depmode=$depmode \
13076       source=sub/conftest.c object=$am__obj \
13077       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13078       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13079         >/dev/null 2>conftest.err &&
13080       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13081       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13082       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13083       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13084      # icc doesn't choke on unknown options, it will just issue warnings
13085      # or remarks (even with -Werror).  So we grep stderr for any message
13086      # that says an option was ignored or not supported.
13087      # When given -MP, icc 7.0 and 7.1 complain thusly:
13088      #   icc: Command line warning: ignoring option '-M'; no argument required
13089      # The diagnosis changed in icc 8.0:
13090      #   icc: Command line remark: option '-MP' not supported
13091      if (grep 'ignoring option' conftest.err ||
13092          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13093        am_cv_CCAS_dependencies_compiler_type=$depmode
13094        break
13095      fi
13096    fi
13097  done
13098
13099  cd ..
13100  rm -rf conftest.dir
13101else
13102  am_cv_CCAS_dependencies_compiler_type=none
13103fi
13104
13105fi
13106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
13107$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
13108CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
13109
13110 if
13111  test "x$enable_dependency_tracking" != xno \
13112  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
13113  am__fastdepCCAS_TRUE=
13114  am__fastdepCCAS_FALSE='#'
13115else
13116  am__fastdepCCAS_TRUE='#'
13117  am__fastdepCCAS_FALSE=
13118fi
13119
13120
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13122$as_echo_n "checking whether ln -s works... " >&6; }
13123LN_S=$as_ln_s
13124if test "$LN_S" = "ln -s"; then
13125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13126$as_echo "yes" >&6; }
13127else
13128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13129$as_echo "no, using $LN_S" >&6; }
13130fi
13131
13132
13133case `pwd` in
13134  *\ * | *\	*)
13135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
13136$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
13137esac
13138
13139
13140
13141macro_version='2.4.6'
13142macro_revision='2.4.6'
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156ltmain=$ac_aux_dir/ltmain.sh
13157
13158# Backslashify metacharacters that are still active within
13159# double-quoted strings.
13160sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13161
13162# Same as above, but do not quote variable references.
13163double_quote_subst='s/\(["`\\]\)/\\\1/g'
13164
13165# Sed substitution to delay expansion of an escaped shell variable in a
13166# double_quote_subst'ed string.
13167delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13168
13169# Sed substitution to delay expansion of an escaped single quote.
13170delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13171
13172# Sed substitution to avoid accidental globbing in evaled expressions
13173no_glob_subst='s/\*/\\\*/g'
13174
13175ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13176ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
13177ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
13178
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
13180$as_echo_n "checking how to print strings... " >&6; }
13181# Test print first, because it will be a builtin if present.
13182if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
13183   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
13184  ECHO='print -r --'
13185elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
13186  ECHO='printf %s\n'
13187else
13188  # Use this function as a fallback that always works.
13189  func_fallback_echo ()
13190  {
13191    eval 'cat <<_LTECHO_EOF
13192$1
13193_LTECHO_EOF'
13194  }
13195  ECHO='func_fallback_echo'
13196fi
13197
13198# func_echo_all arg...
13199# Invoke $ECHO with all args, space-separated.
13200func_echo_all ()
13201{
13202    $ECHO ""
13203}
13204
13205case $ECHO in
13206  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
13207$as_echo "printf" >&6; } ;;
13208  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
13209$as_echo "print -r" >&6; } ;;
13210  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
13211$as_echo "cat" >&6; } ;;
13212esac
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13228$as_echo_n "checking for a sed that does not truncate output... " >&6; }
13229if ${ac_cv_path_SED+:} false; then :
13230  $as_echo_n "(cached) " >&6
13231else
13232            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
13233     for ac_i in 1 2 3 4 5 6 7; do
13234       ac_script="$ac_script$as_nl$ac_script"
13235     done
13236     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
13237     { ac_script=; unset ac_script;}
13238     if test -z "$SED"; then
13239  ac_path_SED_found=false
13240  # Loop through the user's path and test for each of PROGNAME-LIST
13241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242for as_dir in $PATH
13243do
13244  IFS=$as_save_IFS
13245  test -z "$as_dir" && as_dir=.
13246    for ac_prog in sed gsed; do
13247    for ac_exec_ext in '' $ac_executable_extensions; do
13248      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
13249      as_fn_executable_p "$ac_path_SED" || continue
13250# Check for GNU ac_path_SED and select it if it is found.
13251  # Check for GNU $ac_path_SED
13252case `"$ac_path_SED" --version 2>&1` in
13253*GNU*)
13254  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
13255*)
13256  ac_count=0
13257  $as_echo_n 0123456789 >"conftest.in"
13258  while :
13259  do
13260    cat "conftest.in" "conftest.in" >"conftest.tmp"
13261    mv "conftest.tmp" "conftest.in"
13262    cp "conftest.in" "conftest.nl"
13263    $as_echo '' >> "conftest.nl"
13264    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
13265    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13266    as_fn_arith $ac_count + 1 && ac_count=$as_val
13267    if test $ac_count -gt ${ac_path_SED_max-0}; then
13268      # Best one so far, save it but keep looking for a better one
13269      ac_cv_path_SED="$ac_path_SED"
13270      ac_path_SED_max=$ac_count
13271    fi
13272    # 10*(2^10) chars as input seems more than enough
13273    test $ac_count -gt 10 && break
13274  done
13275  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13276esac
13277
13278      $ac_path_SED_found && break 3
13279    done
13280  done
13281  done
13282IFS=$as_save_IFS
13283  if test -z "$ac_cv_path_SED"; then
13284    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
13285  fi
13286else
13287  ac_cv_path_SED=$SED
13288fi
13289
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13292$as_echo "$ac_cv_path_SED" >&6; }
13293 SED="$ac_cv_path_SED"
13294  rm -f conftest.sed
13295
13296test -z "$SED" && SED=sed
13297Xsed="$SED -e 1s/^X//"
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
13310$as_echo_n "checking for fgrep... " >&6; }
13311if ${ac_cv_path_FGREP+:} false; then :
13312  $as_echo_n "(cached) " >&6
13313else
13314  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
13315   then ac_cv_path_FGREP="$GREP -F"
13316   else
13317     if test -z "$FGREP"; then
13318  ac_path_FGREP_found=false
13319  # Loop through the user's path and test for each of PROGNAME-LIST
13320  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13322do
13323  IFS=$as_save_IFS
13324  test -z "$as_dir" && as_dir=.
13325    for ac_prog in fgrep; do
13326    for ac_exec_ext in '' $ac_executable_extensions; do
13327      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
13328      as_fn_executable_p "$ac_path_FGREP" || continue
13329# Check for GNU ac_path_FGREP and select it if it is found.
13330  # Check for GNU $ac_path_FGREP
13331case `"$ac_path_FGREP" --version 2>&1` in
13332*GNU*)
13333  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
13334*)
13335  ac_count=0
13336  $as_echo_n 0123456789 >"conftest.in"
13337  while :
13338  do
13339    cat "conftest.in" "conftest.in" >"conftest.tmp"
13340    mv "conftest.tmp" "conftest.in"
13341    cp "conftest.in" "conftest.nl"
13342    $as_echo 'FGREP' >> "conftest.nl"
13343    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
13344    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13345    as_fn_arith $ac_count + 1 && ac_count=$as_val
13346    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
13347      # Best one so far, save it but keep looking for a better one
13348      ac_cv_path_FGREP="$ac_path_FGREP"
13349      ac_path_FGREP_max=$ac_count
13350    fi
13351    # 10*(2^10) chars as input seems more than enough
13352    test $ac_count -gt 10 && break
13353  done
13354  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13355esac
13356
13357      $ac_path_FGREP_found && break 3
13358    done
13359  done
13360  done
13361IFS=$as_save_IFS
13362  if test -z "$ac_cv_path_FGREP"; then
13363    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13364  fi
13365else
13366  ac_cv_path_FGREP=$FGREP
13367fi
13368
13369   fi
13370fi
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
13372$as_echo "$ac_cv_path_FGREP" >&6; }
13373 FGREP="$ac_cv_path_FGREP"
13374
13375
13376test -z "$GREP" && GREP=grep
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396# Check whether --with-gnu-ld was given.
13397if test "${with_gnu_ld+set}" = set; then :
13398  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13399else
13400  with_gnu_ld=no
13401fi
13402
13403ac_prog=ld
13404if test yes = "$GCC"; then
13405  # Check if gcc -print-prog-name=ld gives a path.
13406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13407$as_echo_n "checking for ld used by $CC... " >&6; }
13408  case $host in
13409  *-*-mingw*)
13410    # gcc leaves a trailing carriage return, which upsets mingw
13411    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13412  *)
13413    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13414  esac
13415  case $ac_prog in
13416    # Accept absolute paths.
13417    [\\/]* | ?:[\\/]*)
13418      re_direlt='/[^/][^/]*/\.\./'
13419      # Canonicalize the pathname of ld
13420      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13421      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13422	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13423      done
13424      test -z "$LD" && LD=$ac_prog
13425      ;;
13426  "")
13427    # If it fails, then pretend we aren't using GCC.
13428    ac_prog=ld
13429    ;;
13430  *)
13431    # If it is relative, then search for the first ld in PATH.
13432    with_gnu_ld=unknown
13433    ;;
13434  esac
13435elif test yes = "$with_gnu_ld"; then
13436  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13437$as_echo_n "checking for GNU ld... " >&6; }
13438else
13439  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13440$as_echo_n "checking for non-GNU ld... " >&6; }
13441fi
13442if ${lt_cv_path_LD+:} false; then :
13443  $as_echo_n "(cached) " >&6
13444else
13445  if test -z "$LD"; then
13446  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13447  for ac_dir in $PATH; do
13448    IFS=$lt_save_ifs
13449    test -z "$ac_dir" && ac_dir=.
13450    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13451      lt_cv_path_LD=$ac_dir/$ac_prog
13452      # Check to see if the program is GNU ld.  I'd rather use --version,
13453      # but apparently some variants of GNU ld only accept -v.
13454      # Break only if it was the GNU/non-GNU ld that we prefer.
13455      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13456      *GNU* | *'with BFD'*)
13457	test no != "$with_gnu_ld" && break
13458	;;
13459      *)
13460	test yes != "$with_gnu_ld" && break
13461	;;
13462      esac
13463    fi
13464  done
13465  IFS=$lt_save_ifs
13466else
13467  lt_cv_path_LD=$LD # Let the user override the test with a path.
13468fi
13469fi
13470
13471LD=$lt_cv_path_LD
13472if test -n "$LD"; then
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13474$as_echo "$LD" >&6; }
13475else
13476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13477$as_echo "no" >&6; }
13478fi
13479test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13481$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13482if ${lt_cv_prog_gnu_ld+:} false; then :
13483  $as_echo_n "(cached) " >&6
13484else
13485  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13486case `$LD -v 2>&1 </dev/null` in
13487*GNU* | *'with BFD'*)
13488  lt_cv_prog_gnu_ld=yes
13489  ;;
13490*)
13491  lt_cv_prog_gnu_ld=no
13492  ;;
13493esac
13494fi
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13496$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13497with_gnu_ld=$lt_cv_prog_gnu_ld
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
13508$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
13509if ${lt_cv_path_NM+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  if test -n "$NM"; then
13513  # Let the user override the test.
13514  lt_cv_path_NM=$NM
13515else
13516  lt_nm_to_check=${ac_tool_prefix}nm
13517  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13518    lt_nm_to_check="$lt_nm_to_check nm"
13519  fi
13520  for lt_tmp_nm in $lt_nm_to_check; do
13521    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13522    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13523      IFS=$lt_save_ifs
13524      test -z "$ac_dir" && ac_dir=.
13525      tmp_nm=$ac_dir/$lt_tmp_nm
13526      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
13527	# Check to see if the nm accepts a BSD-compat flag.
13528	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
13529	#   nm: unknown option "B" ignored
13530	# Tru64's nm complains that /dev/null is an invalid object file
13531	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
13532	case $build_os in
13533	mingw*) lt_bad_file=conftest.nm/nofile ;;
13534	*) lt_bad_file=/dev/null ;;
13535	esac
13536	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
13537	*$lt_bad_file* | *'Invalid file or object type'*)
13538	  lt_cv_path_NM="$tmp_nm -B"
13539	  break 2
13540	  ;;
13541	*)
13542	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13543	  */dev/null*)
13544	    lt_cv_path_NM="$tmp_nm -p"
13545	    break 2
13546	    ;;
13547	  *)
13548	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13549	    continue # so that we can try to find one that supports BSD flags
13550	    ;;
13551	  esac
13552	  ;;
13553	esac
13554      fi
13555    done
13556    IFS=$lt_save_ifs
13557  done
13558  : ${lt_cv_path_NM=no}
13559fi
13560fi
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
13562$as_echo "$lt_cv_path_NM" >&6; }
13563if test no != "$lt_cv_path_NM"; then
13564  NM=$lt_cv_path_NM
13565else
13566  # Didn't find any BSD compatible name lister, look for dumpbin.
13567  if test -n "$DUMPBIN"; then :
13568    # Let the user override the test.
13569  else
13570    if test -n "$ac_tool_prefix"; then
13571  for ac_prog in dumpbin "link -dump"
13572  do
13573    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13574set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576$as_echo_n "checking for $ac_word... " >&6; }
13577if ${ac_cv_prog_DUMPBIN+:} false; then :
13578  $as_echo_n "(cached) " >&6
13579else
13580  if test -n "$DUMPBIN"; then
13581  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
13582else
13583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584for as_dir in $PATH
13585do
13586  IFS=$as_save_IFS
13587  test -z "$as_dir" && as_dir=.
13588    for ac_exec_ext in '' $ac_executable_extensions; do
13589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
13591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592    break 2
13593  fi
13594done
13595  done
13596IFS=$as_save_IFS
13597
13598fi
13599fi
13600DUMPBIN=$ac_cv_prog_DUMPBIN
13601if test -n "$DUMPBIN"; then
13602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
13603$as_echo "$DUMPBIN" >&6; }
13604else
13605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606$as_echo "no" >&6; }
13607fi
13608
13609
13610    test -n "$DUMPBIN" && break
13611  done
13612fi
13613if test -z "$DUMPBIN"; then
13614  ac_ct_DUMPBIN=$DUMPBIN
13615  for ac_prog in dumpbin "link -dump"
13616do
13617  # Extract the first word of "$ac_prog", so it can be a program name with args.
13618set dummy $ac_prog; ac_word=$2
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620$as_echo_n "checking for $ac_word... " >&6; }
13621if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
13622  $as_echo_n "(cached) " >&6
13623else
13624  if test -n "$ac_ct_DUMPBIN"; then
13625  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
13626else
13627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628for as_dir in $PATH
13629do
13630  IFS=$as_save_IFS
13631  test -z "$as_dir" && as_dir=.
13632    for ac_exec_ext in '' $ac_executable_extensions; do
13633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
13635    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13636    break 2
13637  fi
13638done
13639  done
13640IFS=$as_save_IFS
13641
13642fi
13643fi
13644ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
13645if test -n "$ac_ct_DUMPBIN"; then
13646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
13647$as_echo "$ac_ct_DUMPBIN" >&6; }
13648else
13649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650$as_echo "no" >&6; }
13651fi
13652
13653
13654  test -n "$ac_ct_DUMPBIN" && break
13655done
13656
13657  if test "x$ac_ct_DUMPBIN" = x; then
13658    DUMPBIN=":"
13659  else
13660    case $cross_compiling:$ac_tool_warned in
13661yes:)
13662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13664ac_tool_warned=yes ;;
13665esac
13666    DUMPBIN=$ac_ct_DUMPBIN
13667  fi
13668fi
13669
13670    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
13671    *COFF*)
13672      DUMPBIN="$DUMPBIN -symbols -headers"
13673      ;;
13674    *)
13675      DUMPBIN=:
13676      ;;
13677    esac
13678  fi
13679
13680  if test : != "$DUMPBIN"; then
13681    NM=$DUMPBIN
13682  fi
13683fi
13684test -z "$NM" && NM=nm
13685
13686
13687
13688
13689
13690
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13692$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13693if ${lt_cv_nm_interface+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  lt_cv_nm_interface="BSD nm"
13697  echo "int some_variable = 0;" > conftest.$ac_ext
13698  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13699  (eval "$ac_compile" 2>conftest.err)
13700  cat conftest.err >&5
13701  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13702  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13703  cat conftest.err >&5
13704  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13705  cat conftest.out >&5
13706  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13707    lt_cv_nm_interface="MS dumpbin"
13708  fi
13709  rm -f conftest*
13710fi
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13712$as_echo "$lt_cv_nm_interface" >&6; }
13713
13714# find the maximum length of command line arguments
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13716$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13717if ${lt_cv_sys_max_cmd_len+:} false; then :
13718  $as_echo_n "(cached) " >&6
13719else
13720    i=0
13721  teststring=ABCD
13722
13723  case $build_os in
13724  msdosdjgpp*)
13725    # On DJGPP, this test can blow up pretty badly due to problems in libc
13726    # (any single argument exceeding 2000 bytes causes a buffer overrun
13727    # during glob expansion).  Even if it were fixed, the result of this
13728    # check would be larger than it should be.
13729    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13730    ;;
13731
13732  gnu*)
13733    # Under GNU Hurd, this test is not required because there is
13734    # no limit to the length of command line arguments.
13735    # Libtool will interpret -1 as no limit whatsoever
13736    lt_cv_sys_max_cmd_len=-1;
13737    ;;
13738
13739  cygwin* | mingw* | cegcc*)
13740    # On Win9x/ME, this test blows up -- it succeeds, but takes
13741    # about 5 minutes as the teststring grows exponentially.
13742    # Worse, since 9x/ME are not pre-emptively multitasking,
13743    # you end up with a "frozen" computer, even though with patience
13744    # the test eventually succeeds (with a max line length of 256k).
13745    # Instead, let's just punt: use the minimum linelength reported by
13746    # all of the supported platforms: 8192 (on NT/2K/XP).
13747    lt_cv_sys_max_cmd_len=8192;
13748    ;;
13749
13750  mint*)
13751    # On MiNT this can take a long time and run out of memory.
13752    lt_cv_sys_max_cmd_len=8192;
13753    ;;
13754
13755  amigaos*)
13756    # On AmigaOS with pdksh, this test takes hours, literally.
13757    # So we just punt and use a minimum line length of 8192.
13758    lt_cv_sys_max_cmd_len=8192;
13759    ;;
13760
13761  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13762    # This has been around since 386BSD, at least.  Likely further.
13763    if test -x /sbin/sysctl; then
13764      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13765    elif test -x /usr/sbin/sysctl; then
13766      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13767    else
13768      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13769    fi
13770    # And add a safety zone
13771    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13772    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13773    ;;
13774
13775  interix*)
13776    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13777    lt_cv_sys_max_cmd_len=196608
13778    ;;
13779
13780  os2*)
13781    # The test takes a long time on OS/2.
13782    lt_cv_sys_max_cmd_len=8192
13783    ;;
13784
13785  osf*)
13786    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13787    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13788    # nice to cause kernel panics so lets avoid the loop below.
13789    # First set a reasonable default.
13790    lt_cv_sys_max_cmd_len=16384
13791    #
13792    if test -x /sbin/sysconfig; then
13793      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13794        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13795      esac
13796    fi
13797    ;;
13798  sco3.2v5*)
13799    lt_cv_sys_max_cmd_len=102400
13800    ;;
13801  sysv5* | sco5v6* | sysv4.2uw2*)
13802    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13803    if test -n "$kargmax"; then
13804      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13805    else
13806      lt_cv_sys_max_cmd_len=32768
13807    fi
13808    ;;
13809  *)
13810    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13811    if test -n "$lt_cv_sys_max_cmd_len" && \
13812       test undefined != "$lt_cv_sys_max_cmd_len"; then
13813      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13814      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13815    else
13816      # Make teststring a little bigger before we do anything with it.
13817      # a 1K string should be a reasonable start.
13818      for i in 1 2 3 4 5 6 7 8; do
13819        teststring=$teststring$teststring
13820      done
13821      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13822      # If test is not a shell built-in, we'll probably end up computing a
13823      # maximum length that is only half of the actual maximum length, but
13824      # we can't tell.
13825      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13826	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13827	      test 17 != "$i" # 1/2 MB should be enough
13828      do
13829        i=`expr $i + 1`
13830        teststring=$teststring$teststring
13831      done
13832      # Only check the string length outside the loop.
13833      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13834      teststring=
13835      # Add a significant safety factor because C++ compilers can tack on
13836      # massive amounts of additional arguments before passing them to the
13837      # linker.  It appears as though 1/2 is a usable value.
13838      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13839    fi
13840    ;;
13841  esac
13842
13843fi
13844
13845if test -n "$lt_cv_sys_max_cmd_len"; then
13846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13847$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13848else
13849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13850$as_echo "none" >&6; }
13851fi
13852max_cmd_len=$lt_cv_sys_max_cmd_len
13853
13854
13855
13856
13857
13858
13859: ${CP="cp -f"}
13860: ${MV="mv -f"}
13861: ${RM="rm -f"}
13862
13863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13864  lt_unset=unset
13865else
13866  lt_unset=false
13867fi
13868
13869
13870
13871
13872
13873# test EBCDIC or ASCII
13874case `echo X|tr X '\101'` in
13875 A) # ASCII based system
13876    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13877  lt_SP2NL='tr \040 \012'
13878  lt_NL2SP='tr \015\012 \040\040'
13879  ;;
13880 *) # EBCDIC based system
13881  lt_SP2NL='tr \100 \n'
13882  lt_NL2SP='tr \r\n \100\100'
13883  ;;
13884esac
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13895$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
13896if ${lt_cv_to_host_file_cmd+:} false; then :
13897  $as_echo_n "(cached) " >&6
13898else
13899  case $host in
13900  *-*-mingw* )
13901    case $build in
13902      *-*-mingw* ) # actually msys
13903        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13904        ;;
13905      *-*-cygwin* )
13906        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13907        ;;
13908      * ) # otherwise, assume *nix
13909        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13910        ;;
13911    esac
13912    ;;
13913  *-*-cygwin* )
13914    case $build in
13915      *-*-mingw* ) # actually msys
13916        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13917        ;;
13918      *-*-cygwin* )
13919        lt_cv_to_host_file_cmd=func_convert_file_noop
13920        ;;
13921      * ) # otherwise, assume *nix
13922        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13923        ;;
13924    esac
13925    ;;
13926  * ) # unhandled hosts (and "normal" native builds)
13927    lt_cv_to_host_file_cmd=func_convert_file_noop
13928    ;;
13929esac
13930
13931fi
13932
13933to_host_file_cmd=$lt_cv_to_host_file_cmd
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13935$as_echo "$lt_cv_to_host_file_cmd" >&6; }
13936
13937
13938
13939
13940
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13942$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
13943if ${lt_cv_to_tool_file_cmd+:} false; then :
13944  $as_echo_n "(cached) " >&6
13945else
13946  #assume ordinary cross tools, or native build.
13947lt_cv_to_tool_file_cmd=func_convert_file_noop
13948case $host in
13949  *-*-mingw* )
13950    case $build in
13951      *-*-mingw* ) # actually msys
13952        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13953        ;;
13954    esac
13955    ;;
13956esac
13957
13958fi
13959
13960to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13962$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
13963
13964
13965
13966
13967
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13969$as_echo_n "checking for $LD option to reload object files... " >&6; }
13970if ${lt_cv_ld_reload_flag+:} false; then :
13971  $as_echo_n "(cached) " >&6
13972else
13973  lt_cv_ld_reload_flag='-r'
13974fi
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13976$as_echo "$lt_cv_ld_reload_flag" >&6; }
13977reload_flag=$lt_cv_ld_reload_flag
13978case $reload_flag in
13979"" | " "*) ;;
13980*) reload_flag=" $reload_flag" ;;
13981esac
13982reload_cmds='$LD$reload_flag -o $output$reload_objs'
13983case $host_os in
13984  cygwin* | mingw* | pw32* | cegcc*)
13985    if test yes != "$GCC"; then
13986      reload_cmds=false
13987    fi
13988    ;;
13989  darwin*)
13990    if test yes = "$GCC"; then
13991      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13992    else
13993      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13994    fi
13995    ;;
13996esac
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006if test -n "$ac_tool_prefix"; then
14007  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14008set dummy ${ac_tool_prefix}objdump; ac_word=$2
14009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14010$as_echo_n "checking for $ac_word... " >&6; }
14011if ${ac_cv_prog_OBJDUMP+:} false; then :
14012  $as_echo_n "(cached) " >&6
14013else
14014  if test -n "$OBJDUMP"; then
14015  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14016else
14017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018for as_dir in $PATH
14019do
14020  IFS=$as_save_IFS
14021  test -z "$as_dir" && as_dir=.
14022    for ac_exec_ext in '' $ac_executable_extensions; do
14023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14024    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14026    break 2
14027  fi
14028done
14029  done
14030IFS=$as_save_IFS
14031
14032fi
14033fi
14034OBJDUMP=$ac_cv_prog_OBJDUMP
14035if test -n "$OBJDUMP"; then
14036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14037$as_echo "$OBJDUMP" >&6; }
14038else
14039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040$as_echo "no" >&6; }
14041fi
14042
14043
14044fi
14045if test -z "$ac_cv_prog_OBJDUMP"; then
14046  ac_ct_OBJDUMP=$OBJDUMP
14047  # Extract the first word of "objdump", so it can be a program name with args.
14048set dummy objdump; ac_word=$2
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14050$as_echo_n "checking for $ac_word... " >&6; }
14051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14052  $as_echo_n "(cached) " >&6
14053else
14054  if test -n "$ac_ct_OBJDUMP"; then
14055  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14056else
14057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058for as_dir in $PATH
14059do
14060  IFS=$as_save_IFS
14061  test -z "$as_dir" && as_dir=.
14062    for ac_exec_ext in '' $ac_executable_extensions; do
14063  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14064    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14065    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14066    break 2
14067  fi
14068done
14069  done
14070IFS=$as_save_IFS
14071
14072fi
14073fi
14074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14075if test -n "$ac_ct_OBJDUMP"; then
14076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14077$as_echo "$ac_ct_OBJDUMP" >&6; }
14078else
14079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080$as_echo "no" >&6; }
14081fi
14082
14083  if test "x$ac_ct_OBJDUMP" = x; then
14084    OBJDUMP="false"
14085  else
14086    case $cross_compiling:$ac_tool_warned in
14087yes:)
14088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14090ac_tool_warned=yes ;;
14091esac
14092    OBJDUMP=$ac_ct_OBJDUMP
14093  fi
14094else
14095  OBJDUMP="$ac_cv_prog_OBJDUMP"
14096fi
14097
14098test -z "$OBJDUMP" && OBJDUMP=objdump
14099
14100
14101
14102
14103
14104
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
14106$as_echo_n "checking how to recognize dependent libraries... " >&6; }
14107if ${lt_cv_deplibs_check_method+:} false; then :
14108  $as_echo_n "(cached) " >&6
14109else
14110  lt_cv_file_magic_cmd='$MAGIC_CMD'
14111lt_cv_file_magic_test_file=
14112lt_cv_deplibs_check_method='unknown'
14113# Need to set the preceding variable on all platforms that support
14114# interlibrary dependencies.
14115# 'none' -- dependencies not supported.
14116# 'unknown' -- same as none, but documents that we really don't know.
14117# 'pass_all' -- all dependencies passed with no checks.
14118# 'test_compile' -- check by making test program.
14119# 'file_magic [[regex]]' -- check by looking for files in library path
14120# that responds to the $file_magic_cmd with a given extended regex.
14121# If you have 'file' or equivalent on your system and you're not sure
14122# whether 'pass_all' will *always* work, you probably want this one.
14123
14124case $host_os in
14125aix[4-9]*)
14126  lt_cv_deplibs_check_method=pass_all
14127  ;;
14128
14129beos*)
14130  lt_cv_deplibs_check_method=pass_all
14131  ;;
14132
14133bsdi[45]*)
14134  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14135  lt_cv_file_magic_cmd='/usr/bin/file -L'
14136  lt_cv_file_magic_test_file=/shlib/libc.so
14137  ;;
14138
14139cygwin*)
14140  # func_win32_libid is a shell function defined in ltmain.sh
14141  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14142  lt_cv_file_magic_cmd='func_win32_libid'
14143  ;;
14144
14145mingw* | pw32*)
14146  # Base MSYS/MinGW do not provide the 'file' command needed by
14147  # func_win32_libid shell function, so use a weaker test based on 'objdump',
14148  # unless we find 'file', for example because we are cross-compiling.
14149  if ( file / ) >/dev/null 2>&1; then
14150    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14151    lt_cv_file_magic_cmd='func_win32_libid'
14152  else
14153    # Keep this pattern in sync with the one in func_win32_libid.
14154    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
14155    lt_cv_file_magic_cmd='$OBJDUMP -f'
14156  fi
14157  ;;
14158
14159cegcc*)
14160  # use the weaker test based on 'objdump'. See mingw*.
14161  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
14162  lt_cv_file_magic_cmd='$OBJDUMP -f'
14163  ;;
14164
14165darwin* | rhapsody*)
14166  lt_cv_deplibs_check_method=pass_all
14167  ;;
14168
14169freebsd* | dragonfly*)
14170  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14171    case $host_cpu in
14172    i*86 )
14173      # Not sure whether the presence of OpenBSD here was a mistake.
14174      # Let's accept both of them until this is cleared up.
14175      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14176      lt_cv_file_magic_cmd=/usr/bin/file
14177      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14178      ;;
14179    esac
14180  else
14181    lt_cv_deplibs_check_method=pass_all
14182  fi
14183  ;;
14184
14185haiku*)
14186  lt_cv_deplibs_check_method=pass_all
14187  ;;
14188
14189hpux10.20* | hpux11*)
14190  lt_cv_file_magic_cmd=/usr/bin/file
14191  case $host_cpu in
14192  ia64*)
14193    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14194    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14195    ;;
14196  hppa*64*)
14197    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]'
14198    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14199    ;;
14200  *)
14201    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
14202    lt_cv_file_magic_test_file=/usr/lib/libc.sl
14203    ;;
14204  esac
14205  ;;
14206
14207interix[3-9]*)
14208  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14209  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14210  ;;
14211
14212irix5* | irix6* | nonstopux*)
14213  case $LD in
14214  *-32|*"-32 ") libmagic=32-bit;;
14215  *-n32|*"-n32 ") libmagic=N32;;
14216  *-64|*"-64 ") libmagic=64-bit;;
14217  *) libmagic=never-match;;
14218  esac
14219  lt_cv_deplibs_check_method=pass_all
14220  ;;
14221
14222# This must be glibc/ELF.
14223linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14224  lt_cv_deplibs_check_method=pass_all
14225  ;;
14226
14227netbsd* | netbsdelf*-gnu)
14228  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
14229    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14230  else
14231    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14232  fi
14233  ;;
14234
14235newos6*)
14236  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14237  lt_cv_file_magic_cmd=/usr/bin/file
14238  lt_cv_file_magic_test_file=/usr/lib/libnls.so
14239  ;;
14240
14241*nto* | *qnx*)
14242  lt_cv_deplibs_check_method=pass_all
14243  ;;
14244
14245openbsd* | bitrig*)
14246  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14248  else
14249    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14250  fi
14251  ;;
14252
14253osf3* | osf4* | osf5*)
14254  lt_cv_deplibs_check_method=pass_all
14255  ;;
14256
14257rdos*)
14258  lt_cv_deplibs_check_method=pass_all
14259  ;;
14260
14261solaris*)
14262  lt_cv_deplibs_check_method=pass_all
14263  ;;
14264
14265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14266  lt_cv_deplibs_check_method=pass_all
14267  ;;
14268
14269sysv4 | sysv4.3*)
14270  case $host_vendor in
14271  motorola)
14272    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]'
14273    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14274    ;;
14275  ncr)
14276    lt_cv_deplibs_check_method=pass_all
14277    ;;
14278  sequent)
14279    lt_cv_file_magic_cmd='/bin/file'
14280    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14281    ;;
14282  sni)
14283    lt_cv_file_magic_cmd='/bin/file'
14284    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14285    lt_cv_file_magic_test_file=/lib/libc.so
14286    ;;
14287  siemens)
14288    lt_cv_deplibs_check_method=pass_all
14289    ;;
14290  pc)
14291    lt_cv_deplibs_check_method=pass_all
14292    ;;
14293  esac
14294  ;;
14295
14296tpf*)
14297  lt_cv_deplibs_check_method=pass_all
14298  ;;
14299os2*)
14300  lt_cv_deplibs_check_method=pass_all
14301  ;;
14302esac
14303
14304fi
14305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
14306$as_echo "$lt_cv_deplibs_check_method" >&6; }
14307
14308file_magic_glob=
14309want_nocaseglob=no
14310if test "$build" = "$host"; then
14311  case $host_os in
14312  mingw* | pw32*)
14313    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
14314      want_nocaseglob=yes
14315    else
14316      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
14317    fi
14318    ;;
14319  esac
14320fi
14321
14322file_magic_cmd=$lt_cv_file_magic_cmd
14323deplibs_check_method=$lt_cv_deplibs_check_method
14324test -z "$deplibs_check_method" && deplibs_check_method=unknown
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347if test -n "$ac_tool_prefix"; then
14348  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14349set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351$as_echo_n "checking for $ac_word... " >&6; }
14352if ${ac_cv_prog_DLLTOOL+:} false; then :
14353  $as_echo_n "(cached) " >&6
14354else
14355  if test -n "$DLLTOOL"; then
14356  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14357else
14358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359for as_dir in $PATH
14360do
14361  IFS=$as_save_IFS
14362  test -z "$as_dir" && as_dir=.
14363    for ac_exec_ext in '' $ac_executable_extensions; do
14364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14365    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14367    break 2
14368  fi
14369done
14370  done
14371IFS=$as_save_IFS
14372
14373fi
14374fi
14375DLLTOOL=$ac_cv_prog_DLLTOOL
14376if test -n "$DLLTOOL"; then
14377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14378$as_echo "$DLLTOOL" >&6; }
14379else
14380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14381$as_echo "no" >&6; }
14382fi
14383
14384
14385fi
14386if test -z "$ac_cv_prog_DLLTOOL"; then
14387  ac_ct_DLLTOOL=$DLLTOOL
14388  # Extract the first word of "dlltool", so it can be a program name with args.
14389set dummy dlltool; ac_word=$2
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14391$as_echo_n "checking for $ac_word... " >&6; }
14392if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14393  $as_echo_n "(cached) " >&6
14394else
14395  if test -n "$ac_ct_DLLTOOL"; then
14396  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14397else
14398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14399for as_dir in $PATH
14400do
14401  IFS=$as_save_IFS
14402  test -z "$as_dir" && as_dir=.
14403    for ac_exec_ext in '' $ac_executable_extensions; do
14404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14405    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14407    break 2
14408  fi
14409done
14410  done
14411IFS=$as_save_IFS
14412
14413fi
14414fi
14415ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14416if test -n "$ac_ct_DLLTOOL"; then
14417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14418$as_echo "$ac_ct_DLLTOOL" >&6; }
14419else
14420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421$as_echo "no" >&6; }
14422fi
14423
14424  if test "x$ac_ct_DLLTOOL" = x; then
14425    DLLTOOL="false"
14426  else
14427    case $cross_compiling:$ac_tool_warned in
14428yes:)
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14431ac_tool_warned=yes ;;
14432esac
14433    DLLTOOL=$ac_ct_DLLTOOL
14434  fi
14435else
14436  DLLTOOL="$ac_cv_prog_DLLTOOL"
14437fi
14438
14439test -z "$DLLTOOL" && DLLTOOL=dlltool
14440
14441
14442
14443
14444
14445
14446
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
14448$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
14449if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
14450  $as_echo_n "(cached) " >&6
14451else
14452  lt_cv_sharedlib_from_linklib_cmd='unknown'
14453
14454case $host_os in
14455cygwin* | mingw* | pw32* | cegcc*)
14456  # two different shell functions defined in ltmain.sh;
14457  # decide which one to use based on capabilities of $DLLTOOL
14458  case `$DLLTOOL --help 2>&1` in
14459  *--identify-strict*)
14460    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
14461    ;;
14462  *)
14463    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
14464    ;;
14465  esac
14466  ;;
14467*)
14468  # fallback: assume linklib IS sharedlib
14469  lt_cv_sharedlib_from_linklib_cmd=$ECHO
14470  ;;
14471esac
14472
14473fi
14474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
14475$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
14476sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
14477test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
14478
14479
14480
14481
14482
14483
14484
14485if test -n "$ac_tool_prefix"; then
14486  for ac_prog in ar
14487  do
14488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14491$as_echo_n "checking for $ac_word... " >&6; }
14492if ${ac_cv_prog_AR+:} false; then :
14493  $as_echo_n "(cached) " >&6
14494else
14495  if test -n "$AR"; then
14496  ac_cv_prog_AR="$AR" # Let the user override the test.
14497else
14498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14499for as_dir in $PATH
14500do
14501  IFS=$as_save_IFS
14502  test -z "$as_dir" && as_dir=.
14503    for ac_exec_ext in '' $ac_executable_extensions; do
14504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14505    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
14506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14507    break 2
14508  fi
14509done
14510  done
14511IFS=$as_save_IFS
14512
14513fi
14514fi
14515AR=$ac_cv_prog_AR
14516if test -n "$AR"; then
14517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14518$as_echo "$AR" >&6; }
14519else
14520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14521$as_echo "no" >&6; }
14522fi
14523
14524
14525    test -n "$AR" && break
14526  done
14527fi
14528if test -z "$AR"; then
14529  ac_ct_AR=$AR
14530  for ac_prog in ar
14531do
14532  # Extract the first word of "$ac_prog", so it can be a program name with args.
14533set dummy $ac_prog; ac_word=$2
14534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14535$as_echo_n "checking for $ac_word... " >&6; }
14536if ${ac_cv_prog_ac_ct_AR+:} false; then :
14537  $as_echo_n "(cached) " >&6
14538else
14539  if test -n "$ac_ct_AR"; then
14540  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14541else
14542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543for as_dir in $PATH
14544do
14545  IFS=$as_save_IFS
14546  test -z "$as_dir" && as_dir=.
14547    for ac_exec_ext in '' $ac_executable_extensions; do
14548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14549    ac_cv_prog_ac_ct_AR="$ac_prog"
14550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14551    break 2
14552  fi
14553done
14554  done
14555IFS=$as_save_IFS
14556
14557fi
14558fi
14559ac_ct_AR=$ac_cv_prog_ac_ct_AR
14560if test -n "$ac_ct_AR"; then
14561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14562$as_echo "$ac_ct_AR" >&6; }
14563else
14564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14565$as_echo "no" >&6; }
14566fi
14567
14568
14569  test -n "$ac_ct_AR" && break
14570done
14571
14572  if test "x$ac_ct_AR" = x; then
14573    AR="false"
14574  else
14575    case $cross_compiling:$ac_tool_warned in
14576yes:)
14577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14579ac_tool_warned=yes ;;
14580esac
14581    AR=$ac_ct_AR
14582  fi
14583fi
14584
14585: ${AR=ar}
14586: ${AR_FLAGS=cr}
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
14599$as_echo_n "checking for archiver @FILE support... " >&6; }
14600if ${lt_cv_ar_at_file+:} false; then :
14601  $as_echo_n "(cached) " >&6
14602else
14603  lt_cv_ar_at_file=no
14604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605/* end confdefs.h.  */
14606
14607int
14608main ()
14609{
14610
14611  ;
14612  return 0;
14613}
14614_ACEOF
14615if ac_fn_c_try_compile "$LINENO"; then :
14616  echo conftest.$ac_objext > conftest.lst
14617      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
14618      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14619  (eval $lt_ar_try) 2>&5
14620  ac_status=$?
14621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622  test $ac_status = 0; }
14623      if test 0 -eq "$ac_status"; then
14624	# Ensure the archiver fails upon bogus file names.
14625	rm -f conftest.$ac_objext libconftest.a
14626	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
14627  (eval $lt_ar_try) 2>&5
14628  ac_status=$?
14629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14630  test $ac_status = 0; }
14631	if test 0 -ne "$ac_status"; then
14632          lt_cv_ar_at_file=@
14633        fi
14634      fi
14635      rm -f conftest.* libconftest.a
14636
14637fi
14638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639
14640fi
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
14642$as_echo "$lt_cv_ar_at_file" >&6; }
14643
14644if test no = "$lt_cv_ar_at_file"; then
14645  archiver_list_spec=
14646else
14647  archiver_list_spec=$lt_cv_ar_at_file
14648fi
14649
14650
14651
14652
14653
14654
14655
14656if test -n "$ac_tool_prefix"; then
14657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14658set dummy ${ac_tool_prefix}strip; ac_word=$2
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14660$as_echo_n "checking for $ac_word... " >&6; }
14661if ${ac_cv_prog_STRIP+:} false; then :
14662  $as_echo_n "(cached) " >&6
14663else
14664  if test -n "$STRIP"; then
14665  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14666else
14667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14668for as_dir in $PATH
14669do
14670  IFS=$as_save_IFS
14671  test -z "$as_dir" && as_dir=.
14672    for ac_exec_ext in '' $ac_executable_extensions; do
14673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14674    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14676    break 2
14677  fi
14678done
14679  done
14680IFS=$as_save_IFS
14681
14682fi
14683fi
14684STRIP=$ac_cv_prog_STRIP
14685if test -n "$STRIP"; then
14686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14687$as_echo "$STRIP" >&6; }
14688else
14689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14690$as_echo "no" >&6; }
14691fi
14692
14693
14694fi
14695if test -z "$ac_cv_prog_STRIP"; then
14696  ac_ct_STRIP=$STRIP
14697  # Extract the first word of "strip", so it can be a program name with args.
14698set dummy strip; ac_word=$2
14699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14700$as_echo_n "checking for $ac_word... " >&6; }
14701if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14702  $as_echo_n "(cached) " >&6
14703else
14704  if test -n "$ac_ct_STRIP"; then
14705  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14706else
14707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708for as_dir in $PATH
14709do
14710  IFS=$as_save_IFS
14711  test -z "$as_dir" && as_dir=.
14712    for ac_exec_ext in '' $ac_executable_extensions; do
14713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14714    ac_cv_prog_ac_ct_STRIP="strip"
14715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14716    break 2
14717  fi
14718done
14719  done
14720IFS=$as_save_IFS
14721
14722fi
14723fi
14724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14725if test -n "$ac_ct_STRIP"; then
14726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14727$as_echo "$ac_ct_STRIP" >&6; }
14728else
14729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14730$as_echo "no" >&6; }
14731fi
14732
14733  if test "x$ac_ct_STRIP" = x; then
14734    STRIP=":"
14735  else
14736    case $cross_compiling:$ac_tool_warned in
14737yes:)
14738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14740ac_tool_warned=yes ;;
14741esac
14742    STRIP=$ac_ct_STRIP
14743  fi
14744else
14745  STRIP="$ac_cv_prog_STRIP"
14746fi
14747
14748test -z "$STRIP" && STRIP=:
14749
14750
14751
14752
14753
14754
14755if test -n "$ac_tool_prefix"; then
14756  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14757set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14759$as_echo_n "checking for $ac_word... " >&6; }
14760if ${ac_cv_prog_RANLIB+:} false; then :
14761  $as_echo_n "(cached) " >&6
14762else
14763  if test -n "$RANLIB"; then
14764  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14765else
14766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14767for as_dir in $PATH
14768do
14769  IFS=$as_save_IFS
14770  test -z "$as_dir" && as_dir=.
14771    for ac_exec_ext in '' $ac_executable_extensions; do
14772  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14773    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14775    break 2
14776  fi
14777done
14778  done
14779IFS=$as_save_IFS
14780
14781fi
14782fi
14783RANLIB=$ac_cv_prog_RANLIB
14784if test -n "$RANLIB"; then
14785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14786$as_echo "$RANLIB" >&6; }
14787else
14788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14789$as_echo "no" >&6; }
14790fi
14791
14792
14793fi
14794if test -z "$ac_cv_prog_RANLIB"; then
14795  ac_ct_RANLIB=$RANLIB
14796  # Extract the first word of "ranlib", so it can be a program name with args.
14797set dummy ranlib; ac_word=$2
14798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14799$as_echo_n "checking for $ac_word... " >&6; }
14800if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14801  $as_echo_n "(cached) " >&6
14802else
14803  if test -n "$ac_ct_RANLIB"; then
14804  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14805else
14806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807for as_dir in $PATH
14808do
14809  IFS=$as_save_IFS
14810  test -z "$as_dir" && as_dir=.
14811    for ac_exec_ext in '' $ac_executable_extensions; do
14812  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813    ac_cv_prog_ac_ct_RANLIB="ranlib"
14814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14815    break 2
14816  fi
14817done
14818  done
14819IFS=$as_save_IFS
14820
14821fi
14822fi
14823ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14824if test -n "$ac_ct_RANLIB"; then
14825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14826$as_echo "$ac_ct_RANLIB" >&6; }
14827else
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14829$as_echo "no" >&6; }
14830fi
14831
14832  if test "x$ac_ct_RANLIB" = x; then
14833    RANLIB=":"
14834  else
14835    case $cross_compiling:$ac_tool_warned in
14836yes:)
14837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14839ac_tool_warned=yes ;;
14840esac
14841    RANLIB=$ac_ct_RANLIB
14842  fi
14843else
14844  RANLIB="$ac_cv_prog_RANLIB"
14845fi
14846
14847test -z "$RANLIB" && RANLIB=:
14848
14849
14850
14851
14852
14853
14854# Determine commands to create old-style static archives.
14855old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14856old_postinstall_cmds='chmod 644 $oldlib'
14857old_postuninstall_cmds=
14858
14859if test -n "$RANLIB"; then
14860  case $host_os in
14861  bitrig* | openbsd*)
14862    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14863    ;;
14864  *)
14865    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14866    ;;
14867  esac
14868  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14869fi
14870
14871case $host_os in
14872  darwin*)
14873    lock_old_archive_extraction=yes ;;
14874  *)
14875    lock_old_archive_extraction=no ;;
14876esac
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916# If no C compiler was specified, use CC.
14917LTCC=${LTCC-"$CC"}
14918
14919# If no C compiler flags were specified, use CFLAGS.
14920LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14921
14922# Allow CC to be a program name with arguments.
14923compiler=$CC
14924
14925
14926# Check for command to grab the raw symbol name followed by C symbol from nm.
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14928$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14929if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14930  $as_echo_n "(cached) " >&6
14931else
14932
14933# These are sane defaults that work on at least a few old systems.
14934# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14935
14936# Character class describing NM global symbol codes.
14937symcode='[BCDEGRST]'
14938
14939# Regexp to match symbols that can be accessed directly from C.
14940sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14941
14942# Define system-specific variables.
14943case $host_os in
14944aix*)
14945  symcode='[BCDT]'
14946  ;;
14947cygwin* | mingw* | pw32* | cegcc*)
14948  symcode='[ABCDGISTW]'
14949  ;;
14950hpux*)
14951  if test ia64 = "$host_cpu"; then
14952    symcode='[ABCDEGRST]'
14953  fi
14954  ;;
14955irix* | nonstopux*)
14956  symcode='[BCDEGRST]'
14957  ;;
14958osf*)
14959  symcode='[BCDEGQRST]'
14960  ;;
14961solaris*)
14962  symcode='[BDRT]'
14963  ;;
14964sco3.2v5*)
14965  symcode='[DT]'
14966  ;;
14967sysv4.2uw2*)
14968  symcode='[DT]'
14969  ;;
14970sysv5* | sco5v6* | unixware* | OpenUNIX*)
14971  symcode='[ABDT]'
14972  ;;
14973sysv4)
14974  symcode='[DFNSTU]'
14975  ;;
14976esac
14977
14978# If we're using GNU nm, then use its standard symbol codes.
14979case `$NM -V 2>&1` in
14980*GNU* | *'with BFD'*)
14981  symcode='[ABCDGIRSTW]' ;;
14982esac
14983
14984if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14985  # Gets list of data symbols to import.
14986  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
14987  # Adjust the below global symbol transforms to fixup imported variables.
14988  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14989  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
14990  lt_c_name_lib_hook="\
14991  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
14992  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
14993else
14994  # Disable hooks by default.
14995  lt_cv_sys_global_symbol_to_import=
14996  lt_cdecl_hook=
14997  lt_c_name_hook=
14998  lt_c_name_lib_hook=
14999fi
15000
15001# Transform an extracted symbol line into a proper C declaration.
15002# Some systems (esp. on ia64) link data and code symbols differently,
15003# so use this general approach.
15004lt_cv_sys_global_symbol_to_cdecl="sed -n"\
15005$lt_cdecl_hook\
15006" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
15007" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
15008
15009# Transform an extracted symbol line into symbol name and symbol address
15010lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
15011$lt_c_name_hook\
15012" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15013" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
15014
15015# Transform an extracted symbol line into symbol name with lib prefix and
15016# symbol address.
15017lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
15018$lt_c_name_lib_hook\
15019" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
15020" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
15021" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
15022
15023# Handle CRLF in mingw tool chain
15024opt_cr=
15025case $build_os in
15026mingw*)
15027  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
15028  ;;
15029esac
15030
15031# Try without a prefix underscore, then with it.
15032for ac_symprfx in "" "_"; do
15033
15034  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
15035  symxfrm="\\1 $ac_symprfx\\2 \\2"
15036
15037  # Write the raw and C identifiers.
15038  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15039    # Fake it for dumpbin and say T for any non-static function,
15040    # D for any global variable and I for any imported variable.
15041    # Also find C++ and __fastcall symbols from MSVC++,
15042    # which start with @ or ?.
15043    lt_cv_sys_global_symbol_pipe="$AWK '"\
15044"     {last_section=section; section=\$ 3};"\
15045"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
15046"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
15047"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
15048"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
15049"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
15050"     \$ 0!~/External *\|/{next};"\
15051"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
15052"     {if(hide[section]) next};"\
15053"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
15054"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
15055"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
15056"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
15057"     ' prfx=^$ac_symprfx"
15058  else
15059    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
15060  fi
15061  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
15062
15063  # Check to see that the pipe works correctly.
15064  pipe_works=no
15065
15066  rm -f conftest*
15067  cat > conftest.$ac_ext <<_LT_EOF
15068#ifdef __cplusplus
15069extern "C" {
15070#endif
15071char nm_test_var;
15072void nm_test_func(void);
15073void nm_test_func(void){}
15074#ifdef __cplusplus
15075}
15076#endif
15077int main(){nm_test_var='a';nm_test_func();return(0);}
15078_LT_EOF
15079
15080  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15081  (eval $ac_compile) 2>&5
15082  ac_status=$?
15083  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084  test $ac_status = 0; }; then
15085    # Now try to grab the symbols.
15086    nlist=conftest.nm
15087    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
15088    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
15089      # Try sorting and uniquifying the output.
15090      if sort "$nlist" | uniq > "$nlist"T; then
15091	mv -f "$nlist"T "$nlist"
15092      else
15093	rm -f "$nlist"T
15094      fi
15095
15096      # Make sure that we snagged all the symbols we need.
15097      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
15098	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
15099	  cat <<_LT_EOF > conftest.$ac_ext
15100/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
15101#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
15102/* DATA imports from DLLs on WIN32 can't be const, because runtime
15103   relocations are performed -- see ld's documentation on pseudo-relocs.  */
15104# define LT_DLSYM_CONST
15105#elif defined __osf__
15106/* This system does not cope well with relocations in const data.  */
15107# define LT_DLSYM_CONST
15108#else
15109# define LT_DLSYM_CONST const
15110#endif
15111
15112#ifdef __cplusplus
15113extern "C" {
15114#endif
15115
15116_LT_EOF
15117	  # Now generate the symbol file.
15118	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
15119
15120	  cat <<_LT_EOF >> conftest.$ac_ext
15121
15122/* The mapping between symbol names and symbols.  */
15123LT_DLSYM_CONST struct {
15124  const char *name;
15125  void       *address;
15126}
15127lt__PROGRAM__LTX_preloaded_symbols[] =
15128{
15129  { "@PROGRAM@", (void *) 0 },
15130_LT_EOF
15131	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
15132	  cat <<\_LT_EOF >> conftest.$ac_ext
15133  {0, (void *) 0}
15134};
15135
15136/* This works around a problem in FreeBSD linker */
15137#ifdef FREEBSD_WORKAROUND
15138static const void *lt_preloaded_setup() {
15139  return lt__PROGRAM__LTX_preloaded_symbols;
15140}
15141#endif
15142
15143#ifdef __cplusplus
15144}
15145#endif
15146_LT_EOF
15147	  # Now try linking the two files.
15148	  mv conftest.$ac_objext conftstm.$ac_objext
15149	  lt_globsym_save_LIBS=$LIBS
15150	  lt_globsym_save_CFLAGS=$CFLAGS
15151	  LIBS=conftstm.$ac_objext
15152	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
15153	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15154  (eval $ac_link) 2>&5
15155  ac_status=$?
15156  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157  test $ac_status = 0; } && test -s conftest$ac_exeext; then
15158	    pipe_works=yes
15159	  fi
15160	  LIBS=$lt_globsym_save_LIBS
15161	  CFLAGS=$lt_globsym_save_CFLAGS
15162	else
15163	  echo "cannot find nm_test_func in $nlist" >&5
15164	fi
15165      else
15166	echo "cannot find nm_test_var in $nlist" >&5
15167      fi
15168    else
15169      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
15170    fi
15171  else
15172    echo "$progname: failed program was:" >&5
15173    cat conftest.$ac_ext >&5
15174  fi
15175  rm -rf conftest* conftst*
15176
15177  # Do not use the global_symbol_pipe unless it works.
15178  if test yes = "$pipe_works"; then
15179    break
15180  else
15181    lt_cv_sys_global_symbol_pipe=
15182  fi
15183done
15184
15185fi
15186
15187if test -z "$lt_cv_sys_global_symbol_pipe"; then
15188  lt_cv_sys_global_symbol_to_cdecl=
15189fi
15190if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
15191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15192$as_echo "failed" >&6; }
15193else
15194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
15195$as_echo "ok" >&6; }
15196fi
15197
15198# Response file support.
15199if test "$lt_cv_nm_interface" = "MS dumpbin"; then
15200  nm_file_list_spec='@'
15201elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
15202  nm_file_list_spec='@'
15203fi
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15242$as_echo_n "checking for sysroot... " >&6; }
15243
15244# Check whether --with-sysroot was given.
15245if test "${with_sysroot+set}" = set; then :
15246  withval=$with_sysroot;
15247else
15248  with_sysroot=no
15249fi
15250
15251
15252lt_sysroot=
15253case $with_sysroot in #(
15254 yes)
15255   if test yes = "$GCC"; then
15256     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
15257   fi
15258   ;; #(
15259 /*)
15260   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
15261   ;; #(
15262 no|'')
15263   ;; #(
15264 *)
15265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
15266$as_echo "$with_sysroot" >&6; }
15267   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
15268   ;;
15269esac
15270
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
15272$as_echo "${lt_sysroot:-no}" >&6; }
15273
15274
15275
15276
15277
15278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
15279$as_echo_n "checking for a working dd... " >&6; }
15280if ${ac_cv_path_lt_DD+:} false; then :
15281  $as_echo_n "(cached) " >&6
15282else
15283  printf 0123456789abcdef0123456789abcdef >conftest.i
15284cat conftest.i conftest.i >conftest2.i
15285: ${lt_DD:=$DD}
15286if test -z "$lt_DD"; then
15287  ac_path_lt_DD_found=false
15288  # Loop through the user's path and test for each of PROGNAME-LIST
15289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15290for as_dir in $PATH
15291do
15292  IFS=$as_save_IFS
15293  test -z "$as_dir" && as_dir=.
15294    for ac_prog in dd; do
15295    for ac_exec_ext in '' $ac_executable_extensions; do
15296      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
15297      as_fn_executable_p "$ac_path_lt_DD" || continue
15298if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15299  cmp -s conftest.i conftest.out \
15300  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
15301fi
15302      $ac_path_lt_DD_found && break 3
15303    done
15304  done
15305  done
15306IFS=$as_save_IFS
15307  if test -z "$ac_cv_path_lt_DD"; then
15308    :
15309  fi
15310else
15311  ac_cv_path_lt_DD=$lt_DD
15312fi
15313
15314rm -f conftest.i conftest2.i conftest.out
15315fi
15316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
15317$as_echo "$ac_cv_path_lt_DD" >&6; }
15318
15319
15320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
15321$as_echo_n "checking how to truncate binary pipes... " >&6; }
15322if ${lt_cv_truncate_bin+:} false; then :
15323  $as_echo_n "(cached) " >&6
15324else
15325  printf 0123456789abcdef0123456789abcdef >conftest.i
15326cat conftest.i conftest.i >conftest2.i
15327lt_cv_truncate_bin=
15328if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
15329  cmp -s conftest.i conftest.out \
15330  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
15331fi
15332rm -f conftest.i conftest2.i conftest.out
15333test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
15334fi
15335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
15336$as_echo "$lt_cv_truncate_bin" >&6; }
15337
15338
15339
15340
15341
15342
15343
15344# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15345func_cc_basename ()
15346{
15347    for cc_temp in $*""; do
15348      case $cc_temp in
15349        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15350        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15351        \-*) ;;
15352        *) break;;
15353      esac
15354    done
15355    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15356}
15357
15358# Check whether --enable-libtool-lock was given.
15359if test "${enable_libtool_lock+set}" = set; then :
15360  enableval=$enable_libtool_lock;
15361fi
15362
15363test no = "$enable_libtool_lock" || enable_libtool_lock=yes
15364
15365# Some flags need to be propagated to the compiler or linker for good
15366# libtool support.
15367case $host in
15368ia64-*-hpux*)
15369  # Find out what ABI is being produced by ac_compile, and set mode
15370  # options accordingly.
15371  echo 'int i;' > conftest.$ac_ext
15372  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15373  (eval $ac_compile) 2>&5
15374  ac_status=$?
15375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15376  test $ac_status = 0; }; then
15377    case `/usr/bin/file conftest.$ac_objext` in
15378      *ELF-32*)
15379	HPUX_IA64_MODE=32
15380	;;
15381      *ELF-64*)
15382	HPUX_IA64_MODE=64
15383	;;
15384    esac
15385  fi
15386  rm -rf conftest*
15387  ;;
15388*-*-irix6*)
15389  # Find out what ABI is being produced by ac_compile, and set linker
15390  # options accordingly.
15391  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15392  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15393  (eval $ac_compile) 2>&5
15394  ac_status=$?
15395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15396  test $ac_status = 0; }; then
15397    if test yes = "$lt_cv_prog_gnu_ld"; then
15398      case `/usr/bin/file conftest.$ac_objext` in
15399	*32-bit*)
15400	  LD="${LD-ld} -melf32bsmip"
15401	  ;;
15402	*N32*)
15403	  LD="${LD-ld} -melf32bmipn32"
15404	  ;;
15405	*64-bit*)
15406	  LD="${LD-ld} -melf64bmip"
15407	;;
15408      esac
15409    else
15410      case `/usr/bin/file conftest.$ac_objext` in
15411	*32-bit*)
15412	  LD="${LD-ld} -32"
15413	  ;;
15414	*N32*)
15415	  LD="${LD-ld} -n32"
15416	  ;;
15417	*64-bit*)
15418	  LD="${LD-ld} -64"
15419	  ;;
15420      esac
15421    fi
15422  fi
15423  rm -rf conftest*
15424  ;;
15425
15426mips64*-*linux*)
15427  # Find out what ABI is being produced by ac_compile, and set linker
15428  # options accordingly.
15429  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
15430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15431  (eval $ac_compile) 2>&5
15432  ac_status=$?
15433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15434  test $ac_status = 0; }; then
15435    emul=elf
15436    case `/usr/bin/file conftest.$ac_objext` in
15437      *32-bit*)
15438	emul="${emul}32"
15439	;;
15440      *64-bit*)
15441	emul="${emul}64"
15442	;;
15443    esac
15444    case `/usr/bin/file conftest.$ac_objext` in
15445      *MSB*)
15446	emul="${emul}btsmip"
15447	;;
15448      *LSB*)
15449	emul="${emul}ltsmip"
15450	;;
15451    esac
15452    case `/usr/bin/file conftest.$ac_objext` in
15453      *N32*)
15454	emul="${emul}n32"
15455	;;
15456    esac
15457    LD="${LD-ld} -m $emul"
15458  fi
15459  rm -rf conftest*
15460  ;;
15461
15462x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
15463s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15464  # Find out what ABI is being produced by ac_compile, and set linker
15465  # options accordingly.  Note that the listed cases only cover the
15466  # situations where additional linker options are needed (such as when
15467  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
15468  # vice versa); the common cases where no linker options are needed do
15469  # not appear in the list.
15470  echo 'int i;' > conftest.$ac_ext
15471  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15472  (eval $ac_compile) 2>&5
15473  ac_status=$?
15474  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15475  test $ac_status = 0; }; then
15476    case `/usr/bin/file conftest.o` in
15477      *32-bit*)
15478	case $host in
15479	  x86_64-*kfreebsd*-gnu)
15480	    LD="${LD-ld} -m elf_i386_fbsd"
15481	    ;;
15482	  x86_64-*linux*)
15483	    case `/usr/bin/file conftest.o` in
15484	      *x86-64*)
15485		LD="${LD-ld} -m elf32_x86_64"
15486		;;
15487	      *)
15488		LD="${LD-ld} -m elf_i386"
15489		;;
15490	    esac
15491	    ;;
15492	  powerpc64le-*linux*)
15493	    LD="${LD-ld} -m elf32lppclinux"
15494	    ;;
15495	  powerpc64-*linux*)
15496	    LD="${LD-ld} -m elf32ppclinux"
15497	    ;;
15498	  s390x-*linux*)
15499	    LD="${LD-ld} -m elf_s390"
15500	    ;;
15501	  sparc64-*linux*)
15502	    LD="${LD-ld} -m elf32_sparc"
15503	    ;;
15504	esac
15505	;;
15506      *64-bit*)
15507	case $host in
15508	  x86_64-*kfreebsd*-gnu)
15509	    LD="${LD-ld} -m elf_x86_64_fbsd"
15510	    ;;
15511	  x86_64-*linux*)
15512	    LD="${LD-ld} -m elf_x86_64"
15513	    ;;
15514	  powerpcle-*linux*)
15515	    LD="${LD-ld} -m elf64lppc"
15516	    ;;
15517	  powerpc-*linux*)
15518	    LD="${LD-ld} -m elf64ppc"
15519	    ;;
15520	  s390*-*linux*|s390*-*tpf*)
15521	    LD="${LD-ld} -m elf64_s390"
15522	    ;;
15523	  sparc*-*linux*)
15524	    LD="${LD-ld} -m elf64_sparc"
15525	    ;;
15526	esac
15527	;;
15528    esac
15529  fi
15530  rm -rf conftest*
15531  ;;
15532
15533*-*-sco3.2v5*)
15534  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15535  SAVE_CFLAGS=$CFLAGS
15536  CFLAGS="$CFLAGS -belf"
15537  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
15538$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
15539if ${lt_cv_cc_needs_belf+:} false; then :
15540  $as_echo_n "(cached) " >&6
15541else
15542  ac_ext=c
15543ac_cpp='$CPP $CPPFLAGS'
15544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15546ac_compiler_gnu=$ac_cv_c_compiler_gnu
15547
15548     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549/* end confdefs.h.  */
15550
15551int
15552main ()
15553{
15554
15555  ;
15556  return 0;
15557}
15558_ACEOF
15559if ac_fn_c_try_link "$LINENO"; then :
15560  lt_cv_cc_needs_belf=yes
15561else
15562  lt_cv_cc_needs_belf=no
15563fi
15564rm -f core conftest.err conftest.$ac_objext \
15565    conftest$ac_exeext conftest.$ac_ext
15566     ac_ext=c
15567ac_cpp='$CPP $CPPFLAGS'
15568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15570ac_compiler_gnu=$ac_cv_c_compiler_gnu
15571
15572fi
15573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
15574$as_echo "$lt_cv_cc_needs_belf" >&6; }
15575  if test yes != "$lt_cv_cc_needs_belf"; then
15576    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15577    CFLAGS=$SAVE_CFLAGS
15578  fi
15579  ;;
15580*-*solaris*)
15581  # Find out what ABI is being produced by ac_compile, and set linker
15582  # options accordingly.
15583  echo 'int i;' > conftest.$ac_ext
15584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15585  (eval $ac_compile) 2>&5
15586  ac_status=$?
15587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15588  test $ac_status = 0; }; then
15589    case `/usr/bin/file conftest.o` in
15590    *64-bit*)
15591      case $lt_cv_prog_gnu_ld in
15592      yes*)
15593        case $host in
15594        i?86-*-solaris*|x86_64-*-solaris*)
15595          LD="${LD-ld} -m elf_x86_64"
15596          ;;
15597        sparc*-*-solaris*)
15598          LD="${LD-ld} -m elf64_sparc"
15599          ;;
15600        esac
15601        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
15602        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
15603          LD=${LD-ld}_sol2
15604        fi
15605        ;;
15606      *)
15607	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15608	  LD="${LD-ld} -64"
15609	fi
15610	;;
15611      esac
15612      ;;
15613    esac
15614  fi
15615  rm -rf conftest*
15616  ;;
15617esac
15618
15619need_locks=$enable_libtool_lock
15620
15621if test -n "$ac_tool_prefix"; then
15622  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
15623set dummy ${ac_tool_prefix}mt; ac_word=$2
15624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15625$as_echo_n "checking for $ac_word... " >&6; }
15626if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
15627  $as_echo_n "(cached) " >&6
15628else
15629  if test -n "$MANIFEST_TOOL"; then
15630  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
15631else
15632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633for as_dir in $PATH
15634do
15635  IFS=$as_save_IFS
15636  test -z "$as_dir" && as_dir=.
15637    for ac_exec_ext in '' $ac_executable_extensions; do
15638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15639    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
15640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15641    break 2
15642  fi
15643done
15644  done
15645IFS=$as_save_IFS
15646
15647fi
15648fi
15649MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
15650if test -n "$MANIFEST_TOOL"; then
15651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
15652$as_echo "$MANIFEST_TOOL" >&6; }
15653else
15654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15655$as_echo "no" >&6; }
15656fi
15657
15658
15659fi
15660if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
15661  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
15662  # Extract the first word of "mt", so it can be a program name with args.
15663set dummy mt; ac_word=$2
15664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15665$as_echo_n "checking for $ac_word... " >&6; }
15666if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15667  $as_echo_n "(cached) " >&6
15668else
15669  if test -n "$ac_ct_MANIFEST_TOOL"; then
15670  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15671else
15672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15673for as_dir in $PATH
15674do
15675  IFS=$as_save_IFS
15676  test -z "$as_dir" && as_dir=.
15677    for ac_exec_ext in '' $ac_executable_extensions; do
15678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15679    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15681    break 2
15682  fi
15683done
15684  done
15685IFS=$as_save_IFS
15686
15687fi
15688fi
15689ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15690if test -n "$ac_ct_MANIFEST_TOOL"; then
15691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15692$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
15693else
15694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15695$as_echo "no" >&6; }
15696fi
15697
15698  if test "x$ac_ct_MANIFEST_TOOL" = x; then
15699    MANIFEST_TOOL=":"
15700  else
15701    case $cross_compiling:$ac_tool_warned in
15702yes:)
15703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15705ac_tool_warned=yes ;;
15706esac
15707    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15708  fi
15709else
15710  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15711fi
15712
15713test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15715$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15716if ${lt_cv_path_mainfest_tool+:} false; then :
15717  $as_echo_n "(cached) " >&6
15718else
15719  lt_cv_path_mainfest_tool=no
15720  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15721  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15722  cat conftest.err >&5
15723  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15724    lt_cv_path_mainfest_tool=yes
15725  fi
15726  rm -f conftest*
15727fi
15728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15729$as_echo "$lt_cv_path_mainfest_tool" >&6; }
15730if test yes != "$lt_cv_path_mainfest_tool"; then
15731  MANIFEST_TOOL=:
15732fi
15733
15734
15735
15736
15737
15738
15739  case $host_os in
15740    rhapsody* | darwin*)
15741    if test -n "$ac_tool_prefix"; then
15742  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15743set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15745$as_echo_n "checking for $ac_word... " >&6; }
15746if ${ac_cv_prog_DSYMUTIL+:} false; then :
15747  $as_echo_n "(cached) " >&6
15748else
15749  if test -n "$DSYMUTIL"; then
15750  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15751else
15752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15753for as_dir in $PATH
15754do
15755  IFS=$as_save_IFS
15756  test -z "$as_dir" && as_dir=.
15757    for ac_exec_ext in '' $ac_executable_extensions; do
15758  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15759    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15760    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15761    break 2
15762  fi
15763done
15764  done
15765IFS=$as_save_IFS
15766
15767fi
15768fi
15769DSYMUTIL=$ac_cv_prog_DSYMUTIL
15770if test -n "$DSYMUTIL"; then
15771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15772$as_echo "$DSYMUTIL" >&6; }
15773else
15774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15775$as_echo "no" >&6; }
15776fi
15777
15778
15779fi
15780if test -z "$ac_cv_prog_DSYMUTIL"; then
15781  ac_ct_DSYMUTIL=$DSYMUTIL
15782  # Extract the first word of "dsymutil", so it can be a program name with args.
15783set dummy dsymutil; ac_word=$2
15784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15785$as_echo_n "checking for $ac_word... " >&6; }
15786if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15787  $as_echo_n "(cached) " >&6
15788else
15789  if test -n "$ac_ct_DSYMUTIL"; then
15790  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15791else
15792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15793for as_dir in $PATH
15794do
15795  IFS=$as_save_IFS
15796  test -z "$as_dir" && as_dir=.
15797    for ac_exec_ext in '' $ac_executable_extensions; do
15798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15799    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15801    break 2
15802  fi
15803done
15804  done
15805IFS=$as_save_IFS
15806
15807fi
15808fi
15809ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15810if test -n "$ac_ct_DSYMUTIL"; then
15811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15812$as_echo "$ac_ct_DSYMUTIL" >&6; }
15813else
15814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15815$as_echo "no" >&6; }
15816fi
15817
15818  if test "x$ac_ct_DSYMUTIL" = x; then
15819    DSYMUTIL=":"
15820  else
15821    case $cross_compiling:$ac_tool_warned in
15822yes:)
15823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15825ac_tool_warned=yes ;;
15826esac
15827    DSYMUTIL=$ac_ct_DSYMUTIL
15828  fi
15829else
15830  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15831fi
15832
15833    if test -n "$ac_tool_prefix"; then
15834  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15835set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15837$as_echo_n "checking for $ac_word... " >&6; }
15838if ${ac_cv_prog_NMEDIT+:} false; then :
15839  $as_echo_n "(cached) " >&6
15840else
15841  if test -n "$NMEDIT"; then
15842  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15843else
15844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845for as_dir in $PATH
15846do
15847  IFS=$as_save_IFS
15848  test -z "$as_dir" && as_dir=.
15849    for ac_exec_ext in '' $ac_executable_extensions; do
15850  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15852    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15853    break 2
15854  fi
15855done
15856  done
15857IFS=$as_save_IFS
15858
15859fi
15860fi
15861NMEDIT=$ac_cv_prog_NMEDIT
15862if test -n "$NMEDIT"; then
15863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15864$as_echo "$NMEDIT" >&6; }
15865else
15866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15867$as_echo "no" >&6; }
15868fi
15869
15870
15871fi
15872if test -z "$ac_cv_prog_NMEDIT"; then
15873  ac_ct_NMEDIT=$NMEDIT
15874  # Extract the first word of "nmedit", so it can be a program name with args.
15875set dummy nmedit; ac_word=$2
15876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15877$as_echo_n "checking for $ac_word... " >&6; }
15878if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15879  $as_echo_n "(cached) " >&6
15880else
15881  if test -n "$ac_ct_NMEDIT"; then
15882  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15883else
15884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15885for as_dir in $PATH
15886do
15887  IFS=$as_save_IFS
15888  test -z "$as_dir" && as_dir=.
15889    for ac_exec_ext in '' $ac_executable_extensions; do
15890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15891    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15893    break 2
15894  fi
15895done
15896  done
15897IFS=$as_save_IFS
15898
15899fi
15900fi
15901ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15902if test -n "$ac_ct_NMEDIT"; then
15903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15904$as_echo "$ac_ct_NMEDIT" >&6; }
15905else
15906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907$as_echo "no" >&6; }
15908fi
15909
15910  if test "x$ac_ct_NMEDIT" = x; then
15911    NMEDIT=":"
15912  else
15913    case $cross_compiling:$ac_tool_warned in
15914yes:)
15915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15917ac_tool_warned=yes ;;
15918esac
15919    NMEDIT=$ac_ct_NMEDIT
15920  fi
15921else
15922  NMEDIT="$ac_cv_prog_NMEDIT"
15923fi
15924
15925    if test -n "$ac_tool_prefix"; then
15926  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15927set dummy ${ac_tool_prefix}lipo; ac_word=$2
15928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15929$as_echo_n "checking for $ac_word... " >&6; }
15930if ${ac_cv_prog_LIPO+:} false; then :
15931  $as_echo_n "(cached) " >&6
15932else
15933  if test -n "$LIPO"; then
15934  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15935else
15936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15937for as_dir in $PATH
15938do
15939  IFS=$as_save_IFS
15940  test -z "$as_dir" && as_dir=.
15941    for ac_exec_ext in '' $ac_executable_extensions; do
15942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15943    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15945    break 2
15946  fi
15947done
15948  done
15949IFS=$as_save_IFS
15950
15951fi
15952fi
15953LIPO=$ac_cv_prog_LIPO
15954if test -n "$LIPO"; then
15955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15956$as_echo "$LIPO" >&6; }
15957else
15958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15959$as_echo "no" >&6; }
15960fi
15961
15962
15963fi
15964if test -z "$ac_cv_prog_LIPO"; then
15965  ac_ct_LIPO=$LIPO
15966  # Extract the first word of "lipo", so it can be a program name with args.
15967set dummy lipo; ac_word=$2
15968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15969$as_echo_n "checking for $ac_word... " >&6; }
15970if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15971  $as_echo_n "(cached) " >&6
15972else
15973  if test -n "$ac_ct_LIPO"; then
15974  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15975else
15976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15977for as_dir in $PATH
15978do
15979  IFS=$as_save_IFS
15980  test -z "$as_dir" && as_dir=.
15981    for ac_exec_ext in '' $ac_executable_extensions; do
15982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15983    ac_cv_prog_ac_ct_LIPO="lipo"
15984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15985    break 2
15986  fi
15987done
15988  done
15989IFS=$as_save_IFS
15990
15991fi
15992fi
15993ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15994if test -n "$ac_ct_LIPO"; then
15995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15996$as_echo "$ac_ct_LIPO" >&6; }
15997else
15998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15999$as_echo "no" >&6; }
16000fi
16001
16002  if test "x$ac_ct_LIPO" = x; then
16003    LIPO=":"
16004  else
16005    case $cross_compiling:$ac_tool_warned in
16006yes:)
16007{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16009ac_tool_warned=yes ;;
16010esac
16011    LIPO=$ac_ct_LIPO
16012  fi
16013else
16014  LIPO="$ac_cv_prog_LIPO"
16015fi
16016
16017    if test -n "$ac_tool_prefix"; then
16018  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
16019set dummy ${ac_tool_prefix}otool; ac_word=$2
16020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16021$as_echo_n "checking for $ac_word... " >&6; }
16022if ${ac_cv_prog_OTOOL+:} false; then :
16023  $as_echo_n "(cached) " >&6
16024else
16025  if test -n "$OTOOL"; then
16026  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
16027else
16028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16029for as_dir in $PATH
16030do
16031  IFS=$as_save_IFS
16032  test -z "$as_dir" && as_dir=.
16033    for ac_exec_ext in '' $ac_executable_extensions; do
16034  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16035    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
16036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16037    break 2
16038  fi
16039done
16040  done
16041IFS=$as_save_IFS
16042
16043fi
16044fi
16045OTOOL=$ac_cv_prog_OTOOL
16046if test -n "$OTOOL"; then
16047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
16048$as_echo "$OTOOL" >&6; }
16049else
16050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16051$as_echo "no" >&6; }
16052fi
16053
16054
16055fi
16056if test -z "$ac_cv_prog_OTOOL"; then
16057  ac_ct_OTOOL=$OTOOL
16058  # Extract the first word of "otool", so it can be a program name with args.
16059set dummy otool; ac_word=$2
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16061$as_echo_n "checking for $ac_word... " >&6; }
16062if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
16063  $as_echo_n "(cached) " >&6
16064else
16065  if test -n "$ac_ct_OTOOL"; then
16066  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
16067else
16068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16069for as_dir in $PATH
16070do
16071  IFS=$as_save_IFS
16072  test -z "$as_dir" && as_dir=.
16073    for ac_exec_ext in '' $ac_executable_extensions; do
16074  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16075    ac_cv_prog_ac_ct_OTOOL="otool"
16076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16077    break 2
16078  fi
16079done
16080  done
16081IFS=$as_save_IFS
16082
16083fi
16084fi
16085ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
16086if test -n "$ac_ct_OTOOL"; then
16087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
16088$as_echo "$ac_ct_OTOOL" >&6; }
16089else
16090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091$as_echo "no" >&6; }
16092fi
16093
16094  if test "x$ac_ct_OTOOL" = x; then
16095    OTOOL=":"
16096  else
16097    case $cross_compiling:$ac_tool_warned in
16098yes:)
16099{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16100$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16101ac_tool_warned=yes ;;
16102esac
16103    OTOOL=$ac_ct_OTOOL
16104  fi
16105else
16106  OTOOL="$ac_cv_prog_OTOOL"
16107fi
16108
16109    if test -n "$ac_tool_prefix"; then
16110  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
16111set dummy ${ac_tool_prefix}otool64; ac_word=$2
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16113$as_echo_n "checking for $ac_word... " >&6; }
16114if ${ac_cv_prog_OTOOL64+:} false; then :
16115  $as_echo_n "(cached) " >&6
16116else
16117  if test -n "$OTOOL64"; then
16118  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
16119else
16120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16121for as_dir in $PATH
16122do
16123  IFS=$as_save_IFS
16124  test -z "$as_dir" && as_dir=.
16125    for ac_exec_ext in '' $ac_executable_extensions; do
16126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16127    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
16128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16129    break 2
16130  fi
16131done
16132  done
16133IFS=$as_save_IFS
16134
16135fi
16136fi
16137OTOOL64=$ac_cv_prog_OTOOL64
16138if test -n "$OTOOL64"; then
16139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
16140$as_echo "$OTOOL64" >&6; }
16141else
16142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143$as_echo "no" >&6; }
16144fi
16145
16146
16147fi
16148if test -z "$ac_cv_prog_OTOOL64"; then
16149  ac_ct_OTOOL64=$OTOOL64
16150  # Extract the first word of "otool64", so it can be a program name with args.
16151set dummy otool64; ac_word=$2
16152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153$as_echo_n "checking for $ac_word... " >&6; }
16154if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
16155  $as_echo_n "(cached) " >&6
16156else
16157  if test -n "$ac_ct_OTOOL64"; then
16158  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
16159else
16160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161for as_dir in $PATH
16162do
16163  IFS=$as_save_IFS
16164  test -z "$as_dir" && as_dir=.
16165    for ac_exec_ext in '' $ac_executable_extensions; do
16166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16167    ac_cv_prog_ac_ct_OTOOL64="otool64"
16168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16169    break 2
16170  fi
16171done
16172  done
16173IFS=$as_save_IFS
16174
16175fi
16176fi
16177ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
16178if test -n "$ac_ct_OTOOL64"; then
16179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
16180$as_echo "$ac_ct_OTOOL64" >&6; }
16181else
16182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183$as_echo "no" >&6; }
16184fi
16185
16186  if test "x$ac_ct_OTOOL64" = x; then
16187    OTOOL64=":"
16188  else
16189    case $cross_compiling:$ac_tool_warned in
16190yes:)
16191{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16193ac_tool_warned=yes ;;
16194esac
16195    OTOOL64=$ac_ct_OTOOL64
16196  fi
16197else
16198  OTOOL64="$ac_cv_prog_OTOOL64"
16199fi
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
16228$as_echo_n "checking for -single_module linker flag... " >&6; }
16229if ${lt_cv_apple_cc_single_mod+:} false; then :
16230  $as_echo_n "(cached) " >&6
16231else
16232  lt_cv_apple_cc_single_mod=no
16233      if test -z "$LT_MULTI_MODULE"; then
16234	# By default we will add the -single_module flag. You can override
16235	# by either setting the environment variable LT_MULTI_MODULE
16236	# non-empty at configure time, or by adding -multi_module to the
16237	# link flags.
16238	rm -rf libconftest.dylib*
16239	echo "int foo(void){return 1;}" > conftest.c
16240	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16241-dynamiclib -Wl,-single_module conftest.c" >&5
16242	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16243	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
16244        _lt_result=$?
16245	# If there is a non-empty error log, and "single_module"
16246	# appears in it, assume the flag caused a linker warning
16247        if test -s conftest.err && $GREP single_module conftest.err; then
16248	  cat conftest.err >&5
16249	# Otherwise, if the output was created with a 0 exit code from
16250	# the compiler, it worked.
16251	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
16252	  lt_cv_apple_cc_single_mod=yes
16253	else
16254	  cat conftest.err >&5
16255	fi
16256	rm -rf libconftest.dylib*
16257	rm -f conftest.*
16258      fi
16259fi
16260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
16261$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
16262
16263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
16264$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
16265if ${lt_cv_ld_exported_symbols_list+:} false; then :
16266  $as_echo_n "(cached) " >&6
16267else
16268  lt_cv_ld_exported_symbols_list=no
16269      save_LDFLAGS=$LDFLAGS
16270      echo "_main" > conftest.sym
16271      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
16272      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16273/* end confdefs.h.  */
16274
16275int
16276main ()
16277{
16278
16279  ;
16280  return 0;
16281}
16282_ACEOF
16283if ac_fn_c_try_link "$LINENO"; then :
16284  lt_cv_ld_exported_symbols_list=yes
16285else
16286  lt_cv_ld_exported_symbols_list=no
16287fi
16288rm -f core conftest.err conftest.$ac_objext \
16289    conftest$ac_exeext conftest.$ac_ext
16290	LDFLAGS=$save_LDFLAGS
16291
16292fi
16293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
16294$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
16295
16296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
16297$as_echo_n "checking for -force_load linker flag... " >&6; }
16298if ${lt_cv_ld_force_load+:} false; then :
16299  $as_echo_n "(cached) " >&6
16300else
16301  lt_cv_ld_force_load=no
16302      cat > conftest.c << _LT_EOF
16303int forced_loaded() { return 2;}
16304_LT_EOF
16305      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
16306      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
16307      echo "$AR cr libconftest.a conftest.o" >&5
16308      $AR cr libconftest.a conftest.o 2>&5
16309      echo "$RANLIB libconftest.a" >&5
16310      $RANLIB libconftest.a 2>&5
16311      cat > conftest.c << _LT_EOF
16312int main() { return 0;}
16313_LT_EOF
16314      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
16315      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
16316      _lt_result=$?
16317      if test -s conftest.err && $GREP force_load conftest.err; then
16318	cat conftest.err >&5
16319      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
16320	lt_cv_ld_force_load=yes
16321      else
16322	cat conftest.err >&5
16323      fi
16324        rm -f conftest.err libconftest.a conftest conftest.c
16325        rm -rf conftest.dSYM
16326
16327fi
16328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
16329$as_echo "$lt_cv_ld_force_load" >&6; }
16330    case $host_os in
16331    rhapsody* | darwin1.[012])
16332      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
16333    darwin1.*)
16334      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16335    darwin*) # darwin 5.x on
16336      # if running on 10.5 or later, the deployment target defaults
16337      # to the OS version, if on x86, and 10.4, the deployment
16338      # target defaults to 10.4. Don't you love it?
16339      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
16340	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
16341	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16342	10.[012][,.]*)
16343	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
16344	10.*)
16345	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
16346      esac
16347    ;;
16348  esac
16349    if test yes = "$lt_cv_apple_cc_single_mod"; then
16350      _lt_dar_single_mod='$single_module'
16351    fi
16352    if test yes = "$lt_cv_ld_exported_symbols_list"; then
16353      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
16354    else
16355      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
16356    fi
16357    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
16358      _lt_dsymutil='~$DSYMUTIL $lib || :'
16359    else
16360      _lt_dsymutil=
16361    fi
16362    ;;
16363  esac
16364
16365# func_munge_path_list VARIABLE PATH
16366# -----------------------------------
16367# VARIABLE is name of variable containing _space_ separated list of
16368# directories to be munged by the contents of PATH, which is string
16369# having a format:
16370# "DIR[:DIR]:"
16371#       string "DIR[ DIR]" will be prepended to VARIABLE
16372# ":DIR[:DIR]"
16373#       string "DIR[ DIR]" will be appended to VARIABLE
16374# "DIRP[:DIRP]::[DIRA:]DIRA"
16375#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16376#       "DIRA[ DIRA]" will be appended to VARIABLE
16377# "DIR[:DIR]"
16378#       VARIABLE will be replaced by "DIR[ DIR]"
16379func_munge_path_list ()
16380{
16381    case x$2 in
16382    x)
16383        ;;
16384    *:)
16385        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16386        ;;
16387    x:*)
16388        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16389        ;;
16390    *::*)
16391        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16392        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16393        ;;
16394    *)
16395        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16396        ;;
16397    esac
16398}
16399
16400for ac_header in dlfcn.h
16401do :
16402  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
16403"
16404if test "x$ac_cv_header_dlfcn_h" = xyes; then :
16405  cat >>confdefs.h <<_ACEOF
16406#define HAVE_DLFCN_H 1
16407_ACEOF
16408
16409fi
16410
16411done
16412
16413
16414
16415
16416
16417# Set options
16418# Check whether --enable-static was given.
16419if test "${enable_static+set}" = set; then :
16420  enableval=$enable_static; p=${PACKAGE-default}
16421    case $enableval in
16422    yes) enable_static=yes ;;
16423    no) enable_static=no ;;
16424    *)
16425     enable_static=no
16426      # Look at the argument we got.  We use all the common list separators.
16427      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16428      for pkg in $enableval; do
16429	IFS=$lt_save_ifs
16430	if test "X$pkg" = "X$p"; then
16431	  enable_static=yes
16432	fi
16433      done
16434      IFS=$lt_save_ifs
16435      ;;
16436    esac
16437else
16438  enable_static=no
16439fi
16440
16441
16442
16443
16444
16445
16446
16447enable_win32_dll=yes
16448
16449case $host in
16450*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16451  if test -n "$ac_tool_prefix"; then
16452  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16453set dummy ${ac_tool_prefix}as; ac_word=$2
16454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16455$as_echo_n "checking for $ac_word... " >&6; }
16456if ${ac_cv_prog_AS+:} false; then :
16457  $as_echo_n "(cached) " >&6
16458else
16459  if test -n "$AS"; then
16460  ac_cv_prog_AS="$AS" # Let the user override the test.
16461else
16462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16463for as_dir in $PATH
16464do
16465  IFS=$as_save_IFS
16466  test -z "$as_dir" && as_dir=.
16467    for ac_exec_ext in '' $ac_executable_extensions; do
16468  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16469    ac_cv_prog_AS="${ac_tool_prefix}as"
16470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16471    break 2
16472  fi
16473done
16474  done
16475IFS=$as_save_IFS
16476
16477fi
16478fi
16479AS=$ac_cv_prog_AS
16480if test -n "$AS"; then
16481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16482$as_echo "$AS" >&6; }
16483else
16484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16485$as_echo "no" >&6; }
16486fi
16487
16488
16489fi
16490if test -z "$ac_cv_prog_AS"; then
16491  ac_ct_AS=$AS
16492  # Extract the first word of "as", so it can be a program name with args.
16493set dummy as; ac_word=$2
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16495$as_echo_n "checking for $ac_word... " >&6; }
16496if ${ac_cv_prog_ac_ct_AS+:} false; then :
16497  $as_echo_n "(cached) " >&6
16498else
16499  if test -n "$ac_ct_AS"; then
16500  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16501else
16502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503for as_dir in $PATH
16504do
16505  IFS=$as_save_IFS
16506  test -z "$as_dir" && as_dir=.
16507    for ac_exec_ext in '' $ac_executable_extensions; do
16508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16509    ac_cv_prog_ac_ct_AS="as"
16510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16511    break 2
16512  fi
16513done
16514  done
16515IFS=$as_save_IFS
16516
16517fi
16518fi
16519ac_ct_AS=$ac_cv_prog_ac_ct_AS
16520if test -n "$ac_ct_AS"; then
16521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16522$as_echo "$ac_ct_AS" >&6; }
16523else
16524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16525$as_echo "no" >&6; }
16526fi
16527
16528  if test "x$ac_ct_AS" = x; then
16529    AS="false"
16530  else
16531    case $cross_compiling:$ac_tool_warned in
16532yes:)
16533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16535ac_tool_warned=yes ;;
16536esac
16537    AS=$ac_ct_AS
16538  fi
16539else
16540  AS="$ac_cv_prog_AS"
16541fi
16542
16543  if test -n "$ac_tool_prefix"; then
16544  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16545set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16547$as_echo_n "checking for $ac_word... " >&6; }
16548if ${ac_cv_prog_DLLTOOL+:} false; then :
16549  $as_echo_n "(cached) " >&6
16550else
16551  if test -n "$DLLTOOL"; then
16552  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16553else
16554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16555for as_dir in $PATH
16556do
16557  IFS=$as_save_IFS
16558  test -z "$as_dir" && as_dir=.
16559    for ac_exec_ext in '' $ac_executable_extensions; do
16560  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16561    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16562    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16563    break 2
16564  fi
16565done
16566  done
16567IFS=$as_save_IFS
16568
16569fi
16570fi
16571DLLTOOL=$ac_cv_prog_DLLTOOL
16572if test -n "$DLLTOOL"; then
16573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16574$as_echo "$DLLTOOL" >&6; }
16575else
16576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16577$as_echo "no" >&6; }
16578fi
16579
16580
16581fi
16582if test -z "$ac_cv_prog_DLLTOOL"; then
16583  ac_ct_DLLTOOL=$DLLTOOL
16584  # Extract the first word of "dlltool", so it can be a program name with args.
16585set dummy dlltool; ac_word=$2
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16587$as_echo_n "checking for $ac_word... " >&6; }
16588if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16589  $as_echo_n "(cached) " >&6
16590else
16591  if test -n "$ac_ct_DLLTOOL"; then
16592  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16593else
16594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16595for as_dir in $PATH
16596do
16597  IFS=$as_save_IFS
16598  test -z "$as_dir" && as_dir=.
16599    for ac_exec_ext in '' $ac_executable_extensions; do
16600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16601    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16603    break 2
16604  fi
16605done
16606  done
16607IFS=$as_save_IFS
16608
16609fi
16610fi
16611ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16612if test -n "$ac_ct_DLLTOOL"; then
16613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16614$as_echo "$ac_ct_DLLTOOL" >&6; }
16615else
16616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16617$as_echo "no" >&6; }
16618fi
16619
16620  if test "x$ac_ct_DLLTOOL" = x; then
16621    DLLTOOL="false"
16622  else
16623    case $cross_compiling:$ac_tool_warned in
16624yes:)
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16626$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16627ac_tool_warned=yes ;;
16628esac
16629    DLLTOOL=$ac_ct_DLLTOOL
16630  fi
16631else
16632  DLLTOOL="$ac_cv_prog_DLLTOOL"
16633fi
16634
16635  if test -n "$ac_tool_prefix"; then
16636  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16637set dummy ${ac_tool_prefix}objdump; ac_word=$2
16638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16639$as_echo_n "checking for $ac_word... " >&6; }
16640if ${ac_cv_prog_OBJDUMP+:} false; then :
16641  $as_echo_n "(cached) " >&6
16642else
16643  if test -n "$OBJDUMP"; then
16644  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16645else
16646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647for as_dir in $PATH
16648do
16649  IFS=$as_save_IFS
16650  test -z "$as_dir" && as_dir=.
16651    for ac_exec_ext in '' $ac_executable_extensions; do
16652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16655    break 2
16656  fi
16657done
16658  done
16659IFS=$as_save_IFS
16660
16661fi
16662fi
16663OBJDUMP=$ac_cv_prog_OBJDUMP
16664if test -n "$OBJDUMP"; then
16665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16666$as_echo "$OBJDUMP" >&6; }
16667else
16668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16669$as_echo "no" >&6; }
16670fi
16671
16672
16673fi
16674if test -z "$ac_cv_prog_OBJDUMP"; then
16675  ac_ct_OBJDUMP=$OBJDUMP
16676  # Extract the first word of "objdump", so it can be a program name with args.
16677set dummy objdump; ac_word=$2
16678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16679$as_echo_n "checking for $ac_word... " >&6; }
16680if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16681  $as_echo_n "(cached) " >&6
16682else
16683  if test -n "$ac_ct_OBJDUMP"; then
16684  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16685else
16686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16687for as_dir in $PATH
16688do
16689  IFS=$as_save_IFS
16690  test -z "$as_dir" && as_dir=.
16691    for ac_exec_ext in '' $ac_executable_extensions; do
16692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16693    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16695    break 2
16696  fi
16697done
16698  done
16699IFS=$as_save_IFS
16700
16701fi
16702fi
16703ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16704if test -n "$ac_ct_OBJDUMP"; then
16705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16706$as_echo "$ac_ct_OBJDUMP" >&6; }
16707else
16708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709$as_echo "no" >&6; }
16710fi
16711
16712  if test "x$ac_ct_OBJDUMP" = x; then
16713    OBJDUMP="false"
16714  else
16715    case $cross_compiling:$ac_tool_warned in
16716yes:)
16717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16719ac_tool_warned=yes ;;
16720esac
16721    OBJDUMP=$ac_ct_OBJDUMP
16722  fi
16723else
16724  OBJDUMP="$ac_cv_prog_OBJDUMP"
16725fi
16726
16727  ;;
16728esac
16729
16730test -z "$AS" && AS=as
16731
16732
16733
16734
16735
16736test -z "$DLLTOOL" && DLLTOOL=dlltool
16737
16738
16739
16740
16741
16742test -z "$OBJDUMP" && OBJDUMP=objdump
16743
16744
16745
16746
16747
16748
16749
16750        enable_dlopen=no
16751
16752
16753
16754            # Check whether --enable-shared was given.
16755if test "${enable_shared+set}" = set; then :
16756  enableval=$enable_shared; p=${PACKAGE-default}
16757    case $enableval in
16758    yes) enable_shared=yes ;;
16759    no) enable_shared=no ;;
16760    *)
16761      enable_shared=no
16762      # Look at the argument we got.  We use all the common list separators.
16763      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16764      for pkg in $enableval; do
16765	IFS=$lt_save_ifs
16766	if test "X$pkg" = "X$p"; then
16767	  enable_shared=yes
16768	fi
16769      done
16770      IFS=$lt_save_ifs
16771      ;;
16772    esac
16773else
16774  enable_shared=yes
16775fi
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787# Check whether --with-pic was given.
16788if test "${with_pic+set}" = set; then :
16789  withval=$with_pic; lt_p=${PACKAGE-default}
16790    case $withval in
16791    yes|no) pic_mode=$withval ;;
16792    *)
16793      pic_mode=default
16794      # Look at the argument we got.  We use all the common list separators.
16795      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16796      for lt_pkg in $withval; do
16797	IFS=$lt_save_ifs
16798	if test "X$lt_pkg" = "X$lt_p"; then
16799	  pic_mode=yes
16800	fi
16801      done
16802      IFS=$lt_save_ifs
16803      ;;
16804    esac
16805else
16806  pic_mode=default
16807fi
16808
16809
16810
16811
16812
16813
16814
16815
16816  # Check whether --enable-fast-install was given.
16817if test "${enable_fast_install+set}" = set; then :
16818  enableval=$enable_fast_install; p=${PACKAGE-default}
16819    case $enableval in
16820    yes) enable_fast_install=yes ;;
16821    no) enable_fast_install=no ;;
16822    *)
16823      enable_fast_install=no
16824      # Look at the argument we got.  We use all the common list separators.
16825      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16826      for pkg in $enableval; do
16827	IFS=$lt_save_ifs
16828	if test "X$pkg" = "X$p"; then
16829	  enable_fast_install=yes
16830	fi
16831      done
16832      IFS=$lt_save_ifs
16833      ;;
16834    esac
16835else
16836  enable_fast_install=yes
16837fi
16838
16839
16840
16841
16842
16843
16844
16845
16846  shared_archive_member_spec=
16847case $host,$enable_shared in
16848power*-*-aix[5-9]*,yes)
16849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16850$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
16851
16852# Check whether --with-aix-soname was given.
16853if test "${with_aix_soname+set}" = set; then :
16854  withval=$with_aix_soname; case $withval in
16855    aix|svr4|both)
16856      ;;
16857    *)
16858      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16859      ;;
16860    esac
16861    lt_cv_with_aix_soname=$with_aix_soname
16862else
16863  if ${lt_cv_with_aix_soname+:} false; then :
16864  $as_echo_n "(cached) " >&6
16865else
16866  lt_cv_with_aix_soname=aix
16867fi
16868
16869    with_aix_soname=$lt_cv_with_aix_soname
16870fi
16871
16872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16873$as_echo "$with_aix_soname" >&6; }
16874  if test aix != "$with_aix_soname"; then
16875    # For the AIX way of multilib, we name the shared archive member
16876    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16877    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16878    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16879    # the AIX toolchain works better with OBJECT_MODE set (default 32).
16880    if test 64 = "${OBJECT_MODE-32}"; then
16881      shared_archive_member_spec=shr_64
16882    else
16883      shared_archive_member_spec=shr
16884    fi
16885  fi
16886  ;;
16887*)
16888  with_aix_soname=aix
16889  ;;
16890esac
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901# This can be used to rebuild libtool when needed
16902LIBTOOL_DEPS=$ltmain
16903
16904# Always use our own libtool.
16905LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936test -z "$LN_S" && LN_S="ln -s"
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951if test -n "${ZSH_VERSION+set}"; then
16952   setopt NO_GLOB_SUBST
16953fi
16954
16955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16956$as_echo_n "checking for objdir... " >&6; }
16957if ${lt_cv_objdir+:} false; then :
16958  $as_echo_n "(cached) " >&6
16959else
16960  rm -f .libs 2>/dev/null
16961mkdir .libs 2>/dev/null
16962if test -d .libs; then
16963  lt_cv_objdir=.libs
16964else
16965  # MS-DOS does not allow filenames that begin with a dot.
16966  lt_cv_objdir=_libs
16967fi
16968rmdir .libs 2>/dev/null
16969fi
16970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16971$as_echo "$lt_cv_objdir" >&6; }
16972objdir=$lt_cv_objdir
16973
16974
16975
16976
16977
16978cat >>confdefs.h <<_ACEOF
16979#define LT_OBJDIR "$lt_cv_objdir/"
16980_ACEOF
16981
16982
16983
16984
16985case $host_os in
16986aix3*)
16987  # AIX sometimes has problems with the GCC collect2 program.  For some
16988  # reason, if we set the COLLECT_NAMES environment variable, the problems
16989  # vanish in a puff of smoke.
16990  if test set != "${COLLECT_NAMES+set}"; then
16991    COLLECT_NAMES=
16992    export COLLECT_NAMES
16993  fi
16994  ;;
16995esac
16996
16997# Global variables:
16998ofile=libtool
16999can_build_shared=yes
17000
17001# All known linkers require a '.a' archive for static linking (except MSVC,
17002# which needs '.lib').
17003libext=a
17004
17005with_gnu_ld=$lt_cv_prog_gnu_ld
17006
17007old_CC=$CC
17008old_CFLAGS=$CFLAGS
17009
17010# Set sane defaults for various variables
17011test -z "$CC" && CC=cc
17012test -z "$LTCC" && LTCC=$CC
17013test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
17014test -z "$LD" && LD=ld
17015test -z "$ac_objext" && ac_objext=o
17016
17017func_cc_basename $compiler
17018cc_basename=$func_cc_basename_result
17019
17020
17021# Only perform the check for file, if the check method requires it
17022test -z "$MAGIC_CMD" && MAGIC_CMD=file
17023case $deplibs_check_method in
17024file_magic*)
17025  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
17026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
17027$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
17028if ${lt_cv_path_MAGIC_CMD+:} false; then :
17029  $as_echo_n "(cached) " >&6
17030else
17031  case $MAGIC_CMD in
17032[\\/*] |  ?:[\\/]*)
17033  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17034  ;;
17035*)
17036  lt_save_MAGIC_CMD=$MAGIC_CMD
17037  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17039  for ac_dir in $ac_dummy; do
17040    IFS=$lt_save_ifs
17041    test -z "$ac_dir" && ac_dir=.
17042    if test -f "$ac_dir/${ac_tool_prefix}file"; then
17043      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
17044      if test -n "$file_magic_test_file"; then
17045	case $deplibs_check_method in
17046	"file_magic "*)
17047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17048	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17050	    $EGREP "$file_magic_regex" > /dev/null; then
17051	    :
17052	  else
17053	    cat <<_LT_EOF 1>&2
17054
17055*** Warning: the command libtool uses to detect shared libraries,
17056*** $file_magic_cmd, produces output that libtool cannot recognize.
17057*** The result is that libtool may fail to recognize shared libraries
17058*** as such.  This will affect the creation of libtool libraries that
17059*** depend on shared libraries, but programs linked with such libtool
17060*** libraries will work regardless of this problem.  Nevertheless, you
17061*** may want to report the problem to your system manager and/or to
17062*** bug-libtool@gnu.org
17063
17064_LT_EOF
17065	  fi ;;
17066	esac
17067      fi
17068      break
17069    fi
17070  done
17071  IFS=$lt_save_ifs
17072  MAGIC_CMD=$lt_save_MAGIC_CMD
17073  ;;
17074esac
17075fi
17076
17077MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17078if test -n "$MAGIC_CMD"; then
17079  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17080$as_echo "$MAGIC_CMD" >&6; }
17081else
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17083$as_echo "no" >&6; }
17084fi
17085
17086
17087
17088
17089
17090if test -z "$lt_cv_path_MAGIC_CMD"; then
17091  if test -n "$ac_tool_prefix"; then
17092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
17093$as_echo_n "checking for file... " >&6; }
17094if ${lt_cv_path_MAGIC_CMD+:} false; then :
17095  $as_echo_n "(cached) " >&6
17096else
17097  case $MAGIC_CMD in
17098[\\/*] |  ?:[\\/]*)
17099  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
17100  ;;
17101*)
17102  lt_save_MAGIC_CMD=$MAGIC_CMD
17103  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17104  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17105  for ac_dir in $ac_dummy; do
17106    IFS=$lt_save_ifs
17107    test -z "$ac_dir" && ac_dir=.
17108    if test -f "$ac_dir/file"; then
17109      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
17110      if test -n "$file_magic_test_file"; then
17111	case $deplibs_check_method in
17112	"file_magic "*)
17113	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17114	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17115	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17116	    $EGREP "$file_magic_regex" > /dev/null; then
17117	    :
17118	  else
17119	    cat <<_LT_EOF 1>&2
17120
17121*** Warning: the command libtool uses to detect shared libraries,
17122*** $file_magic_cmd, produces output that libtool cannot recognize.
17123*** The result is that libtool may fail to recognize shared libraries
17124*** as such.  This will affect the creation of libtool libraries that
17125*** depend on shared libraries, but programs linked with such libtool
17126*** libraries will work regardless of this problem.  Nevertheless, you
17127*** may want to report the problem to your system manager and/or to
17128*** bug-libtool@gnu.org
17129
17130_LT_EOF
17131	  fi ;;
17132	esac
17133      fi
17134      break
17135    fi
17136  done
17137  IFS=$lt_save_ifs
17138  MAGIC_CMD=$lt_save_MAGIC_CMD
17139  ;;
17140esac
17141fi
17142
17143MAGIC_CMD=$lt_cv_path_MAGIC_CMD
17144if test -n "$MAGIC_CMD"; then
17145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
17146$as_echo "$MAGIC_CMD" >&6; }
17147else
17148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17149$as_echo "no" >&6; }
17150fi
17151
17152
17153  else
17154    MAGIC_CMD=:
17155  fi
17156fi
17157
17158  fi
17159  ;;
17160esac
17161
17162# Use C for the default configuration in the libtool script
17163
17164lt_save_CC=$CC
17165ac_ext=c
17166ac_cpp='$CPP $CPPFLAGS'
17167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17169ac_compiler_gnu=$ac_cv_c_compiler_gnu
17170
17171
17172# Source file extension for C test sources.
17173ac_ext=c
17174
17175# Object file extension for compiled C test sources.
17176objext=o
17177objext=$objext
17178
17179# Code to be used in simple compile tests
17180lt_simple_compile_test_code="int some_variable = 0;"
17181
17182# Code to be used in simple link tests
17183lt_simple_link_test_code='int main(){return(0);}'
17184
17185
17186
17187
17188
17189
17190
17191# If no C compiler was specified, use CC.
17192LTCC=${LTCC-"$CC"}
17193
17194# If no C compiler flags were specified, use CFLAGS.
17195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17196
17197# Allow CC to be a program name with arguments.
17198compiler=$CC
17199
17200# Save the default compiler, since it gets overwritten when the other
17201# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
17202compiler_DEFAULT=$CC
17203
17204# save warnings/boilerplate of simple test code
17205ac_outfile=conftest.$ac_objext
17206echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17208_lt_compiler_boilerplate=`cat conftest.err`
17209$RM conftest*
17210
17211ac_outfile=conftest.$ac_objext
17212echo "$lt_simple_link_test_code" >conftest.$ac_ext
17213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17214_lt_linker_boilerplate=`cat conftest.err`
17215$RM -r conftest*
17216
17217
17218## CAVEAT EMPTOR:
17219## There is no encapsulation within the following macros, do not change
17220## the running order or otherwise move them around unless you know exactly
17221## what you are doing...
17222if test -n "$compiler"; then
17223
17224lt_prog_compiler_no_builtin_flag=
17225
17226if test yes = "$GCC"; then
17227  case $cc_basename in
17228  nvcc*)
17229    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
17230  *)
17231    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
17232  esac
17233
17234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17235$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17236if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
17237  $as_echo_n "(cached) " >&6
17238else
17239  lt_cv_prog_compiler_rtti_exceptions=no
17240   ac_outfile=conftest.$ac_objext
17241   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17242   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
17243   # Insert the option either (1) after the last *FLAGS variable, or
17244   # (2) before a word containing "conftest.", or (3) at the end.
17245   # Note that $ac_compile itself does not contain backslashes and begins
17246   # with a dollar sign (not a hyphen), so the echo should work correctly.
17247   # The option is referenced via a variable to avoid confusing sed.
17248   lt_compile=`echo "$ac_compile" | $SED \
17249   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17250   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17251   -e 's:$: $lt_compiler_flag:'`
17252   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17253   (eval "$lt_compile" 2>conftest.err)
17254   ac_status=$?
17255   cat conftest.err >&5
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   if (exit $ac_status) && test -s "$ac_outfile"; then
17258     # The compiler can only warn and ignore the option if not recognized
17259     # So say no if there are warnings other than the usual output.
17260     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17261     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17262     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17263       lt_cv_prog_compiler_rtti_exceptions=yes
17264     fi
17265   fi
17266   $RM conftest*
17267
17268fi
17269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17270$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17271
17272if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
17273    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17274else
17275    :
17276fi
17277
17278fi
17279
17280
17281
17282
17283
17284
17285  lt_prog_compiler_wl=
17286lt_prog_compiler_pic=
17287lt_prog_compiler_static=
17288
17289
17290  if test yes = "$GCC"; then
17291    lt_prog_compiler_wl='-Wl,'
17292    lt_prog_compiler_static='-static'
17293
17294    case $host_os in
17295      aix*)
17296      # All AIX code is PIC.
17297      if test ia64 = "$host_cpu"; then
17298	# AIX 5 now supports IA64 processor
17299	lt_prog_compiler_static='-Bstatic'
17300      fi
17301      lt_prog_compiler_pic='-fPIC'
17302      ;;
17303
17304    amigaos*)
17305      case $host_cpu in
17306      powerpc)
17307            # see comment about AmigaOS4 .so support
17308            lt_prog_compiler_pic='-fPIC'
17309        ;;
17310      m68k)
17311            # FIXME: we need at least 68020 code to build shared libraries, but
17312            # adding the '-m68020' flag to GCC prevents building anything better,
17313            # like '-m68040'.
17314            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17315        ;;
17316      esac
17317      ;;
17318
17319    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17320      # PIC is the default for these OSes.
17321      ;;
17322
17323    mingw* | cygwin* | pw32* | os2* | cegcc*)
17324      # This hack is so that the source file can tell whether it is being
17325      # built for inclusion in a dll (and should export symbols for example).
17326      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17327      # (--disable-auto-import) libraries
17328      lt_prog_compiler_pic='-DDLL_EXPORT'
17329      case $host_os in
17330      os2*)
17331	lt_prog_compiler_static='$wl-static'
17332	;;
17333      esac
17334      ;;
17335
17336    darwin* | rhapsody*)
17337      # PIC is the default on this platform
17338      # Common symbols not allowed in MH_DYLIB files
17339      lt_prog_compiler_pic='-fno-common'
17340      ;;
17341
17342    haiku*)
17343      # PIC is the default for Haiku.
17344      # The "-static" flag exists, but is broken.
17345      lt_prog_compiler_static=
17346      ;;
17347
17348    hpux*)
17349      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17350      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17351      # sets the default TLS model and affects inlining.
17352      case $host_cpu in
17353      hppa*64*)
17354	# +Z the default
17355	;;
17356      *)
17357	lt_prog_compiler_pic='-fPIC'
17358	;;
17359      esac
17360      ;;
17361
17362    interix[3-9]*)
17363      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17364      # Instead, we relocate shared libraries at runtime.
17365      ;;
17366
17367    msdosdjgpp*)
17368      # Just because we use GCC doesn't mean we suddenly get shared libraries
17369      # on systems that don't support them.
17370      lt_prog_compiler_can_build_shared=no
17371      enable_shared=no
17372      ;;
17373
17374    *nto* | *qnx*)
17375      # QNX uses GNU C++, but need to define -shared option too, otherwise
17376      # it will coredump.
17377      lt_prog_compiler_pic='-fPIC -shared'
17378      ;;
17379
17380    sysv4*MP*)
17381      if test -d /usr/nec; then
17382	lt_prog_compiler_pic=-Kconform_pic
17383      fi
17384      ;;
17385
17386    *)
17387      lt_prog_compiler_pic='-fPIC'
17388      ;;
17389    esac
17390
17391    case $cc_basename in
17392    nvcc*) # Cuda Compiler Driver 2.2
17393      lt_prog_compiler_wl='-Xlinker '
17394      if test -n "$lt_prog_compiler_pic"; then
17395        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
17396      fi
17397      ;;
17398    esac
17399  else
17400    # PORTME Check for flag to pass linker flags through the system compiler.
17401    case $host_os in
17402    aix*)
17403      lt_prog_compiler_wl='-Wl,'
17404      if test ia64 = "$host_cpu"; then
17405	# AIX 5 now supports IA64 processor
17406	lt_prog_compiler_static='-Bstatic'
17407      else
17408	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17409      fi
17410      ;;
17411
17412    darwin* | rhapsody*)
17413      # PIC is the default on this platform
17414      # Common symbols not allowed in MH_DYLIB files
17415      lt_prog_compiler_pic='-fno-common'
17416      case $cc_basename in
17417      nagfor*)
17418        # NAG Fortran compiler
17419        lt_prog_compiler_wl='-Wl,-Wl,,'
17420        lt_prog_compiler_pic='-PIC'
17421        lt_prog_compiler_static='-Bstatic'
17422        ;;
17423      esac
17424      ;;
17425
17426    mingw* | cygwin* | pw32* | os2* | cegcc*)
17427      # This hack is so that the source file can tell whether it is being
17428      # built for inclusion in a dll (and should export symbols for example).
17429      lt_prog_compiler_pic='-DDLL_EXPORT'
17430      case $host_os in
17431      os2*)
17432	lt_prog_compiler_static='$wl-static'
17433	;;
17434      esac
17435      ;;
17436
17437    hpux9* | hpux10* | hpux11*)
17438      lt_prog_compiler_wl='-Wl,'
17439      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17440      # not for PA HP-UX.
17441      case $host_cpu in
17442      hppa*64*|ia64*)
17443	# +Z the default
17444	;;
17445      *)
17446	lt_prog_compiler_pic='+Z'
17447	;;
17448      esac
17449      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17450      lt_prog_compiler_static='$wl-a ${wl}archive'
17451      ;;
17452
17453    irix5* | irix6* | nonstopux*)
17454      lt_prog_compiler_wl='-Wl,'
17455      # PIC (with -KPIC) is the default.
17456      lt_prog_compiler_static='-non_shared'
17457      ;;
17458
17459    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17460      case $cc_basename in
17461      # old Intel for x86_64, which still supported -KPIC.
17462      ecc*)
17463	lt_prog_compiler_wl='-Wl,'
17464	lt_prog_compiler_pic='-KPIC'
17465	lt_prog_compiler_static='-static'
17466        ;;
17467      # flang / f18. f95 an alias for gfortran or flang on Debian
17468      flang* | f18* | f95*)
17469	lt_prog_compiler_wl='-Wl,'
17470	lt_prog_compiler_pic='-fPIC'
17471	lt_prog_compiler_static='-static'
17472        ;;
17473      # icc used to be incompatible with GCC.
17474      # ICC 10 doesn't accept -KPIC any more.
17475      icc* | ifort*)
17476	lt_prog_compiler_wl='-Wl,'
17477	lt_prog_compiler_pic='-fPIC'
17478	lt_prog_compiler_static='-static'
17479        ;;
17480      # Lahey Fortran 8.1.
17481      lf95*)
17482	lt_prog_compiler_wl='-Wl,'
17483	lt_prog_compiler_pic='--shared'
17484	lt_prog_compiler_static='--static'
17485	;;
17486      nagfor*)
17487	# NAG Fortran compiler
17488	lt_prog_compiler_wl='-Wl,-Wl,,'
17489	lt_prog_compiler_pic='-PIC'
17490	lt_prog_compiler_static='-Bstatic'
17491	;;
17492      tcc*)
17493	# Fabrice Bellard et al's Tiny C Compiler
17494	lt_prog_compiler_wl='-Wl,'
17495	lt_prog_compiler_pic='-fPIC'
17496	lt_prog_compiler_static='-static'
17497	;;
17498      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17499        # Portland Group compilers (*not* the Pentium gcc compiler,
17500	# which looks to be a dead project)
17501	lt_prog_compiler_wl='-Wl,'
17502	lt_prog_compiler_pic='-fpic'
17503	lt_prog_compiler_static='-Bstatic'
17504        ;;
17505      ccc*)
17506        lt_prog_compiler_wl='-Wl,'
17507        # All Alpha code is PIC.
17508        lt_prog_compiler_static='-non_shared'
17509        ;;
17510      xl* | bgxl* | bgf* | mpixl*)
17511	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17512	lt_prog_compiler_wl='-Wl,'
17513	lt_prog_compiler_pic='-qpic'
17514	lt_prog_compiler_static='-qstaticlink'
17515	;;
17516      *)
17517	case `$CC -V 2>&1 | sed 5q` in
17518	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
17519	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17520	  lt_prog_compiler_pic='-KPIC'
17521	  lt_prog_compiler_static='-Bstatic'
17522	  lt_prog_compiler_wl=''
17523	  ;;
17524	*Sun\ F* | *Sun*Fortran*)
17525	  lt_prog_compiler_pic='-KPIC'
17526	  lt_prog_compiler_static='-Bstatic'
17527	  lt_prog_compiler_wl='-Qoption ld '
17528	  ;;
17529	*Sun\ C*)
17530	  # Sun C 5.9
17531	  lt_prog_compiler_pic='-KPIC'
17532	  lt_prog_compiler_static='-Bstatic'
17533	  lt_prog_compiler_wl='-Wl,'
17534	  ;;
17535        *Intel*\ [CF]*Compiler*)
17536	  lt_prog_compiler_wl='-Wl,'
17537	  lt_prog_compiler_pic='-fPIC'
17538	  lt_prog_compiler_static='-static'
17539	  ;;
17540	*Portland\ Group*)
17541	  lt_prog_compiler_wl='-Wl,'
17542	  lt_prog_compiler_pic='-fpic'
17543	  lt_prog_compiler_static='-Bstatic'
17544	  ;;
17545	esac
17546	;;
17547      esac
17548      ;;
17549
17550    newsos6)
17551      lt_prog_compiler_pic='-KPIC'
17552      lt_prog_compiler_static='-Bstatic'
17553      ;;
17554
17555    *nto* | *qnx*)
17556      # QNX uses GNU C++, but need to define -shared option too, otherwise
17557      # it will coredump.
17558      lt_prog_compiler_pic='-fPIC -shared'
17559      ;;
17560
17561    osf3* | osf4* | osf5*)
17562      lt_prog_compiler_wl='-Wl,'
17563      # All OSF/1 code is PIC.
17564      lt_prog_compiler_static='-non_shared'
17565      ;;
17566
17567    rdos*)
17568      lt_prog_compiler_static='-non_shared'
17569      ;;
17570
17571    solaris*)
17572      lt_prog_compiler_pic='-KPIC'
17573      lt_prog_compiler_static='-Bstatic'
17574      case $cc_basename in
17575      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
17576	lt_prog_compiler_wl='-Qoption ld ';;
17577      *)
17578	lt_prog_compiler_wl='-Wl,';;
17579      esac
17580      ;;
17581
17582    sunos4*)
17583      lt_prog_compiler_wl='-Qoption ld '
17584      lt_prog_compiler_pic='-PIC'
17585      lt_prog_compiler_static='-Bstatic'
17586      ;;
17587
17588    sysv4 | sysv4.2uw2* | sysv4.3*)
17589      lt_prog_compiler_wl='-Wl,'
17590      lt_prog_compiler_pic='-KPIC'
17591      lt_prog_compiler_static='-Bstatic'
17592      ;;
17593
17594    sysv4*MP*)
17595      if test -d /usr/nec; then
17596	lt_prog_compiler_pic='-Kconform_pic'
17597	lt_prog_compiler_static='-Bstatic'
17598      fi
17599      ;;
17600
17601    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17602      lt_prog_compiler_wl='-Wl,'
17603      lt_prog_compiler_pic='-KPIC'
17604      lt_prog_compiler_static='-Bstatic'
17605      ;;
17606
17607    unicos*)
17608      lt_prog_compiler_wl='-Wl,'
17609      lt_prog_compiler_can_build_shared=no
17610      ;;
17611
17612    uts4*)
17613      lt_prog_compiler_pic='-pic'
17614      lt_prog_compiler_static='-Bstatic'
17615      ;;
17616
17617    *)
17618      lt_prog_compiler_can_build_shared=no
17619      ;;
17620    esac
17621  fi
17622
17623case $host_os in
17624  # For platforms that do not support PIC, -DPIC is meaningless:
17625  *djgpp*)
17626    lt_prog_compiler_pic=
17627    ;;
17628  *)
17629    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17630    ;;
17631esac
17632
17633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17634$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17635if ${lt_cv_prog_compiler_pic+:} false; then :
17636  $as_echo_n "(cached) " >&6
17637else
17638  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
17639fi
17640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
17641$as_echo "$lt_cv_prog_compiler_pic" >&6; }
17642lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
17643
17644#
17645# Check to make sure the PIC flag actually works.
17646#
17647if test -n "$lt_prog_compiler_pic"; then
17648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17649$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
17650if ${lt_cv_prog_compiler_pic_works+:} false; then :
17651  $as_echo_n "(cached) " >&6
17652else
17653  lt_cv_prog_compiler_pic_works=no
17654   ac_outfile=conftest.$ac_objext
17655   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17656   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17657   # Insert the option either (1) after the last *FLAGS variable, or
17658   # (2) before a word containing "conftest.", or (3) at the end.
17659   # Note that $ac_compile itself does not contain backslashes and begins
17660   # with a dollar sign (not a hyphen), so the echo should work correctly.
17661   # The option is referenced via a variable to avoid confusing sed.
17662   lt_compile=`echo "$ac_compile" | $SED \
17663   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17664   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17665   -e 's:$: $lt_compiler_flag:'`
17666   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17667   (eval "$lt_compile" 2>conftest.err)
17668   ac_status=$?
17669   cat conftest.err >&5
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   if (exit $ac_status) && test -s "$ac_outfile"; then
17672     # The compiler can only warn and ignore the option if not recognized
17673     # So say no if there are warnings other than the usual output.
17674     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17675     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17676     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17677       lt_cv_prog_compiler_pic_works=yes
17678     fi
17679   fi
17680   $RM conftest*
17681
17682fi
17683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17684$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17685
17686if test yes = "$lt_cv_prog_compiler_pic_works"; then
17687    case $lt_prog_compiler_pic in
17688     "" | " "*) ;;
17689     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17690     esac
17691else
17692    lt_prog_compiler_pic=
17693     lt_prog_compiler_can_build_shared=no
17694fi
17695
17696fi
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708#
17709# Check to make sure the static flag actually works.
17710#
17711wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17713$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17714if ${lt_cv_prog_compiler_static_works+:} false; then :
17715  $as_echo_n "(cached) " >&6
17716else
17717  lt_cv_prog_compiler_static_works=no
17718   save_LDFLAGS=$LDFLAGS
17719   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17720   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17721   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17722     # The linker can only warn and ignore the option if not recognized
17723     # So say no if there are warnings
17724     if test -s conftest.err; then
17725       # Append any errors to the config.log.
17726       cat conftest.err 1>&5
17727       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17728       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17729       if diff conftest.exp conftest.er2 >/dev/null; then
17730         lt_cv_prog_compiler_static_works=yes
17731       fi
17732     else
17733       lt_cv_prog_compiler_static_works=yes
17734     fi
17735   fi
17736   $RM -r conftest*
17737   LDFLAGS=$save_LDFLAGS
17738
17739fi
17740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17741$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17742
17743if test yes = "$lt_cv_prog_compiler_static_works"; then
17744    :
17745else
17746    lt_prog_compiler_static=
17747fi
17748
17749
17750
17751
17752
17753
17754
17755  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17756$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17757if ${lt_cv_prog_compiler_c_o+:} false; then :
17758  $as_echo_n "(cached) " >&6
17759else
17760  lt_cv_prog_compiler_c_o=no
17761   $RM -r conftest 2>/dev/null
17762   mkdir conftest
17763   cd conftest
17764   mkdir out
17765   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17766
17767   lt_compiler_flag="-o out/conftest2.$ac_objext"
17768   # Insert the option either (1) after the last *FLAGS variable, or
17769   # (2) before a word containing "conftest.", or (3) at the end.
17770   # Note that $ac_compile itself does not contain backslashes and begins
17771   # with a dollar sign (not a hyphen), so the echo should work correctly.
17772   lt_compile=`echo "$ac_compile" | $SED \
17773   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17774   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17775   -e 's:$: $lt_compiler_flag:'`
17776   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17777   (eval "$lt_compile" 2>out/conftest.err)
17778   ac_status=$?
17779   cat out/conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17782   then
17783     # The compiler can only warn and ignore the option if not recognized
17784     # So say no if there are warnings
17785     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17786     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17787     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17788       lt_cv_prog_compiler_c_o=yes
17789     fi
17790   fi
17791   chmod u+w . 2>&5
17792   $RM conftest*
17793   # SGI C++ compiler will create directory out/ii_files/ for
17794   # template instantiation
17795   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17796   $RM out/* && rmdir out
17797   cd ..
17798   $RM -r conftest
17799   $RM conftest*
17800
17801fi
17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17803$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17804
17805
17806
17807
17808
17809
17810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17811$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17812if ${lt_cv_prog_compiler_c_o+:} false; then :
17813  $as_echo_n "(cached) " >&6
17814else
17815  lt_cv_prog_compiler_c_o=no
17816   $RM -r conftest 2>/dev/null
17817   mkdir conftest
17818   cd conftest
17819   mkdir out
17820   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17821
17822   lt_compiler_flag="-o out/conftest2.$ac_objext"
17823   # Insert the option either (1) after the last *FLAGS variable, or
17824   # (2) before a word containing "conftest.", or (3) at the end.
17825   # Note that $ac_compile itself does not contain backslashes and begins
17826   # with a dollar sign (not a hyphen), so the echo should work correctly.
17827   lt_compile=`echo "$ac_compile" | $SED \
17828   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17830   -e 's:$: $lt_compiler_flag:'`
17831   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17832   (eval "$lt_compile" 2>out/conftest.err)
17833   ac_status=$?
17834   cat out/conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17837   then
17838     # The compiler can only warn and ignore the option if not recognized
17839     # So say no if there are warnings
17840     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17841     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17842     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17843       lt_cv_prog_compiler_c_o=yes
17844     fi
17845   fi
17846   chmod u+w . 2>&5
17847   $RM conftest*
17848   # SGI C++ compiler will create directory out/ii_files/ for
17849   # template instantiation
17850   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17851   $RM out/* && rmdir out
17852   cd ..
17853   $RM -r conftest
17854   $RM conftest*
17855
17856fi
17857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17858$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17859
17860
17861
17862
17863hard_links=nottested
17864if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17865  # do not overwrite the value of need_locks provided by the user
17866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17867$as_echo_n "checking if we can lock with hard links... " >&6; }
17868  hard_links=yes
17869  $RM conftest*
17870  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17871  touch conftest.a
17872  ln conftest.a conftest.b 2>&5 || hard_links=no
17873  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17875$as_echo "$hard_links" >&6; }
17876  if test no = "$hard_links"; then
17877    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17878$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17879    need_locks=warn
17880  fi
17881else
17882  need_locks=no
17883fi
17884
17885
17886
17887
17888
17889
17890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17891$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17892
17893  runpath_var=
17894  allow_undefined_flag=
17895  always_export_symbols=no
17896  archive_cmds=
17897  archive_expsym_cmds=
17898  compiler_needs_object=no
17899  enable_shared_with_static_runtimes=no
17900  export_dynamic_flag_spec=
17901  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17902  hardcode_automatic=no
17903  hardcode_direct=no
17904  hardcode_direct_absolute=no
17905  hardcode_libdir_flag_spec=
17906  hardcode_libdir_separator=
17907  hardcode_minus_L=no
17908  hardcode_shlibpath_var=unsupported
17909  inherit_rpath=no
17910  link_all_deplibs=unknown
17911  module_cmds=
17912  module_expsym_cmds=
17913  old_archive_from_new_cmds=
17914  old_archive_from_expsyms_cmds=
17915  thread_safe_flag_spec=
17916  whole_archive_flag_spec=
17917  # include_expsyms should be a list of space-separated symbols to be *always*
17918  # included in the symbol list
17919  include_expsyms=
17920  # exclude_expsyms can be an extended regexp of symbols to exclude
17921  # it will be wrapped by ' (' and ')$', so one must not match beginning or
17922  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17923  # as well as any symbol that contains 'd'.
17924  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17925  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17926  # platforms (ab)use it in PIC code, but their linkers get confused if
17927  # the symbol is explicitly referenced.  Since portable code cannot
17928  # rely on this symbol name, it's probably fine to never include it in
17929  # preloaded symbol tables.
17930  # Exclude shared library initialization/finalization symbols.
17931  extract_expsyms_cmds=
17932
17933  case $host_os in
17934  cygwin* | mingw* | pw32* | cegcc*)
17935    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17936    # When not using gcc, we currently assume that we are using
17937    # Microsoft Visual C++.
17938    if test yes != "$GCC"; then
17939      with_gnu_ld=no
17940    fi
17941    ;;
17942  interix*)
17943    # we just hope/assume this is gcc and not c89 (= MSVC++)
17944    with_gnu_ld=yes
17945    ;;
17946  openbsd* | bitrig*)
17947    with_gnu_ld=no
17948    ;;
17949  linux* | k*bsd*-gnu | gnu*)
17950    link_all_deplibs=no
17951    ;;
17952  esac
17953
17954  ld_shlibs=yes
17955
17956  # On some targets, GNU ld is compatible enough with the native linker
17957  # that we're better off using the native interface for both.
17958  lt_use_gnu_ld_interface=no
17959  if test yes = "$with_gnu_ld"; then
17960    case $host_os in
17961      aix*)
17962	# The AIX port of GNU ld has always aspired to compatibility
17963	# with the native linker.  However, as the warning in the GNU ld
17964	# block says, versions before 2.19.5* couldn't really create working
17965	# shared libraries, regardless of the interface used.
17966	case `$LD -v 2>&1` in
17967	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17968	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17969	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17970	  *)
17971	    lt_use_gnu_ld_interface=yes
17972	    ;;
17973	esac
17974	;;
17975      *)
17976	lt_use_gnu_ld_interface=yes
17977	;;
17978    esac
17979  fi
17980
17981  if test yes = "$lt_use_gnu_ld_interface"; then
17982    # If archive_cmds runs LD, not CC, wlarc should be empty
17983    wlarc='$wl'
17984
17985    # Set some defaults for GNU ld with shared library support. These
17986    # are reset later if shared libraries are not supported. Putting them
17987    # here allows them to be overridden if necessary.
17988    runpath_var=LD_RUN_PATH
17989    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17990    export_dynamic_flag_spec='$wl--export-dynamic'
17991    # ancient GNU ld didn't support --whole-archive et. al.
17992    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17993      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17994    else
17995      whole_archive_flag_spec=
17996    fi
17997    supports_anon_versioning=no
17998    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
17999      *GNU\ gold*) supports_anon_versioning=yes ;;
18000      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18001      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18002      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18003      *\ 2.11.*) ;; # other 2.11 versions
18004      *) supports_anon_versioning=yes ;;
18005    esac
18006
18007    # See if GNU ld supports shared libraries.
18008    case $host_os in
18009    aix[3-9]*)
18010      # On AIX/PPC, the GNU linker is very broken
18011      if test ia64 != "$host_cpu"; then
18012	ld_shlibs=no
18013	cat <<_LT_EOF 1>&2
18014
18015*** Warning: the GNU linker, at least up to release 2.19, is reported
18016*** to be unable to reliably create shared libraries on AIX.
18017*** Therefore, libtool is disabling shared libraries support.  If you
18018*** really care for shared libraries, you may want to install binutils
18019*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18020*** You will then need to restart the configuration process.
18021
18022_LT_EOF
18023      fi
18024      ;;
18025
18026    amigaos*)
18027      case $host_cpu in
18028      powerpc)
18029            # see comment about AmigaOS4 .so support
18030            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18031            archive_expsym_cmds=''
18032        ;;
18033      m68k)
18034            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)'
18035            hardcode_libdir_flag_spec='-L$libdir'
18036            hardcode_minus_L=yes
18037        ;;
18038      esac
18039      ;;
18040
18041    beos*)
18042      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18043	allow_undefined_flag=unsupported
18044	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18045	# support --undefined.  This deserves some investigation.  FIXME
18046	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18047      else
18048	ld_shlibs=no
18049      fi
18050      ;;
18051
18052    cygwin* | mingw* | pw32* | cegcc*)
18053      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
18054      # as there is no search path for DLLs.
18055      hardcode_libdir_flag_spec='-L$libdir'
18056      export_dynamic_flag_spec='$wl--export-all-symbols'
18057      allow_undefined_flag=unsupported
18058      always_export_symbols=no
18059      enable_shared_with_static_runtimes=yes
18060      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'
18061      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18062
18063      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18064        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18065	# If the export-symbols file already is a .def file, use it as
18066	# is; otherwise, prepend EXPORTS...
18067	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18068          cp $export_symbols $output_objdir/$soname.def;
18069        else
18070          echo EXPORTS > $output_objdir/$soname.def;
18071          cat $export_symbols >> $output_objdir/$soname.def;
18072        fi~
18073        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18074      else
18075	ld_shlibs=no
18076      fi
18077      ;;
18078
18079    haiku*)
18080      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18081      link_all_deplibs=yes
18082      ;;
18083
18084    os2*)
18085      hardcode_libdir_flag_spec='-L$libdir'
18086      hardcode_minus_L=yes
18087      allow_undefined_flag=unsupported
18088      shrext_cmds=.dll
18089      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18090	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18091	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18092	$ECHO EXPORTS >> $output_objdir/$libname.def~
18093	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18094	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18095	emximp -o $lib $output_objdir/$libname.def'
18096      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18097	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18098	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18099	$ECHO EXPORTS >> $output_objdir/$libname.def~
18100	prefix_cmds="$SED"~
18101	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18102	  prefix_cmds="$prefix_cmds -e 1d";
18103	fi~
18104	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18105	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18106	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18107	emximp -o $lib $output_objdir/$libname.def'
18108      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18109      enable_shared_with_static_runtimes=yes
18110      ;;
18111
18112    interix[3-9]*)
18113      hardcode_direct=no
18114      hardcode_shlibpath_var=no
18115      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18116      export_dynamic_flag_spec='$wl-E'
18117      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18118      # Instead, shared libraries are loaded at an image base (0x10000000 by
18119      # default) and relocated if they conflict, which is a slow very memory
18120      # consuming and fragmenting process.  To avoid this, we pick a random,
18121      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18122      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18123      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18124      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'
18125      ;;
18126
18127    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18128      tmp_diet=no
18129      if test linux-dietlibc = "$host_os"; then
18130	case $cc_basename in
18131	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
18132	esac
18133      fi
18134      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18135	 && test no = "$tmp_diet"
18136      then
18137	tmp_addflag=' $pic_flag'
18138	tmp_sharedflag='-shared'
18139	case $cc_basename,$host_cpu in
18140        pgcc*)				# Portland Group C compiler
18141	  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'
18142	  tmp_addflag=' $pic_flag'
18143	  ;;
18144	pgf77* | pgf90* | pgf95* | pgfortran*)
18145					# Portland Group f77 and f90 compilers
18146	  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'
18147	  tmp_addflag=' $pic_flag -Mnomain' ;;
18148	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
18149	  tmp_addflag=' -i_dynamic' ;;
18150	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18151	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18152	ifc* | ifort*)			# Intel Fortran compiler
18153	  tmp_addflag=' -nofor_main' ;;
18154	lf95*)				# Lahey Fortran 8.1
18155	  whole_archive_flag_spec=
18156	  tmp_sharedflag='--shared' ;;
18157        nagfor*)                        # NAGFOR 5.3
18158          tmp_sharedflag='-Wl,-shared' ;;
18159	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18160	  tmp_sharedflag='-qmkshrobj'
18161	  tmp_addflag= ;;
18162	nvcc*)	# Cuda Compiler Driver 2.2
18163	  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'
18164	  compiler_needs_object=yes
18165	  ;;
18166	esac
18167	case `$CC -V 2>&1 | sed 5q` in
18168	*Sun\ C*)			# Sun C 5.9
18169	  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'
18170	  compiler_needs_object=yes
18171	  tmp_sharedflag='-G' ;;
18172	*Sun\ F*)			# Sun Fortran 8.3
18173	  tmp_sharedflag='-G' ;;
18174	esac
18175	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18176
18177        if test yes = "$supports_anon_versioning"; then
18178          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18179            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18180            echo "local: *; };" >> $output_objdir/$libname.ver~
18181            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18182        fi
18183
18184	case $cc_basename in
18185	tcc*)
18186	  export_dynamic_flag_spec='-rdynamic'
18187	  ;;
18188	xlf* | bgf* | bgxlf* | mpixlf*)
18189	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18190	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
18191	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18192	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18193	  if test yes = "$supports_anon_versioning"; then
18194	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
18195              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18196              echo "local: *; };" >> $output_objdir/$libname.ver~
18197              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18198	  fi
18199	  ;;
18200	esac
18201      else
18202        ld_shlibs=no
18203      fi
18204      ;;
18205
18206    netbsd* | netbsdelf*-gnu)
18207      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18208	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18209	wlarc=
18210      else
18211	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18212	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18213      fi
18214      ;;
18215
18216    solaris*)
18217      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18218	ld_shlibs=no
18219	cat <<_LT_EOF 1>&2
18220
18221*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18222*** create shared libraries on Solaris systems.  Therefore, libtool
18223*** is disabling shared libraries support.  We urge you to upgrade GNU
18224*** binutils to release 2.9.1 or newer.  Another option is to modify
18225*** your PATH or compiler configuration so that the native linker is
18226*** used, and then restart.
18227
18228_LT_EOF
18229      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18230	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18231	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18232      else
18233	ld_shlibs=no
18234      fi
18235      ;;
18236
18237    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18238      case `$LD -v 2>&1` in
18239        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18240	ld_shlibs=no
18241	cat <<_LT_EOF 1>&2
18242
18243*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
18244*** reliably create shared libraries on SCO systems.  Therefore, libtool
18245*** is disabling shared libraries support.  We urge you to upgrade GNU
18246*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18247*** your PATH or compiler configuration so that the native linker is
18248*** used, and then restart.
18249
18250_LT_EOF
18251	;;
18252	*)
18253	  # For security reasons, it is highly recommended that you always
18254	  # use absolute paths for naming shared libraries, and exclude the
18255	  # DT_RUNPATH tag from executables and libraries.  But doing so
18256	  # requires that you compile everything twice, which is a pain.
18257	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18258	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18259	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18260	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18261	  else
18262	    ld_shlibs=no
18263	  fi
18264	;;
18265      esac
18266      ;;
18267
18268    sunos4*)
18269      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18270      wlarc=
18271      hardcode_direct=yes
18272      hardcode_shlibpath_var=no
18273      ;;
18274
18275    *)
18276      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18277	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18278	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18279      else
18280	ld_shlibs=no
18281      fi
18282      ;;
18283    esac
18284
18285    if test no = "$ld_shlibs"; then
18286      runpath_var=
18287      hardcode_libdir_flag_spec=
18288      export_dynamic_flag_spec=
18289      whole_archive_flag_spec=
18290    fi
18291  else
18292    # PORTME fill in a description of your system's linker (not GNU ld)
18293    case $host_os in
18294    aix3*)
18295      allow_undefined_flag=unsupported
18296      always_export_symbols=yes
18297      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'
18298      # Note: this linker hardcodes the directories in LIBPATH if there
18299      # are no directories specified by -L.
18300      hardcode_minus_L=yes
18301      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18302	# Neither direct hardcoding nor static linking is supported with a
18303	# broken collect2.
18304	hardcode_direct=unsupported
18305      fi
18306      ;;
18307
18308    aix[4-9]*)
18309      if test ia64 = "$host_cpu"; then
18310	# On IA64, the linker does run time linking by default, so we don't
18311	# have to do anything special.
18312	aix_use_runtimelinking=no
18313	exp_sym_flag='-Bexport'
18314	no_entry_flag=
18315      else
18316	# If we're using GNU nm, then we don't want the "-C" option.
18317	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
18318	# Without the "-l" option, or with the "-B" option, AIX nm treats
18319	# weak defined symbols like other global defined symbols, whereas
18320	# GNU nm marks them as "W".
18321	# While the 'weak' keyword is ignored in the Export File, we need
18322	# it in the Import File for the 'aix-soname' feature, so we have
18323	# to replace the "-B" option with "-P" for AIX nm.
18324	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18325	  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'
18326	else
18327	  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'
18328	fi
18329	aix_use_runtimelinking=no
18330
18331	# Test if we are trying to use run time linking or normal
18332	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18333	# have runtime linking enabled, and use it for executables.
18334	# For shared libraries, we enable/disable runtime linking
18335	# depending on the kind of the shared library created -
18336	# when "with_aix_soname,aix_use_runtimelinking" is:
18337	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
18338	# "aix,yes"  lib.so          shared, rtl:yes, for executables
18339	#            lib.a           static archive
18340	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
18341	#            lib.a(lib.so.V) shared, rtl:no,  for executables
18342	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18343	#            lib.a(lib.so.V) shared, rtl:no
18344	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
18345	#            lib.a           static archive
18346	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18347	  for ld_flag in $LDFLAGS; do
18348	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18349	    aix_use_runtimelinking=yes
18350	    break
18351	  fi
18352	  done
18353	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18354	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
18355	    # so we don't have lib.a shared libs to link our executables.
18356	    # We have to force runtime linking in this case.
18357	    aix_use_runtimelinking=yes
18358	    LDFLAGS="$LDFLAGS -Wl,-brtl"
18359	  fi
18360	  ;;
18361	esac
18362
18363	exp_sym_flag='-bexport'
18364	no_entry_flag='-bnoentry'
18365      fi
18366
18367      # When large executables or shared objects are built, AIX ld can
18368      # have problems creating the table of contents.  If linking a library
18369      # or program results in "error TOC overflow" add -mminimal-toc to
18370      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18371      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18372
18373      archive_cmds=''
18374      hardcode_direct=yes
18375      hardcode_direct_absolute=yes
18376      hardcode_libdir_separator=':'
18377      link_all_deplibs=yes
18378      file_list_spec='$wl-f,'
18379      case $with_aix_soname,$aix_use_runtimelinking in
18380      aix,*) ;; # traditional, no import file
18381      svr4,* | *,yes) # use import file
18382	# The Import File defines what to hardcode.
18383	hardcode_direct=no
18384	hardcode_direct_absolute=no
18385	;;
18386      esac
18387
18388      if test yes = "$GCC"; then
18389	case $host_os in aix4.[012]|aix4.[012].*)
18390	# We only want to do this on AIX 4.2 and lower, the check
18391	# below for broken collect2 doesn't work under 4.3+
18392	  collect2name=`$CC -print-prog-name=collect2`
18393	  if test -f "$collect2name" &&
18394	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18395	  then
18396	  # We have reworked collect2
18397	  :
18398	  else
18399	  # We have old collect2
18400	  hardcode_direct=unsupported
18401	  # It fails to find uninstalled libraries when the uninstalled
18402	  # path is not listed in the libpath.  Setting hardcode_minus_L
18403	  # to unsupported forces relinking
18404	  hardcode_minus_L=yes
18405	  hardcode_libdir_flag_spec='-L$libdir'
18406	  hardcode_libdir_separator=
18407	  fi
18408	  ;;
18409	esac
18410	shared_flag='-shared'
18411	if test yes = "$aix_use_runtimelinking"; then
18412	  shared_flag="$shared_flag "'$wl-G'
18413	fi
18414	# Need to ensure runtime linking is disabled for the traditional
18415	# shared library, or the linker may eventually find shared libraries
18416	# /with/ Import File - we do not want to mix them.
18417	shared_flag_aix='-shared'
18418	shared_flag_svr4='-shared $wl-G'
18419      else
18420	# not using gcc
18421	if test ia64 = "$host_cpu"; then
18422	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18423	# chokes on -Wl,-G. The following line is correct:
18424	  shared_flag='-G'
18425	else
18426	  if test yes = "$aix_use_runtimelinking"; then
18427	    shared_flag='$wl-G'
18428	  else
18429	    shared_flag='$wl-bM:SRE'
18430	  fi
18431	  shared_flag_aix='$wl-bM:SRE'
18432	  shared_flag_svr4='$wl-G'
18433	fi
18434      fi
18435
18436      export_dynamic_flag_spec='$wl-bexpall'
18437      # It seems that -bexpall does not export symbols beginning with
18438      # underscore (_), so it is better to generate a list of symbols to export.
18439      always_export_symbols=yes
18440      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18441	# Warning - without using the other runtime loading flags (-brtl),
18442	# -berok will link without error, but may produce a broken library.
18443	allow_undefined_flag='-berok'
18444        # Determine the default libpath from the value encoded in an
18445        # empty executable.
18446        if test set = "${lt_cv_aix_libpath+set}"; then
18447  aix_libpath=$lt_cv_aix_libpath
18448else
18449  if ${lt_cv_aix_libpath_+:} false; then :
18450  $as_echo_n "(cached) " >&6
18451else
18452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453/* end confdefs.h.  */
18454
18455int
18456main ()
18457{
18458
18459  ;
18460  return 0;
18461}
18462_ACEOF
18463if ac_fn_c_try_link "$LINENO"; then :
18464
18465  lt_aix_libpath_sed='
18466      /Import File Strings/,/^$/ {
18467	  /^0/ {
18468	      s/^0  *\([^ ]*\) *$/\1/
18469	      p
18470	  }
18471      }'
18472  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18473  # Check for a 64-bit object if we didn't find anything.
18474  if test -z "$lt_cv_aix_libpath_"; then
18475    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18476  fi
18477fi
18478rm -f core conftest.err conftest.$ac_objext \
18479    conftest$ac_exeext conftest.$ac_ext
18480  if test -z "$lt_cv_aix_libpath_"; then
18481    lt_cv_aix_libpath_=/usr/lib:/lib
18482  fi
18483
18484fi
18485
18486  aix_libpath=$lt_cv_aix_libpath_
18487fi
18488
18489        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18490        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
18491      else
18492	if test ia64 = "$host_cpu"; then
18493	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
18494	  allow_undefined_flag="-z nodefs"
18495	  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"
18496	else
18497	 # Determine the default libpath from the value encoded in an
18498	 # empty executable.
18499	 if test set = "${lt_cv_aix_libpath+set}"; then
18500  aix_libpath=$lt_cv_aix_libpath
18501else
18502  if ${lt_cv_aix_libpath_+:} false; then :
18503  $as_echo_n "(cached) " >&6
18504else
18505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18506/* end confdefs.h.  */
18507
18508int
18509main ()
18510{
18511
18512  ;
18513  return 0;
18514}
18515_ACEOF
18516if ac_fn_c_try_link "$LINENO"; then :
18517
18518  lt_aix_libpath_sed='
18519      /Import File Strings/,/^$/ {
18520	  /^0/ {
18521	      s/^0  *\([^ ]*\) *$/\1/
18522	      p
18523	  }
18524      }'
18525  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18526  # Check for a 64-bit object if we didn't find anything.
18527  if test -z "$lt_cv_aix_libpath_"; then
18528    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18529  fi
18530fi
18531rm -f core conftest.err conftest.$ac_objext \
18532    conftest$ac_exeext conftest.$ac_ext
18533  if test -z "$lt_cv_aix_libpath_"; then
18534    lt_cv_aix_libpath_=/usr/lib:/lib
18535  fi
18536
18537fi
18538
18539  aix_libpath=$lt_cv_aix_libpath_
18540fi
18541
18542	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
18543	  # Warning - without using the other run time loading flags,
18544	  # -berok will link without error, but may produce a broken library.
18545	  no_undefined_flag=' $wl-bernotok'
18546	  allow_undefined_flag=' $wl-berok'
18547	  if test yes = "$with_gnu_ld"; then
18548	    # We only use this code for GNU lds that support --whole-archive.
18549	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
18550	  else
18551	    # Exported symbols can be pulled into shared objects from archives
18552	    whole_archive_flag_spec='$convenience'
18553	  fi
18554	  archive_cmds_need_lc=yes
18555	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
18556	  # -brtl affects multiple linker settings, -berok does not and is overridden later
18557	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
18558	  if test svr4 != "$with_aix_soname"; then
18559	    # This is similar to how AIX traditionally builds its shared libraries.
18560	    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'
18561	  fi
18562	  if test aix != "$with_aix_soname"; then
18563	    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'
18564	  else
18565	    # used by -dlpreopen to get the symbols
18566	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
18567	  fi
18568	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
18569	fi
18570      fi
18571      ;;
18572
18573    amigaos*)
18574      case $host_cpu in
18575      powerpc)
18576            # see comment about AmigaOS4 .so support
18577            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18578            archive_expsym_cmds=''
18579        ;;
18580      m68k)
18581            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)'
18582            hardcode_libdir_flag_spec='-L$libdir'
18583            hardcode_minus_L=yes
18584        ;;
18585      esac
18586      ;;
18587
18588    bsdi[45]*)
18589      export_dynamic_flag_spec=-rdynamic
18590      ;;
18591
18592    cygwin* | mingw* | pw32* | cegcc*)
18593      # When not using gcc, we currently assume that we are using
18594      # Microsoft Visual C++.
18595      # hardcode_libdir_flag_spec is actually meaningless, as there is
18596      # no search path for DLLs.
18597      case $cc_basename in
18598      cl*)
18599	# Native MSVC
18600	hardcode_libdir_flag_spec=' '
18601	allow_undefined_flag=unsupported
18602	always_export_symbols=yes
18603	file_list_spec='@'
18604	# Tell ltmain to make .lib files, not .a files.
18605	libext=lib
18606	# Tell ltmain to make .dll files, not .so files.
18607	shrext_cmds=.dll
18608	# FIXME: Setting linknames here is a bad hack.
18609	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
18610	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18611            cp "$export_symbols" "$output_objdir/$soname.def";
18612            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
18613          else
18614            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
18615          fi~
18616          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18617          linknames='
18618	# The linker will not automatically build a static lib if we build a DLL.
18619	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
18620	enable_shared_with_static_runtimes=yes
18621	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18622	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18623	# Don't use ranlib
18624	old_postinstall_cmds='chmod 644 $oldlib'
18625	postlink_cmds='lt_outputfile="@OUTPUT@"~
18626          lt_tool_outputfile="@TOOL_OUTPUT@"~
18627          case $lt_outputfile in
18628            *.exe|*.EXE) ;;
18629            *)
18630              lt_outputfile=$lt_outputfile.exe
18631              lt_tool_outputfile=$lt_tool_outputfile.exe
18632              ;;
18633          esac~
18634          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
18635            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18636            $RM "$lt_outputfile.manifest";
18637          fi'
18638	;;
18639      *)
18640	# Assume MSVC wrapper
18641	hardcode_libdir_flag_spec=' '
18642	allow_undefined_flag=unsupported
18643	# Tell ltmain to make .lib files, not .a files.
18644	libext=lib
18645	# Tell ltmain to make .dll files, not .so files.
18646	shrext_cmds=.dll
18647	# FIXME: Setting linknames here is a bad hack.
18648	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18649	# The linker will automatically build a .lib file if we build a DLL.
18650	old_archive_from_new_cmds='true'
18651	# FIXME: Should let the user specify the lib program.
18652	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
18653	enable_shared_with_static_runtimes=yes
18654	;;
18655      esac
18656      ;;
18657
18658    darwin* | rhapsody*)
18659
18660
18661  archive_cmds_need_lc=no
18662  hardcode_direct=no
18663  hardcode_automatic=yes
18664  hardcode_shlibpath_var=unsupported
18665  if test yes = "$lt_cv_ld_force_load"; then
18666    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\"`'
18667
18668  else
18669    whole_archive_flag_spec=''
18670  fi
18671  link_all_deplibs=yes
18672  allow_undefined_flag=$_lt_dar_allow_undefined
18673  case $cc_basename in
18674     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18675     *) _lt_dar_can_shared=$GCC ;;
18676  esac
18677  if test yes = "$_lt_dar_can_shared"; then
18678    output_verbose_link_cmd=func_echo_all
18679    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18680    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18681    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"
18682    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"
18683
18684  else
18685  ld_shlibs=no
18686  fi
18687
18688      ;;
18689
18690    dgux*)
18691      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692      hardcode_libdir_flag_spec='-L$libdir'
18693      hardcode_shlibpath_var=no
18694      ;;
18695
18696    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18697    # support.  Future versions do this automatically, but an explicit c++rt0.o
18698    # does not break anything, and helps significantly (at the cost of a little
18699    # extra space).
18700    freebsd2.2*)
18701      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18702      hardcode_libdir_flag_spec='-R$libdir'
18703      hardcode_direct=yes
18704      hardcode_shlibpath_var=no
18705      ;;
18706
18707    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18708    freebsd2.*)
18709      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18710      hardcode_direct=yes
18711      hardcode_minus_L=yes
18712      hardcode_shlibpath_var=no
18713      ;;
18714
18715    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18716    freebsd* | dragonfly*)
18717      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18718      hardcode_libdir_flag_spec='-R$libdir'
18719      hardcode_direct=yes
18720      hardcode_shlibpath_var=no
18721      ;;
18722
18723    hpux9*)
18724      if test yes = "$GCC"; then
18725	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'
18726      else
18727	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'
18728      fi
18729      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18730      hardcode_libdir_separator=:
18731      hardcode_direct=yes
18732
18733      # hardcode_minus_L: Not really in the search PATH,
18734      # but as the default location of the library.
18735      hardcode_minus_L=yes
18736      export_dynamic_flag_spec='$wl-E'
18737      ;;
18738
18739    hpux10*)
18740      if test yes,no = "$GCC,$with_gnu_ld"; then
18741	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18742      else
18743	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18744      fi
18745      if test no = "$with_gnu_ld"; then
18746	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18747	hardcode_libdir_separator=:
18748	hardcode_direct=yes
18749	hardcode_direct_absolute=yes
18750	export_dynamic_flag_spec='$wl-E'
18751	# hardcode_minus_L: Not really in the search PATH,
18752	# but as the default location of the library.
18753	hardcode_minus_L=yes
18754      fi
18755      ;;
18756
18757    hpux11*)
18758      if test yes,no = "$GCC,$with_gnu_ld"; then
18759	case $host_cpu in
18760	hppa*64*)
18761	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18762	  ;;
18763	ia64*)
18764	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18765	  ;;
18766	*)
18767	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18768	  ;;
18769	esac
18770      else
18771	case $host_cpu in
18772	hppa*64*)
18773	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18774	  ;;
18775	ia64*)
18776	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18777	  ;;
18778	*)
18779
18780	  # Older versions of the 11.00 compiler do not understand -b yet
18781	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18782	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18783$as_echo_n "checking if $CC understands -b... " >&6; }
18784if ${lt_cv_prog_compiler__b+:} false; then :
18785  $as_echo_n "(cached) " >&6
18786else
18787  lt_cv_prog_compiler__b=no
18788   save_LDFLAGS=$LDFLAGS
18789   LDFLAGS="$LDFLAGS -b"
18790   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18791   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18792     # The linker can only warn and ignore the option if not recognized
18793     # So say no if there are warnings
18794     if test -s conftest.err; then
18795       # Append any errors to the config.log.
18796       cat conftest.err 1>&5
18797       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18798       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18799       if diff conftest.exp conftest.er2 >/dev/null; then
18800         lt_cv_prog_compiler__b=yes
18801       fi
18802     else
18803       lt_cv_prog_compiler__b=yes
18804     fi
18805   fi
18806   $RM -r conftest*
18807   LDFLAGS=$save_LDFLAGS
18808
18809fi
18810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18811$as_echo "$lt_cv_prog_compiler__b" >&6; }
18812
18813if test yes = "$lt_cv_prog_compiler__b"; then
18814    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18815else
18816    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18817fi
18818
18819	  ;;
18820	esac
18821      fi
18822      if test no = "$with_gnu_ld"; then
18823	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18824	hardcode_libdir_separator=:
18825
18826	case $host_cpu in
18827	hppa*64*|ia64*)
18828	  hardcode_direct=no
18829	  hardcode_shlibpath_var=no
18830	  ;;
18831	*)
18832	  hardcode_direct=yes
18833	  hardcode_direct_absolute=yes
18834	  export_dynamic_flag_spec='$wl-E'
18835
18836	  # hardcode_minus_L: Not really in the search PATH,
18837	  # but as the default location of the library.
18838	  hardcode_minus_L=yes
18839	  ;;
18840	esac
18841      fi
18842      ;;
18843
18844    irix5* | irix6* | nonstopux*)
18845      if test yes = "$GCC"; then
18846	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'
18847	# Try to use the -exported_symbol ld option, if it does not
18848	# work, assume that -exports_file does not work either and
18849	# implicitly export all symbols.
18850	# This should be the same for all languages, so no per-tag cache variable.
18851	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18852$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18853if ${lt_cv_irix_exported_symbol+:} false; then :
18854  $as_echo_n "(cached) " >&6
18855else
18856  save_LDFLAGS=$LDFLAGS
18857	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18858	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18859/* end confdefs.h.  */
18860int foo (void) { return 0; }
18861_ACEOF
18862if ac_fn_c_try_link "$LINENO"; then :
18863  lt_cv_irix_exported_symbol=yes
18864else
18865  lt_cv_irix_exported_symbol=no
18866fi
18867rm -f core conftest.err conftest.$ac_objext \
18868    conftest$ac_exeext conftest.$ac_ext
18869           LDFLAGS=$save_LDFLAGS
18870fi
18871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18872$as_echo "$lt_cv_irix_exported_symbol" >&6; }
18873	if test yes = "$lt_cv_irix_exported_symbol"; then
18874          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'
18875	fi
18876	link_all_deplibs=no
18877      else
18878	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'
18879	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'
18880      fi
18881      archive_cmds_need_lc='no'
18882      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18883      hardcode_libdir_separator=:
18884      inherit_rpath=yes
18885      link_all_deplibs=yes
18886      ;;
18887
18888    linux*)
18889      case $cc_basename in
18890      tcc*)
18891	# Fabrice Bellard et al's Tiny C Compiler
18892	ld_shlibs=yes
18893	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18894	;;
18895      esac
18896      ;;
18897
18898    netbsd* | netbsdelf*-gnu)
18899      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18900	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18901      else
18902	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18903      fi
18904      hardcode_libdir_flag_spec='-R$libdir'
18905      hardcode_direct=yes
18906      hardcode_shlibpath_var=no
18907      ;;
18908
18909    newsos6)
18910      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18911      hardcode_direct=yes
18912      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18913      hardcode_libdir_separator=:
18914      hardcode_shlibpath_var=no
18915      ;;
18916
18917    *nto* | *qnx*)
18918      ;;
18919
18920    openbsd* | bitrig*)
18921      if test -f /usr/libexec/ld.so; then
18922	hardcode_direct=yes
18923	hardcode_shlibpath_var=no
18924	hardcode_direct_absolute=yes
18925	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18926	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18927	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18928	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18929	  export_dynamic_flag_spec='$wl-E'
18930	else
18931	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18932	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18933	fi
18934      else
18935	ld_shlibs=no
18936      fi
18937      ;;
18938
18939    os2*)
18940      hardcode_libdir_flag_spec='-L$libdir'
18941      hardcode_minus_L=yes
18942      allow_undefined_flag=unsupported
18943      shrext_cmds=.dll
18944      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18945	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18946	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18947	$ECHO EXPORTS >> $output_objdir/$libname.def~
18948	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18949	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18950	emximp -o $lib $output_objdir/$libname.def'
18951      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18952	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18953	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18954	$ECHO EXPORTS >> $output_objdir/$libname.def~
18955	prefix_cmds="$SED"~
18956	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18957	  prefix_cmds="$prefix_cmds -e 1d";
18958	fi~
18959	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18960	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18961	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18962	emximp -o $lib $output_objdir/$libname.def'
18963      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18964      enable_shared_with_static_runtimes=yes
18965      ;;
18966
18967    osf3*)
18968      if test yes = "$GCC"; then
18969	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18970	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'
18971      else
18972	allow_undefined_flag=' -expect_unresolved \*'
18973	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'
18974      fi
18975      archive_cmds_need_lc='no'
18976      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18977      hardcode_libdir_separator=:
18978      ;;
18979
18980    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18981      if test yes = "$GCC"; then
18982	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18983	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'
18984	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18985      else
18986	allow_undefined_flag=' -expect_unresolved \*'
18987	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'
18988	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~
18989          $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'
18990
18991	# Both c and cxx compiler support -rpath directly
18992	hardcode_libdir_flag_spec='-rpath $libdir'
18993      fi
18994      archive_cmds_need_lc='no'
18995      hardcode_libdir_separator=:
18996      ;;
18997
18998    solaris*)
18999      no_undefined_flag=' -z defs'
19000      if test yes = "$GCC"; then
19001	wlarc='$wl'
19002	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19003	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19004          $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'
19005      else
19006	case `$CC -V 2>&1` in
19007	*"Compilers 5.0"*)
19008	  wlarc=''
19009	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
19010	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19011            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19012	  ;;
19013	*)
19014	  wlarc='$wl'
19015	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19016	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19017            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19018	  ;;
19019	esac
19020      fi
19021      hardcode_libdir_flag_spec='-R$libdir'
19022      hardcode_shlibpath_var=no
19023      case $host_os in
19024      solaris2.[0-5] | solaris2.[0-5].*) ;;
19025      *)
19026	# The compiler driver will combine and reorder linker options,
19027	# but understands '-z linker_flag'.  GCC discards it without '$wl',
19028	# but is careful enough not to reorder.
19029	# Supported since Solaris 2.6 (maybe 2.5.1?)
19030	if test yes = "$GCC"; then
19031	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19032	else
19033	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
19034	fi
19035	;;
19036      esac
19037      link_all_deplibs=yes
19038      ;;
19039
19040    sunos4*)
19041      if test sequent = "$host_vendor"; then
19042	# Use $CC to link under sequent, because it throws in some extra .o
19043	# files that make .init and .fini sections work.
19044	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19045      else
19046	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19047      fi
19048      hardcode_libdir_flag_spec='-L$libdir'
19049      hardcode_direct=yes
19050      hardcode_minus_L=yes
19051      hardcode_shlibpath_var=no
19052      ;;
19053
19054    sysv4)
19055      case $host_vendor in
19056	sni)
19057	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19058	  hardcode_direct=yes # is this really true???
19059	;;
19060	siemens)
19061	  ## LD is ld it makes a PLAMLIB
19062	  ## CC just makes a GrossModule.
19063	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19064	  reload_cmds='$CC -r -o $output$reload_objs'
19065	  hardcode_direct=no
19066        ;;
19067	motorola)
19068	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19069	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19070	;;
19071      esac
19072      runpath_var='LD_RUN_PATH'
19073      hardcode_shlibpath_var=no
19074      ;;
19075
19076    sysv4.3*)
19077      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19078      hardcode_shlibpath_var=no
19079      export_dynamic_flag_spec='-Bexport'
19080      ;;
19081
19082    sysv4*MP*)
19083      if test -d /usr/nec; then
19084	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19085	hardcode_shlibpath_var=no
19086	runpath_var=LD_RUN_PATH
19087	hardcode_runpath_var=yes
19088	ld_shlibs=yes
19089      fi
19090      ;;
19091
19092    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19093      no_undefined_flag='$wl-z,text'
19094      archive_cmds_need_lc=no
19095      hardcode_shlibpath_var=no
19096      runpath_var='LD_RUN_PATH'
19097
19098      if test yes = "$GCC"; then
19099	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19100	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19101      else
19102	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19103	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19104      fi
19105      ;;
19106
19107    sysv5* | sco3.2v5* | sco5v6*)
19108      # Note: We CANNOT use -z defs as we might desire, because we do not
19109      # link with -lc, and that would cause any symbols used from libc to
19110      # always be unresolved, which means just about no library would
19111      # ever link correctly.  If we're not using GNU ld we use -z text
19112      # though, which does catch some bad symbols but isn't as heavy-handed
19113      # as -z defs.
19114      no_undefined_flag='$wl-z,text'
19115      allow_undefined_flag='$wl-z,nodefs'
19116      archive_cmds_need_lc=no
19117      hardcode_shlibpath_var=no
19118      hardcode_libdir_flag_spec='$wl-R,$libdir'
19119      hardcode_libdir_separator=':'
19120      link_all_deplibs=yes
19121      export_dynamic_flag_spec='$wl-Bexport'
19122      runpath_var='LD_RUN_PATH'
19123
19124      if test yes = "$GCC"; then
19125	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19126	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19127      else
19128	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19129	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19130      fi
19131      ;;
19132
19133    uts4*)
19134      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19135      hardcode_libdir_flag_spec='-L$libdir'
19136      hardcode_shlibpath_var=no
19137      ;;
19138
19139    *)
19140      ld_shlibs=no
19141      ;;
19142    esac
19143
19144    if test sni = "$host_vendor"; then
19145      case $host in
19146      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19147	export_dynamic_flag_spec='$wl-Blargedynsym'
19148	;;
19149      esac
19150    fi
19151  fi
19152
19153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
19154$as_echo "$ld_shlibs" >&6; }
19155test no = "$ld_shlibs" && can_build_shared=no
19156
19157with_gnu_ld=$with_gnu_ld
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173#
19174# Do we need to explicitly link libc?
19175#
19176case "x$archive_cmds_need_lc" in
19177x|xyes)
19178  # Assume -lc should be added
19179  archive_cmds_need_lc=yes
19180
19181  if test yes,yes = "$GCC,$enable_shared"; then
19182    case $archive_cmds in
19183    *'~'*)
19184      # FIXME: we may have to deal with multi-command sequences.
19185      ;;
19186    '$CC '*)
19187      # Test whether the compiler implicitly links with -lc since on some
19188      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19189      # to ld, don't add -lc before -lgcc.
19190      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19191$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19192if ${lt_cv_archive_cmds_need_lc+:} false; then :
19193  $as_echo_n "(cached) " >&6
19194else
19195  $RM conftest*
19196	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19197
19198	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19199  (eval $ac_compile) 2>&5
19200  ac_status=$?
19201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19202  test $ac_status = 0; } 2>conftest.err; then
19203	  soname=conftest
19204	  lib=conftest
19205	  libobjs=conftest.$ac_objext
19206	  deplibs=
19207	  wl=$lt_prog_compiler_wl
19208	  pic_flag=$lt_prog_compiler_pic
19209	  compiler_flags=-v
19210	  linker_flags=-v
19211	  verstring=
19212	  output_objdir=.
19213	  libname=conftest
19214	  lt_save_allow_undefined_flag=$allow_undefined_flag
19215	  allow_undefined_flag=
19216	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19217  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19218  ac_status=$?
19219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19220  test $ac_status = 0; }
19221	  then
19222	    lt_cv_archive_cmds_need_lc=no
19223	  else
19224	    lt_cv_archive_cmds_need_lc=yes
19225	  fi
19226	  allow_undefined_flag=$lt_save_allow_undefined_flag
19227	else
19228	  cat conftest.err 1>&5
19229	fi
19230	$RM conftest*
19231
19232fi
19233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
19234$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
19235      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
19236      ;;
19237    esac
19238  fi
19239  ;;
19240esac
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19394$as_echo_n "checking dynamic linker characteristics... " >&6; }
19395
19396if test yes = "$GCC"; then
19397  case $host_os in
19398    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
19399    *) lt_awk_arg='/^libraries:/' ;;
19400  esac
19401  case $host_os in
19402    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
19403    *) lt_sed_strip_eq='s|=/|/|g' ;;
19404  esac
19405  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
19406  case $lt_search_path_spec in
19407  *\;*)
19408    # if the path contains ";" then we assume it to be the separator
19409    # otherwise default to the standard path separator (i.e. ":") - it is
19410    # assumed that no part of a normal pathname contains ";" but that should
19411    # okay in the real world where ";" in dirpaths is itself problematic.
19412    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
19413    ;;
19414  *)
19415    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
19416    ;;
19417  esac
19418  # Ok, now we have the path, separated by spaces, we can step through it
19419  # and add multilib dir if necessary...
19420  lt_tmp_lt_search_path_spec=
19421  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
19422  # ...but if some path component already ends with the multilib dir we assume
19423  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
19424  case "$lt_multi_os_dir; $lt_search_path_spec " in
19425  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
19426    lt_multi_os_dir=
19427    ;;
19428  esac
19429  for lt_sys_path in $lt_search_path_spec; do
19430    if test -d "$lt_sys_path$lt_multi_os_dir"; then
19431      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
19432    elif test -n "$lt_multi_os_dir"; then
19433      test -d "$lt_sys_path" && \
19434	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
19435    fi
19436  done
19437  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
19438BEGIN {RS = " "; FS = "/|\n";} {
19439  lt_foo = "";
19440  lt_count = 0;
19441  for (lt_i = NF; lt_i > 0; lt_i--) {
19442    if ($lt_i != "" && $lt_i != ".") {
19443      if ($lt_i == "..") {
19444        lt_count++;
19445      } else {
19446        if (lt_count == 0) {
19447          lt_foo = "/" $lt_i lt_foo;
19448        } else {
19449          lt_count--;
19450        }
19451      }
19452    }
19453  }
19454  if (lt_foo != "") { lt_freq[lt_foo]++; }
19455  if (lt_freq[lt_foo] == 1) { print lt_foo; }
19456}'`
19457  # AWK program above erroneously prepends '/' to C:/dos/paths
19458  # for these hosts.
19459  case $host_os in
19460    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
19461      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
19462  esac
19463  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
19464else
19465  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19466fi
19467library_names_spec=
19468libname_spec='lib$name'
19469soname_spec=
19470shrext_cmds=.so
19471postinstall_cmds=
19472postuninstall_cmds=
19473finish_cmds=
19474finish_eval=
19475shlibpath_var=
19476shlibpath_overrides_runpath=unknown
19477version_type=none
19478dynamic_linker="$host_os ld.so"
19479sys_lib_dlsearch_path_spec="/lib /usr/lib"
19480need_lib_prefix=unknown
19481hardcode_into_libs=no
19482
19483# when you set need_version to no, make sure it does not cause -set_version
19484# flags to be left without arguments
19485need_version=unknown
19486
19487
19488
19489case $host_os in
19490aix3*)
19491  version_type=linux # correct to gnu/linux during the next big refactor
19492  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19493  shlibpath_var=LIBPATH
19494
19495  # AIX 3 has no versioning support, so we append a major version to the name.
19496  soname_spec='$libname$release$shared_ext$major'
19497  ;;
19498
19499aix[4-9]*)
19500  version_type=linux # correct to gnu/linux during the next big refactor
19501  need_lib_prefix=no
19502  need_version=no
19503  hardcode_into_libs=yes
19504  if test ia64 = "$host_cpu"; then
19505    # AIX 5 supports IA64
19506    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19507    shlibpath_var=LD_LIBRARY_PATH
19508  else
19509    # With GCC up to 2.95.x, collect2 would create an import file
19510    # for dependence libraries.  The import file would start with
19511    # the line '#! .'.  This would cause the generated library to
19512    # depend on '.', always an invalid library.  This was fixed in
19513    # development snapshots of GCC prior to 3.0.
19514    case $host_os in
19515      aix4 | aix4.[01] | aix4.[01].*)
19516      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19517	   echo ' yes '
19518	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19519	:
19520      else
19521	can_build_shared=no
19522      fi
19523      ;;
19524    esac
19525    # Using Import Files as archive members, it is possible to support
19526    # filename-based versioning of shared library archives on AIX. While
19527    # this would work for both with and without runtime linking, it will
19528    # prevent static linking of such archives. So we do filename-based
19529    # shared library versioning with .so extension only, which is used
19530    # when both runtime linking and shared linking is enabled.
19531    # Unfortunately, runtime linking may impact performance, so we do
19532    # not want this to be the default eventually. Also, we use the
19533    # versioned .so libs for executables only if there is the -brtl
19534    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19535    # To allow for filename-based versioning support, we need to create
19536    # libNAME.so.V as an archive file, containing:
19537    # *) an Import File, referring to the versioned filename of the
19538    #    archive as well as the shared archive member, telling the
19539    #    bitwidth (32 or 64) of that shared object, and providing the
19540    #    list of exported symbols of that shared object, eventually
19541    #    decorated with the 'weak' keyword
19542    # *) the shared object with the F_LOADONLY flag set, to really avoid
19543    #    it being seen by the linker.
19544    # At run time we better use the real file rather than another symlink,
19545    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19546
19547    case $with_aix_soname,$aix_use_runtimelinking in
19548    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19549    # soname into executable. Probably we can add versioning support to
19550    # collect2, so additional links can be useful in future.
19551    aix,yes) # traditional libtool
19552      dynamic_linker='AIX unversionable lib.so'
19553      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19554      # instead of lib<name>.a to let people know that these are not
19555      # typical AIX shared libraries.
19556      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19557      ;;
19558    aix,no) # traditional AIX only
19559      dynamic_linker='AIX lib.a(lib.so.V)'
19560      # We preserve .a as extension for shared libraries through AIX4.2
19561      # and later when we are not doing run time linking.
19562      library_names_spec='$libname$release.a $libname.a'
19563      soname_spec='$libname$release$shared_ext$major'
19564      ;;
19565    svr4,*) # full svr4 only
19566      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19567      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19568      # We do not specify a path in Import Files, so LIBPATH fires.
19569      shlibpath_overrides_runpath=yes
19570      ;;
19571    *,yes) # both, prefer svr4
19572      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19573      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19574      # unpreferred sharedlib libNAME.a needs extra handling
19575      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"'
19576      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"'
19577      # We do not specify a path in Import Files, so LIBPATH fires.
19578      shlibpath_overrides_runpath=yes
19579      ;;
19580    *,no) # both, prefer aix
19581      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19582      library_names_spec='$libname$release.a $libname.a'
19583      soname_spec='$libname$release$shared_ext$major'
19584      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19585      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)'
19586      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"'
19587      ;;
19588    esac
19589    shlibpath_var=LIBPATH
19590  fi
19591  ;;
19592
19593amigaos*)
19594  case $host_cpu in
19595  powerpc)
19596    # Since July 2007 AmigaOS4 officially supports .so libraries.
19597    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19598    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19599    ;;
19600  m68k)
19601    library_names_spec='$libname.ixlibrary $libname.a'
19602    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19603    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'
19604    ;;
19605  esac
19606  ;;
19607
19608beos*)
19609  library_names_spec='$libname$shared_ext'
19610  dynamic_linker="$host_os ld.so"
19611  shlibpath_var=LIBRARY_PATH
19612  ;;
19613
19614bsdi[45]*)
19615  version_type=linux # correct to gnu/linux during the next big refactor
19616  need_version=no
19617  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19618  soname_spec='$libname$release$shared_ext$major'
19619  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19620  shlibpath_var=LD_LIBRARY_PATH
19621  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19622  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19623  # the default ld.so.conf also contains /usr/contrib/lib and
19624  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19625  # libtool to hard-code these into programs
19626  ;;
19627
19628cygwin* | mingw* | pw32* | cegcc*)
19629  version_type=windows
19630  shrext_cmds=.dll
19631  need_version=no
19632  need_lib_prefix=no
19633
19634  case $GCC,$cc_basename in
19635  yes,*)
19636    # gcc
19637    library_names_spec='$libname.dll.a'
19638    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19639    postinstall_cmds='base_file=`basename \$file`~
19640      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19641      dldir=$destdir/`dirname \$dlpath`~
19642      test -d \$dldir || mkdir -p \$dldir~
19643      $install_prog $dir/$dlname \$dldir/$dlname~
19644      chmod a+x \$dldir/$dlname~
19645      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19646        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19647      fi'
19648    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19649      dlpath=$dir/\$dldll~
19650       $RM \$dlpath'
19651    shlibpath_overrides_runpath=yes
19652
19653    case $host_os in
19654    cygwin*)
19655      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19656      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19657
19658      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
19659      ;;
19660    mingw* | cegcc*)
19661      # MinGW DLLs use traditional 'lib' prefix
19662      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19663      ;;
19664    pw32*)
19665      # pw32 DLLs use 'pw' prefix rather than 'lib'
19666      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19667      ;;
19668    esac
19669    dynamic_linker='Win32 ld.exe'
19670    ;;
19671
19672  *,cl*)
19673    # Native MSVC
19674    libname_spec='$name'
19675    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19676    library_names_spec='$libname.dll.lib'
19677
19678    case $build_os in
19679    mingw*)
19680      sys_lib_search_path_spec=
19681      lt_save_ifs=$IFS
19682      IFS=';'
19683      for lt_path in $LIB
19684      do
19685        IFS=$lt_save_ifs
19686        # Let DOS variable expansion print the short 8.3 style file name.
19687        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19688        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19689      done
19690      IFS=$lt_save_ifs
19691      # Convert to MSYS style.
19692      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19693      ;;
19694    cygwin*)
19695      # Convert to unix form, then to dos form, then back to unix form
19696      # but this time dos style (no spaces!) so that the unix form looks
19697      # like /cygdrive/c/PROGRA~1:/cygdr...
19698      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19699      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19700      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19701      ;;
19702    *)
19703      sys_lib_search_path_spec=$LIB
19704      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19705        # It is most probably a Windows format PATH.
19706        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19707      else
19708        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19709      fi
19710      # FIXME: find the short name or the path components, as spaces are
19711      # common. (e.g. "Program Files" -> "PROGRA~1")
19712      ;;
19713    esac
19714
19715    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19716    postinstall_cmds='base_file=`basename \$file`~
19717      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19718      dldir=$destdir/`dirname \$dlpath`~
19719      test -d \$dldir || mkdir -p \$dldir~
19720      $install_prog $dir/$dlname \$dldir/$dlname'
19721    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19722      dlpath=$dir/\$dldll~
19723       $RM \$dlpath'
19724    shlibpath_overrides_runpath=yes
19725    dynamic_linker='Win32 link.exe'
19726    ;;
19727
19728  *)
19729    # Assume MSVC wrapper
19730    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19731    dynamic_linker='Win32 ld.exe'
19732    ;;
19733  esac
19734  # FIXME: first we should search . and the directory the executable is in
19735  shlibpath_var=PATH
19736  ;;
19737
19738darwin* | rhapsody*)
19739  dynamic_linker="$host_os dyld"
19740  version_type=darwin
19741  need_lib_prefix=no
19742  need_version=no
19743  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19744  soname_spec='$libname$release$major$shared_ext'
19745  shlibpath_overrides_runpath=yes
19746  shlibpath_var=DYLD_LIBRARY_PATH
19747  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19748
19749  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19750  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19751  ;;
19752
19753dgux*)
19754  version_type=linux # correct to gnu/linux during the next big refactor
19755  need_lib_prefix=no
19756  need_version=no
19757  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19758  soname_spec='$libname$release$shared_ext$major'
19759  shlibpath_var=LD_LIBRARY_PATH
19760  ;;
19761
19762freebsd* | dragonfly*)
19763  # DragonFly does not have aout.  When/if they implement a new
19764  # versioning mechanism, adjust this.
19765  if test -x /usr/bin/objformat; then
19766    objformat=`/usr/bin/objformat`
19767  else
19768    case $host_os in
19769    freebsd[23].*) objformat=aout ;;
19770    *) objformat=elf ;;
19771    esac
19772  fi
19773  version_type=freebsd-$objformat
19774  case $version_type in
19775    freebsd-elf*)
19776      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19777      soname_spec='$libname$release$shared_ext$major'
19778      need_version=no
19779      need_lib_prefix=no
19780      ;;
19781    freebsd-*)
19782      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19783      need_version=yes
19784      ;;
19785  esac
19786  shlibpath_var=LD_LIBRARY_PATH
19787  case $host_os in
19788  freebsd2.*)
19789    shlibpath_overrides_runpath=yes
19790    ;;
19791  freebsd3.[01]* | freebsdelf3.[01]*)
19792    shlibpath_overrides_runpath=yes
19793    hardcode_into_libs=yes
19794    ;;
19795  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19796  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19797    shlibpath_overrides_runpath=no
19798    hardcode_into_libs=yes
19799    ;;
19800  *) # from 4.6 on, and DragonFly
19801    shlibpath_overrides_runpath=yes
19802    hardcode_into_libs=yes
19803    ;;
19804  esac
19805  ;;
19806
19807haiku*)
19808  version_type=linux # correct to gnu/linux during the next big refactor
19809  need_lib_prefix=no
19810  need_version=no
19811  dynamic_linker="$host_os runtime_loader"
19812  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19813  soname_spec='$libname$release$shared_ext$major'
19814  shlibpath_var=LIBRARY_PATH
19815  shlibpath_overrides_runpath=no
19816  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19817  hardcode_into_libs=yes
19818  ;;
19819
19820hpux9* | hpux10* | hpux11*)
19821  # Give a soname corresponding to the major version so that dld.sl refuses to
19822  # link against other versions.
19823  version_type=sunos
19824  need_lib_prefix=no
19825  need_version=no
19826  case $host_cpu in
19827  ia64*)
19828    shrext_cmds='.so'
19829    hardcode_into_libs=yes
19830    dynamic_linker="$host_os dld.so"
19831    shlibpath_var=LD_LIBRARY_PATH
19832    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19833    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19834    soname_spec='$libname$release$shared_ext$major'
19835    if test 32 = "$HPUX_IA64_MODE"; then
19836      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19837      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19838    else
19839      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19840      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19841    fi
19842    ;;
19843  hppa*64*)
19844    shrext_cmds='.sl'
19845    hardcode_into_libs=yes
19846    dynamic_linker="$host_os dld.sl"
19847    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19848    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19849    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19850    soname_spec='$libname$release$shared_ext$major'
19851    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19852    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19853    ;;
19854  *)
19855    shrext_cmds='.sl'
19856    dynamic_linker="$host_os dld.sl"
19857    shlibpath_var=SHLIB_PATH
19858    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19859    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19860    soname_spec='$libname$release$shared_ext$major'
19861    ;;
19862  esac
19863  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19864  postinstall_cmds='chmod 555 $lib'
19865  # or fails outright, so override atomically:
19866  install_override_mode=555
19867  ;;
19868
19869interix[3-9]*)
19870  version_type=linux # correct to gnu/linux during the next big refactor
19871  need_lib_prefix=no
19872  need_version=no
19873  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19874  soname_spec='$libname$release$shared_ext$major'
19875  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19876  shlibpath_var=LD_LIBRARY_PATH
19877  shlibpath_overrides_runpath=no
19878  hardcode_into_libs=yes
19879  ;;
19880
19881irix5* | irix6* | nonstopux*)
19882  case $host_os in
19883    nonstopux*) version_type=nonstopux ;;
19884    *)
19885	if test yes = "$lt_cv_prog_gnu_ld"; then
19886		version_type=linux # correct to gnu/linux during the next big refactor
19887	else
19888		version_type=irix
19889	fi ;;
19890  esac
19891  need_lib_prefix=no
19892  need_version=no
19893  soname_spec='$libname$release$shared_ext$major'
19894  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19895  case $host_os in
19896  irix5* | nonstopux*)
19897    libsuff= shlibsuff=
19898    ;;
19899  *)
19900    case $LD in # libtool.m4 will add one of these switches to LD
19901    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19902      libsuff= shlibsuff= libmagic=32-bit;;
19903    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19904      libsuff=32 shlibsuff=N32 libmagic=N32;;
19905    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19906      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19907    *) libsuff= shlibsuff= libmagic=never-match;;
19908    esac
19909    ;;
19910  esac
19911  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19912  shlibpath_overrides_runpath=no
19913  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19914  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19915  hardcode_into_libs=yes
19916  ;;
19917
19918# No shared lib support for Linux oldld, aout, or coff.
19919linux*oldld* | linux*aout* | linux*coff*)
19920  dynamic_linker=no
19921  ;;
19922
19923linux*android*)
19924  version_type=none # Android doesn't support versioned libraries.
19925  need_lib_prefix=no
19926  need_version=no
19927  library_names_spec='$libname$release$shared_ext'
19928  soname_spec='$libname$release$shared_ext'
19929  finish_cmds=
19930  shlibpath_var=LD_LIBRARY_PATH
19931  shlibpath_overrides_runpath=yes
19932
19933  # This implies no fast_install, which is unacceptable.
19934  # Some rework will be needed to allow for fast_install
19935  # before this can be enabled.
19936  hardcode_into_libs=yes
19937
19938  dynamic_linker='Android linker'
19939  # Don't embed -rpath directories since the linker doesn't support them.
19940  hardcode_libdir_flag_spec='-L$libdir'
19941  ;;
19942
19943# This must be glibc/ELF.
19944linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19945  version_type=linux # correct to gnu/linux during the next big refactor
19946  need_lib_prefix=no
19947  need_version=no
19948  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19949  soname_spec='$libname$release$shared_ext$major'
19950  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19951  shlibpath_var=LD_LIBRARY_PATH
19952  shlibpath_overrides_runpath=no
19953
19954  # Some binutils ld are patched to set DT_RUNPATH
19955  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19956  $as_echo_n "(cached) " >&6
19957else
19958  lt_cv_shlibpath_overrides_runpath=no
19959    save_LDFLAGS=$LDFLAGS
19960    save_libdir=$libdir
19961    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19962	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19963    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19964/* end confdefs.h.  */
19965
19966int
19967main ()
19968{
19969
19970  ;
19971  return 0;
19972}
19973_ACEOF
19974if ac_fn_c_try_link "$LINENO"; then :
19975  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19976  lt_cv_shlibpath_overrides_runpath=yes
19977fi
19978fi
19979rm -f core conftest.err conftest.$ac_objext \
19980    conftest$ac_exeext conftest.$ac_ext
19981    LDFLAGS=$save_LDFLAGS
19982    libdir=$save_libdir
19983
19984fi
19985
19986  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19987
19988  # This implies no fast_install, which is unacceptable.
19989  # Some rework will be needed to allow for fast_install
19990  # before this can be enabled.
19991  hardcode_into_libs=yes
19992
19993  # Ideally, we could use ldconfig to report *all* directores which are
19994  # searched for libraries, however this is still not possible.  Aside from not
19995  # being certain /sbin/ldconfig is available, command
19996  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19997  # even though it is searched at run-time.  Try to do the best guess by
19998  # appending ld.so.conf contents (and includes) to the search path.
19999  if test -f /etc/ld.so.conf; then
20000    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' ' '`
20001    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20002  fi
20003
20004  # We used to test for /lib/ld.so.1 and disable shared libraries on
20005  # powerpc, because MkLinux only supported shared libraries with the
20006  # GNU dynamic linker.  Since this was broken with cross compilers,
20007  # most powerpc-linux boxes support dynamic linking these days and
20008  # people can always --disable-shared, the test was removed, and we
20009  # assume the GNU/Linux dynamic linker is in use.
20010  dynamic_linker='GNU/Linux ld.so'
20011  ;;
20012
20013netbsdelf*-gnu)
20014  version_type=linux
20015  need_lib_prefix=no
20016  need_version=no
20017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20018  soname_spec='${libname}${release}${shared_ext}$major'
20019  shlibpath_var=LD_LIBRARY_PATH
20020  shlibpath_overrides_runpath=no
20021  hardcode_into_libs=yes
20022  dynamic_linker='NetBSD ld.elf_so'
20023  ;;
20024
20025netbsd*)
20026  version_type=sunos
20027  need_lib_prefix=no
20028  need_version=no
20029  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20030    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20031    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20032    dynamic_linker='NetBSD (a.out) ld.so'
20033  else
20034    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20035    soname_spec='$libname$release$shared_ext$major'
20036    dynamic_linker='NetBSD ld.elf_so'
20037  fi
20038  shlibpath_var=LD_LIBRARY_PATH
20039  shlibpath_overrides_runpath=yes
20040  hardcode_into_libs=yes
20041  ;;
20042
20043newsos6)
20044  version_type=linux # correct to gnu/linux during the next big refactor
20045  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20046  shlibpath_var=LD_LIBRARY_PATH
20047  shlibpath_overrides_runpath=yes
20048  ;;
20049
20050*nto* | *qnx*)
20051  version_type=qnx
20052  need_lib_prefix=no
20053  need_version=no
20054  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20055  soname_spec='$libname$release$shared_ext$major'
20056  shlibpath_var=LD_LIBRARY_PATH
20057  shlibpath_overrides_runpath=no
20058  hardcode_into_libs=yes
20059  dynamic_linker='ldqnx.so'
20060  ;;
20061
20062openbsd* | bitrig*)
20063  version_type=sunos
20064  sys_lib_dlsearch_path_spec=/usr/lib
20065  need_lib_prefix=no
20066  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20067    need_version=no
20068  else
20069    need_version=yes
20070  fi
20071  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20072  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20073  shlibpath_var=LD_LIBRARY_PATH
20074  shlibpath_overrides_runpath=yes
20075  ;;
20076
20077os2*)
20078  libname_spec='$name'
20079  version_type=windows
20080  shrext_cmds=.dll
20081  need_version=no
20082  need_lib_prefix=no
20083  # OS/2 can only load a DLL with a base name of 8 characters or less.
20084  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20085    v=$($ECHO $release$versuffix | tr -d .-);
20086    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20087    $ECHO $n$v`$shared_ext'
20088  library_names_spec='${libname}_dll.$libext'
20089  dynamic_linker='OS/2 ld.exe'
20090  shlibpath_var=BEGINLIBPATH
20091  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20092  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20093  postinstall_cmds='base_file=`basename \$file`~
20094    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20095    dldir=$destdir/`dirname \$dlpath`~
20096    test -d \$dldir || mkdir -p \$dldir~
20097    $install_prog $dir/$dlname \$dldir/$dlname~
20098    chmod a+x \$dldir/$dlname~
20099    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20100      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20101    fi'
20102  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20103    dlpath=$dir/\$dldll~
20104    $RM \$dlpath'
20105  ;;
20106
20107osf3* | osf4* | osf5*)
20108  version_type=osf
20109  need_lib_prefix=no
20110  need_version=no
20111  soname_spec='$libname$release$shared_ext$major'
20112  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20113  shlibpath_var=LD_LIBRARY_PATH
20114  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20115  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20116  ;;
20117
20118rdos*)
20119  dynamic_linker=no
20120  ;;
20121
20122solaris*)
20123  version_type=linux # correct to gnu/linux during the next big refactor
20124  need_lib_prefix=no
20125  need_version=no
20126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20127  soname_spec='$libname$release$shared_ext$major'
20128  shlibpath_var=LD_LIBRARY_PATH
20129  shlibpath_overrides_runpath=yes
20130  hardcode_into_libs=yes
20131  # ldd complains unless libraries are executable
20132  postinstall_cmds='chmod +x $lib'
20133  ;;
20134
20135sunos4*)
20136  version_type=sunos
20137  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20138  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20139  shlibpath_var=LD_LIBRARY_PATH
20140  shlibpath_overrides_runpath=yes
20141  if test yes = "$with_gnu_ld"; then
20142    need_lib_prefix=no
20143  fi
20144  need_version=yes
20145  ;;
20146
20147sysv4 | sysv4.3*)
20148  version_type=linux # correct to gnu/linux during the next big refactor
20149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20150  soname_spec='$libname$release$shared_ext$major'
20151  shlibpath_var=LD_LIBRARY_PATH
20152  case $host_vendor in
20153    sni)
20154      shlibpath_overrides_runpath=no
20155      need_lib_prefix=no
20156      runpath_var=LD_RUN_PATH
20157      ;;
20158    siemens)
20159      need_lib_prefix=no
20160      ;;
20161    motorola)
20162      need_lib_prefix=no
20163      need_version=no
20164      shlibpath_overrides_runpath=no
20165      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20166      ;;
20167  esac
20168  ;;
20169
20170sysv4*MP*)
20171  if test -d /usr/nec; then
20172    version_type=linux # correct to gnu/linux during the next big refactor
20173    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20174    soname_spec='$libname$shared_ext.$major'
20175    shlibpath_var=LD_LIBRARY_PATH
20176  fi
20177  ;;
20178
20179sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20180  version_type=sco
20181  need_lib_prefix=no
20182  need_version=no
20183  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20184  soname_spec='$libname$release$shared_ext$major'
20185  shlibpath_var=LD_LIBRARY_PATH
20186  shlibpath_overrides_runpath=yes
20187  hardcode_into_libs=yes
20188  if test yes = "$with_gnu_ld"; then
20189    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20190  else
20191    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20192    case $host_os in
20193      sco3.2v5*)
20194        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20195	;;
20196    esac
20197  fi
20198  sys_lib_dlsearch_path_spec='/usr/lib'
20199  ;;
20200
20201tpf*)
20202  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20203  version_type=linux # correct to gnu/linux during the next big refactor
20204  need_lib_prefix=no
20205  need_version=no
20206  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20207  shlibpath_var=LD_LIBRARY_PATH
20208  shlibpath_overrides_runpath=no
20209  hardcode_into_libs=yes
20210  ;;
20211
20212uts4*)
20213  version_type=linux # correct to gnu/linux during the next big refactor
20214  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20215  soname_spec='$libname$release$shared_ext$major'
20216  shlibpath_var=LD_LIBRARY_PATH
20217  ;;
20218
20219*)
20220  dynamic_linker=no
20221  ;;
20222esac
20223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20224$as_echo "$dynamic_linker" >&6; }
20225test no = "$dynamic_linker" && can_build_shared=no
20226
20227variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20228if test yes = "$GCC"; then
20229  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20230fi
20231
20232if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20233  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20234fi
20235
20236if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20237  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20238fi
20239
20240# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20241configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20242
20243# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20244func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20245
20246# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20247configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20346$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20347hardcode_action=
20348if test -n "$hardcode_libdir_flag_spec" ||
20349   test -n "$runpath_var" ||
20350   test yes = "$hardcode_automatic"; then
20351
20352  # We can hardcode non-existent directories.
20353  if test no != "$hardcode_direct" &&
20354     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20355     # have to relink, otherwise we might link with an installed library
20356     # when we should be linking with a yet-to-be-installed one
20357     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
20358     test no != "$hardcode_minus_L"; then
20359    # Linking always hardcodes the temporary library directory.
20360    hardcode_action=relink
20361  else
20362    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20363    hardcode_action=immediate
20364  fi
20365else
20366  # We cannot hardcode anything, or else we can only hardcode existing
20367  # directories.
20368  hardcode_action=unsupported
20369fi
20370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
20371$as_echo "$hardcode_action" >&6; }
20372
20373if test relink = "$hardcode_action" ||
20374   test yes = "$inherit_rpath"; then
20375  # Fast installation is not supported
20376  enable_fast_install=no
20377elif test yes = "$shlibpath_overrides_runpath" ||
20378     test no = "$enable_shared"; then
20379  # Fast installation is not necessary
20380  enable_fast_install=needless
20381fi
20382
20383
20384
20385
20386
20387
20388  if test yes != "$enable_dlopen"; then
20389  enable_dlopen=unknown
20390  enable_dlopen_self=unknown
20391  enable_dlopen_self_static=unknown
20392else
20393  lt_cv_dlopen=no
20394  lt_cv_dlopen_libs=
20395
20396  case $host_os in
20397  beos*)
20398    lt_cv_dlopen=load_add_on
20399    lt_cv_dlopen_libs=
20400    lt_cv_dlopen_self=yes
20401    ;;
20402
20403  mingw* | pw32* | cegcc*)
20404    lt_cv_dlopen=LoadLibrary
20405    lt_cv_dlopen_libs=
20406    ;;
20407
20408  cygwin*)
20409    lt_cv_dlopen=dlopen
20410    lt_cv_dlopen_libs=
20411    ;;
20412
20413  darwin*)
20414    # if libdl is installed we need to link against it
20415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20416$as_echo_n "checking for dlopen in -ldl... " >&6; }
20417if ${ac_cv_lib_dl_dlopen+:} false; then :
20418  $as_echo_n "(cached) " >&6
20419else
20420  ac_check_lib_save_LIBS=$LIBS
20421LIBS="-ldl  $LIBS"
20422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423/* end confdefs.h.  */
20424
20425/* Override any GCC internal prototype to avoid an error.
20426   Use char because int might match the return type of a GCC
20427   builtin and then its argument prototype would still apply.  */
20428#ifdef __cplusplus
20429extern "C"
20430#endif
20431char dlopen ();
20432int
20433main ()
20434{
20435return dlopen ();
20436  ;
20437  return 0;
20438}
20439_ACEOF
20440if ac_fn_c_try_link "$LINENO"; then :
20441  ac_cv_lib_dl_dlopen=yes
20442else
20443  ac_cv_lib_dl_dlopen=no
20444fi
20445rm -f core conftest.err conftest.$ac_objext \
20446    conftest$ac_exeext conftest.$ac_ext
20447LIBS=$ac_check_lib_save_LIBS
20448fi
20449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20450$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20451if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20452  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20453else
20454
20455    lt_cv_dlopen=dyld
20456    lt_cv_dlopen_libs=
20457    lt_cv_dlopen_self=yes
20458
20459fi
20460
20461    ;;
20462
20463  tpf*)
20464    # Don't try to run any link tests for TPF.  We know it's impossible
20465    # because TPF is a cross-compiler, and we know how we open DSOs.
20466    lt_cv_dlopen=dlopen
20467    lt_cv_dlopen_libs=
20468    lt_cv_dlopen_self=no
20469    ;;
20470
20471  *)
20472    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20473if test "x$ac_cv_func_shl_load" = xyes; then :
20474  lt_cv_dlopen=shl_load
20475else
20476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20477$as_echo_n "checking for shl_load in -ldld... " >&6; }
20478if ${ac_cv_lib_dld_shl_load+:} false; then :
20479  $as_echo_n "(cached) " >&6
20480else
20481  ac_check_lib_save_LIBS=$LIBS
20482LIBS="-ldld  $LIBS"
20483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484/* end confdefs.h.  */
20485
20486/* Override any GCC internal prototype to avoid an error.
20487   Use char because int might match the return type of a GCC
20488   builtin and then its argument prototype would still apply.  */
20489#ifdef __cplusplus
20490extern "C"
20491#endif
20492char shl_load ();
20493int
20494main ()
20495{
20496return shl_load ();
20497  ;
20498  return 0;
20499}
20500_ACEOF
20501if ac_fn_c_try_link "$LINENO"; then :
20502  ac_cv_lib_dld_shl_load=yes
20503else
20504  ac_cv_lib_dld_shl_load=no
20505fi
20506rm -f core conftest.err conftest.$ac_objext \
20507    conftest$ac_exeext conftest.$ac_ext
20508LIBS=$ac_check_lib_save_LIBS
20509fi
20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20511$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20512if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20513  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
20514else
20515  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20516if test "x$ac_cv_func_dlopen" = xyes; then :
20517  lt_cv_dlopen=dlopen
20518else
20519  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20520$as_echo_n "checking for dlopen in -ldl... " >&6; }
20521if ${ac_cv_lib_dl_dlopen+:} false; then :
20522  $as_echo_n "(cached) " >&6
20523else
20524  ac_check_lib_save_LIBS=$LIBS
20525LIBS="-ldl  $LIBS"
20526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20527/* end confdefs.h.  */
20528
20529/* Override any GCC internal prototype to avoid an error.
20530   Use char because int might match the return type of a GCC
20531   builtin and then its argument prototype would still apply.  */
20532#ifdef __cplusplus
20533extern "C"
20534#endif
20535char dlopen ();
20536int
20537main ()
20538{
20539return dlopen ();
20540  ;
20541  return 0;
20542}
20543_ACEOF
20544if ac_fn_c_try_link "$LINENO"; then :
20545  ac_cv_lib_dl_dlopen=yes
20546else
20547  ac_cv_lib_dl_dlopen=no
20548fi
20549rm -f core conftest.err conftest.$ac_objext \
20550    conftest$ac_exeext conftest.$ac_ext
20551LIBS=$ac_check_lib_save_LIBS
20552fi
20553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20554$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20555if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20556  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
20557else
20558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20559$as_echo_n "checking for dlopen in -lsvld... " >&6; }
20560if ${ac_cv_lib_svld_dlopen+:} false; then :
20561  $as_echo_n "(cached) " >&6
20562else
20563  ac_check_lib_save_LIBS=$LIBS
20564LIBS="-lsvld  $LIBS"
20565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20566/* end confdefs.h.  */
20567
20568/* Override any GCC internal prototype to avoid an error.
20569   Use char because int might match the return type of a GCC
20570   builtin and then its argument prototype would still apply.  */
20571#ifdef __cplusplus
20572extern "C"
20573#endif
20574char dlopen ();
20575int
20576main ()
20577{
20578return dlopen ();
20579  ;
20580  return 0;
20581}
20582_ACEOF
20583if ac_fn_c_try_link "$LINENO"; then :
20584  ac_cv_lib_svld_dlopen=yes
20585else
20586  ac_cv_lib_svld_dlopen=no
20587fi
20588rm -f core conftest.err conftest.$ac_objext \
20589    conftest$ac_exeext conftest.$ac_ext
20590LIBS=$ac_check_lib_save_LIBS
20591fi
20592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20593$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20594if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20595  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
20596else
20597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20598$as_echo_n "checking for dld_link in -ldld... " >&6; }
20599if ${ac_cv_lib_dld_dld_link+:} false; then :
20600  $as_echo_n "(cached) " >&6
20601else
20602  ac_check_lib_save_LIBS=$LIBS
20603LIBS="-ldld  $LIBS"
20604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605/* end confdefs.h.  */
20606
20607/* Override any GCC internal prototype to avoid an error.
20608   Use char because int might match the return type of a GCC
20609   builtin and then its argument prototype would still apply.  */
20610#ifdef __cplusplus
20611extern "C"
20612#endif
20613char dld_link ();
20614int
20615main ()
20616{
20617return dld_link ();
20618  ;
20619  return 0;
20620}
20621_ACEOF
20622if ac_fn_c_try_link "$LINENO"; then :
20623  ac_cv_lib_dld_dld_link=yes
20624else
20625  ac_cv_lib_dld_dld_link=no
20626fi
20627rm -f core conftest.err conftest.$ac_objext \
20628    conftest$ac_exeext conftest.$ac_ext
20629LIBS=$ac_check_lib_save_LIBS
20630fi
20631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20632$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20633if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20634  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
20635fi
20636
20637
20638fi
20639
20640
20641fi
20642
20643
20644fi
20645
20646
20647fi
20648
20649
20650fi
20651
20652    ;;
20653  esac
20654
20655  if test no = "$lt_cv_dlopen"; then
20656    enable_dlopen=no
20657  else
20658    enable_dlopen=yes
20659  fi
20660
20661  case $lt_cv_dlopen in
20662  dlopen)
20663    save_CPPFLAGS=$CPPFLAGS
20664    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20665
20666    save_LDFLAGS=$LDFLAGS
20667    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20668
20669    save_LIBS=$LIBS
20670    LIBS="$lt_cv_dlopen_libs $LIBS"
20671
20672    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
20673$as_echo_n "checking whether a program can dlopen itself... " >&6; }
20674if ${lt_cv_dlopen_self+:} false; then :
20675  $as_echo_n "(cached) " >&6
20676else
20677  	  if test yes = "$cross_compiling"; then :
20678  lt_cv_dlopen_self=cross
20679else
20680  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20681  lt_status=$lt_dlunknown
20682  cat > conftest.$ac_ext <<_LT_EOF
20683#line $LINENO "configure"
20684#include "confdefs.h"
20685
20686#if HAVE_DLFCN_H
20687#include <dlfcn.h>
20688#endif
20689
20690#include <stdio.h>
20691
20692#ifdef RTLD_GLOBAL
20693#  define LT_DLGLOBAL		RTLD_GLOBAL
20694#else
20695#  ifdef DL_GLOBAL
20696#    define LT_DLGLOBAL		DL_GLOBAL
20697#  else
20698#    define LT_DLGLOBAL		0
20699#  endif
20700#endif
20701
20702/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20703   find out it does not work in some platform. */
20704#ifndef LT_DLLAZY_OR_NOW
20705#  ifdef RTLD_LAZY
20706#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20707#  else
20708#    ifdef DL_LAZY
20709#      define LT_DLLAZY_OR_NOW		DL_LAZY
20710#    else
20711#      ifdef RTLD_NOW
20712#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20713#      else
20714#        ifdef DL_NOW
20715#          define LT_DLLAZY_OR_NOW	DL_NOW
20716#        else
20717#          define LT_DLLAZY_OR_NOW	0
20718#        endif
20719#      endif
20720#    endif
20721#  endif
20722#endif
20723
20724/* When -fvisibility=hidden is used, assume the code has been annotated
20725   correspondingly for the symbols needed.  */
20726#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20727int fnord () __attribute__((visibility("default")));
20728#endif
20729
20730int fnord () { return 42; }
20731int main ()
20732{
20733  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20734  int status = $lt_dlunknown;
20735
20736  if (self)
20737    {
20738      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20739      else
20740        {
20741	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20742          else puts (dlerror ());
20743	}
20744      /* dlclose (self); */
20745    }
20746  else
20747    puts (dlerror ());
20748
20749  return status;
20750}
20751_LT_EOF
20752  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20753  (eval $ac_link) 2>&5
20754  ac_status=$?
20755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20756  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20757    (./conftest; exit; ) >&5 2>/dev/null
20758    lt_status=$?
20759    case x$lt_status in
20760      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20761      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20762      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20763    esac
20764  else :
20765    # compilation failed
20766    lt_cv_dlopen_self=no
20767  fi
20768fi
20769rm -fr conftest*
20770
20771
20772fi
20773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20774$as_echo "$lt_cv_dlopen_self" >&6; }
20775
20776    if test yes = "$lt_cv_dlopen_self"; then
20777      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20778      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20779$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20780if ${lt_cv_dlopen_self_static+:} false; then :
20781  $as_echo_n "(cached) " >&6
20782else
20783  	  if test yes = "$cross_compiling"; then :
20784  lt_cv_dlopen_self_static=cross
20785else
20786  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20787  lt_status=$lt_dlunknown
20788  cat > conftest.$ac_ext <<_LT_EOF
20789#line $LINENO "configure"
20790#include "confdefs.h"
20791
20792#if HAVE_DLFCN_H
20793#include <dlfcn.h>
20794#endif
20795
20796#include <stdio.h>
20797
20798#ifdef RTLD_GLOBAL
20799#  define LT_DLGLOBAL		RTLD_GLOBAL
20800#else
20801#  ifdef DL_GLOBAL
20802#    define LT_DLGLOBAL		DL_GLOBAL
20803#  else
20804#    define LT_DLGLOBAL		0
20805#  endif
20806#endif
20807
20808/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20809   find out it does not work in some platform. */
20810#ifndef LT_DLLAZY_OR_NOW
20811#  ifdef RTLD_LAZY
20812#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20813#  else
20814#    ifdef DL_LAZY
20815#      define LT_DLLAZY_OR_NOW		DL_LAZY
20816#    else
20817#      ifdef RTLD_NOW
20818#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20819#      else
20820#        ifdef DL_NOW
20821#          define LT_DLLAZY_OR_NOW	DL_NOW
20822#        else
20823#          define LT_DLLAZY_OR_NOW	0
20824#        endif
20825#      endif
20826#    endif
20827#  endif
20828#endif
20829
20830/* When -fvisibility=hidden is used, assume the code has been annotated
20831   correspondingly for the symbols needed.  */
20832#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20833int fnord () __attribute__((visibility("default")));
20834#endif
20835
20836int fnord () { return 42; }
20837int main ()
20838{
20839  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20840  int status = $lt_dlunknown;
20841
20842  if (self)
20843    {
20844      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20845      else
20846        {
20847	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20848          else puts (dlerror ());
20849	}
20850      /* dlclose (self); */
20851    }
20852  else
20853    puts (dlerror ());
20854
20855  return status;
20856}
20857_LT_EOF
20858  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20859  (eval $ac_link) 2>&5
20860  ac_status=$?
20861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20862  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20863    (./conftest; exit; ) >&5 2>/dev/null
20864    lt_status=$?
20865    case x$lt_status in
20866      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20867      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20868      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20869    esac
20870  else :
20871    # compilation failed
20872    lt_cv_dlopen_self_static=no
20873  fi
20874fi
20875rm -fr conftest*
20876
20877
20878fi
20879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20880$as_echo "$lt_cv_dlopen_self_static" >&6; }
20881    fi
20882
20883    CPPFLAGS=$save_CPPFLAGS
20884    LDFLAGS=$save_LDFLAGS
20885    LIBS=$save_LIBS
20886    ;;
20887  esac
20888
20889  case $lt_cv_dlopen_self in
20890  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20891  *) enable_dlopen_self=unknown ;;
20892  esac
20893
20894  case $lt_cv_dlopen_self_static in
20895  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20896  *) enable_dlopen_self_static=unknown ;;
20897  esac
20898fi
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916striplib=
20917old_striplib=
20918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20919$as_echo_n "checking whether stripping libraries is possible... " >&6; }
20920if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20921  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20922  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20924$as_echo "yes" >&6; }
20925else
20926# FIXME - insert some real tests, host_os isn't really good enough
20927  case $host_os in
20928  darwin*)
20929    if test -n "$STRIP"; then
20930      striplib="$STRIP -x"
20931      old_striplib="$STRIP -S"
20932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20933$as_echo "yes" >&6; }
20934    else
20935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20936$as_echo "no" >&6; }
20937    fi
20938    ;;
20939  *)
20940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941$as_echo "no" >&6; }
20942    ;;
20943  esac
20944fi
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957  # Report what library types will actually be built
20958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20959$as_echo_n "checking if libtool supports shared libraries... " >&6; }
20960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20961$as_echo "$can_build_shared" >&6; }
20962
20963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20964$as_echo_n "checking whether to build shared libraries... " >&6; }
20965  test no = "$can_build_shared" && enable_shared=no
20966
20967  # On AIX, shared libraries and static libraries use the same namespace, and
20968  # are all built from PIC.
20969  case $host_os in
20970  aix3*)
20971    test yes = "$enable_shared" && enable_static=no
20972    if test -n "$RANLIB"; then
20973      archive_cmds="$archive_cmds~\$RANLIB \$lib"
20974      postinstall_cmds='$RANLIB $lib'
20975    fi
20976    ;;
20977
20978  aix[4-9]*)
20979    if test ia64 != "$host_cpu"; then
20980      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
20981      yes,aix,yes) ;;			# shared object as lib.so file only
20982      yes,svr4,*) ;;			# shared object as lib.so archive member only
20983      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
20984      esac
20985    fi
20986    ;;
20987  esac
20988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20989$as_echo "$enable_shared" >&6; }
20990
20991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20992$as_echo_n "checking whether to build static libraries... " >&6; }
20993  # Make sure either enable_shared or enable_static is yes.
20994  test yes = "$enable_shared" || enable_static=yes
20995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20996$as_echo "$enable_static" >&6; }
20997
20998
20999
21000
21001fi
21002ac_ext=c
21003ac_cpp='$CPP $CPPFLAGS'
21004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21006ac_compiler_gnu=$ac_cv_c_compiler_gnu
21007
21008CC=$lt_save_CC
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024        ac_config_commands="$ac_config_commands libtool"
21025
21026
21027
21028
21029# Only expand once:
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21040	if test -n "$ac_tool_prefix"; then
21041  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21042set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21044$as_echo_n "checking for $ac_word... " >&6; }
21045if ${ac_cv_path_PKG_CONFIG+:} false; then :
21046  $as_echo_n "(cached) " >&6
21047else
21048  case $PKG_CONFIG in
21049  [\\/]* | ?:[\\/]*)
21050  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21051  ;;
21052  *)
21053  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21054for as_dir in $PATH
21055do
21056  IFS=$as_save_IFS
21057  test -z "$as_dir" && as_dir=.
21058    for ac_exec_ext in '' $ac_executable_extensions; do
21059  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21060    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21062    break 2
21063  fi
21064done
21065  done
21066IFS=$as_save_IFS
21067
21068  ;;
21069esac
21070fi
21071PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21072if test -n "$PKG_CONFIG"; then
21073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21074$as_echo "$PKG_CONFIG" >&6; }
21075else
21076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21077$as_echo "no" >&6; }
21078fi
21079
21080
21081fi
21082if test -z "$ac_cv_path_PKG_CONFIG"; then
21083  ac_pt_PKG_CONFIG=$PKG_CONFIG
21084  # Extract the first word of "pkg-config", so it can be a program name with args.
21085set dummy pkg-config; ac_word=$2
21086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21087$as_echo_n "checking for $ac_word... " >&6; }
21088if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
21089  $as_echo_n "(cached) " >&6
21090else
21091  case $ac_pt_PKG_CONFIG in
21092  [\\/]* | ?:[\\/]*)
21093  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21094  ;;
21095  *)
21096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21097for as_dir in $PATH
21098do
21099  IFS=$as_save_IFS
21100  test -z "$as_dir" && as_dir=.
21101    for ac_exec_ext in '' $ac_executable_extensions; do
21102  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21103    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21105    break 2
21106  fi
21107done
21108  done
21109IFS=$as_save_IFS
21110
21111  ;;
21112esac
21113fi
21114ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21115if test -n "$ac_pt_PKG_CONFIG"; then
21116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21117$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21118else
21119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21120$as_echo "no" >&6; }
21121fi
21122
21123  if test "x$ac_pt_PKG_CONFIG" = x; then
21124    PKG_CONFIG=""
21125  else
21126    case $cross_compiling:$ac_tool_warned in
21127yes:)
21128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21130ac_tool_warned=yes ;;
21131esac
21132    PKG_CONFIG=$ac_pt_PKG_CONFIG
21133  fi
21134else
21135  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21136fi
21137
21138fi
21139if test -n "$PKG_CONFIG"; then
21140	_pkg_min_version=0.9.0
21141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21142$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21143	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21144		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21145$as_echo "yes" >&6; }
21146	else
21147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148$as_echo "no" >&6; }
21149		PKG_CONFIG=""
21150	fi
21151fi
21152for ac_prog in flex lex
21153do
21154  # Extract the first word of "$ac_prog", so it can be a program name with args.
21155set dummy $ac_prog; ac_word=$2
21156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21157$as_echo_n "checking for $ac_word... " >&6; }
21158if ${ac_cv_prog_LEX+:} false; then :
21159  $as_echo_n "(cached) " >&6
21160else
21161  if test -n "$LEX"; then
21162  ac_cv_prog_LEX="$LEX" # Let the user override the test.
21163else
21164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21165for as_dir in $PATH
21166do
21167  IFS=$as_save_IFS
21168  test -z "$as_dir" && as_dir=.
21169    for ac_exec_ext in '' $ac_executable_extensions; do
21170  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21171    ac_cv_prog_LEX="$ac_prog"
21172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21173    break 2
21174  fi
21175done
21176  done
21177IFS=$as_save_IFS
21178
21179fi
21180fi
21181LEX=$ac_cv_prog_LEX
21182if test -n "$LEX"; then
21183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
21184$as_echo "$LEX" >&6; }
21185else
21186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21187$as_echo "no" >&6; }
21188fi
21189
21190
21191  test -n "$LEX" && break
21192done
21193test -n "$LEX" || LEX=":"
21194
21195if test "x$LEX" != "x:"; then
21196  cat >conftest.l <<_ACEOF
21197%%
21198a { ECHO; }
21199b { REJECT; }
21200c { yymore (); }
21201d { yyless (1); }
21202e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
21203    yyless ((input () != 0)); }
21204f { unput (yytext[0]); }
21205. { BEGIN INITIAL; }
21206%%
21207#ifdef YYTEXT_POINTER
21208extern char *yytext;
21209#endif
21210int
21211main (void)
21212{
21213  return ! yylex () + ! yywrap ();
21214}
21215_ACEOF
21216{ { ac_try="$LEX conftest.l"
21217case "(($ac_try" in
21218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219  *) ac_try_echo=$ac_try;;
21220esac
21221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21222$as_echo "$ac_try_echo"; } >&5
21223  (eval "$LEX conftest.l") 2>&5
21224  ac_status=$?
21225  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21226  test $ac_status = 0; }
21227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
21228$as_echo_n "checking lex output file root... " >&6; }
21229if ${ac_cv_prog_lex_root+:} false; then :
21230  $as_echo_n "(cached) " >&6
21231else
21232
21233if test -f lex.yy.c; then
21234  ac_cv_prog_lex_root=lex.yy
21235elif test -f lexyy.c; then
21236  ac_cv_prog_lex_root=lexyy
21237else
21238  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
21239fi
21240fi
21241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
21242$as_echo "$ac_cv_prog_lex_root" >&6; }
21243LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
21244
21245if test -z "${LEXLIB+set}"; then
21246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
21247$as_echo_n "checking lex library... " >&6; }
21248if ${ac_cv_lib_lex+:} false; then :
21249  $as_echo_n "(cached) " >&6
21250else
21251
21252    ac_save_LIBS=$LIBS
21253    ac_cv_lib_lex='none needed'
21254    for ac_lib in '' -lfl -ll; do
21255      LIBS="$ac_lib $ac_save_LIBS"
21256      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257/* end confdefs.h.  */
21258`cat $LEX_OUTPUT_ROOT.c`
21259_ACEOF
21260if ac_fn_c_try_link "$LINENO"; then :
21261  ac_cv_lib_lex=$ac_lib
21262fi
21263rm -f core conftest.err conftest.$ac_objext \
21264    conftest$ac_exeext conftest.$ac_ext
21265      test "$ac_cv_lib_lex" != 'none needed' && break
21266    done
21267    LIBS=$ac_save_LIBS
21268
21269fi
21270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
21271$as_echo "$ac_cv_lib_lex" >&6; }
21272  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
21273fi
21274
21275
21276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
21277$as_echo_n "checking whether yytext is a pointer... " >&6; }
21278if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
21279  $as_echo_n "(cached) " >&6
21280else
21281  # POSIX says lex can declare yytext either as a pointer or an array; the
21282# default is implementation-dependent.  Figure out which it is, since
21283# not all implementations provide the %pointer and %array declarations.
21284ac_cv_prog_lex_yytext_pointer=no
21285ac_save_LIBS=$LIBS
21286LIBS="$LEXLIB $ac_save_LIBS"
21287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288/* end confdefs.h.  */
21289
21290  #define YYTEXT_POINTER 1
21291`cat $LEX_OUTPUT_ROOT.c`
21292_ACEOF
21293if ac_fn_c_try_link "$LINENO"; then :
21294  ac_cv_prog_lex_yytext_pointer=yes
21295fi
21296rm -f core conftest.err conftest.$ac_objext \
21297    conftest$ac_exeext conftest.$ac_ext
21298LIBS=$ac_save_LIBS
21299
21300fi
21301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
21302$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
21303if test $ac_cv_prog_lex_yytext_pointer = yes; then
21304
21305$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
21306
21307fi
21308rm -f conftest.l $LEX_OUTPUT_ROOT.c
21309
21310fi
21311for ac_prog in 'bison -y' byacc
21312do
21313  # Extract the first word of "$ac_prog", so it can be a program name with args.
21314set dummy $ac_prog; ac_word=$2
21315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21316$as_echo_n "checking for $ac_word... " >&6; }
21317if ${ac_cv_prog_YACC+:} false; then :
21318  $as_echo_n "(cached) " >&6
21319else
21320  if test -n "$YACC"; then
21321  ac_cv_prog_YACC="$YACC" # Let the user override the test.
21322else
21323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324for as_dir in $PATH
21325do
21326  IFS=$as_save_IFS
21327  test -z "$as_dir" && as_dir=.
21328    for ac_exec_ext in '' $ac_executable_extensions; do
21329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21330    ac_cv_prog_YACC="$ac_prog"
21331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21332    break 2
21333  fi
21334done
21335  done
21336IFS=$as_save_IFS
21337
21338fi
21339fi
21340YACC=$ac_cv_prog_YACC
21341if test -n "$YACC"; then
21342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
21343$as_echo "$YACC" >&6; }
21344else
21345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21346$as_echo "no" >&6; }
21347fi
21348
21349
21350  test -n "$YACC" && break
21351done
21352test -n "$YACC" || YACC="yacc"
21353
21354# Check whether --enable-largefile was given.
21355if test "${enable_largefile+set}" = set; then :
21356  enableval=$enable_largefile;
21357fi
21358
21359if test "$enable_largefile" != no; then
21360
21361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21362$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
21363if ${ac_cv_sys_largefile_CC+:} false; then :
21364  $as_echo_n "(cached) " >&6
21365else
21366  ac_cv_sys_largefile_CC=no
21367     if test "$GCC" != yes; then
21368       ac_save_CC=$CC
21369       while :; do
21370	 # IRIX 6.2 and later do not support large files by default,
21371	 # so use the C compiler's -n32 option if that helps.
21372	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373/* end confdefs.h.  */
21374#include <sys/types.h>
21375 /* Check that off_t can represent 2**63 - 1 correctly.
21376    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21377    since some C++ compilers masquerading as C compilers
21378    incorrectly reject 9223372036854775807.  */
21379#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21380  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21381		       && LARGE_OFF_T % 2147483647 == 1)
21382		      ? 1 : -1];
21383int
21384main ()
21385{
21386
21387  ;
21388  return 0;
21389}
21390_ACEOF
21391	 if ac_fn_c_try_compile "$LINENO"; then :
21392  break
21393fi
21394rm -f core conftest.err conftest.$ac_objext
21395	 CC="$CC -n32"
21396	 if ac_fn_c_try_compile "$LINENO"; then :
21397  ac_cv_sys_largefile_CC=' -n32'; break
21398fi
21399rm -f core conftest.err conftest.$ac_objext
21400	 break
21401       done
21402       CC=$ac_save_CC
21403       rm -f conftest.$ac_ext
21404    fi
21405fi
21406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21407$as_echo "$ac_cv_sys_largefile_CC" >&6; }
21408  if test "$ac_cv_sys_largefile_CC" != no; then
21409    CC=$CC$ac_cv_sys_largefile_CC
21410  fi
21411
21412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21413$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
21414if ${ac_cv_sys_file_offset_bits+:} false; then :
21415  $as_echo_n "(cached) " >&6
21416else
21417  while :; do
21418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419/* end confdefs.h.  */
21420#include <sys/types.h>
21421 /* Check that off_t can represent 2**63 - 1 correctly.
21422    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21423    since some C++ compilers masquerading as C compilers
21424    incorrectly reject 9223372036854775807.  */
21425#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21426  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21427		       && LARGE_OFF_T % 2147483647 == 1)
21428		      ? 1 : -1];
21429int
21430main ()
21431{
21432
21433  ;
21434  return 0;
21435}
21436_ACEOF
21437if ac_fn_c_try_compile "$LINENO"; then :
21438  ac_cv_sys_file_offset_bits=no; break
21439fi
21440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442/* end confdefs.h.  */
21443#define _FILE_OFFSET_BITS 64
21444#include <sys/types.h>
21445 /* Check that off_t can represent 2**63 - 1 correctly.
21446    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21447    since some C++ compilers masquerading as C compilers
21448    incorrectly reject 9223372036854775807.  */
21449#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21450  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21451		       && LARGE_OFF_T % 2147483647 == 1)
21452		      ? 1 : -1];
21453int
21454main ()
21455{
21456
21457  ;
21458  return 0;
21459}
21460_ACEOF
21461if ac_fn_c_try_compile "$LINENO"; then :
21462  ac_cv_sys_file_offset_bits=64; break
21463fi
21464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465  ac_cv_sys_file_offset_bits=unknown
21466  break
21467done
21468fi
21469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
21470$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
21471case $ac_cv_sys_file_offset_bits in #(
21472  no | unknown) ;;
21473  *)
21474cat >>confdefs.h <<_ACEOF
21475#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21476_ACEOF
21477;;
21478esac
21479rm -rf conftest*
21480  if test $ac_cv_sys_file_offset_bits = unknown; then
21481    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
21482$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
21483if ${ac_cv_sys_large_files+:} false; then :
21484  $as_echo_n "(cached) " >&6
21485else
21486  while :; do
21487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488/* end confdefs.h.  */
21489#include <sys/types.h>
21490 /* Check that off_t can represent 2**63 - 1 correctly.
21491    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21492    since some C++ compilers masquerading as C compilers
21493    incorrectly reject 9223372036854775807.  */
21494#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21495  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21496		       && LARGE_OFF_T % 2147483647 == 1)
21497		      ? 1 : -1];
21498int
21499main ()
21500{
21501
21502  ;
21503  return 0;
21504}
21505_ACEOF
21506if ac_fn_c_try_compile "$LINENO"; then :
21507  ac_cv_sys_large_files=no; break
21508fi
21509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21511/* end confdefs.h.  */
21512#define _LARGE_FILES 1
21513#include <sys/types.h>
21514 /* Check that off_t can represent 2**63 - 1 correctly.
21515    We can't simply define LARGE_OFF_T to be 9223372036854775807,
21516    since some C++ compilers masquerading as C compilers
21517    incorrectly reject 9223372036854775807.  */
21518#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
21519  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21520		       && LARGE_OFF_T % 2147483647 == 1)
21521		      ? 1 : -1];
21522int
21523main ()
21524{
21525
21526  ;
21527  return 0;
21528}
21529_ACEOF
21530if ac_fn_c_try_compile "$LINENO"; then :
21531  ac_cv_sys_large_files=1; break
21532fi
21533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21534  ac_cv_sys_large_files=unknown
21535  break
21536done
21537fi
21538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
21539$as_echo "$ac_cv_sys_large_files" >&6; }
21540case $ac_cv_sys_large_files in #(
21541  no | unknown) ;;
21542  *)
21543cat >>confdefs.h <<_ACEOF
21544#define _LARGE_FILES $ac_cv_sys_large_files
21545_ACEOF
21546;;
21547esac
21548rm -rf conftest*
21549  fi
21550
21551
21552fi
21553
21554
21555
21556for ac_prog in cpp
21557do
21558  # Extract the first word of "$ac_prog", so it can be a program name with args.
21559set dummy $ac_prog; ac_word=$2
21560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21561$as_echo_n "checking for $ac_word... " >&6; }
21562if ${ac_cv_path_RAWCPP+:} false; then :
21563  $as_echo_n "(cached) " >&6
21564else
21565  case $RAWCPP in
21566  [\\/]* | ?:[\\/]*)
21567  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
21568  ;;
21569  *)
21570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21571as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
21572for as_dir in $as_dummy
21573do
21574  IFS=$as_save_IFS
21575  test -z "$as_dir" && as_dir=.
21576    for ac_exec_ext in '' $ac_executable_extensions; do
21577  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21578    ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
21579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21580    break 2
21581  fi
21582done
21583  done
21584IFS=$as_save_IFS
21585
21586  ;;
21587esac
21588fi
21589RAWCPP=$ac_cv_path_RAWCPP
21590if test -n "$RAWCPP"; then
21591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
21592$as_echo "$RAWCPP" >&6; }
21593else
21594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21595$as_echo "no" >&6; }
21596fi
21597
21598
21599  test -n "$RAWCPP" && break
21600done
21601test -n "$RAWCPP" || RAWCPP="${CPP}"
21602
21603
21604# Check for flag to avoid builtin definitions - assumes unix is predefined,
21605# which is not the best choice for supporting other OS'es, but covers most
21606# of the ones we need for now.
21607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
21608$as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
21609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610/* end confdefs.h.  */
21611Does cpp redefine unix ?
21612_ACEOF
21613if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21614	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21615$as_echo "no" >&6; }
21616else
21617	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21618		RAWCPPFLAGS=-undef
21619		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21620$as_echo "yes" >&6; }
21621	# under Cygwin unix is still defined even with -undef
21622	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
21623		RAWCPPFLAGS="-undef -ansi"
21624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
21625$as_echo "yes, with -ansi" >&6; }
21626	else
21627		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
21628	fi
21629fi
21630rm -f conftest.$ac_ext
21631
21632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
21633$as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
21634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635/* end confdefs.h.  */
21636Does cpp preserve   "whitespace"?
21637_ACEOF
21638if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21639	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21640$as_echo "no" >&6; }
21641else
21642	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   \"'` -eq 1 ; then
21643		TRADITIONALCPPFLAGS="-traditional"
21644		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
21645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21646$as_echo "yes" >&6; }
21647	else
21648		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
21649	fi
21650fi
21651rm -f conftest.$ac_ext
21652
21653
21654
21655
21656# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
21657# easier overrides at build time.
21658XSERVER_CFLAGS='$(CWARNFLAGS)'
21659
21660if  test "x$GCC" = xyes ; then
21661    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
21662fi
21663
21664
21665# Check whether --with-dtrace was given.
21666if test "${with_dtrace+set}" = set; then :
21667  withval=$with_dtrace; WDTRACE=$withval
21668else
21669  WDTRACE=auto
21670fi
21671
21672if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
21673	# Extract the first word of "dtrace", so it can be a program name with args.
21674set dummy dtrace; ac_word=$2
21675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21676$as_echo_n "checking for $ac_word... " >&6; }
21677if ${ac_cv_path_DTRACE+:} false; then :
21678  $as_echo_n "(cached) " >&6
21679else
21680  case $DTRACE in
21681  [\\/]* | ?:[\\/]*)
21682  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
21683  ;;
21684  *)
21685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21686as_dummy="$PATH:/usr/sbin"
21687for as_dir in $as_dummy
21688do
21689  IFS=$as_save_IFS
21690  test -z "$as_dir" && as_dir=.
21691    for ac_exec_ext in '' $ac_executable_extensions; do
21692  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21693    ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext"
21694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21695    break 2
21696  fi
21697done
21698  done
21699IFS=$as_save_IFS
21700
21701  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
21702  ;;
21703esac
21704fi
21705DTRACE=$ac_cv_path_DTRACE
21706if test -n "$DTRACE"; then
21707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
21708$as_echo "$DTRACE" >&6; }
21709else
21710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21711$as_echo "no" >&6; }
21712fi
21713
21714
21715	if test "x$DTRACE" = "xnot_found" ; then
21716		if test "x$WDTRACE" = "xyes" ; then
21717			{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21719as_fn_error $? "dtrace requested but not found
21720See \`config.log' for more details" "$LINENO" 5; }
21721		fi
21722		WDTRACE="no"
21723	else
21724		ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
21725if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
21726  HAS_SDT_H="yes"
21727else
21728  HAS_SDT_H="no"
21729fi
21730
21731
21732		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
21733			WDTRACE="no"
21734		fi
21735	fi
21736fi
21737if test "x$WDTRACE" != "xno" ; then
21738
21739$as_echo "#define XSERVER_DTRACE 1" >>confdefs.h
21740
21741
21742# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
21743# object files, and require linking with those as relocatable objects, not .a
21744# archives. MacOS X handles all this in the normal compiler toolchain, and on
21745# some releases (like Tiger), will error out on dtrace -G.  For now, other
21746# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
21747# ports appear to, based on my web searches, but have not yet been tested).
21748	case $host_os in
21749		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
21750		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
21751	esac
21752fi
21753 if test "x$WDTRACE" != "xno"; then
21754  XSERVER_DTRACE_TRUE=
21755  XSERVER_DTRACE_FALSE='#'
21756else
21757  XSERVER_DTRACE_TRUE='#'
21758  XSERVER_DTRACE_FALSE=
21759fi
21760
21761 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
21762  SPECIAL_DTRACE_OBJECTS_TRUE=
21763  SPECIAL_DTRACE_OBJECTS_FALSE='#'
21764else
21765  SPECIAL_DTRACE_OBJECTS_TRUE='#'
21766  SPECIAL_DTRACE_OBJECTS_FALSE=
21767fi
21768
21769
21770ac_header_dirent=no
21771for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21772  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21774$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21775if eval \${$as_ac_Header+:} false; then :
21776  $as_echo_n "(cached) " >&6
21777else
21778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779/* end confdefs.h.  */
21780#include <sys/types.h>
21781#include <$ac_hdr>
21782
21783int
21784main ()
21785{
21786if ((DIR *) 0)
21787return 0;
21788  ;
21789  return 0;
21790}
21791_ACEOF
21792if ac_fn_c_try_compile "$LINENO"; then :
21793  eval "$as_ac_Header=yes"
21794else
21795  eval "$as_ac_Header=no"
21796fi
21797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21798fi
21799eval ac_res=\$$as_ac_Header
21800	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21801$as_echo "$ac_res" >&6; }
21802if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21803  cat >>confdefs.h <<_ACEOF
21804#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21805_ACEOF
21806
21807ac_header_dirent=$ac_hdr; break
21808fi
21809
21810done
21811# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21812if test $ac_header_dirent = dirent.h; then
21813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21814$as_echo_n "checking for library containing opendir... " >&6; }
21815if ${ac_cv_search_opendir+:} false; then :
21816  $as_echo_n "(cached) " >&6
21817else
21818  ac_func_search_save_LIBS=$LIBS
21819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820/* end confdefs.h.  */
21821
21822/* Override any GCC internal prototype to avoid an error.
21823   Use char because int might match the return type of a GCC
21824   builtin and then its argument prototype would still apply.  */
21825#ifdef __cplusplus
21826extern "C"
21827#endif
21828char opendir ();
21829int
21830main ()
21831{
21832return opendir ();
21833  ;
21834  return 0;
21835}
21836_ACEOF
21837for ac_lib in '' dir; do
21838  if test -z "$ac_lib"; then
21839    ac_res="none required"
21840  else
21841    ac_res=-l$ac_lib
21842    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21843  fi
21844  if ac_fn_c_try_link "$LINENO"; then :
21845  ac_cv_search_opendir=$ac_res
21846fi
21847rm -f core conftest.err conftest.$ac_objext \
21848    conftest$ac_exeext
21849  if ${ac_cv_search_opendir+:} false; then :
21850  break
21851fi
21852done
21853if ${ac_cv_search_opendir+:} false; then :
21854
21855else
21856  ac_cv_search_opendir=no
21857fi
21858rm conftest.$ac_ext
21859LIBS=$ac_func_search_save_LIBS
21860fi
21861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21862$as_echo "$ac_cv_search_opendir" >&6; }
21863ac_res=$ac_cv_search_opendir
21864if test "$ac_res" != no; then :
21865  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21866
21867fi
21868
21869else
21870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21871$as_echo_n "checking for library containing opendir... " >&6; }
21872if ${ac_cv_search_opendir+:} false; then :
21873  $as_echo_n "(cached) " >&6
21874else
21875  ac_func_search_save_LIBS=$LIBS
21876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877/* end confdefs.h.  */
21878
21879/* Override any GCC internal prototype to avoid an error.
21880   Use char because int might match the return type of a GCC
21881   builtin and then its argument prototype would still apply.  */
21882#ifdef __cplusplus
21883extern "C"
21884#endif
21885char opendir ();
21886int
21887main ()
21888{
21889return opendir ();
21890  ;
21891  return 0;
21892}
21893_ACEOF
21894for ac_lib in '' x; do
21895  if test -z "$ac_lib"; then
21896    ac_res="none required"
21897  else
21898    ac_res=-l$ac_lib
21899    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21900  fi
21901  if ac_fn_c_try_link "$LINENO"; then :
21902  ac_cv_search_opendir=$ac_res
21903fi
21904rm -f core conftest.err conftest.$ac_objext \
21905    conftest$ac_exeext
21906  if ${ac_cv_search_opendir+:} false; then :
21907  break
21908fi
21909done
21910if ${ac_cv_search_opendir+:} false; then :
21911
21912else
21913  ac_cv_search_opendir=no
21914fi
21915rm conftest.$ac_ext
21916LIBS=$ac_func_search_save_LIBS
21917fi
21918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21919$as_echo "$ac_cv_search_opendir" >&6; }
21920ac_res=$ac_cv_search_opendir
21921if test "$ac_res" != no; then :
21922  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21923
21924fi
21925
21926fi
21927
21928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21929$as_echo_n "checking for ANSI C header files... " >&6; }
21930if ${ac_cv_header_stdc+:} false; then :
21931  $as_echo_n "(cached) " >&6
21932else
21933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934/* end confdefs.h.  */
21935#include <stdlib.h>
21936#include <stdarg.h>
21937#include <string.h>
21938#include <float.h>
21939
21940int
21941main ()
21942{
21943
21944  ;
21945  return 0;
21946}
21947_ACEOF
21948if ac_fn_c_try_compile "$LINENO"; then :
21949  ac_cv_header_stdc=yes
21950else
21951  ac_cv_header_stdc=no
21952fi
21953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21954
21955if test $ac_cv_header_stdc = yes; then
21956  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958/* end confdefs.h.  */
21959#include <string.h>
21960
21961_ACEOF
21962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21963  $EGREP "memchr" >/dev/null 2>&1; then :
21964
21965else
21966  ac_cv_header_stdc=no
21967fi
21968rm -f conftest*
21969
21970fi
21971
21972if test $ac_cv_header_stdc = yes; then
21973  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21975/* end confdefs.h.  */
21976#include <stdlib.h>
21977
21978_ACEOF
21979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21980  $EGREP "free" >/dev/null 2>&1; then :
21981
21982else
21983  ac_cv_header_stdc=no
21984fi
21985rm -f conftest*
21986
21987fi
21988
21989if test $ac_cv_header_stdc = yes; then
21990  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21991  if test "$cross_compiling" = yes; then :
21992  :
21993else
21994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995/* end confdefs.h.  */
21996#include <ctype.h>
21997#include <stdlib.h>
21998#if ((' ' & 0x0FF) == 0x020)
21999# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22000# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22001#else
22002# define ISLOWER(c) \
22003		   (('a' <= (c) && (c) <= 'i') \
22004		     || ('j' <= (c) && (c) <= 'r') \
22005		     || ('s' <= (c) && (c) <= 'z'))
22006# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22007#endif
22008
22009#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22010int
22011main ()
22012{
22013  int i;
22014  for (i = 0; i < 256; i++)
22015    if (XOR (islower (i), ISLOWER (i))
22016	|| toupper (i) != TOUPPER (i))
22017      return 2;
22018  return 0;
22019}
22020_ACEOF
22021if ac_fn_c_try_run "$LINENO"; then :
22022
22023else
22024  ac_cv_header_stdc=no
22025fi
22026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22027  conftest.$ac_objext conftest.beam conftest.$ac_ext
22028fi
22029
22030fi
22031fi
22032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22033$as_echo "$ac_cv_header_stdc" >&6; }
22034if test $ac_cv_header_stdc = yes; then
22035
22036$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22037
22038fi
22039
22040for ac_header in fcntl.h stdlib.h string.h unistd.h dlfcn.h stropts.h \
22041 fnmatch.h sys/mkdev.h sys/sysmacros.h sys/utsname.h
22042do :
22043  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22044ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22045if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22046  cat >>confdefs.h <<_ACEOF
22047#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22048_ACEOF
22049
22050fi
22051
22052done
22053
22054
22055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22056$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22057if ${ac_cv_c_const+:} false; then :
22058  $as_echo_n "(cached) " >&6
22059else
22060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061/* end confdefs.h.  */
22062
22063int
22064main ()
22065{
22066
22067#ifndef __cplusplus
22068  /* Ultrix mips cc rejects this sort of thing.  */
22069  typedef int charset[2];
22070  const charset cs = { 0, 0 };
22071  /* SunOS 4.1.1 cc rejects this.  */
22072  char const *const *pcpcc;
22073  char **ppc;
22074  /* NEC SVR4.0.2 mips cc rejects this.  */
22075  struct point {int x, y;};
22076  static struct point const zero = {0,0};
22077  /* AIX XL C 1.02.0.0 rejects this.
22078     It does not let you subtract one const X* pointer from another in
22079     an arm of an if-expression whose if-part is not a constant
22080     expression */
22081  const char *g = "string";
22082  pcpcc = &g + (g ? g-g : 0);
22083  /* HPUX 7.0 cc rejects these. */
22084  ++pcpcc;
22085  ppc = (char**) pcpcc;
22086  pcpcc = (char const *const *) ppc;
22087  { /* SCO 3.2v4 cc rejects this sort of thing.  */
22088    char tx;
22089    char *t = &tx;
22090    char const *s = 0 ? (char *) 0 : (char const *) 0;
22091
22092    *t++ = 0;
22093    if (s) return 0;
22094  }
22095  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22096    int x[] = {25, 17};
22097    const int *foo = &x[0];
22098    ++foo;
22099  }
22100  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22101    typedef const int *iptr;
22102    iptr p = 0;
22103    ++p;
22104  }
22105  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22106       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22107    struct s { int j; const int *ap[3]; } bx;
22108    struct s *b = &bx; b->j = 5;
22109  }
22110  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22111    const int foo = 10;
22112    if (!foo) return 0;
22113  }
22114  return !cs[0] && !zero.x;
22115#endif
22116
22117  ;
22118  return 0;
22119}
22120_ACEOF
22121if ac_fn_c_try_compile "$LINENO"; then :
22122  ac_cv_c_const=yes
22123else
22124  ac_cv_c_const=no
22125fi
22126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127fi
22128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22129$as_echo "$ac_cv_c_const" >&6; }
22130if test $ac_cv_c_const = no; then
22131
22132$as_echo "#define const /**/" >>confdefs.h
22133
22134fi
22135
22136
22137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
22138$as_echo_n "checking for typeof syntax and keyword spelling... " >&6; }
22139if ${ac_cv_c_typeof+:} false; then :
22140  $as_echo_n "(cached) " >&6
22141else
22142  ac_cv_c_typeof=no
22143     for ac_kw in typeof __typeof__ no; do
22144       test $ac_kw = no && break
22145       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22146/* end confdefs.h.  */
22147
22148int
22149main ()
22150{
22151
22152	   int value;
22153	   typedef struct {
22154		   char a [1
22155			   + ! (($ac_kw (value))
22156				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
22157				 ? ($ac_kw (value)) - 1
22158				 : ~ (~ ($ac_kw (value)) 0
22159				      << sizeof ($ac_kw (value)))))]; }
22160	      ac__typeof_type_;
22161	   return
22162	     (! ((void) ((ac__typeof_type_ *) 0), 0));
22163
22164  ;
22165  return 0;
22166}
22167_ACEOF
22168if ac_fn_c_try_compile "$LINENO"; then :
22169  ac_cv_c_typeof=$ac_kw
22170fi
22171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22172       test $ac_cv_c_typeof != no && break
22173     done
22174fi
22175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
22176$as_echo "$ac_cv_c_typeof" >&6; }
22177  if test $ac_cv_c_typeof != no; then
22178
22179$as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
22180
22181    if test $ac_cv_c_typeof != typeof; then
22182
22183cat >>confdefs.h <<_ACEOF
22184#define typeof $ac_cv_c_typeof
22185_ACEOF
22186
22187    fi
22188  fi
22189
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22191$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22192if ${ac_cv_c_bigendian+:} false; then :
22193  $as_echo_n "(cached) " >&6
22194else
22195  ac_cv_c_bigendian=unknown
22196    # See if we're dealing with a universal compiler.
22197    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22198/* end confdefs.h.  */
22199#ifndef __APPLE_CC__
22200	       not a universal capable compiler
22201	     #endif
22202	     typedef int dummy;
22203
22204_ACEOF
22205if ac_fn_c_try_compile "$LINENO"; then :
22206
22207	# Check for potential -arch flags.  It is not universal unless
22208	# there are at least two -arch flags with different values.
22209	ac_arch=
22210	ac_prev=
22211	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22212	 if test -n "$ac_prev"; then
22213	   case $ac_word in
22214	     i?86 | x86_64 | ppc | ppc64)
22215	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22216		 ac_arch=$ac_word
22217	       else
22218		 ac_cv_c_bigendian=universal
22219		 break
22220	       fi
22221	       ;;
22222	   esac
22223	   ac_prev=
22224	 elif test "x$ac_word" = "x-arch"; then
22225	   ac_prev=arch
22226	 fi
22227       done
22228fi
22229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230    if test $ac_cv_c_bigendian = unknown; then
22231      # See if sys/param.h defines the BYTE_ORDER macro.
22232      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233/* end confdefs.h.  */
22234#include <sys/types.h>
22235	     #include <sys/param.h>
22236
22237int
22238main ()
22239{
22240#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22241		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22242		     && LITTLE_ENDIAN)
22243	      bogus endian macros
22244	     #endif
22245
22246  ;
22247  return 0;
22248}
22249_ACEOF
22250if ac_fn_c_try_compile "$LINENO"; then :
22251  # It does; now see whether it defined to BIG_ENDIAN or not.
22252	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253/* end confdefs.h.  */
22254#include <sys/types.h>
22255		#include <sys/param.h>
22256
22257int
22258main ()
22259{
22260#if BYTE_ORDER != BIG_ENDIAN
22261		 not big endian
22262		#endif
22263
22264  ;
22265  return 0;
22266}
22267_ACEOF
22268if ac_fn_c_try_compile "$LINENO"; then :
22269  ac_cv_c_bigendian=yes
22270else
22271  ac_cv_c_bigendian=no
22272fi
22273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22274fi
22275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22276    fi
22277    if test $ac_cv_c_bigendian = unknown; then
22278      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22279      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22280/* end confdefs.h.  */
22281#include <limits.h>
22282
22283int
22284main ()
22285{
22286#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22287	      bogus endian macros
22288	     #endif
22289
22290  ;
22291  return 0;
22292}
22293_ACEOF
22294if ac_fn_c_try_compile "$LINENO"; then :
22295  # It does; now see whether it defined to _BIG_ENDIAN or not.
22296	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22297/* end confdefs.h.  */
22298#include <limits.h>
22299
22300int
22301main ()
22302{
22303#ifndef _BIG_ENDIAN
22304		 not big endian
22305		#endif
22306
22307  ;
22308  return 0;
22309}
22310_ACEOF
22311if ac_fn_c_try_compile "$LINENO"; then :
22312  ac_cv_c_bigendian=yes
22313else
22314  ac_cv_c_bigendian=no
22315fi
22316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317fi
22318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319    fi
22320    if test $ac_cv_c_bigendian = unknown; then
22321      # Compile a test program.
22322      if test "$cross_compiling" = yes; then :
22323  # Try to guess by grepping values from an object file.
22324	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325/* end confdefs.h.  */
22326short int ascii_mm[] =
22327		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22328		short int ascii_ii[] =
22329		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22330		int use_ascii (int i) {
22331		  return ascii_mm[i] + ascii_ii[i];
22332		}
22333		short int ebcdic_ii[] =
22334		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22335		short int ebcdic_mm[] =
22336		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22337		int use_ebcdic (int i) {
22338		  return ebcdic_mm[i] + ebcdic_ii[i];
22339		}
22340		extern int foo;
22341
22342int
22343main ()
22344{
22345return use_ascii (foo) == use_ebcdic (foo);
22346  ;
22347  return 0;
22348}
22349_ACEOF
22350if ac_fn_c_try_compile "$LINENO"; then :
22351  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22352	      ac_cv_c_bigendian=yes
22353	    fi
22354	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22355	      if test "$ac_cv_c_bigendian" = unknown; then
22356		ac_cv_c_bigendian=no
22357	      else
22358		# finding both strings is unlikely to happen, but who knows?
22359		ac_cv_c_bigendian=unknown
22360	      fi
22361	    fi
22362fi
22363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364else
22365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366/* end confdefs.h.  */
22367$ac_includes_default
22368int
22369main ()
22370{
22371
22372	     /* Are we little or big endian?  From Harbison&Steele.  */
22373	     union
22374	     {
22375	       long int l;
22376	       char c[sizeof (long int)];
22377	     } u;
22378	     u.l = 1;
22379	     return u.c[sizeof (long int) - 1] == 1;
22380
22381  ;
22382  return 0;
22383}
22384_ACEOF
22385if ac_fn_c_try_run "$LINENO"; then :
22386  ac_cv_c_bigendian=no
22387else
22388  ac_cv_c_bigendian=yes
22389fi
22390rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22391  conftest.$ac_objext conftest.beam conftest.$ac_ext
22392fi
22393
22394    fi
22395fi
22396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22397$as_echo "$ac_cv_c_bigendian" >&6; }
22398 case $ac_cv_c_bigendian in #(
22399   yes)
22400
22401$as_echo "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
22402;; #(
22403   no)
22404
22405$as_echo "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
22406 ;; #(
22407   universal)
22408
22409$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22410
22411     ;; #(
22412   *)
22413     as_fn_error $? "unknown endianness
22414 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22415 esac
22416
22417
22418# The cast to long int works around a bug in the HP C Compiler
22419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22421# This bug is HP SR number 8606223364.
22422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22423$as_echo_n "checking size of unsigned long... " >&6; }
22424if ${ac_cv_sizeof_unsigned_long+:} false; then :
22425  $as_echo_n "(cached) " >&6
22426else
22427  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
22428
22429else
22430  if test "$ac_cv_type_unsigned_long" = yes; then
22431     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22433as_fn_error 77 "cannot compute sizeof (unsigned long)
22434See \`config.log' for more details" "$LINENO" 5; }
22435   else
22436     ac_cv_sizeof_unsigned_long=0
22437   fi
22438fi
22439
22440fi
22441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22442$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22443
22444
22445
22446cat >>confdefs.h <<_ACEOF
22447#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22448_ACEOF
22449
22450
22451if test "$ac_cv_sizeof_unsigned_long" = 8; then
22452
22453$as_echo "#define _XSERVER64 1" >>confdefs.h
22454
22455fi
22456
22457ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22458if test "x$ac_cv_type_pid_t" = xyes; then :
22459
22460else
22461
22462cat >>confdefs.h <<_ACEOF
22463#define pid_t int
22464_ACEOF
22465
22466fi
22467
22468
22469ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22470if test "x$ac_cv_func_dlopen" = xyes; then :
22471
22472else
22473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22474$as_echo_n "checking for dlopen in -ldl... " >&6; }
22475if ${ac_cv_lib_dl_dlopen+:} false; then :
22476  $as_echo_n "(cached) " >&6
22477else
22478  ac_check_lib_save_LIBS=$LIBS
22479LIBS="-ldl  $LIBS"
22480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22481/* end confdefs.h.  */
22482
22483/* Override any GCC internal prototype to avoid an error.
22484   Use char because int might match the return type of a GCC
22485   builtin and then its argument prototype would still apply.  */
22486#ifdef __cplusplus
22487extern "C"
22488#endif
22489char dlopen ();
22490int
22491main ()
22492{
22493return dlopen ();
22494  ;
22495  return 0;
22496}
22497_ACEOF
22498if ac_fn_c_try_link "$LINENO"; then :
22499  ac_cv_lib_dl_dlopen=yes
22500else
22501  ac_cv_lib_dl_dlopen=no
22502fi
22503rm -f core conftest.err conftest.$ac_objext \
22504    conftest$ac_exeext conftest.$ac_ext
22505LIBS=$ac_check_lib_save_LIBS
22506fi
22507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22508$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22509if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
22510  DLOPEN_LIBS="-ldl"
22511fi
22512
22513fi
22514
22515
22516
22517for ac_func in backtrace geteuid getuid issetugid getresuid \
22518	getdtablesize getifaddrs getpeereid getpeerucred getprogname getzoneid \
22519	mmap posix_fallocate seteuid shmctl64 strncasecmp vasprintf vsnprintf \
22520	walkcontext setitimer poll epoll_create1 mkostemp memfd_create \
22521	sigprocmask isastream
22522do :
22523  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22524ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22525if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22526  cat >>confdefs.h <<_ACEOF
22527#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22528_ACEOF
22529
22530fi
22531done
22532
22533
22534ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
22535if test "x$ac_cv_func_reallocarray" = xyes; then :
22536  $as_echo "#define HAVE_REALLOCARRAY 1" >>confdefs.h
22537
22538else
22539  case " $LIBOBJS " in
22540  *" reallocarray.$ac_objext "* ) ;;
22541  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
22542 ;;
22543esac
22544
22545fi
22546
22547ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22548if test "x$ac_cv_func_strcasecmp" = xyes; then :
22549  $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
22550
22551else
22552  case " $LIBOBJS " in
22553  *" strcasecmp.$ac_objext "* ) ;;
22554  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
22555 ;;
22556esac
22557
22558fi
22559
22560ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
22561if test "x$ac_cv_func_strcasestr" = xyes; then :
22562  $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
22563
22564else
22565  case " $LIBOBJS " in
22566  *" strcasestr.$ac_objext "* ) ;;
22567  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
22568 ;;
22569esac
22570
22571fi
22572
22573ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
22574if test "x$ac_cv_func_strlcat" = xyes; then :
22575  $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
22576
22577else
22578  case " $LIBOBJS " in
22579  *" strlcat.$ac_objext "* ) ;;
22580  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
22581 ;;
22582esac
22583
22584fi
22585
22586ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
22587if test "x$ac_cv_func_strlcpy" = xyes; then :
22588  $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
22589
22590else
22591  case " $LIBOBJS " in
22592  *" strlcpy.$ac_objext "* ) ;;
22593  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
22594 ;;
22595esac
22596
22597fi
22598
22599ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
22600if test "x$ac_cv_func_strndup" = xyes; then :
22601  $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
22602
22603else
22604  case " $LIBOBJS " in
22605  *" strndup.$ac_objext "* ) ;;
22606  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
22607 ;;
22608esac
22609
22610fi
22611
22612ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
22613if test "x$ac_cv_func_timingsafe_memcmp" = xyes; then :
22614  $as_echo "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
22615
22616else
22617  case " $LIBOBJS " in
22618  *" timingsafe_memcmp.$ac_objext "* ) ;;
22619  *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
22620 ;;
22621esac
22622
22623fi
22624
22625
22626 if test "x$ac_cv_func_poll" = "xyes"; then
22627  POLL_TRUE=
22628  POLL_FALSE='#'
22629else
22630  POLL_TRUE='#'
22631  POLL_FALSE=
22632fi
22633
22634
22635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for arc4random_buf in -lbsd" >&5
22636$as_echo_n "checking for arc4random_buf in -lbsd... " >&6; }
22637if ${ac_cv_lib_bsd_arc4random_buf+:} false; then :
22638  $as_echo_n "(cached) " >&6
22639else
22640  ac_check_lib_save_LIBS=$LIBS
22641LIBS="-lbsd  $LIBS"
22642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22643/* end confdefs.h.  */
22644
22645/* Override any GCC internal prototype to avoid an error.
22646   Use char because int might match the return type of a GCC
22647   builtin and then its argument prototype would still apply.  */
22648#ifdef __cplusplus
22649extern "C"
22650#endif
22651char arc4random_buf ();
22652int
22653main ()
22654{
22655return arc4random_buf ();
22656  ;
22657  return 0;
22658}
22659_ACEOF
22660if ac_fn_c_try_link "$LINENO"; then :
22661  ac_cv_lib_bsd_arc4random_buf=yes
22662else
22663  ac_cv_lib_bsd_arc4random_buf=no
22664fi
22665rm -f core conftest.err conftest.$ac_objext \
22666    conftest$ac_exeext conftest.$ac_ext
22667LIBS=$ac_check_lib_save_LIBS
22668fi
22669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_arc4random_buf" >&5
22670$as_echo "$ac_cv_lib_bsd_arc4random_buf" >&6; }
22671if test "x$ac_cv_lib_bsd_arc4random_buf" = xyes; then :
22672  cat >>confdefs.h <<_ACEOF
22673#define HAVE_LIBBSD 1
22674_ACEOF
22675
22676  LIBS="-lbsd $LIBS"
22677
22678fi
22679
22680for ac_func in arc4random_buf
22681do :
22682  ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
22683if test "x$ac_cv_func_arc4random_buf" = xyes; then :
22684  cat >>confdefs.h <<_ACEOF
22685#define HAVE_ARC4RANDOM_BUF 1
22686_ACEOF
22687
22688fi
22689done
22690
22691
22692ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22693"
22694if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes; then :
22695  ac_have_decl=1
22696else
22697  ac_have_decl=0
22698fi
22699
22700cat >>confdefs.h <<_ACEOF
22701#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl
22702_ACEOF
22703
22704
22705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
22706$as_echo_n "checking for SO_PEERCRED in sys/socket.h... " >&6; }
22707if ${xorg_cv_sys_have_so_peercred+:} false; then :
22708  $as_echo_n "(cached) " >&6
22709else
22710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22711/* end confdefs.h.  */
22712
22713#include <sys/types.h>
22714#include <sys/socket.h>
22715#ifdef SO_PEERCRED
22716yes_have_so_peercred
22717#endif
22718
22719_ACEOF
22720if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22721  $EGREP "yes_have_so_peercred" >/dev/null 2>&1; then :
22722  xorg_cv_sys_have_so_peercred=yes
22723else
22724  xorg_cv_sys_have_so_peercred=no
22725fi
22726rm -f conftest*
22727
22728fi
22729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
22730$as_echo "$xorg_cv_sys_have_so_peercred" >&6; }
22731
22732if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
22733
22734$as_echo "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
22735
22736fi
22737
22738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
22739$as_echo_n "checking for sqrt in -lm... " >&6; }
22740if ${ac_cv_lib_m_sqrt+:} false; then :
22741  $as_echo_n "(cached) " >&6
22742else
22743  ac_check_lib_save_LIBS=$LIBS
22744LIBS="-lm  $LIBS"
22745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22746/* end confdefs.h.  */
22747
22748/* Override any GCC internal prototype to avoid an error.
22749   Use char because int might match the return type of a GCC
22750   builtin and then its argument prototype would still apply.  */
22751#ifdef __cplusplus
22752extern "C"
22753#endif
22754char sqrt ();
22755int
22756main ()
22757{
22758return sqrt ();
22759  ;
22760  return 0;
22761}
22762_ACEOF
22763if ac_fn_c_try_link "$LINENO"; then :
22764  ac_cv_lib_m_sqrt=yes
22765else
22766  ac_cv_lib_m_sqrt=no
22767fi
22768rm -f core conftest.err conftest.$ac_objext \
22769    conftest$ac_exeext conftest.$ac_ext
22770LIBS=$ac_check_lib_save_LIBS
22771fi
22772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
22773$as_echo "$ac_cv_lib_m_sqrt" >&6; }
22774if test "x$ac_cv_lib_m_sqrt" = xyes; then :
22775  cat >>confdefs.h <<_ACEOF
22776#define HAVE_LIBM 1
22777_ACEOF
22778
22779  LIBS="-lm $LIBS"
22780
22781fi
22782
22783for ac_func in cbrt
22784do :
22785  ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
22786if test "x$ac_cv_func_cbrt" = xyes; then :
22787  cat >>confdefs.h <<_ACEOF
22788#define HAVE_CBRT 1
22789_ACEOF
22790
22791fi
22792done
22793
22794
22795# Check whether --enable-agp was given.
22796if test "${enable_agp+set}" = set; then :
22797  enableval=$enable_agp; AGP=$enableval
22798else
22799  AGP=auto
22800fi
22801
22802if test "x$AGP" = "xauto" ; then
22803    for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
22804do :
22805  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22806ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22808  cat >>confdefs.h <<_ACEOF
22809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22810_ACEOF
22811 AGP=yes
22812fi
22813
22814done
22815
22816fi
22817 if test "x$AGP" = xyes; then
22818  AGP_TRUE=
22819  AGP_FALSE='#'
22820else
22821  AGP_TRUE='#'
22822  AGP_FALSE=
22823fi
22824
22825
22826for ac_header in linux/fb.h
22827do :
22828  ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
22829if test "x$ac_cv_header_linux_fb_h" = xyes; then :
22830  cat >>confdefs.h <<_ACEOF
22831#define HAVE_LINUX_FB_H 1
22832_ACEOF
22833 FBDEV=yes
22834fi
22835
22836done
22837
22838 if test "x$FBDEV" = xyes; then
22839  FBDEVHW_TRUE=
22840  FBDEVHW_FALSE='#'
22841else
22842  FBDEVHW_TRUE='#'
22843  FBDEVHW_FALSE=
22844fi
22845
22846
22847for ac_header in sys/linker.h
22848do :
22849  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
22850"
22851if test "x$ac_cv_header_sys_linker_h" = xyes; then :
22852  cat >>confdefs.h <<_ACEOF
22853#define HAVE_SYS_LINKER_H 1
22854_ACEOF
22855 ac_cv_sys_linker_h=yes
22856else
22857  ac_cv_sys_linker_h=no
22858fi
22859
22860done
22861
22862 if test "x$ac_cv_sys_linker_h" = xyes; then
22863  FREEBSD_KLDLOAD_TRUE=
22864  FREEBSD_KLDLOAD_FALSE='#'
22865else
22866  FREEBSD_KLDLOAD_TRUE='#'
22867  FREEBSD_KLDLOAD_FALSE=
22868fi
22869
22870
22871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
22872$as_echo_n "checking for SYSV IPC... " >&6; }
22873if ${ac_cv_sysv_ipc+:} false; then :
22874  $as_echo_n "(cached) " >&6
22875else
22876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22877/* end confdefs.h.  */
22878
22879#include <sys/types.h>
22880#include <sys/ipc.h>
22881#include <sys/shm.h>
22882#include <sys/stat.h>
22883
22884int
22885main ()
22886{
22887
22888{
22889    int id;
22890    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
22891    if (id < 0) return -1;
22892    return shmctl(id, IPC_RMID, 0);
22893}
22894  ;
22895  return 0;
22896}
22897_ACEOF
22898if ac_fn_c_try_link "$LINENO"; then :
22899  ac_cv_sysv_ipc=yes
22900else
22901  ac_cv_sysv_ipc=no
22902fi
22903rm -f core conftest.err conftest.$ac_objext \
22904    conftest$ac_exeext conftest.$ac_ext
22905fi
22906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
22907$as_echo "$ac_cv_sysv_ipc" >&6; }
22908if test "x$ac_cv_sysv_ipc" = xyes; then
22909
22910$as_echo "#define HAVE_SYSV_IPC 1" >>confdefs.h
22911
22912fi
22913
22914if test -c /dev/xf86 ; then
22915
22916$as_echo "#define HAS_APERTURE_DRV 1" >>confdefs.h
22917
22918fi
22919
22920ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
22921if test "x$ac_cv_header_execinfo_h" = xyes; then :
22922
22923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
22924$as_echo_n "checking for backtrace in -lc... " >&6; }
22925if ${ac_cv_lib_c_backtrace+:} false; then :
22926  $as_echo_n "(cached) " >&6
22927else
22928  ac_check_lib_save_LIBS=$LIBS
22929LIBS="-lc  $LIBS"
22930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22931/* end confdefs.h.  */
22932
22933/* Override any GCC internal prototype to avoid an error.
22934   Use char because int might match the return type of a GCC
22935   builtin and then its argument prototype would still apply.  */
22936#ifdef __cplusplus
22937extern "C"
22938#endif
22939char backtrace ();
22940int
22941main ()
22942{
22943return backtrace ();
22944  ;
22945  return 0;
22946}
22947_ACEOF
22948if ac_fn_c_try_link "$LINENO"; then :
22949  ac_cv_lib_c_backtrace=yes
22950else
22951  ac_cv_lib_c_backtrace=no
22952fi
22953rm -f core conftest.err conftest.$ac_objext \
22954    conftest$ac_exeext conftest.$ac_ext
22955LIBS=$ac_check_lib_save_LIBS
22956fi
22957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
22958$as_echo "$ac_cv_lib_c_backtrace" >&6; }
22959if test "x$ac_cv_lib_c_backtrace" = xyes; then :
22960
22961
22962$as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
22963
22964
22965$as_echo "#define HAVE_EXECINFO_H 1" >>confdefs.h
22966
22967
22968fi
22969
22970
22971fi
22972
22973
22974
22975DEFAULT_INT10="x86emu"
22976
22977
22978case $host_cpu in
22979  alpha*)
22980	ALPHA_VIDEO=yes
22981	case $host_os in
22982	        *freebsd*)	SYS_LIBS=-lio ;;
22983		*netbsd*)
22984$as_echo "#define USE_ALPHA_PIO 1" >>confdefs.h
22985 ;;
22986	esac
22987	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
22988	;;
22989  arm*)
22990	ARM_VIDEO=yes
22991	DEFAULT_INT10="stub"
22992	;;
22993  i*86)
22994	I386_VIDEO=yes
22995	case $host_os in
22996		*freebsd*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
22997 ;;
22998		*dragonfly*)	$as_echo "#define USE_DEV_IO 1" >>confdefs.h
22999 ;;
23000		*netbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23001
23002				SYS_LIBS=-li386
23003				;;
23004		*openbsd*)	$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23005
23006				SYS_LIBS=-li386
23007				;;
23008	esac
23009        ;;
23010  powerpc*)
23011	PPC_VIDEO=yes
23012	case $host_os in
23013		*freebsd*)	DEFAULT_INT10=stub ;;
23014	esac
23015	;;
23016  sparc*)
23017	SPARC64_VIDEO=yes
23018	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
23019	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23020	;;
23021  x86_64*|amd64*)
23022	I386_VIDEO=yes
23023	case $host_os in
23024		*freebsd*)
23025$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23026 ;;
23027		*dragonfly*)
23028$as_echo "#define USE_DEV_IO 1" >>confdefs.h
23029 ;;
23030		*netbsd*)
23031$as_echo "#define USE_I386_IOPL 1" >>confdefs.h
23032
23033				SYS_LIBS=-lx86_64
23034				;;
23035		*openbsd*)
23036$as_echo "#define USE_AMD64_IOPL 1" >>confdefs.h
23037
23038				SYS_LIBS=-lamd64
23039				;;
23040	esac
23041	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23042	;;
23043  ia64*)
23044  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23045	;;
23046  s390*)
23047  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
23048	;;
23049esac
23050
23051
23052 if test "x$ALPHA_VIDEO" = xyes; then
23053  ALPHA_VIDEO_TRUE=
23054  ALPHA_VIDEO_FALSE='#'
23055else
23056  ALPHA_VIDEO_TRUE='#'
23057  ALPHA_VIDEO_FALSE=
23058fi
23059
23060 if test "x$ARM_VIDEO" = xyes; then
23061  ARM_VIDEO_TRUE=
23062  ARM_VIDEO_FALSE='#'
23063else
23064  ARM_VIDEO_TRUE='#'
23065  ARM_VIDEO_FALSE=
23066fi
23067
23068 if test "x$I386_VIDEO" = xyes; then
23069  I386_VIDEO_TRUE=
23070  I386_VIDEO_FALSE='#'
23071else
23072  I386_VIDEO_TRUE='#'
23073  I386_VIDEO_FALSE=
23074fi
23075
23076 if test "x$PPC_VIDEO" = xyes; then
23077  PPC_VIDEO_TRUE=
23078  PPC_VIDEO_FALSE='#'
23079else
23080  PPC_VIDEO_TRUE='#'
23081  PPC_VIDEO_FALSE=
23082fi
23083
23084 if test "x$SPARC64_VIDEO" = xyes; then
23085  SPARC64_VIDEO_TRUE=
23086  SPARC64_VIDEO_FALSE='#'
23087else
23088  SPARC64_VIDEO_TRUE='#'
23089  SPARC64_VIDEO_FALSE=
23090fi
23091
23092
23093DRI=no
23094case $host_os in
23095  *freebsd* | *dragonfly*)
23096	case $host_os in
23097		kfreebsd*-gnu) ;;
23098		*)
23099$as_echo "#define CSRG_BASED 1" >>confdefs.h
23100 ;;
23101	esac
23102
23103$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23104
23105
23106$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23107
23108
23109$as_echo "#define SYSCONS_SUPPORT 1" >>confdefs.h
23110
23111	DRI=yes
23112	;;
23113  *netbsd*)
23114
23115$as_echo "#define CSRG_BASED 1" >>confdefs.h
23116
23117
23118$as_echo "#define PCCONS_SUPPORT 1" >>confdefs.h
23119
23120
23121$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23122
23123
23124$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23125
23126	DRI=yes
23127	;;
23128  *openbsd*)
23129
23130$as_echo "#define CSRG_BASED 1" >>confdefs.h
23131
23132
23133$as_echo "#define PCVT_SUPPORT 1" >>confdefs.h
23134
23135
23136$as_echo "#define WSCONS_SUPPORT 1" >>confdefs.h
23137
23138	;;
23139  *linux*)
23140	DRI=yes
23141	;;
23142  *solaris*)
23143	DRI=yes
23144	;;
23145  darwin*)
23146
23147$as_echo "#define CSRG_BASED 1" >>confdefs.h
23148
23149	;;
23150  cygwin*|mingw*)
23151	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
23152	;;
23153esac
23154
23155PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
23156
23157VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)"
23158VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
23159
23160VENDOR_NAME="The X.Org Foundation"
23161VENDOR_NAME_SHORT="X.Org"
23162VENDOR_WEB="http://wiki.x.org"
23163
23164# Check whether --enable-werror was given.
23165if test "${enable_werror+set}" = set; then :
23166  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
23167fi
23168
23169
23170# Check whether --enable-debug was given.
23171if test "${enable_debug+set}" = set; then :
23172  enableval=$enable_debug; DEBUGGING=$enableval
23173else
23174  DEBUGGING=no
23175fi
23176
23177
23178# Check whether --with-int10 was given.
23179if test "${with_int10+set}" = set; then :
23180  withval=$with_int10; INT10="$withval"
23181else
23182  INT10="$DEFAULT_INT10"
23183fi
23184
23185
23186# Check whether --with-vendor-name was given.
23187if test "${with_vendor_name+set}" = set; then :
23188  withval=$with_vendor_name;  VENDOR_NAME="$withval"
23189fi
23190
23191
23192# Check whether --with-vendor-name-short was given.
23193if test "${with_vendor_name_short+set}" = set; then :
23194  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
23195fi
23196
23197
23198# Check whether --with-vendor-web was given.
23199if test "${with_vendor_web+set}" = set; then :
23200  withval=$with_vendor_web;  VENDOR_WEB="$withval"
23201fi
23202
23203
23204# Check whether --with-module-dir was given.
23205if test "${with_module_dir+set}" = set; then :
23206  withval=$with_module_dir;  moduledir="$withval"
23207else
23208   moduledir="${libdir}/xorg/modules"
23209fi
23210
23211
23212# Check whether --with-log-dir was given.
23213if test "${with_log_dir+set}" = set; then :
23214  withval=$with_log_dir;  logdir="$withval"
23215else
23216   logdir="$localstatedir/log"
23217fi
23218
23219
23220# Check whether --with-builder-addr was given.
23221if test "${with_builder_addr+set}" = set; then :
23222  withval=$with_builder_addr;  BUILDERADDR="$withval"
23223else
23224   BUILDERADDR="xorg@lists.freedesktop.org"
23225fi
23226
23227
23228# Check whether --with-builderstring was given.
23229if test "${with_builderstring+set}" = set; then :
23230  withval=$with_builderstring;  BUILDERSTRING="$withval"
23231
23232fi
23233
23234# Check whether --enable-listen-tcp was given.
23235if test "${enable_listen_tcp+set}" = set; then :
23236  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
23237else
23238  LISTEN_TCP=no
23239fi
23240
23241# Check whether --enable-listen-unix was given.
23242if test "${enable_listen_unix+set}" = set; then :
23243  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
23244else
23245  LISTEN_UNIX=yes
23246fi
23247
23248
23249# Check whether --enable-listen-local was given.
23250if test "${enable_listen_local+set}" = set; then :
23251  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
23252else
23253  LISTEN_LOCAL=yes
23254fi
23255
23256
23257case $host_os in
23258    linux*)
23259        FALLBACK_INPUT_DRIVER="libinput"
23260        ;;
23261    *)
23262        FALLBACK_INPUT_DRIVER=""
23263        ;;
23264esac
23265
23266# Check whether --with-fallback-input-driver was given.
23267if test "${with_fallback_input_driver+set}" = set; then :
23268  withval=$with_fallback_input_driver;  FALLBACK_INPUT_DRIVER=$withval
23269fi
23270
23271if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then
23272    FALLBACK_INPUT_DRIVER=""
23273fi
23274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5
23275$as_echo_n "checking for fallback input driver... " >&6; }
23276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5
23277$as_echo "$FALLBACK_INPUT_DRIVER" >&6; }
23278
23279cat >>confdefs.h <<_ACEOF
23280#define FALLBACK_INPUT_DRIVER "$FALLBACK_INPUT_DRIVER"
23281_ACEOF
23282
23283
23284
23285
23286
23287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
23288$as_echo_n "checking for root directory for font files... " >&6; }
23289
23290# Check whether --with-fontrootdir was given.
23291if test "${with_fontrootdir+set}" = set; then :
23292  withval=$with_fontrootdir; FONTROOTDIR="$withval"
23293fi
23294
23295	# if --with-fontrootdir not specified...
23296	if test "x${FONTROOTDIR}" = "x"; then
23297		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
23298	fi
23299	# ...and if pkg-config didn't find fontdir in fontutil.pc...
23300	if test "x${FONTROOTDIR}" = "x"; then
23301		FONTROOTDIR="${datadir}/fonts/X11"
23302	fi
23303
23304	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
23305$as_echo "${FONTROOTDIR}" >&6; }
23306
23307
23308
23309
23310	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
23311$as_echo_n "checking for directory for misc files... " >&6; }
23312
23313# Check whether --with-fontmiscdir was given.
23314if test "${with_fontmiscdir+set}" = set; then :
23315  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
23316else
23317  FONTMISCDIR='${FONTROOTDIR}/misc'
23318fi
23319
23320
23321	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
23322$as_echo "${FONTMISCDIR}" >&6; }
23323
23324
23325
23326
23327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
23328$as_echo_n "checking for directory for OTF files... " >&6; }
23329
23330# Check whether --with-fontotfdir was given.
23331if test "${with_fontotfdir+set}" = set; then :
23332  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
23333else
23334  FONTOTFDIR='${FONTROOTDIR}/OTF'
23335fi
23336
23337
23338	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
23339$as_echo "${FONTOTFDIR}" >&6; }
23340
23341
23342
23343
23344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
23345$as_echo_n "checking for directory for TTF files... " >&6; }
23346
23347# Check whether --with-fontttfdir was given.
23348if test "${with_fontttfdir+set}" = set; then :
23349  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
23350else
23351  FONTTTFDIR='${FONTROOTDIR}/TTF'
23352fi
23353
23354
23355	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
23356$as_echo "${FONTTTFDIR}" >&6; }
23357
23358
23359
23360
23361	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
23362$as_echo_n "checking for directory for Type1 files... " >&6; }
23363
23364# Check whether --with-fonttype1dir was given.
23365if test "${with_fonttype1dir+set}" = set; then :
23366  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
23367else
23368  FONTTYPE1DIR='${FONTROOTDIR}/Type1'
23369fi
23370
23371
23372	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
23373$as_echo "${FONTTYPE1DIR}" >&6; }
23374
23375
23376
23377
23378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
23379$as_echo_n "checking for directory for 75dpi files... " >&6; }
23380
23381# Check whether --with-font75dpidir was given.
23382if test "${with_font75dpidir+set}" = set; then :
23383  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
23384else
23385  FONT75DPIDIR='${FONTROOTDIR}/75dpi'
23386fi
23387
23388
23389	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
23390$as_echo "${FONT75DPIDIR}" >&6; }
23391
23392
23393
23394
23395	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
23396$as_echo_n "checking for directory for 100dpi files... " >&6; }
23397
23398# Check whether --with-font100dpidir was given.
23399if test "${with_font100dpidir+set}" = set; then :
23400  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
23401else
23402  FONT100DPIDIR='${FONTROOTDIR}/100dpi'
23403fi
23404
23405
23406	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
23407$as_echo "${FONT100DPIDIR}" >&6; }
23408
23409
23410DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
23411case $host_os in
23412    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
23413esac
23414
23415
23416# Check whether --with-default-font-path was given.
23417if test "${with_default_font_path+set}" = set; then :
23418  withval=$with_default_font_path;  FONTPATH="$withval"
23419else
23420   FONTPATH="${DEFAULT_FONT_PATH}"
23421fi
23422
23423
23424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
23425$as_echo_n "checking for default font path... " >&6; }
23426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
23427$as_echo "$FONTPATH" >&6; }
23428
23429
23430# Check whether --with-xkb-path was given.
23431if test "${with_xkb_path+set}" = set; then :
23432  withval=$with_xkb_path;  XKBPATH="$withval"
23433else
23434   XKBPATH="auto"
23435fi
23436
23437
23438# Check whether --with-xkb-output was given.
23439if test "${with_xkb_output+set}" = set; then :
23440  withval=$with_xkb_output;  XKBOUTPUT="$withval"
23441else
23442   XKBOUTPUT="compiled"
23443fi
23444
23445
23446# Check whether --with-default-xkb-rules was given.
23447if test "${with_default_xkb_rules+set}" = set; then :
23448  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
23449else
23450   XKB_DFLT_RULES=""
23451fi
23452
23453
23454# Check whether --with-default-xkb-model was given.
23455if test "${with_default_xkb_model+set}" = set; then :
23456  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
23457else
23458   XKB_DFLT_MODEL="pc105"
23459fi
23460
23461
23462# Check whether --with-default-xkb-layout was given.
23463if test "${with_default_xkb_layout+set}" = set; then :
23464  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
23465else
23466   XKB_DFLT_LAYOUT="us"
23467fi
23468
23469
23470# Check whether --with-default-xkb-variant was given.
23471if test "${with_default_xkb_variant+set}" = set; then :
23472  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
23473else
23474   XKB_DFLT_VARIANT=""
23475fi
23476
23477
23478# Check whether --with-default-xkb-options was given.
23479if test "${with_default_xkb_options+set}" = set; then :
23480  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
23481else
23482   XKB_DFLT_OPTIONS=""
23483fi
23484
23485
23486# Check whether --with-serverconfig-path was given.
23487if test "${with_serverconfig_path+set}" = set; then :
23488  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
23489else
23490   SERVERCONFIG="${libdir}/xorg"
23491fi
23492
23493
23494# Check whether --with-apple-applications-dir was given.
23495if test "${with_apple_applications_dir+set}" = set; then :
23496  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
23497else
23498   APPLE_APPLICATIONS_DIR="/Applications/Utilities"
23499fi
23500
23501
23502
23503# Check whether --with-apple-application-name was given.
23504if test "${with_apple_application_name+set}" = set; then :
23505  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
23506else
23507   APPLE_APPLICATION_NAME="X11"
23508fi
23509
23510
23511
23512# Check whether --with-bundle-id-prefix was given.
23513if test "${with_bundle_id_prefix+set}" = set; then :
23514  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
23515fi
23516
23517
23518
23519cat >>confdefs.h <<_ACEOF
23520#define BUNDLE_ID_PREFIX "$BUNDLE_ID_PREFIX"
23521_ACEOF
23522
23523
23524
23525# Check whether --with-bundle-version was given.
23526if test "${with_bundle_version+set}" = set; then :
23527  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
23528else
23529   BUNDLE_VERSION="21.1.3"
23530fi
23531
23532
23533
23534# Check whether --with-bundle-version-string was given.
23535if test "${with_bundle_version_string+set}" = set; then :
23536  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
23537else
23538   BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"
23539fi
23540
23541
23542# Check whether --enable-sparkle was given.
23543if test "${enable_sparkle+set}" = set; then :
23544  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
23545else
23546   XQUARTZ_SPARKLE="no"
23547fi
23548
23549
23550
23551# Check whether --with-sparkle-feed-url was given.
23552if test "${with_sparkle_feed_url+set}" = set; then :
23553  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
23554else
23555   XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"
23556fi
23557
23558
23559# Check whether --enable-visibility was given.
23560if test "${enable_visibility+set}" = set; then :
23561  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
23562else
23563  SYMBOL_VISIBILITY=auto
23564fi
23565
23566
23567
23568# Check whether --with-khronos-spec-dir was given.
23569if test "${with_khronos_spec_dir+set}" = set; then :
23570  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
23571else
23572  KHRONOS_SPEC_DIR=auto
23573fi
23574
23575
23576# Check whether --enable-composite was given.
23577if test "${enable_composite+set}" = set; then :
23578  enableval=$enable_composite; COMPOSITE=$enableval
23579else
23580  COMPOSITE=yes
23581fi
23582
23583# Check whether --enable-mitshm was given.
23584if test "${enable_mitshm+set}" = set; then :
23585  enableval=$enable_mitshm; MITSHM=$enableval
23586else
23587  MITSHM=auto
23588fi
23589
23590# Check whether --enable-xres was given.
23591if test "${enable_xres+set}" = set; then :
23592  enableval=$enable_xres; RES=$enableval
23593else
23594  RES=yes
23595fi
23596
23597# Check whether --enable-record was given.
23598if test "${enable_record+set}" = set; then :
23599  enableval=$enable_record; RECORD=$enableval
23600else
23601  RECORD=yes
23602fi
23603
23604# Check whether --enable-xv was given.
23605if test "${enable_xv+set}" = set; then :
23606  enableval=$enable_xv; XV=$enableval
23607else
23608  XV=yes
23609fi
23610
23611# Check whether --enable-xvmc was given.
23612if test "${enable_xvmc+set}" = set; then :
23613  enableval=$enable_xvmc; XVMC=$enableval
23614else
23615  XVMC=yes
23616fi
23617
23618# Check whether --enable-dga was given.
23619if test "${enable_dga+set}" = set; then :
23620  enableval=$enable_dga; DGA=$enableval
23621else
23622  DGA=auto
23623fi
23624
23625# Check whether --enable-screensaver was given.
23626if test "${enable_screensaver+set}" = set; then :
23627  enableval=$enable_screensaver; SCREENSAVER=$enableval
23628else
23629  SCREENSAVER=yes
23630fi
23631
23632# Check whether --enable-xdmcp was given.
23633if test "${enable_xdmcp+set}" = set; then :
23634  enableval=$enable_xdmcp; XDMCP=$enableval
23635else
23636  XDMCP=auto
23637fi
23638
23639# Check whether --enable-xdm-auth-1 was given.
23640if test "${enable_xdm_auth_1+set}" = set; then :
23641  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
23642else
23643  XDMAUTH=auto
23644fi
23645
23646# Check whether --enable-glx was given.
23647if test "${enable_glx+set}" = set; then :
23648  enableval=$enable_glx; GLX=$enableval
23649else
23650  GLX=yes
23651fi
23652
23653# Check whether --enable-dri was given.
23654if test "${enable_dri+set}" = set; then :
23655  enableval=$enable_dri; DRI=$enableval
23656fi
23657
23658# Check whether --enable-dri2 was given.
23659if test "${enable_dri2+set}" = set; then :
23660  enableval=$enable_dri2; DRI2=$enableval
23661else
23662  DRI2=auto
23663fi
23664
23665# Check whether --enable-dri3 was given.
23666if test "${enable_dri3+set}" = set; then :
23667  enableval=$enable_dri3; DRI3=$enableval
23668else
23669  DRI3=auto
23670fi
23671
23672# Check whether --enable-present was given.
23673if test "${enable_present+set}" = set; then :
23674  enableval=$enable_present; PRESENT=$enableval
23675else
23676  PRESENT=yes
23677fi
23678
23679# Check whether --enable-xinerama was given.
23680if test "${enable_xinerama+set}" = set; then :
23681  enableval=$enable_xinerama; XINERAMA=$enableval
23682else
23683  XINERAMA=yes
23684fi
23685
23686# Check whether --enable-xf86vidmode was given.
23687if test "${enable_xf86vidmode+set}" = set; then :
23688  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
23689else
23690  XF86VIDMODE=auto
23691fi
23692
23693# Check whether --enable-xace was given.
23694if test "${enable_xace+set}" = set; then :
23695  enableval=$enable_xace; XACE=$enableval
23696else
23697  XACE=yes
23698fi
23699
23700# Check whether --enable-xselinux was given.
23701if test "${enable_xselinux+set}" = set; then :
23702  enableval=$enable_xselinux; XSELINUX=$enableval
23703else
23704  XSELINUX=no
23705fi
23706
23707# Check whether --enable-xcsecurity was given.
23708if test "${enable_xcsecurity+set}" = set; then :
23709  enableval=$enable_xcsecurity; XCSECURITY=$enableval
23710else
23711  XCSECURITY=no
23712fi
23713
23714# Check whether --enable-dbe was given.
23715if test "${enable_dbe+set}" = set; then :
23716  enableval=$enable_dbe; DBE=$enableval
23717else
23718  DBE=yes
23719fi
23720
23721# Check whether --enable-xf86bigfont was given.
23722if test "${enable_xf86bigfont+set}" = set; then :
23723  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
23724else
23725  XF86BIGFONT=no
23726fi
23727
23728# Check whether --enable-dpms was given.
23729if test "${enable_dpms+set}" = set; then :
23730  enableval=$enable_dpms; DPMSExtension=$enableval
23731else
23732  DPMSExtension=yes
23733fi
23734
23735# Check whether --enable-config-udev was given.
23736if test "${enable_config_udev+set}" = set; then :
23737  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
23738else
23739  CONFIG_UDEV=auto
23740fi
23741
23742# Check whether --enable-config-udev-kms was given.
23743if test "${enable_config_udev_kms+set}" = set; then :
23744  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
23745else
23746  CONFIG_UDEV_KMS=auto
23747fi
23748
23749# Check whether --enable-config-hal was given.
23750if test "${enable_config_hal+set}" = set; then :
23751  enableval=$enable_config_hal; CONFIG_HAL=$enableval
23752else
23753  CONFIG_HAL=auto
23754fi
23755
23756# Check whether --enable-config-wscons was given.
23757if test "${enable_config_wscons+set}" = set; then :
23758  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
23759else
23760  CONFIG_WSCONS=auto
23761fi
23762
23763# Check whether --enable-xfree86-utils was given.
23764if test "${enable_xfree86_utils+set}" = set; then :
23765  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
23766else
23767  XF86UTILS=yes
23768fi
23769
23770# Check whether --enable-vgahw was given.
23771if test "${enable_vgahw+set}" = set; then :
23772  enableval=$enable_vgahw; VGAHW=$enableval
23773else
23774  VGAHW=yes
23775fi
23776
23777# Check whether --enable-int10-module was given.
23778if test "${enable_int10_module+set}" = set; then :
23779  enableval=$enable_int10_module; INT10MODULE=$enableval
23780else
23781  INT10MODULE=yes
23782fi
23783
23784# Check whether --enable-windowsdri was given.
23785if test "${enable_windowsdri+set}" = set; then :
23786  enableval=$enable_windowsdri; WINDOWSDRI=$enableval
23787else
23788  WINDOWSDRI=auto
23789fi
23790
23791# Check whether --enable-libdrm was given.
23792if test "${enable_libdrm+set}" = set; then :
23793  enableval=$enable_libdrm; DRM=$enableval
23794else
23795  DRM=yes
23796fi
23797
23798# Check whether --enable-clientids was given.
23799if test "${enable_clientids+set}" = set; then :
23800  enableval=$enable_clientids; CLIENTIDS=$enableval
23801else
23802  CLIENTIDS=yes
23803fi
23804
23805# Check whether --enable-pciaccess was given.
23806if test "${enable_pciaccess+set}" = set; then :
23807  enableval=$enable_pciaccess; PCI=$enableval
23808else
23809  PCI=yes
23810fi
23811
23812# Check whether --enable-linux_acpi was given.
23813if test "${enable_linux_acpi+set}" = set; then :
23814  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
23815else
23816  enable_linux_acpi=yes
23817fi
23818
23819# Check whether --enable-linux_apm was given.
23820if test "${enable_linux_apm+set}" = set; then :
23821  enableval=$enable_linux_apm; enable_linux_apm=$enableval
23822else
23823  enable_linux_apm=yes
23824fi
23825
23826# Check whether --enable-systemd-logind was given.
23827if test "${enable_systemd_logind+set}" = set; then :
23828  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
23829else
23830  SYSTEMD_LOGIND=auto
23831fi
23832
23833# Check whether --enable-suid-wrapper was given.
23834if test "${enable_suid_wrapper+set}" = set; then :
23835  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
23836else
23837  SUID_WRAPPER=no
23838fi
23839
23840
23841# Check whether --enable-xorg was given.
23842if test "${enable_xorg+set}" = set; then :
23843  enableval=$enable_xorg; XORG=$enableval
23844else
23845  XORG=auto
23846fi
23847
23848# Check whether --enable-xvfb was given.
23849if test "${enable_xvfb+set}" = set; then :
23850  enableval=$enable_xvfb; XVFB=$enableval
23851else
23852  XVFB=yes
23853fi
23854
23855# Check whether --enable-xnest was given.
23856if test "${enable_xnest+set}" = set; then :
23857  enableval=$enable_xnest; XNEST=$enableval
23858else
23859  XNEST=auto
23860fi
23861
23862# Check whether --enable-xquartz was given.
23863if test "${enable_xquartz+set}" = set; then :
23864  enableval=$enable_xquartz; XQUARTZ=$enableval
23865else
23866  XQUARTZ=auto
23867fi
23868
23869# Check whether --enable-standalone-xpbproxy was given.
23870if test "${enable_standalone_xpbproxy+set}" = set; then :
23871  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
23872else
23873  STANDALONE_XPBPROXY=no
23874fi
23875
23876# Check whether --enable-xwin was given.
23877if test "${enable_xwin+set}" = set; then :
23878  enableval=$enable_xwin; XWIN=$enableval
23879else
23880  XWIN=auto
23881fi
23882
23883# Check whether --enable-glamor was given.
23884if test "${enable_glamor+set}" = set; then :
23885  enableval=$enable_glamor; GLAMOR=$enableval
23886else
23887  GLAMOR=auto
23888fi
23889
23890# Check whether --enable-xf86-input-inputtest was given.
23891if test "${enable_xf86_input_inputtest+set}" = set; then :
23892  enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval
23893else
23894  XORG_DRIVER_INPUT_INPUTTEST=yes
23895fi
23896
23897# Check whether --enable-kdrive was given.
23898if test "${enable_kdrive+set}" = set; then :
23899  enableval=$enable_kdrive; KDRIVE=$enableval
23900else
23901  KDRIVE=no
23902fi
23903
23904# Check whether --enable-xephyr was given.
23905if test "${enable_xephyr+set}" = set; then :
23906  enableval=$enable_xephyr; XEPHYR=$enableval
23907else
23908  XEPHYR=auto
23909fi
23910
23911# Check whether --enable-libunwind was given.
23912if test "${enable_libunwind+set}" = set; then :
23913  enableval=$enable_libunwind; LIBUNWIND="$enableval"
23914else
23915  LIBUNWIND="auto"
23916fi
23917
23918# Check whether --enable-xshmfence was given.
23919if test "${enable_xshmfence+set}" = set; then :
23920  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
23921else
23922  XSHMFENCE="auto"
23923fi
23924
23925
23926
23927# Check whether --enable-install-setuid was given.
23928if test "${enable_install_setuid+set}" = set; then :
23929  enableval=$enable_install_setuid; SETUID=$enableval
23930else
23931  SETUID=auto
23932fi
23933
23934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
23935$as_echo_n "checking to see if we can install the Xorg server as root... " >&6; }
23936if test "x$SETUID" = "xauto" ; then
23937	case $host_os in
23938	    cygwin*)		SETUID="no"  ;;
23939	    mingw*)		SETUID="no"  ;;
23940	    darwin*)		SETUID="no"  ;;
23941	    *)
23942	   	case $host_cpu in
23943		    sparc)	SETUID="no"  ;;
23944		    *)		SETUID="yes" ;;
23945		esac
23946	esac
23947	if test "x$SETUID" = xyes; then
23948		touch testfile
23949		chown root testfile > /dev/null 2>&1 || SETUID="no"
23950		rm -f testfile
23951	fi
23952fi
23953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
23954$as_echo "$SETUID" >&6; }
23955 if test "x$SETUID" = "xyes"; then
23956  INSTALL_SETUID_TRUE=
23957  INSTALL_SETUID_FALSE='#'
23958else
23959  INSTALL_SETUID_TRUE='#'
23960  INSTALL_SETUID_FALSE=
23961fi
23962
23963
23964
23965
23966# Transport selection macro from xtrans.m4
23967
23968
23969 case $host_os in
23970	mingw*)	unixdef="no"   ;;
23971	*)	unixdef="yes"  ;;
23972 esac
23973 # Check whether --enable-unix-transport was given.
23974if test "${enable_unix_transport+set}" = set; then :
23975  enableval=$enable_unix_transport; UNIXCONN=$enableval
23976else
23977  UNIXCONN=$unixdef
23978fi
23979
23980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
23981$as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
23982 if test "$UNIXCONN" = "yes"; then
23983
23984$as_echo "#define UNIXCONN 1" >>confdefs.h
23985
23986 fi
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
23988$as_echo "$UNIXCONN" >&6; }
23989 # Check whether --enable-tcp-transport was given.
23990if test "${enable_tcp_transport+set}" = set; then :
23991  enableval=$enable_tcp_transport; TCPCONN=$enableval
23992else
23993  TCPCONN=yes
23994fi
23995
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
23997$as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
23999$as_echo "$TCPCONN" >&6; }
24000 if test "$TCPCONN" = "yes"; then
24001
24002$as_echo "#define TCPCONN 1" >>confdefs.h
24003
24004
24005 # SVR4 hides these in libraries other than libc
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
24007$as_echo_n "checking for library containing socket... " >&6; }
24008if ${ac_cv_search_socket+:} false; then :
24009  $as_echo_n "(cached) " >&6
24010else
24011  ac_func_search_save_LIBS=$LIBS
24012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013/* end confdefs.h.  */
24014
24015/* Override any GCC internal prototype to avoid an error.
24016   Use char because int might match the return type of a GCC
24017   builtin and then its argument prototype would still apply.  */
24018#ifdef __cplusplus
24019extern "C"
24020#endif
24021char socket ();
24022int
24023main ()
24024{
24025return socket ();
24026  ;
24027  return 0;
24028}
24029_ACEOF
24030for ac_lib in '' socket; do
24031  if test -z "$ac_lib"; then
24032    ac_res="none required"
24033  else
24034    ac_res=-l$ac_lib
24035    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24036  fi
24037  if ac_fn_c_try_link "$LINENO"; then :
24038  ac_cv_search_socket=$ac_res
24039fi
24040rm -f core conftest.err conftest.$ac_objext \
24041    conftest$ac_exeext
24042  if ${ac_cv_search_socket+:} false; then :
24043  break
24044fi
24045done
24046if ${ac_cv_search_socket+:} false; then :
24047
24048else
24049  ac_cv_search_socket=no
24050fi
24051rm conftest.$ac_ext
24052LIBS=$ac_func_search_save_LIBS
24053fi
24054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
24055$as_echo "$ac_cv_search_socket" >&6; }
24056ac_res=$ac_cv_search_socket
24057if test "$ac_res" != no; then :
24058  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24059
24060fi
24061
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
24063$as_echo_n "checking for library containing gethostbyname... " >&6; }
24064if ${ac_cv_search_gethostbyname+:} false; then :
24065  $as_echo_n "(cached) " >&6
24066else
24067  ac_func_search_save_LIBS=$LIBS
24068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24069/* end confdefs.h.  */
24070
24071/* Override any GCC internal prototype to avoid an error.
24072   Use char because int might match the return type of a GCC
24073   builtin and then its argument prototype would still apply.  */
24074#ifdef __cplusplus
24075extern "C"
24076#endif
24077char gethostbyname ();
24078int
24079main ()
24080{
24081return gethostbyname ();
24082  ;
24083  return 0;
24084}
24085_ACEOF
24086for ac_lib in '' nsl; do
24087  if test -z "$ac_lib"; then
24088    ac_res="none required"
24089  else
24090    ac_res=-l$ac_lib
24091    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24092  fi
24093  if ac_fn_c_try_link "$LINENO"; then :
24094  ac_cv_search_gethostbyname=$ac_res
24095fi
24096rm -f core conftest.err conftest.$ac_objext \
24097    conftest$ac_exeext
24098  if ${ac_cv_search_gethostbyname+:} false; then :
24099  break
24100fi
24101done
24102if ${ac_cv_search_gethostbyname+:} false; then :
24103
24104else
24105  ac_cv_search_gethostbyname=no
24106fi
24107rm conftest.$ac_ext
24108LIBS=$ac_func_search_save_LIBS
24109fi
24110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
24111$as_echo "$ac_cv_search_gethostbyname" >&6; }
24112ac_res=$ac_cv_search_gethostbyname
24113if test "$ac_res" != no; then :
24114  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24115
24116fi
24117
24118 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
24119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
24120$as_echo_n "checking for main in -lws2_32... " >&6; }
24121if ${ac_cv_lib_ws2_32_main+:} false; then :
24122  $as_echo_n "(cached) " >&6
24123else
24124  ac_check_lib_save_LIBS=$LIBS
24125LIBS="-lws2_32  $LIBS"
24126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24127/* end confdefs.h.  */
24128
24129
24130int
24131main ()
24132{
24133return main ();
24134  ;
24135  return 0;
24136}
24137_ACEOF
24138if ac_fn_c_try_link "$LINENO"; then :
24139  ac_cv_lib_ws2_32_main=yes
24140else
24141  ac_cv_lib_ws2_32_main=no
24142fi
24143rm -f core conftest.err conftest.$ac_objext \
24144    conftest$ac_exeext conftest.$ac_ext
24145LIBS=$ac_check_lib_save_LIBS
24146fi
24147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
24148$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
24149if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
24150  cat >>confdefs.h <<_ACEOF
24151#define HAVE_LIBWS2_32 1
24152_ACEOF
24153
24154  LIBS="-lws2_32 $LIBS"
24155
24156fi
24157
24158 fi
24159
24160 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
24161 # Check whether --enable-ipv6 was given.
24162if test "${enable_ipv6+set}" = set; then :
24163  enableval=$enable_ipv6; IPV6CONN=$enableval
24164else
24165  ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
24166if test "x$ac_cv_func_getaddrinfo" = xyes; then :
24167  IPV6CONN=yes
24168else
24169  IPV6CONN=no
24170fi
24171
24172fi
24173
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
24175$as_echo_n "checking if IPv6 support should be built... " >&6; }
24176 if test "$IPV6CONN" = "yes"; then
24177
24178$as_echo "#define IPv6 1" >>confdefs.h
24179
24180 fi
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
24182$as_echo "$IPV6CONN" >&6; }
24183
24184 # 4.3BSD-Reno added a new member to struct sockaddr_in
24185 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
24186#include <sys/types.h>
24187#include <sys/socket.h>
24188#include <netinet/in.h>
24189
24190"
24191if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
24192
24193$as_echo "#define BSD44SOCKETS 1" >>confdefs.h
24194
24195fi
24196
24197
24198 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
24199 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
24200$ac_includes_default
24201#include <sys/socket.h>
24202"
24203if test "x$ac_cv_type_socklen_t" = xyes; then :
24204
24205cat >>confdefs.h <<_ACEOF
24206#define HAVE_SOCKLEN_T 1
24207_ACEOF
24208
24209
24210fi
24211
24212
24213 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
24214 # _XOPEN_SOURCE to get it (such as on Solaris)
24215 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24216$ac_includes_default
24217#include <sys/socket.h>
24218
24219"
24220if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24221
24222fi
24223
24224 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
24225 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24226     unset ac_cv_member_struct_msghdr_msg_control
24227     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
24228$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
24229     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24230#define _XOPEN_SOURCE 600
24231$ac_includes_default
24232#include <sys/socket.h>
24233
24234"
24235if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24236
24237$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
24238
24239
24240fi
24241
24242 fi
24243 # If that didn't work, fall back to XPG5/UNIX98 with C89
24244 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
24245     unset ac_cv_member_struct_msghdr_msg_control
24246     { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
24247$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
24248     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
24249#define _XOPEN_SOURCE 500
24250$ac_includes_default
24251#include <sys/socket.h>
24252
24253"
24254if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
24255
24256$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
24257
24258
24259fi
24260
24261 fi
24262
24263
24264
24265 fi
24266 case $host_os in
24267	solaris*|sco*|sysv4*)	localdef="yes" ;;
24268	*)			localdef="no"  ;;
24269 esac
24270 # Check whether --enable-local-transport was given.
24271if test "${enable_local_transport+set}" = set; then :
24272  enableval=$enable_local_transport; LOCALCONN=$enableval
24273else
24274  LOCALCONN=$localdef
24275fi
24276
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
24278$as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
24280$as_echo "$LOCALCONN" >&6; }
24281 if test "$LOCALCONN" = "yes"; then
24282
24283$as_echo "#define LOCALCONN 1" >>confdefs.h
24284
24285 fi
24286
24287 # Other functions Xtrans may need
24288 for ac_func in strcasecmp strlcpy
24289do :
24290  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24292if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24293  cat >>confdefs.h <<_ACEOF
24294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24295_ACEOF
24296
24297fi
24298done
24299
24300
24301
24302
24303# Secure RPC detection macro from xtrans.m4
24304
24305 # Check whether --enable-secure-rpc was given.
24306if test "${enable_secure_rpc+set}" = set; then :
24307  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
24308else
24309  SECURE_RPC="try"
24310fi
24311
24312
24313 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
24314	FOUND_SECURE_RPC="no"
24315	for ac_func in authdes_seccreate authdes_create
24316do :
24317  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24318ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24319if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24320  cat >>confdefs.h <<_ACEOF
24321#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24322_ACEOF
24323 FOUND_SECURE_RPC="yes"
24324fi
24325done
24326
24327	if test "x$FOUND_SECURE_RPC" = "xno" ; then
24328		if test "x$SECURE_RPC" = "xyes" ; then
24329	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
24330		fi
24331		SECURE_RPC="no"
24332	else
24333				{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
24334$as_echo_n "checking for library containing getsecretkey... " >&6; }
24335if ${ac_cv_search_getsecretkey+:} false; then :
24336  $as_echo_n "(cached) " >&6
24337else
24338  ac_func_search_save_LIBS=$LIBS
24339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24340/* end confdefs.h.  */
24341
24342/* Override any GCC internal prototype to avoid an error.
24343   Use char because int might match the return type of a GCC
24344   builtin and then its argument prototype would still apply.  */
24345#ifdef __cplusplus
24346extern "C"
24347#endif
24348char getsecretkey ();
24349int
24350main ()
24351{
24352return getsecretkey ();
24353  ;
24354  return 0;
24355}
24356_ACEOF
24357for ac_lib in '' rpcsvc; do
24358  if test -z "$ac_lib"; then
24359    ac_res="none required"
24360  else
24361    ac_res=-l$ac_lib
24362    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24363  fi
24364  if ac_fn_c_try_link "$LINENO"; then :
24365  ac_cv_search_getsecretkey=$ac_res
24366fi
24367rm -f core conftest.err conftest.$ac_objext \
24368    conftest$ac_exeext
24369  if ${ac_cv_search_getsecretkey+:} false; then :
24370  break
24371fi
24372done
24373if ${ac_cv_search_getsecretkey+:} false; then :
24374
24375else
24376  ac_cv_search_getsecretkey=no
24377fi
24378rm conftest.$ac_ext
24379LIBS=$ac_func_search_save_LIBS
24380fi
24381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
24382$as_echo "$ac_cv_search_getsecretkey" >&6; }
24383ac_res=$ac_cv_search_getsecretkey
24384if test "$ac_res" != no; then :
24385  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24386
24387fi
24388
24389		SECURE_RPC="yes"
24390	fi
24391 fi
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
24393$as_echo_n "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
24394 if test "x$SECURE_RPC" = "xyes" ; then
24395
24396$as_echo "#define SECURE_RPC 1" >>confdefs.h
24397
24398 fi
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
24400$as_echo "$SECURE_RPC" >&6; }
24401
24402 if test "x$SECURE_RPC" = xyes; then
24403  SECURE_RPC_TRUE=
24404  SECURE_RPC_FALSE='#'
24405else
24406  SECURE_RPC_TRUE='#'
24407  SECURE_RPC_FALSE=
24408fi
24409
24410
24411 if test "x$INT10" = xvm86; then
24412  INT10_VM86_TRUE=
24413  INT10_VM86_FALSE='#'
24414else
24415  INT10_VM86_TRUE='#'
24416  INT10_VM86_FALSE=
24417fi
24418
24419 if test "x$INT10" = xx86emu; then
24420  INT10_X86EMU_TRUE=
24421  INT10_X86EMU_FALSE='#'
24422else
24423  INT10_X86EMU_TRUE='#'
24424  INT10_X86EMU_FALSE=
24425fi
24426
24427 if test "x$INT10" = xstub; then
24428  INT10_STUB_TRUE=
24429  INT10_STUB_FALSE='#'
24430else
24431  INT10_STUB_TRUE='#'
24432  INT10_STUB_FALSE=
24433fi
24434
24435
24436case $host_os in
24437	cygwin* | mingw*)
24438		CONFIG_HAL=no
24439		CONFIG_UDEV=no
24440		CONFIG_UDEV_KMS=no
24441		DGA=no
24442		DRM=no
24443		DRI2=no
24444		DRI3=no
24445		INT10MODULE=no
24446		PCI=no
24447		VGAHW=no
24448		XF86UTILS=no
24449		XF86VIDMODE=no
24450		XSELINUX=no
24451		SYMBOL_VISIBILITY=no
24452		;;
24453	darwin*)
24454		PCI=no
24455		INT10MODULE=no
24456		VGAHW=no
24457		DRM=no
24458		DRI2=no
24459		DRI3=no
24460
24461		if test x$XQUARTZ = xauto; then
24462			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
24463$as_echo_n "checking whether to build Xquartz... " >&6; }
24464if ${xorg_cv_Carbon_framework+:} false; then :
24465  $as_echo_n "(cached) " >&6
24466else
24467
24468		 		save_LDFLAGS=$LDFLAGS
24469				LDFLAGS="$LDFLAGS -framework Carbon"
24470				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471/* end confdefs.h.  */
24472char FSFindFolder(); int main() { FSFindFolder(); return 0;}
24473_ACEOF
24474if ac_fn_c_try_link "$LINENO"; then :
24475  xorg_cv_Carbon_framework=yes
24476else
24477  xorg_cv_Carbon_framework=no
24478fi
24479rm -f core conftest.err conftest.$ac_objext \
24480    conftest$ac_exeext conftest.$ac_ext
24481			        LDFLAGS=$save_LDFLAGS
24482fi
24483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
24484$as_echo "$xorg_cv_Carbon_framework" >&6; }
24485
24486			if test "X$xorg_cv_Carbon_framework" = Xyes; then
24487				XQUARTZ=yes
24488			else
24489				XQUARTZ=no
24490			fi
24491		fi
24492
24493		if test "x$XQUARTZ" = xyes ; then
24494			XQUARTZ=yes
24495			XVFB=no
24496			XNEST=no
24497
24498			COMPOSITE=no
24499			DGA=no
24500			DPMSExtension=no
24501			XF86VIDMODE=no
24502		fi
24503		;;
24504	gnu*)
24505		DRM=no
24506		DRI2=no
24507		DRI3=no
24508		;;
24509	*) XQUARTZ=no ;;
24510esac
24511
24512XEXT_INC='-I$(top_srcdir)/Xext'
24513XEXT_LIB='$(top_builddir)/Xext/libXext.la'
24514
24515VIDEOPROTO="videoproto"
24516COMPOSITEPROTO="compositeproto >= 0.4"
24517RECORDPROTO="recordproto >= 1.13.99.1"
24518SCRNSAVERPROTO="scrnsaverproto >= 1.1"
24519RESOURCEPROTO="resourceproto >= 1.2.0"
24520DRIPROTO="xf86driproto >= 2.1.0"
24521DRI2PROTO="dri2proto >= 2.8"
24522DRI3PROTO="dri3proto >= 1.2"
24523XINERAMAPROTO="xineramaproto"
24524BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
24525DGAPROTO="xf86dgaproto >= 2.0.99.1"
24526GLPROTO="glproto >= 1.4.17"
24527VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
24528APPLEWMPROTO="applewmproto >= 1.4"
24529LIBXSHMFENCE="xshmfence >= 1.1"
24530
24531XPROTO="xproto >= 7.0.31"
24532RANDRPROTO="randrproto >= 1.6.0"
24533RENDERPROTO="renderproto >= 0.11"
24534XEXTPROTO="xextproto >= 7.2.99.901"
24535INPUTPROTO="inputproto >= 2.3.99.1"
24536KBPROTO="kbproto >= 1.0.3"
24537FONTSPROTO="fontsproto >= 2.1.3"
24538FIXESPROTO="fixesproto >= 6.0"
24539DAMAGEPROTO="damageproto >= 1.1"
24540XCMISCPROTO="xcmiscproto >= 1.2.0"
24541BIGREQSPROTO="bigreqsproto >= 1.1.0"
24542XTRANS="xtrans >= 1.3.5"
24543PRESENTPROTO="presentproto >= 1.2"
24544
24545LIBAPPLEWM="applewm >= 1.4"
24546LIBDRI="dri >= 7.8.0"
24547LIBDRM="libdrm >= 2.4.89"
24548LIBEGL="egl"
24549LIBGBM="gbm >= 10.2.0"
24550LIBGL="gl >= 1.2"
24551LIBXEXT="xext >= 1.0.99.4"
24552LIBXFONT="xfont2 >= 2.0.0"
24553LIBXI="xi >= 1.2.99.1"
24554LIBXTST="xtst >= 1.0.99.2"
24555LIBPCIACCESS="pciaccess >= 0.12.901"
24556LIBUDEV="libudev >= 143"
24557LIBSELINUX="libselinux >= 2.0.86"
24558LIBDBUS="dbus-1 >= 1.0"
24559LIBPIXMAN="pixman-1 >= 0.27.2"
24560LIBXCVT="libxcvt"
24561
24562
24563pkg_failed=no
24564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIXMAN" >&5
24565$as_echo_n "checking for PIXMAN... " >&6; }
24566
24567if test -n "$PIXMAN_CFLAGS"; then
24568    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
24569 elif test -n "$PKG_CONFIG"; then
24570    if test -n "$PKG_CONFIG" && \
24571    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24572  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24573  ac_status=$?
24574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24575  test $ac_status = 0; }; then
24576  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
24577		      test "x$?" != "x0" && pkg_failed=yes
24578else
24579  pkg_failed=yes
24580fi
24581 else
24582    pkg_failed=untried
24583fi
24584if test -n "$PIXMAN_LIBS"; then
24585    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
24586 elif test -n "$PKG_CONFIG"; then
24587    if test -n "$PKG_CONFIG" && \
24588    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
24589  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
24590  ac_status=$?
24591  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24592  test $ac_status = 0; }; then
24593  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
24594		      test "x$?" != "x0" && pkg_failed=yes
24595else
24596  pkg_failed=yes
24597fi
24598 else
24599    pkg_failed=untried
24600fi
24601
24602
24603
24604if test $pkg_failed = yes; then
24605   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24606$as_echo "no" >&6; }
24607
24608if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24609        _pkg_short_errors_supported=yes
24610else
24611        _pkg_short_errors_supported=no
24612fi
24613        if test $_pkg_short_errors_supported = yes; then
24614	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24615        else
24616	        PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
24617        fi
24618	# Put the nasty error message in config.log where it belongs
24619	echo "$PIXMAN_PKG_ERRORS" >&5
24620
24621	as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
24622
24623$PIXMAN_PKG_ERRORS
24624
24625Consider adjusting the PKG_CONFIG_PATH environment variable if you
24626installed software in a non-standard prefix.
24627
24628Alternatively, you may set the environment variables PIXMAN_CFLAGS
24629and PIXMAN_LIBS to avoid the need to call pkg-config.
24630See the pkg-config man page for more details." "$LINENO" 5
24631elif test $pkg_failed = untried; then
24632     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24633$as_echo "no" >&6; }
24634	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24636as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24637is in your PATH or set the PKG_CONFIG environment variable to the full
24638path to pkg-config.
24639
24640Alternatively, you may set the environment variables PIXMAN_CFLAGS
24641and PIXMAN_LIBS to avoid the need to call pkg-config.
24642See the pkg-config man page for more details.
24643
24644To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24645See \`config.log' for more details" "$LINENO" 5; }
24646else
24647	PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
24648	PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
24649        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24650$as_echo "yes" >&6; }
24651
24652fi
24653REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
24654
24655SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN $LIBXCVT"
24656# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
24657
24658
24659ac_fn_c_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h>
24660"
24661if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes; then :
24662  HAVE_RECURSIVE_MUTEX=yes
24663else
24664  HAVE_RECURSIVE_MUTEX=no
24665fi
24666
24667
24668THREAD_DEFAULT=no
24669
24670if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then
24671	THREAD_DEFAULT=yes
24672fi
24673
24674case $host_os in
24675	mingw*) THREAD_DEFAULT=no  ;;
24676	*)
24677esac
24678
24679# Check whether --enable-input-thread was given.
24680if test "${enable_input_thread+set}" = set; then :
24681  enableval=$enable_input_thread; INPUTTHREAD=$enableval
24682else
24683  INPUTTHREAD=$THREAD_DEFAULT
24684fi
24685
24686
24687if test "x$INPUTTHREAD" = "xyes" ; then
24688
24689
24690ac_ext=c
24691ac_cpp='$CPP $CPPFLAGS'
24692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24694ac_compiler_gnu=$ac_cv_c_compiler_gnu
24695
24696ax_pthread_ok=no
24697
24698# We used to check for pthread.h first, but this fails if pthread.h
24699# requires special compiler flags (e.g. on True64 or Sequent).
24700# It gets checked for in the link test anyway.
24701
24702# First of all, check if the user has set any of the PTHREAD_LIBS,
24703# etcetera environment variables, and if threads linking works using
24704# them:
24705if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
24706        save_CFLAGS="$CFLAGS"
24707        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24708        save_LIBS="$LIBS"
24709        LIBS="$PTHREAD_LIBS $LIBS"
24710        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
24711$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
24712        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24713/* end confdefs.h.  */
24714
24715/* Override any GCC internal prototype to avoid an error.
24716   Use char because int might match the return type of a GCC
24717   builtin and then its argument prototype would still apply.  */
24718#ifdef __cplusplus
24719extern "C"
24720#endif
24721char pthread_join ();
24722int
24723main ()
24724{
24725return pthread_join ();
24726  ;
24727  return 0;
24728}
24729_ACEOF
24730if ac_fn_c_try_link "$LINENO"; then :
24731  ax_pthread_ok=yes
24732fi
24733rm -f core conftest.err conftest.$ac_objext \
24734    conftest$ac_exeext conftest.$ac_ext
24735        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24736$as_echo "$ax_pthread_ok" >&6; }
24737        if test x"$ax_pthread_ok" = xno; then
24738                PTHREAD_LIBS=""
24739                PTHREAD_CFLAGS=""
24740        fi
24741        LIBS="$save_LIBS"
24742        CFLAGS="$save_CFLAGS"
24743fi
24744
24745# We must check for the threads library under a number of different
24746# names; the ordering is very important because some systems
24747# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
24748# libraries is broken (non-POSIX).
24749
24750# Create a list of thread flags to try.  Items starting with a "-" are
24751# C compiler flags, and other items are library names, except for "none"
24752# which indicates that we try without any flags at all, and "pthread-config"
24753# which is a program returning the flags for the Pth emulation library.
24754
24755ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
24756
24757# The ordering *is* (sometimes) important.  Some notes on the
24758# individual items follow:
24759
24760# pthreads: AIX (must check this before -lpthread)
24761# none: in case threads are in libc; should be tried before -Kthread and
24762#       other compiler flags to prevent continual compiler warnings
24763# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
24764# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
24765# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
24766# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
24767# -pthreads: Solaris/gcc
24768# -mthreads: Mingw32/gcc, Lynx/gcc
24769# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
24770#      doesn't hurt to check since this sometimes defines pthreads too;
24771#      also defines -D_REENTRANT)
24772#      ... -mt is also the pthreads flag for HP/aCC
24773# pthread: Linux, etcetera
24774# --thread-safe: KAI C++
24775# pthread-config: use pthread-config program (for GNU Pth library)
24776
24777case ${host_os} in
24778        solaris*)
24779
24780        # On Solaris (at least, for some versions), libc contains stubbed
24781        # (non-functional) versions of the pthreads routines, so link-based
24782        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
24783        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
24784        # a function called by this macro, so we could check for that, but
24785        # who knows whether they'll stub that too in a future libc.)  So,
24786        # we'll just look for -pthreads and -lpthread first:
24787
24788        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
24789        ;;
24790
24791        darwin*)
24792        ax_pthread_flags="-pthread $ax_pthread_flags"
24793        ;;
24794	netbsd*)
24795	# use libc stubs, don't link against libpthread, to allow
24796	# dynamic loading
24797	ax_pthread_flags=""
24798	;;
24799esac
24800
24801# Clang doesn't consider unrecognized options an error unless we specify
24802# -Werror. We throw in some extra Clang-specific options to ensure that
24803# this doesn't happen for GCC, which also accepts -Werror.
24804
24805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
24806$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
24807save_CFLAGS="$CFLAGS"
24808ax_pthread_extra_flags="-Werror"
24809CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
24810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24811/* end confdefs.h.  */
24812int foo(void);
24813int
24814main ()
24815{
24816foo()
24817  ;
24818  return 0;
24819}
24820_ACEOF
24821if ac_fn_c_try_compile "$LINENO"; then :
24822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24823$as_echo "yes" >&6; }
24824else
24825  ax_pthread_extra_flags=
24826                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24827$as_echo "no" >&6; }
24828fi
24829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24830CFLAGS="$save_CFLAGS"
24831
24832if test x"$ax_pthread_ok" = xno; then
24833for flag in $ax_pthread_flags; do
24834
24835        case $flag in
24836                none)
24837                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
24838$as_echo_n "checking whether pthreads work without any flags... " >&6; }
24839                ;;
24840
24841                -*)
24842                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
24843$as_echo_n "checking whether pthreads work with $flag... " >&6; }
24844                PTHREAD_CFLAGS="$flag"
24845                ;;
24846
24847                pthread-config)
24848                # Extract the first word of "pthread-config", so it can be a program name with args.
24849set dummy pthread-config; ac_word=$2
24850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24851$as_echo_n "checking for $ac_word... " >&6; }
24852if ${ac_cv_prog_ax_pthread_config+:} false; then :
24853  $as_echo_n "(cached) " >&6
24854else
24855  if test -n "$ax_pthread_config"; then
24856  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
24857else
24858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24859for as_dir in $PATH
24860do
24861  IFS=$as_save_IFS
24862  test -z "$as_dir" && as_dir=.
24863    for ac_exec_ext in '' $ac_executable_extensions; do
24864  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24865    ac_cv_prog_ax_pthread_config="yes"
24866    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24867    break 2
24868  fi
24869done
24870  done
24871IFS=$as_save_IFS
24872
24873  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
24874fi
24875fi
24876ax_pthread_config=$ac_cv_prog_ax_pthread_config
24877if test -n "$ax_pthread_config"; then
24878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
24879$as_echo "$ax_pthread_config" >&6; }
24880else
24881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24882$as_echo "no" >&6; }
24883fi
24884
24885
24886                if test x"$ax_pthread_config" = xno; then continue; fi
24887                PTHREAD_CFLAGS="`pthread-config --cflags`"
24888                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
24889                ;;
24890
24891                *)
24892                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
24893$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
24894                PTHREAD_LIBS="-l$flag"
24895                ;;
24896        esac
24897
24898        save_LIBS="$LIBS"
24899        save_CFLAGS="$CFLAGS"
24900        LIBS="$PTHREAD_LIBS $LIBS"
24901        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
24902
24903        # Check for various functions.  We must include pthread.h,
24904        # since some functions may be macros.  (On the Sequent, we
24905        # need a special flag -Kthread to make this header compile.)
24906        # We check for pthread_join because it is in -lpthread on IRIX
24907        # while pthread_create is in libc.  We check for pthread_attr_init
24908        # due to DEC craziness with -lpthreads.  We check for
24909        # pthread_cleanup_push because it is one of the few pthread
24910        # functions on Solaris that doesn't have a non-functional libc stub.
24911        # We try pthread_create on general principles.
24912        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24913/* end confdefs.h.  */
24914#include <pthread.h>
24915                        static void routine(void *a) { a = 0; }
24916                        static void *start_routine(void *a) { return a; }
24917int
24918main ()
24919{
24920pthread_t th; pthread_attr_t attr;
24921                        pthread_create(&th, 0, start_routine, 0);
24922                        pthread_join(th, 0);
24923                        pthread_attr_init(&attr);
24924                        pthread_cleanup_push(routine, 0);
24925                        pthread_cleanup_pop(0) /* ; */
24926  ;
24927  return 0;
24928}
24929_ACEOF
24930if ac_fn_c_try_link "$LINENO"; then :
24931  ax_pthread_ok=yes
24932fi
24933rm -f core conftest.err conftest.$ac_objext \
24934    conftest$ac_exeext conftest.$ac_ext
24935
24936        LIBS="$save_LIBS"
24937        CFLAGS="$save_CFLAGS"
24938
24939        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
24940$as_echo "$ax_pthread_ok" >&6; }
24941        if test "x$ax_pthread_ok" = xyes; then
24942                break;
24943        fi
24944
24945        PTHREAD_LIBS=""
24946        PTHREAD_CFLAGS=""
24947done
24948fi
24949
24950# Various other checks:
24951if test "x$ax_pthread_ok" = xyes; then
24952        save_LIBS="$LIBS"
24953        LIBS="$PTHREAD_LIBS $LIBS"
24954        save_CFLAGS="$CFLAGS"
24955        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
24956
24957        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
24958        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
24959$as_echo_n "checking for joinable pthread attribute... " >&6; }
24960        attr_name=unknown
24961        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
24962            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24963/* end confdefs.h.  */
24964#include <pthread.h>
24965int
24966main ()
24967{
24968int attr = $attr; return attr /* ; */
24969  ;
24970  return 0;
24971}
24972_ACEOF
24973if ac_fn_c_try_link "$LINENO"; then :
24974  attr_name=$attr; break
24975fi
24976rm -f core conftest.err conftest.$ac_objext \
24977    conftest$ac_exeext conftest.$ac_ext
24978        done
24979        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
24980$as_echo "$attr_name" >&6; }
24981        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
24982
24983cat >>confdefs.h <<_ACEOF
24984#define PTHREAD_CREATE_JOINABLE $attr_name
24985_ACEOF
24986
24987        fi
24988
24989        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
24990$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
24991        flag=no
24992        case ${host_os} in
24993            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
24994            osf* | hpux*) flag="-D_REENTRANT";;
24995            solaris*)
24996            if test "$GCC" = "yes"; then
24997                flag="-D_REENTRANT"
24998            else
24999                # TODO: What about Clang on Solaris?
25000                flag="-mt -D_REENTRANT"
25001            fi
25002            ;;
25003        esac
25004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
25005$as_echo "$flag" >&6; }
25006        if test "x$flag" != xno; then
25007            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
25008        fi
25009
25010        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
25011$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
25012if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
25013  $as_echo_n "(cached) " >&6
25014else
25015
25016                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25017/* end confdefs.h.  */
25018#include <pthread.h>
25019int
25020main ()
25021{
25022int i = PTHREAD_PRIO_INHERIT;
25023  ;
25024  return 0;
25025}
25026_ACEOF
25027if ac_fn_c_try_link "$LINENO"; then :
25028  ax_cv_PTHREAD_PRIO_INHERIT=yes
25029else
25030  ax_cv_PTHREAD_PRIO_INHERIT=no
25031fi
25032rm -f core conftest.err conftest.$ac_objext \
25033    conftest$ac_exeext conftest.$ac_ext
25034
25035fi
25036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
25037$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
25038        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
25039
25040$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
25041
25042fi
25043
25044        LIBS="$save_LIBS"
25045        CFLAGS="$save_CFLAGS"
25046
25047        # More AIX lossage: compile with *_r variant
25048        if test "x$GCC" != xyes; then
25049            case $host_os in
25050                aix*)
25051                case "x/$CC" in #(
25052  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
25053    #handle absolute path differently from PATH based program lookup
25054                   case "x$CC" in #(
25055  x/*) :
25056    if as_fn_executable_p ${CC}_r; then :
25057  PTHREAD_CC="${CC}_r"
25058fi ;; #(
25059  *) :
25060    for ac_prog in ${CC}_r
25061do
25062  # Extract the first word of "$ac_prog", so it can be a program name with args.
25063set dummy $ac_prog; ac_word=$2
25064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25065$as_echo_n "checking for $ac_word... " >&6; }
25066if ${ac_cv_prog_PTHREAD_CC+:} false; then :
25067  $as_echo_n "(cached) " >&6
25068else
25069  if test -n "$PTHREAD_CC"; then
25070  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
25071else
25072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25073for as_dir in $PATH
25074do
25075  IFS=$as_save_IFS
25076  test -z "$as_dir" && as_dir=.
25077    for ac_exec_ext in '' $ac_executable_extensions; do
25078  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25079    ac_cv_prog_PTHREAD_CC="$ac_prog"
25080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25081    break 2
25082  fi
25083done
25084  done
25085IFS=$as_save_IFS
25086
25087fi
25088fi
25089PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
25090if test -n "$PTHREAD_CC"; then
25091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
25092$as_echo "$PTHREAD_CC" >&6; }
25093else
25094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25095$as_echo "no" >&6; }
25096fi
25097
25098
25099  test -n "$PTHREAD_CC" && break
25100done
25101test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25102 ;;
25103esac ;; #(
25104  *) :
25105     ;;
25106esac
25107                ;;
25108            esac
25109        fi
25110fi
25111
25112test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
25113
25114
25115
25116
25117
25118# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
25119if test x"$ax_pthread_ok" = xyes; then
25120
25121$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
25122
25123        :
25124else
25125        ax_pthread_ok=no
25126        as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5
25127fi
25128ac_ext=c
25129ac_cpp='$CPP $CPPFLAGS'
25130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25132ac_compiler_gnu=$ac_cv_c_compiler_gnu
25133
25134
25135    SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS"
25136    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
25137
25138$as_echo "#define INPUTTHREAD 1" >>confdefs.h
25139
25140
25141    save_LIBS="$LIBS"
25142    LIBS="$LIBS $SYS_LIBS"
25143        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5
25144$as_echo_n "checking for pthread_setname_np(const char*)... " >&6; }
25145    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146/* end confdefs.h.  */
25147#include <pthread.h>
25148int
25149main ()
25150{
25151pthread_setname_np("example")
25152  ;
25153  return 0;
25154}
25155_ACEOF
25156if ac_fn_c_try_link "$LINENO"; then :
25157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25158$as_echo "yes" >&6; }
25159
25160$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
25161
25162else
25163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25164$as_echo "no" >&6; }
25165fi
25166rm -f core conftest.err conftest.$ac_objext \
25167    conftest$ac_exeext conftest.$ac_ext
25168        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5
25169$as_echo_n "checking for pthread_setname_np(pthread_t, const char*)... " >&6; }
25170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171/* end confdefs.h.  */
25172#include <pthread.h>
25173int
25174main ()
25175{
25176pthread_setname_np(pthread_self(), "example")
25177  ;
25178  return 0;
25179}
25180_ACEOF
25181if ac_fn_c_try_link "$LINENO"; then :
25182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25183$as_echo "yes" >&6; }
25184
25185$as_echo "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
25186
25187else
25188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25189$as_echo "no" >&6; }
25190fi
25191rm -f core conftest.err conftest.$ac_objext \
25192    conftest$ac_exeext conftest.$ac_ext
25193    LIBS="$save_LIBS"
25194fi
25195
25196REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
25197
25198LIBSYSTEMD="libsystemd >= 209"
25199
25200# Check whether --with-systemd-daemon was given.
25201if test "${with_systemd_daemon+set}" = set; then :
25202  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
25203else
25204  WITH_SYSTEMD_DAEMON=auto
25205fi
25206
25207if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
25208
25209pkg_failed=no
25210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25211$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25212
25213if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25214    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25215 elif test -n "$PKG_CONFIG"; then
25216    if test -n "$PKG_CONFIG" && \
25217    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
25218  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
25219  ac_status=$?
25220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25221  test $ac_status = 0; }; then
25222  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
25223		      test "x$?" != "x0" && pkg_failed=yes
25224else
25225  pkg_failed=yes
25226fi
25227 else
25228    pkg_failed=untried
25229fi
25230if test -n "$SYSTEMD_DAEMON_LIBS"; then
25231    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25232 elif test -n "$PKG_CONFIG"; then
25233    if test -n "$PKG_CONFIG" && \
25234    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
25235  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
25236  ac_status=$?
25237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25238  test $ac_status = 0; }; then
25239  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
25240		      test "x$?" != "x0" && pkg_failed=yes
25241else
25242  pkg_failed=yes
25243fi
25244 else
25245    pkg_failed=untried
25246fi
25247
25248
25249
25250if test $pkg_failed = yes; then
25251   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25252$as_echo "no" >&6; }
25253
25254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25255        _pkg_short_errors_supported=yes
25256else
25257        _pkg_short_errors_supported=no
25258fi
25259        if test $_pkg_short_errors_supported = yes; then
25260	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
25261        else
25262	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
25263        fi
25264	# Put the nasty error message in config.log where it belongs
25265	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25266
25267
25268pkg_failed=no
25269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25270$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25271
25272if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25273    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25274 elif test -n "$PKG_CONFIG"; then
25275    if test -n "$PKG_CONFIG" && \
25276    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25277  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25278  ac_status=$?
25279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25280  test $ac_status = 0; }; then
25281  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25282		      test "x$?" != "x0" && pkg_failed=yes
25283else
25284  pkg_failed=yes
25285fi
25286 else
25287    pkg_failed=untried
25288fi
25289if test -n "$SYSTEMD_DAEMON_LIBS"; then
25290    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25291 elif test -n "$PKG_CONFIG"; then
25292    if test -n "$PKG_CONFIG" && \
25293    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25294  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25295  ac_status=$?
25296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25297  test $ac_status = 0; }; then
25298  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25299		      test "x$?" != "x0" && pkg_failed=yes
25300else
25301  pkg_failed=yes
25302fi
25303 else
25304    pkg_failed=untried
25305fi
25306
25307
25308
25309if test $pkg_failed = yes; then
25310   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25311$as_echo "no" >&6; }
25312
25313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25314        _pkg_short_errors_supported=yes
25315else
25316        _pkg_short_errors_supported=no
25317fi
25318        if test $_pkg_short_errors_supported = yes; then
25319	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25320        else
25321	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25322        fi
25323	# Put the nasty error message in config.log where it belongs
25324	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25325
25326	HAVE_SYSTEMD_DAEMON=no
25327elif test $pkg_failed = untried; then
25328     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25329$as_echo "no" >&6; }
25330	HAVE_SYSTEMD_DAEMON=no
25331else
25332	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25333	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25334        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25335$as_echo "yes" >&6; }
25336	HAVE_SYSTEMD_DAEMON=yes;
25337					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25338fi
25339elif test $pkg_failed = untried; then
25340     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25341$as_echo "no" >&6; }
25342
25343pkg_failed=no
25344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD_DAEMON" >&5
25345$as_echo_n "checking for SYSTEMD_DAEMON... " >&6; }
25346
25347if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
25348    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
25349 elif test -n "$PKG_CONFIG"; then
25350    if test -n "$PKG_CONFIG" && \
25351    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25352  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25353  ac_status=$?
25354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355  test $ac_status = 0; }; then
25356  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
25357		      test "x$?" != "x0" && pkg_failed=yes
25358else
25359  pkg_failed=yes
25360fi
25361 else
25362    pkg_failed=untried
25363fi
25364if test -n "$SYSTEMD_DAEMON_LIBS"; then
25365    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
25366 elif test -n "$PKG_CONFIG"; then
25367    if test -n "$PKG_CONFIG" && \
25368    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
25369  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
25370  ac_status=$?
25371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372  test $ac_status = 0; }; then
25373  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
25374		      test "x$?" != "x0" && pkg_failed=yes
25375else
25376  pkg_failed=yes
25377fi
25378 else
25379    pkg_failed=untried
25380fi
25381
25382
25383
25384if test $pkg_failed = yes; then
25385   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25386$as_echo "no" >&6; }
25387
25388if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25389        _pkg_short_errors_supported=yes
25390else
25391        _pkg_short_errors_supported=no
25392fi
25393        if test $_pkg_short_errors_supported = yes; then
25394	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25395        else
25396	        SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
25397        fi
25398	# Put the nasty error message in config.log where it belongs
25399	echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
25400
25401	HAVE_SYSTEMD_DAEMON=no
25402elif test $pkg_failed = untried; then
25403     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25404$as_echo "no" >&6; }
25405	HAVE_SYSTEMD_DAEMON=no
25406else
25407	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25408	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25409        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25410$as_echo "yes" >&6; }
25411	HAVE_SYSTEMD_DAEMON=yes;
25412					      LIBSYSTEMD_DAEMON=libsystemd-daemon
25413fi
25414else
25415	SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
25416	SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
25417        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25418$as_echo "yes" >&6; }
25419	HAVE_SYSTEMD_DAEMON=yes;
25420			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
25421fi
25422	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
25423
25424$as_echo "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
25425
25426		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
25427	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
25428		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
25429	fi
25430fi
25431 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
25432  HAVE_SYSTEMD_DAEMON_TRUE=
25433  HAVE_SYSTEMD_DAEMON_FALSE='#'
25434else
25435  HAVE_SYSTEMD_DAEMON_TRUE='#'
25436  HAVE_SYSTEMD_DAEMON_FALSE=
25437fi
25438
25439
25440if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
25441	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
25442fi
25443
25444
25445pkg_failed=no
25446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
25447$as_echo_n "checking for UDEV... " >&6; }
25448
25449if test -n "$UDEV_CFLAGS"; then
25450    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
25451 elif test -n "$PKG_CONFIG"; then
25452    if test -n "$PKG_CONFIG" && \
25453    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25454  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25455  ac_status=$?
25456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25457  test $ac_status = 0; }; then
25458  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
25459		      test "x$?" != "x0" && pkg_failed=yes
25460else
25461  pkg_failed=yes
25462fi
25463 else
25464    pkg_failed=untried
25465fi
25466if test -n "$UDEV_LIBS"; then
25467    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
25468 elif test -n "$PKG_CONFIG"; then
25469    if test -n "$PKG_CONFIG" && \
25470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
25471  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
25472  ac_status=$?
25473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474  test $ac_status = 0; }; then
25475  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
25476		      test "x$?" != "x0" && pkg_failed=yes
25477else
25478  pkg_failed=yes
25479fi
25480 else
25481    pkg_failed=untried
25482fi
25483
25484
25485
25486if test $pkg_failed = yes; then
25487   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25488$as_echo "no" >&6; }
25489
25490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25491        _pkg_short_errors_supported=yes
25492else
25493        _pkg_short_errors_supported=no
25494fi
25495        if test $_pkg_short_errors_supported = yes; then
25496	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25497        else
25498	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
25499        fi
25500	# Put the nasty error message in config.log where it belongs
25501	echo "$UDEV_PKG_ERRORS" >&5
25502
25503	HAVE_LIBUDEV=no
25504elif test $pkg_failed = untried; then
25505     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25506$as_echo "no" >&6; }
25507	HAVE_LIBUDEV=no
25508else
25509	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
25510	UDEV_LIBS=$pkg_cv_UDEV_LIBS
25511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25512$as_echo "yes" >&6; }
25513	HAVE_LIBUDEV=yes
25514fi
25515if test "x$CONFIG_UDEV" = xauto; then
25516	CONFIG_UDEV="$HAVE_LIBUDEV"
25517fi
25518 if test "x$CONFIG_UDEV" = xyes; then
25519  CONFIG_UDEV_TRUE=
25520  CONFIG_UDEV_FALSE='#'
25521else
25522  CONFIG_UDEV_TRUE='#'
25523  CONFIG_UDEV_FALSE=
25524fi
25525
25526if test "x$CONFIG_UDEV" = xyes; then
25527	CONFIG_HAL=no
25528	if test "x$CONFIG_UDEV_KMS" = xauto; then
25529		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
25530	fi
25531	if ! test "x$HAVE_LIBUDEV" = xyes; then
25532		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
25533	fi
25534
25535$as_echo "#define CONFIG_UDEV 1" >>confdefs.h
25536
25537	if test "x$CONFIG_UDEV_KMS" = xyes; then
25538
25539$as_echo "#define CONFIG_UDEV_KMS 1" >>confdefs.h
25540
25541	fi
25542	SAVE_LIBS=$LIBS
25543	SAVE_CFLAGS=$CFLAGS
25544	CFLAGS="$CFLAGS $UDEV_CFLAGS"
25545	LIBS=$UDEV_LIBS
25546	for ac_func in udev_monitor_filter_add_match_tag
25547do :
25548  ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
25549if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes; then :
25550  cat >>confdefs.h <<_ACEOF
25551#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1
25552_ACEOF
25553
25554fi
25555done
25556
25557	for ac_func in udev_enumerate_add_match_tag
25558do :
25559  ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
25560if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes; then :
25561  cat >>confdefs.h <<_ACEOF
25562#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1
25563_ACEOF
25564
25565fi
25566done
25567
25568	LIBS=$SAVE_LIBS
25569	CFLAGS=$SAVE_CFLAGS
25570fi
25571 if test "x$CONFIG_UDEV_KMS" = xyes; then
25572  CONFIG_UDEV_KMS_TRUE=
25573  CONFIG_UDEV_KMS_FALSE='#'
25574else
25575  CONFIG_UDEV_KMS_TRUE='#'
25576  CONFIG_UDEV_KMS_FALSE=
25577fi
25578
25579
25580
25581pkg_failed=no
25582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
25583$as_echo_n "checking for DBUS... " >&6; }
25584
25585if test -n "$DBUS_CFLAGS"; then
25586    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
25587 elif test -n "$PKG_CONFIG"; then
25588    if test -n "$PKG_CONFIG" && \
25589    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25590  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25591  ac_status=$?
25592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25593  test $ac_status = 0; }; then
25594  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
25595		      test "x$?" != "x0" && pkg_failed=yes
25596else
25597  pkg_failed=yes
25598fi
25599 else
25600    pkg_failed=untried
25601fi
25602if test -n "$DBUS_LIBS"; then
25603    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
25604 elif test -n "$PKG_CONFIG"; then
25605    if test -n "$PKG_CONFIG" && \
25606    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
25607  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
25608  ac_status=$?
25609  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25610  test $ac_status = 0; }; then
25611  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
25612		      test "x$?" != "x0" && pkg_failed=yes
25613else
25614  pkg_failed=yes
25615fi
25616 else
25617    pkg_failed=untried
25618fi
25619
25620
25621
25622if test $pkg_failed = yes; then
25623   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25624$as_echo "no" >&6; }
25625
25626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25627        _pkg_short_errors_supported=yes
25628else
25629        _pkg_short_errors_supported=no
25630fi
25631        if test $_pkg_short_errors_supported = yes; then
25632	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25633        else
25634	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
25635        fi
25636	# Put the nasty error message in config.log where it belongs
25637	echo "$DBUS_PKG_ERRORS" >&5
25638
25639	HAVE_DBUS=no
25640elif test $pkg_failed = untried; then
25641     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25642$as_echo "no" >&6; }
25643	HAVE_DBUS=no
25644else
25645	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
25646	DBUS_LIBS=$pkg_cv_DBUS_LIBS
25647        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25648$as_echo "yes" >&6; }
25649	HAVE_DBUS=yes
25650fi
25651if test "x$HAVE_DBUS" = xyes; then
25652
25653$as_echo "#define HAVE_DBUS 1" >>confdefs.h
25654
25655fi
25656 if test "x$HAVE_DBUS" = xyes; then
25657  HAVE_DBUS_TRUE=
25658  HAVE_DBUS_FALSE='#'
25659else
25660  HAVE_DBUS_TRUE='#'
25661  HAVE_DBUS_FALSE=
25662fi
25663
25664
25665
25666pkg_failed=no
25667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL" >&5
25668$as_echo_n "checking for HAL... " >&6; }
25669
25670if test -n "$HAL_CFLAGS"; then
25671    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
25672 elif test -n "$PKG_CONFIG"; then
25673    if test -n "$PKG_CONFIG" && \
25674    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25675  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25676  ac_status=$?
25677  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25678  test $ac_status = 0; }; then
25679  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
25680		      test "x$?" != "x0" && pkg_failed=yes
25681else
25682  pkg_failed=yes
25683fi
25684 else
25685    pkg_failed=untried
25686fi
25687if test -n "$HAL_LIBS"; then
25688    pkg_cv_HAL_LIBS="$HAL_LIBS"
25689 elif test -n "$PKG_CONFIG"; then
25690    if test -n "$PKG_CONFIG" && \
25691    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
25692  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
25693  ac_status=$?
25694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25695  test $ac_status = 0; }; then
25696  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
25697		      test "x$?" != "x0" && pkg_failed=yes
25698else
25699  pkg_failed=yes
25700fi
25701 else
25702    pkg_failed=untried
25703fi
25704
25705
25706
25707if test $pkg_failed = yes; then
25708   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25709$as_echo "no" >&6; }
25710
25711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25712        _pkg_short_errors_supported=yes
25713else
25714        _pkg_short_errors_supported=no
25715fi
25716        if test $_pkg_short_errors_supported = yes; then
25717	        HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
25718        else
25719	        HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
25720        fi
25721	# Put the nasty error message in config.log where it belongs
25722	echo "$HAL_PKG_ERRORS" >&5
25723
25724	HAVE_HAL=no
25725elif test $pkg_failed = untried; then
25726     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25727$as_echo "no" >&6; }
25728	HAVE_HAL=no
25729else
25730	HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
25731	HAL_LIBS=$pkg_cv_HAL_LIBS
25732        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25733$as_echo "yes" >&6; }
25734	HAVE_HAL=yes
25735fi
25736if test "x$CONFIG_HAL" = xauto; then
25737	CONFIG_HAL="$HAVE_HAL"
25738fi
25739if test "x$CONFIG_HAL" = xyes; then
25740	if ! test "x$HAVE_HAL" = xyes; then
25741		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
25742	fi
25743
25744
25745$as_echo "#define CONFIG_HAL 1" >>confdefs.h
25746
25747	NEED_DBUS="yes"
25748fi
25749 if test "x$CONFIG_HAL" = xyes; then
25750  CONFIG_HAL_TRUE=
25751  CONFIG_HAL_FALSE='#'
25752else
25753  CONFIG_HAL_TRUE='#'
25754  CONFIG_HAL_FALSE=
25755fi
25756
25757
25758if test "x$SYSTEMD_LOGIND" = xauto; then
25759        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
25760                SYSTEMD_LOGIND=yes
25761        else
25762                SYSTEMD_LOGIND=no
25763        fi
25764fi
25765if test "x$SYSTEMD_LOGIND" = xyes; then
25766        if ! test "x$HAVE_DBUS" = xyes; then
25767                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
25768        fi
25769        if ! test "x$CONFIG_UDEV" = xyes ; then
25770                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
25771        fi
25772
25773
25774$as_echo "#define SYSTEMD_LOGIND 1" >>confdefs.h
25775
25776        NEED_DBUS="yes"
25777fi
25778 if test "x$SYSTEMD_LOGIND" = xyes; then
25779  SYSTEMD_LOGIND_TRUE=
25780  SYSTEMD_LOGIND_FALSE='#'
25781else
25782  SYSTEMD_LOGIND_TRUE='#'
25783  SYSTEMD_LOGIND_FALSE=
25784fi
25785
25786
25787if test "x$SUID_WRAPPER" = xyes; then
25788
25789  prefix_NONE=
25790  exec_prefix_NONE=
25791  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
25792  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
25793  eval ac_define_dir="\"$libexecdir\""
25794  eval ac_define_dir="\"$ac_define_dir\""
25795  SUID_WRAPPER_DIR="$ac_define_dir"
25796
25797
25798cat >>confdefs.h <<_ACEOF
25799#define SUID_WRAPPER_DIR "$ac_define_dir"
25800_ACEOF
25801
25802  test "$prefix_NONE" && prefix=NONE
25803  test "$exec_prefix_NONE" && exec_prefix=NONE
25804
25805        SETUID="no"
25806fi
25807 if test "x$SUID_WRAPPER" = xyes; then
25808  SUID_WRAPPER_TRUE=
25809  SUID_WRAPPER_FALSE='#'
25810else
25811  SUID_WRAPPER_TRUE='#'
25812  SUID_WRAPPER_FALSE=
25813fi
25814
25815
25816if test "x$NEED_DBUS" = xyes; then
25817
25818$as_echo "#define NEED_DBUS 1" >>confdefs.h
25819
25820fi
25821 if test "x$NEED_DBUS" = xyes; then
25822  NEED_DBUS_TRUE=
25823  NEED_DBUS_FALSE='#'
25824else
25825  NEED_DBUS_TRUE='#'
25826  NEED_DBUS_FALSE=
25827fi
25828
25829
25830if test "x$CONFIG_WSCONS" = xauto; then
25831	case $host_os in
25832		*openbsd*)
25833			CONFIG_WSCONS=yes;
25834			;;
25835		*)
25836			CONFIG_WSCONS=no;
25837			;;
25838	esac
25839fi
25840 if test "x$CONFIG_WSCONS" = xyes; then
25841  CONFIG_WSCONS_TRUE=
25842  CONFIG_WSCONS_FALSE='#'
25843else
25844  CONFIG_WSCONS_TRUE='#'
25845  CONFIG_WSCONS_FALSE=
25846fi
25847
25848if test "x$CONFIG_WSCONS" = xyes; then
25849
25850$as_echo "#define CONFIG_WSCONS 1" >>confdefs.h
25851
25852fi
25853
25854
25855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
25856$as_echo_n "checking for glibc...... " >&6; }
25857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25858/* end confdefs.h.  */
25859
25860#include <features.h>
25861#ifndef __GLIBC__
25862#error
25863#endif
25864
25865_ACEOF
25866if ac_fn_c_try_cpp "$LINENO"; then :
25867  glibc=yes
25868else
25869  glibc=no
25870fi
25871rm -f conftest.err conftest.i conftest.$ac_ext
25872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
25873$as_echo "$glibc" >&6; }
25874
25875for ac_func in clock_gettime
25876do :
25877  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25878if test "x$ac_cv_func_clock_gettime" = xyes; then :
25879  cat >>confdefs.h <<_ACEOF
25880#define HAVE_CLOCK_GETTIME 1
25881_ACEOF
25882 have_clock_gettime=yes
25883else
25884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25885$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25886if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25887  $as_echo_n "(cached) " >&6
25888else
25889  ac_check_lib_save_LIBS=$LIBS
25890LIBS="-lrt  $LIBS"
25891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25892/* end confdefs.h.  */
25893
25894/* Override any GCC internal prototype to avoid an error.
25895   Use char because int might match the return type of a GCC
25896   builtin and then its argument prototype would still apply.  */
25897#ifdef __cplusplus
25898extern "C"
25899#endif
25900char clock_gettime ();
25901int
25902main ()
25903{
25904return clock_gettime ();
25905  ;
25906  return 0;
25907}
25908_ACEOF
25909if ac_fn_c_try_link "$LINENO"; then :
25910  ac_cv_lib_rt_clock_gettime=yes
25911else
25912  ac_cv_lib_rt_clock_gettime=no
25913fi
25914rm -f core conftest.err conftest.$ac_objext \
25915    conftest$ac_exeext conftest.$ac_ext
25916LIBS=$ac_check_lib_save_LIBS
25917fi
25918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25919$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25920if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25921  have_clock_gettime=-lrt
25922else
25923  have_clock_gettime=no
25924fi
25925
25926fi
25927done
25928
25929
25930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
25931$as_echo_n "checking for a useful monotonic clock ...... " >&6; }
25932
25933if ! test "x$have_clock_gettime" = xno; then
25934    if ! test "x$have_clock_gettime" = xyes; then
25935        CLOCK_LIBS="$have_clock_gettime"
25936    else
25937        CLOCK_LIBS=""
25938    fi
25939
25940    LIBS_SAVE="$LIBS"
25941    LIBS="$CLOCK_LIBS"
25942    CPPFLAGS_SAVE="$CPPFLAGS"
25943
25944    if test x"$glibc" = xyes; then
25945        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
25946    fi
25947
25948    if test "$cross_compiling" = yes; then :
25949  MONOTONIC_CLOCK="cross compiling"
25950else
25951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25952/* end confdefs.h.  */
25953
25954#include <time.h>
25955
25956int main(int argc, char *argv[]) {
25957    struct timespec tp;
25958
25959    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
25960        return 0;
25961    else
25962        return 1;
25963}
25964
25965_ACEOF
25966if ac_fn_c_try_run "$LINENO"; then :
25967  MONOTONIC_CLOCK=yes
25968else
25969  MONOTONIC_CLOCK=no
25970fi
25971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25972  conftest.$ac_objext conftest.beam conftest.$ac_ext
25973fi
25974
25975
25976    if test "$MONOTONIC_CLOCK" = "cross compiling"; then
25977        ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
25978"
25979if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
25980  MONOTONIC_CLOCK="guessing yes"
25981else
25982  MONOTONIC_CLOCK=no
25983fi
25984
25985    fi
25986
25987    LIBS="$LIBS_SAVE"
25988    CPPFLAGS="$CPPFLAGS_SAVE"
25989else
25990    MONOTONIC_CLOCK=no
25991fi
25992
25993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
25994$as_echo "$MONOTONIC_CLOCK" >&6; }
25995if test "$MONOTONIC_CLOCK" = "guessing yes"; then
25996	MONOTONIC_CLOCK=yes
25997fi
25998
25999if test "x$MONOTONIC_CLOCK" = xyes; then
26000
26001$as_echo "#define MONOTONIC_CLOCK 1" >>confdefs.h
26002
26003    LIBS="$LIBS $CLOCK_LIBS"
26004fi
26005
26006 if test "x$XV" = xyes; then
26007  XV_TRUE=
26008  XV_FALSE='#'
26009else
26010  XV_TRUE='#'
26011  XV_FALSE=
26012fi
26013
26014if test "x$XV" = xyes; then
26015
26016$as_echo "#define XV 1" >>confdefs.h
26017
26018
26019$as_echo "#define XvExtension 1" >>confdefs.h
26020
26021	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
26022	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
26023else
26024	XVMC=no
26025fi
26026
26027 if test "x$XVMC" = xyes; then
26028  XVMC_TRUE=
26029  XVMC_FALSE='#'
26030else
26031  XVMC_TRUE='#'
26032  XVMC_FALSE=
26033fi
26034
26035if test "x$XVMC" = xyes; then
26036
26037$as_echo "#define XvMCExtension 1" >>confdefs.h
26038
26039fi
26040
26041 if test "x$COMPOSITE" = xyes; then
26042  COMPOSITE_TRUE=
26043  COMPOSITE_FALSE='#'
26044else
26045  COMPOSITE_TRUE='#'
26046  COMPOSITE_FALSE=
26047fi
26048
26049if test "x$COMPOSITE" = xyes; then
26050
26051$as_echo "#define COMPOSITE 1" >>confdefs.h
26052
26053	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
26054	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
26055	COMPOSITE_INC='-I$(top_srcdir)/composite'
26056fi
26057
26058if test "x$MITSHM" = xauto; then
26059	MITSHM="$ac_cv_sysv_ipc"
26060fi
26061 if test "x$MITSHM" = xyes; then
26062  MITSHM_TRUE=
26063  MITSHM_FALSE='#'
26064else
26065  MITSHM_TRUE='#'
26066  MITSHM_FALSE=
26067fi
26068
26069if test "x$MITSHM" = xyes; then
26070
26071$as_echo "#define MITSHM 1" >>confdefs.h
26072
26073
26074$as_echo "#define HAS_SHM 1" >>confdefs.h
26075
26076fi
26077
26078 if test "x$RECORD" = xyes; then
26079  RECORD_TRUE=
26080  RECORD_FALSE='#'
26081else
26082  RECORD_TRUE='#'
26083  RECORD_FALSE=
26084fi
26085
26086if test "x$RECORD" = xyes; then
26087
26088$as_echo "#define XRECORD 1" >>confdefs.h
26089
26090	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
26091	RECORD_LIB='$(top_builddir)/record/librecord.la'
26092fi
26093
26094 if test "x$SCREENSAVER" = xyes; then
26095  SCREENSAVER_TRUE=
26096  SCREENSAVER_FALSE='#'
26097else
26098  SCREENSAVER_TRUE='#'
26099  SCREENSAVER_FALSE=
26100fi
26101
26102if test "x$SCREENSAVER" = xyes; then
26103
26104$as_echo "#define SCREENSAVER 1" >>confdefs.h
26105
26106	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
26107	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
26108fi
26109
26110HASHTABLE=no
26111 if test "x$RES" = xyes; then
26112  RES_TRUE=
26113  RES_FALSE='#'
26114else
26115  RES_TRUE='#'
26116  RES_FALSE=
26117fi
26118
26119if test "x$RES" = xyes; then
26120
26121$as_echo "#define RES 1" >>confdefs.h
26122
26123	HASHTABLE=yes
26124	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
26125	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
26126fi
26127
26128if test "x$LISTEN_TCP" = xyes; then
26129
26130$as_echo "#define LISTEN_TCP 1" >>confdefs.h
26131
26132fi
26133if test "x$LISTEN_UNIX" = xyes; then
26134
26135$as_echo "#define LISTEN_UNIX 1" >>confdefs.h
26136
26137fi
26138if test "x$LISTEN_LOCAL" = xyes; then
26139
26140$as_echo "#define LISTEN_LOCAL 1" >>confdefs.h
26141
26142fi
26143
26144# The XRes extension may support client ID tracking only if it has
26145# been specifically enabled. Client ID tracking is implicitly not
26146# supported if XRes extension is disabled.
26147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
26148$as_echo_n "checking whether to track client ids... " >&6; }
26149if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
26150
26151$as_echo "#define CLIENTIDS 1" >>confdefs.h
26152
26153else
26154	CLIENTIDS=no
26155fi
26156if test "x$CLIENTIDS" = xyes; then
26157	case $host_os in
26158	openbsd*)
26159		SYS_LIBS="$SYS_LIBS -lkvm"
26160	;;
26161	esac
26162fi
26163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
26164$as_echo "$CLIENTIDS" >&6; }
26165 if test "x$CLIENTIDS" = xyes; then
26166  CLIENTIDS_TRUE=
26167  CLIENTIDS_FALSE='#'
26168else
26169  CLIENTIDS_TRUE='#'
26170  CLIENTIDS_FALSE=
26171fi
26172
26173
26174 if test "x$DRI" = xyes; then
26175  DRI_TRUE=
26176  DRI_FALSE='#'
26177else
26178  DRI_TRUE='#'
26179  DRI_FALSE=
26180fi
26181
26182if test "x$DRI" = xyes; then
26183
26184$as_echo "#define XF86DRI 1" >>confdefs.h
26185
26186	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
26187	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
26188fi
26189
26190
26191pkg_failed=no
26192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2PROTO" >&5
26193$as_echo_n "checking for DRI2PROTO... " >&6; }
26194
26195if test -n "$DRI2PROTO_CFLAGS"; then
26196    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
26197 elif test -n "$PKG_CONFIG"; then
26198    if test -n "$PKG_CONFIG" && \
26199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
26200  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
26201  ac_status=$?
26202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26203  test $ac_status = 0; }; then
26204  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
26205		      test "x$?" != "x0" && pkg_failed=yes
26206else
26207  pkg_failed=yes
26208fi
26209 else
26210    pkg_failed=untried
26211fi
26212if test -n "$DRI2PROTO_LIBS"; then
26213    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
26214 elif test -n "$PKG_CONFIG"; then
26215    if test -n "$PKG_CONFIG" && \
26216    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
26217  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
26218  ac_status=$?
26219  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220  test $ac_status = 0; }; then
26221  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
26222		      test "x$?" != "x0" && pkg_failed=yes
26223else
26224  pkg_failed=yes
26225fi
26226 else
26227    pkg_failed=untried
26228fi
26229
26230
26231
26232if test $pkg_failed = yes; then
26233   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26234$as_echo "no" >&6; }
26235
26236if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26237        _pkg_short_errors_supported=yes
26238else
26239        _pkg_short_errors_supported=no
26240fi
26241        if test $_pkg_short_errors_supported = yes; then
26242	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
26243        else
26244	        DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
26245        fi
26246	# Put the nasty error message in config.log where it belongs
26247	echo "$DRI2PROTO_PKG_ERRORS" >&5
26248
26249	HAVE_DRI2PROTO=no
26250elif test $pkg_failed = untried; then
26251     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26252$as_echo "no" >&6; }
26253	HAVE_DRI2PROTO=no
26254else
26255	DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
26256	DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
26257        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26258$as_echo "yes" >&6; }
26259	HAVE_DRI2PROTO=yes
26260fi
26261case "$DRI2,$HAVE_DRI2PROTO" in
26262	yes,no)
26263		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
26264		;;
26265	yes,yes | auto,yes)
26266
26267$as_echo "#define DRI2 1" >>confdefs.h
26268
26269		DRI2=yes
26270		LIBGL="gl >= 1.2"
26271		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
26272		;;
26273esac
26274 if test "x$DRI2" = xyes; then
26275  DRI2_TRUE=
26276  DRI2_FALSE='#'
26277else
26278  DRI2_TRUE='#'
26279  DRI2_FALSE=
26280fi
26281
26282
26283# Check whether --enable-xtrans-send-fds was given.
26284if test "${enable_xtrans_send_fds+set}" = set; then :
26285  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
26286else
26287  XTRANS_SEND_FDS=auto
26288fi
26289
26290
26291case "x$XTRANS_SEND_FDS" in
26292xauto)
26293	case "$host_os" in
26294	linux*|solaris*|freebsd*|dragonfly*|openbsd*)
26295		XTRANS_SEND_FDS=yes
26296		;;
26297	*)
26298		XTRANS_SEND_FDS=no
26299		;;
26300	esac
26301esac
26302
26303case "x$XTRANS_SEND_FDS" in
26304xyes)
26305
26306$as_echo "#define XTRANS_SEND_FDS 1" >>confdefs.h
26307
26308	;;
26309esac
26310
26311case "$DRI3,$XTRANS_SEND_FDS" in
26312	yes,yes | auto,yes)
26313		;;
26314	yes,no)
26315		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
26316		DRI3=no
26317		;;
26318	no,*)
26319		;;
26320	*)
26321		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
26322$as_echo "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
26323		DRI3=no
26324		;;
26325esac
26326
26327
26328pkg_failed=no
26329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI3PROTO" >&5
26330$as_echo_n "checking for DRI3PROTO... " >&6; }
26331
26332if test -n "$DRI3PROTO_CFLAGS"; then
26333    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
26334 elif test -n "$PKG_CONFIG"; then
26335    if test -n "$PKG_CONFIG" && \
26336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26337  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26338  ac_status=$?
26339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26340  test $ac_status = 0; }; then
26341  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
26342		      test "x$?" != "x0" && pkg_failed=yes
26343else
26344  pkg_failed=yes
26345fi
26346 else
26347    pkg_failed=untried
26348fi
26349if test -n "$DRI3PROTO_LIBS"; then
26350    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
26351 elif test -n "$PKG_CONFIG"; then
26352    if test -n "$PKG_CONFIG" && \
26353    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
26354  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
26355  ac_status=$?
26356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357  test $ac_status = 0; }; then
26358  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
26359		      test "x$?" != "x0" && pkg_failed=yes
26360else
26361  pkg_failed=yes
26362fi
26363 else
26364    pkg_failed=untried
26365fi
26366
26367
26368
26369if test $pkg_failed = yes; then
26370   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26371$as_echo "no" >&6; }
26372
26373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26374        _pkg_short_errors_supported=yes
26375else
26376        _pkg_short_errors_supported=no
26377fi
26378        if test $_pkg_short_errors_supported = yes; then
26379	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26380        else
26381	        DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
26382        fi
26383	# Put the nasty error message in config.log where it belongs
26384	echo "$DRI3PROTO_PKG_ERRORS" >&5
26385
26386	HAVE_DRI3PROTO=no
26387elif test $pkg_failed = untried; then
26388     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26389$as_echo "no" >&6; }
26390	HAVE_DRI3PROTO=no
26391else
26392	DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
26393	DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
26394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26395$as_echo "yes" >&6; }
26396	HAVE_DRI3PROTO=yes
26397fi
26398
26399case "$DRI3,$HAVE_DRI3PROTO" in
26400	yes,yes | auto,yes)
26401		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
26402		;;
26403	yes,no)
26404		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
26405		DRI3=no
26406		;;
26407	no,*)
26408		;;
26409	*)
26410		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
26411$as_echo "$as_me: DRI3 disabled because dri3proto not found." >&6;}
26412		DRI3=no
26413		;;
26414esac
26415
26416for ac_func in sigaction
26417do :
26418  ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
26419if test "x$ac_cv_func_sigaction" = xyes; then :
26420  cat >>confdefs.h <<_ACEOF
26421#define HAVE_SIGACTION 1
26422_ACEOF
26423
26424fi
26425done
26426
26427
26428BUSFAULT=no
26429
26430case x"$ac_cv_func_sigaction" in
26431	xyes)
26432
26433$as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
26434
26435		BUSFAULT=yes
26436		;;
26437esac
26438
26439case x"$BUSFAULT" in
26440	xyes)
26441
26442$as_echo "#define BUSFAULT 1" >>confdefs.h
26443
26444		;;
26445esac
26446
26447 if test x"$BUSFAULT" = xyes; then
26448  BUSFAULT_TRUE=
26449  BUSFAULT_FALSE='#'
26450else
26451  BUSFAULT_TRUE='#'
26452  BUSFAULT_FALSE=
26453fi
26454
26455
26456
26457
26458pkg_failed=no
26459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSHMFENCE" >&5
26460$as_echo_n "checking for XSHMFENCE... " >&6; }
26461
26462if test -n "$XSHMFENCE_CFLAGS"; then
26463    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
26464 elif test -n "$PKG_CONFIG"; then
26465    if test -n "$PKG_CONFIG" && \
26466    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26467  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26468  ac_status=$?
26469  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26470  test $ac_status = 0; }; then
26471  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
26472		      test "x$?" != "x0" && pkg_failed=yes
26473else
26474  pkg_failed=yes
26475fi
26476 else
26477    pkg_failed=untried
26478fi
26479if test -n "$XSHMFENCE_LIBS"; then
26480    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
26481 elif test -n "$PKG_CONFIG"; then
26482    if test -n "$PKG_CONFIG" && \
26483    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
26484  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
26485  ac_status=$?
26486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26487  test $ac_status = 0; }; then
26488  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
26489		      test "x$?" != "x0" && pkg_failed=yes
26490else
26491  pkg_failed=yes
26492fi
26493 else
26494    pkg_failed=untried
26495fi
26496
26497
26498
26499if test $pkg_failed = yes; then
26500   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26501$as_echo "no" >&6; }
26502
26503if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26504        _pkg_short_errors_supported=yes
26505else
26506        _pkg_short_errors_supported=no
26507fi
26508        if test $_pkg_short_errors_supported = yes; then
26509	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26510        else
26511	        XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
26512        fi
26513	# Put the nasty error message in config.log where it belongs
26514	echo "$XSHMFENCE_PKG_ERRORS" >&5
26515
26516	HAVE_XSHMFENCE=no
26517elif test $pkg_failed = untried; then
26518     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26519$as_echo "no" >&6; }
26520	HAVE_XSHMFENCE=no
26521else
26522	XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
26523	XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
26524        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26525$as_echo "yes" >&6; }
26526	HAVE_XSHMFENCE=yes
26527fi
26528if test "x$XSHMFENCE" = "xauto"; then
26529    XSHMFENCE="$HAVE_XSHMFENCE"
26530fi
26531
26532if test "x$XSHMFENCE" = "xyes"; then
26533    if test "x$HAVE_XSHMFENCE" != "xyes"; then
26534        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
26535    fi
26536
26537$as_echo "#define HAVE_XSHMFENCE 1" >>confdefs.h
26538
26539    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
26540fi
26541
26542 if test "x$XSHMFENCE" = xyes; then
26543  XSHMFENCE_TRUE=
26544  XSHMFENCE_FALSE='#'
26545else
26546  XSHMFENCE_TRUE='#'
26547  XSHMFENCE_FALSE=
26548fi
26549
26550
26551case "$DRI3,$XSHMFENCE" in
26552	yes,yes | auto,yes)
26553		;;
26554	yes,no)
26555		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
26556		DRI3=no
26557		;;
26558	no,*)
26559		;;
26560	*)
26561		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
26562$as_echo "$as_me: DRI3 disabled because xshmfence not found." >&6;}
26563		DRI3=no
26564		;;
26565esac
26566
26567case x"$DRI3" in
26568	xyes|xauto)
26569		DRI3=yes
26570
26571$as_echo "#define DRI3 1" >>confdefs.h
26572
26573		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
26574		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
26575		{ $as_echo "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
26576$as_echo "$as_me: DRI3 enabled" >&6;};
26577		;;
26578esac
26579
26580 if test "x$DRI3" = xyes; then
26581  DRI3_TRUE=
26582  DRI3_FALSE='#'
26583else
26584  DRI3_TRUE='#'
26585  DRI3_FALSE=
26586fi
26587
26588
26589if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
26590	if test "x$DRM" = xyes; then
26591
26592$as_echo "#define WITH_LIBDRM 1" >>confdefs.h
26593
26594
26595pkg_failed=no
26596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
26597$as_echo_n "checking for LIBDRM... " >&6; }
26598
26599if test -n "$LIBDRM_CFLAGS"; then
26600    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
26601 elif test -n "$PKG_CONFIG"; then
26602    if test -n "$PKG_CONFIG" && \
26603    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26604  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26605  ac_status=$?
26606  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607  test $ac_status = 0; }; then
26608  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
26609		      test "x$?" != "x0" && pkg_failed=yes
26610else
26611  pkg_failed=yes
26612fi
26613 else
26614    pkg_failed=untried
26615fi
26616if test -n "$LIBDRM_LIBS"; then
26617    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
26618 elif test -n "$PKG_CONFIG"; then
26619    if test -n "$PKG_CONFIG" && \
26620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
26621  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
26622  ac_status=$?
26623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26624  test $ac_status = 0; }; then
26625  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
26626		      test "x$?" != "x0" && pkg_failed=yes
26627else
26628  pkg_failed=yes
26629fi
26630 else
26631    pkg_failed=untried
26632fi
26633
26634
26635
26636if test $pkg_failed = yes; then
26637   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26638$as_echo "no" >&6; }
26639
26640if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26641        _pkg_short_errors_supported=yes
26642else
26643        _pkg_short_errors_supported=no
26644fi
26645        if test $_pkg_short_errors_supported = yes; then
26646	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
26647        else
26648	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
26649        fi
26650	# Put the nasty error message in config.log where it belongs
26651	echo "$LIBDRM_PKG_ERRORS" >&5
26652
26653	as_fn_error $? "Package requirements ($LIBDRM) were not met:
26654
26655$LIBDRM_PKG_ERRORS
26656
26657Consider adjusting the PKG_CONFIG_PATH environment variable if you
26658installed software in a non-standard prefix.
26659
26660Alternatively, you may set the environment variables LIBDRM_CFLAGS
26661and LIBDRM_LIBS to avoid the need to call pkg-config.
26662See the pkg-config man page for more details." "$LINENO" 5
26663elif test $pkg_failed = untried; then
26664     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26665$as_echo "no" >&6; }
26666	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26668as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26669is in your PATH or set the PKG_CONFIG environment variable to the full
26670path to pkg-config.
26671
26672Alternatively, you may set the environment variables LIBDRM_CFLAGS
26673and LIBDRM_LIBS to avoid the need to call pkg-config.
26674See the pkg-config man page for more details.
26675
26676To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26677See \`config.log' for more details" "$LINENO" 5; }
26678else
26679	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
26680	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
26681        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26682$as_echo "yes" >&6; }
26683
26684fi
26685	fi
26686fi
26687
26688if test "x$GLX" = xyes; then
26689
26690pkg_failed=no
26691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
26692$as_echo_n "checking for XLIB... " >&6; }
26693
26694if test -n "$XLIB_CFLAGS"; then
26695    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
26696 elif test -n "$PKG_CONFIG"; then
26697    if test -n "$PKG_CONFIG" && \
26698    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
26699  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
26700  ac_status=$?
26701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702  test $ac_status = 0; }; then
26703  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
26704		      test "x$?" != "x0" && pkg_failed=yes
26705else
26706  pkg_failed=yes
26707fi
26708 else
26709    pkg_failed=untried
26710fi
26711if test -n "$XLIB_LIBS"; then
26712    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
26713 elif test -n "$PKG_CONFIG"; then
26714    if test -n "$PKG_CONFIG" && \
26715    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
26716  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
26717  ac_status=$?
26718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26719  test $ac_status = 0; }; then
26720  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
26721		      test "x$?" != "x0" && pkg_failed=yes
26722else
26723  pkg_failed=yes
26724fi
26725 else
26726    pkg_failed=untried
26727fi
26728
26729
26730
26731if test $pkg_failed = yes; then
26732   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26733$as_echo "no" >&6; }
26734
26735if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26736        _pkg_short_errors_supported=yes
26737else
26738        _pkg_short_errors_supported=no
26739fi
26740        if test $_pkg_short_errors_supported = yes; then
26741	        XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
26742        else
26743	        XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
26744        fi
26745	# Put the nasty error message in config.log where it belongs
26746	echo "$XLIB_PKG_ERRORS" >&5
26747
26748	as_fn_error $? "Package requirements (x11) were not met:
26749
26750$XLIB_PKG_ERRORS
26751
26752Consider adjusting the PKG_CONFIG_PATH environment variable if you
26753installed software in a non-standard prefix.
26754
26755Alternatively, you may set the environment variables XLIB_CFLAGS
26756and XLIB_LIBS to avoid the need to call pkg-config.
26757See the pkg-config man page for more details." "$LINENO" 5
26758elif test $pkg_failed = untried; then
26759     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26760$as_echo "no" >&6; }
26761	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26763as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26764is in your PATH or set the PKG_CONFIG environment variable to the full
26765path to pkg-config.
26766
26767Alternatively, you may set the environment variables XLIB_CFLAGS
26768and XLIB_LIBS to avoid the need to call pkg-config.
26769See the pkg-config man page for more details.
26770
26771To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26772See \`config.log' for more details" "$LINENO" 5; }
26773else
26774	XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
26775	XLIB_LIBS=$pkg_cv_XLIB_LIBS
26776        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26777$as_echo "yes" >&6; }
26778
26779fi
26780
26781pkg_failed=no
26782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5
26783$as_echo_n "checking for GL... " >&6; }
26784
26785if test -n "$GL_CFLAGS"; then
26786    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
26787 elif test -n "$PKG_CONFIG"; then
26788    if test -n "$PKG_CONFIG" && \
26789    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
26790  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
26791  ac_status=$?
26792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26793  test $ac_status = 0; }; then
26794  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
26795		      test "x$?" != "x0" && pkg_failed=yes
26796else
26797  pkg_failed=yes
26798fi
26799 else
26800    pkg_failed=untried
26801fi
26802if test -n "$GL_LIBS"; then
26803    pkg_cv_GL_LIBS="$GL_LIBS"
26804 elif test -n "$PKG_CONFIG"; then
26805    if test -n "$PKG_CONFIG" && \
26806    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
26807  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
26808  ac_status=$?
26809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26810  test $ac_status = 0; }; then
26811  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
26812		      test "x$?" != "x0" && pkg_failed=yes
26813else
26814  pkg_failed=yes
26815fi
26816 else
26817    pkg_failed=untried
26818fi
26819
26820
26821
26822if test $pkg_failed = yes; then
26823   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26824$as_echo "no" >&6; }
26825
26826if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26827        _pkg_short_errors_supported=yes
26828else
26829        _pkg_short_errors_supported=no
26830fi
26831        if test $_pkg_short_errors_supported = yes; then
26832	        GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
26833        else
26834	        GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
26835        fi
26836	# Put the nasty error message in config.log where it belongs
26837	echo "$GL_PKG_ERRORS" >&5
26838
26839	as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
26840
26841$GL_PKG_ERRORS
26842
26843Consider adjusting the PKG_CONFIG_PATH environment variable if you
26844installed software in a non-standard prefix.
26845
26846Alternatively, you may set the environment variables GL_CFLAGS
26847and GL_LIBS to avoid the need to call pkg-config.
26848See the pkg-config man page for more details." "$LINENO" 5
26849elif test $pkg_failed = untried; then
26850     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26851$as_echo "no" >&6; }
26852	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26853$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26854as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
26855is in your PATH or set the PKG_CONFIG environment variable to the full
26856path to pkg-config.
26857
26858Alternatively, you may set the environment variables GL_CFLAGS
26859and GL_LIBS to avoid the need to call pkg-config.
26860See the pkg-config man page for more details.
26861
26862To get pkg-config, see <http://pkg-config.freedesktop.org/>.
26863See \`config.log' for more details" "$LINENO" 5; }
26864else
26865	GL_CFLAGS=$pkg_cv_GL_CFLAGS
26866	GL_LIBS=$pkg_cv_GL_LIBS
26867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26868$as_echo "yes" >&6; }
26869
26870fi
26871
26872
26873$as_echo "#define GLXEXT 1" >>confdefs.h
26874
26875	HASHTABLE=yes
26876	GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la'
26877	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
26878else
26879        GLX=no
26880fi
26881 if test "x$GLX" = xyes; then
26882  GLX_TRUE=
26883  GLX_FALSE='#'
26884else
26885  GLX_TRUE='#'
26886  GLX_FALSE=
26887fi
26888
26889
26890 if test "x$HASHTABLE" = xyes; then
26891  HASHTABLE_TRUE=
26892  HASHTABLE_FALSE='#'
26893else
26894  HASHTABLE_TRUE='#'
26895  HASHTABLE_FALSE=
26896fi
26897
26898
26899
26900
26901
26902 if test "x$PRESENT" = xyes; then
26903  PRESENT_TRUE=
26904  PRESENT_FALSE='#'
26905else
26906  PRESENT_TRUE='#'
26907  PRESENT_FALSE=
26908fi
26909
26910if test "x$PRESENT" = xyes; then
26911
26912$as_echo "#define PRESENT 1" >>confdefs.h
26913
26914	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
26915	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
26916	PRESENT_INC='-I$(top_srcdir)/present'
26917	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
26918fi
26919
26920 if test "x$XINERAMA" = xyes; then
26921  XINERAMA_TRUE=
26922  XINERAMA_FALSE='#'
26923else
26924  XINERAMA_TRUE='#'
26925  XINERAMA_FALSE=
26926fi
26927
26928if test "x$XINERAMA" = xyes; then
26929
26930$as_echo "#define XINERAMA 1" >>confdefs.h
26931
26932
26933$as_echo "#define PANORAMIX 1" >>confdefs.h
26934
26935	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
26936	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
26937fi
26938
26939 if test "x$XACE" = xyes; then
26940  XACE_TRUE=
26941  XACE_FALSE='#'
26942else
26943  XACE_TRUE='#'
26944  XACE_FALSE=
26945fi
26946
26947if test "x$XACE" = xyes; then
26948
26949$as_echo "#define XACE 1" >>confdefs.h
26950
26951fi
26952
26953 if test "x$XSELINUX" = xyes; then
26954  XSELINUX_TRUE=
26955  XSELINUX_FALSE='#'
26956else
26957  XSELINUX_TRUE='#'
26958  XSELINUX_FALSE=
26959fi
26960
26961if test "x$XSELINUX" = xyes; then
26962	if test "x$XACE" != xyes; then
26963		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
26964	fi
26965	for ac_header in libaudit.h
26966do :
26967  ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
26968if test "x$ac_cv_header_libaudit_h" = xyes; then :
26969  cat >>confdefs.h <<_ACEOF
26970#define HAVE_LIBAUDIT_H 1
26971_ACEOF
26972
26973else
26974  as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5
26975fi
26976
26977done
26978
26979	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
26980$as_echo_n "checking for audit_open in -laudit... " >&6; }
26981if ${ac_cv_lib_audit_audit_open+:} false; then :
26982  $as_echo_n "(cached) " >&6
26983else
26984  ac_check_lib_save_LIBS=$LIBS
26985LIBS="-laudit  $LIBS"
26986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26987/* end confdefs.h.  */
26988
26989/* Override any GCC internal prototype to avoid an error.
26990   Use char because int might match the return type of a GCC
26991   builtin and then its argument prototype would still apply.  */
26992#ifdef __cplusplus
26993extern "C"
26994#endif
26995char audit_open ();
26996int
26997main ()
26998{
26999return audit_open ();
27000  ;
27001  return 0;
27002}
27003_ACEOF
27004if ac_fn_c_try_link "$LINENO"; then :
27005  ac_cv_lib_audit_audit_open=yes
27006else
27007  ac_cv_lib_audit_audit_open=no
27008fi
27009rm -f core conftest.err conftest.$ac_objext \
27010    conftest$ac_exeext conftest.$ac_ext
27011LIBS=$ac_check_lib_save_LIBS
27012fi
27013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
27014$as_echo "$ac_cv_lib_audit_audit_open" >&6; }
27015if test "x$ac_cv_lib_audit_audit_open" = xyes; then :
27016  cat >>confdefs.h <<_ACEOF
27017#define HAVE_LIBAUDIT 1
27018_ACEOF
27019
27020  LIBS="-laudit $LIBS"
27021
27022else
27023  as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5
27024fi
27025
27026
27027pkg_failed=no
27028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SELINUX" >&5
27029$as_echo_n "checking for SELINUX... " >&6; }
27030
27031if test -n "$SELINUX_CFLAGS"; then
27032    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
27033 elif test -n "$PKG_CONFIG"; then
27034    if test -n "$PKG_CONFIG" && \
27035    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
27036  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
27037  ac_status=$?
27038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27039  test $ac_status = 0; }; then
27040  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
27041		      test "x$?" != "x0" && pkg_failed=yes
27042else
27043  pkg_failed=yes
27044fi
27045 else
27046    pkg_failed=untried
27047fi
27048if test -n "$SELINUX_LIBS"; then
27049    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
27050 elif test -n "$PKG_CONFIG"; then
27051    if test -n "$PKG_CONFIG" && \
27052    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
27053  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
27054  ac_status=$?
27055  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27056  test $ac_status = 0; }; then
27057  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
27058		      test "x$?" != "x0" && pkg_failed=yes
27059else
27060  pkg_failed=yes
27061fi
27062 else
27063    pkg_failed=untried
27064fi
27065
27066
27067
27068if test $pkg_failed = yes; then
27069   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27070$as_echo "no" >&6; }
27071
27072if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27073        _pkg_short_errors_supported=yes
27074else
27075        _pkg_short_errors_supported=no
27076fi
27077        if test $_pkg_short_errors_supported = yes; then
27078	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
27079        else
27080	        SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
27081        fi
27082	# Put the nasty error message in config.log where it belongs
27083	echo "$SELINUX_PKG_ERRORS" >&5
27084
27085	as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
27086
27087$SELINUX_PKG_ERRORS
27088
27089Consider adjusting the PKG_CONFIG_PATH environment variable if you
27090installed software in a non-standard prefix.
27091
27092Alternatively, you may set the environment variables SELINUX_CFLAGS
27093and SELINUX_LIBS to avoid the need to call pkg-config.
27094See the pkg-config man page for more details." "$LINENO" 5
27095elif test $pkg_failed = untried; then
27096     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27097$as_echo "no" >&6; }
27098	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27100as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27101is in your PATH or set the PKG_CONFIG environment variable to the full
27102path to pkg-config.
27103
27104Alternatively, you may set the environment variables SELINUX_CFLAGS
27105and SELINUX_LIBS to avoid the need to call pkg-config.
27106See the pkg-config man page for more details.
27107
27108To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27109See \`config.log' for more details" "$LINENO" 5; }
27110else
27111	SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
27112	SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
27113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27114$as_echo "yes" >&6; }
27115
27116fi
27117	SELINUX_LIBS="$SELINUX_LIBS -laudit"
27118
27119$as_echo "#define XSELINUX 1" >>confdefs.h
27120
27121fi
27122
27123 if test "x$XCSECURITY" = xyes; then
27124  XCSECURITY_TRUE=
27125  XCSECURITY_FALSE='#'
27126else
27127  XCSECURITY_TRUE='#'
27128  XCSECURITY_FALSE=
27129fi
27130
27131if test "x$XCSECURITY" = xyes; then
27132	if test "x$XACE" != xyes; then
27133		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
27134	fi
27135
27136$as_echo "#define XCSECURITY 1" >>confdefs.h
27137
27138fi
27139
27140 if test "x$DBE" = xyes; then
27141  DBE_TRUE=
27142  DBE_FALSE='#'
27143else
27144  DBE_TRUE='#'
27145  DBE_FALSE=
27146fi
27147
27148if test "x$DBE" = xyes; then
27149
27150$as_echo "#define DBE 1" >>confdefs.h
27151
27152	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
27153	DBE_INC='-I$(top_srcdir)/dbe'
27154fi
27155
27156 if test "x$XF86BIGFONT" = xyes; then
27157  XF86BIGFONT_TRUE=
27158  XF86BIGFONT_FALSE='#'
27159else
27160  XF86BIGFONT_TRUE='#'
27161  XF86BIGFONT_FALSE=
27162fi
27163
27164if test "x$XF86BIGFONT" = xyes; then
27165
27166$as_echo "#define XF86BIGFONT 1" >>confdefs.h
27167
27168	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
27169	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
27170fi
27171
27172 if test "x$DPMSExtension" = xyes; then
27173  DPMSExtension_TRUE=
27174  DPMSExtension_FALSE='#'
27175else
27176  DPMSExtension_TRUE='#'
27177  DPMSExtension_FALSE=
27178fi
27179
27180if test "x$DPMSExtension" = xyes; then
27181
27182$as_echo "#define DPMSExtension 1" >>confdefs.h
27183
27184fi
27185
27186
27187$as_echo "#define RENDER 1" >>confdefs.h
27188
27189RENDER_LIB='$(top_builddir)/render/librender.la'
27190RENDER_INC='-I$(top_srcdir)/render'
27191
27192
27193$as_echo "#define RANDR 1" >>confdefs.h
27194
27195RANDR_LIB='$(top_builddir)/randr/librandr.la'
27196RANDR_INC='-I$(top_srcdir)/randr'
27197
27198
27199$as_echo "#define XFIXES 1" >>confdefs.h
27200
27201FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
27202FIXES_INC='-I$(top_srcdir)/xfixes'
27203
27204
27205$as_echo "#define DAMAGE 1" >>confdefs.h
27206
27207DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
27208DAMAGE_INC='-I$(top_srcdir)/damageext'
27209MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
27210MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
27211
27212# XINPUT extension is integral part of the server
27213
27214$as_echo "#define XINPUT 1" >>confdefs.h
27215
27216XI_LIB='$(top_builddir)/Xi/libXi.la'
27217XI_INC='-I$(top_srcdir)/Xi'
27218
27219 if test "x$XF86UTILS" = xyes; then
27220  XF86UTILS_TRUE=
27221  XF86UTILS_FALSE='#'
27222else
27223  XF86UTILS_TRUE='#'
27224  XF86UTILS_FALSE=
27225fi
27226
27227 if test "x$VGAHW" = xyes; then
27228  VGAHW_TRUE=
27229  VGAHW_FALSE='#'
27230else
27231  VGAHW_TRUE='#'
27232  VGAHW_FALSE=
27233fi
27234
27235 if test "x$INT10MODULE" = xyes; then
27236  INT10MODULE_TRUE=
27237  INT10MODULE_FALSE='#'
27238else
27239  INT10MODULE_TRUE='#'
27240  INT10MODULE_FALSE=
27241fi
27242
27243
27244
27245$as_echo "#define SHAPE 1" >>confdefs.h
27246
27247
27248if test "x$XKBPATH" = "xauto"; then
27249    XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb
27250fi
27251
27252
27253  prefix_NONE=
27254  exec_prefix_NONE=
27255  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27256  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27257  eval ac_define_dir="\"$XKBPATH\""
27258  eval ac_define_dir="\"$ac_define_dir\""
27259  XKB_BASE_DIRECTORY="$ac_define_dir"
27260
27261
27262cat >>confdefs.h <<_ACEOF
27263#define XKB_BASE_DIRECTORY "$ac_define_dir"
27264_ACEOF
27265
27266  test "$prefix_NONE" && prefix=NONE
27267  test "$exec_prefix_NONE" && exec_prefix=NONE
27268
27269
27270# Check whether --with-xkb-bin-directory was given.
27271if test "${with_xkb_bin_directory+set}" = set; then :
27272  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
27273else
27274  XKB_BIN_DIRECTORY="auto"
27275fi
27276
27277
27278if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
27279    XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp)
27280    if test -z $XKB_BIN_DIRECTORY; then
27281        XKB_BIN_DIRECTORY="$bindir"
27282    fi
27283fi
27284
27285
27286  prefix_NONE=
27287  exec_prefix_NONE=
27288  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27289  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27290  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
27291  eval ac_define_dir="\"$ac_define_dir\""
27292  XKB_BIN_DIRECTORY="$ac_define_dir"
27293
27294
27295cat >>confdefs.h <<_ACEOF
27296#define XKB_BIN_DIRECTORY "$ac_define_dir"
27297_ACEOF
27298
27299  test "$prefix_NONE" && prefix=NONE
27300  test "$exec_prefix_NONE" && exec_prefix=NONE
27301
27302
27303XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
27304if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
27305   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
27306fi
27307
27308
27309XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
27310XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
27311
27312  prefix_NONE=
27313  exec_prefix_NONE=
27314  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27315  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27316  eval ac_define_dir="\"$XKBOUTPUT\""
27317  eval ac_define_dir="\"$ac_define_dir\""
27318  XKM_OUTPUT_DIR="$ac_define_dir"
27319
27320
27321cat >>confdefs.h <<_ACEOF
27322#define XKM_OUTPUT_DIR "$ac_define_dir"
27323_ACEOF
27324
27325  test "$prefix_NONE" && prefix=NONE
27326  test "$exec_prefix_NONE" && exec_prefix=NONE
27327
27328
27329
27330if test "x$XKB_DFLT_RULES" = x; then
27331    case $host_os in
27332    linux*)
27333                XKB_DFLT_RULES="evdev"
27334        ;;
27335    *)
27336        XKB_DFLT_RULES="base"
27337        ;;
27338    esac
27339fi
27340
27341cat >>confdefs.h <<_ACEOF
27342#define XKB_DFLT_RULES "$XKB_DFLT_RULES"
27343_ACEOF
27344
27345
27346cat >>confdefs.h <<_ACEOF
27347#define XKB_DFLT_MODEL "$XKB_DFLT_MODEL"
27348_ACEOF
27349
27350
27351cat >>confdefs.h <<_ACEOF
27352#define XKB_DFLT_LAYOUT "$XKB_DFLT_LAYOUT"
27353_ACEOF
27354
27355
27356cat >>confdefs.h <<_ACEOF
27357#define XKB_DFLT_VARIANT "$XKB_DFLT_VARIANT"
27358_ACEOF
27359
27360
27361cat >>confdefs.h <<_ACEOF
27362#define XKB_DFLT_OPTIONS "$XKB_DFLT_OPTIONS"
27363_ACEOF
27364
27365
27366
27367
27368
27369
27370
27371XKB_LIB='$(top_builddir)/xkb/libxkb.la'
27372XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
27373REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
27374
27375
27376pkg_failed=no
27377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
27378$as_echo_n "checking for XDMCP... " >&6; }
27379
27380if test -n "$XDMCP_CFLAGS"; then
27381    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
27382 elif test -n "$PKG_CONFIG"; then
27383    if test -n "$PKG_CONFIG" && \
27384    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27385  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27386  ac_status=$?
27387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27388  test $ac_status = 0; }; then
27389  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
27390		      test "x$?" != "x0" && pkg_failed=yes
27391else
27392  pkg_failed=yes
27393fi
27394 else
27395    pkg_failed=untried
27396fi
27397if test -n "$XDMCP_LIBS"; then
27398    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
27399 elif test -n "$PKG_CONFIG"; then
27400    if test -n "$PKG_CONFIG" && \
27401    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
27402  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
27403  ac_status=$?
27404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27405  test $ac_status = 0; }; then
27406  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
27407		      test "x$?" != "x0" && pkg_failed=yes
27408else
27409  pkg_failed=yes
27410fi
27411 else
27412    pkg_failed=untried
27413fi
27414
27415
27416
27417if test $pkg_failed = yes; then
27418   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27419$as_echo "no" >&6; }
27420
27421if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27422        _pkg_short_errors_supported=yes
27423else
27424        _pkg_short_errors_supported=no
27425fi
27426        if test $_pkg_short_errors_supported = yes; then
27427	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
27428        else
27429	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
27430        fi
27431	# Put the nasty error message in config.log where it belongs
27432	echo "$XDMCP_PKG_ERRORS" >&5
27433
27434	have_libxdmcp="no"
27435elif test $pkg_failed = untried; then
27436     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27437$as_echo "no" >&6; }
27438	have_libxdmcp="no"
27439else
27440	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
27441	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
27442        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27443$as_echo "yes" >&6; }
27444	have_libxdmcp="yes"
27445fi
27446if test "x$XDMCP" = xauto; then
27447	if test "x$have_libxdmcp" = xyes; then
27448		XDMCP=yes
27449	else
27450		XDMCP=no
27451	fi
27452fi
27453if test "x$XDMAUTH" = xauto; then
27454	if test "x$have_libxdmcp" = xyes; then
27455		XDMAUTH=yes
27456	else
27457		XDMAUTH=no
27458	fi
27459fi
27460
27461 if test "x$XDMCP" = xyes; then
27462  XDMCP_TRUE=
27463  XDMCP_FALSE='#'
27464else
27465  XDMCP_TRUE='#'
27466  XDMCP_FALSE=
27467fi
27468
27469if test "x$XDMCP" = xyes; then
27470
27471$as_echo "#define XDMCP 1" >>confdefs.h
27472
27473	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27474	XDMCP_MODULES="xdmcp"
27475fi
27476
27477 if test "x$XDMAUTH" = xyes; then
27478  XDMAUTH_TRUE=
27479  XDMAUTH_FALSE='#'
27480else
27481  XDMAUTH_TRUE='#'
27482  XDMAUTH_FALSE=
27483fi
27484
27485if test "x$XDMAUTH" = xyes; then
27486
27487$as_echo "#define HASXDMAUTH 1" >>confdefs.h
27488
27489	if ! test "x$XDMCP" = xyes; then
27490		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
27491		XDMCP_MODULES="xdmcp"
27492	fi
27493fi
27494
27495if test "x$XF86VIDMODE" = xauto; then
27496	if test -n "$PKG_CONFIG" && \
27497    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
27498  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
27499  ac_status=$?
27500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27501  test $ac_status = 0; }; then
27502  XF86VIDMODE=yes
27503else
27504  XF86VIDMODE=no
27505fi
27506fi
27507if test "x$XF86VIDMODE" = xyes; then
27508
27509$as_echo "#define XF86VIDMODE 1" >>confdefs.h
27510
27511fi
27512 if test "x$XF86VIDMODE" = xyes; then
27513  XF86VIDMODE_TRUE=
27514  XF86VIDMODE_FALSE='#'
27515else
27516  XF86VIDMODE_TRUE='#'
27517  XF86VIDMODE_FALSE=
27518fi
27519
27520
27521
27522  prefix_NONE=
27523  exec_prefix_NONE=
27524  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27525  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27526  eval ac_define_dir="\"$FONTPATH\""
27527  eval ac_define_dir="\"$ac_define_dir\""
27528  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
27529
27530
27531cat >>confdefs.h <<_ACEOF
27532#define COMPILEDDEFAULTFONTPATH "$ac_define_dir"
27533_ACEOF
27534
27535  test "$prefix_NONE" && prefix=NONE
27536  test "$exec_prefix_NONE" && exec_prefix=NONE
27537
27538
27539  prefix_NONE=
27540  exec_prefix_NONE=
27541  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27542  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27543  eval ac_define_dir="\"$SERVERCONFIG\""
27544  eval ac_define_dir="\"$ac_define_dir\""
27545  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
27546
27547
27548cat >>confdefs.h <<_ACEOF
27549#define SERVER_MISC_CONFIG_PATH "$ac_define_dir"
27550_ACEOF
27551
27552  test "$prefix_NONE" && prefix=NONE
27553  test "$exec_prefix_NONE" && exec_prefix=NONE
27554
27555
27556  prefix_NONE=
27557  exec_prefix_NONE=
27558  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
27559  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
27560  eval ac_define_dir="\"$FONTROOTDIR\""
27561  eval ac_define_dir="\"$ac_define_dir\""
27562  BASE_FONT_PATH="$ac_define_dir"
27563
27564
27565cat >>confdefs.h <<_ACEOF
27566#define BASE_FONT_PATH "$ac_define_dir"
27567_ACEOF
27568
27569  test "$prefix_NONE" && prefix=NONE
27570  test "$exec_prefix_NONE" && exec_prefix=NONE
27571
27572dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
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="\"$dridriverdir\""
27579  eval ac_define_dir="\"$ac_define_dir\""
27580  DRI_DRIVER_PATH="$ac_define_dir"
27581
27582
27583cat >>confdefs.h <<_ACEOF
27584#define DRI_DRIVER_PATH "$ac_define_dir"
27585_ACEOF
27586
27587  test "$prefix_NONE" && prefix=NONE
27588  test "$exec_prefix_NONE" && exec_prefix=NONE
27589
27590
27591cat >>confdefs.h <<_ACEOF
27592#define XVENDORNAME "$VENDOR_NAME"
27593_ACEOF
27594
27595
27596cat >>confdefs.h <<_ACEOF
27597#define XVENDORNAMESHORT "$VENDOR_NAME_SHORT"
27598_ACEOF
27599
27600
27601cat >>confdefs.h <<_ACEOF
27602#define XORG_MAN_VERSION "$VENDOR_MAN_VERSION"
27603_ACEOF
27604
27605
27606cat >>confdefs.h <<_ACEOF
27607#define BUILDERADDR "$BUILDERADDR"
27608_ACEOF
27609
27610
27611
27612cat >>confdefs.h <<_ACEOF
27613#define BUILDERSTRING "$BUILDERSTRING"
27614_ACEOF
27615
27616
27617
27618
27619cat >>confdefs.h <<_ACEOF
27620#define VENDOR_NAME "$VENDOR_NAME"
27621_ACEOF
27622
27623
27624cat >>confdefs.h <<_ACEOF
27625#define VENDOR_NAME_SHORT "$VENDOR_NAME_SHORT"
27626_ACEOF
27627
27628
27629cat >>confdefs.h <<_ACEOF
27630#define VENDOR_RELEASE $VENDOR_RELEASE
27631_ACEOF
27632
27633
27634cat >>confdefs.h <<_ACEOF
27635#define VENDOR_MAN_VERSION "$VENDOR_MAN_VERSION"
27636_ACEOF
27637
27638
27639if test "x$DEBUGGING" = xyes; then
27640
27641$as_echo "#define DEBUG 1" >>confdefs.h
27642
27643fi
27644 if test "x$DEBUGGING" = xyes; then
27645  DEBUG_TRUE=
27646  DEBUG_FALSE='#'
27647else
27648  DEBUG_TRUE='#'
27649  DEBUG_FALSE=
27650fi
27651
27652
27653
27654$as_echo "#define XTEST 1" >>confdefs.h
27655
27656
27657$as_echo "#define XSYNC 1" >>confdefs.h
27658
27659
27660$as_echo "#define XCMISC 1" >>confdefs.h
27661
27662
27663$as_echo "#define BIGREQS 1" >>confdefs.h
27664
27665
27666if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
27667  DIX_LIB='$(top_builddir)/dix/dix.O'
27668  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
27669else
27670  DIX_LIB='$(top_builddir)/dix/libdix.la'
27671  OS_LIB='$(top_builddir)/os/libos.la'
27672fi
27673
27674
27675
27676MAIN_LIB='$(top_builddir)/dix/libmain.la'
27677
27678
27679MI_LIB='$(top_builddir)/mi/libmi.la'
27680MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
27681MI_INC='-I$(top_srcdir)/mi'
27682FB_LIB='$(top_builddir)/fb/libfb.la'
27683FB_INC='-I$(top_srcdir)/fb'
27684MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
27685MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
27686MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
27687MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
27688CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
27689
27690# SHA1 hashing
27691
27692# Check whether --with-sha1 was given.
27693if test "${with_sha1+set}" = set; then :
27694  withval=$with_sha1;
27695fi
27696
27697ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
27698if test "x$ac_cv_func_SHA1Init" = xyes; then :
27699  HAVE_SHA1_IN_LIBC=yes
27700fi
27701
27702if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
27703	with_sha1=libc
27704fi
27705if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
27706	as_fn_error $? "libc requested but not found" "$LINENO" 5
27707fi
27708if test "x$with_sha1" = xlibc; then
27709
27710$as_echo "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
27711
27712	SHA1_LIBS=""
27713fi
27714ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
27715if test "x$ac_cv_func_CC_SHA1_Init" = xyes; then :
27716  HAVE_SHA1_IN_COMMONCRYPTO=yes
27717fi
27718
27719if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
27720	with_sha1=CommonCrypto
27721fi
27722if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
27723	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
27724fi
27725if test "x$with_sha1" = xCommonCrypto; then
27726
27727$as_echo "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
27728
27729	SHA1_LIBS=""
27730fi
27731ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
27732"
27733if test "x$ac_cv_header_wincrypt_h" = xyes; then :
27734  HAVE_SHA1_IN_CRYPTOAPI=yes
27735fi
27736
27737
27738if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
27739	with_sha1=CryptoAPI
27740fi
27741if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
27742	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
27743fi
27744if test "x$with_sha1" = xCryptoAPI; then
27745
27746$as_echo "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
27747
27748	SHA1_LIBS=""
27749fi
27750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
27751$as_echo_n "checking for SHA1Init in -lmd... " >&6; }
27752if ${ac_cv_lib_md_SHA1Init+:} false; then :
27753  $as_echo_n "(cached) " >&6
27754else
27755  ac_check_lib_save_LIBS=$LIBS
27756LIBS="-lmd  $LIBS"
27757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27758/* end confdefs.h.  */
27759
27760/* Override any GCC internal prototype to avoid an error.
27761   Use char because int might match the return type of a GCC
27762   builtin and then its argument prototype would still apply.  */
27763#ifdef __cplusplus
27764extern "C"
27765#endif
27766char SHA1Init ();
27767int
27768main ()
27769{
27770return SHA1Init ();
27771  ;
27772  return 0;
27773}
27774_ACEOF
27775if ac_fn_c_try_link "$LINENO"; then :
27776  ac_cv_lib_md_SHA1Init=yes
27777else
27778  ac_cv_lib_md_SHA1Init=no
27779fi
27780rm -f core conftest.err conftest.$ac_objext \
27781    conftest$ac_exeext conftest.$ac_ext
27782LIBS=$ac_check_lib_save_LIBS
27783fi
27784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
27785$as_echo "$ac_cv_lib_md_SHA1Init" >&6; }
27786if test "x$ac_cv_lib_md_SHA1Init" = xyes; then :
27787  HAVE_LIBMD=yes
27788fi
27789
27790if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
27791	with_sha1=libmd
27792fi
27793if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
27794	as_fn_error $? "libmd requested but not found" "$LINENO" 5
27795fi
27796if test "x$with_sha1" = xlibmd; then
27797
27798$as_echo "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
27799
27800	SHA1_LIBS=-lmd
27801fi
27802
27803pkg_failed=no
27804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSHA1" >&5
27805$as_echo_n "checking for LIBSHA1... " >&6; }
27806
27807if test -n "$LIBSHA1_CFLAGS"; then
27808    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
27809 elif test -n "$PKG_CONFIG"; then
27810    if test -n "$PKG_CONFIG" && \
27811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
27812  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
27813  ac_status=$?
27814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27815  test $ac_status = 0; }; then
27816  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
27817		      test "x$?" != "x0" && pkg_failed=yes
27818else
27819  pkg_failed=yes
27820fi
27821 else
27822    pkg_failed=untried
27823fi
27824if test -n "$LIBSHA1_LIBS"; then
27825    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
27826 elif test -n "$PKG_CONFIG"; then
27827    if test -n "$PKG_CONFIG" && \
27828    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
27829  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
27830  ac_status=$?
27831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27832  test $ac_status = 0; }; then
27833  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
27834		      test "x$?" != "x0" && pkg_failed=yes
27835else
27836  pkg_failed=yes
27837fi
27838 else
27839    pkg_failed=untried
27840fi
27841
27842
27843
27844if test $pkg_failed = yes; then
27845   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27846$as_echo "no" >&6; }
27847
27848if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27849        _pkg_short_errors_supported=yes
27850else
27851        _pkg_short_errors_supported=no
27852fi
27853        if test $_pkg_short_errors_supported = yes; then
27854	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
27855        else
27856	        LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
27857        fi
27858	# Put the nasty error message in config.log where it belongs
27859	echo "$LIBSHA1_PKG_ERRORS" >&5
27860
27861	HAVE_LIBSHA1=no
27862elif test $pkg_failed = untried; then
27863     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27864$as_echo "no" >&6; }
27865	HAVE_LIBSHA1=no
27866else
27867	LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
27868	LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
27869        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27870$as_echo "yes" >&6; }
27871	HAVE_LIBSHA1=yes
27872fi
27873if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
27874   with_sha1=libsha1
27875fi
27876if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
27877	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
27878fi
27879if test "x$with_sha1" = xlibsha1; then
27880
27881$as_echo "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
27882
27883	SHA1_LIBS=-lsha1
27884fi
27885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
27886$as_echo_n "checking for nettle_sha1_init in -lnettle... " >&6; }
27887if ${ac_cv_lib_nettle_nettle_sha1_init+:} false; then :
27888  $as_echo_n "(cached) " >&6
27889else
27890  ac_check_lib_save_LIBS=$LIBS
27891LIBS="-lnettle  $LIBS"
27892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27893/* end confdefs.h.  */
27894
27895/* Override any GCC internal prototype to avoid an error.
27896   Use char because int might match the return type of a GCC
27897   builtin and then its argument prototype would still apply.  */
27898#ifdef __cplusplus
27899extern "C"
27900#endif
27901char nettle_sha1_init ();
27902int
27903main ()
27904{
27905return nettle_sha1_init ();
27906  ;
27907  return 0;
27908}
27909_ACEOF
27910if ac_fn_c_try_link "$LINENO"; then :
27911  ac_cv_lib_nettle_nettle_sha1_init=yes
27912else
27913  ac_cv_lib_nettle_nettle_sha1_init=no
27914fi
27915rm -f core conftest.err conftest.$ac_objext \
27916    conftest$ac_exeext conftest.$ac_ext
27917LIBS=$ac_check_lib_save_LIBS
27918fi
27919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
27920$as_echo "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
27921if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes; then :
27922  HAVE_LIBNETTLE=yes
27923fi
27924
27925if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
27926	with_sha1=libnettle
27927fi
27928if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
27929	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
27930fi
27931if test "x$with_sha1" = xlibnettle; then
27932
27933$as_echo "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
27934
27935	SHA1_LIBS=-lnettle
27936fi
27937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
27938$as_echo_n "checking for gcry_md_open in -lgcrypt... " >&6; }
27939if ${ac_cv_lib_gcrypt_gcry_md_open+:} false; then :
27940  $as_echo_n "(cached) " >&6
27941else
27942  ac_check_lib_save_LIBS=$LIBS
27943LIBS="-lgcrypt  $LIBS"
27944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27945/* end confdefs.h.  */
27946
27947/* Override any GCC internal prototype to avoid an error.
27948   Use char because int might match the return type of a GCC
27949   builtin and then its argument prototype would still apply.  */
27950#ifdef __cplusplus
27951extern "C"
27952#endif
27953char gcry_md_open ();
27954int
27955main ()
27956{
27957return gcry_md_open ();
27958  ;
27959  return 0;
27960}
27961_ACEOF
27962if ac_fn_c_try_link "$LINENO"; then :
27963  ac_cv_lib_gcrypt_gcry_md_open=yes
27964else
27965  ac_cv_lib_gcrypt_gcry_md_open=no
27966fi
27967rm -f core conftest.err conftest.$ac_objext \
27968    conftest$ac_exeext conftest.$ac_ext
27969LIBS=$ac_check_lib_save_LIBS
27970fi
27971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
27972$as_echo "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
27973if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes; then :
27974  HAVE_LIBGCRYPT=yes
27975fi
27976
27977if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
27978	with_sha1=libgcrypt
27979fi
27980if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
27981	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
27982fi
27983if test "x$with_sha1" = xlibgcrypt; then
27984
27985$as_echo "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
27986
27987	SHA1_LIBS=-lgcrypt
27988fi
27989# We don't need all of the OpenSSL libraries, just libcrypto
27990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
27991$as_echo_n "checking for SHA1_Init in -lcrypto... " >&6; }
27992if ${ac_cv_lib_crypto_SHA1_Init+:} false; then :
27993  $as_echo_n "(cached) " >&6
27994else
27995  ac_check_lib_save_LIBS=$LIBS
27996LIBS="-lcrypto  $LIBS"
27997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27998/* end confdefs.h.  */
27999
28000/* Override any GCC internal prototype to avoid an error.
28001   Use char because int might match the return type of a GCC
28002   builtin and then its argument prototype would still apply.  */
28003#ifdef __cplusplus
28004extern "C"
28005#endif
28006char SHA1_Init ();
28007int
28008main ()
28009{
28010return SHA1_Init ();
28011  ;
28012  return 0;
28013}
28014_ACEOF
28015if ac_fn_c_try_link "$LINENO"; then :
28016  ac_cv_lib_crypto_SHA1_Init=yes
28017else
28018  ac_cv_lib_crypto_SHA1_Init=no
28019fi
28020rm -f core conftest.err conftest.$ac_objext \
28021    conftest$ac_exeext conftest.$ac_ext
28022LIBS=$ac_check_lib_save_LIBS
28023fi
28024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
28025$as_echo "$ac_cv_lib_crypto_SHA1_Init" >&6; }
28026if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes; then :
28027  HAVE_LIBCRYPTO=yes
28028fi
28029
28030
28031pkg_failed=no
28032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
28033$as_echo_n "checking for OPENSSL... " >&6; }
28034
28035if test -n "$OPENSSL_CFLAGS"; then
28036    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
28037 elif test -n "$PKG_CONFIG"; then
28038    if test -n "$PKG_CONFIG" && \
28039    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
28040  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
28041  ac_status=$?
28042  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28043  test $ac_status = 0; }; then
28044  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
28045		      test "x$?" != "x0" && pkg_failed=yes
28046else
28047  pkg_failed=yes
28048fi
28049 else
28050    pkg_failed=untried
28051fi
28052if test -n "$OPENSSL_LIBS"; then
28053    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
28054 elif test -n "$PKG_CONFIG"; then
28055    if test -n "$PKG_CONFIG" && \
28056    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
28057  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
28058  ac_status=$?
28059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28060  test $ac_status = 0; }; then
28061  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
28062		      test "x$?" != "x0" && pkg_failed=yes
28063else
28064  pkg_failed=yes
28065fi
28066 else
28067    pkg_failed=untried
28068fi
28069
28070
28071
28072if test $pkg_failed = yes; then
28073   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28074$as_echo "no" >&6; }
28075
28076if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28077        _pkg_short_errors_supported=yes
28078else
28079        _pkg_short_errors_supported=no
28080fi
28081        if test $_pkg_short_errors_supported = yes; then
28082	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
28083        else
28084	        OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
28085        fi
28086	# Put the nasty error message in config.log where it belongs
28087	echo "$OPENSSL_PKG_ERRORS" >&5
28088
28089	HAVE_OPENSSL_PKC=no
28090elif test $pkg_failed = untried; then
28091     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28092$as_echo "no" >&6; }
28093	HAVE_OPENSSL_PKC=no
28094else
28095	OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
28096	OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
28097        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28098$as_echo "yes" >&6; }
28099	HAVE_OPENSSL_PKC=yes
28100fi
28101if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
28102	if test "x$with_sha1" = x; then
28103		with_sha1=libcrypto
28104	fi
28105else
28106	if test "x$with_sha1" = xlibcrypto; then
28107		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
28108	fi
28109fi
28110if test "x$with_sha1" = xlibcrypto; then
28111	if test "x$HAVE_LIBCRYPTO" = xyes; then
28112		SHA1_LIBS=-lcrypto
28113	else
28114		SHA1_LIBS="$OPENSSL_LIBS"
28115		SHA1_CFLAGS="$OPENSSL_CFLAGS"
28116	fi
28117fi
28118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
28119$as_echo_n "checking for SHA1 implementation... " >&6; }
28120if test "x$with_sha1" = x; then
28121	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
28122fi
28123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
28124$as_echo "$with_sha1" >&6; }
28125
28126
28127
28128
28129pkg_failed=no
28130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERCFLAGS" >&5
28131$as_echo_n "checking for XSERVERCFLAGS... " >&6; }
28132
28133if test -n "$XSERVERCFLAGS_CFLAGS"; then
28134    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
28135 elif test -n "$PKG_CONFIG"; then
28136    if test -n "$PKG_CONFIG" && \
28137    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28138  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28139  ac_status=$?
28140  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28141  test $ac_status = 0; }; then
28142  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28143		      test "x$?" != "x0" && pkg_failed=yes
28144else
28145  pkg_failed=yes
28146fi
28147 else
28148    pkg_failed=untried
28149fi
28150if test -n "$XSERVERCFLAGS_LIBS"; then
28151    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
28152 elif test -n "$PKG_CONFIG"; then
28153    if test -n "$PKG_CONFIG" && \
28154    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
28155  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
28156  ac_status=$?
28157  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28158  test $ac_status = 0; }; then
28159  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
28160		      test "x$?" != "x0" && pkg_failed=yes
28161else
28162  pkg_failed=yes
28163fi
28164 else
28165    pkg_failed=untried
28166fi
28167
28168
28169
28170if test $pkg_failed = yes; then
28171   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28172$as_echo "no" >&6; }
28173
28174if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28175        _pkg_short_errors_supported=yes
28176else
28177        _pkg_short_errors_supported=no
28178fi
28179        if test $_pkg_short_errors_supported = yes; then
28180	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28181        else
28182	        XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
28183        fi
28184	# Put the nasty error message in config.log where it belongs
28185	echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
28186
28187	as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
28188
28189$XSERVERCFLAGS_PKG_ERRORS
28190
28191Consider adjusting the PKG_CONFIG_PATH environment variable if you
28192installed software in a non-standard prefix.
28193
28194Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28195and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28196See the pkg-config man page for more details." "$LINENO" 5
28197elif test $pkg_failed = untried; then
28198     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28199$as_echo "no" >&6; }
28200	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28202as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28203is in your PATH or set the PKG_CONFIG environment variable to the full
28204path to pkg-config.
28205
28206Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
28207and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
28208See the pkg-config man page for more details.
28209
28210To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28211See \`config.log' for more details" "$LINENO" 5; }
28212else
28213	XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
28214	XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
28215        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28216$as_echo "yes" >&6; }
28217
28218fi
28219
28220pkg_failed=no
28221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSERVERLIBS" >&5
28222$as_echo_n "checking for XSERVERLIBS... " >&6; }
28223
28224if test -n "$XSERVERLIBS_CFLAGS"; then
28225    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
28226 elif test -n "$PKG_CONFIG"; then
28227    if test -n "$PKG_CONFIG" && \
28228    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28229  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28230  ac_status=$?
28231  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28232  test $ac_status = 0; }; then
28233  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
28234		      test "x$?" != "x0" && pkg_failed=yes
28235else
28236  pkg_failed=yes
28237fi
28238 else
28239    pkg_failed=untried
28240fi
28241if test -n "$XSERVERLIBS_LIBS"; then
28242    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
28243 elif test -n "$PKG_CONFIG"; then
28244    if test -n "$PKG_CONFIG" && \
28245    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
28246  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
28247  ac_status=$?
28248  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28249  test $ac_status = 0; }; then
28250  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
28251		      test "x$?" != "x0" && pkg_failed=yes
28252else
28253  pkg_failed=yes
28254fi
28255 else
28256    pkg_failed=untried
28257fi
28258
28259
28260
28261if test $pkg_failed = yes; then
28262   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28263$as_echo "no" >&6; }
28264
28265if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28266        _pkg_short_errors_supported=yes
28267else
28268        _pkg_short_errors_supported=no
28269fi
28270        if test $_pkg_short_errors_supported = yes; then
28271	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28272        else
28273	        XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
28274        fi
28275	# Put the nasty error message in config.log where it belongs
28276	echo "$XSERVERLIBS_PKG_ERRORS" >&5
28277
28278	as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
28279
28280$XSERVERLIBS_PKG_ERRORS
28281
28282Consider adjusting the PKG_CONFIG_PATH environment variable if you
28283installed software in a non-standard prefix.
28284
28285Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28286and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28287See the pkg-config man page for more details." "$LINENO" 5
28288elif test $pkg_failed = untried; then
28289     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28290$as_echo "no" >&6; }
28291	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28293as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28294is in your PATH or set the PKG_CONFIG environment variable to the full
28295path to pkg-config.
28296
28297Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
28298and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
28299See the pkg-config man page for more details.
28300
28301To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28302See \`config.log' for more details" "$LINENO" 5; }
28303else
28304	XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
28305	XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
28306        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28307$as_echo "yes" >&6; }
28308
28309fi
28310
28311
28312pkg_failed=no
28313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUNWIND" >&5
28314$as_echo_n "checking for LIBUNWIND... " >&6; }
28315
28316if test -n "$LIBUNWIND_CFLAGS"; then
28317    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
28318 elif test -n "$PKG_CONFIG"; then
28319    if test -n "$PKG_CONFIG" && \
28320    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28321  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28322  ac_status=$?
28323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28324  test $ac_status = 0; }; then
28325  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
28326		      test "x$?" != "x0" && pkg_failed=yes
28327else
28328  pkg_failed=yes
28329fi
28330 else
28331    pkg_failed=untried
28332fi
28333if test -n "$LIBUNWIND_LIBS"; then
28334    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
28335 elif test -n "$PKG_CONFIG"; then
28336    if test -n "$PKG_CONFIG" && \
28337    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
28338  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
28339  ac_status=$?
28340  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28341  test $ac_status = 0; }; then
28342  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
28343		      test "x$?" != "x0" && pkg_failed=yes
28344else
28345  pkg_failed=yes
28346fi
28347 else
28348    pkg_failed=untried
28349fi
28350
28351
28352
28353if test $pkg_failed = yes; then
28354   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28355$as_echo "no" >&6; }
28356
28357if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28358        _pkg_short_errors_supported=yes
28359else
28360        _pkg_short_errors_supported=no
28361fi
28362        if test $_pkg_short_errors_supported = yes; then
28363	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
28364        else
28365	        LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
28366        fi
28367	# Put the nasty error message in config.log where it belongs
28368	echo "$LIBUNWIND_PKG_ERRORS" >&5
28369
28370	HAVE_LIBUNWIND=no
28371elif test $pkg_failed = untried; then
28372     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373$as_echo "no" >&6; }
28374	HAVE_LIBUNWIND=no
28375else
28376	LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
28377	LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
28378        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28379$as_echo "yes" >&6; }
28380	HAVE_LIBUNWIND=yes
28381fi
28382if test "x$LIBUNWIND" = "xauto"; then
28383    LIBUNWIND="$HAVE_LIBUNWIND"
28384fi
28385
28386if test "x$LIBUNWIND" = "xyes"; then
28387    if test "x$HAVE_LIBUNWIND" != "xyes"; then
28388        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
28389    fi
28390
28391$as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
28392
28393fi
28394
28395 if test "x$LIBUNWIND" = xyes; then
28396  HAVE_LIBUNWIND_TRUE=
28397  HAVE_LIBUNWIND_FALSE='#'
28398else
28399  HAVE_LIBUNWIND_TRUE='#'
28400  HAVE_LIBUNWIND_FALSE=
28401fi
28402
28403
28404# Autotools has some unfortunate issues with library handling.  In order to
28405# get a server to rebuild when a dependency in the tree is changed, it must
28406# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
28407# listed there, or some versions of autotools will break (especially if a -L
28408# is required to find the library).  So, we keep two sets of libraries
28409# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
28410# will go into the _DEPENDENCIES and _LDADD of the server, and
28411# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
28412# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
28413# NAMESPACE_SYS_LIBS.
28414#
28415# XSERVER_LIBS is the set of in-tree libraries which all servers require.
28416# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
28417# require.
28418#
28419XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
28420XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
28421XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
28422
28423
28424
28425UTILS_SYS_LIBS="${SYS_LIBS}"
28426
28427
28428# The Xorg binary needs to export symbols so that they can be used from modules
28429# Some platforms require extra flags to do this.   libtool should set the
28430# necessary flags for each platform when -export-dynamic is passed to it.
28431LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
28432LD_NO_UNDEFINED_FLAG=
28433XORG_DRIVER_LIBS=
28434case "$host_os" in
28435    cygwin*)
28436	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
28437	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
28438	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
28439	CYGWIN=yes
28440	;;
28441    solaris*)
28442	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
28443	# that we can link against for testing if the system linker is new
28444	# enough to support -z parent=<program> for verifying loadable modules
28445	# are only calling functions defined in either the loading program or
28446	# the libraries they're linked with.
28447	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28448/* end confdefs.h.  */
28449int main(int argc, char **argv) { return 0; }
28450_ACEOF
28451if ac_fn_c_try_link "$LINENO"; then :
28452  mv conftest$EXEEXT conftest.parent
28453	     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
28454$as_echo_n "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
28455if ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+:} false; then :
28456  $as_echo_n "(cached) " >&6
28457else
28458
28459      ax_save_FLAGS=$LDFLAGS
28460      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
28461      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28462/* end confdefs.h.  */
28463extern int main(int argc, char **argv);
28464			int call_main(void) { return main(0, (void *)0); }
28465_ACEOF
28466if ac_fn_c_try_link "$LINENO"; then :
28467  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
28468else
28469  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no
28470fi
28471rm -f core conftest.err conftest.$ac_objext \
28472    conftest$ac_exeext conftest.$ac_ext
28473      LDFLAGS=$ax_save_FLAGS
28474fi
28475
28476eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
28477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
28478$as_echo "$xorg_check_linker_flags" >&6; }
28479if test "x$xorg_check_linker_flags" = xyes; then
28480	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
28481# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
28482# and they're not all fixed to build correctly with it yet.
28483#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
28484
28485else
28486	:
28487fi
28488
28489	     rm -f conftest.parent
28490
28491fi
28492rm -f core conftest.err conftest.$ac_objext \
28493    conftest$ac_exeext conftest.$ac_ext
28494	;;
28495esac
28496
28497
28498
28499 if test x"$CYGWIN" = xyes; then
28500  CYGWIN_TRUE=
28501  CYGWIN_FALSE='#'
28502else
28503  CYGWIN_TRUE='#'
28504  CYGWIN_FALSE=
28505fi
28506
28507 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
28508  NO_UNDEFINED_TRUE=
28509  NO_UNDEFINED_FALSE='#'
28510else
28511  NO_UNDEFINED_TRUE='#'
28512  NO_UNDEFINED_FALSE=
28513fi
28514
28515
28516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
28517$as_echo_n "checking if SVR4 needs to be defined... " >&6; }
28518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28519/* end confdefs.h.  */
28520
28521#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
28522 I_AM_SVR4
28523#endif
28524
28525_ACEOF
28526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28527  $EGREP "I_AM_SVR4" >/dev/null 2>&1; then :
28528
28529
28530$as_echo "#define SVR4 1" >>confdefs.h
28531
28532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28533$as_echo "yes" >&6; }
28534else
28535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28536$as_echo "no" >&6; }
28537fi
28538rm -f conftest*
28539
28540
28541XSERVER_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"
28542
28543
28544
28545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
28546$as_echo_n "checking whether to build Xvfb DDX... " >&6; }
28547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
28548$as_echo "$XVFB" >&6; }
28549 if test "x$XVFB" = xyes; then
28550  XVFB_TRUE=
28551  XVFB_FALSE='#'
28552else
28553  XVFB_TRUE='#'
28554  XVFB_FALSE=
28555fi
28556
28557
28558if test "x$XVFB" = xyes; then
28559	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"
28560	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
28561
28562
28563fi
28564
28565
28566
28567
28568pkg_failed=no
28569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XNESTMODULES" >&5
28570$as_echo_n "checking for XNESTMODULES... " >&6; }
28571
28572if test -n "$XNESTMODULES_CFLAGS"; then
28573    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
28574 elif test -n "$PKG_CONFIG"; then
28575    if test -n "$PKG_CONFIG" && \
28576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28577  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28578  ac_status=$?
28579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28580  test $ac_status = 0; }; then
28581  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28582		      test "x$?" != "x0" && pkg_failed=yes
28583else
28584  pkg_failed=yes
28585fi
28586 else
28587    pkg_failed=untried
28588fi
28589if test -n "$XNESTMODULES_LIBS"; then
28590    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
28591 elif test -n "$PKG_CONFIG"; then
28592    if test -n "$PKG_CONFIG" && \
28593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
28594  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
28595  ac_status=$?
28596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28597  test $ac_status = 0; }; then
28598  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
28599		      test "x$?" != "x0" && pkg_failed=yes
28600else
28601  pkg_failed=yes
28602fi
28603 else
28604    pkg_failed=untried
28605fi
28606
28607
28608
28609if test $pkg_failed = yes; then
28610   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28611$as_echo "no" >&6; }
28612
28613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28614        _pkg_short_errors_supported=yes
28615else
28616        _pkg_short_errors_supported=no
28617fi
28618        if test $_pkg_short_errors_supported = yes; then
28619	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28620        else
28621	        XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
28622        fi
28623	# Put the nasty error message in config.log where it belongs
28624	echo "$XNESTMODULES_PKG_ERRORS" >&5
28625
28626	have_xnest=no
28627elif test $pkg_failed = untried; then
28628     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28629$as_echo "no" >&6; }
28630	have_xnest=no
28631else
28632	XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
28633	XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
28634        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28635$as_echo "yes" >&6; }
28636	have_xnest=yes
28637fi
28638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
28639$as_echo_n "checking whether to build Xnest DDX... " >&6; }
28640if test "x$XNEST" = xauto; then
28641	XNEST="$have_xnest"
28642fi
28643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
28644$as_echo "$XNEST" >&6; }
28645 if test "x$XNEST" = xyes; then
28646  XNEST_TRUE=
28647  XNEST_FALSE='#'
28648else
28649  XNEST_TRUE='#'
28650  XNEST_FALSE=
28651fi
28652
28653
28654if test "x$XNEST" = xyes; then
28655	if test "x$have_xnest" = xno; then
28656		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
28657	fi
28658	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"
28659	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
28660
28661
28662fi
28663
28664
28665
28666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
28667$as_echo_n "checking whether to build Xorg DDX... " >&6; }
28668if test "x$XORG" = xauto; then
28669	XORG="yes"
28670	case $host_os in
28671		cygwin*) XORG="no" ;;
28672		mingw*)  XORG="no" ;;
28673		darwin*) XORG="no" ;;
28674	esac
28675fi
28676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
28677$as_echo "$XORG" >&6; }
28678
28679if test "x$XORG" = xyes; then
28680
28681pkg_failed=no
28682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXCVT" >&5
28683$as_echo_n "checking for LIBXCVT... " >&6; }
28684
28685if test -n "$LIBXCVT_CFLAGS"; then
28686    pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS"
28687 elif test -n "$PKG_CONFIG"; then
28688    if test -n "$PKG_CONFIG" && \
28689    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
28690  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
28691  ac_status=$?
28692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28693  test $ac_status = 0; }; then
28694  pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null`
28695		      test "x$?" != "x0" && pkg_failed=yes
28696else
28697  pkg_failed=yes
28698fi
28699 else
28700    pkg_failed=untried
28701fi
28702if test -n "$LIBXCVT_LIBS"; then
28703    pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS"
28704 elif test -n "$PKG_CONFIG"; then
28705    if test -n "$PKG_CONFIG" && \
28706    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
28707  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
28708  ac_status=$?
28709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28710  test $ac_status = 0; }; then
28711  pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null`
28712		      test "x$?" != "x0" && pkg_failed=yes
28713else
28714  pkg_failed=yes
28715fi
28716 else
28717    pkg_failed=untried
28718fi
28719
28720
28721
28722if test $pkg_failed = yes; then
28723   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28724$as_echo "no" >&6; }
28725
28726if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28727        _pkg_short_errors_supported=yes
28728else
28729        _pkg_short_errors_supported=no
28730fi
28731        if test $_pkg_short_errors_supported = yes; then
28732	        LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1`
28733        else
28734	        LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1`
28735        fi
28736	# Put the nasty error message in config.log where it belongs
28737	echo "$LIBXCVT_PKG_ERRORS" >&5
28738
28739	as_fn_error $? "Package requirements ($LIBXCVT) were not met:
28740
28741$LIBXCVT_PKG_ERRORS
28742
28743Consider adjusting the PKG_CONFIG_PATH environment variable if you
28744installed software in a non-standard prefix.
28745
28746Alternatively, you may set the environment variables LIBXCVT_CFLAGS
28747and LIBXCVT_LIBS to avoid the need to call pkg-config.
28748See the pkg-config man page for more details." "$LINENO" 5
28749elif test $pkg_failed = untried; then
28750     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28751$as_echo "no" >&6; }
28752	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28754as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28755is in your PATH or set the PKG_CONFIG environment variable to the full
28756path to pkg-config.
28757
28758Alternatively, you may set the environment variables LIBXCVT_CFLAGS
28759and LIBXCVT_LIBS to avoid the need to call pkg-config.
28760See the pkg-config man page for more details.
28761
28762To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28763See \`config.log' for more details" "$LINENO" 5; }
28764else
28765	LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS
28766	LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS
28767        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28768$as_echo "yes" >&6; }
28769
28770fi
28771
28772	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
28773	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
28774	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
28775	XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H"
28776	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"
28777	XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS"
28778
28779			symbol_visibility=
28780	have_visibility=disabled
28781	if test x$SYMBOL_VISIBILITY != xno; then
28782	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
28783$as_echo_n "checking for symbol visibility support... " >&6; }
28784	    if test x$GCC = xyes; then
28785		VISIBILITY_CFLAGS="-fvisibility=hidden"
28786	    else
28787		if test x$SUNCC = xyes; then
28788		    VISIBILITY_CFLAGS="-xldscope=hidden"
28789		else
28790		    have_visibility=no
28791		fi
28792	    fi
28793	    if test x$have_visibility != xno; then
28794		save_CFLAGS="$CFLAGS"
28795		proto_inc=`$PKG_CONFIG --cflags xproto`
28796		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
28797		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28798/* end confdefs.h.  */
28799
28800		    #include <X11/Xfuncproto.h>
28801		     extern _X_HIDDEN int hidden_int;
28802		     extern _X_EXPORT int public_int;
28803		     extern _X_HIDDEN int hidden_int_func(void);
28804		     extern _X_EXPORT int public_int_func(void);
28805int
28806main ()
28807{
28808
28809  ;
28810  return 0;
28811}
28812_ACEOF
28813if ac_fn_c_try_compile "$LINENO"; then :
28814  have_visibility=yes
28815else
28816  have_visibility=no
28817fi
28818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28819		CFLAGS=$save_CFLAGS
28820	    fi
28821	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
28822$as_echo "$have_visibility" >&6; }
28823	    if test x$have_visibility != xno; then
28824		symbol_visibility=$VISIBILITY_CFLAGS
28825		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
28826		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
28827	    fi
28828	fi
28829
28830
28831				xorg_bus_bsdpci=no
28832	xorg_bus_sparc=no
28833
28834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
28835$as_echo_n "checking whether to build Xorg PCI functions... " >&6; }
28836	if test "x$PCI" = xyes; then
28837
28838pkg_failed=no
28839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
28840$as_echo_n "checking for PCIACCESS... " >&6; }
28841
28842if test -n "$PCIACCESS_CFLAGS"; then
28843    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
28844 elif test -n "$PKG_CONFIG"; then
28845    if test -n "$PKG_CONFIG" && \
28846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
28847  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
28848  ac_status=$?
28849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28850  test $ac_status = 0; }; then
28851  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
28852		      test "x$?" != "x0" && pkg_failed=yes
28853else
28854  pkg_failed=yes
28855fi
28856 else
28857    pkg_failed=untried
28858fi
28859if test -n "$PCIACCESS_LIBS"; then
28860    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
28861 elif test -n "$PKG_CONFIG"; then
28862    if test -n "$PKG_CONFIG" && \
28863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
28864  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
28865  ac_status=$?
28866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28867  test $ac_status = 0; }; then
28868  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
28869		      test "x$?" != "x0" && pkg_failed=yes
28870else
28871  pkg_failed=yes
28872fi
28873 else
28874    pkg_failed=untried
28875fi
28876
28877
28878
28879if test $pkg_failed = yes; then
28880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28881$as_echo "no" >&6; }
28882
28883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28884        _pkg_short_errors_supported=yes
28885else
28886        _pkg_short_errors_supported=no
28887fi
28888        if test $_pkg_short_errors_supported = yes; then
28889	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
28890        else
28891	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
28892        fi
28893	# Put the nasty error message in config.log where it belongs
28894	echo "$PCIACCESS_PKG_ERRORS" >&5
28895
28896	as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
28897
28898$PCIACCESS_PKG_ERRORS
28899
28900Consider adjusting the PKG_CONFIG_PATH environment variable if you
28901installed software in a non-standard prefix.
28902
28903Alternatively, you may set the environment variables PCIACCESS_CFLAGS
28904and PCIACCESS_LIBS to avoid the need to call pkg-config.
28905See the pkg-config man page for more details." "$LINENO" 5
28906elif test $pkg_failed = untried; then
28907     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28908$as_echo "no" >&6; }
28909	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28911as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
28912is in your PATH or set the PKG_CONFIG environment variable to the full
28913path to pkg-config.
28914
28915Alternatively, you may set the environment variables PCIACCESS_CFLAGS
28916and PCIACCESS_LIBS to avoid the need to call pkg-config.
28917See the pkg-config man page for more details.
28918
28919To get pkg-config, see <http://pkg-config.freedesktop.org/>.
28920See \`config.log' for more details" "$LINENO" 5; }
28921else
28922	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
28923	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
28924        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28925$as_echo "yes" >&6; }
28926
28927fi
28928		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
28929		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
28930		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
28931
28932
28933$as_echo "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
28934
28935
28936  prefix_NONE=
28937  exec_prefix_NONE=
28938  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
28939  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
28940  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
28941  eval ac_define_dir="\"$ac_define_dir\""
28942  PCI_TXT_IDS_PATH="$ac_define_dir"
28943
28944
28945cat >>confdefs.h <<_ACEOF
28946#define PCI_TXT_IDS_PATH "$ac_define_dir"
28947_ACEOF
28948
28949  test "$prefix_NONE" && prefix=NONE
28950  test "$exec_prefix_NONE" && exec_prefix=NONE
28951
28952		case $host_os in
28953		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
28954			xorg_bus_bsdpci="yes"
28955			;;
28956		esac
28957		case $host_cpu in
28958		  sparc*)
28959			xorg_bus_sparc="yes"
28960			;;
28961		esac
28962	else
28963		if test "x$CONFIG_UDEV_KMS" = xyes; then
28964			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
28965		fi
28966		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
28967			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
28968		fi
28969	fi
28970	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
28971$as_echo "$PCI" >&6; }
28972
28973	if test "x$CONFIG_UDEV_KMS" = xyes; then
28974
28975$as_echo "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
28976
28977	fi
28978	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
28979$as_echo "$XSERVER_PLATFORM_BUS" >&6; }
28980
28981	case $host_os in
28982	  linux*)
28983		XORG_OS_SUBDIR="linux"
28984		linux_acpi="no"
28985		case $host_cpu in
28986		  i*86|amd64*|x86_64*|ia64*)
28987			linux_acpi=$enable_linux_acpi
28988			;;
28989		  *)
28990			;;
28991		esac
28992				for ac_header in linux/apm_bios.h
28993do :
28994  ac_fn_c_check_header_mongrel "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
28995if test "x$ac_cv_header_linux_apm_bios_h" = xyes; then :
28996  cat >>confdefs.h <<_ACEOF
28997#define HAVE_LINUX_APM_BIOS_H 1
28998_ACEOF
28999 linux_apm=$enable_linux_apm
29000fi
29001
29002done
29003
29004		;;
29005	  freebsd* | kfreebsd*-gnu | dragonfly*)
29006		XORG_OS_SUBDIR="bsd"
29007		;;
29008	  netbsd*)
29009		XORG_OS_SUBDIR="bsd"
29010		;;
29011	  openbsd*)
29012		XORG_OS_SUBDIR="bsd"
29013		;;
29014	  solaris*)
29015		XORG_OS_SUBDIR="solaris"
29016		for ac_header in sys/kd.h
29017do :
29018  ac_fn_c_check_header_mongrel "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
29019if test "x$ac_cv_header_sys_kd_h" = xyes; then :
29020  cat >>confdefs.h <<_ACEOF
29021#define HAVE_SYS_KD_H 1
29022_ACEOF
29023
29024fi
29025
29026done
29027
29028		for ac_header in sys/vt.h
29029do :
29030  ac_fn_c_check_header_mongrel "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
29031if test "x$ac_cv_header_sys_vt_h" = xyes; then :
29032  cat >>confdefs.h <<_ACEOF
29033#define HAVE_SYS_VT_H 1
29034_ACEOF
29035 solaris_vt=yes
29036else
29037  solaris_vt=no
29038fi
29039
29040done
29041
29042		# Check for minimum supported release
29043		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
29044$as_echo_n "checking Solaris version... " >&6; }
29045	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
29046		if test "${OS_MINOR}" -ge 7 ; then
29047	        	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
29048$as_echo "Solaris ${OS_MINOR}" >&6; }
29049		else
29050			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
29051$as_echo "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
29052		fi
29053		if test "${OS_MINOR}" -lt 8 ; then
29054			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
29055		fi
29056		ac_fn_c_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default"
29057if test "x$ac_cv_have_decl__LP64" = xyes; then :
29058  SOLARIS_64="yes"
29059else
29060  SOLARIS_64="no"
29061fi
29062
29063
29064		case $host_cpu in
29065		  sparc*)
29066			SOLARIS_INOUT_ARCH="sparcv8plus"
29067			;;
29068		  i*86|x86_64*)
29069			if test x$SOLARIS_64 = xyes ; then
29070				SOLARIS_INOUT_ARCH="amd64"
29071			else
29072				SOLARIS_INOUT_ARCH="ia32"
29073			fi
29074			;;
29075		  *)
29076			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
29077			are supported on Solaris in this release.   If you are \
29078			interested in porting Xorg to your platform, please email \
29079			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
29080		esac
29081
29082		;;
29083	  gnu*)
29084		XORG_OS_SUBDIR="hurd"
29085		;;
29086	  cygwin*)
29087		XORG_OS_SUBDIR="stub"
29088		;;
29089	  *)
29090		XORG_OS_SUBDIR="stub"
29091		{ $as_echo "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
29092please email xorg@lists.freedesktop.org." >&5
29093$as_echo "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
29094please email xorg@lists.freedesktop.org." >&6;}
29095		;;
29096	esac
29097
29098	if test "x$DGA" = xauto; then
29099
29100pkg_failed=no
29101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
29102$as_echo_n "checking for DGA... " >&6; }
29103
29104if test -n "$DGA_CFLAGS"; then
29105    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
29106 elif test -n "$PKG_CONFIG"; then
29107    if test -n "$PKG_CONFIG" && \
29108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29109  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29110  ac_status=$?
29111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29112  test $ac_status = 0; }; then
29113  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
29114		      test "x$?" != "x0" && pkg_failed=yes
29115else
29116  pkg_failed=yes
29117fi
29118 else
29119    pkg_failed=untried
29120fi
29121if test -n "$DGA_LIBS"; then
29122    pkg_cv_DGA_LIBS="$DGA_LIBS"
29123 elif test -n "$PKG_CONFIG"; then
29124    if test -n "$PKG_CONFIG" && \
29125    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29126  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29127  ac_status=$?
29128  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29129  test $ac_status = 0; }; then
29130  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
29131		      test "x$?" != "x0" && pkg_failed=yes
29132else
29133  pkg_failed=yes
29134fi
29135 else
29136    pkg_failed=untried
29137fi
29138
29139
29140
29141if test $pkg_failed = yes; then
29142   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29143$as_echo "no" >&6; }
29144
29145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29146        _pkg_short_errors_supported=yes
29147else
29148        _pkg_short_errors_supported=no
29149fi
29150        if test $_pkg_short_errors_supported = yes; then
29151	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29152        else
29153	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29154        fi
29155	# Put the nasty error message in config.log where it belongs
29156	echo "$DGA_PKG_ERRORS" >&5
29157
29158	DGA=no
29159elif test $pkg_failed = untried; then
29160     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29161$as_echo "no" >&6; }
29162	DGA=no
29163else
29164	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29165	DGA_LIBS=$pkg_cv_DGA_LIBS
29166        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29167$as_echo "yes" >&6; }
29168	DGA=yes
29169fi
29170	fi
29171	if test "x$DGA" = xyes; then
29172		XORG_MODULES="$XORG_MODULES $DGAPROTO"
29173
29174pkg_failed=no
29175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGA" >&5
29176$as_echo_n "checking for DGA... " >&6; }
29177
29178if test -n "$DGA_CFLAGS"; then
29179    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
29180 elif test -n "$PKG_CONFIG"; then
29181    if test -n "$PKG_CONFIG" && \
29182    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29183  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29184  ac_status=$?
29185  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29186  test $ac_status = 0; }; then
29187  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
29188		      test "x$?" != "x0" && pkg_failed=yes
29189else
29190  pkg_failed=yes
29191fi
29192 else
29193    pkg_failed=untried
29194fi
29195if test -n "$DGA_LIBS"; then
29196    pkg_cv_DGA_LIBS="$DGA_LIBS"
29197 elif test -n "$PKG_CONFIG"; then
29198    if test -n "$PKG_CONFIG" && \
29199    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
29200  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
29201  ac_status=$?
29202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29203  test $ac_status = 0; }; then
29204  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
29205		      test "x$?" != "x0" && pkg_failed=yes
29206else
29207  pkg_failed=yes
29208fi
29209 else
29210    pkg_failed=untried
29211fi
29212
29213
29214
29215if test $pkg_failed = yes; then
29216   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29217$as_echo "no" >&6; }
29218
29219if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29220        _pkg_short_errors_supported=yes
29221else
29222        _pkg_short_errors_supported=no
29223fi
29224        if test $_pkg_short_errors_supported = yes; then
29225	        DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29226        else
29227	        DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
29228        fi
29229	# Put the nasty error message in config.log where it belongs
29230	echo "$DGA_PKG_ERRORS" >&5
29231
29232	as_fn_error $? "Package requirements ($DGAPROTO) were not met:
29233
29234$DGA_PKG_ERRORS
29235
29236Consider adjusting the PKG_CONFIG_PATH environment variable if you
29237installed software in a non-standard prefix.
29238
29239Alternatively, you may set the environment variables DGA_CFLAGS
29240and DGA_LIBS to avoid the need to call pkg-config.
29241See the pkg-config man page for more details." "$LINENO" 5
29242elif test $pkg_failed = untried; then
29243     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29244$as_echo "no" >&6; }
29245	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29246$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29247as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29248is in your PATH or set the PKG_CONFIG environment variable to the full
29249path to pkg-config.
29250
29251Alternatively, you may set the environment variables DGA_CFLAGS
29252and DGA_LIBS to avoid the need to call pkg-config.
29253See the pkg-config man page for more details.
29254
29255To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29256See \`config.log' for more details" "$LINENO" 5; }
29257else
29258	DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
29259	DGA_LIBS=$pkg_cv_DGA_LIBS
29260        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29261$as_echo "yes" >&6; }
29262
29263fi
29264
29265$as_echo "#define DGA 1" >>confdefs.h
29266
29267
29268$as_echo "#define XFreeXDGA 1" >>confdefs.h
29269
29270	fi
29271
29272	if test "x$XF86VIDMODE" = xyes; then
29273		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
29274	fi
29275
29276	if test -n "$XORG_MODULES"; then
29277
29278pkg_failed=no
29279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG_MODULES" >&5
29280$as_echo_n "checking for XORG_MODULES... " >&6; }
29281
29282if test -n "$XORG_MODULES_CFLAGS"; then
29283    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
29284 elif test -n "$PKG_CONFIG"; then
29285    if test -n "$PKG_CONFIG" && \
29286    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29287  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29288  ac_status=$?
29289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29290  test $ac_status = 0; }; then
29291  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
29292		      test "x$?" != "x0" && pkg_failed=yes
29293else
29294  pkg_failed=yes
29295fi
29296 else
29297    pkg_failed=untried
29298fi
29299if test -n "$XORG_MODULES_LIBS"; then
29300    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
29301 elif test -n "$PKG_CONFIG"; then
29302    if test -n "$PKG_CONFIG" && \
29303    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
29304  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
29305  ac_status=$?
29306  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29307  test $ac_status = 0; }; then
29308  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
29309		      test "x$?" != "x0" && pkg_failed=yes
29310else
29311  pkg_failed=yes
29312fi
29313 else
29314    pkg_failed=untried
29315fi
29316
29317
29318
29319if test $pkg_failed = yes; then
29320   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29321$as_echo "no" >&6; }
29322
29323if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29324        _pkg_short_errors_supported=yes
29325else
29326        _pkg_short_errors_supported=no
29327fi
29328        if test $_pkg_short_errors_supported = yes; then
29329	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29330        else
29331	        XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
29332        fi
29333	# Put the nasty error message in config.log where it belongs
29334	echo "$XORG_MODULES_PKG_ERRORS" >&5
29335
29336	as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
29337
29338$XORG_MODULES_PKG_ERRORS
29339
29340Consider adjusting the PKG_CONFIG_PATH environment variable if you
29341installed software in a non-standard prefix.
29342
29343Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29344and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29345See the pkg-config man page for more details." "$LINENO" 5
29346elif test $pkg_failed = untried; then
29347     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29348$as_echo "no" >&6; }
29349	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29351as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29352is in your PATH or set the PKG_CONFIG environment variable to the full
29353path to pkg-config.
29354
29355Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
29356and XORG_MODULES_LIBS to avoid the need to call pkg-config.
29357See the pkg-config man page for more details.
29358
29359To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29360See \`config.log' for more details" "$LINENO" 5; }
29361else
29362	XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
29363	XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
29364        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29365$as_echo "yes" >&6; }
29366
29367fi
29368	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
29369	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
29370	fi
29371
29372	if test "x$DRM" = xyes -a "x$DRI2" = xyes; then
29373		XORG_DRIVER_MODESETTING=yes
29374	fi
29375
29376
29377
29378
29379
29380
29381
29382		XF86CONFIGFILE="xorg.conf"
29383	XF86CONFIGDIR="xorg.conf.d"
29384
29385	LOGPREFIX="Xorg."
29386	XDG_DATA_HOME=".local/share"
29387	XDG_DATA_HOME_LOGDIR="xorg"
29388
29389$as_echo "#define XORG_SERVER 1" >>confdefs.h
29390
29391
29392$as_echo "#define XORGSERVER 1" >>confdefs.h
29393
29394
29395$as_echo "#define XFree86Server 1" >>confdefs.h
29396
29397
29398cat >>confdefs.h <<_ACEOF
29399#define XORG_VERSION_CURRENT $VENDOR_RELEASE
29400_ACEOF
29401
29402
29403$as_echo "#define NEED_XF86_TYPES 1" >>confdefs.h
29404
29405
29406$as_echo "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
29407
29408
29409$as_echo "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
29410
29411
29412  prefix_NONE=
29413  exec_prefix_NONE=
29414  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29415  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29416  eval ac_define_dir="\"$XF86CONFIGFILE\""
29417  eval ac_define_dir="\"$ac_define_dir\""
29418  XCONFIGFILE="$ac_define_dir"
29419
29420
29421cat >>confdefs.h <<_ACEOF
29422#define XCONFIGFILE "$ac_define_dir"
29423_ACEOF
29424
29425  test "$prefix_NONE" && prefix=NONE
29426  test "$exec_prefix_NONE" && exec_prefix=NONE
29427
29428
29429  prefix_NONE=
29430  exec_prefix_NONE=
29431  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29432  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29433  eval ac_define_dir="\"$XF86CONFIGFILE\""
29434  eval ac_define_dir="\"$ac_define_dir\""
29435  XF86CONFIGFILE="$ac_define_dir"
29436
29437
29438cat >>confdefs.h <<_ACEOF
29439#define XF86CONFIGFILE "$ac_define_dir"
29440_ACEOF
29441
29442  test "$prefix_NONE" && prefix=NONE
29443  test "$exec_prefix_NONE" && exec_prefix=NONE
29444
29445
29446  prefix_NONE=
29447  exec_prefix_NONE=
29448  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29449  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29450  eval ac_define_dir="\"$XF86CONFIGDIR\""
29451  eval ac_define_dir="\"$ac_define_dir\""
29452  XCONFIGDIR="$ac_define_dir"
29453
29454
29455cat >>confdefs.h <<_ACEOF
29456#define XCONFIGDIR "$ac_define_dir"
29457_ACEOF
29458
29459  test "$prefix_NONE" && prefix=NONE
29460  test "$exec_prefix_NONE" && exec_prefix=NONE
29461
29462
29463  prefix_NONE=
29464  exec_prefix_NONE=
29465  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29466  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29467  eval ac_define_dir="\"$moduledir\""
29468  eval ac_define_dir="\"$ac_define_dir\""
29469  DEFAULT_MODULE_PATH="$ac_define_dir"
29470
29471
29472cat >>confdefs.h <<_ACEOF
29473#define DEFAULT_MODULE_PATH "$ac_define_dir"
29474_ACEOF
29475
29476  test "$prefix_NONE" && prefix=NONE
29477  test "$exec_prefix_NONE" && exec_prefix=NONE
29478
29479
29480  prefix_NONE=
29481  exec_prefix_NONE=
29482  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29483  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29484  eval ac_define_dir="\"$libdir\""
29485  eval ac_define_dir="\"$ac_define_dir\""
29486  DEFAULT_LIBRARY_PATH="$ac_define_dir"
29487
29488
29489cat >>confdefs.h <<_ACEOF
29490#define DEFAULT_LIBRARY_PATH "$ac_define_dir"
29491_ACEOF
29492
29493  test "$prefix_NONE" && prefix=NONE
29494  test "$exec_prefix_NONE" && exec_prefix=NONE
29495
29496
29497  prefix_NONE=
29498  exec_prefix_NONE=
29499  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29500  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29501  eval ac_define_dir="\"$logdir\""
29502  eval ac_define_dir="\"$ac_define_dir\""
29503  DEFAULT_LOGDIR="$ac_define_dir"
29504
29505
29506cat >>confdefs.h <<_ACEOF
29507#define DEFAULT_LOGDIR "$ac_define_dir"
29508_ACEOF
29509
29510  test "$prefix_NONE" && prefix=NONE
29511  test "$exec_prefix_NONE" && exec_prefix=NONE
29512
29513
29514  prefix_NONE=
29515  exec_prefix_NONE=
29516  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29517  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29518  eval ac_define_dir="\"$LOGPREFIX\""
29519  eval ac_define_dir="\"$ac_define_dir\""
29520  DEFAULT_LOGPREFIX="$ac_define_dir"
29521
29522
29523cat >>confdefs.h <<_ACEOF
29524#define DEFAULT_LOGPREFIX "$ac_define_dir"
29525_ACEOF
29526
29527  test "$prefix_NONE" && prefix=NONE
29528  test "$exec_prefix_NONE" && exec_prefix=NONE
29529
29530
29531  prefix_NONE=
29532  exec_prefix_NONE=
29533  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29534  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29535  eval ac_define_dir="\"$XDG_DATA_HOME\""
29536  eval ac_define_dir="\"$ac_define_dir\""
29537  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
29538
29539
29540cat >>confdefs.h <<_ACEOF
29541#define DEFAULT_XDG_DATA_HOME "$ac_define_dir"
29542_ACEOF
29543
29544  test "$prefix_NONE" && prefix=NONE
29545  test "$exec_prefix_NONE" && exec_prefix=NONE
29546
29547
29548  prefix_NONE=
29549  exec_prefix_NONE=
29550  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29551  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29552  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
29553  eval ac_define_dir="\"$ac_define_dir\""
29554  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
29555
29556
29557cat >>confdefs.h <<_ACEOF
29558#define DEFAULT_XDG_DATA_HOME_LOGDIR "$ac_define_dir"
29559_ACEOF
29560
29561  test "$prefix_NONE" && prefix=NONE
29562  test "$exec_prefix_NONE" && exec_prefix=NONE
29563
29564
29565cat >>confdefs.h <<_ACEOF
29566#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
29567_ACEOF
29568
29569	if test "x$VGAHW" = xyes; then
29570
29571$as_echo "#define WITH_VGAHW 1" >>confdefs.h
29572
29573	fi
29574
29575	driverdir="$moduledir/drivers"
29576
29577
29578	sdkdir="$includedir/xorg"
29579	extdir="$includedir/X11/extensions"
29580	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
29581
29582
29583
29584
29585
29586	# stuff the ABI versions into the pc file too
29587	extract_abi() {
29588	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
29589	}
29590	abi_ansic=`extract_abi ANSIC`
29591	abi_videodrv=`extract_abi VIDEODRV`
29592	abi_xinput=`extract_abi XINPUT`
29593	abi_extension=`extract_abi EXTENSION`
29594
29595
29596
29597
29598fi
29599 if test "x$XORG" = xyes; then
29600  XORG_TRUE=
29601  XORG_FALSE='#'
29602else
29603  XORG_TRUE='#'
29604  XORG_FALSE=
29605fi
29606
29607 if test "x$PCI" = xyes; then
29608  XORG_BUS_PCI_TRUE=
29609  XORG_BUS_PCI_FALSE='#'
29610else
29611  XORG_BUS_PCI_TRUE='#'
29612  XORG_BUS_PCI_FALSE=
29613fi
29614
29615 if test "x$xorg_bus_bsdpci" = xyes; then
29616  XORG_BUS_BSDPCI_TRUE=
29617  XORG_BUS_BSDPCI_FALSE='#'
29618else
29619  XORG_BUS_BSDPCI_TRUE='#'
29620  XORG_BUS_BSDPCI_FALSE=
29621fi
29622
29623 if test "x$xorg_bus_sparc" = xyes; then
29624  XORG_BUS_SPARC_TRUE=
29625  XORG_BUS_SPARC_FALSE='#'
29626else
29627  XORG_BUS_SPARC_TRUE='#'
29628  XORG_BUS_SPARC_FALSE=
29629fi
29630
29631 if test "x$linux_acpi" = xyes; then
29632  LNXACPI_TRUE=
29633  LNXACPI_FALSE='#'
29634else
29635  LNXACPI_TRUE='#'
29636  LNXACPI_FALSE=
29637fi
29638
29639 if test "x$linux_apm" = xyes; then
29640  LNXAPM_TRUE=
29641  LNXAPM_FALSE='#'
29642else
29643  LNXAPM_TRUE='#'
29644  LNXAPM_FALSE=
29645fi
29646
29647 if test "x$solaris_vt" = xyes; then
29648  SOLARIS_VT_TRUE=
29649  SOLARIS_VT_FALSE='#'
29650else
29651  SOLARIS_VT_TRUE='#'
29652  SOLARIS_VT_FALSE=
29653fi
29654
29655 if test "x$DGA" = xyes; then
29656  DGA_TRUE=
29657  DGA_FALSE='#'
29658else
29659  DGA_TRUE='#'
29660  DGA_FALSE=
29661fi
29662
29663 if test "x$CONFIG_UDEV_KMS" = xyes; then
29664  XORG_BUS_PLATFORM_TRUE=
29665  XORG_BUS_PLATFORM_FALSE='#'
29666else
29667  XORG_BUS_PLATFORM_TRUE='#'
29668  XORG_BUS_PLATFORM_FALSE=
29669fi
29670
29671 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
29672  XORG_DRIVER_MODESETTING_TRUE=
29673  XORG_DRIVER_MODESETTING_FALSE='#'
29674else
29675  XORG_DRIVER_MODESETTING_TRUE='#'
29676  XORG_DRIVER_MODESETTING_FALSE=
29677fi
29678
29679 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then
29680  XORG_DRIVER_INPUT_INPUTTEST_TRUE=
29681  XORG_DRIVER_INPUT_INPUTTEST_FALSE='#'
29682else
29683  XORG_DRIVER_INPUT_INPUTTEST_TRUE='#'
29684  XORG_DRIVER_INPUT_INPUTTEST_FALSE=
29685fi
29686
29687
29688if test "x$GLAMOR" = xauto; then
29689	if echo "$XORG" "$XEPHYR" | grep -q yes ; then
29690		GLAMOR=yes
29691	fi
29692fi
29693
29694 if test "x$GLAMOR" = xyes; then
29695  GLAMOR_TRUE=
29696  GLAMOR_FALSE='#'
29697else
29698  GLAMOR_TRUE='#'
29699  GLAMOR_FALSE=
29700fi
29701
29702
29703if test "x$GLAMOR" = xyes; then
29704
29705$as_echo "#define GLAMOR 1" >>confdefs.h
29706
29707
29708pkg_failed=no
29709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLAMOR" >&5
29710$as_echo_n "checking for GLAMOR... " >&6; }
29711
29712if test -n "$GLAMOR_CFLAGS"; then
29713    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
29714 elif test -n "$PKG_CONFIG"; then
29715    if test -n "$PKG_CONFIG" && \
29716    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29717  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29718  ac_status=$?
29719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720  test $ac_status = 0; }; then
29721  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
29722		      test "x$?" != "x0" && pkg_failed=yes
29723else
29724  pkg_failed=yes
29725fi
29726 else
29727    pkg_failed=untried
29728fi
29729if test -n "$GLAMOR_LIBS"; then
29730    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
29731 elif test -n "$PKG_CONFIG"; then
29732    if test -n "$PKG_CONFIG" && \
29733    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
29734  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
29735  ac_status=$?
29736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29737  test $ac_status = 0; }; then
29738  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
29739		      test "x$?" != "x0" && pkg_failed=yes
29740else
29741  pkg_failed=yes
29742fi
29743 else
29744    pkg_failed=untried
29745fi
29746
29747
29748
29749if test $pkg_failed = yes; then
29750   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29751$as_echo "no" >&6; }
29752
29753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29754        _pkg_short_errors_supported=yes
29755else
29756        _pkg_short_errors_supported=no
29757fi
29758        if test $_pkg_short_errors_supported = yes; then
29759	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
29760        else
29761	        GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
29762        fi
29763	# Put the nasty error message in config.log where it belongs
29764	echo "$GLAMOR_PKG_ERRORS" >&5
29765
29766	as_fn_error $? "Package requirements (epoxy) were not met:
29767
29768$GLAMOR_PKG_ERRORS
29769
29770Consider adjusting the PKG_CONFIG_PATH environment variable if you
29771installed software in a non-standard prefix.
29772
29773Alternatively, you may set the environment variables GLAMOR_CFLAGS
29774and GLAMOR_LIBS to avoid the need to call pkg-config.
29775See the pkg-config man page for more details." "$LINENO" 5
29776elif test $pkg_failed = untried; then
29777     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29778$as_echo "no" >&6; }
29779	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29781as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29782is in your PATH or set the PKG_CONFIG environment variable to the full
29783path to pkg-config.
29784
29785Alternatively, you may set the environment variables GLAMOR_CFLAGS
29786and GLAMOR_LIBS to avoid the need to call pkg-config.
29787See the pkg-config man page for more details.
29788
29789To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29790See \`config.log' for more details" "$LINENO" 5; }
29791else
29792	GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
29793	GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
29794        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29795$as_echo "yes" >&6; }
29796
29797fi
29798
29799	if test -n "$PKG_CONFIG" && \
29800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5
29801  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5
29802  ac_status=$?
29803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29804  test $ac_status = 0; }; then
29805
29806$as_echo "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h
29807
29808fi
29809
29810	if test -n "$PKG_CONFIG" && \
29811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5
29812  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5
29813  ac_status=$?
29814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29815  test $ac_status = 0; }; then
29816
29817$as_echo "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h
29818
29819fi
29820
29821
29822pkg_failed=no
29823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GBM" >&5
29824$as_echo_n "checking for GBM... " >&6; }
29825
29826if test -n "$GBM_CFLAGS"; then
29827    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
29828 elif test -n "$PKG_CONFIG"; then
29829    if test -n "$PKG_CONFIG" && \
29830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
29831  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
29832  ac_status=$?
29833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29834  test $ac_status = 0; }; then
29835  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
29836		      test "x$?" != "x0" && pkg_failed=yes
29837else
29838  pkg_failed=yes
29839fi
29840 else
29841    pkg_failed=untried
29842fi
29843if test -n "$GBM_LIBS"; then
29844    pkg_cv_GBM_LIBS="$GBM_LIBS"
29845 elif test -n "$PKG_CONFIG"; then
29846    if test -n "$PKG_CONFIG" && \
29847    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
29848  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
29849  ac_status=$?
29850  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29851  test $ac_status = 0; }; then
29852  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
29853		      test "x$?" != "x0" && pkg_failed=yes
29854else
29855  pkg_failed=yes
29856fi
29857 else
29858    pkg_failed=untried
29859fi
29860
29861
29862
29863if test $pkg_failed = yes; then
29864   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29865$as_echo "no" >&6; }
29866
29867if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29868        _pkg_short_errors_supported=yes
29869else
29870        _pkg_short_errors_supported=no
29871fi
29872        if test $_pkg_short_errors_supported = yes; then
29873	        GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
29874        else
29875	        GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
29876        fi
29877	# Put the nasty error message in config.log where it belongs
29878	echo "$GBM_PKG_ERRORS" >&5
29879
29880	GBM=no
29881elif test $pkg_failed = untried; then
29882     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29883$as_echo "no" >&6; }
29884	GBM=no
29885else
29886	GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
29887	GBM_LIBS=$pkg_cv_GBM_LIBS
29888        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889$as_echo "yes" >&6; }
29890	GBM=yes
29891fi
29892	if test "x$GBM" = xyes; then
29893
29894$as_echo "#define GLAMOR_HAS_GBM 1" >>confdefs.h
29895
29896		ac_fn_c_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
29897			 #include <gbm.h>
29898"
29899if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes; then :
29900
29901$as_echo "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
29902
29903fi
29904
29905				if test -n "$PKG_CONFIG" && \
29906    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5
29907  ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5
29908  ac_status=$?
29909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29910  test $ac_status = 0; }; then
29911
29912$as_echo "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h
29913
29914fi
29915	else
29916		if test "x$XORG" = xyes; then
29917			as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5
29918		fi
29919	fi
29920fi
29921 if test "x$GBM" = xyes; then
29922  GLAMOR_EGL_TRUE=
29923  GLAMOR_EGL_FALSE='#'
29924else
29925  GLAMOR_EGL_TRUE='#'
29926  GLAMOR_EGL_FALSE=
29927fi
29928
29929
29930
29931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
29932$as_echo_n "checking whether to build XWin DDX... " >&6; }
29933if test "x$XWIN" = xauto; then
29934	case $host_os in
29935		cygwin*) XWIN="yes" ;;
29936		mingw*) XWIN="yes" ;;
29937		*) XWIN="no" ;;
29938	esac
29939fi
29940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
29941$as_echo "$XWIN" >&6; }
29942
29943if test "x$XWIN" = xyes; then
29944
29945  prefix_NONE=
29946  exec_prefix_NONE=
29947  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29948  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29949  eval ac_define_dir="\"$logdir\""
29950  eval ac_define_dir="\"$ac_define_dir\""
29951  DEFAULT_LOGDIR="$ac_define_dir"
29952
29953
29954cat >>confdefs.h <<_ACEOF
29955#define DEFAULT_LOGDIR "$ac_define_dir"
29956_ACEOF
29957
29958  test "$prefix_NONE" && prefix=NONE
29959  test "$exec_prefix_NONE" && exec_prefix=NONE
29960
29961
29962cat >>confdefs.h <<_ACEOF
29963#define XORG_VERSION_CURRENT $VENDOR_RELEASE
29964_ACEOF
29965
29966
29967cat >>confdefs.h <<_ACEOF
29968#define __VENDORDWEBSUPPORT__ "$VENDOR_WEB"
29969_ACEOF
29970
29971	if test -n "$ac_tool_prefix"; then
29972  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
29973set dummy ${ac_tool_prefix}windres; ac_word=$2
29974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29975$as_echo_n "checking for $ac_word... " >&6; }
29976if ${ac_cv_prog_WINDRES+:} false; then :
29977  $as_echo_n "(cached) " >&6
29978else
29979  if test -n "$WINDRES"; then
29980  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
29981else
29982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29983for as_dir in $PATH
29984do
29985  IFS=$as_save_IFS
29986  test -z "$as_dir" && as_dir=.
29987    for ac_exec_ext in '' $ac_executable_extensions; do
29988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29989    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
29990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29991    break 2
29992  fi
29993done
29994  done
29995IFS=$as_save_IFS
29996
29997fi
29998fi
29999WINDRES=$ac_cv_prog_WINDRES
30000if test -n "$WINDRES"; then
30001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
30002$as_echo "$WINDRES" >&6; }
30003else
30004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30005$as_echo "no" >&6; }
30006fi
30007
30008
30009fi
30010if test -z "$ac_cv_prog_WINDRES"; then
30011  ac_ct_WINDRES=$WINDRES
30012  # Extract the first word of "windres", so it can be a program name with args.
30013set dummy windres; ac_word=$2
30014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30015$as_echo_n "checking for $ac_word... " >&6; }
30016if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
30017  $as_echo_n "(cached) " >&6
30018else
30019  if test -n "$ac_ct_WINDRES"; then
30020  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
30021else
30022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30023for as_dir in $PATH
30024do
30025  IFS=$as_save_IFS
30026  test -z "$as_dir" && as_dir=.
30027    for ac_exec_ext in '' $ac_executable_extensions; do
30028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30029    ac_cv_prog_ac_ct_WINDRES="windres"
30030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30031    break 2
30032  fi
30033done
30034  done
30035IFS=$as_save_IFS
30036
30037fi
30038fi
30039ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
30040if test -n "$ac_ct_WINDRES"; then
30041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
30042$as_echo "$ac_ct_WINDRES" >&6; }
30043else
30044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30045$as_echo "no" >&6; }
30046fi
30047
30048  if test "x$ac_ct_WINDRES" = x; then
30049    WINDRES=""
30050  else
30051    case $cross_compiling:$ac_tool_warned in
30052yes:)
30053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30055ac_tool_warned=yes ;;
30056esac
30057    WINDRES=$ac_ct_WINDRES
30058  fi
30059else
30060  WINDRES="$ac_cv_prog_WINDRES"
30061fi
30062
30063
30064
30065pkg_failed=no
30066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWINMODULES" >&5
30067$as_echo_n "checking for XWINMODULES... " >&6; }
30068
30069if test -n "$XWINMODULES_CFLAGS"; then
30070    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
30071 elif test -n "$PKG_CONFIG"; then
30072    if test -n "$PKG_CONFIG" && \
30073    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5
30074  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
30075  ac_status=$?
30076  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30077  test $ac_status = 0; }; then
30078  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
30079		      test "x$?" != "x0" && pkg_failed=yes
30080else
30081  pkg_failed=yes
30082fi
30083 else
30084    pkg_failed=untried
30085fi
30086if test -n "$XWINMODULES_LIBS"; then
30087    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
30088 elif test -n "$PKG_CONFIG"; then
30089    if test -n "$PKG_CONFIG" && \
30090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5
30091  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
30092  ac_status=$?
30093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30094  test $ac_status = 0; }; then
30095  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
30096		      test "x$?" != "x0" && pkg_failed=yes
30097else
30098  pkg_failed=yes
30099fi
30100 else
30101    pkg_failed=untried
30102fi
30103
30104
30105
30106if test $pkg_failed = yes; then
30107   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30108$as_echo "no" >&6; }
30109
30110if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30111        _pkg_short_errors_supported=yes
30112else
30113        _pkg_short_errors_supported=no
30114fi
30115        if test $_pkg_short_errors_supported = yes; then
30116	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1`
30117        else
30118	        XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1`
30119        fi
30120	# Put the nasty error message in config.log where it belongs
30121	echo "$XWINMODULES_PKG_ERRORS" >&5
30122
30123	as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met:
30124
30125$XWINMODULES_PKG_ERRORS
30126
30127Consider adjusting the PKG_CONFIG_PATH environment variable if you
30128installed software in a non-standard prefix.
30129
30130Alternatively, you may set the environment variables XWINMODULES_CFLAGS
30131and XWINMODULES_LIBS to avoid the need to call pkg-config.
30132See the pkg-config man page for more details." "$LINENO" 5
30133elif test $pkg_failed = untried; then
30134     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135$as_echo "no" >&6; }
30136	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30138as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30139is in your PATH or set the PKG_CONFIG environment variable to the full
30140path to pkg-config.
30141
30142Alternatively, you may set the environment variables XWINMODULES_CFLAGS
30143and XWINMODULES_LIBS to avoid the need to call pkg-config.
30144See the pkg-config man page for more details.
30145
30146To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30147See \`config.log' for more details" "$LINENO" 5; }
30148else
30149	XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
30150	XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
30151        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30152$as_echo "yes" >&6; }
30153
30154fi
30155
30156	if test "x$WINDOWSDRI" = xauto; then
30157		if test -n "$PKG_CONFIG" && \
30158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30159  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30160  ac_status=$?
30161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30162  test $ac_status = 0; }; then
30163  WINDOWSDRI=yes
30164else
30165  WINDOWSDRI=no
30166fi
30167	fi
30168	if test "x$WINDOWSDRI" = xyes ; then
30169
30170pkg_failed=no
30171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WINDOWSDRI" >&5
30172$as_echo_n "checking for WINDOWSDRI... " >&6; }
30173
30174if test -n "$WINDOWSDRI_CFLAGS"; then
30175    pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS"
30176 elif test -n "$PKG_CONFIG"; then
30177    if test -n "$PKG_CONFIG" && \
30178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30179  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30180  ac_status=$?
30181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30182  test $ac_status = 0; }; then
30183  pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null`
30184		      test "x$?" != "x0" && pkg_failed=yes
30185else
30186  pkg_failed=yes
30187fi
30188 else
30189    pkg_failed=untried
30190fi
30191if test -n "$WINDOWSDRI_LIBS"; then
30192    pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS"
30193 elif test -n "$PKG_CONFIG"; then
30194    if test -n "$PKG_CONFIG" && \
30195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
30196  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
30197  ac_status=$?
30198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30199  test $ac_status = 0; }; then
30200  pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null`
30201		      test "x$?" != "x0" && pkg_failed=yes
30202else
30203  pkg_failed=yes
30204fi
30205 else
30206    pkg_failed=untried
30207fi
30208
30209
30210
30211if test $pkg_failed = yes; then
30212   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30213$as_echo "no" >&6; }
30214
30215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30216        _pkg_short_errors_supported=yes
30217else
30218        _pkg_short_errors_supported=no
30219fi
30220        if test $_pkg_short_errors_supported = yes; then
30221	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1`
30222        else
30223	        WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1`
30224        fi
30225	# Put the nasty error message in config.log where it belongs
30226	echo "$WINDOWSDRI_PKG_ERRORS" >&5
30227
30228	as_fn_error $? "Package requirements (windowsdriproto) were not met:
30229
30230$WINDOWSDRI_PKG_ERRORS
30231
30232Consider adjusting the PKG_CONFIG_PATH environment variable if you
30233installed software in a non-standard prefix.
30234
30235Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
30236and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
30237See the pkg-config man page for more details." "$LINENO" 5
30238elif test $pkg_failed = untried; then
30239     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30240$as_echo "no" >&6; }
30241	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30243as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30244is in your PATH or set the PKG_CONFIG environment variable to the full
30245path to pkg-config.
30246
30247Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
30248and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
30249See the pkg-config man page for more details.
30250
30251To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30252See \`config.log' for more details" "$LINENO" 5; }
30253else
30254	WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS
30255	WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS
30256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30257$as_echo "yes" >&6; }
30258
30259fi
30260	fi
30261
30262	case $host_os in
30263		cygwin*)
30264			XWIN_SERVER_NAME=XWin
30265
30266$as_echo "#define HAS_DEVWINDOWS 1" >>confdefs.h
30267
30268			;;
30269		mingw*)
30270			XWIN_SERVER_NAME=Xming
30271
30272$as_echo "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
30273
30274
30275$as_echo "#define HAS_WINSOCK 1" >>confdefs.h
30276
30277			XWIN_SYS_LIBS="-lpthread -lws2_32"
30278			;;
30279	esac
30280
30281	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"
30282	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
30283
30284
30285
30286
30287	if test "x$DEBUGGING" = xyes; then
30288
30289$as_echo "#define CYGDEBUG 1" >>confdefs.h
30290
30291
30292$as_echo "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
30293
30294
30295$as_echo "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
30296
30297	fi
30298
30299
30300$as_echo "#define DDXOSVERRORF 1" >>confdefs.h
30301
30302
30303$as_echo "#define DDXBEFORERESET 1" >>confdefs.h
30304
30305
30306	if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then
30307           # Extract the first word of "python3", so it can be a program name with args.
30308set dummy python3; ac_word=$2
30309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30310$as_echo_n "checking for $ac_word... " >&6; }
30311if ${ac_cv_prog_PYTHON3+:} false; then :
30312  $as_echo_n "(cached) " >&6
30313else
30314  if test -n "$PYTHON3"; then
30315  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
30316else
30317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30318for as_dir in $PATH
30319do
30320  IFS=$as_save_IFS
30321  test -z "$as_dir" && as_dir=.
30322    for ac_exec_ext in '' $ac_executable_extensions; do
30323  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30324    ac_cv_prog_PYTHON3="python3"
30325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30326    break 2
30327  fi
30328done
30329  done
30330IFS=$as_save_IFS
30331
30332fi
30333fi
30334PYTHON3=$ac_cv_prog_PYTHON3
30335if test -n "$PYTHON3"; then
30336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
30337$as_echo "$PYTHON3" >&6; }
30338else
30339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30340$as_echo "no" >&6; }
30341fi
30342
30343
30344           if test -z "$PYTHON3"; then
30345                as_fn_error $? "python3 not found" "$LINENO" 5
30346           fi
30347           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
30348$as_echo_n "checking for python module lxml... " >&6; }
30349           $PYTHON3 -c "import lxml;"
30350           if test $? -ne 0 ; then
30351                as_fn_error $? "not found" "$LINENO" 5
30352           fi
30353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30354$as_echo "yes" >&6; }
30355           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
30356
30357pkg_failed=no
30358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KHRONOS_OPENGL_REGISTRY" >&5
30359$as_echo_n "checking for KHRONOS_OPENGL_REGISTRY... " >&6; }
30360
30361if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
30362    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
30363 elif test -n "$PKG_CONFIG"; then
30364    if test -n "$PKG_CONFIG" && \
30365    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30366  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30367  ac_status=$?
30368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30369  test $ac_status = 0; }; then
30370  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
30371		      test "x$?" != "x0" && pkg_failed=yes
30372else
30373  pkg_failed=yes
30374fi
30375 else
30376    pkg_failed=untried
30377fi
30378if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
30379    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
30380 elif test -n "$PKG_CONFIG"; then
30381    if test -n "$PKG_CONFIG" && \
30382    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
30383  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
30384  ac_status=$?
30385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30386  test $ac_status = 0; }; then
30387  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
30388		      test "x$?" != "x0" && pkg_failed=yes
30389else
30390  pkg_failed=yes
30391fi
30392 else
30393    pkg_failed=untried
30394fi
30395
30396
30397
30398if test $pkg_failed = yes; then
30399   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30400$as_echo "no" >&6; }
30401
30402if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30403        _pkg_short_errors_supported=yes
30404else
30405        _pkg_short_errors_supported=no
30406fi
30407        if test $_pkg_short_errors_supported = yes; then
30408	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30409        else
30410	        KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
30411        fi
30412	# Put the nasty error message in config.log where it belongs
30413	echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
30414
30415	as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
30416
30417$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
30418
30419Consider adjusting the PKG_CONFIG_PATH environment variable if you
30420installed software in a non-standard prefix.
30421
30422Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30423and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30424See the pkg-config man page for more details." "$LINENO" 5
30425elif test $pkg_failed = untried; then
30426     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30427$as_echo "no" >&6; }
30428	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30430as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30431is in your PATH or set the PKG_CONFIG environment variable to the full
30432path to pkg-config.
30433
30434Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
30435and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
30436See the pkg-config man page for more details.
30437
30438To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30439See \`config.log' for more details" "$LINENO" 5; }
30440else
30441	KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
30442	KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
30443        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30444$as_echo "yes" >&6; }
30445
30446fi
30447		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
30448           fi
30449
30450	fi
30451
30452fi
30453 if test "x$XWIN" = xyes; then
30454  XWIN_TRUE=
30455  XWIN_FALSE='#'
30456else
30457  XWIN_TRUE='#'
30458  XWIN_FALSE=
30459fi
30460
30461 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then
30462  XWIN_GLX_WINDOWS_TRUE=
30463  XWIN_GLX_WINDOWS_FALSE='#'
30464else
30465  XWIN_GLX_WINDOWS_TRUE='#'
30466  XWIN_GLX_WINDOWS_FALSE=
30467fi
30468
30469 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then
30470  XWIN_WINDOWS_DRI_TRUE=
30471  XWIN_WINDOWS_DRI_FALSE='#'
30472else
30473  XWIN_WINDOWS_DRI_TRUE='#'
30474  XWIN_WINDOWS_DRI_FALSE=
30475fi
30476
30477
30478if test "x$XQUARTZ" = xyes; then
30479
30480$as_echo "#define XQUARTZ 1" >>confdefs.h
30481
30482
30483$as_echo "#define ROOTLESS 1" >>confdefs.h
30484
30485
30486	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"
30487
30488
30489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
30490$as_echo_n "checking for xp_init in -lXplugin... " >&6; }
30491if ${ac_cv_lib_Xplugin_xp_init+:} false; then :
30492  $as_echo_n "(cached) " >&6
30493else
30494  ac_check_lib_save_LIBS=$LIBS
30495LIBS="-lXplugin  $LIBS"
30496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30497/* end confdefs.h.  */
30498
30499/* Override any GCC internal prototype to avoid an error.
30500   Use char because int might match the return type of a GCC
30501   builtin and then its argument prototype would still apply.  */
30502#ifdef __cplusplus
30503extern "C"
30504#endif
30505char xp_init ();
30506int
30507main ()
30508{
30509return xp_init ();
30510  ;
30511  return 0;
30512}
30513_ACEOF
30514if ac_fn_c_try_link "$LINENO"; then :
30515  ac_cv_lib_Xplugin_xp_init=yes
30516else
30517  ac_cv_lib_Xplugin_xp_init=no
30518fi
30519rm -f core conftest.err conftest.$ac_objext \
30520    conftest$ac_exeext conftest.$ac_ext
30521LIBS=$ac_check_lib_save_LIBS
30522fi
30523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
30524$as_echo "$ac_cv_lib_Xplugin_xp_init" >&6; }
30525if test "x$ac_cv_lib_Xplugin_xp_init" = xyes; then :
30526  :
30527fi
30528
30529
30530	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
30531
30532
30533pkg_failed=no
30534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPBPROXY" >&5
30535$as_echo_n "checking for XPBPROXY... " >&6; }
30536
30537if test -n "$XPBPROXY_CFLAGS"; then
30538    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
30539 elif test -n "$PKG_CONFIG"; then
30540    if test -n "$PKG_CONFIG" && \
30541    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30542  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30543  ac_status=$?
30544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545  test $ac_status = 0; }; then
30546  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30547		      test "x$?" != "x0" && pkg_failed=yes
30548else
30549  pkg_failed=yes
30550fi
30551 else
30552    pkg_failed=untried
30553fi
30554if test -n "$XPBPROXY_LIBS"; then
30555    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
30556 elif test -n "$PKG_CONFIG"; then
30557    if test -n "$PKG_CONFIG" && \
30558    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
30559  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
30560  ac_status=$?
30561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30562  test $ac_status = 0; }; then
30563  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
30564		      test "x$?" != "x0" && pkg_failed=yes
30565else
30566  pkg_failed=yes
30567fi
30568 else
30569    pkg_failed=untried
30570fi
30571
30572
30573
30574if test $pkg_failed = yes; then
30575   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30576$as_echo "no" >&6; }
30577
30578if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30579        _pkg_short_errors_supported=yes
30580else
30581        _pkg_short_errors_supported=no
30582fi
30583        if test $_pkg_short_errors_supported = yes; then
30584	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30585        else
30586	        XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
30587        fi
30588	# Put the nasty error message in config.log where it belongs
30589	echo "$XPBPROXY_PKG_ERRORS" >&5
30590
30591	as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
30592
30593$XPBPROXY_PKG_ERRORS
30594
30595Consider adjusting the PKG_CONFIG_PATH environment variable if you
30596installed software in a non-standard prefix.
30597
30598Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30599and XPBPROXY_LIBS to avoid the need to call pkg-config.
30600See the pkg-config man page for more details." "$LINENO" 5
30601elif test $pkg_failed = untried; then
30602     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30603$as_echo "no" >&6; }
30604	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30606as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30607is in your PATH or set the PKG_CONFIG environment variable to the full
30608path to pkg-config.
30609
30610Alternatively, you may set the environment variables XPBPROXY_CFLAGS
30611and XPBPROXY_LIBS to avoid the need to call pkg-config.
30612See the pkg-config man page for more details.
30613
30614To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30615See \`config.log' for more details" "$LINENO" 5; }
30616else
30617	XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
30618	XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
30619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30620$as_echo "yes" >&6; }
30621
30622fi
30623
30624        if test "x$XQUARTZ_SPARKLE" = xyes ; then
30625
30626$as_echo "#define XQUARTZ_SPARKLE 1" >>confdefs.h
30627
30628        fi
30629
30630	if test "x$STANDALONE_XPBPROXY" = xyes ; then
30631
30632$as_echo "#define STANDALONE_XPBPROXY 1" >>confdefs.h
30633
30634	fi
30635fi
30636
30637 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
30638  PSEUDORAMIX_TRUE=
30639  PSEUDORAMIX_FALSE='#'
30640else
30641  PSEUDORAMIX_TRUE='#'
30642  PSEUDORAMIX_FALSE=
30643fi
30644
30645
30646# Support for objc in autotools is minimal and not documented.
30647OBJC='$(CC)'
30648OBJCLD='$(CCLD)'
30649OBJCLINK='$(LINK)'
30650OBJCFLAGS='$(CFLAGS)'
30651
30652
30653
30654
30655# internal, undocumented automake func follows :(
30656
30657depcc="$OBJC" am_compiler_list='gcc3 gcc'
30658
30659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
30660$as_echo_n "checking dependency style of $depcc... " >&6; }
30661if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
30662  $as_echo_n "(cached) " >&6
30663else
30664  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
30665  # We make a subdir and do the tests there.  Otherwise we can end up
30666  # making bogus files that we don't know about and never remove.  For
30667  # instance it was reported that on HP-UX the gcc test will end up
30668  # making a dummy file named 'D' -- because '-MD' means "put the output
30669  # in D".
30670  rm -rf conftest.dir
30671  mkdir conftest.dir
30672  # Copy depcomp to subdir because otherwise we won't find it if we're
30673  # using a relative directory.
30674  cp "$am_depcomp" conftest.dir
30675  cd conftest.dir
30676  # We will build objects and dependencies in a subdirectory because
30677  # it helps to detect inapplicable dependency modes.  For instance
30678  # both Tru64's cc and ICC support -MD to output dependencies as a
30679  # side effect of compilation, but ICC will put the dependencies in
30680  # the current directory while Tru64 will put them in the object
30681  # directory.
30682  mkdir sub
30683
30684  am_cv_OBJC_dependencies_compiler_type=none
30685  if test "$am_compiler_list" = ""; then
30686     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
30687  fi
30688  am__universal=false
30689
30690
30691  for depmode in $am_compiler_list; do
30692    # Setup a source with many dependencies, because some compilers
30693    # like to wrap large dependency lists on column 80 (with \), and
30694    # we should not choose a depcomp mode which is confused by this.
30695    #
30696    # We need to recreate these files for each test, as the compiler may
30697    # overwrite some of them when testing with obscure command lines.
30698    # This happens at least with the AIX C compiler.
30699    : > sub/conftest.c
30700    for i in 1 2 3 4 5 6; do
30701      echo '#include "conftst'$i'.h"' >> sub/conftest.c
30702      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
30703      # Solaris 10 /bin/sh.
30704      echo '/* dummy */' > sub/conftst$i.h
30705    done
30706    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
30707
30708    # We check with '-c' and '-o' for the sake of the "dashmstdout"
30709    # mode.  It turns out that the SunPro C++ compiler does not properly
30710    # handle '-M -o', and we need to detect this.  Also, some Intel
30711    # versions had trouble with output in subdirs.
30712    am__obj=sub/conftest.${OBJEXT-o}
30713    am__minus_obj="-o $am__obj"
30714    case $depmode in
30715    gcc)
30716      # This depmode causes a compiler race in universal mode.
30717      test "$am__universal" = false || continue
30718      ;;
30719    nosideeffect)
30720      # After this tag, mechanisms are not by side-effect, so they'll
30721      # only be used when explicitly requested.
30722      if test "x$enable_dependency_tracking" = xyes; then
30723	continue
30724      else
30725	break
30726      fi
30727      ;;
30728    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
30729      # This compiler won't grok '-c -o', but also, the minuso test has
30730      # not run yet.  These depmodes are late enough in the game, and
30731      # so weak that their functioning should not be impacted.
30732      am__obj=conftest.${OBJEXT-o}
30733      am__minus_obj=
30734      ;;
30735    none) break ;;
30736    esac
30737    if depmode=$depmode \
30738       source=sub/conftest.c object=$am__obj \
30739       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
30740       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
30741         >/dev/null 2>conftest.err &&
30742       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
30743       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
30744       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
30745       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
30746      # icc doesn't choke on unknown options, it will just issue warnings
30747      # or remarks (even with -Werror).  So we grep stderr for any message
30748      # that says an option was ignored or not supported.
30749      # When given -MP, icc 7.0 and 7.1 complain thusly:
30750      #   icc: Command line warning: ignoring option '-M'; no argument required
30751      # The diagnosis changed in icc 8.0:
30752      #   icc: Command line remark: option '-MP' not supported
30753      if (grep 'ignoring option' conftest.err ||
30754          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
30755        am_cv_OBJC_dependencies_compiler_type=$depmode
30756        break
30757      fi
30758    fi
30759  done
30760
30761  cd ..
30762  rm -rf conftest.dir
30763else
30764  am_cv_OBJC_dependencies_compiler_type=none
30765fi
30766
30767fi
30768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
30769$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
30770OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
30771
30772 if
30773  test "x$enable_dependency_tracking" != xno \
30774  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
30775  am__fastdepOBJC_TRUE=
30776  am__fastdepOBJC_FALSE='#'
30777else
30778  am__fastdepOBJC_TRUE='#'
30779  am__fastdepOBJC_FALSE=
30780fi
30781
30782
30783 if test "x$XQUARTZ" = xyes; then
30784  XQUARTZ_TRUE=
30785  XQUARTZ_FALSE='#'
30786else
30787  XQUARTZ_TRUE='#'
30788  XQUARTZ_FALSE=
30789fi
30790
30791 if test "x$XQUARTZ_SPARKLE" != "xno"; then
30792  XQUARTZ_SPARKLE_TRUE=
30793  XQUARTZ_SPARKLE_FALSE='#'
30794else
30795  XQUARTZ_SPARKLE_TRUE='#'
30796  XQUARTZ_SPARKLE_FALSE=
30797fi
30798
30799 if test "x$STANDALONE_XPBPROXY" = xyes; then
30800  STANDALONE_XPBPROXY_TRUE=
30801  STANDALONE_XPBPROXY_FALSE='#'
30802else
30803  STANDALONE_XPBPROXY_TRUE='#'
30804  STANDALONE_XPBPROXY_FALSE=
30805fi
30806
30807
30808
30809XEPHYR_LIBS=
30810XEPHYR_INCS=
30811
30812 if test x$KDRIVE = xyes; then
30813  KDRIVE_TRUE=
30814  KDRIVE_FALSE='#'
30815else
30816  KDRIVE_TRUE='#'
30817  KDRIVE_FALSE=
30818fi
30819
30820
30821if test "$KDRIVE" = yes; then
30822    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"
30823    if test "x$XV" = xyes; then
30824        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
30825    fi
30826    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
30827        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6"
30828    fi
30829    if test "x$GLAMOR" = xyes; then
30830        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
30831    fi
30832
30833    if test "x$XEPHYR" = xauto; then
30834
30835pkg_failed=no
30836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
30837$as_echo_n "checking for XEPHYR... " >&6; }
30838
30839if test -n "$XEPHYR_CFLAGS"; then
30840    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
30841 elif test -n "$PKG_CONFIG"; then
30842    if test -n "$PKG_CONFIG" && \
30843    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
30844  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
30845  ac_status=$?
30846  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30847  test $ac_status = 0; }; then
30848  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
30849		      test "x$?" != "x0" && pkg_failed=yes
30850else
30851  pkg_failed=yes
30852fi
30853 else
30854    pkg_failed=untried
30855fi
30856if test -n "$XEPHYR_LIBS"; then
30857    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
30858 elif test -n "$PKG_CONFIG"; then
30859    if test -n "$PKG_CONFIG" && \
30860    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
30861  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
30862  ac_status=$?
30863  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30864  test $ac_status = 0; }; then
30865  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
30866		      test "x$?" != "x0" && pkg_failed=yes
30867else
30868  pkg_failed=yes
30869fi
30870 else
30871    pkg_failed=untried
30872fi
30873
30874
30875
30876if test $pkg_failed = yes; then
30877   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30878$as_echo "no" >&6; }
30879
30880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30881        _pkg_short_errors_supported=yes
30882else
30883        _pkg_short_errors_supported=no
30884fi
30885        if test $_pkg_short_errors_supported = yes; then
30886	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
30887        else
30888	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
30889        fi
30890	# Put the nasty error message in config.log where it belongs
30891	echo "$XEPHYR_PKG_ERRORS" >&5
30892
30893	XEPHYR="no"
30894elif test $pkg_failed = untried; then
30895     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30896$as_echo "no" >&6; }
30897	XEPHYR="no"
30898else
30899	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
30900	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
30901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30902$as_echo "yes" >&6; }
30903	XEPHYR="yes"
30904fi
30905    elif test "x$XEPHYR" = xyes ; then
30906
30907pkg_failed=no
30908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEPHYR" >&5
30909$as_echo_n "checking for XEPHYR... " >&6; }
30910
30911if test -n "$XEPHYR_CFLAGS"; then
30912    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
30913 elif test -n "$PKG_CONFIG"; then
30914    if test -n "$PKG_CONFIG" && \
30915    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
30916  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
30917  ac_status=$?
30918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30919  test $ac_status = 0; }; then
30920  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
30921		      test "x$?" != "x0" && pkg_failed=yes
30922else
30923  pkg_failed=yes
30924fi
30925 else
30926    pkg_failed=untried
30927fi
30928if test -n "$XEPHYR_LIBS"; then
30929    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
30930 elif test -n "$PKG_CONFIG"; then
30931    if test -n "$PKG_CONFIG" && \
30932    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
30933  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
30934  ac_status=$?
30935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30936  test $ac_status = 0; }; then
30937  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
30938		      test "x$?" != "x0" && pkg_failed=yes
30939else
30940  pkg_failed=yes
30941fi
30942 else
30943    pkg_failed=untried
30944fi
30945
30946
30947
30948if test $pkg_failed = yes; then
30949   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30950$as_echo "no" >&6; }
30951
30952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30953        _pkg_short_errors_supported=yes
30954else
30955        _pkg_short_errors_supported=no
30956fi
30957        if test $_pkg_short_errors_supported = yes; then
30958	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
30959        else
30960	        XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
30961        fi
30962	# Put the nasty error message in config.log where it belongs
30963	echo "$XEPHYR_PKG_ERRORS" >&5
30964
30965	as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
30966
30967$XEPHYR_PKG_ERRORS
30968
30969Consider adjusting the PKG_CONFIG_PATH environment variable if you
30970installed software in a non-standard prefix.
30971
30972Alternatively, you may set the environment variables XEPHYR_CFLAGS
30973and XEPHYR_LIBS to avoid the need to call pkg-config.
30974See the pkg-config man page for more details." "$LINENO" 5
30975elif test $pkg_failed = untried; then
30976     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30977$as_echo "no" >&6; }
30978	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30980as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30981is in your PATH or set the PKG_CONFIG environment variable to the full
30982path to pkg-config.
30983
30984Alternatively, you may set the environment variables XEPHYR_CFLAGS
30985and XEPHYR_LIBS to avoid the need to call pkg-config.
30986See the pkg-config man page for more details.
30987
30988To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30989See \`config.log' for more details" "$LINENO" 5; }
30990else
30991	XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
30992	XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
30993        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30994$as_echo "yes" >&6; }
30995
30996fi
30997    fi
30998
30999    # Xephyr needs nanosleep() which is in librt on Solaris
31000    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
31001if test "x$ac_cv_func_nanosleep" = xyes; then :
31002
31003else
31004  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
31005$as_echo_n "checking for nanosleep in -lrt... " >&6; }
31006if ${ac_cv_lib_rt_nanosleep+:} false; then :
31007  $as_echo_n "(cached) " >&6
31008else
31009  ac_check_lib_save_LIBS=$LIBS
31010LIBS="-lrt  $LIBS"
31011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31012/* end confdefs.h.  */
31013
31014/* Override any GCC internal prototype to avoid an error.
31015   Use char because int might match the return type of a GCC
31016   builtin and then its argument prototype would still apply.  */
31017#ifdef __cplusplus
31018extern "C"
31019#endif
31020char nanosleep ();
31021int
31022main ()
31023{
31024return nanosleep ();
31025  ;
31026  return 0;
31027}
31028_ACEOF
31029if ac_fn_c_try_link "$LINENO"; then :
31030  ac_cv_lib_rt_nanosleep=yes
31031else
31032  ac_cv_lib_rt_nanosleep=no
31033fi
31034rm -f core conftest.err conftest.$ac_objext \
31035    conftest$ac_exeext conftest.$ac_ext
31036LIBS=$ac_check_lib_save_LIBS
31037fi
31038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
31039$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
31040if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
31041  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
31042fi
31043
31044fi
31045
31046
31047    # damage shadow extension glx (NOTYET) fb mi
31048    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
31049    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
31050    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
31051    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
31052
31053    KDRIVE_CFLAGS="$XSERVER_CFLAGS"
31054
31055    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"
31056    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
31057    KDRIVE_MAIN_LIB="$MAIN_LIB"
31058    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
31059    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
31060    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
31061    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
31062
31063
31064
31065fi
31066
31067
31068
31069
31070
31071
31072
31073 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
31074  XEPHYR_TRUE=
31075  XEPHYR_FALSE='#'
31076else
31077  XEPHYR_TRUE='#'
31078  XEPHYR_FALSE=
31079fi
31080
31081
31082
31083
31084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31085/* end confdefs.h.  */
31086
31087#include <features.h>
31088#ifndef __GLIBC__
31089#error not glibc
31090#endif
31091
31092int
31093main ()
31094{
31095
31096  ;
31097  return 0;
31098}
31099_ACEOF
31100if ac_fn_c_try_compile "$LINENO"; then :
31101
31102$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
31103
31104fi
31105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31106
31107
31108  prefix_NONE=
31109  exec_prefix_NONE=
31110  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31111  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31112  eval ac_define_dir="\"$prefix\""
31113  eval ac_define_dir="\"$ac_define_dir\""
31114  PROJECTROOT="$ac_define_dir"
31115
31116
31117cat >>confdefs.h <<_ACEOF
31118#define PROJECTROOT "$ac_define_dir"
31119_ACEOF
31120
31121  test "$prefix_NONE" && prefix=NONE
31122  test "$exec_prefix_NONE" && exec_prefix=NONE
31123
31124
31125  prefix_NONE=
31126  exec_prefix_NONE=
31127  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
31128  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
31129  eval ac_define_dir="\"$sysconfdir\""
31130  eval ac_define_dir="\"$ac_define_dir\""
31131  SYSCONFDIR="$ac_define_dir"
31132
31133
31134cat >>confdefs.h <<_ACEOF
31135#define SYSCONFDIR "$ac_define_dir"
31136_ACEOF
31137
31138  test "$prefix_NONE" && prefix=NONE
31139  test "$exec_prefix_NONE" && exec_prefix=NONE
31140
31141
31142
31143
31144DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
31145
31146
31147
31148
31149
31150
31151
31152ac_config_commands="$ac_config_commands sdksyms"
31153
31154
31155if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then
31156    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
31157             ***********************************************
31158             Neither HAL nor udev backend will be enabled.
31159             Input device hotplugging will not be available!
31160             ***********************************************" >&5
31161$as_echo "$as_me: WARNING:
31162             ***********************************************
31163             Neither HAL nor udev backend will be enabled.
31164             Input device hotplugging will not be available!
31165             ***********************************************" >&2;}
31166fi
31167
31168ac_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/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/inputtest/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/vgahw/Makefile hw/xfree86/x86emu/Makefile hw/xfree86/xkb/Makefile hw/xfree86/utils/Makefile hw/xfree86/utils/man/Makefile hw/xfree86/utils/gtf/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 test/Makefile xserver.ent xorg-server.pc"
31169
31170cat >confcache <<\_ACEOF
31171# This file is a shell script that caches the results of configure
31172# tests run on this system so they can be shared between configure
31173# scripts and configure runs, see configure's option --config-cache.
31174# It is not useful on other systems.  If it contains results you don't
31175# want to keep, you may remove or edit it.
31176#
31177# config.status only pays attention to the cache file if you give it
31178# the --recheck option to rerun configure.
31179#
31180# `ac_cv_env_foo' variables (set or unset) will be overridden when
31181# loading this file, other *unset* `ac_cv_foo' will be assigned the
31182# following values.
31183
31184_ACEOF
31185
31186# The following way of writing the cache mishandles newlines in values,
31187# but we know of no workaround that is simple, portable, and efficient.
31188# So, we kill variables containing newlines.
31189# Ultrix sh set writes to stderr and can't be redirected directly,
31190# and sets the high bit in the cache file unless we assign to the vars.
31191(
31192  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31193    eval ac_val=\$$ac_var
31194    case $ac_val in #(
31195    *${as_nl}*)
31196      case $ac_var in #(
31197      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31198$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31199      esac
31200      case $ac_var in #(
31201      _ | IFS | as_nl) ;; #(
31202      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31203      *) { eval $ac_var=; unset $ac_var;} ;;
31204      esac ;;
31205    esac
31206  done
31207
31208  (set) 2>&1 |
31209    case $as_nl`(ac_space=' '; set) 2>&1` in #(
31210    *${as_nl}ac_space=\ *)
31211      # `set' does not quote correctly, so add quotes: double-quote
31212      # substitution turns \\\\ into \\, and sed turns \\ into \.
31213      sed -n \
31214	"s/'/'\\\\''/g;
31215	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31216      ;; #(
31217    *)
31218      # `set' quotes correctly as required by POSIX, so do not add quotes.
31219      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31220      ;;
31221    esac |
31222    sort
31223) |
31224  sed '
31225     /^ac_cv_env_/b end
31226     t clear
31227     :clear
31228     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31229     t end
31230     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31231     :end' >>confcache
31232if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31233  if test -w "$cache_file"; then
31234    if test "x$cache_file" != "x/dev/null"; then
31235      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31236$as_echo "$as_me: updating cache $cache_file" >&6;}
31237      if test ! -f "$cache_file" || test -h "$cache_file"; then
31238	cat confcache >"$cache_file"
31239      else
31240        case $cache_file in #(
31241        */* | ?:*)
31242	  mv -f confcache "$cache_file"$$ &&
31243	  mv -f "$cache_file"$$ "$cache_file" ;; #(
31244        *)
31245	  mv -f confcache "$cache_file" ;;
31246	esac
31247      fi
31248    fi
31249  else
31250    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31251$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31252  fi
31253fi
31254rm -f confcache
31255
31256test "x$prefix" = xNONE && prefix=$ac_default_prefix
31257# Let make expand exec_prefix.
31258test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31259
31260DEFS=-DHAVE_CONFIG_H
31261
31262ac_libobjs=
31263ac_ltlibobjs=
31264U=
31265for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31266  # 1. Remove the extension, and $U if already installed.
31267  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31268  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31269  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31270  #    will be set to the directory where LIBOBJS objects are built.
31271  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31272  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31273done
31274LIBOBJS=$ac_libobjs
31275
31276LTLIBOBJS=$ac_ltlibobjs
31277
31278
31279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
31280$as_echo_n "checking that generated files are newer than configure... " >&6; }
31281   if test -n "$am_sleep_pid"; then
31282     # Hide warnings about reused PIDs.
31283     wait $am_sleep_pid 2>/dev/null
31284   fi
31285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
31286$as_echo "done" >&6; }
31287 if test -n "$EXEEXT"; then
31288  am__EXEEXT_TRUE=
31289  am__EXEEXT_FALSE='#'
31290else
31291  am__EXEEXT_TRUE='#'
31292  am__EXEEXT_FALSE=
31293fi
31294
31295if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31296  as_fn_error $? "conditional \"AMDEP\" was never defined.
31297Usually this means the macro was only invoked conditionally." "$LINENO" 5
31298fi
31299if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31300  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
31301Usually this means the macro was only invoked conditionally." "$LINENO" 5
31302fi
31303if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
31304  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
31305Usually this means the macro was only invoked conditionally." "$LINENO" 5
31306fi
31307if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
31308  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
31309Usually this means the macro was only invoked conditionally." "$LINENO" 5
31310fi
31311if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
31312  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
31313Usually this means the macro was only invoked conditionally." "$LINENO" 5
31314fi
31315if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
31316  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
31317Usually this means the macro was only invoked conditionally." "$LINENO" 5
31318fi
31319if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
31320  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
31321Usually this means the macro was only invoked conditionally." "$LINENO" 5
31322fi
31323if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
31324  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
31325Usually this means the macro was only invoked conditionally." "$LINENO" 5
31326fi
31327if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
31328  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
31329Usually this means the macro was only invoked conditionally." "$LINENO" 5
31330fi
31331if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
31332  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
31333Usually this means the macro was only invoked conditionally." "$LINENO" 5
31334fi
31335if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
31336  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
31337Usually this means the macro was only invoked conditionally." "$LINENO" 5
31338fi
31339if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
31340  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
31341Usually this means the macro was only invoked conditionally." "$LINENO" 5
31342fi
31343if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
31344  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
31345Usually this means the macro was only invoked conditionally." "$LINENO" 5
31346fi
31347if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
31348  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
31349Usually this means the macro was only invoked conditionally." "$LINENO" 5
31350fi
31351if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
31352  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
31353Usually this means the macro was only invoked conditionally." "$LINENO" 5
31354fi
31355if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
31356  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
31357Usually this means the macro was only invoked conditionally." "$LINENO" 5
31358fi
31359
31360if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then
31361  as_fn_error $? "conditional \"POLL\" was never defined.
31362Usually this means the macro was only invoked conditionally." "$LINENO" 5
31363fi
31364if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
31365  as_fn_error $? "conditional \"AGP\" was never defined.
31366Usually this means the macro was only invoked conditionally." "$LINENO" 5
31367fi
31368if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
31369  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
31370Usually this means the macro was only invoked conditionally." "$LINENO" 5
31371fi
31372if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
31373  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
31374Usually this means the macro was only invoked conditionally." "$LINENO" 5
31375fi
31376if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
31377  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
31378Usually this means the macro was only invoked conditionally." "$LINENO" 5
31379fi
31380if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
31381  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
31382Usually this means the macro was only invoked conditionally." "$LINENO" 5
31383fi
31384if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
31385  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
31386Usually this means the macro was only invoked conditionally." "$LINENO" 5
31387fi
31388if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
31389  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
31390Usually this means the macro was only invoked conditionally." "$LINENO" 5
31391fi
31392if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
31393  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
31394Usually this means the macro was only invoked conditionally." "$LINENO" 5
31395fi
31396if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
31397  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
31398Usually this means the macro was only invoked conditionally." "$LINENO" 5
31399fi
31400if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
31401  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
31402Usually this means the macro was only invoked conditionally." "$LINENO" 5
31403fi
31404if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
31405  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
31406Usually this means the macro was only invoked conditionally." "$LINENO" 5
31407fi
31408if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
31409  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
31410Usually this means the macro was only invoked conditionally." "$LINENO" 5
31411fi
31412if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
31413  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
31414Usually this means the macro was only invoked conditionally." "$LINENO" 5
31415fi
31416if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
31417  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
31418Usually this means the macro was only invoked conditionally." "$LINENO" 5
31419fi
31420if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
31421  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
31422Usually this means the macro was only invoked conditionally." "$LINENO" 5
31423fi
31424if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
31425  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
31426Usually this means the macro was only invoked conditionally." "$LINENO" 5
31427fi
31428if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
31429  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
31430Usually this means the macro was only invoked conditionally." "$LINENO" 5
31431fi
31432if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
31433  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
31434Usually this means the macro was only invoked conditionally." "$LINENO" 5
31435fi
31436if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
31437  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
31438Usually this means the macro was only invoked conditionally." "$LINENO" 5
31439fi
31440if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
31441  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
31442Usually this means the macro was only invoked conditionally." "$LINENO" 5
31443fi
31444if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
31445  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
31446Usually this means the macro was only invoked conditionally." "$LINENO" 5
31447fi
31448if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
31449  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
31450Usually this means the macro was only invoked conditionally." "$LINENO" 5
31451fi
31452if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
31453  as_fn_error $? "conditional \"XV\" was never defined.
31454Usually this means the macro was only invoked conditionally." "$LINENO" 5
31455fi
31456if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
31457  as_fn_error $? "conditional \"XVMC\" was never defined.
31458Usually this means the macro was only invoked conditionally." "$LINENO" 5
31459fi
31460if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
31461  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
31462Usually this means the macro was only invoked conditionally." "$LINENO" 5
31463fi
31464if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
31465  as_fn_error $? "conditional \"MITSHM\" was never defined.
31466Usually this means the macro was only invoked conditionally." "$LINENO" 5
31467fi
31468if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
31469  as_fn_error $? "conditional \"RECORD\" was never defined.
31470Usually this means the macro was only invoked conditionally." "$LINENO" 5
31471fi
31472if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
31473  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
31474Usually this means the macro was only invoked conditionally." "$LINENO" 5
31475fi
31476if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
31477  as_fn_error $? "conditional \"RES\" was never defined.
31478Usually this means the macro was only invoked conditionally." "$LINENO" 5
31479fi
31480if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
31481  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
31482Usually this means the macro was only invoked conditionally." "$LINENO" 5
31483fi
31484if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
31485  as_fn_error $? "conditional \"DRI\" was never defined.
31486Usually this means the macro was only invoked conditionally." "$LINENO" 5
31487fi
31488if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
31489  as_fn_error $? "conditional \"DRI2\" was never defined.
31490Usually this means the macro was only invoked conditionally." "$LINENO" 5
31491fi
31492if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
31493  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
31494Usually this means the macro was only invoked conditionally." "$LINENO" 5
31495fi
31496if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
31497  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
31498Usually this means the macro was only invoked conditionally." "$LINENO" 5
31499fi
31500if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
31501  as_fn_error $? "conditional \"DRI3\" was never defined.
31502Usually this means the macro was only invoked conditionally." "$LINENO" 5
31503fi
31504if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
31505  as_fn_error $? "conditional \"GLX\" was never defined.
31506Usually this means the macro was only invoked conditionally." "$LINENO" 5
31507fi
31508if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then
31509  as_fn_error $? "conditional \"HASHTABLE\" was never defined.
31510Usually this means the macro was only invoked conditionally." "$LINENO" 5
31511fi
31512if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
31513  as_fn_error $? "conditional \"PRESENT\" was never defined.
31514Usually this means the macro was only invoked conditionally." "$LINENO" 5
31515fi
31516if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
31517  as_fn_error $? "conditional \"XINERAMA\" was never defined.
31518Usually this means the macro was only invoked conditionally." "$LINENO" 5
31519fi
31520if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
31521  as_fn_error $? "conditional \"XACE\" was never defined.
31522Usually this means the macro was only invoked conditionally." "$LINENO" 5
31523fi
31524if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
31525  as_fn_error $? "conditional \"XSELINUX\" was never defined.
31526Usually this means the macro was only invoked conditionally." "$LINENO" 5
31527fi
31528if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
31529  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
31530Usually this means the macro was only invoked conditionally." "$LINENO" 5
31531fi
31532if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
31533  as_fn_error $? "conditional \"DBE\" was never defined.
31534Usually this means the macro was only invoked conditionally." "$LINENO" 5
31535fi
31536if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
31537  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
31538Usually this means the macro was only invoked conditionally." "$LINENO" 5
31539fi
31540if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
31541  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
31542Usually this means the macro was only invoked conditionally." "$LINENO" 5
31543fi
31544if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
31545  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
31546Usually this means the macro was only invoked conditionally." "$LINENO" 5
31547fi
31548if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
31549  as_fn_error $? "conditional \"VGAHW\" was never defined.
31550Usually this means the macro was only invoked conditionally." "$LINENO" 5
31551fi
31552if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
31553  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
31554Usually this means the macro was only invoked conditionally." "$LINENO" 5
31555fi
31556if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
31557  as_fn_error $? "conditional \"XDMCP\" was never defined.
31558Usually this means the macro was only invoked conditionally." "$LINENO" 5
31559fi
31560if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
31561  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
31562Usually this means the macro was only invoked conditionally." "$LINENO" 5
31563fi
31564if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
31565  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
31566Usually this means the macro was only invoked conditionally." "$LINENO" 5
31567fi
31568if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
31569  as_fn_error $? "conditional \"DEBUG\" was never defined.
31570Usually this means the macro was only invoked conditionally." "$LINENO" 5
31571fi
31572if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
31573  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
31574Usually this means the macro was only invoked conditionally." "$LINENO" 5
31575fi
31576if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
31577  as_fn_error $? "conditional \"CYGWIN\" was never defined.
31578Usually this means the macro was only invoked conditionally." "$LINENO" 5
31579fi
31580if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
31581  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
31582Usually this means the macro was only invoked conditionally." "$LINENO" 5
31583fi
31584if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
31585  as_fn_error $? "conditional \"XVFB\" was never defined.
31586Usually this means the macro was only invoked conditionally." "$LINENO" 5
31587fi
31588if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
31589  as_fn_error $? "conditional \"XNEST\" was never defined.
31590Usually this means the macro was only invoked conditionally." "$LINENO" 5
31591fi
31592if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
31593  as_fn_error $? "conditional \"XORG\" was never defined.
31594Usually this means the macro was only invoked conditionally." "$LINENO" 5
31595fi
31596if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
31597  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
31598Usually this means the macro was only invoked conditionally." "$LINENO" 5
31599fi
31600if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
31601  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
31602Usually this means the macro was only invoked conditionally." "$LINENO" 5
31603fi
31604if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
31605  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
31606Usually this means the macro was only invoked conditionally." "$LINENO" 5
31607fi
31608if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
31609  as_fn_error $? "conditional \"LNXACPI\" was never defined.
31610Usually this means the macro was only invoked conditionally." "$LINENO" 5
31611fi
31612if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
31613  as_fn_error $? "conditional \"LNXAPM\" was never defined.
31614Usually this means the macro was only invoked conditionally." "$LINENO" 5
31615fi
31616if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
31617  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
31618Usually this means the macro was only invoked conditionally." "$LINENO" 5
31619fi
31620if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
31621  as_fn_error $? "conditional \"DGA\" was never defined.
31622Usually this means the macro was only invoked conditionally." "$LINENO" 5
31623fi
31624if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
31625  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
31626Usually this means the macro was only invoked conditionally." "$LINENO" 5
31627fi
31628if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
31629  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
31630Usually this means the macro was only invoked conditionally." "$LINENO" 5
31631fi
31632if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then
31633  as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined.
31634Usually this means the macro was only invoked conditionally." "$LINENO" 5
31635fi
31636if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
31637  as_fn_error $? "conditional \"GLAMOR\" was never defined.
31638Usually this means the macro was only invoked conditionally." "$LINENO" 5
31639fi
31640if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
31641  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
31642Usually this means the macro was only invoked conditionally." "$LINENO" 5
31643fi
31644if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
31645  as_fn_error $? "conditional \"XWIN\" was never defined.
31646Usually this means the macro was only invoked conditionally." "$LINENO" 5
31647fi
31648if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
31649  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
31650Usually this means the macro was only invoked conditionally." "$LINENO" 5
31651fi
31652if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then
31653  as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined.
31654Usually this means the macro was only invoked conditionally." "$LINENO" 5
31655fi
31656if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
31657  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
31658Usually this means the macro was only invoked conditionally." "$LINENO" 5
31659fi
31660if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
31661  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
31662Usually this means the macro was only invoked conditionally." "$LINENO" 5
31663fi
31664if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
31665  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
31666Usually this means the macro was only invoked conditionally." "$LINENO" 5
31667fi
31668if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
31669  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
31670Usually this means the macro was only invoked conditionally." "$LINENO" 5
31671fi
31672if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
31673  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
31674Usually this means the macro was only invoked conditionally." "$LINENO" 5
31675fi
31676if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
31677  as_fn_error $? "conditional \"KDRIVE\" was never defined.
31678Usually this means the macro was only invoked conditionally." "$LINENO" 5
31679fi
31680if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
31681  as_fn_error $? "conditional \"XEPHYR\" was never defined.
31682Usually this means the macro was only invoked conditionally." "$LINENO" 5
31683fi
31684
31685: "${CONFIG_STATUS=./config.status}"
31686ac_write_fail=0
31687ac_clean_files_save=$ac_clean_files
31688ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31689{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31690$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31691as_write_fail=0
31692cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31693#! $SHELL
31694# Generated by $as_me.
31695# Run this file to recreate the current configuration.
31696# Compiler output produced by configure, useful for debugging
31697# configure, is in config.log if it exists.
31698
31699debug=false
31700ac_cs_recheck=false
31701ac_cs_silent=false
31702
31703SHELL=\${CONFIG_SHELL-$SHELL}
31704export SHELL
31705_ASEOF
31706cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31707## -------------------- ##
31708## M4sh Initialization. ##
31709## -------------------- ##
31710
31711# Be more Bourne compatible
31712DUALCASE=1; export DUALCASE # for MKS sh
31713if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31714  emulate sh
31715  NULLCMD=:
31716  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31717  # is contrary to our usage.  Disable this feature.
31718  alias -g '${1+"$@"}'='"$@"'
31719  setopt NO_GLOB_SUBST
31720else
31721  case `(set -o) 2>/dev/null` in #(
31722  *posix*) :
31723    set -o posix ;; #(
31724  *) :
31725     ;;
31726esac
31727fi
31728
31729
31730as_nl='
31731'
31732export as_nl
31733# Printing a long string crashes Solaris 7 /usr/bin/printf.
31734as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31736as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31737# Prefer a ksh shell builtin over an external printf program on Solaris,
31738# but without wasting forks for bash or zsh.
31739if test -z "$BASH_VERSION$ZSH_VERSION" \
31740    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31741  as_echo='print -r --'
31742  as_echo_n='print -rn --'
31743elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31744  as_echo='printf %s\n'
31745  as_echo_n='printf %s'
31746else
31747  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31748    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31749    as_echo_n='/usr/ucb/echo -n'
31750  else
31751    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31752    as_echo_n_body='eval
31753      arg=$1;
31754      case $arg in #(
31755      *"$as_nl"*)
31756	expr "X$arg" : "X\\(.*\\)$as_nl";
31757	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31758      esac;
31759      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31760    '
31761    export as_echo_n_body
31762    as_echo_n='sh -c $as_echo_n_body as_echo'
31763  fi
31764  export as_echo_body
31765  as_echo='sh -c $as_echo_body as_echo'
31766fi
31767
31768# The user is always right.
31769if test "${PATH_SEPARATOR+set}" != set; then
31770  PATH_SEPARATOR=:
31771  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31772    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31773      PATH_SEPARATOR=';'
31774  }
31775fi
31776
31777
31778# IFS
31779# We need space, tab and new line, in precisely that order.  Quoting is
31780# there to prevent editors from complaining about space-tab.
31781# (If _AS_PATH_WALK were called with IFS unset, it would disable word
31782# splitting by setting IFS to empty value.)
31783IFS=" ""	$as_nl"
31784
31785# Find who we are.  Look in the path if we contain no directory separator.
31786as_myself=
31787case $0 in #((
31788  *[\\/]* ) as_myself=$0 ;;
31789  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31790for as_dir in $PATH
31791do
31792  IFS=$as_save_IFS
31793  test -z "$as_dir" && as_dir=.
31794    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31795  done
31796IFS=$as_save_IFS
31797
31798     ;;
31799esac
31800# We did not find ourselves, most probably we were run as `sh COMMAND'
31801# in which case we are not to be found in the path.
31802if test "x$as_myself" = x; then
31803  as_myself=$0
31804fi
31805if test ! -f "$as_myself"; then
31806  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31807  exit 1
31808fi
31809
31810# Unset variables that we do not need and which cause bugs (e.g. in
31811# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31812# suppresses any "Segmentation fault" message there.  '((' could
31813# trigger a bug in pdksh 5.2.14.
31814for as_var in BASH_ENV ENV MAIL MAILPATH
31815do eval test x\${$as_var+set} = xset \
31816  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31817done
31818PS1='$ '
31819PS2='> '
31820PS4='+ '
31821
31822# NLS nuisances.
31823LC_ALL=C
31824export LC_ALL
31825LANGUAGE=C
31826export LANGUAGE
31827
31828# CDPATH.
31829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31830
31831
31832# as_fn_error STATUS ERROR [LINENO LOG_FD]
31833# ----------------------------------------
31834# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31835# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31836# script with STATUS, using 1 if that was 0.
31837as_fn_error ()
31838{
31839  as_status=$1; test $as_status -eq 0 && as_status=1
31840  if test "$4"; then
31841    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31842    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31843  fi
31844  $as_echo "$as_me: error: $2" >&2
31845  as_fn_exit $as_status
31846} # as_fn_error
31847
31848
31849# as_fn_set_status STATUS
31850# -----------------------
31851# Set $? to STATUS, without forking.
31852as_fn_set_status ()
31853{
31854  return $1
31855} # as_fn_set_status
31856
31857# as_fn_exit STATUS
31858# -----------------
31859# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31860as_fn_exit ()
31861{
31862  set +e
31863  as_fn_set_status $1
31864  exit $1
31865} # as_fn_exit
31866
31867# as_fn_unset VAR
31868# ---------------
31869# Portably unset VAR.
31870as_fn_unset ()
31871{
31872  { eval $1=; unset $1;}
31873}
31874as_unset=as_fn_unset
31875# as_fn_append VAR VALUE
31876# ----------------------
31877# Append the text in VALUE to the end of the definition contained in VAR. Take
31878# advantage of any shell optimizations that allow amortized linear growth over
31879# repeated appends, instead of the typical quadratic growth present in naive
31880# implementations.
31881if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31882  eval 'as_fn_append ()
31883  {
31884    eval $1+=\$2
31885  }'
31886else
31887  as_fn_append ()
31888  {
31889    eval $1=\$$1\$2
31890  }
31891fi # as_fn_append
31892
31893# as_fn_arith ARG...
31894# ------------------
31895# Perform arithmetic evaluation on the ARGs, and store the result in the
31896# global $as_val. Take advantage of shells that can avoid forks. The arguments
31897# must be portable across $(()) and expr.
31898if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31899  eval 'as_fn_arith ()
31900  {
31901    as_val=$(( $* ))
31902  }'
31903else
31904  as_fn_arith ()
31905  {
31906    as_val=`expr "$@" || test $? -eq 1`
31907  }
31908fi # as_fn_arith
31909
31910
31911if expr a : '\(a\)' >/dev/null 2>&1 &&
31912   test "X`expr 00001 : '.*\(...\)'`" = X001; then
31913  as_expr=expr
31914else
31915  as_expr=false
31916fi
31917
31918if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31919  as_basename=basename
31920else
31921  as_basename=false
31922fi
31923
31924if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31925  as_dirname=dirname
31926else
31927  as_dirname=false
31928fi
31929
31930as_me=`$as_basename -- "$0" ||
31931$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31932	 X"$0" : 'X\(//\)$' \| \
31933	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31934$as_echo X/"$0" |
31935    sed '/^.*\/\([^/][^/]*\)\/*$/{
31936	    s//\1/
31937	    q
31938	  }
31939	  /^X\/\(\/\/\)$/{
31940	    s//\1/
31941	    q
31942	  }
31943	  /^X\/\(\/\).*/{
31944	    s//\1/
31945	    q
31946	  }
31947	  s/.*/./; q'`
31948
31949# Avoid depending upon Character Ranges.
31950as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31951as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31952as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31953as_cr_digits='0123456789'
31954as_cr_alnum=$as_cr_Letters$as_cr_digits
31955
31956ECHO_C= ECHO_N= ECHO_T=
31957case `echo -n x` in #(((((
31958-n*)
31959  case `echo 'xy\c'` in
31960  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
31961  xy)  ECHO_C='\c';;
31962  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31963       ECHO_T='	';;
31964  esac;;
31965*)
31966  ECHO_N='-n';;
31967esac
31968
31969rm -f conf$$ conf$$.exe conf$$.file
31970if test -d conf$$.dir; then
31971  rm -f conf$$.dir/conf$$.file
31972else
31973  rm -f conf$$.dir
31974  mkdir conf$$.dir 2>/dev/null
31975fi
31976if (echo >conf$$.file) 2>/dev/null; then
31977  if ln -s conf$$.file conf$$ 2>/dev/null; then
31978    as_ln_s='ln -s'
31979    # ... but there are two gotchas:
31980    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31981    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31982    # In both cases, we have to default to `cp -pR'.
31983    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31984      as_ln_s='cp -pR'
31985  elif ln conf$$.file conf$$ 2>/dev/null; then
31986    as_ln_s=ln
31987  else
31988    as_ln_s='cp -pR'
31989  fi
31990else
31991  as_ln_s='cp -pR'
31992fi
31993rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31994rmdir conf$$.dir 2>/dev/null
31995
31996
31997# as_fn_mkdir_p
31998# -------------
31999# Create "$as_dir" as a directory, including parents if necessary.
32000as_fn_mkdir_p ()
32001{
32002
32003  case $as_dir in #(
32004  -*) as_dir=./$as_dir;;
32005  esac
32006  test -d "$as_dir" || eval $as_mkdir_p || {
32007    as_dirs=
32008    while :; do
32009      case $as_dir in #(
32010      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32011      *) as_qdir=$as_dir;;
32012      esac
32013      as_dirs="'$as_qdir' $as_dirs"
32014      as_dir=`$as_dirname -- "$as_dir" ||
32015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32016	 X"$as_dir" : 'X\(//\)[^/]' \| \
32017	 X"$as_dir" : 'X\(//\)$' \| \
32018	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32019$as_echo X"$as_dir" |
32020    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32021	    s//\1/
32022	    q
32023	  }
32024	  /^X\(\/\/\)[^/].*/{
32025	    s//\1/
32026	    q
32027	  }
32028	  /^X\(\/\/\)$/{
32029	    s//\1/
32030	    q
32031	  }
32032	  /^X\(\/\).*/{
32033	    s//\1/
32034	    q
32035	  }
32036	  s/.*/./; q'`
32037      test -d "$as_dir" && break
32038    done
32039    test -z "$as_dirs" || eval "mkdir $as_dirs"
32040  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
32041
32042
32043} # as_fn_mkdir_p
32044if mkdir -p . 2>/dev/null; then
32045  as_mkdir_p='mkdir -p "$as_dir"'
32046else
32047  test -d ./-p && rmdir ./-p
32048  as_mkdir_p=false
32049fi
32050
32051
32052# as_fn_executable_p FILE
32053# -----------------------
32054# Test if FILE is an executable regular file.
32055as_fn_executable_p ()
32056{
32057  test -f "$1" && test -x "$1"
32058} # as_fn_executable_p
32059as_test_x='test -x'
32060as_executable_p=as_fn_executable_p
32061
32062# Sed expression to map a string onto a valid CPP name.
32063as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32064
32065# Sed expression to map a string onto a valid variable name.
32066as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32067
32068
32069exec 6>&1
32070## ----------------------------------- ##
32071## Main body of $CONFIG_STATUS script. ##
32072## ----------------------------------- ##
32073_ASEOF
32074test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
32075
32076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32077# Save the log message, to keep $0 and so on meaningful, and to
32078# report actual input values of CONFIG_FILES etc. instead of their
32079# values after options handling.
32080ac_log="
32081This file was extended by xorg-server $as_me 21.1.3, which was
32082generated by GNU Autoconf 2.69.  Invocation command line was
32083
32084  CONFIG_FILES    = $CONFIG_FILES
32085  CONFIG_HEADERS  = $CONFIG_HEADERS
32086  CONFIG_LINKS    = $CONFIG_LINKS
32087  CONFIG_COMMANDS = $CONFIG_COMMANDS
32088  $ $0 $@
32089
32090on `(hostname || uname -n) 2>/dev/null | sed 1q`
32091"
32092
32093_ACEOF
32094
32095case $ac_config_files in *"
32096"*) set x $ac_config_files; shift; ac_config_files=$*;;
32097esac
32098
32099case $ac_config_headers in *"
32100"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
32101esac
32102
32103
32104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32105# Files that config.status was made for.
32106config_files="$ac_config_files"
32107config_headers="$ac_config_headers"
32108config_commands="$ac_config_commands"
32109
32110_ACEOF
32111
32112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32113ac_cs_usage="\
32114\`$as_me' instantiates files and other configuration actions
32115from templates according to the current configuration.  Unless the files
32116and actions are specified as TAGs, all are instantiated by default.
32117
32118Usage: $0 [OPTION]... [TAG]...
32119
32120  -h, --help       print this help, then exit
32121  -V, --version    print version number and configuration settings, then exit
32122      --config     print configuration, then exit
32123  -q, --quiet, --silent
32124                   do not print progress messages
32125  -d, --debug      don't remove temporary files
32126      --recheck    update $as_me by reconfiguring in the same conditions
32127      --file=FILE[:TEMPLATE]
32128                   instantiate the configuration file FILE
32129      --header=FILE[:TEMPLATE]
32130                   instantiate the configuration header FILE
32131
32132Configuration files:
32133$config_files
32134
32135Configuration headers:
32136$config_headers
32137
32138Configuration commands:
32139$config_commands
32140
32141Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>."
32142
32143_ACEOF
32144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32145ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
32146ac_cs_version="\\
32147xorg-server config.status 21.1.3
32148configured by $0, generated by GNU Autoconf 2.69,
32149  with options \\"\$ac_cs_config\\"
32150
32151Copyright (C) 2012 Free Software Foundation, Inc.
32152This config.status script is free software; the Free Software Foundation
32153gives unlimited permission to copy, distribute and modify it."
32154
32155ac_pwd='$ac_pwd'
32156srcdir='$srcdir'
32157INSTALL='$INSTALL'
32158MKDIR_P='$MKDIR_P'
32159AWK='$AWK'
32160test -n "\$AWK" || AWK=awk
32161_ACEOF
32162
32163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32164# The default lists apply if the user does not specify any file.
32165ac_need_defaults=:
32166while test $# != 0
32167do
32168  case $1 in
32169  --*=?*)
32170    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32171    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32172    ac_shift=:
32173    ;;
32174  --*=)
32175    ac_option=`expr "X$1" : 'X\([^=]*\)='`
32176    ac_optarg=
32177    ac_shift=:
32178    ;;
32179  *)
32180    ac_option=$1
32181    ac_optarg=$2
32182    ac_shift=shift
32183    ;;
32184  esac
32185
32186  case $ac_option in
32187  # Handling of the options.
32188  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32189    ac_cs_recheck=: ;;
32190  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32191    $as_echo "$ac_cs_version"; exit ;;
32192  --config | --confi | --conf | --con | --co | --c )
32193    $as_echo "$ac_cs_config"; exit ;;
32194  --debug | --debu | --deb | --de | --d | -d )
32195    debug=: ;;
32196  --file | --fil | --fi | --f )
32197    $ac_shift
32198    case $ac_optarg in
32199    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32200    '') as_fn_error $? "missing file argument" ;;
32201    esac
32202    as_fn_append CONFIG_FILES " '$ac_optarg'"
32203    ac_need_defaults=false;;
32204  --header | --heade | --head | --hea )
32205    $ac_shift
32206    case $ac_optarg in
32207    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32208    esac
32209    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
32210    ac_need_defaults=false;;
32211  --he | --h)
32212    # Conflict between --help and --header
32213    as_fn_error $? "ambiguous option: \`$1'
32214Try \`$0 --help' for more information.";;
32215  --help | --hel | -h )
32216    $as_echo "$ac_cs_usage"; exit ;;
32217  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32218  | -silent | --silent | --silen | --sile | --sil | --si | --s)
32219    ac_cs_silent=: ;;
32220
32221  # This is an error.
32222  -*) as_fn_error $? "unrecognized option: \`$1'
32223Try \`$0 --help' for more information." ;;
32224
32225  *) as_fn_append ac_config_targets " $1"
32226     ac_need_defaults=false ;;
32227
32228  esac
32229  shift
32230done
32231
32232ac_configure_extra_args=
32233
32234if $ac_cs_silent; then
32235  exec 6>/dev/null
32236  ac_configure_extra_args="$ac_configure_extra_args --silent"
32237fi
32238
32239_ACEOF
32240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32241if \$ac_cs_recheck; then
32242  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32243  shift
32244  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
32245  CONFIG_SHELL='$SHELL'
32246  export CONFIG_SHELL
32247  exec "\$@"
32248fi
32249
32250_ACEOF
32251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32252exec 5>>config.log
32253{
32254  echo
32255  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32256## Running $as_me. ##
32257_ASBOX
32258  $as_echo "$ac_log"
32259} >&5
32260
32261_ACEOF
32262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32263#
32264# INIT-COMMANDS
32265#
32266AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
32267
32268
32269# The HP-UX ksh and POSIX shell print the target directory to stdout
32270# if CDPATH is set.
32271(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
32272
32273sed_quote_subst='$sed_quote_subst'
32274double_quote_subst='$double_quote_subst'
32275delay_variable_subst='$delay_variable_subst'
32276macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
32277macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
32278enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
32279AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
32280DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
32281OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
32282enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
32283pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
32284enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
32285shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
32286SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
32287ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
32288PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
32289host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
32290host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
32291host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
32292build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
32293build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
32294build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
32295SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
32296Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
32297GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
32298EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
32299FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
32300LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
32301NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
32302LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
32303max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
32304ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
32305exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
32306lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
32307lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
32308lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
32309lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
32310lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
32311reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
32312reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
32313deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
32314file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
32315file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
32316want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
32317sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
32318AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
32319AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
32320archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
32321STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
32322RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
32323old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32324old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32325old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
32326lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
32327CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
32328CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
32329compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
32330GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
32331lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
32332lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
32333lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
32334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
32335lt_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"`'
32336lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
32337nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
32338lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
32339lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
32340objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
32341MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
32342lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
32343lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
32344lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
32345lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
32346lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
32347need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
32348MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
32349DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
32350NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
32351LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
32352OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
32353OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
32354libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
32355shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
32356extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32357archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
32358enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
32359export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
32360whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
32361compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
32362old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
32363old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
32364archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
32365archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32366module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
32367module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
32368with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
32369allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
32370no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
32371hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
32372hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
32373hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
32374hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
32375hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
32376hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
32377hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
32378inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
32379link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
32380always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
32381export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
32382exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
32383include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32384prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32385postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32386file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32387variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32388need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32389need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32390version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32391runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32392shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32393shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32394libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32395library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32396soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32397install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32398postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32399postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32400finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32401finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32402hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32403sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32404configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
32405configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
32406hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32407enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32408enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32409enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32410old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32411striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32412
32413LTCC='$LTCC'
32414LTCFLAGS='$LTCFLAGS'
32415compiler='$compiler_DEFAULT'
32416
32417# A function that is used when there is no print builtin or printf.
32418func_fallback_echo ()
32419{
32420  eval 'cat <<_LTECHO_EOF
32421\$1
32422_LTECHO_EOF'
32423}
32424
32425# Quote evaled strings.
32426for var in AS \
32427DLLTOOL \
32428OBJDUMP \
32429SHELL \
32430ECHO \
32431PATH_SEPARATOR \
32432SED \
32433GREP \
32434EGREP \
32435FGREP \
32436LD \
32437NM \
32438LN_S \
32439lt_SP2NL \
32440lt_NL2SP \
32441reload_flag \
32442deplibs_check_method \
32443file_magic_cmd \
32444file_magic_glob \
32445want_nocaseglob \
32446sharedlib_from_linklib_cmd \
32447AR \
32448AR_FLAGS \
32449archiver_list_spec \
32450STRIP \
32451RANLIB \
32452CC \
32453CFLAGS \
32454compiler \
32455lt_cv_sys_global_symbol_pipe \
32456lt_cv_sys_global_symbol_to_cdecl \
32457lt_cv_sys_global_symbol_to_import \
32458lt_cv_sys_global_symbol_to_c_name_address \
32459lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32460lt_cv_nm_interface \
32461nm_file_list_spec \
32462lt_cv_truncate_bin \
32463lt_prog_compiler_no_builtin_flag \
32464lt_prog_compiler_pic \
32465lt_prog_compiler_wl \
32466lt_prog_compiler_static \
32467lt_cv_prog_compiler_c_o \
32468need_locks \
32469MANIFEST_TOOL \
32470DSYMUTIL \
32471NMEDIT \
32472LIPO \
32473OTOOL \
32474OTOOL64 \
32475shrext_cmds \
32476export_dynamic_flag_spec \
32477whole_archive_flag_spec \
32478compiler_needs_object \
32479with_gnu_ld \
32480allow_undefined_flag \
32481no_undefined_flag \
32482hardcode_libdir_flag_spec \
32483hardcode_libdir_separator \
32484exclude_expsyms \
32485include_expsyms \
32486file_list_spec \
32487variables_saved_for_relink \
32488libname_spec \
32489library_names_spec \
32490soname_spec \
32491install_override_mode \
32492finish_eval \
32493old_striplib \
32494striplib; do
32495    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32496    *[\\\\\\\`\\"\\\$]*)
32497      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32498      ;;
32499    *)
32500      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32501      ;;
32502    esac
32503done
32504
32505# Double-quote double-evaled strings.
32506for var in reload_cmds \
32507old_postinstall_cmds \
32508old_postuninstall_cmds \
32509old_archive_cmds \
32510extract_expsyms_cmds \
32511old_archive_from_new_cmds \
32512old_archive_from_expsyms_cmds \
32513archive_cmds \
32514archive_expsym_cmds \
32515module_cmds \
32516module_expsym_cmds \
32517export_symbols_cmds \
32518prelink_cmds \
32519postlink_cmds \
32520postinstall_cmds \
32521postuninstall_cmds \
32522finish_cmds \
32523sys_lib_search_path_spec \
32524configure_time_dlsearch_path \
32525configure_time_lt_sys_library_path; do
32526    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32527    *[\\\\\\\`\\"\\\$]*)
32528      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
32529      ;;
32530    *)
32531      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32532      ;;
32533    esac
32534done
32535
32536ac_aux_dir='$ac_aux_dir'
32537
32538# See if we are running on zsh, and set the options that allow our
32539# commands through without removal of \ escapes INIT.
32540if test -n "\${ZSH_VERSION+set}"; then
32541   setopt NO_GLOB_SUBST
32542fi
32543
32544
32545    PACKAGE='$PACKAGE'
32546    VERSION='$VERSION'
32547    RM='$RM'
32548    ofile='$ofile'
32549
32550
32551
32552
32553_ACEOF
32554
32555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32556
32557# Handling of arguments.
32558for ac_config_target in $ac_config_targets
32559do
32560  case $ac_config_target in
32561    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32562    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
32563    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
32564    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
32565    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
32566    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
32567    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
32568    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
32569    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32570    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
32571    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32572    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
32573    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
32574    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
32575    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
32576    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
32577    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
32578    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32579    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
32580    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
32581    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
32582    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
32583    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
32584    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
32585    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
32586    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
32587    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
32588    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
32589    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
32590    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
32591    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
32592    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
32593    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
32594    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
32595    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
32596    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
32597    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
32598    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
32599    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
32600    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
32601    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
32602    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
32603    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
32604    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
32605    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
32606    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
32607    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
32608    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
32609    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
32610    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
32611    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
32612    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
32613    "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;;
32614    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
32615    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
32616    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
32617    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
32618    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
32619    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
32620    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
32621    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
32622    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
32623    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
32624    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
32625    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
32626    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
32627    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
32628    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
32629    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
32630    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
32631    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
32632    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
32633    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
32634    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
32635    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
32636    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
32637    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
32638    "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;;
32639    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
32640    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
32641    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
32642    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
32643    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
32644    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
32645    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
32646    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
32647    "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;;
32648    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
32649    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
32650    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
32651    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
32652    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
32653    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
32654    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
32655    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
32656    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
32657    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
32658    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
32659    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
32660    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
32661    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
32662    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
32663    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
32664    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
32665
32666  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32667  esac
32668done
32669
32670
32671# If the user did not use the arguments to specify the items to instantiate,
32672# then the envvar interface is used.  Set only those that are not.
32673# We use the long form for the default assignment because of an extremely
32674# bizarre bug on SunOS 4.1.3.
32675if $ac_need_defaults; then
32676  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32677  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32678  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32679fi
32680
32681# Have a temporary directory for convenience.  Make it in the build tree
32682# simply because there is no reason against having it here, and in addition,
32683# creating and moving files from /tmp can sometimes cause problems.
32684# Hook for its removal unless debugging.
32685# Note that there is a small window in which the directory will not be cleaned:
32686# after its creation but before its name has been assigned to `$tmp'.
32687$debug ||
32688{
32689  tmp= ac_tmp=
32690  trap 'exit_status=$?
32691  : "${ac_tmp:=$tmp}"
32692  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32693' 0
32694  trap 'as_fn_exit 1' 1 2 13 15
32695}
32696# Create a (secure) tmp directory for tmp files.
32697
32698{
32699  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32700  test -d "$tmp"
32701}  ||
32702{
32703  tmp=./conf$$-$RANDOM
32704  (umask 077 && mkdir "$tmp")
32705} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32706ac_tmp=$tmp
32707
32708# Set up the scripts for CONFIG_FILES section.
32709# No need to generate them if there are no CONFIG_FILES.
32710# This happens for instance with `./config.status config.h'.
32711if test -n "$CONFIG_FILES"; then
32712
32713
32714ac_cr=`echo X | tr X '\015'`
32715# On cygwin, bash can eat \r inside `` if the user requested igncr.
32716# But we know of no other shell where ac_cr would be empty at this
32717# point, so we can use a bashism as a fallback.
32718if test "x$ac_cr" = x; then
32719  eval ac_cr=\$\'\\r\'
32720fi
32721ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32722if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32723  ac_cs_awk_cr='\\r'
32724else
32725  ac_cs_awk_cr=$ac_cr
32726fi
32727
32728echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32729_ACEOF
32730
32731
32732{
32733  echo "cat >conf$$subs.awk <<_ACEOF" &&
32734  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32735  echo "_ACEOF"
32736} >conf$$subs.sh ||
32737  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32738ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32739ac_delim='%!_!# '
32740for ac_last_try in false false false false false :; do
32741  . ./conf$$subs.sh ||
32742    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32743
32744  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32745  if test $ac_delim_n = $ac_delim_num; then
32746    break
32747  elif $ac_last_try; then
32748    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32749  else
32750    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32751  fi
32752done
32753rm -f conf$$subs.sh
32754
32755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32756cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32757_ACEOF
32758sed -n '
32759h
32760s/^/S["/; s/!.*/"]=/
32761p
32762g
32763s/^[^!]*!//
32764:repl
32765t repl
32766s/'"$ac_delim"'$//
32767t delim
32768:nl
32769h
32770s/\(.\{148\}\)..*/\1/
32771t more1
32772s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32773p
32774n
32775b repl
32776:more1
32777s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32778p
32779g
32780s/.\{148\}//
32781t nl
32782:delim
32783h
32784s/\(.\{148\}\)..*/\1/
32785t more2
32786s/["\\]/\\&/g; s/^/"/; s/$/"/
32787p
32788b
32789:more2
32790s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32791p
32792g
32793s/.\{148\}//
32794t delim
32795' <conf$$subs.awk | sed '
32796/^[^""]/{
32797  N
32798  s/\n//
32799}
32800' >>$CONFIG_STATUS || ac_write_fail=1
32801rm -f conf$$subs.awk
32802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32803_ACAWK
32804cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32805  for (key in S) S_is_set[key] = 1
32806  FS = ""
32807
32808}
32809{
32810  line = $ 0
32811  nfields = split(line, field, "@")
32812  substed = 0
32813  len = length(field[1])
32814  for (i = 2; i < nfields; i++) {
32815    key = field[i]
32816    keylen = length(key)
32817    if (S_is_set[key]) {
32818      value = S[key]
32819      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32820      len += length(value) + length(field[++i])
32821      substed = 1
32822    } else
32823      len += 1 + keylen
32824  }
32825
32826  print line
32827}
32828
32829_ACAWK
32830_ACEOF
32831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32832if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32833  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32834else
32835  cat
32836fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32837  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32838_ACEOF
32839
32840# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32841# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32842# trailing colons and then remove the whole line if VPATH becomes empty
32843# (actually we leave an empty line to preserve line numbers).
32844if test "x$srcdir" = x.; then
32845  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
32846h
32847s///
32848s/^/:/
32849s/[	 ]*$/:/
32850s/:\$(srcdir):/:/g
32851s/:\${srcdir}:/:/g
32852s/:@srcdir@:/:/g
32853s/^:*//
32854s/:*$//
32855x
32856s/\(=[	 ]*\).*/\1/
32857G
32858s/\n//
32859s/^[^=]*=[	 ]*$//
32860}'
32861fi
32862
32863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32864fi # test -n "$CONFIG_FILES"
32865
32866# Set up the scripts for CONFIG_HEADERS section.
32867# No need to generate them if there are no CONFIG_HEADERS.
32868# This happens for instance with `./config.status Makefile'.
32869if test -n "$CONFIG_HEADERS"; then
32870cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32871BEGIN {
32872_ACEOF
32873
32874# Transform confdefs.h into an awk script `defines.awk', embedded as
32875# here-document in config.status, that substitutes the proper values into
32876# config.h.in to produce config.h.
32877
32878# Create a delimiter string that does not exist in confdefs.h, to ease
32879# handling of long lines.
32880ac_delim='%!_!# '
32881for ac_last_try in false false :; do
32882  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32883  if test -z "$ac_tt"; then
32884    break
32885  elif $ac_last_try; then
32886    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32887  else
32888    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32889  fi
32890done
32891
32892# For the awk script, D is an array of macro values keyed by name,
32893# likewise P contains macro parameters if any.  Preserve backslash
32894# newline sequences.
32895
32896ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32897sed -n '
32898s/.\{148\}/&'"$ac_delim"'/g
32899t rset
32900:rset
32901s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
32902t def
32903d
32904:def
32905s/\\$//
32906t bsnl
32907s/["\\]/\\&/g
32908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32909D["\1"]=" \3"/p
32910s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
32911d
32912:bsnl
32913s/["\\]/\\&/g
32914s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
32915D["\1"]=" \3\\\\\\n"\\/p
32916t cont
32917s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32918t cont
32919d
32920:cont
32921n
32922s/.\{148\}/&'"$ac_delim"'/g
32923t clear
32924:clear
32925s/\\$//
32926t bsnlc
32927s/["\\]/\\&/g; s/^/"/; s/$/"/p
32928d
32929:bsnlc
32930s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32931b cont
32932' <confdefs.h | sed '
32933s/'"$ac_delim"'/"\\\
32934"/g' >>$CONFIG_STATUS || ac_write_fail=1
32935
32936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32937  for (key in D) D_is_set[key] = 1
32938  FS = ""
32939}
32940/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32941  line = \$ 0
32942  split(line, arg, " ")
32943  if (arg[1] == "#") {
32944    defundef = arg[2]
32945    mac1 = arg[3]
32946  } else {
32947    defundef = substr(arg[1], 2)
32948    mac1 = arg[2]
32949  }
32950  split(mac1, mac2, "(") #)
32951  macro = mac2[1]
32952  prefix = substr(line, 1, index(line, defundef) - 1)
32953  if (D_is_set[macro]) {
32954    # Preserve the white space surrounding the "#".
32955    print prefix "define", macro P[macro] D[macro]
32956    next
32957  } else {
32958    # Replace #undef with comments.  This is necessary, for example,
32959    # in the case of _POSIX_SOURCE, which is predefined and required
32960    # on some systems where configure will not decide to define it.
32961    if (defundef == "undef") {
32962      print "/*", prefix defundef, macro, "*/"
32963      next
32964    }
32965  }
32966}
32967{ print }
32968_ACAWK
32969_ACEOF
32970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32971  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32972fi # test -n "$CONFIG_HEADERS"
32973
32974
32975eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32976shift
32977for ac_tag
32978do
32979  case $ac_tag in
32980  :[FHLC]) ac_mode=$ac_tag; continue;;
32981  esac
32982  case $ac_mode$ac_tag in
32983  :[FHL]*:*);;
32984  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32985  :[FH]-) ac_tag=-:-;;
32986  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32987  esac
32988  ac_save_IFS=$IFS
32989  IFS=:
32990  set x $ac_tag
32991  IFS=$ac_save_IFS
32992  shift
32993  ac_file=$1
32994  shift
32995
32996  case $ac_mode in
32997  :L) ac_source=$1;;
32998  :[FH])
32999    ac_file_inputs=
33000    for ac_f
33001    do
33002      case $ac_f in
33003      -) ac_f="$ac_tmp/stdin";;
33004      *) # Look for the file first in the build tree, then in the source tree
33005	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
33006	 # because $ac_f cannot contain `:'.
33007	 test -f "$ac_f" ||
33008	   case $ac_f in
33009	   [\\/$]*) false;;
33010	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33011	   esac ||
33012	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
33013      esac
33014      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
33015      as_fn_append ac_file_inputs " '$ac_f'"
33016    done
33017
33018    # Let's still pretend it is `configure' which instantiates (i.e., don't
33019    # use $as_me), people would be surprised to read:
33020    #    /* config.h.  Generated by config.status.  */
33021    configure_input='Generated from '`
33022	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
33023	`' by configure.'
33024    if test x"$ac_file" != x-; then
33025      configure_input="$ac_file.  $configure_input"
33026      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
33027$as_echo "$as_me: creating $ac_file" >&6;}
33028    fi
33029    # Neutralize special characters interpreted by sed in replacement strings.
33030    case $configure_input in #(
33031    *\&* | *\|* | *\\* )
33032       ac_sed_conf_input=`$as_echo "$configure_input" |
33033       sed 's/[\\\\&|]/\\\\&/g'`;; #(
33034    *) ac_sed_conf_input=$configure_input;;
33035    esac
33036
33037    case $ac_tag in
33038    *:-:* | *:-) cat >"$ac_tmp/stdin" \
33039      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
33040    esac
33041    ;;
33042  esac
33043
33044  ac_dir=`$as_dirname -- "$ac_file" ||
33045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33046	 X"$ac_file" : 'X\(//\)[^/]' \| \
33047	 X"$ac_file" : 'X\(//\)$' \| \
33048	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33049$as_echo X"$ac_file" |
33050    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33051	    s//\1/
33052	    q
33053	  }
33054	  /^X\(\/\/\)[^/].*/{
33055	    s//\1/
33056	    q
33057	  }
33058	  /^X\(\/\/\)$/{
33059	    s//\1/
33060	    q
33061	  }
33062	  /^X\(\/\).*/{
33063	    s//\1/
33064	    q
33065	  }
33066	  s/.*/./; q'`
33067  as_dir="$ac_dir"; as_fn_mkdir_p
33068  ac_builddir=.
33069
33070case "$ac_dir" in
33071.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33072*)
33073  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
33074  # A ".." for each directory in $ac_dir_suffix.
33075  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
33076  case $ac_top_builddir_sub in
33077  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33078  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33079  esac ;;
33080esac
33081ac_abs_top_builddir=$ac_pwd
33082ac_abs_builddir=$ac_pwd$ac_dir_suffix
33083# for backward compatibility:
33084ac_top_builddir=$ac_top_build_prefix
33085
33086case $srcdir in
33087  .)  # We are building in place.
33088    ac_srcdir=.
33089    ac_top_srcdir=$ac_top_builddir_sub
33090    ac_abs_top_srcdir=$ac_pwd ;;
33091  [\\/]* | ?:[\\/]* )  # Absolute name.
33092    ac_srcdir=$srcdir$ac_dir_suffix;
33093    ac_top_srcdir=$srcdir
33094    ac_abs_top_srcdir=$srcdir ;;
33095  *) # Relative name.
33096    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33097    ac_top_srcdir=$ac_top_build_prefix$srcdir
33098    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33099esac
33100ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33101
33102
33103  case $ac_mode in
33104  :F)
33105  #
33106  # CONFIG_FILE
33107  #
33108
33109  case $INSTALL in
33110  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33111  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33112  esac
33113  ac_MKDIR_P=$MKDIR_P
33114  case $MKDIR_P in
33115  [\\/$]* | ?:[\\/]* ) ;;
33116  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
33117  esac
33118_ACEOF
33119
33120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33121# If the template does not know about datarootdir, expand it.
33122# FIXME: This hack should be removed a few years after 2.60.
33123ac_datarootdir_hack=; ac_datarootdir_seen=
33124ac_sed_dataroot='
33125/datarootdir/ {
33126  p
33127  q
33128}
33129/@datadir@/p
33130/@docdir@/p
33131/@infodir@/p
33132/@localedir@/p
33133/@mandir@/p'
33134case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
33135*datarootdir*) ac_datarootdir_seen=yes;;
33136*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33137  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33138$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33139_ACEOF
33140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33141  ac_datarootdir_hack='
33142  s&@datadir@&$datadir&g
33143  s&@docdir@&$docdir&g
33144  s&@infodir@&$infodir&g
33145  s&@localedir@&$localedir&g
33146  s&@mandir@&$mandir&g
33147  s&\\\${datarootdir}&$datarootdir&g' ;;
33148esac
33149_ACEOF
33150
33151# Neutralize VPATH when `$srcdir' = `.'.
33152# Shell code in configure.ac might set extrasub.
33153# FIXME: do we really want to maintain this feature?
33154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33155ac_sed_extra="$ac_vpsub
33156$extrasub
33157_ACEOF
33158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33159:t
33160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33161s|@configure_input@|$ac_sed_conf_input|;t t
33162s&@top_builddir@&$ac_top_builddir_sub&;t t
33163s&@top_build_prefix@&$ac_top_build_prefix&;t t
33164s&@srcdir@&$ac_srcdir&;t t
33165s&@abs_srcdir@&$ac_abs_srcdir&;t t
33166s&@top_srcdir@&$ac_top_srcdir&;t t
33167s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33168s&@builddir@&$ac_builddir&;t t
33169s&@abs_builddir@&$ac_abs_builddir&;t t
33170s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33171s&@INSTALL@&$ac_INSTALL&;t t
33172s&@MKDIR_P@&$ac_MKDIR_P&;t t
33173$ac_datarootdir_hack
33174"
33175eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
33176  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33177
33178test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33179  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
33180  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
33181      "$ac_tmp/out"`; test -z "$ac_out"; } &&
33182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33183which seems to be undefined.  Please make sure it is defined" >&5
33184$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33185which seems to be undefined.  Please make sure it is defined" >&2;}
33186
33187  rm -f "$ac_tmp/stdin"
33188  case $ac_file in
33189  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33190  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33191  esac \
33192  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33193 ;;
33194  :H)
33195  #
33196  # CONFIG_HEADER
33197  #
33198  if test x"$ac_file" != x-; then
33199    {
33200      $as_echo "/* $configure_input  */" \
33201      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33202    } >"$ac_tmp/config.h" \
33203      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33204    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33205      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33206$as_echo "$as_me: $ac_file is unchanged" >&6;}
33207    else
33208      rm -f "$ac_file"
33209      mv "$ac_tmp/config.h" "$ac_file" \
33210	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
33211    fi
33212  else
33213    $as_echo "/* $configure_input  */" \
33214      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33215      || as_fn_error $? "could not create -" "$LINENO" 5
33216  fi
33217# Compute "$ac_file"'s index in $config_headers.
33218_am_arg="$ac_file"
33219_am_stamp_count=1
33220for _am_header in $config_headers :; do
33221  case $_am_header in
33222    $_am_arg | $_am_arg:* )
33223      break ;;
33224    * )
33225      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33226  esac
33227done
33228echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
33229$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33230	 X"$_am_arg" : 'X\(//\)[^/]' \| \
33231	 X"$_am_arg" : 'X\(//\)$' \| \
33232	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
33233$as_echo X"$_am_arg" |
33234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33235	    s//\1/
33236	    q
33237	  }
33238	  /^X\(\/\/\)[^/].*/{
33239	    s//\1/
33240	    q
33241	  }
33242	  /^X\(\/\/\)$/{
33243	    s//\1/
33244	    q
33245	  }
33246	  /^X\(\/\).*/{
33247	    s//\1/
33248	    q
33249	  }
33250	  s/.*/./; q'`/stamp-h$_am_stamp_count
33251 ;;
33252
33253  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
33254$as_echo "$as_me: executing $ac_file commands" >&6;}
33255 ;;
33256  esac
33257
33258
33259  case $ac_file$ac_mode in
33260    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
33261  # Older Autoconf quotes --file arguments for eval, but not when files
33262  # are listed without --file.  Let's play safe and only enable the eval
33263  # if we detect the quoting.
33264  # TODO: see whether this extra hack can be removed once we start
33265  # requiring Autoconf 2.70 or later.
33266  case $CONFIG_FILES in #(
33267  *\'*) :
33268    eval set x "$CONFIG_FILES" ;; #(
33269  *) :
33270    set x $CONFIG_FILES ;; #(
33271  *) :
33272     ;;
33273esac
33274  shift
33275  # Used to flag and report bootstrapping failures.
33276  am_rc=0
33277  for am_mf
33278  do
33279    # Strip MF so we end up with the name of the file.
33280    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
33281    # Check whether this is an Automake generated Makefile which includes
33282    # dependency-tracking related rules and includes.
33283    # Grep'ing the whole file directly is not great: AIX grep has a line
33284    # limit of 2048, but all sed's we know have understand at least 4000.
33285    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
33286      || continue
33287    am_dirpart=`$as_dirname -- "$am_mf" ||
33288$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33289	 X"$am_mf" : 'X\(//\)[^/]' \| \
33290	 X"$am_mf" : 'X\(//\)$' \| \
33291	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33292$as_echo X"$am_mf" |
33293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33294	    s//\1/
33295	    q
33296	  }
33297	  /^X\(\/\/\)[^/].*/{
33298	    s//\1/
33299	    q
33300	  }
33301	  /^X\(\/\/\)$/{
33302	    s//\1/
33303	    q
33304	  }
33305	  /^X\(\/\).*/{
33306	    s//\1/
33307	    q
33308	  }
33309	  s/.*/./; q'`
33310    am_filepart=`$as_basename -- "$am_mf" ||
33311$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
33312	 X"$am_mf" : 'X\(//\)$' \| \
33313	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
33314$as_echo X/"$am_mf" |
33315    sed '/^.*\/\([^/][^/]*\)\/*$/{
33316	    s//\1/
33317	    q
33318	  }
33319	  /^X\/\(\/\/\)$/{
33320	    s//\1/
33321	    q
33322	  }
33323	  /^X\/\(\/\).*/{
33324	    s//\1/
33325	    q
33326	  }
33327	  s/.*/./; q'`
33328    { echo "$as_me:$LINENO: cd "$am_dirpart" \
33329      && sed -e '/# am--include-marker/d' "$am_filepart" \
33330        | $MAKE -f - am--depfiles" >&5
33331   (cd "$am_dirpart" \
33332      && sed -e '/# am--include-marker/d' "$am_filepart" \
33333        | $MAKE -f - am--depfiles) >&5 2>&5
33334   ac_status=$?
33335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336   (exit $ac_status); } || am_rc=$?
33337  done
33338  if test $am_rc -ne 0; then
33339    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33341as_fn_error $? "Something went wrong bootstrapping makefile fragments
33342    for automatic dependency tracking.  Try re-running configure with the
33343    '--disable-dependency-tracking' option to at least be able to build
33344    the package (albeit without support for automatic dependency tracking).
33345See \`config.log' for more details" "$LINENO" 5; }
33346  fi
33347  { am_dirpart=; unset am_dirpart;}
33348  { am_filepart=; unset am_filepart;}
33349  { am_mf=; unset am_mf;}
33350  { am_rc=; unset am_rc;}
33351  rm -f conftest-deps.mk
33352}
33353 ;;
33354    "libtool":C)
33355
33356    # See if we are running on zsh, and set the options that allow our
33357    # commands through without removal of \ escapes.
33358    if test -n "${ZSH_VERSION+set}"; then
33359      setopt NO_GLOB_SUBST
33360    fi
33361
33362    cfgfile=${ofile}T
33363    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33364    $RM "$cfgfile"
33365
33366    cat <<_LT_EOF >> "$cfgfile"
33367#! $SHELL
33368# Generated automatically by $as_me ($PACKAGE) $VERSION
33369# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33370
33371# Provide generalized library-building support services.
33372# Written by Gordon Matzigkeit, 1996
33373
33374# Copyright (C) 2014 Free Software Foundation, Inc.
33375# This is free software; see the source for copying conditions.  There is NO
33376# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33377
33378# GNU Libtool is free software; you can redistribute it and/or modify
33379# it under the terms of the GNU General Public License as published by
33380# the Free Software Foundation; either version 2 of of the License, or
33381# (at your option) any later version.
33382#
33383# As a special exception to the GNU General Public License, if you
33384# distribute this file as part of a program or library that is built
33385# using GNU Libtool, you may include this file under the  same
33386# distribution terms that you use for the rest of that program.
33387#
33388# GNU Libtool is distributed in the hope that it will be useful, but
33389# WITHOUT ANY WARRANTY; without even the implied warranty of
33390# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33391# GNU General Public License for more details.
33392#
33393# You should have received a copy of the GNU General Public License
33394# along with this program.  If not, see <http://www.gnu.org/licenses/>.
33395
33396
33397# The names of the tagged configurations supported by this script.
33398available_tags=''
33399
33400# Configured defaults for sys_lib_dlsearch_path munging.
33401: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
33402
33403# ### BEGIN LIBTOOL CONFIG
33404
33405# Which release of libtool.m4 was used?
33406macro_version=$macro_version
33407macro_revision=$macro_revision
33408
33409# Whether or not to build static libraries.
33410build_old_libs=$enable_static
33411
33412# Assembler program.
33413AS=$lt_AS
33414
33415# DLL creation program.
33416DLLTOOL=$lt_DLLTOOL
33417
33418# Object dumper program.
33419OBJDUMP=$lt_OBJDUMP
33420
33421# Whether or not to build shared libraries.
33422build_libtool_libs=$enable_shared
33423
33424# What type of objects to build.
33425pic_mode=$pic_mode
33426
33427# Whether or not to optimize for fast installation.
33428fast_install=$enable_fast_install
33429
33430# Shared archive member basename,for filename based shared library versioning on AIX.
33431shared_archive_member_spec=$shared_archive_member_spec
33432
33433# Shell to use when invoking shell scripts.
33434SHELL=$lt_SHELL
33435
33436# An echo program that protects backslashes.
33437ECHO=$lt_ECHO
33438
33439# The PATH separator for the build system.
33440PATH_SEPARATOR=$lt_PATH_SEPARATOR
33441
33442# The host system.
33443host_alias=$host_alias
33444host=$host
33445host_os=$host_os
33446
33447# The build system.
33448build_alias=$build_alias
33449build=$build
33450build_os=$build_os
33451
33452# A sed program that does not truncate output.
33453SED=$lt_SED
33454
33455# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33456Xsed="\$SED -e 1s/^X//"
33457
33458# A grep program that handles long lines.
33459GREP=$lt_GREP
33460
33461# An ERE matcher.
33462EGREP=$lt_EGREP
33463
33464# A literal string matcher.
33465FGREP=$lt_FGREP
33466
33467# A BSD- or MS-compatible name lister.
33468NM=$lt_NM
33469
33470# Whether we need soft or hard links.
33471LN_S=$lt_LN_S
33472
33473# What is the maximum length of a command?
33474max_cmd_len=$max_cmd_len
33475
33476# Object file suffix (normally "o").
33477objext=$ac_objext
33478
33479# Executable file suffix (normally "").
33480exeext=$exeext
33481
33482# whether the shell understands "unset".
33483lt_unset=$lt_unset
33484
33485# turn spaces into newlines.
33486SP2NL=$lt_lt_SP2NL
33487
33488# turn newlines into spaces.
33489NL2SP=$lt_lt_NL2SP
33490
33491# convert \$build file names to \$host format.
33492to_host_file_cmd=$lt_cv_to_host_file_cmd
33493
33494# convert \$build files to toolchain format.
33495to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33496
33497# Method to check whether dependent libraries are shared objects.
33498deplibs_check_method=$lt_deplibs_check_method
33499
33500# Command to use when deplibs_check_method = "file_magic".
33501file_magic_cmd=$lt_file_magic_cmd
33502
33503# How to find potential files when deplibs_check_method = "file_magic".
33504file_magic_glob=$lt_file_magic_glob
33505
33506# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33507want_nocaseglob=$lt_want_nocaseglob
33508
33509# Command to associate shared and link libraries.
33510sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33511
33512# The archiver.
33513AR=$lt_AR
33514
33515# Flags to create an archive.
33516AR_FLAGS=$lt_AR_FLAGS
33517
33518# How to feed a file listing to the archiver.
33519archiver_list_spec=$lt_archiver_list_spec
33520
33521# A symbol stripping program.
33522STRIP=$lt_STRIP
33523
33524# Commands used to install an old-style archive.
33525RANLIB=$lt_RANLIB
33526old_postinstall_cmds=$lt_old_postinstall_cmds
33527old_postuninstall_cmds=$lt_old_postuninstall_cmds
33528
33529# Whether to use a lock for old archive extraction.
33530lock_old_archive_extraction=$lock_old_archive_extraction
33531
33532# A C compiler.
33533LTCC=$lt_CC
33534
33535# LTCC compiler flags.
33536LTCFLAGS=$lt_CFLAGS
33537
33538# Take the output of nm and produce a listing of raw symbols and C names.
33539global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33540
33541# Transform the output of nm in a proper C declaration.
33542global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33543
33544# Transform the output of nm into a list of symbols to manually relocate.
33545global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
33546
33547# Transform the output of nm in a C name address pair.
33548global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33549
33550# Transform the output of nm in a C name address pair when lib prefix is needed.
33551global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33552
33553# The name lister interface.
33554nm_interface=$lt_lt_cv_nm_interface
33555
33556# Specify filename containing input files for \$NM.
33557nm_file_list_spec=$lt_nm_file_list_spec
33558
33559# The root where to search for dependent libraries,and where our libraries should be installed.
33560lt_sysroot=$lt_sysroot
33561
33562# Command to truncate a binary pipe.
33563lt_truncate_bin=$lt_lt_cv_truncate_bin
33564
33565# The name of the directory that contains temporary libtool files.
33566objdir=$objdir
33567
33568# Used to examine libraries when file_magic_cmd begins with "file".
33569MAGIC_CMD=$MAGIC_CMD
33570
33571# Must we lock files when doing compilation?
33572need_locks=$lt_need_locks
33573
33574# Manifest tool.
33575MANIFEST_TOOL=$lt_MANIFEST_TOOL
33576
33577# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33578DSYMUTIL=$lt_DSYMUTIL
33579
33580# Tool to change global to local symbols on Mac OS X.
33581NMEDIT=$lt_NMEDIT
33582
33583# Tool to manipulate fat objects and archives on Mac OS X.
33584LIPO=$lt_LIPO
33585
33586# ldd/readelf like tool for Mach-O binaries on Mac OS X.
33587OTOOL=$lt_OTOOL
33588
33589# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33590OTOOL64=$lt_OTOOL64
33591
33592# Old archive suffix (normally "a").
33593libext=$libext
33594
33595# Shared library suffix (normally ".so").
33596shrext_cmds=$lt_shrext_cmds
33597
33598# The commands to extract the exported symbol list from a shared archive.
33599extract_expsyms_cmds=$lt_extract_expsyms_cmds
33600
33601# Variables whose values should be saved in libtool wrapper scripts and
33602# restored at link time.
33603variables_saved_for_relink=$lt_variables_saved_for_relink
33604
33605# Do we need the "lib" prefix for modules?
33606need_lib_prefix=$need_lib_prefix
33607
33608# Do we need a version for libraries?
33609need_version=$need_version
33610
33611# Library versioning type.
33612version_type=$version_type
33613
33614# Shared library runtime path variable.
33615runpath_var=$runpath_var
33616
33617# Shared library path variable.
33618shlibpath_var=$shlibpath_var
33619
33620# Is shlibpath searched before the hard-coded library search path?
33621shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33622
33623# Format of library name prefix.
33624libname_spec=$lt_libname_spec
33625
33626# List of archive names.  First name is the real one, the rest are links.
33627# The last name is the one that the linker finds with -lNAME
33628library_names_spec=$lt_library_names_spec
33629
33630# The coded name of the library, if different from the real name.
33631soname_spec=$lt_soname_spec
33632
33633# Permission mode override for installation of shared libraries.
33634install_override_mode=$lt_install_override_mode
33635
33636# Command to use after installation of a shared archive.
33637postinstall_cmds=$lt_postinstall_cmds
33638
33639# Command to use after uninstallation of a shared archive.
33640postuninstall_cmds=$lt_postuninstall_cmds
33641
33642# Commands used to finish a libtool library installation in a directory.
33643finish_cmds=$lt_finish_cmds
33644
33645# As "finish_cmds", except a single script fragment to be evaled but
33646# not shown.
33647finish_eval=$lt_finish_eval
33648
33649# Whether we should hardcode library paths into libraries.
33650hardcode_into_libs=$hardcode_into_libs
33651
33652# Compile-time system search path for libraries.
33653sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33654
33655# Detected run-time system search path for libraries.
33656sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
33657
33658# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
33659configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
33660
33661# Whether dlopen is supported.
33662dlopen_support=$enable_dlopen
33663
33664# Whether dlopen of programs is supported.
33665dlopen_self=$enable_dlopen_self
33666
33667# Whether dlopen of statically linked programs is supported.
33668dlopen_self_static=$enable_dlopen_self_static
33669
33670# Commands to strip libraries.
33671old_striplib=$lt_old_striplib
33672striplib=$lt_striplib
33673
33674
33675# The linker used to build libraries.
33676LD=$lt_LD
33677
33678# How to create reloadable object files.
33679reload_flag=$lt_reload_flag
33680reload_cmds=$lt_reload_cmds
33681
33682# Commands used to build an old-style archive.
33683old_archive_cmds=$lt_old_archive_cmds
33684
33685# A language specific compiler.
33686CC=$lt_compiler
33687
33688# Is the compiler the GNU compiler?
33689with_gcc=$GCC
33690
33691# Compiler flag to turn off builtin functions.
33692no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33693
33694# Additional compiler flags for building library objects.
33695pic_flag=$lt_lt_prog_compiler_pic
33696
33697# How to pass a linker flag through the compiler.
33698wl=$lt_lt_prog_compiler_wl
33699
33700# Compiler flag to prevent dynamic linking.
33701link_static_flag=$lt_lt_prog_compiler_static
33702
33703# Does compiler simultaneously support -c and -o options?
33704compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33705
33706# Whether or not to add -lc for building shared libraries.
33707build_libtool_need_lc=$archive_cmds_need_lc
33708
33709# Whether or not to disallow shared libs when runtime libs are static.
33710allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33711
33712# Compiler flag to allow reflexive dlopens.
33713export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33714
33715# Compiler flag to generate shared objects directly from archives.
33716whole_archive_flag_spec=$lt_whole_archive_flag_spec
33717
33718# Whether the compiler copes with passing no objects directly.
33719compiler_needs_object=$lt_compiler_needs_object
33720
33721# Create an old-style archive from a shared archive.
33722old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33723
33724# Create a temporary old-style archive to link instead of a shared archive.
33725old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33726
33727# Commands used to build a shared archive.
33728archive_cmds=$lt_archive_cmds
33729archive_expsym_cmds=$lt_archive_expsym_cmds
33730
33731# Commands used to build a loadable module if different from building
33732# a shared archive.
33733module_cmds=$lt_module_cmds
33734module_expsym_cmds=$lt_module_expsym_cmds
33735
33736# Whether we are building with GNU ld or not.
33737with_gnu_ld=$lt_with_gnu_ld
33738
33739# Flag that allows shared libraries with undefined symbols to be built.
33740allow_undefined_flag=$lt_allow_undefined_flag
33741
33742# Flag that enforces no undefined symbols.
33743no_undefined_flag=$lt_no_undefined_flag
33744
33745# Flag to hardcode \$libdir into a binary during linking.
33746# This must work even if \$libdir does not exist
33747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33748
33749# Whether we need a single "-rpath" flag with a separated argument.
33750hardcode_libdir_separator=$lt_hardcode_libdir_separator
33751
33752# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33753# DIR into the resulting binary.
33754hardcode_direct=$hardcode_direct
33755
33756# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
33757# DIR into the resulting binary and the resulting library dependency is
33758# "absolute",i.e impossible to change by setting \$shlibpath_var if the
33759# library is relocated.
33760hardcode_direct_absolute=$hardcode_direct_absolute
33761
33762# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33763# into the resulting binary.
33764hardcode_minus_L=$hardcode_minus_L
33765
33766# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33767# into the resulting binary.
33768hardcode_shlibpath_var=$hardcode_shlibpath_var
33769
33770# Set to "yes" if building a shared library automatically hardcodes DIR
33771# into the library and all subsequent libraries and executables linked
33772# against it.
33773hardcode_automatic=$hardcode_automatic
33774
33775# Set to yes if linker adds runtime paths of dependent libraries
33776# to runtime path list.
33777inherit_rpath=$inherit_rpath
33778
33779# Whether libtool must link a program against all its dependency libraries.
33780link_all_deplibs=$link_all_deplibs
33781
33782# Set to "yes" if exported symbols are required.
33783always_export_symbols=$always_export_symbols
33784
33785# The commands to list exported symbols.
33786export_symbols_cmds=$lt_export_symbols_cmds
33787
33788# Symbols that should not be listed in the preloaded symbols.
33789exclude_expsyms=$lt_exclude_expsyms
33790
33791# Symbols that must always be exported.
33792include_expsyms=$lt_include_expsyms
33793
33794# Commands necessary for linking programs (against libraries) with templates.
33795prelink_cmds=$lt_prelink_cmds
33796
33797# Commands necessary for finishing linking programs.
33798postlink_cmds=$lt_postlink_cmds
33799
33800# Specify filename containing input files.
33801file_list_spec=$lt_file_list_spec
33802
33803# How to hardcode a shared library path into an executable.
33804hardcode_action=$hardcode_action
33805
33806# ### END LIBTOOL CONFIG
33807
33808_LT_EOF
33809
33810    cat <<'_LT_EOF' >> "$cfgfile"
33811
33812# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
33813
33814# func_munge_path_list VARIABLE PATH
33815# -----------------------------------
33816# VARIABLE is name of variable containing _space_ separated list of
33817# directories to be munged by the contents of PATH, which is string
33818# having a format:
33819# "DIR[:DIR]:"
33820#       string "DIR[ DIR]" will be prepended to VARIABLE
33821# ":DIR[:DIR]"
33822#       string "DIR[ DIR]" will be appended to VARIABLE
33823# "DIRP[:DIRP]::[DIRA:]DIRA"
33824#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
33825#       "DIRA[ DIRA]" will be appended to VARIABLE
33826# "DIR[:DIR]"
33827#       VARIABLE will be replaced by "DIR[ DIR]"
33828func_munge_path_list ()
33829{
33830    case x$2 in
33831    x)
33832        ;;
33833    *:)
33834        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
33835        ;;
33836    x:*)
33837        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
33838        ;;
33839    *::*)
33840        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
33841        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
33842        ;;
33843    *)
33844        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
33845        ;;
33846    esac
33847}
33848
33849
33850# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
33851func_cc_basename ()
33852{
33853    for cc_temp in $*""; do
33854      case $cc_temp in
33855        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
33856        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
33857        \-*) ;;
33858        *) break;;
33859      esac
33860    done
33861    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
33862}
33863
33864
33865# ### END FUNCTIONS SHARED WITH CONFIGURE
33866
33867_LT_EOF
33868
33869  case $host_os in
33870  aix3*)
33871    cat <<\_LT_EOF >> "$cfgfile"
33872# AIX sometimes has problems with the GCC collect2 program.  For some
33873# reason, if we set the COLLECT_NAMES environment variable, the problems
33874# vanish in a puff of smoke.
33875if test set != "${COLLECT_NAMES+set}"; then
33876  COLLECT_NAMES=
33877  export COLLECT_NAMES
33878fi
33879_LT_EOF
33880    ;;
33881  esac
33882
33883
33884ltmain=$ac_aux_dir/ltmain.sh
33885
33886
33887  # We use sed instead of cat because bash on DJGPP gets confused if
33888  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33889  # text mode, it properly converts lines to CR/LF.  This bash problem
33890  # is reportedly fixed, but why not run on old versions too?
33891  sed '$q' "$ltmain" >> "$cfgfile" \
33892     || (rm -f "$cfgfile"; exit 1)
33893
33894   mv -f "$cfgfile" "$ofile" ||
33895    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33896  chmod +x "$ofile"
33897
33898 ;;
33899    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
33900
33901  esac
33902done # for ac_tag
33903
33904
33905as_fn_exit 0
33906_ACEOF
33907ac_clean_files=$ac_clean_files_save
33908
33909test $ac_write_fail = 0 ||
33910  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33911
33912
33913# configure is writing to config.log, and then calls config.status.
33914# config.status does its own redirection, appending to config.log.
33915# Unfortunately, on DOS this fails, as config.log is still kept open
33916# by configure, so config.status won't be able to write to it; its
33917# output is simply discarded.  So we exec the FD to /dev/null,
33918# effectively closing config.log, so it can be properly (re)opened and
33919# appended to by config.status.  When coming back to configure, we
33920# need to make the FD available again.
33921if test "$no_create" != yes; then
33922  ac_cs_success=:
33923  ac_config_status_args=
33924  test "$silent" = yes &&
33925    ac_config_status_args="$ac_config_status_args --quiet"
33926  exec 5>/dev/null
33927  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33928  exec 5>>config.log
33929  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33930  # would make configure fail if this is the last instruction.
33931  $ac_cs_success || as_fn_exit 1
33932fi
33933if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33934  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33935$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33936fi
33937
33938