1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xorg-server 21.1.18.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1
188
189  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193    PATH=/empty FPATH=/empty; export PATH FPATH
194    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/xserver/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592as_awk_strverscmp='
593  # Use only awk features that work with 7th edition Unix awk (1978).
594  # My, what an old awk you have, Mr. Solaris!
595  END {
596    while (length(v1) && length(v2)) {
597      # Set d1 to be the next thing to compare from v1, and likewise for d2.
598      # Normally this is a single character, but if v1 and v2 contain digits,
599      # compare them as integers and fractions as strverscmp does.
600      if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
601	# Split v1 and v2 into their leading digit string components d1 and d2,
602	# and advance v1 and v2 past the leading digit strings.
603	for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
604	for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
605	d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
606	d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
607	if (d1 ~ /^0/) {
608	  if (d2 ~ /^0/) {
609	    # Compare two fractions.
610	    while (d1 ~ /^0/ && d2 ~ /^0/) {
611	      d1 = substr(d1, 2); len1--
612	      d2 = substr(d2, 2); len2--
613	    }
614	    if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
615	      # The two components differ in length, and the common prefix
616	      # contains only leading zeros.  Consider the longer to be less.
617	      d1 = -len1
618	      d2 = -len2
619	    } else {
620	      # Otherwise, compare as strings.
621	      d1 = "x" d1
622	      d2 = "x" d2
623	    }
624	  } else {
625	    # A fraction is less than an integer.
626	    exit 1
627	  }
628	} else {
629	  if (d2 ~ /^0/) {
630	    # An integer is greater than a fraction.
631	    exit 2
632	  } else {
633	    # Compare two integers.
634	    d1 += 0
635	    d2 += 0
636	  }
637	}
638      } else {
639	# The normal case, without worrying about digits.
640	d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
641	d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
642      }
643      if (d1 < d2) exit 1
644      if (d1 > d2) exit 2
645    }
646    # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
647    # which mishandles some comparisons of empty strings to integers.
648    if (length(v2)) exit 1
649    if (length(v1)) exit 2
650  }
651'
652SHELL=${CONFIG_SHELL-/bin/sh}
653
654
655test -n "$DJDIR" || exec 7<&0 </dev/null
656exec 6>&1
657
658# Name of the host.
659# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
660# so uname gets run too.
661ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
662
663#
664# Initializations.
665#
666ac_default_prefix=/usr/local
667ac_clean_files=
668ac_config_libobj_dir=.
669LIBOBJS=
670cross_compiling=no
671subdirs=
672MFLAGS=
673MAKEFLAGS=
674
675# Identity of this package.
676PACKAGE_NAME='xorg-server'
677PACKAGE_TARNAME='xorg-server'
678PACKAGE_VERSION='21.1.18'
679PACKAGE_STRING='xorg-server 21.1.18'
680PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/xserver/issues'
681PACKAGE_URL=''
682
683ac_unique_file="Makefile.am"
684# Factoring default headers for most tests.
685ac_includes_default="\
686#include <stddef.h>
687#ifdef HAVE_STDIO_H
688# include <stdio.h>
689#endif
690#ifdef HAVE_STDLIB_H
691# include <stdlib.h>
692#endif
693#ifdef HAVE_STRING_H
694# include <string.h>
695#endif
696#ifdef HAVE_INTTYPES_H
697# include <inttypes.h>
698#endif
699#ifdef HAVE_STDINT_H
700# include <stdint.h>
701#endif
702#ifdef HAVE_STRINGS_H
703# include <strings.h>
704#endif
705#ifdef HAVE_SYS_TYPES_H
706# include <sys/types.h>
707#endif
708#ifdef HAVE_SYS_STAT_H
709# include <sys/stat.h>
710#endif
711#ifdef HAVE_UNISTD_H
712# include <unistd.h>
713#endif"
714
715ac_header_c_list=
716ac_config_libobj_dir=os
717enable_year2038=no
718ac_subst_vars='am__EXEEXT_FALSE
719am__EXEEXT_TRUE
720LTLIBOBJS
721DIX_CFLAGS
722RELEASE_DATE
723SYSCONFDIR
724PROJECTROOT
725XEPHYR_FALSE
726XEPHYR_TRUE
727KDRIVE_LIBS
728KDRIVE_LOCAL_LIBS
729KDRIVE_MAIN_LIB
730KDRIVE_PURE_LIBS
731KDRIVE_CFLAGS
732KDRIVE_PURE_INCS
733KDRIVE_INCS
734XEPHYR_INCS
735XEPHYR_LIBS
736XEPHYR_CFLAGS
737KDRIVE_FALSE
738KDRIVE_TRUE
739STANDALONE_XPBPROXY_FALSE
740STANDALONE_XPBPROXY_TRUE
741XQUARTZ_SPARKLE_FALSE
742XQUARTZ_SPARKLE_TRUE
743XQUARTZ_FALSE
744XQUARTZ_TRUE
745am__fastdepOBJC_FALSE
746am__fastdepOBJC_TRUE
747OBJCDEPMODE
748OBJCFLAGS
749OBJCLINK
750OBJCCLD
751OBJC
752PSEUDORAMIX_FALSE
753PSEUDORAMIX_TRUE
754XPBPROXY_LIBS
755XPBPROXY_CFLAGS
756XQUARTZ_LIBS
757XWIN_WINDOWS_DRI_FALSE
758XWIN_WINDOWS_DRI_TRUE
759XWIN_GLX_WINDOWS_FALSE
760XWIN_GLX_WINDOWS_TRUE
761XWIN_FALSE
762XWIN_TRUE
763KHRONOS_SPEC_DIR
764KHRONOS_OPENGL_REGISTRY_LIBS
765KHRONOS_OPENGL_REGISTRY_CFLAGS
766PYTHON3
767XWIN_SYS_LIBS
768XWIN_SERVER_NAME
769XWIN_LIBS
770WINDOWSDRI_LIBS
771WINDOWSDRI_CFLAGS
772XWINMODULES_LIBS
773XWINMODULES_CFLAGS
774WINDRES
775GLAMOR_EGL_FALSE
776GLAMOR_EGL_TRUE
777GBM_LIBS
778GBM_CFLAGS
779GLAMOR_LIBS
780GLAMOR_CFLAGS
781GLAMOR_FALSE
782GLAMOR_TRUE
783XORG_DRIVER_INPUT_INPUTTEST_FALSE
784XORG_DRIVER_INPUT_INPUTTEST_TRUE
785XORG_DRIVER_MODESETTING_FALSE
786XORG_DRIVER_MODESETTING_TRUE
787XORG_BUS_PLATFORM_FALSE
788XORG_BUS_PLATFORM_TRUE
789DGA_FALSE
790DGA_TRUE
791SOLARIS_VT_FALSE
792SOLARIS_VT_TRUE
793LNXAPM_FALSE
794LNXAPM_TRUE
795LNXACPI_FALSE
796LNXACPI_TRUE
797XORG_BUS_SPARC_FALSE
798XORG_BUS_SPARC_TRUE
799XORG_BUS_BSDPCI_FALSE
800XORG_BUS_BSDPCI_TRUE
801XORG_BUS_PCI_FALSE
802XORG_BUS_PCI_TRUE
803XORG_FALSE
804XORG_TRUE
805abi_extension
806abi_xinput
807abi_videodrv
808abi_ansic
809logdir
810sysconfigdir
811extdir
812sdkdir
813driverdir
814moduledir
815DEFAULT_XDG_DATA_HOME_LOGDIR
816DEFAULT_XDG_DATA_HOME
817DEFAULT_LOGPREFIX
818DEFAULT_LOGDIR
819DEFAULT_LIBRARY_PATH
820DEFAULT_MODULE_PATH
821XCONFIGDIR
822XF86CONFIGFILE
823XCONFIGFILE
824XF86CONFIGDIR
825XORG_CFLAGS
826XORG_OS_SUBDIR
827XORG_INCS
828XORG_SYS_LIBS
829XORG_LIBS
830XORG_MODULES_LIBS
831XORG_MODULES_CFLAGS
832DGA_LIBS
833DGA_CFLAGS
834SOLARIS_INOUT_ARCH
835PCI_TXT_IDS_PATH
836PCIACCESS_LIBS
837PCIACCESS_CFLAGS
838symbol_visibility
839LIBXCVT_LIBS
840LIBXCVT_CFLAGS
841XNEST_SYS_LIBS
842XNEST_LIBS
843XNEST_FALSE
844XNEST_TRUE
845XNESTMODULES_LIBS
846XNESTMODULES_CFLAGS
847XVFB_SYS_LIBS
848XVFB_LIBS
849XVFB_FALSE
850XVFB_TRUE
851NO_UNDEFINED_FALSE
852NO_UNDEFINED_TRUE
853CYGWIN_FALSE
854CYGWIN_TRUE
855XORG_DRIVER_LIBS
856LD_NO_UNDEFINED_FLAG
857LD_EXPORT_SYMBOLS_FLAG
858UTILS_SYS_LIBS
859XSERVER_SYS_LIBS
860XSERVER_LIBS
861HAVE_LIBUNWIND_FALSE
862HAVE_LIBUNWIND_TRUE
863LIBUNWIND_LIBS
864LIBUNWIND_CFLAGS
865XSERVERLIBS_LIBS
866XSERVERLIBS_CFLAGS
867XSERVERCFLAGS_LIBS
868XSERVERCFLAGS_CFLAGS
869SHA1_CFLAGS
870SHA1_LIBS
871OPENSSL_LIBS
872OPENSSL_CFLAGS
873LIBSHA1_LIBS
874LIBSHA1_CFLAGS
875MAIN_LIB
876OS_LIB
877DIX_LIB
878DEBUG_FALSE
879DEBUG_TRUE
880VENDOR_NAME_SHORT
881DRI_DRIVER_PATH
882BASE_FONT_PATH
883SERVER_MISC_CONFIG_PATH
884COMPILEDDEFAULTFONTPATH
885XF86VIDMODE_FALSE
886XF86VIDMODE_TRUE
887XDMAUTH_FALSE
888XDMAUTH_TRUE
889XDMCP_FALSE
890XDMCP_TRUE
891XDMCP_LIBS
892XDMCP_CFLAGS
893XKB_DFLT_OPTIONS
894XKB_DFLT_VARIANT
895XKB_DFLT_LAYOUT
896XKB_DFLT_MODEL
897XKB_DFLT_RULES
898XKB_COMPILED_DIR
899XKM_OUTPUT_DIR
900XKB_BIN_DIRECTORY
901XKB_BASE_DIRECTORY
902INT10MODULE_FALSE
903INT10MODULE_TRUE
904VGAHW_FALSE
905VGAHW_TRUE
906XF86UTILS_FALSE
907XF86UTILS_TRUE
908DPMSExtension_FALSE
909DPMSExtension_TRUE
910XF86BIGFONT_FALSE
911XF86BIGFONT_TRUE
912DBE_FALSE
913DBE_TRUE
914XCSECURITY_FALSE
915XCSECURITY_TRUE
916SELINUX_LIBS
917SELINUX_CFLAGS
918XSELINUX_FALSE
919XSELINUX_TRUE
920XACE_FALSE
921XACE_TRUE
922XINERAMA_FALSE
923XINERAMA_TRUE
924PRESENT_FALSE
925PRESENT_TRUE
926GLX_SYS_LIBS
927GLX_DEFINES
928HASHTABLE_FALSE
929HASHTABLE_TRUE
930GLX_FALSE
931GLX_TRUE
932GL_LIBS
933GL_CFLAGS
934XLIB_LIBS
935XLIB_CFLAGS
936LIBDRM_LIBS
937LIBDRM_CFLAGS
938DRI3_FALSE
939DRI3_TRUE
940XSHMFENCE_FALSE
941XSHMFENCE_TRUE
942XSHMFENCE_LIBS
943XSHMFENCE_CFLAGS
944BUSFAULT_FALSE
945BUSFAULT_TRUE
946DRI3PROTO_LIBS
947DRI3PROTO_CFLAGS
948DRI2_FALSE
949DRI2_TRUE
950DRI2PROTO_LIBS
951DRI2PROTO_CFLAGS
952DRI_FALSE
953DRI_TRUE
954CLIENTIDS_FALSE
955CLIENTIDS_TRUE
956RES_FALSE
957RES_TRUE
958SCREENSAVER_FALSE
959SCREENSAVER_TRUE
960RECORD_FALSE
961RECORD_TRUE
962MITSHM_FALSE
963MITSHM_TRUE
964COMPOSITE_FALSE
965COMPOSITE_TRUE
966XVMC_FALSE
967XVMC_TRUE
968XV_FALSE
969XV_TRUE
970CONFIG_WSCONS_FALSE
971CONFIG_WSCONS_TRUE
972NEED_DBUS_FALSE
973NEED_DBUS_TRUE
974SUID_WRAPPER_FALSE
975SUID_WRAPPER_TRUE
976SUID_WRAPPER_DIR
977SYSTEMD_LOGIND_FALSE
978SYSTEMD_LOGIND_TRUE
979CONFIG_HAL_FALSE
980CONFIG_HAL_TRUE
981HAL_LIBS
982HAL_CFLAGS
983HAVE_DBUS_FALSE
984HAVE_DBUS_TRUE
985DBUS_LIBS
986DBUS_CFLAGS
987CONFIG_UDEV_KMS_FALSE
988CONFIG_UDEV_KMS_TRUE
989CONFIG_UDEV_FALSE
990CONFIG_UDEV_TRUE
991UDEV_LIBS
992UDEV_CFLAGS
993HAVE_SYSTEMD_DAEMON_FALSE
994HAVE_SYSTEMD_DAEMON_TRUE
995SYSTEMD_DAEMON_LIBS
996SYSTEMD_DAEMON_CFLAGS
997PTHREAD_CFLAGS
998PTHREAD_LIBS
999PTHREAD_CC
1000ax_pthread_config
1001SDK_REQUIRED_MODULES
1002PIXMAN_LIBS
1003PIXMAN_CFLAGS
1004INT10_STUB_FALSE
1005INT10_STUB_TRUE
1006INT10_X86EMU_FALSE
1007INT10_X86EMU_TRUE
1008INT10_VM86_FALSE
1009INT10_VM86_TRUE
1010SECURE_RPC_FALSE
1011SECURE_RPC_TRUE
1012INSTALL_SETUID_FALSE
1013INSTALL_SETUID_TRUE
1014XQUARTZ_SPARKLE_FEED_URL
1015XQUARTZ_SPARKLE
1016BUNDLE_VERSION_STRING
1017BUNDLE_VERSION
1018BUNDLE_ID_PREFIX
1019APPLE_APPLICATION_NAME
1020APPLE_APPLICATIONS_DIR
1021FONT100DPIDIR
1022FONT75DPIDIR
1023FONTTYPE1DIR
1024FONTTTFDIR
1025FONTOTFDIR
1026FONTMISCDIR
1027FONTROOTDIR
1028SPARC64_VIDEO_FALSE
1029SPARC64_VIDEO_TRUE
1030PPC_VIDEO_FALSE
1031PPC_VIDEO_TRUE
1032I386_VIDEO_FALSE
1033I386_VIDEO_TRUE
1034ARM_VIDEO_FALSE
1035ARM_VIDEO_TRUE
1036ALPHA_VIDEO_FALSE
1037ALPHA_VIDEO_TRUE
1038GLX_ARCH_DEFINES
1039FREEBSD_KLDLOAD_FALSE
1040FREEBSD_KLDLOAD_TRUE
1041FBDEVHW_FALSE
1042FBDEVHW_TRUE
1043AGP_FALSE
1044AGP_TRUE
1045LIBBSD_LIBS
1046LIBBSD_CFLAGS
1047POLL_FALSE
1048POLL_TRUE
1049LIBOBJS
1050DLOPEN_LIBS
1051SPECIAL_DTRACE_OBJECTS_FALSE
1052SPECIAL_DTRACE_OBJECTS_TRUE
1053XSERVER_DTRACE_FALSE
1054XSERVER_DTRACE_TRUE
1055DTRACE
1056TRADITIONALCPPFLAGS
1057RAWCPPFLAGS
1058RAWCPP
1059CPP
1060YFLAGS
1061YACC
1062LEXLIB
1063LEX_OUTPUT_ROOT
1064LEX
1065LT_SYS_LIBRARY_PATH
1066OTOOL64
1067OTOOL
1068LIPO
1069NMEDIT
1070DSYMUTIL
1071MANIFEST_TOOL
1072RANLIB
1073ac_ct_AR
1074AR
1075FILECMD
1076NM
1077ac_ct_DUMPBIN
1078DUMPBIN
1079LD
1080FGREP
1081EGREP
1082GREP
1083LIBTOOL
1084OBJDUMP
1085DLLTOOL
1086AS
1087LN_S
1088am__fastdepCCAS_FALSE
1089am__fastdepCCAS_TRUE
1090CCASDEPMODE
1091CCASFLAGS
1092CCAS
1093HAVE_LD_WRAP_FALSE
1094HAVE_LD_WRAP_TRUE
1095ENABLE_UNIT_TESTS_FALSE
1096ENABLE_UNIT_TESTS_TRUE
1097XORG_MALLOC_DEBUG_ENV
1098HAVE_XSLTPROC_FALSE
1099HAVE_XSLTPROC_TRUE
1100XSLTPROC
1101HAVE_FOP_FALSE
1102HAVE_FOP_TRUE
1103FOP
1104HAVE_XMLTO_FALSE
1105HAVE_XMLTO_TRUE
1106HAVE_XMLTO_TEXT_FALSE
1107HAVE_XMLTO_TEXT_TRUE
1108XMLTO
1109ENABLE_DEVEL_DOCS_FALSE
1110ENABLE_DEVEL_DOCS_TRUE
1111ENABLE_DOCS_FALSE
1112ENABLE_DOCS_TRUE
1113HAVE_STYLESHEETS_FALSE
1114HAVE_STYLESHEETS_TRUE
1115XSL_STYLESHEET
1116STYLESHEET_SRCDIR
1117XORG_SGML_PATH
1118HAVE_DOXYGEN_FALSE
1119HAVE_DOXYGEN_TRUE
1120HAVE_DOT_FALSE
1121HAVE_DOT_TRUE
1122HAVE_DOT
1123DOT
1124DOXYGEN
1125MAN_SUBSTS
1126XORG_MAN_PAGE
1127ADMIN_MAN_DIR
1128DRIVER_MAN_DIR
1129MISC_MAN_DIR
1130FILE_MAN_DIR
1131LIB_MAN_DIR
1132APP_MAN_DIR
1133ADMIN_MAN_SUFFIX
1134DRIVER_MAN_SUFFIX
1135MISC_MAN_SUFFIX
1136FILE_MAN_SUFFIX
1137LIB_MAN_SUFFIX
1138APP_MAN_SUFFIX
1139SED
1140host_os
1141host_vendor
1142host_cpu
1143host
1144build_os
1145build_vendor
1146build_cpu
1147build
1148INSTALL_CMD
1149PKG_CONFIG_LIBDIR
1150PKG_CONFIG_PATH
1151PKG_CONFIG
1152CHANGELOG_CMD
1153STRICT_CFLAGS
1154CWARNFLAGS
1155BASE_CFLAGS
1156am__fastdepCC_FALSE
1157am__fastdepCC_TRUE
1158CCDEPMODE
1159am__nodep
1160AMDEPBACKSLASH
1161AMDEP_FALSE
1162AMDEP_TRUE
1163am__include
1164DEPDIR
1165OBJEXT
1166EXEEXT
1167ac_ct_CC
1168CPPFLAGS
1169LDFLAGS
1170CFLAGS
1171CC
1172am__xargs_n
1173am__rm_f_notfound
1174AM_BACKSLASH
1175AM_DEFAULT_VERBOSITY
1176AM_DEFAULT_V
1177AM_V
1178CSCOPE
1179ETAGS
1180CTAGS
1181am__untar
1182am__tar
1183AMTAR
1184am__leading_dot
1185SET_MAKE
1186AWK
1187mkdir_p
1188MKDIR_P
1189INSTALL_STRIP_PROGRAM
1190STRIP
1191install_sh
1192MAKEINFO
1193AUTOHEADER
1194AUTOMAKE
1195AUTOCONF
1196ACLOCAL
1197VERSION
1198PACKAGE
1199CYGPATH_W
1200am__isrc
1201INSTALL_DATA
1202INSTALL_SCRIPT
1203INSTALL_PROGRAM
1204target_alias
1205host_alias
1206build_alias
1207LIBS
1208ECHO_T
1209ECHO_N
1210ECHO_C
1211DEFS
1212mandir
1213localedir
1214libdir
1215psdir
1216pdfdir
1217dvidir
1218htmldir
1219infodir
1220docdir
1221oldincludedir
1222includedir
1223runstatedir
1224localstatedir
1225sharedstatedir
1226sysconfdir
1227datadir
1228datarootdir
1229libexecdir
1230sbindir
1231bindir
1232program_transform_name
1233prefix
1234exec_prefix
1235PACKAGE_URL
1236PACKAGE_BUGREPORT
1237PACKAGE_STRING
1238PACKAGE_VERSION
1239PACKAGE_TARNAME
1240PACKAGE_NAME
1241PATH_SEPARATOR
1242SHELL
1243am__quote'
1244ac_subst_files=''
1245ac_user_opts='
1246enable_option_checking
1247enable_silent_rules
1248enable_dependency_tracking
1249enable_selective_werror
1250enable_strict_compilation
1251with_doxygen
1252enable_docs
1253enable_devel_docs
1254with_xmlto
1255with_fop
1256with_xsltproc
1257enable_unit_tests
1258enable_static
1259enable_shared
1260enable_pic
1261with_pic
1262enable_fast_install
1263enable_aix_soname
1264with_aix_soname
1265with_gnu_ld
1266with_sysroot
1267enable_libtool_lock
1268enable_largefile
1269with_dtrace
1270enable_agp
1271enable_werror
1272enable_debug
1273with_int10
1274with_vendor_name
1275with_vendor_name_short
1276with_vendor_web
1277with_module_dir
1278with_log_dir
1279with_builder_addr
1280with_builderstring
1281enable_listen_tcp
1282enable_listen_unix
1283enable_listen_local
1284with_fallback_input_driver
1285with_fontrootdir
1286with_fontmiscdir
1287with_fontotfdir
1288with_fontttfdir
1289with_fonttype1dir
1290with_font75dpidir
1291with_font100dpidir
1292with_default_font_path
1293with_xkb_path
1294with_xkb_output
1295with_default_xkb_rules
1296with_default_xkb_model
1297with_default_xkb_layout
1298with_default_xkb_variant
1299with_default_xkb_options
1300with_serverconfig_path
1301with_apple_applications_dir
1302with_apple_application_name
1303with_bundle_id_prefix
1304with_bundle_version
1305with_bundle_version_string
1306enable_sparkle
1307with_sparkle_feed_url
1308enable_visibility
1309with_khronos_spec_dir
1310enable_composite
1311enable_mitshm
1312enable_xres
1313enable_record
1314enable_xv
1315enable_xvmc
1316enable_dga
1317enable_screensaver
1318enable_xdmcp
1319enable_xdm_auth_1
1320enable_glx
1321enable_dri
1322enable_dri2
1323enable_dri3
1324enable_present
1325enable_xinerama
1326enable_xf86vidmode
1327enable_xace
1328enable_xselinux
1329enable_xcsecurity
1330enable_dbe
1331enable_xf86bigfont
1332enable_dpms
1333enable_config_udev
1334enable_config_udev_kms
1335enable_config_hal
1336enable_config_wscons
1337enable_xfree86_utils
1338enable_vgahw
1339enable_int10_module
1340enable_windowsdri
1341enable_libdrm
1342enable_clientids
1343enable_pciaccess
1344enable_linux_acpi
1345enable_linux_apm
1346enable_systemd_logind
1347enable_suid_wrapper
1348enable_xorg
1349enable_xvfb
1350enable_xnest
1351enable_xquartz
1352enable_standalone_xpbproxy
1353enable_xwin
1354enable_glamor
1355enable_xf86_input_inputtest
1356enable_kdrive
1357enable_xephyr
1358enable_libunwind
1359enable_xshmfence
1360enable_install_setuid
1361enable_unix_transport
1362enable_tcp_transport
1363enable_ipv6
1364enable_local_transport
1365enable_secure_rpc
1366enable_input_thread
1367with_systemd_daemon
1368enable_xtrans_send_fds
1369with_xkb_bin_directory
1370with_sha1
1371enable_year2038
1372'
1373      ac_precious_vars='build_alias
1374host_alias
1375target_alias
1376CC
1377CFLAGS
1378LDFLAGS
1379LIBS
1380CPPFLAGS
1381PKG_CONFIG
1382PKG_CONFIG_PATH
1383PKG_CONFIG_LIBDIR
1384DOXYGEN
1385DOT
1386XMLTO
1387FOP
1388XSLTPROC
1389XORG_MALLOC_DEBUG_ENV
1390CCAS
1391CCASFLAGS
1392LT_SYS_LIBRARY_PATH
1393YACC
1394YFLAGS
1395CPP
1396LIBBSD_CFLAGS
1397LIBBSD_LIBS
1398PIXMAN_CFLAGS
1399PIXMAN_LIBS
1400SYSTEMD_DAEMON_CFLAGS
1401SYSTEMD_DAEMON_LIBS
1402UDEV_CFLAGS
1403UDEV_LIBS
1404DBUS_CFLAGS
1405DBUS_LIBS
1406HAL_CFLAGS
1407HAL_LIBS
1408DRI2PROTO_CFLAGS
1409DRI2PROTO_LIBS
1410DRI3PROTO_CFLAGS
1411DRI3PROTO_LIBS
1412XSHMFENCE_CFLAGS
1413XSHMFENCE_LIBS
1414LIBDRM_CFLAGS
1415LIBDRM_LIBS
1416XLIB_CFLAGS
1417XLIB_LIBS
1418GL_CFLAGS
1419GL_LIBS
1420SELINUX_CFLAGS
1421SELINUX_LIBS
1422XDMCP_CFLAGS
1423XDMCP_LIBS
1424LIBSHA1_CFLAGS
1425LIBSHA1_LIBS
1426OPENSSL_CFLAGS
1427OPENSSL_LIBS
1428XSERVERCFLAGS_CFLAGS
1429XSERVERCFLAGS_LIBS
1430XSERVERLIBS_CFLAGS
1431XSERVERLIBS_LIBS
1432LIBUNWIND_CFLAGS
1433LIBUNWIND_LIBS
1434XNESTMODULES_CFLAGS
1435XNESTMODULES_LIBS
1436LIBXCVT_CFLAGS
1437LIBXCVT_LIBS
1438PCIACCESS_CFLAGS
1439PCIACCESS_LIBS
1440DGA_CFLAGS
1441DGA_LIBS
1442XORG_MODULES_CFLAGS
1443XORG_MODULES_LIBS
1444GLAMOR_CFLAGS
1445GLAMOR_LIBS
1446GBM_CFLAGS
1447GBM_LIBS
1448XWINMODULES_CFLAGS
1449XWINMODULES_LIBS
1450WINDOWSDRI_CFLAGS
1451WINDOWSDRI_LIBS
1452KHRONOS_OPENGL_REGISTRY_CFLAGS
1453KHRONOS_OPENGL_REGISTRY_LIBS
1454XPBPROXY_CFLAGS
1455XPBPROXY_LIBS
1456XEPHYR_CFLAGS
1457XEPHYR_LIBS'
1458
1459
1460# Initialize some variables set by options.
1461ac_init_help=
1462ac_init_version=false
1463ac_unrecognized_opts=
1464ac_unrecognized_sep=
1465# The variables have the same names as the options, with
1466# dashes changed to underlines.
1467cache_file=/dev/null
1468exec_prefix=NONE
1469no_create=
1470no_recursion=
1471prefix=NONE
1472program_prefix=NONE
1473program_suffix=NONE
1474program_transform_name=s,x,x,
1475silent=
1476site=
1477srcdir=
1478verbose=
1479x_includes=NONE
1480x_libraries=NONE
1481
1482# Installation directory options.
1483# These are left unexpanded so users can "make install exec_prefix=/foo"
1484# and all the variables that are supposed to be based on exec_prefix
1485# by default will actually change.
1486# Use braces instead of parens because sh, perl, etc. also accept them.
1487# (The list follows the same order as the GNU Coding Standards.)
1488bindir='${exec_prefix}/bin'
1489sbindir='${exec_prefix}/sbin'
1490libexecdir='${exec_prefix}/libexec'
1491datarootdir='${prefix}/share'
1492datadir='${datarootdir}'
1493sysconfdir='${prefix}/etc'
1494sharedstatedir='${prefix}/com'
1495localstatedir='${prefix}/var'
1496runstatedir='${localstatedir}/run'
1497includedir='${prefix}/include'
1498oldincludedir='/usr/include'
1499docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1500infodir='${datarootdir}/info'
1501htmldir='${docdir}'
1502dvidir='${docdir}'
1503pdfdir='${docdir}'
1504psdir='${docdir}'
1505libdir='${exec_prefix}/lib'
1506localedir='${datarootdir}/locale'
1507mandir='${datarootdir}/man'
1508
1509ac_prev=
1510ac_dashdash=
1511for ac_option
1512do
1513  # If the previous option needs an argument, assign it.
1514  if test -n "$ac_prev"; then
1515    eval $ac_prev=\$ac_option
1516    ac_prev=
1517    continue
1518  fi
1519
1520  case $ac_option in
1521  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1522  *=)   ac_optarg= ;;
1523  *)    ac_optarg=yes ;;
1524  esac
1525
1526  case $ac_dashdash$ac_option in
1527  --)
1528    ac_dashdash=yes ;;
1529
1530  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1531    ac_prev=bindir ;;
1532  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1533    bindir=$ac_optarg ;;
1534
1535  -build | --build | --buil | --bui | --bu)
1536    ac_prev=build_alias ;;
1537  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1538    build_alias=$ac_optarg ;;
1539
1540  -cache-file | --cache-file | --cache-fil | --cache-fi \
1541  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1542    ac_prev=cache_file ;;
1543  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1544  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1545    cache_file=$ac_optarg ;;
1546
1547  --config-cache | -C)
1548    cache_file=config.cache ;;
1549
1550  -datadir | --datadir | --datadi | --datad)
1551    ac_prev=datadir ;;
1552  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1553    datadir=$ac_optarg ;;
1554
1555  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1556  | --dataroo | --dataro | --datar)
1557    ac_prev=datarootdir ;;
1558  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1559  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1560    datarootdir=$ac_optarg ;;
1561
1562  -disable-* | --disable-*)
1563    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1564    # Reject names that are not valid shell variable names.
1565    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1566      as_fn_error $? "invalid feature name: '$ac_useropt'"
1567    ac_useropt_orig=$ac_useropt
1568    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1569    case $ac_user_opts in
1570      *"
1571"enable_$ac_useropt"
1572"*) ;;
1573      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1574	 ac_unrecognized_sep=', ';;
1575    esac
1576    eval enable_$ac_useropt=no ;;
1577
1578  -docdir | --docdir | --docdi | --doc | --do)
1579    ac_prev=docdir ;;
1580  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1581    docdir=$ac_optarg ;;
1582
1583  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1584    ac_prev=dvidir ;;
1585  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1586    dvidir=$ac_optarg ;;
1587
1588  -enable-* | --enable-*)
1589    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1590    # Reject names that are not valid shell variable names.
1591    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592      as_fn_error $? "invalid feature name: '$ac_useropt'"
1593    ac_useropt_orig=$ac_useropt
1594    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1595    case $ac_user_opts in
1596      *"
1597"enable_$ac_useropt"
1598"*) ;;
1599      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1600	 ac_unrecognized_sep=', ';;
1601    esac
1602    eval enable_$ac_useropt=\$ac_optarg ;;
1603
1604  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1605  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1606  | --exec | --exe | --ex)
1607    ac_prev=exec_prefix ;;
1608  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1609  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1610  | --exec=* | --exe=* | --ex=*)
1611    exec_prefix=$ac_optarg ;;
1612
1613  -gas | --gas | --ga | --g)
1614    # Obsolete; use --with-gas.
1615    with_gas=yes ;;
1616
1617  -help | --help | --hel | --he | -h)
1618    ac_init_help=long ;;
1619  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1620    ac_init_help=recursive ;;
1621  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1622    ac_init_help=short ;;
1623
1624  -host | --host | --hos | --ho)
1625    ac_prev=host_alias ;;
1626  -host=* | --host=* | --hos=* | --ho=*)
1627    host_alias=$ac_optarg ;;
1628
1629  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1630    ac_prev=htmldir ;;
1631  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1632  | --ht=*)
1633    htmldir=$ac_optarg ;;
1634
1635  -includedir | --includedir | --includedi | --included | --include \
1636  | --includ | --inclu | --incl | --inc)
1637    ac_prev=includedir ;;
1638  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1639  | --includ=* | --inclu=* | --incl=* | --inc=*)
1640    includedir=$ac_optarg ;;
1641
1642  -infodir | --infodir | --infodi | --infod | --info | --inf)
1643    ac_prev=infodir ;;
1644  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1645    infodir=$ac_optarg ;;
1646
1647  -libdir | --libdir | --libdi | --libd)
1648    ac_prev=libdir ;;
1649  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1650    libdir=$ac_optarg ;;
1651
1652  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1653  | --libexe | --libex | --libe)
1654    ac_prev=libexecdir ;;
1655  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1656  | --libexe=* | --libex=* | --libe=*)
1657    libexecdir=$ac_optarg ;;
1658
1659  -localedir | --localedir | --localedi | --localed | --locale)
1660    ac_prev=localedir ;;
1661  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1662    localedir=$ac_optarg ;;
1663
1664  -localstatedir | --localstatedir | --localstatedi | --localstated \
1665  | --localstate | --localstat | --localsta | --localst | --locals)
1666    ac_prev=localstatedir ;;
1667  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1668  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1669    localstatedir=$ac_optarg ;;
1670
1671  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1672    ac_prev=mandir ;;
1673  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1674    mandir=$ac_optarg ;;
1675
1676  -nfp | --nfp | --nf)
1677    # Obsolete; use --without-fp.
1678    with_fp=no ;;
1679
1680  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1681  | --no-cr | --no-c | -n)
1682    no_create=yes ;;
1683
1684  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1685  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1686    no_recursion=yes ;;
1687
1688  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1689  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1690  | --oldin | --oldi | --old | --ol | --o)
1691    ac_prev=oldincludedir ;;
1692  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1693  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1694  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1695    oldincludedir=$ac_optarg ;;
1696
1697  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1698    ac_prev=prefix ;;
1699  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1700    prefix=$ac_optarg ;;
1701
1702  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1703  | --program-pre | --program-pr | --program-p)
1704    ac_prev=program_prefix ;;
1705  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1706  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1707    program_prefix=$ac_optarg ;;
1708
1709  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1710  | --program-suf | --program-su | --program-s)
1711    ac_prev=program_suffix ;;
1712  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1713  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1714    program_suffix=$ac_optarg ;;
1715
1716  -program-transform-name | --program-transform-name \
1717  | --program-transform-nam | --program-transform-na \
1718  | --program-transform-n | --program-transform- \
1719  | --program-transform | --program-transfor \
1720  | --program-transfo | --program-transf \
1721  | --program-trans | --program-tran \
1722  | --progr-tra | --program-tr | --program-t)
1723    ac_prev=program_transform_name ;;
1724  -program-transform-name=* | --program-transform-name=* \
1725  | --program-transform-nam=* | --program-transform-na=* \
1726  | --program-transform-n=* | --program-transform-=* \
1727  | --program-transform=* | --program-transfor=* \
1728  | --program-transfo=* | --program-transf=* \
1729  | --program-trans=* | --program-tran=* \
1730  | --progr-tra=* | --program-tr=* | --program-t=*)
1731    program_transform_name=$ac_optarg ;;
1732
1733  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1734    ac_prev=pdfdir ;;
1735  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1736    pdfdir=$ac_optarg ;;
1737
1738  -psdir | --psdir | --psdi | --psd | --ps)
1739    ac_prev=psdir ;;
1740  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1741    psdir=$ac_optarg ;;
1742
1743  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744  | -silent | --silent | --silen | --sile | --sil)
1745    silent=yes ;;
1746
1747  -runstatedir | --runstatedir | --runstatedi | --runstated \
1748  | --runstate | --runstat | --runsta | --runst | --runs \
1749  | --run | --ru | --r)
1750    ac_prev=runstatedir ;;
1751  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1752  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1753  | --run=* | --ru=* | --r=*)
1754    runstatedir=$ac_optarg ;;
1755
1756  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1757    ac_prev=sbindir ;;
1758  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1759  | --sbi=* | --sb=*)
1760    sbindir=$ac_optarg ;;
1761
1762  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1763  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1764  | --sharedst | --shareds | --shared | --share | --shar \
1765  | --sha | --sh)
1766    ac_prev=sharedstatedir ;;
1767  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1768  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1769  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1770  | --sha=* | --sh=*)
1771    sharedstatedir=$ac_optarg ;;
1772
1773  -site | --site | --sit)
1774    ac_prev=site ;;
1775  -site=* | --site=* | --sit=*)
1776    site=$ac_optarg ;;
1777
1778  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1779    ac_prev=srcdir ;;
1780  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1781    srcdir=$ac_optarg ;;
1782
1783  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1784  | --syscon | --sysco | --sysc | --sys | --sy)
1785    ac_prev=sysconfdir ;;
1786  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1787  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1788    sysconfdir=$ac_optarg ;;
1789
1790  -target | --target | --targe | --targ | --tar | --ta | --t)
1791    ac_prev=target_alias ;;
1792  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1793    target_alias=$ac_optarg ;;
1794
1795  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1796    verbose=yes ;;
1797
1798  -version | --version | --versio | --versi | --vers | -V)
1799    ac_init_version=: ;;
1800
1801  -with-* | --with-*)
1802    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1803    # Reject names that are not valid shell variable names.
1804    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1805      as_fn_error $? "invalid package name: '$ac_useropt'"
1806    ac_useropt_orig=$ac_useropt
1807    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1808    case $ac_user_opts in
1809      *"
1810"with_$ac_useropt"
1811"*) ;;
1812      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1813	 ac_unrecognized_sep=', ';;
1814    esac
1815    eval with_$ac_useropt=\$ac_optarg ;;
1816
1817  -without-* | --without-*)
1818    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1819    # Reject names that are not valid shell variable names.
1820    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1821      as_fn_error $? "invalid package name: '$ac_useropt'"
1822    ac_useropt_orig=$ac_useropt
1823    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1824    case $ac_user_opts in
1825      *"
1826"with_$ac_useropt"
1827"*) ;;
1828      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1829	 ac_unrecognized_sep=', ';;
1830    esac
1831    eval with_$ac_useropt=no ;;
1832
1833  --x)
1834    # Obsolete; use --with-x.
1835    with_x=yes ;;
1836
1837  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1838  | --x-incl | --x-inc | --x-in | --x-i)
1839    ac_prev=x_includes ;;
1840  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1841  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1842    x_includes=$ac_optarg ;;
1843
1844  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1845  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1846    ac_prev=x_libraries ;;
1847  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1848  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1849    x_libraries=$ac_optarg ;;
1850
1851  -*) as_fn_error $? "unrecognized option: '$ac_option'
1852Try '$0 --help' for more information"
1853    ;;
1854
1855  *=*)
1856    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1857    # Reject names that are not valid shell variable names.
1858    case $ac_envvar in #(
1859      '' | [0-9]* | *[!_$as_cr_alnum]* )
1860      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1861    esac
1862    eval $ac_envvar=\$ac_optarg
1863    export $ac_envvar ;;
1864
1865  *)
1866    # FIXME: should be removed in autoconf 3.0.
1867    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1868    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1869      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1870    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1871    ;;
1872
1873  esac
1874done
1875
1876if test -n "$ac_prev"; then
1877  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1878  as_fn_error $? "missing argument to $ac_option"
1879fi
1880
1881if test -n "$ac_unrecognized_opts"; then
1882  case $enable_option_checking in
1883    no) ;;
1884    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1885    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1886  esac
1887fi
1888
1889# Check all directory arguments for consistency.
1890for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1891		datadir sysconfdir sharedstatedir localstatedir includedir \
1892		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1893		libdir localedir mandir runstatedir
1894do
1895  eval ac_val=\$$ac_var
1896  # Remove trailing slashes.
1897  case $ac_val in
1898    */ )
1899      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1900      eval $ac_var=\$ac_val;;
1901  esac
1902  # Be sure to have absolute directory names.
1903  case $ac_val in
1904    [\\/$]* | ?:[\\/]* )  continue;;
1905    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1906  esac
1907  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1908done
1909
1910# There might be people who depend on the old broken behavior: '$host'
1911# used to hold the argument of --host etc.
1912# FIXME: To remove some day.
1913build=$build_alias
1914host=$host_alias
1915target=$target_alias
1916
1917# FIXME: To remove some day.
1918if test "x$host_alias" != x; then
1919  if test "x$build_alias" = x; then
1920    cross_compiling=maybe
1921  elif test "x$build_alias" != "x$host_alias"; then
1922    cross_compiling=yes
1923  fi
1924fi
1925
1926ac_tool_prefix=
1927test -n "$host_alias" && ac_tool_prefix=$host_alias-
1928
1929test "$silent" = yes && exec 6>/dev/null
1930
1931
1932ac_pwd=`pwd` && test -n "$ac_pwd" &&
1933ac_ls_di=`ls -di .` &&
1934ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1935  as_fn_error $? "working directory cannot be determined"
1936test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1937  as_fn_error $? "pwd does not report name of working directory"
1938
1939
1940# Find the source files, if location was not specified.
1941if test -z "$srcdir"; then
1942  ac_srcdir_defaulted=yes
1943  # Try the directory containing this script, then the parent directory.
1944  ac_confdir=`$as_dirname -- "$as_myself" ||
1945$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1946	 X"$as_myself" : 'X\(//\)[^/]' \| \
1947	 X"$as_myself" : 'X\(//\)$' \| \
1948	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1949printf "%s\n" X"$as_myself" |
1950    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1951	    s//\1/
1952	    q
1953	  }
1954	  /^X\(\/\/\)[^/].*/{
1955	    s//\1/
1956	    q
1957	  }
1958	  /^X\(\/\/\)$/{
1959	    s//\1/
1960	    q
1961	  }
1962	  /^X\(\/\).*/{
1963	    s//\1/
1964	    q
1965	  }
1966	  s/.*/./; q'`
1967  srcdir=$ac_confdir
1968  if test ! -r "$srcdir/$ac_unique_file"; then
1969    srcdir=..
1970  fi
1971else
1972  ac_srcdir_defaulted=no
1973fi
1974if test ! -r "$srcdir/$ac_unique_file"; then
1975  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1976  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1977fi
1978ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1979ac_abs_confdir=`(
1980	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1981	pwd)`
1982# When building in place, set srcdir=.
1983if test "$ac_abs_confdir" = "$ac_pwd"; then
1984  srcdir=.
1985fi
1986# Remove unnecessary trailing slashes from srcdir.
1987# Double slashes in file names in object file debugging info
1988# mess up M-x gdb in Emacs.
1989case $srcdir in
1990*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1991esac
1992for ac_var in $ac_precious_vars; do
1993  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1994  eval ac_env_${ac_var}_value=\$${ac_var}
1995  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1996  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1997done
1998
1999#
2000# Report the --help message.
2001#
2002if test "$ac_init_help" = "long"; then
2003  # Omit some internal or obsolete options to make the list less imposing.
2004  # This message is too long to be a string in the A/UX 3.1 sh.
2005  cat <<_ACEOF
2006'configure' configures xorg-server 21.1.18 to adapt to many kinds of systems.
2007
2008Usage: $0 [OPTION]... [VAR=VALUE]...
2009
2010To assign environment variables (e.g., CC, CFLAGS...), specify them as
2011VAR=VALUE.  See below for descriptions of some of the useful variables.
2012
2013Defaults for the options are specified in brackets.
2014
2015Configuration:
2016  -h, --help              display this help and exit
2017      --help=short        display options specific to this package
2018      --help=recursive    display the short help of all the included packages
2019  -V, --version           display version information and exit
2020  -q, --quiet, --silent   do not print 'checking ...' messages
2021      --cache-file=FILE   cache test results in FILE [disabled]
2022  -C, --config-cache      alias for '--cache-file=config.cache'
2023  -n, --no-create         do not create output files
2024      --srcdir=DIR        find the sources in DIR [configure dir or '..']
2025
2026Installation directories:
2027  --prefix=PREFIX         install architecture-independent files in PREFIX
2028                          [$ac_default_prefix]
2029  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2030                          [PREFIX]
2031
2032By default, 'make install' will install all the files in
2033'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
2034an installation prefix other than '$ac_default_prefix' using '--prefix',
2035for instance '--prefix=\$HOME'.
2036
2037For better control, use the options below.
2038
2039Fine tuning of the installation directories:
2040  --bindir=DIR            user executables [EPREFIX/bin]
2041  --sbindir=DIR           system admin executables [EPREFIX/sbin]
2042  --libexecdir=DIR        program executables [EPREFIX/libexec]
2043  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2044  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2045  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2046  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2047  --libdir=DIR            object code libraries [EPREFIX/lib]
2048  --includedir=DIR        C header files [PREFIX/include]
2049  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2050  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2051  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2052  --infodir=DIR           info documentation [DATAROOTDIR/info]
2053  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2054  --mandir=DIR            man documentation [DATAROOTDIR/man]
2055  --docdir=DIR            documentation root [DATAROOTDIR/doc/xorg-server]
2056  --htmldir=DIR           html documentation [DOCDIR]
2057  --dvidir=DIR            dvi documentation [DOCDIR]
2058  --pdfdir=DIR            pdf documentation [DOCDIR]
2059  --psdir=DIR             ps documentation [DOCDIR]
2060_ACEOF
2061
2062  cat <<\_ACEOF
2063
2064Program names:
2065  --program-prefix=PREFIX            prepend PREFIX to installed program names
2066  --program-suffix=SUFFIX            append SUFFIX to installed program names
2067  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2068
2069System types:
2070  --build=BUILD     configure for building on BUILD [guessed]
2071  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2072_ACEOF
2073fi
2074
2075if test -n "$ac_init_help"; then
2076  case $ac_init_help in
2077     short | recursive ) echo "Configuration of xorg-server 21.1.18:";;
2078   esac
2079  cat <<\_ACEOF
2080
2081Optional Features:
2082  --disable-option-checking  ignore unrecognized --enable/--with options
2083  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2084  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2085  --enable-silent-rules   less verbose build output (undo: "make V=1")
2086  --disable-silent-rules  verbose build output (undo: "make V=0")
2087  --enable-dependency-tracking
2088                          do not reject slow dependency extractors
2089  --disable-dependency-tracking
2090                          speeds up one-time build
2091  --disable-selective-werror
2092                          Turn off selective compiler errors. (default:
2093                          enabled)
2094  --enable-strict-compilation
2095                          Enable all warnings from compiler and make them
2096                          errors (default: disabled)
2097  --enable-docs           Enable building the documentation (default: yes)
2098  --enable-devel-docs     Enable building the developer documentation
2099                          (default: yes)
2100  --enable-unit-tests     Enable building unit test cases (default: auto)
2101  --enable-static[=PKGS]  build static libraries [default=no]
2102  --enable-shared[=PKGS]  build shared libraries [default=yes]
2103  --enable-pic[=PKGS]     try to use only PIC/non-PIC objects [default=use
2104                          both]
2105  --enable-fast-install[=PKGS]
2106                          optimize for fast installation [default=yes]
2107  --enable-aix-soname=aix|svr4|both
2108                          shared library versioning (aka "SONAME") variant to
2109                          provide on AIX, [default=aix].
2110  --disable-libtool-lock  avoid locking (might break parallel builds)
2111  --disable-largefile     omit support for large files
2112  --enable-agp            Enable AGP support (default: auto)
2113  --enable-werror         Obsolete - use --enable-strict-compilation instead
2114  --enable-debug          Enable debugging (default: disabled)
2115  --enable-listen-tcp     Listen on TCP by default (default:disabled)
2116  --disable-listen-unix   Listen on Unix by default (default:enabled)
2117  --disable-listen-local  Listen on local by default (default:enabled)
2118  --enable-sparkle        Enable updating of X11.app using the Sparkle
2119                          Framework (default: disabled)
2120  --enable-visibility     Enable symbol visibility (default: auto)
2121  --disable-composite     Build Composite extension (default: enabled)
2122  --disable-mitshm        Build SHM extension (default: auto)
2123  --disable-xres          Build XRes extension (default: enabled)
2124  --disable-record        Build Record extension (default: enabled)
2125  --disable-xv            Build Xv extension (default: enabled)
2126  --disable-xvmc          Build XvMC extension (default: enabled)
2127  --disable-dga           Build DGA extension (default: auto)
2128  --disable-screensaver   Build ScreenSaver extension (default: enabled)
2129  --disable-xdmcp         Build XDMCP extension (default: auto)
2130  --disable-xdm-auth-1    Build XDM-Auth-1 extension (default: auto)
2131  --disable-glx           Build GLX extension (default: enabled)
2132  --enable-dri            Build DRI extension (default: auto)
2133  --enable-dri2           Build DRI2 extension (default: auto)
2134  --enable-dri3           Build DRI3 extension (default: auto)
2135  --disable-present       Build Present extension (default: enabled)
2136  --disable-xinerama      Build Xinerama extension (default: enabled)
2137  --disable-xf86vidmode   Build XF86VidMode extension (default: auto)
2138  --disable-xace          Build X-ACE extension (default: enabled)
2139  --enable-xselinux       Build SELinux extension (default: disabled)
2140  --enable-xcsecurity     Build Security extension (default: disabled)
2141  --disable-dbe           Build DBE extension (default: enabled)
2142  --enable-xf86bigfont    Build XF86 Big Font extension (default: disabled)
2143  --disable-dpms          Build DPMS extension (default: enabled)
2144  --enable-config-udev    Build udev support (default: auto)
2145  --enable-config-udev-kms
2146                          Build udev kms support (default: auto)
2147  --disable-config-hal    Build HAL support (default: auto)
2148  --enable-config-wscons  Build wscons config support (default: auto)
2149  --enable-xfree86-utils  Build xfree86 DDX utilities (default: enabled)
2150  --enable-vgahw          Build Xorg with vga access (default: enabled)
2151  --enable-int10-module   Build Xorg with int10 module (default: enabled)
2152  --enable-windowsdri     Build XWin with WindowsDRI extension (default: auto)
2153  --enable-libdrm         Build Xorg with libdrm support (default: enabled)
2154  --disable-clientids     Build Xorg with client ID tracking (default:
2155                          enabled)
2156  --enable-pciaccess      Build Xorg with pciaccess library (default: enabled)
2157  --disable-linux-acpi    Disable building ACPI support on Linux (if
2158                          available).
2159  --disable-linux-apm     Disable building APM support on Linux (if
2160                          available).
2161  --enable-systemd-logind Build systemd-logind support (default: auto)
2162  --enable-suid-wrapper   Build suid-root wrapper for legacy driver support on
2163                          rootless xserver systems (default: no)
2164  --enable-xorg           Build Xorg server (default: auto)
2165  --enable-xvfb           Build Xvfb server (default: yes)
2166  --enable-xnest          Build Xnest server (default: auto)
2167  --enable-xquartz        Build Xquartz server for OS-X (default: auto)
2168  --enable-standalone-xpbproxy
2169                          Build a standalone xpbproxy (in addition to the one
2170                          integrated into Xquartz as a separate thread)
2171                          (default: no)
2172  --enable-xwin           Build XWin server (default: auto)
2173  --enable-glamor         Build glamor dix module (default: auto)
2174  --enable-xf86-input-inputtest
2175                          Build Xorg test input driver (default: yes)
2176  --enable-kdrive         Build kdrive servers (default: no)
2177  --enable-xephyr         Build the kdrive Xephyr server (default: auto)
2178  --enable-libunwind      Use libunwind for backtracing (default: auto)
2179  --disable-xshmfence     Disable xshmfence (default: auto)
2180  --enable-install-setuid Install Xorg server as owned by root with setuid bit
2181                          (default: auto)
2182  --enable-unix-transport Enable UNIX domain socket transport
2183  --enable-tcp-transport  Enable TCP socket transport
2184  --enable-ipv6           Enable IPv6 support
2185  --enable-local-transport
2186                          Enable os-specific local transport
2187  --enable-secure-rpc     Enable Secure RPC
2188  --enable-input-thread   Enable input threads
2189  --disable-xtrans-send-fds
2190                          Use Xtrans support for fd passing (default: auto)
2191  --enable-year2038       support timestamps after 2038
2192
2193Optional Packages:
2194  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2195  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2196  --with-doxygen          Use doxygen to regenerate documentation (default:
2197                          auto)
2198  --with-xmlto            Use xmlto to regenerate documentation (default:
2199                          auto)
2200  --with-fop              Use fop to regenerate documentation (default: auto)
2201  --with-xsltproc         Use xsltproc for the transformation of XML documents
2202                          (default: auto)
2203  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2204  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2205                          compiler's sysroot if not specified).
2206  --with-dtrace=PATH      Enable dtrace probes (default: enabled if dtrace
2207                          found)
2208  --with-int10=BACKEND    int10 backend: vm86, x86emu or stub
2209  --with-vendor-name=VENDOR
2210                          Vendor string reported by the server
2211  --with-vendor-name-short=VENDOR
2212                          Short version of vendor string reported by the
2213                          server
2214  --with-vendor-web=URL   Vendor web address reported by the server
2215  --with-module-dir=DIR   Directory where modules are installed (default:
2216                          $libdir/xorg/modules)
2217  --with-log-dir=DIR      Directory where log files are kept (default:
2218                          $localstatedir/log)
2219  --with-builder-addr=ADDRESS
2220                          Builder address (default:
2221                          xorg@lists.freedesktop.org)
2222  --with-builderstring=BUILDERSTRING
2223                          Additional builder string
2224  --with-fallback-input-driver=$FALLBACK_INPUT_DRIVER
2225                          Input driver fallback if the requested driver for a
2226                          device is unavailable
2227  --with-fontrootdir=DIR  Path to root directory for font files
2228  --with-fontmiscdir=DIR  Path to misc files [FONTROOTDIR/misc]
2229  --with-fontotfdir=DIR   Path to OTF files [FONTROOTDIR/OTF]
2230  --with-fontttfdir=DIR   Path to TTF files [FONTROOTDIR/TTF]
2231  --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
2232  --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
2233  --with-font100dpidir=DIR
2234                          Path to 100dpi files [FONTROOTDIR/100dpi]
2235  --with-default-font-path=PATH
2236                          Comma separated list of font dirs
2237  --with-xkb-path=PATH    Path to XKB base dir (default: auto)
2238  --with-xkb-output=PATH  Path to XKB output dir (default:
2239                          ${datadir}/X11/xkb/compiled)
2240  --with-default-xkb-rules=RULES
2241                          Keyboard ruleset (default: base/evdev)
2242  --with-default-xkb-model=MODEL
2243                          Keyboard model (default: pc105)
2244  --with-default-xkb-layout=LAYOUT
2245                          Keyboard layout (default: us)
2246  --with-default-xkb-variant=VARIANT
2247                          Keyboard variant (default: (none))
2248  --with-default-xkb-options=OPTIONS
2249                          Keyboard layout options (default: (none))
2250  --with-serverconfig-path=PATH
2251                          Directory where ancillary server config files are
2252                          installed (default: ${libdir}/xorg)
2253  --with-apple-applications-dir=PATH
2254                          Path to the Applications directory (default:
2255                          /Applications/Utilities)
2256  --with-apple-application-name=NAME
2257                          Name for the .app (default: X11)
2258  --with-bundle-id-prefix=RDNS_PREFIX
2259                          Prefix to use for bundle identifiers (default:
2260                          org.x)
2261  --with-bundle-version=VERSION
2262                          Version to use for X11.app's CFBundleVersion
2263                          (default: 21.1.18)
2264  --with-bundle-version-string=VERSION
2265                          Version to use for X11.app's
2266                          CFBundleShortVersionString (default: 21.1.18)
2267  --with-sparkle-feed-url=URL
2268                          URL for the Sparkle feed (default:
2269                          https://www.xquartz.org/releases/sparkle/release.xml)
2270  --with-khronos-spec-dir=PATH
2271                          Path to Khronos OpenGL registry database files
2272                          (default: auto)
2273  --with-systemd-daemon   support systemd socket activation (default: auto)
2274  --with-xkb-bin-directory=DIR
2275                          Directory containing xkbcomp program (default: auto)
2276  --with-sha1=libc|libmd|libnettle|nettlestatic|libgcrypt|libcrypto|libsha1|CommonCrypto|CryptoAPI
2277                          choose SHA1 implementation
2278
2279Some influential environment variables:
2280  CC          C compiler command
2281  CFLAGS      C compiler flags
2282  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2283              nonstandard directory <lib dir>
2284  LIBS        libraries to pass to the linker, e.g. -l<library>
2285  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2286              you have headers in a nonstandard directory <include dir>
2287  PKG_CONFIG  path to pkg-config utility
2288  PKG_CONFIG_PATH
2289              directories to add to pkg-config's search path
2290  PKG_CONFIG_LIBDIR
2291              path overriding pkg-config's built-in search path
2292  DOXYGEN     Path to doxygen command
2293  DOT         Path to the dot graphics utility
2294  XMLTO       Path to xmlto command
2295  FOP         Path to fop command
2296  XSLTPROC    Path to xsltproc command
2297  XORG_MALLOC_DEBUG_ENV
2298              Environment variables to enable memory checking in tests
2299  CCAS        assembler compiler command (defaults to CC)
2300  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
2301  LT_SYS_LIBRARY_PATH
2302              User-defined run-time library search path.
2303  YACC        The 'Yet Another Compiler Compiler' implementation to use.
2304              Defaults to the first program found out of: 'bison -y', 'byacc',
2305              'yacc'.
2306  YFLAGS      The list of arguments that will be passed by default to $YACC.
2307              This script will default YFLAGS to the empty string to avoid a
2308              default value of '-d' given by some make applications.
2309  CPP         C preprocessor
2310  LIBBSD_CFLAGS
2311              C compiler flags for LIBBSD, overriding pkg-config
2312  LIBBSD_LIBS linker flags for LIBBSD, overriding pkg-config
2313  PIXMAN_CFLAGS
2314              C compiler flags for PIXMAN, overriding pkg-config
2315  PIXMAN_LIBS linker flags for PIXMAN, overriding pkg-config
2316  SYSTEMD_DAEMON_CFLAGS
2317              C compiler flags for SYSTEMD_DAEMON, overriding pkg-config
2318  SYSTEMD_DAEMON_LIBS
2319              linker flags for SYSTEMD_DAEMON, overriding pkg-config
2320  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
2321  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
2322  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2323  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2324  HAL_CFLAGS  C compiler flags for HAL, overriding pkg-config
2325  HAL_LIBS    linker flags for HAL, overriding pkg-config
2326  DRI2PROTO_CFLAGS
2327              C compiler flags for DRI2PROTO, overriding pkg-config
2328  DRI2PROTO_LIBS
2329              linker flags for DRI2PROTO, overriding pkg-config
2330  DRI3PROTO_CFLAGS
2331              C compiler flags for DRI3PROTO, overriding pkg-config
2332  DRI3PROTO_LIBS
2333              linker flags for DRI3PROTO, overriding pkg-config
2334  XSHMFENCE_CFLAGS
2335              C compiler flags for XSHMFENCE, overriding pkg-config
2336  XSHMFENCE_LIBS
2337              linker flags for XSHMFENCE, overriding pkg-config
2338  LIBDRM_CFLAGS
2339              C compiler flags for LIBDRM, overriding pkg-config
2340  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
2341  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
2342  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
2343  GL_CFLAGS   C compiler flags for GL, overriding pkg-config
2344  GL_LIBS     linker flags for GL, overriding pkg-config
2345  SELINUX_CFLAGS
2346              C compiler flags for SELINUX, overriding pkg-config
2347  SELINUX_LIBS
2348              linker flags for SELINUX, overriding pkg-config
2349  XDMCP_CFLAGS
2350              C compiler flags for XDMCP, overriding pkg-config
2351  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
2352  LIBSHA1_CFLAGS
2353              C compiler flags for LIBSHA1, overriding pkg-config
2354  LIBSHA1_LIBS
2355              linker flags for LIBSHA1, overriding pkg-config
2356  OPENSSL_CFLAGS
2357              C compiler flags for OPENSSL, overriding pkg-config
2358  OPENSSL_LIBS
2359              linker flags for OPENSSL, overriding pkg-config
2360  XSERVERCFLAGS_CFLAGS
2361              C compiler flags for XSERVERCFLAGS, overriding pkg-config
2362  XSERVERCFLAGS_LIBS
2363              linker flags for XSERVERCFLAGS, overriding pkg-config
2364  XSERVERLIBS_CFLAGS
2365              C compiler flags for XSERVERLIBS, overriding pkg-config
2366  XSERVERLIBS_LIBS
2367              linker flags for XSERVERLIBS, overriding pkg-config
2368  LIBUNWIND_CFLAGS
2369              C compiler flags for LIBUNWIND, overriding pkg-config
2370  LIBUNWIND_LIBS
2371              linker flags for LIBUNWIND, overriding pkg-config
2372  XNESTMODULES_CFLAGS
2373              C compiler flags for XNESTMODULES, overriding pkg-config
2374  XNESTMODULES_LIBS
2375              linker flags for XNESTMODULES, overriding pkg-config
2376  LIBXCVT_CFLAGS
2377              C compiler flags for LIBXCVT, overriding pkg-config
2378  LIBXCVT_LIBS
2379              linker flags for LIBXCVT, overriding pkg-config
2380  PCIACCESS_CFLAGS
2381              C compiler flags for PCIACCESS, overriding pkg-config
2382  PCIACCESS_LIBS
2383              linker flags for PCIACCESS, overriding pkg-config
2384  DGA_CFLAGS  C compiler flags for DGA, overriding pkg-config
2385  DGA_LIBS    linker flags for DGA, overriding pkg-config
2386  XORG_MODULES_CFLAGS
2387              C compiler flags for XORG_MODULES, overriding pkg-config
2388  XORG_MODULES_LIBS
2389              linker flags for XORG_MODULES, overriding pkg-config
2390  GLAMOR_CFLAGS
2391              C compiler flags for GLAMOR, overriding pkg-config
2392  GLAMOR_LIBS linker flags for GLAMOR, overriding pkg-config
2393  GBM_CFLAGS  C compiler flags for GBM, overriding pkg-config
2394  GBM_LIBS    linker flags for GBM, overriding pkg-config
2395  XWINMODULES_CFLAGS
2396              C compiler flags for XWINMODULES, overriding pkg-config
2397  XWINMODULES_LIBS
2398              linker flags for XWINMODULES, overriding pkg-config
2399  WINDOWSDRI_CFLAGS
2400              C compiler flags for WINDOWSDRI, overriding pkg-config
2401  WINDOWSDRI_LIBS
2402              linker flags for WINDOWSDRI, overriding pkg-config
2403  KHRONOS_OPENGL_REGISTRY_CFLAGS
2404              C compiler flags for KHRONOS_OPENGL_REGISTRY, overriding
2405              pkg-config
2406  KHRONOS_OPENGL_REGISTRY_LIBS
2407              linker flags for KHRONOS_OPENGL_REGISTRY, overriding pkg-config
2408  XPBPROXY_CFLAGS
2409              C compiler flags for XPBPROXY, overriding pkg-config
2410  XPBPROXY_LIBS
2411              linker flags for XPBPROXY, overriding pkg-config
2412  XEPHYR_CFLAGS
2413              C compiler flags for XEPHYR, overriding pkg-config
2414  XEPHYR_LIBS linker flags for XEPHYR, overriding pkg-config
2415
2416Use these variables to override the choices made by 'configure' or to help
2417it to find libraries and programs with nonstandard names/locations.
2418
2419Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>.
2420_ACEOF
2421ac_status=$?
2422fi
2423
2424if test "$ac_init_help" = "recursive"; then
2425  # If there are subdirs, report their specific --help.
2426  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2427    test -d "$ac_dir" ||
2428      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2429      continue
2430    ac_builddir=.
2431
2432case "$ac_dir" in
2433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2434*)
2435  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2436  # A ".." for each directory in $ac_dir_suffix.
2437  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2438  case $ac_top_builddir_sub in
2439  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2440  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2441  esac ;;
2442esac
2443ac_abs_top_builddir=$ac_pwd
2444ac_abs_builddir=$ac_pwd$ac_dir_suffix
2445# for backward compatibility:
2446ac_top_builddir=$ac_top_build_prefix
2447
2448case $srcdir in
2449  .)  # We are building in place.
2450    ac_srcdir=.
2451    ac_top_srcdir=$ac_top_builddir_sub
2452    ac_abs_top_srcdir=$ac_pwd ;;
2453  [\\/]* | ?:[\\/]* )  # Absolute name.
2454    ac_srcdir=$srcdir$ac_dir_suffix;
2455    ac_top_srcdir=$srcdir
2456    ac_abs_top_srcdir=$srcdir ;;
2457  *) # Relative name.
2458    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2459    ac_top_srcdir=$ac_top_build_prefix$srcdir
2460    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2461esac
2462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2463
2464    cd "$ac_dir" || { ac_status=$?; continue; }
2465    # Check for configure.gnu first; this name is used for a wrapper for
2466    # Metaconfig's "Configure" on case-insensitive file systems.
2467    if test -f "$ac_srcdir/configure.gnu"; then
2468      echo &&
2469      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2470    elif test -f "$ac_srcdir/configure"; then
2471      echo &&
2472      $SHELL "$ac_srcdir/configure" --help=recursive
2473    else
2474      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2475    fi || ac_status=$?
2476    cd "$ac_pwd" || { ac_status=$?; break; }
2477  done
2478fi
2479
2480test -n "$ac_init_help" && exit $ac_status
2481if $ac_init_version; then
2482  cat <<\_ACEOF
2483xorg-server configure 21.1.18
2484generated by GNU Autoconf 2.72
2485
2486Copyright (C) 2023 Free Software Foundation, Inc.
2487This configure script is free software; the Free Software Foundation
2488gives unlimited permission to copy, distribute and modify it.
2489_ACEOF
2490  exit
2491fi
2492
2493## ------------------------ ##
2494## Autoconf initialization. ##
2495## ------------------------ ##
2496
2497# ac_fn_c_try_compile LINENO
2498# --------------------------
2499# Try to compile conftest.$ac_ext, and return whether this succeeded.
2500ac_fn_c_try_compile ()
2501{
2502  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503  rm -f conftest.$ac_objext conftest.beam
2504  if { { ac_try="$ac_compile"
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\""
2510printf "%s\n" "$ac_try_echo"; } >&5
2511  (eval "$ac_compile") 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  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519  test $ac_status = 0; } && {
2520	 test -z "$ac_c_werror_flag" ||
2521	 test ! -s conftest.err
2522       } && test -s conftest.$ac_objext
2523then :
2524  ac_retval=0
2525else case e in #(
2526  e) printf "%s\n" "$as_me: failed program was:" >&5
2527sed 's/^/| /' conftest.$ac_ext >&5
2528
2529	ac_retval=1 ;;
2530esac
2531fi
2532  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2533  as_fn_set_status $ac_retval
2534
2535} # ac_fn_c_try_compile
2536
2537# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2538# -------------------------------------------------------
2539# Tests whether HEADER exists and can be compiled using the include files in
2540# INCLUDES, setting the cache variable VAR accordingly.
2541ac_fn_c_check_header_compile ()
2542{
2543  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545printf %s "checking for $2... " >&6; }
2546if eval test \${$3+y}
2547then :
2548  printf %s "(cached) " >&6
2549else case e in #(
2550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551/* end confdefs.h.  */
2552$4
2553#include <$2>
2554_ACEOF
2555if ac_fn_c_try_compile "$LINENO"
2556then :
2557  eval "$3=yes"
2558else case e in #(
2559  e) eval "$3=no" ;;
2560esac
2561fi
2562rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2563esac
2564fi
2565eval ac_res=\$$3
2566	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567printf "%s\n" "$ac_res" >&6; }
2568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2569
2570} # ac_fn_c_check_header_compile
2571
2572# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2573# ------------------------------------------------------------------
2574# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2575# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2576ac_fn_check_decl ()
2577{
2578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579  as_decl_name=`echo $2|sed 's/ *(.*//'`
2580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2581printf %s "checking whether $as_decl_name is declared... " >&6; }
2582if eval test \${$3+y}
2583then :
2584  printf %s "(cached) " >&6
2585else case e in #(
2586  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2587  eval ac_save_FLAGS=\$$6
2588  as_fn_append $6 " $5"
2589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h.  */
2591$4
2592int
2593main (void)
2594{
2595#ifndef $as_decl_name
2596#ifdef __cplusplus
2597  (void) $as_decl_use;
2598#else
2599  (void) $as_decl_name;
2600#endif
2601#endif
2602
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_compile "$LINENO"
2608then :
2609  eval "$3=yes"
2610else case e in #(
2611  e) eval "$3=no" ;;
2612esac
2613fi
2614rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2615  eval $6=\$ac_save_FLAGS
2616 ;;
2617esac
2618fi
2619eval ac_res=\$$3
2620	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621printf "%s\n" "$ac_res" >&6; }
2622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2623
2624} # ac_fn_check_decl
2625
2626# ac_fn_c_try_link LINENO
2627# -----------------------
2628# Try to link conftest.$ac_ext, and return whether this succeeded.
2629ac_fn_c_try_link ()
2630{
2631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
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\""
2639printf "%s\n" "$ac_try_echo"; } >&5
2640  (eval "$ac_link") 2>conftest.err
2641  ac_status=$?
2642  if test -s conftest.err; then
2643    grep -v '^ *+' conftest.err >conftest.er1
2644    cat conftest.er1 >&5
2645    mv -f conftest.er1 conftest.err
2646  fi
2647  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648  test $ac_status = 0; } && {
2649	 test -z "$ac_c_werror_flag" ||
2650	 test ! -s conftest.err
2651       } && test -s conftest$ac_exeext && {
2652	 test "$cross_compiling" = yes ||
2653	 test -x conftest$ac_exeext
2654       }
2655then :
2656  ac_retval=0
2657else case e in #(
2658  e) printf "%s\n" "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661	ac_retval=1 ;;
2662esac
2663fi
2664  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2665  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2666  # interfere with the next link command; also delete a directory that is
2667  # left behind by Apple's compiler.  We do this before executing the actions.
2668  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670  as_fn_set_status $ac_retval
2671
2672} # ac_fn_c_try_link
2673
2674# ac_fn_c_check_func LINENO FUNC VAR
2675# ----------------------------------
2676# Tests whether FUNC exists, setting the cache variable VAR accordingly
2677ac_fn_c_check_func ()
2678{
2679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2681printf %s "checking for $2... " >&6; }
2682if eval test \${$3+y}
2683then :
2684  printf %s "(cached) " >&6
2685else case e in #(
2686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h.  */
2688/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2689   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2690#define $2 innocuous_$2
2691
2692/* System header to define __stub macros and hopefully few prototypes,
2693   which can conflict with char $2 (void); below.  */
2694
2695#include <limits.h>
2696#undef $2
2697
2698/* Override any GCC internal prototype to avoid an error.
2699   Use char because int might match the return type of a GCC
2700   builtin and then its argument prototype would still apply.  */
2701#ifdef __cplusplus
2702extern "C"
2703#endif
2704char $2 (void);
2705/* The GNU C library defines this for functions which it implements
2706    to always fail with ENOSYS.  Some functions are actually named
2707    something starting with __ and the normal name is an alias.  */
2708#if defined __stub_$2 || defined __stub___$2
2709choke me
2710#endif
2711
2712int
2713main (void)
2714{
2715return $2 ();
2716  ;
2717  return 0;
2718}
2719_ACEOF
2720if ac_fn_c_try_link "$LINENO"
2721then :
2722  eval "$3=yes"
2723else case e in #(
2724  e) eval "$3=no" ;;
2725esac
2726fi
2727rm -f core conftest.err conftest.$ac_objext conftest.beam \
2728    conftest$ac_exeext conftest.$ac_ext ;;
2729esac
2730fi
2731eval ac_res=\$$3
2732	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2733printf "%s\n" "$ac_res" >&6; }
2734  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2735
2736} # ac_fn_c_check_func
2737
2738# ac_fn_c_try_cpp LINENO
2739# ----------------------
2740# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2741ac_fn_c_try_cpp ()
2742{
2743  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2744  if { { ac_try="$ac_cpp conftest.$ac_ext"
2745case "(($ac_try" in
2746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747  *) ac_try_echo=$ac_try;;
2748esac
2749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750printf "%s\n" "$ac_try_echo"; } >&5
2751  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2752  ac_status=$?
2753  if test -s conftest.err; then
2754    grep -v '^ *+' conftest.err >conftest.er1
2755    cat conftest.er1 >&5
2756    mv -f conftest.er1 conftest.err
2757  fi
2758  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2759  test $ac_status = 0; } > conftest.i && {
2760	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2761	 test ! -s conftest.err
2762       }
2763then :
2764  ac_retval=0
2765else case e in #(
2766  e) printf "%s\n" "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769    ac_retval=1 ;;
2770esac
2771fi
2772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773  as_fn_set_status $ac_retval
2774
2775} # ac_fn_c_try_cpp
2776
2777# ac_fn_c_try_run LINENO
2778# ----------------------
2779# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2780# executables *can* be run.
2781ac_fn_c_try_run ()
2782{
2783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784  if { { ac_try="$ac_link"
2785case "(($ac_try" in
2786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787  *) ac_try_echo=$ac_try;;
2788esac
2789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790printf "%s\n" "$ac_try_echo"; } >&5
2791  (eval "$ac_link") 2>&5
2792  ac_status=$?
2793  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2795  { { case "(($ac_try" in
2796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797  *) ac_try_echo=$ac_try;;
2798esac
2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2800printf "%s\n" "$ac_try_echo"; } >&5
2801  (eval "$ac_try") 2>&5
2802  ac_status=$?
2803  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2804  test $ac_status = 0; }; }
2805then :
2806  ac_retval=0
2807else case e in #(
2808  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2809       printf "%s\n" "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812       ac_retval=$ac_status ;;
2813esac
2814fi
2815  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2816  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2817  as_fn_set_status $ac_retval
2818
2819} # ac_fn_c_try_run
2820
2821# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2822# --------------------------------------------
2823# Tries to find the compile-time value of EXPR in a program that includes
2824# INCLUDES, setting VAR accordingly. Returns whether the value could be
2825# computed
2826ac_fn_c_compute_int ()
2827{
2828  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2829  if test "$cross_compiling" = yes; then
2830    # Depending upon the size, compute the lo and hi bounds.
2831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832/* end confdefs.h.  */
2833$4
2834int
2835main (void)
2836{
2837static int test_array [1 - 2 * !(($2) >= 0)];
2838test_array [0] = 0;
2839return test_array [0];
2840
2841  ;
2842  return 0;
2843}
2844_ACEOF
2845if ac_fn_c_try_compile "$LINENO"
2846then :
2847  ac_lo=0 ac_mid=0
2848  while :; do
2849    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h.  */
2851$4
2852int
2853main (void)
2854{
2855static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2856test_array [0] = 0;
2857return test_array [0];
2858
2859  ;
2860  return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"
2864then :
2865  ac_hi=$ac_mid; break
2866else case e in #(
2867  e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2868			if test $ac_lo -le $ac_mid; then
2869			  ac_lo= ac_hi=
2870			  break
2871			fi
2872			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2873esac
2874fi
2875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2876  done
2877else case e in #(
2878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879/* end confdefs.h.  */
2880$4
2881int
2882main (void)
2883{
2884static int test_array [1 - 2 * !(($2) < 0)];
2885test_array [0] = 0;
2886return test_array [0];
2887
2888  ;
2889  return 0;
2890}
2891_ACEOF
2892if ac_fn_c_try_compile "$LINENO"
2893then :
2894  ac_hi=-1 ac_mid=-1
2895  while :; do
2896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897/* end confdefs.h.  */
2898$4
2899int
2900main (void)
2901{
2902static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2903test_array [0] = 0;
2904return test_array [0];
2905
2906  ;
2907  return 0;
2908}
2909_ACEOF
2910if ac_fn_c_try_compile "$LINENO"
2911then :
2912  ac_lo=$ac_mid; break
2913else case e in #(
2914  e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2915			if test $ac_mid -le $ac_hi; then
2916			  ac_lo= ac_hi=
2917			  break
2918			fi
2919			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2920esac
2921fi
2922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2923  done
2924else case e in #(
2925  e) ac_lo= ac_hi= ;;
2926esac
2927fi
2928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2929esac
2930fi
2931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2932# Binary search between lo and hi bounds.
2933while test "x$ac_lo" != "x$ac_hi"; do
2934  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936/* end confdefs.h.  */
2937$4
2938int
2939main (void)
2940{
2941static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2942test_array [0] = 0;
2943return test_array [0];
2944
2945  ;
2946  return 0;
2947}
2948_ACEOF
2949if ac_fn_c_try_compile "$LINENO"
2950then :
2951  ac_hi=$ac_mid
2952else case e in #(
2953  e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2954esac
2955fi
2956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2957done
2958case $ac_lo in #((
2959?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2960'') ac_retval=1 ;;
2961esac
2962  else
2963    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2964/* end confdefs.h.  */
2965$4
2966static long int longval (void) { return $2; }
2967static unsigned long int ulongval (void) { return $2; }
2968#include <stdio.h>
2969#include <stdlib.h>
2970int
2971main (void)
2972{
2973
2974  FILE *f = fopen ("conftest.val", "w");
2975  if (! f)
2976    return 1;
2977  if (($2) < 0)
2978    {
2979      long int i = longval ();
2980      if (i != ($2))
2981	return 1;
2982      fprintf (f, "%ld", i);
2983    }
2984  else
2985    {
2986      unsigned long int i = ulongval ();
2987      if (i != ($2))
2988	return 1;
2989      fprintf (f, "%lu", i);
2990    }
2991  /* Do not output a trailing newline, as this causes \r\n confusion
2992     on some platforms.  */
2993  return ferror (f) || fclose (f) != 0;
2994
2995  ;
2996  return 0;
2997}
2998_ACEOF
2999if ac_fn_c_try_run "$LINENO"
3000then :
3001  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3002else case e in #(
3003  e) ac_retval=1 ;;
3004esac
3005fi
3006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3007  conftest.$ac_objext conftest.beam conftest.$ac_ext
3008rm -f conftest.val
3009
3010  fi
3011  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3012  as_fn_set_status $ac_retval
3013
3014} # ac_fn_c_compute_int
3015
3016# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
3017# -------------------------------------------
3018# Tests whether TYPE exists after having included INCLUDES, setting cache
3019# variable VAR accordingly.
3020ac_fn_c_check_type ()
3021{
3022  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3024printf %s "checking for $2... " >&6; }
3025if eval test \${$3+y}
3026then :
3027  printf %s "(cached) " >&6
3028else case e in #(
3029  e) eval "$3=no"
3030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032$4
3033int
3034main (void)
3035{
3036if (sizeof ($2))
3037	 return 0;
3038  ;
3039  return 0;
3040}
3041_ACEOF
3042if ac_fn_c_try_compile "$LINENO"
3043then :
3044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046$4
3047int
3048main (void)
3049{
3050if (sizeof (($2)))
3051	    return 0;
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056if ac_fn_c_try_compile "$LINENO"
3057then :
3058
3059else case e in #(
3060  e) eval "$3=yes" ;;
3061esac
3062fi
3063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3064fi
3065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3066esac
3067fi
3068eval ac_res=\$$3
3069	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3070printf "%s\n" "$ac_res" >&6; }
3071  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3072
3073} # ac_fn_c_check_type
3074
3075# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3076# ----------------------------------------------------
3077# Tries to find if the field MEMBER exists in type AGGR, after including
3078# INCLUDES, setting cache variable VAR accordingly.
3079ac_fn_c_check_member ()
3080{
3081  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3082  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3083printf %s "checking for $2.$3... " >&6; }
3084if eval test \${$4+y}
3085then :
3086  printf %s "(cached) " >&6
3087else case e in #(
3088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h.  */
3090$5
3091int
3092main (void)
3093{
3094static $2 ac_aggr;
3095if (ac_aggr.$3)
3096return 0;
3097  ;
3098  return 0;
3099}
3100_ACEOF
3101if ac_fn_c_try_compile "$LINENO"
3102then :
3103  eval "$4=yes"
3104else case e in #(
3105  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3106/* end confdefs.h.  */
3107$5
3108int
3109main (void)
3110{
3111static $2 ac_aggr;
3112if (sizeof ac_aggr.$3)
3113return 0;
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118if ac_fn_c_try_compile "$LINENO"
3119then :
3120  eval "$4=yes"
3121else case e in #(
3122  e) eval "$4=no" ;;
3123esac
3124fi
3125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3126esac
3127fi
3128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3129esac
3130fi
3131eval ac_res=\$$4
3132	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3133printf "%s\n" "$ac_res" >&6; }
3134  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3135
3136} # ac_fn_c_check_member
3137ac_configure_args_raw=
3138for ac_arg
3139do
3140  case $ac_arg in
3141  *\'*)
3142    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3143  esac
3144  as_fn_append ac_configure_args_raw " '$ac_arg'"
3145done
3146
3147case $ac_configure_args_raw in
3148  *$as_nl*)
3149    ac_safe_unquote= ;;
3150  *)
3151    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
3152    ac_unsafe_a="$ac_unsafe_z#~"
3153    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3154    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3155esac
3156
3157cat >config.log <<_ACEOF
3158This file contains any messages produced by compilers while
3159running configure, to aid debugging if configure makes a mistake.
3160
3161It was created by xorg-server $as_me 21.1.18, which was
3162generated by GNU Autoconf 2.72.  Invocation command line was
3163
3164  $ $0$ac_configure_args_raw
3165
3166_ACEOF
3167exec 5>>config.log
3168{
3169cat <<_ASUNAME
3170## --------- ##
3171## Platform. ##
3172## --------- ##
3173
3174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3175uname -m = `(uname -m) 2>/dev/null || echo unknown`
3176uname -r = `(uname -r) 2>/dev/null || echo unknown`
3177uname -s = `(uname -s) 2>/dev/null || echo unknown`
3178uname -v = `(uname -v) 2>/dev/null || echo unknown`
3179
3180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3181/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3182
3183/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3184/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3186/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3187/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3188/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3189/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3190
3191_ASUNAME
3192
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  case $as_dir in #(((
3198    '') as_dir=./ ;;
3199    */) ;;
3200    *) as_dir=$as_dir/ ;;
3201  esac
3202    printf "%s\n" "PATH: $as_dir"
3203  done
3204IFS=$as_save_IFS
3205
3206} >&5
3207
3208cat >&5 <<_ACEOF
3209
3210
3211## ----------- ##
3212## Core tests. ##
3213## ----------- ##
3214
3215_ACEOF
3216
3217
3218# Keep a trace of the command line.
3219# Strip out --no-create and --no-recursion so they do not pile up.
3220# Strip out --silent because we don't want to record it for future runs.
3221# Also quote any args containing shell meta-characters.
3222# Make two passes to allow for proper duplicate-argument suppression.
3223ac_configure_args=
3224ac_configure_args0=
3225ac_configure_args1=
3226ac_must_keep_next=false
3227for ac_pass in 1 2
3228do
3229  for ac_arg
3230  do
3231    case $ac_arg in
3232    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3233    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3234    | -silent | --silent | --silen | --sile | --sil)
3235      continue ;;
3236    *\'*)
3237      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3238    esac
3239    case $ac_pass in
3240    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3241    2)
3242      as_fn_append ac_configure_args1 " '$ac_arg'"
3243      if test $ac_must_keep_next = true; then
3244	ac_must_keep_next=false # Got value, back to normal.
3245      else
3246	case $ac_arg in
3247	  *=* | --config-cache | -C | -disable-* | --disable-* \
3248	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3249	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3250	  | -with-* | --with-* | -without-* | --without-* | --x)
3251	    case "$ac_configure_args0 " in
3252	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3253	    esac
3254	    ;;
3255	  -* ) ac_must_keep_next=true ;;
3256	esac
3257      fi
3258      as_fn_append ac_configure_args " '$ac_arg'"
3259      ;;
3260    esac
3261  done
3262done
3263{ ac_configure_args0=; unset ac_configure_args0;}
3264{ ac_configure_args1=; unset ac_configure_args1;}
3265
3266# When interrupted or exit'd, cleanup temporary files, and complete
3267# config.log.  We remove comments because anyway the quotes in there
3268# would cause problems or look ugly.
3269# WARNING: Use '\'' to represent an apostrophe within the trap.
3270# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3271trap 'exit_status=$?
3272  # Sanitize IFS.
3273  IFS=" ""	$as_nl"
3274  # Save into config.log some information that might help in debugging.
3275  {
3276    echo
3277
3278    printf "%s\n" "## ---------------- ##
3279## Cache variables. ##
3280## ---------------- ##"
3281    echo
3282    # The following way of writing the cache mishandles newlines in values,
3283(
3284  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3285    eval ac_val=\$$ac_var
3286    case $ac_val in #(
3287    *${as_nl}*)
3288      case $ac_var in #(
3289      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3290printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3291      esac
3292      case $ac_var in #(
3293      _ | IFS | as_nl) ;; #(
3294      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3295      *) { eval $ac_var=; unset $ac_var;} ;;
3296      esac ;;
3297    esac
3298  done
3299  (set) 2>&1 |
3300    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3301    *${as_nl}ac_space=\ *)
3302      sed -n \
3303	"s/'\''/'\''\\\\'\'''\''/g;
3304	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3305      ;; #(
3306    *)
3307      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3308      ;;
3309    esac |
3310    sort
3311)
3312    echo
3313
3314    printf "%s\n" "## ----------------- ##
3315## Output variables. ##
3316## ----------------- ##"
3317    echo
3318    for ac_var in $ac_subst_vars
3319    do
3320      eval ac_val=\$$ac_var
3321      case $ac_val in
3322      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3323      esac
3324      printf "%s\n" "$ac_var='\''$ac_val'\''"
3325    done | sort
3326    echo
3327
3328    if test -n "$ac_subst_files"; then
3329      printf "%s\n" "## ------------------- ##
3330## File substitutions. ##
3331## ------------------- ##"
3332      echo
3333      for ac_var in $ac_subst_files
3334      do
3335	eval ac_val=\$$ac_var
3336	case $ac_val in
3337	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3338	esac
3339	printf "%s\n" "$ac_var='\''$ac_val'\''"
3340      done | sort
3341      echo
3342    fi
3343
3344    if test -s confdefs.h; then
3345      printf "%s\n" "## ----------- ##
3346## confdefs.h. ##
3347## ----------- ##"
3348      echo
3349      cat confdefs.h
3350      echo
3351    fi
3352    test "$ac_signal" != 0 &&
3353      printf "%s\n" "$as_me: caught signal $ac_signal"
3354    printf "%s\n" "$as_me: exit $exit_status"
3355  } >&5
3356  rm -f core *.core core.conftest.* &&
3357    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3358    exit $exit_status
3359' 0
3360for ac_signal in 1 2 13 15; do
3361  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3362done
3363ac_signal=0
3364
3365# confdefs.h avoids OS command line length limits that DEFS can exceed.
3366rm -f -r conftest* confdefs.h
3367
3368printf "%s\n" "/* confdefs.h */" > confdefs.h
3369
3370# Predefined preprocessor variables.
3371
3372printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3373
3374printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3375
3376printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3377
3378printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3379
3380printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3381
3382printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
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.
3387if test -n "$CONFIG_SITE"; then
3388  ac_site_files="$CONFIG_SITE"
3389elif test "x$prefix" != xNONE; then
3390  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3391else
3392  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3393fi
3394
3395for ac_site_file in $ac_site_files
3396do
3397  case $ac_site_file in #(
3398  */*) :
3399     ;; #(
3400  *) :
3401    ac_site_file=./$ac_site_file ;;
3402esac
3403  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3404    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3405printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3406    sed 's/^/| /' "$ac_site_file" >&5
3407    . "$ac_site_file" \
3408      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3409printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3410as_fn_error $? "failed to load site script $ac_site_file
3411See 'config.log' for more details" "$LINENO" 5; }
3412  fi
3413done
3414
3415if test -r "$cache_file"; then
3416  # Some versions of bash will fail to source /dev/null (special files
3417  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3418  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3419    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3420printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3421    case $cache_file in
3422      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3423      *)                      . "./$cache_file";;
3424    esac
3425  fi
3426else
3427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3428printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3429  >$cache_file
3430fi
3431
3432as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3433# Test code for whether the C compiler supports C89 (global declarations)
3434ac_c_conftest_c89_globals='
3435/* Does the compiler advertise C89 conformance?
3436   Do not test the value of __STDC__, because some compilers set it to 0
3437   while being otherwise adequately conformant. */
3438#if !defined __STDC__
3439# error "Compiler does not advertise C89 conformance"
3440#endif
3441
3442#include <stddef.h>
3443#include <stdarg.h>
3444struct stat;
3445/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3446struct buf { int x; };
3447struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3448static char *e (char **p, int i)
3449{
3450  return p[i];
3451}
3452static char *f (char * (*g) (char **, int), char **p, ...)
3453{
3454  char *s;
3455  va_list v;
3456  va_start (v,p);
3457  s = g (p, va_arg (v,int));
3458  va_end (v);
3459  return s;
3460}
3461
3462/* C89 style stringification. */
3463#define noexpand_stringify(a) #a
3464const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3465
3466/* C89 style token pasting.  Exercises some of the corner cases that
3467   e.g. old MSVC gets wrong, but not very hard. */
3468#define noexpand_concat(a,b) a##b
3469#define expand_concat(a,b) noexpand_concat(a,b)
3470extern int vA;
3471extern int vbee;
3472#define aye A
3473#define bee B
3474int *pvA = &expand_concat(v,aye);
3475int *pvbee = &noexpand_concat(v,bee);
3476
3477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3478   function prototypes and stuff, but not \xHH hex character constants.
3479   These do not provoke an error unfortunately, instead are silently treated
3480   as an "x".  The following induces an error, until -std is added to get
3481   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3482   array size at least.  It is necessary to write \x00 == 0 to get something
3483   that is true only with -std.  */
3484int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3485
3486/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487   inside strings and character constants.  */
3488#define FOO(x) '\''x'\''
3489int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3490
3491int test (int i, double x);
3492struct s1 {int (*f) (int a);};
3493struct s2 {int (*f) (double a);};
3494int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3495               int, int);'
3496
3497# Test code for whether the C compiler supports C89 (body of main).
3498ac_c_conftest_c89_main='
3499ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3500'
3501
3502# Test code for whether the C compiler supports C99 (global declarations)
3503ac_c_conftest_c99_globals='
3504/* Does the compiler advertise C99 conformance? */
3505#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3506# error "Compiler does not advertise C99 conformance"
3507#endif
3508
3509// See if C++-style comments work.
3510
3511#include <stdbool.h>
3512extern int puts (const char *);
3513extern int printf (const char *, ...);
3514extern int dprintf (int, const char *, ...);
3515extern void *malloc (size_t);
3516extern void free (void *);
3517
3518// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3519// dprintf is used instead of fprintf to avoid needing to declare
3520// FILE and stderr.
3521#define debug(...) dprintf (2, __VA_ARGS__)
3522#define showlist(...) puts (#__VA_ARGS__)
3523#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3524static void
3525test_varargs_macros (void)
3526{
3527  int x = 1234;
3528  int y = 5678;
3529  debug ("Flag");
3530  debug ("X = %d\n", x);
3531  showlist (The first, second, and third items.);
3532  report (x>y, "x is %d but y is %d", x, y);
3533}
3534
3535// Check long long types.
3536#define BIG64 18446744073709551615ull
3537#define BIG32 4294967295ul
3538#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3539#if !BIG_OK
3540  #error "your preprocessor is broken"
3541#endif
3542#if BIG_OK
3543#else
3544  #error "your preprocessor is broken"
3545#endif
3546static long long int bignum = -9223372036854775807LL;
3547static unsigned long long int ubignum = BIG64;
3548
3549struct incomplete_array
3550{
3551  int datasize;
3552  double data[];
3553};
3554
3555struct named_init {
3556  int number;
3557  const wchar_t *name;
3558  double average;
3559};
3560
3561typedef const char *ccp;
3562
3563static inline int
3564test_restrict (ccp restrict text)
3565{
3566  // Iterate through items via the restricted pointer.
3567  // Also check for declarations in for loops.
3568  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3569    continue;
3570  return 0;
3571}
3572
3573// Check varargs and va_copy.
3574static bool
3575test_varargs (const char *format, ...)
3576{
3577  va_list args;
3578  va_start (args, format);
3579  va_list args_copy;
3580  va_copy (args_copy, args);
3581
3582  const char *str = "";
3583  int number = 0;
3584  float fnumber = 0;
3585
3586  while (*format)
3587    {
3588      switch (*format++)
3589	{
3590	case '\''s'\'': // string
3591	  str = va_arg (args_copy, const char *);
3592	  break;
3593	case '\''d'\'': // int
3594	  number = va_arg (args_copy, int);
3595	  break;
3596	case '\''f'\'': // float
3597	  fnumber = va_arg (args_copy, double);
3598	  break;
3599	default:
3600	  break;
3601	}
3602    }
3603  va_end (args_copy);
3604  va_end (args);
3605
3606  return *str && number && fnumber;
3607}
3608'
3609
3610# Test code for whether the C compiler supports C99 (body of main).
3611ac_c_conftest_c99_main='
3612  // Check bool.
3613  _Bool success = false;
3614  success |= (argc != 0);
3615
3616  // Check restrict.
3617  if (test_restrict ("String literal") == 0)
3618    success = true;
3619  char *restrict newvar = "Another string";
3620
3621  // Check varargs.
3622  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3623  test_varargs_macros ();
3624
3625  // Check flexible array members.
3626  struct incomplete_array *ia =
3627    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3628  ia->datasize = 10;
3629  for (int i = 0; i < ia->datasize; ++i)
3630    ia->data[i] = i * 1.234;
3631  // Work around memory leak warnings.
3632  free (ia);
3633
3634  // Check named initializers.
3635  struct named_init ni = {
3636    .number = 34,
3637    .name = L"Test wide string",
3638    .average = 543.34343,
3639  };
3640
3641  ni.number = 58;
3642
3643  int dynamic_array[ni.number];
3644  dynamic_array[0] = argv[0][0];
3645  dynamic_array[ni.number - 1] = 543;
3646
3647  // work around unused variable warnings
3648  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3649	 || dynamic_array[ni.number - 1] != 543);
3650'
3651
3652# Test code for whether the C compiler supports C11 (global declarations)
3653ac_c_conftest_c11_globals='
3654/* Does the compiler advertise C11 conformance? */
3655#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3656# error "Compiler does not advertise C11 conformance"
3657#endif
3658
3659// Check _Alignas.
3660char _Alignas (double) aligned_as_double;
3661char _Alignas (0) no_special_alignment;
3662extern char aligned_as_int;
3663char _Alignas (0) _Alignas (int) aligned_as_int;
3664
3665// Check _Alignof.
3666enum
3667{
3668  int_alignment = _Alignof (int),
3669  int_array_alignment = _Alignof (int[100]),
3670  char_alignment = _Alignof (char)
3671};
3672_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3673
3674// Check _Noreturn.
3675int _Noreturn does_not_return (void) { for (;;) continue; }
3676
3677// Check _Static_assert.
3678struct test_static_assert
3679{
3680  int x;
3681  _Static_assert (sizeof (int) <= sizeof (long int),
3682                  "_Static_assert does not work in struct");
3683  long int y;
3684};
3685
3686// Check UTF-8 literals.
3687#define u8 syntax error!
3688char const utf8_literal[] = u8"happens to be ASCII" "another string";
3689
3690// Check duplicate typedefs.
3691typedef long *long_ptr;
3692typedef long int *long_ptr;
3693typedef long_ptr long_ptr;
3694
3695// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3696struct anonymous
3697{
3698  union {
3699    struct { int i; int j; };
3700    struct { int k; long int l; } w;
3701  };
3702  int m;
3703} v1;
3704'
3705
3706# Test code for whether the C compiler supports C11 (body of main).
3707ac_c_conftest_c11_main='
3708  _Static_assert ((offsetof (struct anonymous, i)
3709		   == offsetof (struct anonymous, w.k)),
3710		  "Anonymous union alignment botch");
3711  v1.i = 2;
3712  v1.w.k = 5;
3713  ok |= v1.i != 5;
3714'
3715
3716# Test code for whether the C compiler supports C11 (complete).
3717ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3718${ac_c_conftest_c99_globals}
3719${ac_c_conftest_c11_globals}
3720
3721int
3722main (int argc, char **argv)
3723{
3724  int ok = 0;
3725  ${ac_c_conftest_c89_main}
3726  ${ac_c_conftest_c99_main}
3727  ${ac_c_conftest_c11_main}
3728  return ok;
3729}
3730"
3731
3732# Test code for whether the C compiler supports C99 (complete).
3733ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3734${ac_c_conftest_c99_globals}
3735
3736int
3737main (int argc, char **argv)
3738{
3739  int ok = 0;
3740  ${ac_c_conftest_c89_main}
3741  ${ac_c_conftest_c99_main}
3742  return ok;
3743}
3744"
3745
3746# Test code for whether the C compiler supports C89 (complete).
3747ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3748
3749int
3750main (int argc, char **argv)
3751{
3752  int ok = 0;
3753  ${ac_c_conftest_c89_main}
3754  return ok;
3755}
3756"
3757
3758as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3759as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3760as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3761as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3762as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3763as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3764as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3765as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3766as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3767as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3768
3769# Auxiliary files required by this configure script.
3770ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
3771
3772# Locations in which to look for auxiliary files.
3773ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3774
3775# Search for a directory containing all of the required auxiliary files,
3776# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3777# If we don't find one directory that contains all the files we need,
3778# we report the set of missing files from the *first* directory in
3779# $ac_aux_dir_candidates and give up.
3780ac_missing_aux_files=""
3781ac_first_candidate=:
3782printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784as_found=false
3785for as_dir in $ac_aux_dir_candidates
3786do
3787  IFS=$as_save_IFS
3788  case $as_dir in #(((
3789    '') as_dir=./ ;;
3790    */) ;;
3791    *) as_dir=$as_dir/ ;;
3792  esac
3793  as_found=:
3794
3795  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3796  ac_aux_dir_found=yes
3797  ac_install_sh=
3798  for ac_aux in $ac_aux_files
3799  do
3800    # As a special case, if "install-sh" is required, that requirement
3801    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3802    # and $ac_install_sh is set appropriately for whichever one is found.
3803    if test x"$ac_aux" = x"install-sh"
3804    then
3805      if test -f "${as_dir}install-sh"; then
3806        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3807        ac_install_sh="${as_dir}install-sh -c"
3808      elif test -f "${as_dir}install.sh"; then
3809        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3810        ac_install_sh="${as_dir}install.sh -c"
3811      elif test -f "${as_dir}shtool"; then
3812        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3813        ac_install_sh="${as_dir}shtool install -c"
3814      else
3815        ac_aux_dir_found=no
3816        if $ac_first_candidate; then
3817          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3818        else
3819          break
3820        fi
3821      fi
3822    else
3823      if test -f "${as_dir}${ac_aux}"; then
3824        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3825      else
3826        ac_aux_dir_found=no
3827        if $ac_first_candidate; then
3828          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3829        else
3830          break
3831        fi
3832      fi
3833    fi
3834  done
3835  if test "$ac_aux_dir_found" = yes; then
3836    ac_aux_dir="$as_dir"
3837    break
3838  fi
3839  ac_first_candidate=false
3840
3841  as_found=false
3842done
3843IFS=$as_save_IFS
3844if $as_found
3845then :
3846
3847else case e in #(
3848  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3849esac
3850fi
3851
3852
3853# These three variables are undocumented and unsupported,
3854# and are intended to be withdrawn in a future Autoconf release.
3855# They can cause serious problems if a builder's source tree is in a directory
3856# whose full name contains unusual characters.
3857if test -f "${ac_aux_dir}config.guess"; then
3858  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3859fi
3860if test -f "${ac_aux_dir}config.sub"; then
3861  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3862fi
3863if test -f "$ac_aux_dir/configure"; then
3864  ac_configure="$SHELL ${ac_aux_dir}configure"
3865fi
3866
3867# Check that the precious variables saved in the cache have kept the same
3868# value.
3869ac_cache_corrupted=false
3870for ac_var in $ac_precious_vars; do
3871  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3872  eval ac_new_set=\$ac_env_${ac_var}_set
3873  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3874  eval ac_new_val=\$ac_env_${ac_var}_value
3875  case $ac_old_set,$ac_new_set in
3876    set,)
3877      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3878printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3879      ac_cache_corrupted=: ;;
3880    ,set)
3881      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3882printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3883      ac_cache_corrupted=: ;;
3884    ,);;
3885    *)
3886      if test "x$ac_old_val" != "x$ac_new_val"; then
3887	# differences in whitespace do not lead to failure.
3888	ac_old_val_w=`echo x $ac_old_val`
3889	ac_new_val_w=`echo x $ac_new_val`
3890	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3891	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3892printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3893	  ac_cache_corrupted=:
3894	else
3895	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3896printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3897	  eval $ac_var=\$ac_old_val
3898	fi
3899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
3900printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
3901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
3902printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
3903      fi;;
3904  esac
3905  # Pass precious variables to config.status.
3906  if test "$ac_new_set" = set; then
3907    case $ac_new_val in
3908    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3909    *) ac_arg=$ac_var=$ac_new_val ;;
3910    esac
3911    case " $ac_configure_args " in
3912      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3913      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3914    esac
3915  fi
3916done
3917if $ac_cache_corrupted; then
3918  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3919printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3921printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3922  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3923	    and start over" "$LINENO" 5
3924fi
3925## -------------------- ##
3926## Main body of script. ##
3927## -------------------- ##
3928
3929ac_ext=c
3930ac_cpp='$CPP $CPPFLAGS'
3931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3933ac_compiler_gnu=$ac_cv_c_compiler_gnu
3934
3935
3936RELEASE_DATE="2025-06-18"
3937RELEASE_NAME="Caramel Ice Cream"
3938
3939
3940am__api_version='1.17'
3941
3942
3943
3944  # Find a good install program.  We prefer a C program (faster),
3945# so one script is as good as another.  But avoid the broken or
3946# incompatible versions:
3947# SysV /etc/install, /usr/sbin/install
3948# SunOS /usr/etc/install
3949# IRIX /sbin/install
3950# AIX /bin/install
3951# AmigaOS /C/install, which installs bootblocks on floppy discs
3952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3955# OS/2's system install, which has a completely different semantic
3956# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files.
3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3959printf %s "checking for a BSD-compatible install... " >&6; }
3960if test -z "$INSTALL"; then
3961if test ${ac_cv_path_install+y}
3962then :
3963  printf %s "(cached) " >&6
3964else case e in #(
3965  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH
3967do
3968  IFS=$as_save_IFS
3969  case $as_dir in #(((
3970    '') as_dir=./ ;;
3971    */) ;;
3972    *) as_dir=$as_dir/ ;;
3973  esac
3974    # Account for fact that we put trailing slashes in our PATH walk.
3975case $as_dir in #((
3976  ./ | /[cC]/* | \
3977  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3978  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3979  /usr/ucb/* ) ;;
3980  *)
3981    # OSF1 and SCO ODT 3.0 have their own names for install.
3982    # Don't use installbsd from OSF since it installs stuff as root
3983    # by default.
3984    for ac_prog in ginstall scoinst install; do
3985      for ac_exec_ext in '' $ac_executable_extensions; do
3986	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3987	  if test $ac_prog = install &&
3988	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3989	    # AIX install.  It has an incompatible calling convention.
3990	    :
3991	  elif test $ac_prog = install &&
3992	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3993	    # program-specific install script used by HP pwplus--don't use.
3994	    :
3995	  else
3996	    rm -rf conftest.one conftest.two conftest.dir
3997	    echo one > conftest.one
3998	    echo two > conftest.two
3999	    mkdir conftest.dir
4000	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4001	      test -s conftest.one && test -s conftest.two &&
4002	      test -s conftest.dir/conftest.one &&
4003	      test -s conftest.dir/conftest.two
4004	    then
4005	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4006	      break 3
4007	    fi
4008	  fi
4009	fi
4010      done
4011    done
4012    ;;
4013esac
4014
4015  done
4016IFS=$as_save_IFS
4017
4018rm -rf conftest.one conftest.two conftest.dir
4019 ;;
4020esac
4021fi
4022  if test ${ac_cv_path_install+y}; then
4023    INSTALL=$ac_cv_path_install
4024  else
4025    # As a last resort, use the slow shell script.  Don't cache a
4026    # value for INSTALL within a source directory, because that will
4027    # break other packages using the cache if that directory is
4028    # removed, or if the value is a relative name.
4029    INSTALL=$ac_install_sh
4030  fi
4031fi
4032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4033printf "%s\n" "$INSTALL" >&6; }
4034
4035# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4036# It thinks the first close brace ends the variable substitution.
4037test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4038
4039test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4040
4041test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4042
4043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4044printf %s "checking whether sleep supports fractional seconds... " >&6; }
4045if test ${am_cv_sleep_fractional_seconds+y}
4046then :
4047  printf %s "(cached) " >&6
4048else case e in #(
4049  e) if sleep 0.001 2>/dev/null
4050then :
4051  am_cv_sleep_fractional_seconds=yes
4052else case e in #(
4053  e) am_cv_sleep_fractional_seconds=no ;;
4054esac
4055fi
4056 ;;
4057esac
4058fi
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4060printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4061
4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4063printf %s "checking filesystem timestamp resolution... " >&6; }
4064if test ${am_cv_filesystem_timestamp_resolution+y}
4065then :
4066  printf %s "(cached) " >&6
4067else case e in #(
4068  e) # Default to the worst case.
4069am_cv_filesystem_timestamp_resolution=2
4070
4071# Only try to go finer than 1 sec if sleep can do it.
4072# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4073# - 1 sec is not much of a win compared to 2 sec, and
4074# - it takes 2 seconds to perform the test whether 1 sec works.
4075#
4076# Instead, just use the default 2s on platforms that have 1s resolution,
4077# accept the extra 1s delay when using $sleep in the Automake tests, in
4078# exchange for not incurring the 2s delay for running the test for all
4079# packages.
4080#
4081am_try_resolutions=
4082if test "$am_cv_sleep_fractional_seconds" = yes; then
4083  # Even a millisecond often causes a bunch of false positives,
4084  # so just try a hundredth of a second. The time saved between .001 and
4085  # .01 is not terribly consequential.
4086  am_try_resolutions="0.01 0.1 $am_try_resolutions"
4087fi
4088
4089# In order to catch current-generation FAT out, we must *modify* files
4090# that already exist; the *creation* timestamp is finer.  Use names
4091# that make ls -t sort them differently when they have equal
4092# timestamps than when they have distinct timestamps, keeping
4093# in mind that ls -t prints the *newest* file first.
4094rm -f conftest.ts?
4095: > conftest.ts1
4096: > conftest.ts2
4097: > conftest.ts3
4098
4099# Make sure ls -t actually works.  Do 'set' in a subshell so we don't
4100# clobber the current shell's arguments. (Outer-level square brackets
4101# are removed by m4; they're present so that m4 does not expand
4102# <dollar><star>; be careful, easy to get confused.)
4103if (
4104     set X `ls -t conftest.ts[12]` &&
4105     {
4106       test "$*" != "X conftest.ts1 conftest.ts2" ||
4107       test "$*" != "X conftest.ts2 conftest.ts1";
4108     }
4109); then :; else
4110  # If neither matched, then we have a broken ls.  This can happen
4111  # if, for instance, CONFIG_SHELL is bash and it inherits a
4112  # broken ls alias from the environment.  This has actually
4113  # happened.  Such a system could not be considered "sane".
4114  printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4115  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4116printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4117as_fn_error $? "ls -t produces unexpected output.
4118Make sure there is not a broken ls alias in your environment.
4119See 'config.log' for more details" "$LINENO" 5; }
4120fi
4121
4122for am_try_res in $am_try_resolutions; do
4123  # Any one fine-grained sleep might happen to cross the boundary
4124  # between two values of a coarser actual resolution, but if we do
4125  # two fine-grained sleeps in a row, at least one of them will fall
4126  # entirely within a coarse interval.
4127  echo alpha > conftest.ts1
4128  sleep $am_try_res
4129  echo beta > conftest.ts2
4130  sleep $am_try_res
4131  echo gamma > conftest.ts3
4132
4133  # We assume that 'ls -t' will make use of high-resolution
4134  # timestamps if the operating system supports them at all.
4135  if (set X `ls -t conftest.ts?` &&
4136      test "$2" = conftest.ts3 &&
4137      test "$3" = conftest.ts2 &&
4138      test "$4" = conftest.ts1); then
4139    #
4140    # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4141    # because we don't need to test make.
4142    make_ok=true
4143    if test $am_try_res != 1; then
4144      # But if we've succeeded so far with a subsecond resolution, we
4145      # have one more thing to check: make. It can happen that
4146      # everything else supports the subsecond mtimes, but make doesn't;
4147      # notably on macOS, which ships make 3.81 from 2006 (the last one
4148      # released under GPLv2). https://bugs.gnu.org/68808
4149      #
4150      # We test $MAKE if it is defined in the environment, else "make".
4151      # It might get overridden later, but our hope is that in practice
4152      # it does not matter: it is the system "make" which is (by far)
4153      # the most likely to be broken, whereas if the user overrides it,
4154      # probably they did so with a better, or at least not worse, make.
4155      # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4156      #
4157      # Create a Makefile (real tab character here):
4158      rm -f conftest.mk
4159      echo 'conftest.ts1: conftest.ts2' >conftest.mk
4160      echo '	touch conftest.ts2' >>conftest.mk
4161      #
4162      # Now, running
4163      #   touch conftest.ts1; touch conftest.ts2; make
4164      # should touch ts1 because ts2 is newer. This could happen by luck,
4165      # but most often, it will fail if make's support is insufficient. So
4166      # test for several consecutive successes.
4167      #
4168      # (We reuse conftest.ts[12] because we still want to modify existing
4169      # files, not create new ones, per above.)
4170      n=0
4171      make=${MAKE-make}
4172      until test $n -eq 3; do
4173        echo one > conftest.ts1
4174        sleep $am_try_res
4175        echo two > conftest.ts2 # ts2 should now be newer than ts1
4176        if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4177          make_ok=false
4178          break # out of $n loop
4179        fi
4180        n=`expr $n + 1`
4181      done
4182    fi
4183    #
4184    if $make_ok; then
4185      # Everything we know to check worked out, so call this resolution good.
4186      am_cv_filesystem_timestamp_resolution=$am_try_res
4187      break # out of $am_try_res loop
4188    fi
4189    # Otherwise, we'll go on to check the next resolution.
4190  fi
4191done
4192rm -f conftest.ts?
4193# (end _am_filesystem_timestamp_resolution)
4194 ;;
4195esac
4196fi
4197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4198printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4199
4200# This check should not be cached, as it may vary across builds of
4201# different projects.
4202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4203printf %s "checking whether build environment is sane... " >&6; }
4204# Reject unsafe characters in $srcdir or the absolute working directory
4205# name.  Accept space and tab only in the latter.
4206am_lf='
4207'
4208case `pwd` in
4209  *[\\\"\#\$\&\'\`$am_lf]*)
4210    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4211esac
4212case $srcdir in
4213  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4214    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4215esac
4216
4217# Do 'set' in a subshell so we don't clobber the current shell's
4218# arguments.  Must try -L first in case configure is actually a
4219# symlink; some systems play weird games with the mod time of symlinks
4220# (eg FreeBSD returns the mod time of the symlink's containing
4221# directory).
4222am_build_env_is_sane=no
4223am_has_slept=no
4224rm -f conftest.file
4225for am_try in 1 2; do
4226  echo "timestamp, slept: $am_has_slept" > conftest.file
4227  if (
4228    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4229    if test "$*" = "X"; then
4230      # -L didn't work.
4231      set X `ls -t "$srcdir/configure" conftest.file`
4232    fi
4233    test "$2" = conftest.file
4234  ); then
4235    am_build_env_is_sane=yes
4236    break
4237  fi
4238  # Just in case.
4239  sleep "$am_cv_filesystem_timestamp_resolution"
4240  am_has_slept=yes
4241done
4242
4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4244printf "%s\n" "$am_build_env_is_sane" >&6; }
4245if test "$am_build_env_is_sane" = no; then
4246  as_fn_error $? "newly created file is older than distributed files!
4247Check your system clock" "$LINENO" 5
4248fi
4249
4250# If we didn't sleep, we still need to ensure time stamps of config.status and
4251# generated files are strictly newer.
4252am_sleep_pid=
4253if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4254then :
4255
4256else case e in #(
4257  e)   ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4258  am_sleep_pid=$!
4259 ;;
4260esac
4261fi
4262
4263rm -f conftest.file
4264
4265test "$program_prefix" != NONE &&
4266  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4267# Use a double $ so make ignores it.
4268test "$program_suffix" != NONE &&
4269  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4270# Double any \ or $.
4271# By default was 's,x,x', remove it if useless.
4272ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4273program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4274
4275
4276# Expand $ac_aux_dir to an absolute path.
4277am_aux_dir=`cd "$ac_aux_dir" && pwd`
4278
4279
4280  if test x"${MISSING+set}" != xset; then
4281  MISSING="\${SHELL} '$am_aux_dir/missing'"
4282fi
4283# Use eval to expand $SHELL
4284if eval "$MISSING --is-lightweight"; then
4285  am_missing_run="$MISSING "
4286else
4287  am_missing_run=
4288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4289printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4290fi
4291
4292if test x"${install_sh+set}" != xset; then
4293  case $am_aux_dir in
4294  *\ * | *\	*)
4295    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4296  *)
4297    install_sh="\${SHELL} $am_aux_dir/install-sh"
4298  esac
4299fi
4300
4301# Installed binaries are usually stripped using 'strip' when the user
4302# run "make install-strip".  However 'strip' might not be the right
4303# tool to use in cross-compilation environments, therefore Automake
4304# will honor the 'STRIP' environment variable to overrule this program.
4305if test "$cross_compiling" != no; then
4306  if test -n "$ac_tool_prefix"; then
4307  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4308set dummy ${ac_tool_prefix}strip; ac_word=$2
4309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310printf %s "checking for $ac_word... " >&6; }
4311if test ${ac_cv_prog_STRIP+y}
4312then :
4313  printf %s "(cached) " >&6
4314else case e in #(
4315  e) if test -n "$STRIP"; then
4316  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4317else
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321  IFS=$as_save_IFS
4322  case $as_dir in #(((
4323    '') as_dir=./ ;;
4324    */) ;;
4325    *) as_dir=$as_dir/ ;;
4326  esac
4327    for ac_exec_ext in '' $ac_executable_extensions; do
4328  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4329    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4330    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4331    break 2
4332  fi
4333done
4334  done
4335IFS=$as_save_IFS
4336
4337fi ;;
4338esac
4339fi
4340STRIP=$ac_cv_prog_STRIP
4341if test -n "$STRIP"; then
4342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4343printf "%s\n" "$STRIP" >&6; }
4344else
4345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346printf "%s\n" "no" >&6; }
4347fi
4348
4349
4350fi
4351if test -z "$ac_cv_prog_STRIP"; then
4352  ac_ct_STRIP=$STRIP
4353  # Extract the first word of "strip", so it can be a program name with args.
4354set dummy strip; ac_word=$2
4355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356printf %s "checking for $ac_word... " >&6; }
4357if test ${ac_cv_prog_ac_ct_STRIP+y}
4358then :
4359  printf %s "(cached) " >&6
4360else case e in #(
4361  e) if test -n "$ac_ct_STRIP"; then
4362  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367  IFS=$as_save_IFS
4368  case $as_dir in #(((
4369    '') as_dir=./ ;;
4370    */) ;;
4371    *) as_dir=$as_dir/ ;;
4372  esac
4373    for ac_exec_ext in '' $ac_executable_extensions; do
4374  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4375    ac_cv_prog_ac_ct_STRIP="strip"
4376    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4377    break 2
4378  fi
4379done
4380  done
4381IFS=$as_save_IFS
4382
4383fi ;;
4384esac
4385fi
4386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4387if test -n "$ac_ct_STRIP"; then
4388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4389printf "%s\n" "$ac_ct_STRIP" >&6; }
4390else
4391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392printf "%s\n" "no" >&6; }
4393fi
4394
4395  if test "x$ac_ct_STRIP" = x; then
4396    STRIP=":"
4397  else
4398    case $cross_compiling:$ac_tool_warned in
4399yes:)
4400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402ac_tool_warned=yes ;;
4403esac
4404    STRIP=$ac_ct_STRIP
4405  fi
4406else
4407  STRIP="$ac_cv_prog_STRIP"
4408fi
4409
4410fi
4411INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4412
4413
4414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4415printf %s "checking for a race-free mkdir -p... " >&6; }
4416if test -z "$MKDIR_P"; then
4417  if test ${ac_cv_path_mkdir+y}
4418then :
4419  printf %s "(cached) " >&6
4420else case e in #(
4421  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4423do
4424  IFS=$as_save_IFS
4425  case $as_dir in #(((
4426    '') as_dir=./ ;;
4427    */) ;;
4428    *) as_dir=$as_dir/ ;;
4429  esac
4430    for ac_prog in mkdir gmkdir; do
4431	 for ac_exec_ext in '' $ac_executable_extensions; do
4432	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4433	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4434	     'mkdir ('*'coreutils) '* | \
4435	     *'BusyBox '* | \
4436	     'mkdir (fileutils) '4.1*)
4437	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4438	       break 3;;
4439	   esac
4440	 done
4441       done
4442  done
4443IFS=$as_save_IFS
4444 ;;
4445esac
4446fi
4447
4448  test -d ./--version && rmdir ./--version
4449  if test ${ac_cv_path_mkdir+y}; then
4450    MKDIR_P="$ac_cv_path_mkdir -p"
4451  else
4452    # As a last resort, use plain mkdir -p,
4453    # in the hope it doesn't have the bugs of ancient mkdir.
4454    MKDIR_P='mkdir -p'
4455  fi
4456fi
4457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4458printf "%s\n" "$MKDIR_P" >&6; }
4459
4460for ac_prog in gawk mawk nawk awk
4461do
4462  # Extract the first word of "$ac_prog", so it can be a program name with args.
4463set dummy $ac_prog; ac_word=$2
4464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465printf %s "checking for $ac_word... " >&6; }
4466if test ${ac_cv_prog_AWK+y}
4467then :
4468  printf %s "(cached) " >&6
4469else case e in #(
4470  e) if test -n "$AWK"; then
4471  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476  IFS=$as_save_IFS
4477  case $as_dir in #(((
4478    '') as_dir=./ ;;
4479    */) ;;
4480    *) as_dir=$as_dir/ ;;
4481  esac
4482    for ac_exec_ext in '' $ac_executable_extensions; do
4483  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4484    ac_cv_prog_AWK="$ac_prog"
4485    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4486    break 2
4487  fi
4488done
4489  done
4490IFS=$as_save_IFS
4491
4492fi ;;
4493esac
4494fi
4495AWK=$ac_cv_prog_AWK
4496if test -n "$AWK"; then
4497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4498printf "%s\n" "$AWK" >&6; }
4499else
4500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501printf "%s\n" "no" >&6; }
4502fi
4503
4504
4505  test -n "$AWK" && break
4506done
4507
4508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4509printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4510set x ${MAKE-make}
4511ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4512if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4513then :
4514  printf %s "(cached) " >&6
4515else case e in #(
4516  e) cat >conftest.make <<\_ACEOF
4517SHELL = /bin/sh
4518all:
4519	@echo '@@@%%%=$(MAKE)=@@@%%%'
4520_ACEOF
4521# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4522case `${MAKE-make} -f conftest.make 2>/dev/null` in
4523  *@@@%%%=?*=@@@%%%*)
4524    eval ac_cv_prog_make_${ac_make}_set=yes;;
4525  *)
4526    eval ac_cv_prog_make_${ac_make}_set=no;;
4527esac
4528rm -f conftest.make ;;
4529esac
4530fi
4531if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4532  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4533printf "%s\n" "yes" >&6; }
4534  SET_MAKE=
4535else
4536  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537printf "%s\n" "no" >&6; }
4538  SET_MAKE="MAKE=${MAKE-make}"
4539fi
4540
4541rm -rf .tst 2>/dev/null
4542mkdir .tst 2>/dev/null
4543if test -d .tst; then
4544  am__leading_dot=.
4545else
4546  am__leading_dot=_
4547fi
4548rmdir .tst 2>/dev/null
4549
4550AM_DEFAULT_VERBOSITY=1
4551# Check whether --enable-silent-rules was given.
4552if test ${enable_silent_rules+y}
4553then :
4554  enableval=$enable_silent_rules;
4555fi
4556
4557am_make=${MAKE-make}
4558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4559printf %s "checking whether $am_make supports nested variables... " >&6; }
4560if test ${am_cv_make_support_nested_variables+y}
4561then :
4562  printf %s "(cached) " >&6
4563else case e in #(
4564  e) if printf "%s\n" 'TRUE=$(BAR$(V))
4565BAR0=false
4566BAR1=true
4567V=1
4568am__doit:
4569	@$(TRUE)
4570.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4571  am_cv_make_support_nested_variables=yes
4572else
4573  am_cv_make_support_nested_variables=no
4574fi ;;
4575esac
4576fi
4577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4578printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4579AM_BACKSLASH='\'
4580
4581am__rm_f_notfound=
4582if (rm -f && rm -fr && rm -rf) 2>/dev/null
4583then :
4584
4585else case e in #(
4586  e) am__rm_f_notfound='""' ;;
4587esac
4588fi
4589
4590
4591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4592printf %s "checking xargs -n works... " >&6; }
4593if test ${am_cv_xargs_n_works+y}
4594then :
4595  printf %s "(cached) " >&6
4596else case e in #(
4597  e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
45983"
4599then :
4600  am_cv_xargs_n_works=yes
4601else case e in #(
4602  e) am_cv_xargs_n_works=no ;;
4603esac
4604fi ;;
4605esac
4606fi
4607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4608printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4609if test "$am_cv_xargs_n_works" = yes
4610then :
4611  am__xargs_n='xargs -n'
4612else case e in #(
4613  e)   am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4614 ;;
4615esac
4616fi
4617
4618if test "`cd $srcdir && pwd`" != "`pwd`"; then
4619  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4620  # is not polluted with repeated "-I."
4621  am__isrc=' -I$(srcdir)'
4622  # test to see if srcdir already configured
4623  if test -f $srcdir/config.status; then
4624    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4625  fi
4626fi
4627
4628# test whether we have cygpath
4629if test -z "$CYGPATH_W"; then
4630  if (cygpath --version) >/dev/null 2>/dev/null; then
4631    CYGPATH_W='cygpath -w'
4632  else
4633    CYGPATH_W=echo
4634  fi
4635fi
4636
4637
4638# Define the identity of the package.
4639 PACKAGE='xorg-server'
4640 VERSION='21.1.18'
4641
4642
4643printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4644
4645
4646printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4647
4648# Some tools Automake needs.
4649
4650ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4651
4652
4653AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4654
4655
4656AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4657
4658
4659AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4660
4661
4662MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4663
4664# For better backward compatibility.  To be removed once Automake 1.9.x
4665# dies out for good.  For more background, see:
4666# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4667# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4668mkdir_p='$(MKDIR_P)'
4669
4670# We need awk for the "check" target (and possibly the TAP driver).  The
4671# system "awk" is bad on some platforms.
4672# Always define AMTAR for backward compatibility.  Yes, it's still used
4673# in the wild :-(  We should find a proper way to deprecate it ...
4674AMTAR='$${TAR-tar}'
4675
4676
4677# We'll loop over all known methods to create a tar archive until one works.
4678_am_tools='gnutar  pax cpio none'
4679
4680am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4681
4682
4683
4684
4685
4686# Variables for tags utilities; see am/tags.am
4687if test -z "$CTAGS"; then
4688  CTAGS=ctags
4689fi
4690
4691if test -z "$ETAGS"; then
4692  ETAGS=etags
4693fi
4694
4695if test -z "$CSCOPE"; then
4696  CSCOPE=cscope
4697fi
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714DEPDIR="${am__leading_dot}deps"
4715
4716ac_config_commands="$ac_config_commands depfiles"
4717
4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4719printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4720cat > confinc.mk << 'END'
4721am__doit:
4722	@echo this is the am__doit target >confinc.out
4723.PHONY: am__doit
4724END
4725am__include="#"
4726am__quote=
4727# BSD make does it like this.
4728echo '.include "confinc.mk" # ignored' > confmf.BSD
4729# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4730echo 'include confinc.mk # ignored' > confmf.GNU
4731_am_result=no
4732for s in GNU BSD; do
4733  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4734   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4735   ac_status=$?
4736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737   (exit $ac_status); }
4738  case $?:`cat confinc.out 2>/dev/null` in #(
4739  '0:this is the am__doit target') :
4740    case $s in #(
4741  BSD) :
4742    am__include='.include' am__quote='"' ;; #(
4743  *) :
4744    am__include='include' am__quote='' ;;
4745esac ;; #(
4746  *) :
4747     ;;
4748esac
4749  if test "$am__include" != "#"; then
4750    _am_result="yes ($s style)"
4751    break
4752  fi
4753done
4754rm -f confinc.* confmf.*
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4756printf "%s\n" "${_am_result}" >&6; }
4757
4758# Check whether --enable-dependency-tracking was given.
4759if test ${enable_dependency_tracking+y}
4760then :
4761  enableval=$enable_dependency_tracking;
4762fi
4763
4764if test "x$enable_dependency_tracking" != xno; then
4765  am_depcomp="$ac_aux_dir/depcomp"
4766  AMDEPBACKSLASH='\'
4767  am__nodep='_no'
4768fi
4769 if test "x$enable_dependency_tracking" != xno; then
4770  AMDEP_TRUE=
4771  AMDEP_FALSE='#'
4772else
4773  AMDEP_TRUE='#'
4774  AMDEP_FALSE=
4775fi
4776
4777
4778ac_ext=c
4779ac_cpp='$CPP $CPPFLAGS'
4780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783if test -n "$ac_tool_prefix"; then
4784  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4785set dummy ${ac_tool_prefix}gcc; ac_word=$2
4786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787printf %s "checking for $ac_word... " >&6; }
4788if test ${ac_cv_prog_CC+y}
4789then :
4790  printf %s "(cached) " >&6
4791else case e in #(
4792  e) if test -n "$CC"; then
4793  ac_cv_prog_CC="$CC" # Let the user override the test.
4794else
4795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796for as_dir in $PATH
4797do
4798  IFS=$as_save_IFS
4799  case $as_dir in #(((
4800    '') as_dir=./ ;;
4801    */) ;;
4802    *) as_dir=$as_dir/ ;;
4803  esac
4804    for ac_exec_ext in '' $ac_executable_extensions; do
4805  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4806    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4807    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4808    break 2
4809  fi
4810done
4811  done
4812IFS=$as_save_IFS
4813
4814fi ;;
4815esac
4816fi
4817CC=$ac_cv_prog_CC
4818if test -n "$CC"; then
4819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4820printf "%s\n" "$CC" >&6; }
4821else
4822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823printf "%s\n" "no" >&6; }
4824fi
4825
4826
4827fi
4828if test -z "$ac_cv_prog_CC"; then
4829  ac_ct_CC=$CC
4830  # Extract the first word of "gcc", so it can be a program name with args.
4831set dummy gcc; ac_word=$2
4832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833printf %s "checking for $ac_word... " >&6; }
4834if test ${ac_cv_prog_ac_ct_CC+y}
4835then :
4836  printf %s "(cached) " >&6
4837else case e in #(
4838  e) if test -n "$ac_ct_CC"; then
4839  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4840else
4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842for as_dir in $PATH
4843do
4844  IFS=$as_save_IFS
4845  case $as_dir in #(((
4846    '') as_dir=./ ;;
4847    */) ;;
4848    *) as_dir=$as_dir/ ;;
4849  esac
4850    for ac_exec_ext in '' $ac_executable_extensions; do
4851  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4852    ac_cv_prog_ac_ct_CC="gcc"
4853    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856done
4857  done
4858IFS=$as_save_IFS
4859
4860fi ;;
4861esac
4862fi
4863ac_ct_CC=$ac_cv_prog_ac_ct_CC
4864if test -n "$ac_ct_CC"; then
4865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4866printf "%s\n" "$ac_ct_CC" >&6; }
4867else
4868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4869printf "%s\n" "no" >&6; }
4870fi
4871
4872  if test "x$ac_ct_CC" = x; then
4873    CC=""
4874  else
4875    case $cross_compiling:$ac_tool_warned in
4876yes:)
4877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4878printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4879ac_tool_warned=yes ;;
4880esac
4881    CC=$ac_ct_CC
4882  fi
4883else
4884  CC="$ac_cv_prog_CC"
4885fi
4886
4887if test -z "$CC"; then
4888          if test -n "$ac_tool_prefix"; then
4889    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4890set dummy ${ac_tool_prefix}cc; ac_word=$2
4891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892printf %s "checking for $ac_word... " >&6; }
4893if test ${ac_cv_prog_CC+y}
4894then :
4895  printf %s "(cached) " >&6
4896else case e in #(
4897  e) if test -n "$CC"; then
4898  ac_cv_prog_CC="$CC" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903  IFS=$as_save_IFS
4904  case $as_dir in #(((
4905    '') as_dir=./ ;;
4906    */) ;;
4907    *) as_dir=$as_dir/ ;;
4908  esac
4909    for ac_exec_ext in '' $ac_executable_extensions; do
4910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4911    ac_cv_prog_CC="${ac_tool_prefix}cc"
4912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4913    break 2
4914  fi
4915done
4916  done
4917IFS=$as_save_IFS
4918
4919fi ;;
4920esac
4921fi
4922CC=$ac_cv_prog_CC
4923if test -n "$CC"; then
4924  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4925printf "%s\n" "$CC" >&6; }
4926else
4927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928printf "%s\n" "no" >&6; }
4929fi
4930
4931
4932  fi
4933fi
4934if test -z "$CC"; then
4935  # Extract the first word of "cc", so it can be a program name with args.
4936set dummy cc; ac_word=$2
4937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938printf %s "checking for $ac_word... " >&6; }
4939if test ${ac_cv_prog_CC+y}
4940then :
4941  printf %s "(cached) " >&6
4942else case e in #(
4943  e) if test -n "$CC"; then
4944  ac_cv_prog_CC="$CC" # Let the user override the test.
4945else
4946  ac_prog_rejected=no
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950  IFS=$as_save_IFS
4951  case $as_dir in #(((
4952    '') as_dir=./ ;;
4953    */) ;;
4954    *) as_dir=$as_dir/ ;;
4955  esac
4956    for ac_exec_ext in '' $ac_executable_extensions; do
4957  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4958    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4959       ac_prog_rejected=yes
4960       continue
4961     fi
4962    ac_cv_prog_CC="cc"
4963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4964    break 2
4965  fi
4966done
4967  done
4968IFS=$as_save_IFS
4969
4970if test $ac_prog_rejected = yes; then
4971  # We found a bogon in the path, so make sure we never use it.
4972  set dummy $ac_cv_prog_CC
4973  shift
4974  if test $# != 0; then
4975    # We chose a different compiler from the bogus one.
4976    # However, it has the same basename, so the bogon will be chosen
4977    # first if we set CC to just the basename; use the full file name.
4978    shift
4979    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4980  fi
4981fi
4982fi ;;
4983esac
4984fi
4985CC=$ac_cv_prog_CC
4986if test -n "$CC"; then
4987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4988printf "%s\n" "$CC" >&6; }
4989else
4990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991printf "%s\n" "no" >&6; }
4992fi
4993
4994
4995fi
4996if test -z "$CC"; then
4997  if test -n "$ac_tool_prefix"; then
4998  for ac_prog in cl.exe
4999  do
5000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003printf %s "checking for $ac_word... " >&6; }
5004if test ${ac_cv_prog_CC+y}
5005then :
5006  printf %s "(cached) " >&6
5007else case e in #(
5008  e) if test -n "$CC"; then
5009  ac_cv_prog_CC="$CC" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014  IFS=$as_save_IFS
5015  case $as_dir in #(((
5016    '') as_dir=./ ;;
5017    */) ;;
5018    *) as_dir=$as_dir/ ;;
5019  esac
5020    for ac_exec_ext in '' $ac_executable_extensions; do
5021  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5022    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5023    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5024    break 2
5025  fi
5026done
5027  done
5028IFS=$as_save_IFS
5029
5030fi ;;
5031esac
5032fi
5033CC=$ac_cv_prog_CC
5034if test -n "$CC"; then
5035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5036printf "%s\n" "$CC" >&6; }
5037else
5038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039printf "%s\n" "no" >&6; }
5040fi
5041
5042
5043    test -n "$CC" && break
5044  done
5045fi
5046if test -z "$CC"; then
5047  ac_ct_CC=$CC
5048  for ac_prog in cl.exe
5049do
5050  # Extract the first word of "$ac_prog", so it can be a program name with args.
5051set dummy $ac_prog; ac_word=$2
5052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053printf %s "checking for $ac_word... " >&6; }
5054if test ${ac_cv_prog_ac_ct_CC+y}
5055then :
5056  printf %s "(cached) " >&6
5057else case e in #(
5058  e) if test -n "$ac_ct_CC"; then
5059  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5060else
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  case $as_dir in #(((
5066    '') as_dir=./ ;;
5067    */) ;;
5068    *) as_dir=$as_dir/ ;;
5069  esac
5070    for ac_exec_ext in '' $ac_executable_extensions; do
5071  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5072    ac_cv_prog_ac_ct_CC="$ac_prog"
5073    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5074    break 2
5075  fi
5076done
5077  done
5078IFS=$as_save_IFS
5079
5080fi ;;
5081esac
5082fi
5083ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084if test -n "$ac_ct_CC"; then
5085  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5086printf "%s\n" "$ac_ct_CC" >&6; }
5087else
5088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089printf "%s\n" "no" >&6; }
5090fi
5091
5092
5093  test -n "$ac_ct_CC" && break
5094done
5095
5096  if test "x$ac_ct_CC" = x; then
5097    CC=""
5098  else
5099    case $cross_compiling:$ac_tool_warned in
5100yes:)
5101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105    CC=$ac_ct_CC
5106  fi
5107fi
5108
5109fi
5110if test -z "$CC"; then
5111  if test -n "$ac_tool_prefix"; then
5112  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5113set dummy ${ac_tool_prefix}clang; ac_word=$2
5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115printf %s "checking for $ac_word... " >&6; }
5116if test ${ac_cv_prog_CC+y}
5117then :
5118  printf %s "(cached) " >&6
5119else case e in #(
5120  e) if test -n "$CC"; then
5121  ac_cv_prog_CC="$CC" # Let the user override the test.
5122else
5123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124for as_dir in $PATH
5125do
5126  IFS=$as_save_IFS
5127  case $as_dir in #(((
5128    '') as_dir=./ ;;
5129    */) ;;
5130    *) as_dir=$as_dir/ ;;
5131  esac
5132    for ac_exec_ext in '' $ac_executable_extensions; do
5133  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5134    ac_cv_prog_CC="${ac_tool_prefix}clang"
5135    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5136    break 2
5137  fi
5138done
5139  done
5140IFS=$as_save_IFS
5141
5142fi ;;
5143esac
5144fi
5145CC=$ac_cv_prog_CC
5146if test -n "$CC"; then
5147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5148printf "%s\n" "$CC" >&6; }
5149else
5150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151printf "%s\n" "no" >&6; }
5152fi
5153
5154
5155fi
5156if test -z "$ac_cv_prog_CC"; then
5157  ac_ct_CC=$CC
5158  # Extract the first word of "clang", so it can be a program name with args.
5159set dummy clang; ac_word=$2
5160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161printf %s "checking for $ac_word... " >&6; }
5162if test ${ac_cv_prog_ac_ct_CC+y}
5163then :
5164  printf %s "(cached) " >&6
5165else case e in #(
5166  e) if test -n "$ac_ct_CC"; then
5167  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172  IFS=$as_save_IFS
5173  case $as_dir in #(((
5174    '') as_dir=./ ;;
5175    */) ;;
5176    *) as_dir=$as_dir/ ;;
5177  esac
5178    for ac_exec_ext in '' $ac_executable_extensions; do
5179  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5180    ac_cv_prog_ac_ct_CC="clang"
5181    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5182    break 2
5183  fi
5184done
5185  done
5186IFS=$as_save_IFS
5187
5188fi ;;
5189esac
5190fi
5191ac_ct_CC=$ac_cv_prog_ac_ct_CC
5192if test -n "$ac_ct_CC"; then
5193  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5194printf "%s\n" "$ac_ct_CC" >&6; }
5195else
5196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197printf "%s\n" "no" >&6; }
5198fi
5199
5200  if test "x$ac_ct_CC" = x; then
5201    CC=""
5202  else
5203    case $cross_compiling:$ac_tool_warned in
5204yes:)
5205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207ac_tool_warned=yes ;;
5208esac
5209    CC=$ac_ct_CC
5210  fi
5211else
5212  CC="$ac_cv_prog_CC"
5213fi
5214
5215fi
5216
5217
5218test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5219printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5220as_fn_error $? "no acceptable C compiler found in \$PATH
5221See 'config.log' for more details" "$LINENO" 5; }
5222
5223# Provide some information about the compiler.
5224printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5225set X $ac_compile
5226ac_compiler=$2
5227for ac_option in --version -v -V -qversion -version; do
5228  { { ac_try="$ac_compiler $ac_option >&5"
5229case "(($ac_try" in
5230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231  *) ac_try_echo=$ac_try;;
5232esac
5233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234printf "%s\n" "$ac_try_echo"; } >&5
5235  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5236  ac_status=$?
5237  if test -s conftest.err; then
5238    sed '10a\
5239... rest of stderr output deleted ...
5240         10q' conftest.err >conftest.er1
5241    cat conftest.er1 >&5
5242  fi
5243  rm -f conftest.er1 conftest.err
5244  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5245  test $ac_status = 0; }
5246done
5247
5248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250
5251int
5252main (void)
5253{
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259ac_clean_files_save=$ac_clean_files
5260ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5261# Try to create an executable without -o first, disregard a.out.
5262# It will help us diagnose broken compilers, and finding out an intuition
5263# of exeext.
5264{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5265printf %s "checking whether the C compiler works... " >&6; }
5266ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5267
5268# The possible output files:
5269ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5270
5271ac_rmfiles=
5272for ac_file in $ac_files
5273do
5274  case $ac_file in
5275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5276    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5277  esac
5278done
5279rm -f $ac_rmfiles
5280
5281if { { ac_try="$ac_link_default"
5282case "(($ac_try" in
5283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284  *) ac_try_echo=$ac_try;;
5285esac
5286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5287printf "%s\n" "$ac_try_echo"; } >&5
5288  (eval "$ac_link_default") 2>&5
5289  ac_status=$?
5290  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5291  test $ac_status = 0; }
5292then :
5293  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5294# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5295# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5296# so that the user can short-circuit this test for compilers unknown to
5297# Autoconf.
5298for ac_file in $ac_files ''
5299do
5300  test -f "$ac_file" || continue
5301  case $ac_file in
5302    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5303	;;
5304    [ab].out )
5305	# We found the default executable, but exeext='' is most
5306	# certainly right.
5307	break;;
5308    *.* )
5309	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5310	then :; else
5311	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5312	fi
5313	# We set ac_cv_exeext here because the later test for it is not
5314	# safe: cross compilers may not add the suffix if given an '-o'
5315	# argument, so we may need to know it at that point already.
5316	# Even if this section looks crufty: it has the advantage of
5317	# actually working.
5318	break;;
5319    * )
5320	break;;
5321  esac
5322done
5323test "$ac_cv_exeext" = no && ac_cv_exeext=
5324
5325else case e in #(
5326  e) ac_file='' ;;
5327esac
5328fi
5329if test -z "$ac_file"
5330then :
5331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332printf "%s\n" "no" >&6; }
5333printf "%s\n" "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5337printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5338as_fn_error 77 "C compiler cannot create executables
5339See 'config.log' for more details" "$LINENO" 5; }
5340else case e in #(
5341  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342printf "%s\n" "yes" >&6; } ;;
5343esac
5344fi
5345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5346printf %s "checking for C compiler default output file name... " >&6; }
5347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5348printf "%s\n" "$ac_file" >&6; }
5349ac_exeext=$ac_cv_exeext
5350
5351rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5352ac_clean_files=$ac_clean_files_save
5353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5354printf %s "checking for suffix of executables... " >&6; }
5355if { { ac_try="$ac_link"
5356case "(($ac_try" in
5357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358  *) ac_try_echo=$ac_try;;
5359esac
5360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5361printf "%s\n" "$ac_try_echo"; } >&5
5362  (eval "$ac_link") 2>&5
5363  ac_status=$?
5364  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5365  test $ac_status = 0; }
5366then :
5367  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5368# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
5369# work properly (i.e., refer to 'conftest.exe'), while it won't with
5370# 'rm'.
5371for ac_file in conftest.exe conftest conftest.*; do
5372  test -f "$ac_file" || continue
5373  case $ac_file in
5374    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5375    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5376	  break;;
5377    * ) break;;
5378  esac
5379done
5380else case e in #(
5381  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5382printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5383as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5384See 'config.log' for more details" "$LINENO" 5; } ;;
5385esac
5386fi
5387rm -f conftest conftest$ac_cv_exeext
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5389printf "%s\n" "$ac_cv_exeext" >&6; }
5390
5391rm -f conftest.$ac_ext
5392EXEEXT=$ac_cv_exeext
5393ac_exeext=$EXEEXT
5394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h.  */
5396#include <stdio.h>
5397int
5398main (void)
5399{
5400FILE *f = fopen ("conftest.out", "w");
5401 if (!f)
5402  return 1;
5403 return ferror (f) || fclose (f) != 0;
5404
5405  ;
5406  return 0;
5407}
5408_ACEOF
5409ac_clean_files="$ac_clean_files conftest.out"
5410# Check that the compiler produces executables we can run.  If not, either
5411# the compiler is broken, or we cross compile.
5412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5413printf %s "checking whether we are cross compiling... " >&6; }
5414if test "$cross_compiling" != yes; then
5415  { { ac_try="$ac_link"
5416case "(($ac_try" in
5417  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418  *) ac_try_echo=$ac_try;;
5419esac
5420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5421printf "%s\n" "$ac_try_echo"; } >&5
5422  (eval "$ac_link") 2>&5
5423  ac_status=$?
5424  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5425  test $ac_status = 0; }
5426  if { ac_try='./conftest$ac_cv_exeext'
5427  { { case "(($ac_try" in
5428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429  *) ac_try_echo=$ac_try;;
5430esac
5431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5432printf "%s\n" "$ac_try_echo"; } >&5
5433  (eval "$ac_try") 2>&5
5434  ac_status=$?
5435  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436  test $ac_status = 0; }; }; then
5437    cross_compiling=no
5438  else
5439    if test "$cross_compiling" = maybe; then
5440	cross_compiling=yes
5441    else
5442	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5443printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5444as_fn_error 77 "cannot run C compiled programs.
5445If you meant to cross compile, use '--host'.
5446See 'config.log' for more details" "$LINENO" 5; }
5447    fi
5448  fi
5449fi
5450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5451printf "%s\n" "$cross_compiling" >&6; }
5452
5453rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5454  conftest.o conftest.obj conftest.out
5455ac_clean_files=$ac_clean_files_save
5456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5457printf %s "checking for suffix of object files... " >&6; }
5458if test ${ac_cv_objext+y}
5459then :
5460  printf %s "(cached) " >&6
5461else case e in #(
5462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464
5465int
5466main (void)
5467{
5468
5469  ;
5470  return 0;
5471}
5472_ACEOF
5473rm -f conftest.o conftest.obj
5474if { { ac_try="$ac_compile"
5475case "(($ac_try" in
5476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477  *) ac_try_echo=$ac_try;;
5478esac
5479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5480printf "%s\n" "$ac_try_echo"; } >&5
5481  (eval "$ac_compile") 2>&5
5482  ac_status=$?
5483  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5484  test $ac_status = 0; }
5485then :
5486  for ac_file in conftest.o conftest.obj conftest.*; do
5487  test -f "$ac_file" || continue;
5488  case $ac_file in
5489    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5490    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5491       break;;
5492  esac
5493done
5494else case e in #(
5495  e) printf "%s\n" "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
5497
5498{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5499printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5500as_fn_error $? "cannot compute suffix of object files: cannot compile
5501See 'config.log' for more details" "$LINENO" 5; } ;;
5502esac
5503fi
5504rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5505esac
5506fi
5507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5508printf "%s\n" "$ac_cv_objext" >&6; }
5509OBJEXT=$ac_cv_objext
5510ac_objext=$OBJEXT
5511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5512printf %s "checking whether the compiler supports GNU C... " >&6; }
5513if test ${ac_cv_c_compiler_gnu+y}
5514then :
5515  printf %s "(cached) " >&6
5516else case e in #(
5517  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h.  */
5519
5520int
5521main (void)
5522{
5523#ifndef __GNUC__
5524       choke me
5525#endif
5526
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531if ac_fn_c_try_compile "$LINENO"
5532then :
5533  ac_compiler_gnu=yes
5534else case e in #(
5535  e) ac_compiler_gnu=no ;;
5536esac
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5539ac_cv_c_compiler_gnu=$ac_compiler_gnu
5540 ;;
5541esac
5542fi
5543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5544printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5545ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546
5547if test $ac_compiler_gnu = yes; then
5548  GCC=yes
5549else
5550  GCC=
5551fi
5552ac_test_CFLAGS=${CFLAGS+y}
5553ac_save_CFLAGS=$CFLAGS
5554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5555printf %s "checking whether $CC accepts -g... " >&6; }
5556if test ${ac_cv_prog_cc_g+y}
5557then :
5558  printf %s "(cached) " >&6
5559else case e in #(
5560  e) ac_save_c_werror_flag=$ac_c_werror_flag
5561   ac_c_werror_flag=yes
5562   ac_cv_prog_cc_g=no
5563   CFLAGS="-g"
5564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565/* end confdefs.h.  */
5566
5567int
5568main (void)
5569{
5570
5571  ;
5572  return 0;
5573}
5574_ACEOF
5575if ac_fn_c_try_compile "$LINENO"
5576then :
5577  ac_cv_prog_cc_g=yes
5578else case e in #(
5579  e) CFLAGS=""
5580      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h.  */
5582
5583int
5584main (void)
5585{
5586
5587  ;
5588  return 0;
5589}
5590_ACEOF
5591if ac_fn_c_try_compile "$LINENO"
5592then :
5593
5594else case e in #(
5595  e) ac_c_werror_flag=$ac_save_c_werror_flag
5596	 CFLAGS="-g"
5597	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h.  */
5599
5600int
5601main (void)
5602{
5603
5604  ;
5605  return 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"
5609then :
5610  ac_cv_prog_cc_g=yes
5611fi
5612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5613esac
5614fi
5615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5616esac
5617fi
5618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5619   ac_c_werror_flag=$ac_save_c_werror_flag ;;
5620esac
5621fi
5622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5623printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5624if test $ac_test_CFLAGS; then
5625  CFLAGS=$ac_save_CFLAGS
5626elif test $ac_cv_prog_cc_g = yes; then
5627  if test "$GCC" = yes; then
5628    CFLAGS="-g -O2"
5629  else
5630    CFLAGS="-g"
5631  fi
5632else
5633  if test "$GCC" = yes; then
5634    CFLAGS="-O2"
5635  else
5636    CFLAGS=
5637  fi
5638fi
5639ac_prog_cc_stdc=no
5640if test x$ac_prog_cc_stdc = xno
5641then :
5642  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5643printf %s "checking for $CC option to enable C11 features... " >&6; }
5644if test ${ac_cv_prog_cc_c11+y}
5645then :
5646  printf %s "(cached) " >&6
5647else case e in #(
5648  e) ac_cv_prog_cc_c11=no
5649ac_save_CC=$CC
5650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652$ac_c_conftest_c11_program
5653_ACEOF
5654for ac_arg in '' -std=gnu11
5655do
5656  CC="$ac_save_CC $ac_arg"
5657  if ac_fn_c_try_compile "$LINENO"
5658then :
5659  ac_cv_prog_cc_c11=$ac_arg
5660fi
5661rm -f core conftest.err conftest.$ac_objext conftest.beam
5662  test "x$ac_cv_prog_cc_c11" != "xno" && break
5663done
5664rm -f conftest.$ac_ext
5665CC=$ac_save_CC ;;
5666esac
5667fi
5668
5669if test "x$ac_cv_prog_cc_c11" = xno
5670then :
5671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5672printf "%s\n" "unsupported" >&6; }
5673else case e in #(
5674  e) if test "x$ac_cv_prog_cc_c11" = x
5675then :
5676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5677printf "%s\n" "none needed" >&6; }
5678else case e in #(
5679  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5680printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5681     CC="$CC $ac_cv_prog_cc_c11" ;;
5682esac
5683fi
5684  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5685  ac_prog_cc_stdc=c11 ;;
5686esac
5687fi
5688fi
5689if test x$ac_prog_cc_stdc = xno
5690then :
5691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5692printf %s "checking for $CC option to enable C99 features... " >&6; }
5693if test ${ac_cv_prog_cc_c99+y}
5694then :
5695  printf %s "(cached) " >&6
5696else case e in #(
5697  e) ac_cv_prog_cc_c99=no
5698ac_save_CC=$CC
5699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700/* end confdefs.h.  */
5701$ac_c_conftest_c99_program
5702_ACEOF
5703for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5704do
5705  CC="$ac_save_CC $ac_arg"
5706  if ac_fn_c_try_compile "$LINENO"
5707then :
5708  ac_cv_prog_cc_c99=$ac_arg
5709fi
5710rm -f core conftest.err conftest.$ac_objext conftest.beam
5711  test "x$ac_cv_prog_cc_c99" != "xno" && break
5712done
5713rm -f conftest.$ac_ext
5714CC=$ac_save_CC ;;
5715esac
5716fi
5717
5718if test "x$ac_cv_prog_cc_c99" = xno
5719then :
5720  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5721printf "%s\n" "unsupported" >&6; }
5722else case e in #(
5723  e) if test "x$ac_cv_prog_cc_c99" = x
5724then :
5725  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5726printf "%s\n" "none needed" >&6; }
5727else case e in #(
5728  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5729printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5730     CC="$CC $ac_cv_prog_cc_c99" ;;
5731esac
5732fi
5733  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5734  ac_prog_cc_stdc=c99 ;;
5735esac
5736fi
5737fi
5738if test x$ac_prog_cc_stdc = xno
5739then :
5740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5741printf %s "checking for $CC option to enable C89 features... " >&6; }
5742if test ${ac_cv_prog_cc_c89+y}
5743then :
5744  printf %s "(cached) " >&6
5745else case e in #(
5746  e) ac_cv_prog_cc_c89=no
5747ac_save_CC=$CC
5748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750$ac_c_conftest_c89_program
5751_ACEOF
5752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5753do
5754  CC="$ac_save_CC $ac_arg"
5755  if ac_fn_c_try_compile "$LINENO"
5756then :
5757  ac_cv_prog_cc_c89=$ac_arg
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.beam
5760  test "x$ac_cv_prog_cc_c89" != "xno" && break
5761done
5762rm -f conftest.$ac_ext
5763CC=$ac_save_CC ;;
5764esac
5765fi
5766
5767if test "x$ac_cv_prog_cc_c89" = xno
5768then :
5769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5770printf "%s\n" "unsupported" >&6; }
5771else case e in #(
5772  e) if test "x$ac_cv_prog_cc_c89" = x
5773then :
5774  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5775printf "%s\n" "none needed" >&6; }
5776else case e in #(
5777  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5778printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5779     CC="$CC $ac_cv_prog_cc_c89" ;;
5780esac
5781fi
5782  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5783  ac_prog_cc_stdc=c89 ;;
5784esac
5785fi
5786fi
5787
5788ac_ext=c
5789ac_cpp='$CPP $CPPFLAGS'
5790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5792ac_compiler_gnu=$ac_cv_c_compiler_gnu
5793
5794
5795  ac_ext=c
5796ac_cpp='$CPP $CPPFLAGS'
5797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799ac_compiler_gnu=$ac_cv_c_compiler_gnu
5800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5801printf %s "checking whether $CC understands -c and -o together... " >&6; }
5802if test ${am_cv_prog_cc_c_o+y}
5803then :
5804  printf %s "(cached) " >&6
5805else case e in #(
5806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5807/* end confdefs.h.  */
5808
5809int
5810main (void)
5811{
5812
5813  ;
5814  return 0;
5815}
5816_ACEOF
5817  # Make sure it works both with $CC and with simple cc.
5818  # Following AC_PROG_CC_C_O, we do the test twice because some
5819  # compilers refuse to overwrite an existing .o file with -o,
5820  # though they will create one.
5821  am_cv_prog_cc_c_o=yes
5822  for am_i in 1 2; do
5823    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5824   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5825   ac_status=$?
5826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827   (exit $ac_status); } \
5828         && test -f conftest2.$ac_objext; then
5829      : OK
5830    else
5831      am_cv_prog_cc_c_o=no
5832      break
5833    fi
5834  done
5835  rm -f core conftest*
5836  unset am_i ;;
5837esac
5838fi
5839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5840printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5841if test "$am_cv_prog_cc_c_o" != yes; then
5842   # Losing compiler, so override with the script.
5843   # FIXME: It is wrong to rewrite CC.
5844   # But if we don't then we get into trouble of one sort or another.
5845   # A longer-term fix would be to have automake use am__CC in this case,
5846   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5847   CC="$am_aux_dir/compile $CC"
5848fi
5849ac_ext=c
5850ac_cpp='$CPP $CPPFLAGS'
5851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5853ac_compiler_gnu=$ac_cv_c_compiler_gnu
5854
5855
5856depcc="$CC"   am_compiler_list=
5857
5858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5859printf %s "checking dependency style of $depcc... " >&6; }
5860if test ${am_cv_CC_dependencies_compiler_type+y}
5861then :
5862  printf %s "(cached) " >&6
5863else case e in #(
5864  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5865  # We make a subdir and do the tests there.  Otherwise we can end up
5866  # making bogus files that we don't know about and never remove.  For
5867  # instance it was reported that on HP-UX the gcc test will end up
5868  # making a dummy file named 'D' -- because '-MD' means "put the output
5869  # in D".
5870  rm -rf conftest.dir
5871  mkdir conftest.dir
5872  # Copy depcomp to subdir because otherwise we won't find it if we're
5873  # using a relative directory.
5874  cp "$am_depcomp" conftest.dir
5875  cd conftest.dir
5876  # We will build objects and dependencies in a subdirectory because
5877  # it helps to detect inapplicable dependency modes.  For instance
5878  # both Tru64's cc and ICC support -MD to output dependencies as a
5879  # side effect of compilation, but ICC will put the dependencies in
5880  # the current directory while Tru64 will put them in the object
5881  # directory.
5882  mkdir sub
5883
5884  am_cv_CC_dependencies_compiler_type=none
5885  if test "$am_compiler_list" = ""; then
5886     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5887  fi
5888  am__universal=false
5889  case " $depcc " in #(
5890     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5891     esac
5892
5893  for depmode in $am_compiler_list; do
5894    # Setup a source with many dependencies, because some compilers
5895    # like to wrap large dependency lists on column 80 (with \), and
5896    # we should not choose a depcomp mode which is confused by this.
5897    #
5898    # We need to recreate these files for each test, as the compiler may
5899    # overwrite some of them when testing with obscure command lines.
5900    # This happens at least with the AIX C compiler.
5901    : > sub/conftest.c
5902    for i in 1 2 3 4 5 6; do
5903      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5904      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5905      # Solaris 10 /bin/sh.
5906      echo '/* dummy */' > sub/conftst$i.h
5907    done
5908    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5909
5910    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5911    # mode.  It turns out that the SunPro C++ compiler does not properly
5912    # handle '-M -o', and we need to detect this.  Also, some Intel
5913    # versions had trouble with output in subdirs.
5914    am__obj=sub/conftest.${OBJEXT-o}
5915    am__minus_obj="-o $am__obj"
5916    case $depmode in
5917    gcc)
5918      # This depmode causes a compiler race in universal mode.
5919      test "$am__universal" = false || continue
5920      ;;
5921    nosideeffect)
5922      # After this tag, mechanisms are not by side-effect, so they'll
5923      # only be used when explicitly requested.
5924      if test "x$enable_dependency_tracking" = xyes; then
5925	continue
5926      else
5927	break
5928      fi
5929      ;;
5930    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5931      # This compiler won't grok '-c -o', but also, the minuso test has
5932      # not run yet.  These depmodes are late enough in the game, and
5933      # so weak that their functioning should not be impacted.
5934      am__obj=conftest.${OBJEXT-o}
5935      am__minus_obj=
5936      ;;
5937    none) break ;;
5938    esac
5939    if depmode=$depmode \
5940       source=sub/conftest.c object=$am__obj \
5941       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5942       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5943         >/dev/null 2>conftest.err &&
5944       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5945       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5946       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5947       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5948      # icc doesn't choke on unknown options, it will just issue warnings
5949      # or remarks (even with -Werror).  So we grep stderr for any message
5950      # that says an option was ignored or not supported.
5951      # When given -MP, icc 7.0 and 7.1 complain thus:
5952      #   icc: Command line warning: ignoring option '-M'; no argument required
5953      # The diagnosis changed in icc 8.0:
5954      #   icc: Command line remark: option '-MP' not supported
5955      if (grep 'ignoring option' conftest.err ||
5956          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5957        am_cv_CC_dependencies_compiler_type=$depmode
5958        break
5959      fi
5960    fi
5961  done
5962
5963  cd ..
5964  rm -rf conftest.dir
5965else
5966  am_cv_CC_dependencies_compiler_type=none
5967fi
5968 ;;
5969esac
5970fi
5971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5972printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5973CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5974
5975 if
5976  test "x$enable_dependency_tracking" != xno \
5977  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5978  am__fastdepCC_TRUE=
5979  am__fastdepCC_FALSE='#'
5980else
5981  am__fastdepCC_TRUE='#'
5982  am__fastdepCC_FALSE=
5983fi
5984
5985
5986
5987ac_header= ac_cache=
5988for ac_item in $ac_header_c_list
5989do
5990  if test $ac_cache; then
5991    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5992    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5993      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5994    fi
5995    ac_header= ac_cache=
5996  elif test $ac_header; then
5997    ac_cache=$ac_item
5998  else
5999    ac_header=$ac_item
6000  fi
6001done
6002
6003
6004
6005
6006
6007
6008
6009
6010if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6011then :
6012
6013printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6014
6015fi
6016
6017
6018
6019
6020
6021
6022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6023printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6024if test ${ac_cv_safe_to_define___extensions__+y}
6025then :
6026  printf %s "(cached) " >&6
6027else case e in #(
6028  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029/* end confdefs.h.  */
6030
6031#         define __EXTENSIONS__ 1
6032          $ac_includes_default
6033int
6034main (void)
6035{
6036
6037  ;
6038  return 0;
6039}
6040_ACEOF
6041if ac_fn_c_try_compile "$LINENO"
6042then :
6043  ac_cv_safe_to_define___extensions__=yes
6044else case e in #(
6045  e) ac_cv_safe_to_define___extensions__=no ;;
6046esac
6047fi
6048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6049esac
6050fi
6051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6052printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6053
6054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6055printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6056if test ${ac_cv_should_define__xopen_source+y}
6057then :
6058  printf %s "(cached) " >&6
6059else case e in #(
6060  e) ac_cv_should_define__xopen_source=no
6061    if test $ac_cv_header_wchar_h = yes
6062then :
6063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h.  */
6065
6066          #include <wchar.h>
6067          mbstate_t x;
6068int
6069main (void)
6070{
6071
6072  ;
6073  return 0;
6074}
6075_ACEOF
6076if ac_fn_c_try_compile "$LINENO"
6077then :
6078
6079else case e in #(
6080  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h.  */
6082
6083            #define _XOPEN_SOURCE 500
6084            #include <wchar.h>
6085            mbstate_t x;
6086int
6087main (void)
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_compile "$LINENO"
6095then :
6096  ac_cv_should_define__xopen_source=yes
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6099esac
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6102fi ;;
6103esac
6104fi
6105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6106printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6107
6108  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6109
6110  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6111
6112  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6113
6114  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6115
6116  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6117
6118  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6119
6120  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6121
6122  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6123
6124  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6125
6126  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6127
6128  printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6129
6130  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6131
6132  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6133
6134  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6135
6136  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6137
6138  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6139
6140  if test $ac_cv_header_minix_config_h = yes
6141then :
6142  MINIX=yes
6143    printf "%s\n" "#define _MINIX 1" >>confdefs.h
6144
6145    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6146
6147    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6148
6149else case e in #(
6150  e) MINIX= ;;
6151esac
6152fi
6153  if test $ac_cv_safe_to_define___extensions__ = yes
6154then :
6155  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6156
6157fi
6158  if test $ac_cv_should_define__xopen_source = yes
6159then :
6160  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6161
6162fi
6163
6164
6165# Require xorg-macros minimum of 1.14 for XORG_COMPILER_BRAND in XORG_DEFAULT_OPTIONS
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6178printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
6179if test ${ac_cv_c_undeclared_builtin_options+y}
6180then :
6181  printf %s "(cached) " >&6
6182else case e in #(
6183  e) ac_save_CFLAGS=$CFLAGS
6184   ac_cv_c_undeclared_builtin_options='cannot detect'
6185   for ac_arg in '' -fno-builtin; do
6186     CFLAGS="$ac_save_CFLAGS $ac_arg"
6187     # This test program should *not* compile successfully.
6188     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189/* end confdefs.h.  */
6190
6191int
6192main (void)
6193{
6194(void) strchr;
6195  ;
6196  return 0;
6197}
6198_ACEOF
6199if ac_fn_c_try_compile "$LINENO"
6200then :
6201
6202else case e in #(
6203  e) # This test program should compile successfully.
6204        # No library function is consistently available on
6205        # freestanding implementations, so test against a dummy
6206        # declaration.  Include always-available headers on the
6207        # off chance that they somehow elicit warnings.
6208        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209/* end confdefs.h.  */
6210#include <float.h>
6211#include <limits.h>
6212#include <stdarg.h>
6213#include <stddef.h>
6214extern void ac_decl (int, char *);
6215
6216int
6217main (void)
6218{
6219(void) ac_decl (0, (char *) 0);
6220  (void) ac_decl;
6221
6222  ;
6223  return 0;
6224}
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"
6227then :
6228  if test x"$ac_arg" = x
6229then :
6230  ac_cv_c_undeclared_builtin_options='none needed'
6231else case e in #(
6232  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
6233esac
6234fi
6235          break
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6238esac
6239fi
6240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6241    done
6242    CFLAGS=$ac_save_CFLAGS
6243   ;;
6244esac
6245fi
6246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
6247printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
6248  case $ac_cv_c_undeclared_builtin_options in #(
6249  'cannot detect') :
6250    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6251printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6252as_fn_error $? "cannot make $CC report undeclared builtins
6253See 'config.log' for more details" "$LINENO" 5; } ;; #(
6254  'none needed') :
6255    ac_c_undeclared_builtin_options='' ;; #(
6256  *) :
6257    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6258esac
6259
6260
6261
6262
6263
6264ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6265if test "x$ac_cv_have_decl___clang__" = xyes
6266then :
6267  CLANGCC="yes"
6268else case e in #(
6269  e) CLANGCC="no" ;;
6270esac
6271fi
6272ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6273if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
6274then :
6275  INTELCC="yes"
6276else case e in #(
6277  e) INTELCC="no" ;;
6278esac
6279fi
6280ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
6281if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
6282then :
6283  SUNCC="yes"
6284else case e in #(
6285  e) SUNCC="no" ;;
6286esac
6287fi
6288
6289
6290
6291
6292
6293
6294
6295
6296if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6297	if test -n "$ac_tool_prefix"; then
6298  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301printf %s "checking for $ac_word... " >&6; }
6302if test ${ac_cv_path_PKG_CONFIG+y}
6303then :
6304  printf %s "(cached) " >&6
6305else case e in #(
6306  e) case $PKG_CONFIG in
6307  [\\/]* | ?:[\\/]*)
6308  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6309  ;;
6310  *)
6311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314  IFS=$as_save_IFS
6315  case $as_dir in #(((
6316    '') as_dir=./ ;;
6317    */) ;;
6318    *) as_dir=$as_dir/ ;;
6319  esac
6320    for ac_exec_ext in '' $ac_executable_extensions; do
6321  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6322    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6323    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6324    break 2
6325  fi
6326done
6327  done
6328IFS=$as_save_IFS
6329
6330  ;;
6331esac ;;
6332esac
6333fi
6334PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6335if test -n "$PKG_CONFIG"; then
6336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6337printf "%s\n" "$PKG_CONFIG" >&6; }
6338else
6339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340printf "%s\n" "no" >&6; }
6341fi
6342
6343
6344fi
6345if test -z "$ac_cv_path_PKG_CONFIG"; then
6346  ac_pt_PKG_CONFIG=$PKG_CONFIG
6347  # Extract the first word of "pkg-config", so it can be a program name with args.
6348set dummy pkg-config; ac_word=$2
6349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350printf %s "checking for $ac_word... " >&6; }
6351if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6352then :
6353  printf %s "(cached) " >&6
6354else case e in #(
6355  e) case $ac_pt_PKG_CONFIG in
6356  [\\/]* | ?:[\\/]*)
6357  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6358  ;;
6359  *)
6360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361for as_dir in $PATH
6362do
6363  IFS=$as_save_IFS
6364  case $as_dir in #(((
6365    '') as_dir=./ ;;
6366    */) ;;
6367    *) as_dir=$as_dir/ ;;
6368  esac
6369    for ac_exec_ext in '' $ac_executable_extensions; do
6370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6371    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6373    break 2
6374  fi
6375done
6376  done
6377IFS=$as_save_IFS
6378
6379  ;;
6380esac ;;
6381esac
6382fi
6383ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6384if test -n "$ac_pt_PKG_CONFIG"; then
6385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6386printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6387else
6388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389printf "%s\n" "no" >&6; }
6390fi
6391
6392  if test "x$ac_pt_PKG_CONFIG" = x; then
6393    PKG_CONFIG=""
6394  else
6395    case $cross_compiling:$ac_tool_warned in
6396yes:)
6397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399ac_tool_warned=yes ;;
6400esac
6401    PKG_CONFIG=$ac_pt_PKG_CONFIG
6402  fi
6403else
6404  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6405fi
6406
6407fi
6408if test -n "$PKG_CONFIG"; then
6409	_pkg_min_version=0.9.0
6410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6411printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6412	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6414printf "%s\n" "yes" >&6; }
6415	else
6416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417printf "%s\n" "no" >&6; }
6418		PKG_CONFIG=""
6419	fi
6420fi
6421if test -z "$PKG_CONFIG"; then
6422	as_fn_error $? "pkg-config not found" "$LINENO" 5
6423fi
6424
6425
6426  # Make sure we can run config.sub.
6427$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6428  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6429
6430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6431printf %s "checking build system type... " >&6; }
6432if test ${ac_cv_build+y}
6433then :
6434  printf %s "(cached) " >&6
6435else case e in #(
6436  e) ac_build_alias=$build_alias
6437test "x$ac_build_alias" = x &&
6438  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6439test "x$ac_build_alias" = x &&
6440  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6441ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6442  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6443 ;;
6444esac
6445fi
6446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6447printf "%s\n" "$ac_cv_build" >&6; }
6448case $ac_cv_build in
6449*-*-*) ;;
6450*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6451esac
6452build=$ac_cv_build
6453ac_save_IFS=$IFS; IFS='-'
6454set x $ac_cv_build
6455shift
6456build_cpu=$1
6457build_vendor=$2
6458shift; shift
6459# Remember, the first character of IFS is used to create $*,
6460# except with old shells:
6461build_os=$*
6462IFS=$ac_save_IFS
6463case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6464
6465
6466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6467printf %s "checking host system type... " >&6; }
6468if test ${ac_cv_host+y}
6469then :
6470  printf %s "(cached) " >&6
6471else case e in #(
6472  e) if test "x$host_alias" = x; then
6473  ac_cv_host=$ac_cv_build
6474else
6475  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6476    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6477fi
6478 ;;
6479esac
6480fi
6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6482printf "%s\n" "$ac_cv_host" >&6; }
6483case $ac_cv_host in
6484*-*-*) ;;
6485*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6486esac
6487host=$ac_cv_host
6488ac_save_IFS=$IFS; IFS='-'
6489set x $ac_cv_host
6490shift
6491host_cpu=$1
6492host_vendor=$2
6493shift; shift
6494# Remember, the first character of IFS is used to create $*,
6495# except with old shells:
6496host_os=$*
6497IFS=$ac_save_IFS
6498case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6499
6500
6501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6502printf %s "checking for a sed that does not truncate output... " >&6; }
6503if test ${ac_cv_path_SED+y}
6504then :
6505  printf %s "(cached) " >&6
6506else case e in #(
6507  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6508     for ac_i in 1 2 3 4 5 6 7; do
6509       ac_script="$ac_script$as_nl$ac_script"
6510     done
6511     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6512     { ac_script=; unset ac_script;}
6513     if test -z "$SED"; then
6514  ac_path_SED_found=false
6515  # Loop through the user's path and test for each of PROGNAME-LIST
6516  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519  IFS=$as_save_IFS
6520  case $as_dir in #(((
6521    '') as_dir=./ ;;
6522    */) ;;
6523    *) as_dir=$as_dir/ ;;
6524  esac
6525    for ac_prog in sed gsed
6526   do
6527    for ac_exec_ext in '' $ac_executable_extensions; do
6528      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6529      as_fn_executable_p "$ac_path_SED" || continue
6530# Check for GNU ac_path_SED and select it if it is found.
6531  # Check for GNU $ac_path_SED
6532case `"$ac_path_SED" --version 2>&1` in #(
6533*GNU*)
6534  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6535#(
6536*)
6537  ac_count=0
6538  printf %s 0123456789 >"conftest.in"
6539  while :
6540  do
6541    cat "conftest.in" "conftest.in" >"conftest.tmp"
6542    mv "conftest.tmp" "conftest.in"
6543    cp "conftest.in" "conftest.nl"
6544    printf "%s\n" '' >> "conftest.nl"
6545    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6546    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6547    as_fn_arith $ac_count + 1 && ac_count=$as_val
6548    if test $ac_count -gt ${ac_path_SED_max-0}; then
6549      # Best one so far, save it but keep looking for a better one
6550      ac_cv_path_SED="$ac_path_SED"
6551      ac_path_SED_max=$ac_count
6552    fi
6553    # 10*(2^10) chars as input seems more than enough
6554    test $ac_count -gt 10 && break
6555  done
6556  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6557esac
6558
6559      $ac_path_SED_found && break 3
6560    done
6561  done
6562  done
6563IFS=$as_save_IFS
6564  if test -z "$ac_cv_path_SED"; then
6565    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6566  fi
6567else
6568  ac_cv_path_SED=$SED
6569fi
6570 ;;
6571esac
6572fi
6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6574printf "%s\n" "$ac_cv_path_SED" >&6; }
6575 SED="$ac_cv_path_SED"
6576  rm -f conftest.sed
6577
6578
6579
6580
6581
6582
6583# Check whether --enable-selective-werror was given.
6584if test ${enable_selective_werror+y}
6585then :
6586  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
6587else case e in #(
6588  e) SELECTIVE_WERROR=yes ;;
6589esac
6590fi
6591
6592
6593
6594
6595
6596# -v is too short to test reliably with XORG_TESTSET_CFLAG
6597if test "x$SUNCC" = "xyes"; then
6598    BASE_CFLAGS="-v"
6599else
6600    BASE_CFLAGS=""
6601fi
6602
6603# This chunk of warnings were those that existed in the legacy CWARNFLAGS
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617xorg_testset_save_CFLAGS="$CFLAGS"
6618
6619if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6620	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6622printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6623if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6624then :
6625  printf %s "(cached) " >&6
6626else case e in #(
6627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630_ACEOF
6631if ac_fn_c_try_compile "$LINENO"
6632then :
6633  xorg_cv_cc_flag_unknown_warning_option=yes
6634else case e in #(
6635  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6636esac
6637fi
6638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6639esac
6640fi
6641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6642printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6644	CFLAGS="$xorg_testset_save_CFLAGS"
6645fi
6646
6647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650	fi
6651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6652	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6653printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6654if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6655then :
6656  printf %s "(cached) " >&6
6657else case e in #(
6658  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h.  */
6660int i;
6661_ACEOF
6662if ac_fn_c_try_compile "$LINENO"
6663then :
6664  xorg_cv_cc_flag_unused_command_line_argument=yes
6665else case e in #(
6666  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6667esac
6668fi
6669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6670esac
6671fi
6672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6673printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6674	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6675	CFLAGS="$xorg_testset_save_CFLAGS"
6676fi
6677
6678found="no"
6679
6680	if test $found = "no" ; then
6681		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6682			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6683		fi
6684
6685		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6686			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6687		fi
6688
6689		CFLAGS="$CFLAGS -Wall"
6690
6691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
6692printf %s "checking if $CC supports -Wall... " >&6; }
6693		cacheid=xorg_cv_cc_flag__Wall
6694		if eval test \${$cacheid+y}
6695then :
6696  printf %s "(cached) " >&6
6697else case e in #(
6698  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699/* end confdefs.h.  */
6700int i;
6701int
6702main (void)
6703{
6704
6705  ;
6706  return 0;
6707}
6708_ACEOF
6709if ac_fn_c_try_link "$LINENO"
6710then :
6711  eval $cacheid=yes
6712else case e in #(
6713  e) eval $cacheid=no ;;
6714esac
6715fi
6716rm -f core conftest.err conftest.$ac_objext conftest.beam \
6717    conftest$ac_exeext conftest.$ac_ext ;;
6718esac
6719fi
6720
6721
6722		CFLAGS="$xorg_testset_save_CFLAGS"
6723
6724		eval supported=\$$cacheid
6725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6726printf "%s\n" "$supported" >&6; }
6727		if test "$supported" = "yes" ; then
6728			BASE_CFLAGS="$BASE_CFLAGS -Wall"
6729			found="yes"
6730		fi
6731	fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747xorg_testset_save_CFLAGS="$CFLAGS"
6748
6749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6753if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6754then :
6755  printf %s "(cached) " >&6
6756else case e in #(
6757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759int i;
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"
6762then :
6763  xorg_cv_cc_flag_unknown_warning_option=yes
6764else case e in #(
6765  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6766esac
6767fi
6768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6769esac
6770fi
6771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6774	CFLAGS="$xorg_testset_save_CFLAGS"
6775fi
6776
6777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780	fi
6781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6785then :
6786  printf %s "(cached) " >&6
6787else case e in #(
6788  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789/* end confdefs.h.  */
6790int i;
6791_ACEOF
6792if ac_fn_c_try_compile "$LINENO"
6793then :
6794  xorg_cv_cc_flag_unused_command_line_argument=yes
6795else case e in #(
6796  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6797esac
6798fi
6799rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6800esac
6801fi
6802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6803printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6804	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6805	CFLAGS="$xorg_testset_save_CFLAGS"
6806fi
6807
6808found="no"
6809
6810	if test $found = "no" ; then
6811		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6812			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6813		fi
6814
6815		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6816			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6817		fi
6818
6819		CFLAGS="$CFLAGS -Wpointer-arith"
6820
6821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6822printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6823		cacheid=xorg_cv_cc_flag__Wpointer_arith
6824		if eval test \${$cacheid+y}
6825then :
6826  printf %s "(cached) " >&6
6827else case e in #(
6828  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830int i;
6831int
6832main (void)
6833{
6834
6835  ;
6836  return 0;
6837}
6838_ACEOF
6839if ac_fn_c_try_link "$LINENO"
6840then :
6841  eval $cacheid=yes
6842else case e in #(
6843  e) eval $cacheid=no ;;
6844esac
6845fi
6846rm -f core conftest.err conftest.$ac_objext conftest.beam \
6847    conftest$ac_exeext conftest.$ac_ext ;;
6848esac
6849fi
6850
6851
6852		CFLAGS="$xorg_testset_save_CFLAGS"
6853
6854		eval supported=\$$cacheid
6855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6856printf "%s\n" "$supported" >&6; }
6857		if test "$supported" = "yes" ; then
6858			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
6859			found="yes"
6860		fi
6861	fi
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877xorg_testset_save_CFLAGS="$CFLAGS"
6878
6879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6880	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6882printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6883if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6884then :
6885  printf %s "(cached) " >&6
6886else case e in #(
6887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889int i;
6890_ACEOF
6891if ac_fn_c_try_compile "$LINENO"
6892then :
6893  xorg_cv_cc_flag_unknown_warning_option=yes
6894else case e in #(
6895  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6896esac
6897fi
6898rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6899esac
6900fi
6901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6902printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6903	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6904	CFLAGS="$xorg_testset_save_CFLAGS"
6905fi
6906
6907if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6908	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6909		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6910	fi
6911	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6913printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6914if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6915then :
6916  printf %s "(cached) " >&6
6917else case e in #(
6918  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921_ACEOF
6922if ac_fn_c_try_compile "$LINENO"
6923then :
6924  xorg_cv_cc_flag_unused_command_line_argument=yes
6925else case e in #(
6926  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6927esac
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6930esac
6931fi
6932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6933printf "%s\n" "$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 -Wmissing-declarations"
6950
6951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
6952printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
6953		cacheid=xorg_cv_cc_flag__Wmissing_declarations
6954		if eval test \${$cacheid+y}
6955then :
6956  printf %s "(cached) " >&6
6957else case e in #(
6958  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959/* end confdefs.h.  */
6960int i;
6961int
6962main (void)
6963{
6964
6965  ;
6966  return 0;
6967}
6968_ACEOF
6969if ac_fn_c_try_link "$LINENO"
6970then :
6971  eval $cacheid=yes
6972else case e in #(
6973  e) eval $cacheid=no ;;
6974esac
6975fi
6976rm -f core conftest.err conftest.$ac_objext conftest.beam \
6977    conftest$ac_exeext conftest.$ac_ext ;;
6978esac
6979fi
6980
6981
6982		CFLAGS="$xorg_testset_save_CFLAGS"
6983
6984		eval supported=\$$cacheid
6985		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6986printf "%s\n" "$supported" >&6; }
6987		if test "$supported" = "yes" ; then
6988			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
6989			found="yes"
6990		fi
6991	fi
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007xorg_testset_save_CFLAGS="$CFLAGS"
7008
7009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7010	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7012printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7013if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7014then :
7015  printf %s "(cached) " >&6
7016else case e in #(
7017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"
7022then :
7023  xorg_cv_cc_flag_unknown_warning_option=yes
7024else case e in #(
7025  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7026esac
7027fi
7028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7029esac
7030fi
7031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7032printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7034	CFLAGS="$xorg_testset_save_CFLAGS"
7035fi
7036
7037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040	fi
7041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7043printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7044if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7045then :
7046  printf %s "(cached) " >&6
7047else case e in #(
7048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050int i;
7051_ACEOF
7052if ac_fn_c_try_compile "$LINENO"
7053then :
7054  xorg_cv_cc_flag_unused_command_line_argument=yes
7055else case e in #(
7056  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7057esac
7058fi
7059rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7060esac
7061fi
7062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7063printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7064	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7065	CFLAGS="$xorg_testset_save_CFLAGS"
7066fi
7067
7068found="no"
7069
7070	if test $found = "no" ; then
7071		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073		fi
7074
7075		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7076			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7077		fi
7078
7079		CFLAGS="$CFLAGS -Wformat=2"
7080
7081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
7082printf %s "checking if $CC supports -Wformat=2... " >&6; }
7083		cacheid=xorg_cv_cc_flag__Wformat_2
7084		if eval test \${$cacheid+y}
7085then :
7086  printf %s "(cached) " >&6
7087else case e in #(
7088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h.  */
7090int i;
7091int
7092main (void)
7093{
7094
7095  ;
7096  return 0;
7097}
7098_ACEOF
7099if ac_fn_c_try_link "$LINENO"
7100then :
7101  eval $cacheid=yes
7102else case e in #(
7103  e) eval $cacheid=no ;;
7104esac
7105fi
7106rm -f core conftest.err conftest.$ac_objext conftest.beam \
7107    conftest$ac_exeext conftest.$ac_ext ;;
7108esac
7109fi
7110
7111
7112		CFLAGS="$xorg_testset_save_CFLAGS"
7113
7114		eval supported=\$$cacheid
7115		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7116printf "%s\n" "$supported" >&6; }
7117		if test "$supported" = "yes" ; then
7118			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
7119			found="yes"
7120		fi
7121	fi
7122
7123	if test $found = "no" ; then
7124		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7125			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7126		fi
7127
7128		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7129			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7130		fi
7131
7132		CFLAGS="$CFLAGS -Wformat"
7133
7134		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
7135printf %s "checking if $CC supports -Wformat... " >&6; }
7136		cacheid=xorg_cv_cc_flag__Wformat
7137		if eval test \${$cacheid+y}
7138then :
7139  printf %s "(cached) " >&6
7140else case e in #(
7141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142/* end confdefs.h.  */
7143int i;
7144int
7145main (void)
7146{
7147
7148  ;
7149  return 0;
7150}
7151_ACEOF
7152if ac_fn_c_try_link "$LINENO"
7153then :
7154  eval $cacheid=yes
7155else case e in #(
7156  e) eval $cacheid=no ;;
7157esac
7158fi
7159rm -f core conftest.err conftest.$ac_objext conftest.beam \
7160    conftest$ac_exeext conftest.$ac_ext ;;
7161esac
7162fi
7163
7164
7165		CFLAGS="$xorg_testset_save_CFLAGS"
7166
7167		eval supported=\$$cacheid
7168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7169printf "%s\n" "$supported" >&6; }
7170		if test "$supported" = "yes" ; then
7171			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
7172			found="yes"
7173		fi
7174	fi
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192xorg_testset_save_CFLAGS="$CFLAGS"
7193
7194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7197printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7198if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7199then :
7200  printf %s "(cached) " >&6
7201else case e in #(
7202  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h.  */
7204int i;
7205_ACEOF
7206if ac_fn_c_try_compile "$LINENO"
7207then :
7208  xorg_cv_cc_flag_unknown_warning_option=yes
7209else case e in #(
7210  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7211esac
7212fi
7213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7214esac
7215fi
7216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7219	CFLAGS="$xorg_testset_save_CFLAGS"
7220fi
7221
7222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225	fi
7226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7230then :
7231  printf %s "(cached) " >&6
7232else case e in #(
7233  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h.  */
7235int i;
7236_ACEOF
7237if ac_fn_c_try_compile "$LINENO"
7238then :
7239  xorg_cv_cc_flag_unused_command_line_argument=yes
7240else case e in #(
7241  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7242esac
7243fi
7244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7245esac
7246fi
7247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7248printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7250	CFLAGS="$xorg_testset_save_CFLAGS"
7251fi
7252
7253found="no"
7254
7255	if test $found = "no" ; then
7256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7258		fi
7259
7260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7262		fi
7263
7264		CFLAGS="$CFLAGS -Wstrict-prototypes"
7265
7266		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
7267printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
7268		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
7269		if eval test \${$cacheid+y}
7270then :
7271  printf %s "(cached) " >&6
7272else case e in #(
7273  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274/* end confdefs.h.  */
7275int i;
7276int
7277main (void)
7278{
7279
7280  ;
7281  return 0;
7282}
7283_ACEOF
7284if ac_fn_c_try_link "$LINENO"
7285then :
7286  eval $cacheid=yes
7287else case e in #(
7288  e) eval $cacheid=no ;;
7289esac
7290fi
7291rm -f core conftest.err conftest.$ac_objext conftest.beam \
7292    conftest$ac_exeext conftest.$ac_ext ;;
7293esac
7294fi
7295
7296
7297		CFLAGS="$xorg_testset_save_CFLAGS"
7298
7299		eval supported=\$$cacheid
7300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7301printf "%s\n" "$supported" >&6; }
7302		if test "$supported" = "yes" ; then
7303			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
7304			found="yes"
7305		fi
7306	fi
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322xorg_testset_save_CFLAGS="$CFLAGS"
7323
7324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7329then :
7330  printf %s "(cached) " >&6
7331else case e in #(
7332  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334int i;
7335_ACEOF
7336if ac_fn_c_try_compile "$LINENO"
7337then :
7338  xorg_cv_cc_flag_unknown_warning_option=yes
7339else case e in #(
7340  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7341esac
7342fi
7343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7344esac
7345fi
7346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7349	CFLAGS="$xorg_testset_save_CFLAGS"
7350fi
7351
7352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7355	fi
7356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7360then :
7361  printf %s "(cached) " >&6
7362else case e in #(
7363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h.  */
7365int i;
7366_ACEOF
7367if ac_fn_c_try_compile "$LINENO"
7368then :
7369  xorg_cv_cc_flag_unused_command_line_argument=yes
7370else case e in #(
7371  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7372esac
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7375esac
7376fi
7377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7378printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7379	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7380	CFLAGS="$xorg_testset_save_CFLAGS"
7381fi
7382
7383found="no"
7384
7385	if test $found = "no" ; then
7386		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7387			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7388		fi
7389
7390		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7391			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7392		fi
7393
7394		CFLAGS="$CFLAGS -Wmissing-prototypes"
7395
7396		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
7397printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
7398		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
7399		if eval test \${$cacheid+y}
7400then :
7401  printf %s "(cached) " >&6
7402else case e in #(
7403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405int i;
7406int
7407main (void)
7408{
7409
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"
7415then :
7416  eval $cacheid=yes
7417else case e in #(
7418  e) eval $cacheid=no ;;
7419esac
7420fi
7421rm -f core conftest.err conftest.$ac_objext conftest.beam \
7422    conftest$ac_exeext conftest.$ac_ext ;;
7423esac
7424fi
7425
7426
7427		CFLAGS="$xorg_testset_save_CFLAGS"
7428
7429		eval supported=\$$cacheid
7430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7431printf "%s\n" "$supported" >&6; }
7432		if test "$supported" = "yes" ; then
7433			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
7434			found="yes"
7435		fi
7436	fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452xorg_testset_save_CFLAGS="$CFLAGS"
7453
7454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7457printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7458if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7459then :
7460  printf %s "(cached) " >&6
7461else case e in #(
7462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463/* end confdefs.h.  */
7464int i;
7465_ACEOF
7466if ac_fn_c_try_compile "$LINENO"
7467then :
7468  xorg_cv_cc_flag_unknown_warning_option=yes
7469else case e in #(
7470  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7471esac
7472fi
7473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7474esac
7475fi
7476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7477printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7478	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7479	CFLAGS="$xorg_testset_save_CFLAGS"
7480fi
7481
7482if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7483	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7484		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7485	fi
7486	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7488printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7489if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7490then :
7491  printf %s "(cached) " >&6
7492else case e in #(
7493  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495int i;
7496_ACEOF
7497if ac_fn_c_try_compile "$LINENO"
7498then :
7499  xorg_cv_cc_flag_unused_command_line_argument=yes
7500else case e in #(
7501  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7502esac
7503fi
7504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7505esac
7506fi
7507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7508printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7509	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7510	CFLAGS="$xorg_testset_save_CFLAGS"
7511fi
7512
7513found="no"
7514
7515	if test $found = "no" ; then
7516		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7517			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7518		fi
7519
7520		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7521			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7522		fi
7523
7524		CFLAGS="$CFLAGS -Wnested-externs"
7525
7526		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7527printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7528		cacheid=xorg_cv_cc_flag__Wnested_externs
7529		if eval test \${$cacheid+y}
7530then :
7531  printf %s "(cached) " >&6
7532else case e in #(
7533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h.  */
7535int i;
7536int
7537main (void)
7538{
7539
7540  ;
7541  return 0;
7542}
7543_ACEOF
7544if ac_fn_c_try_link "$LINENO"
7545then :
7546  eval $cacheid=yes
7547else case e in #(
7548  e) eval $cacheid=no ;;
7549esac
7550fi
7551rm -f core conftest.err conftest.$ac_objext conftest.beam \
7552    conftest$ac_exeext conftest.$ac_ext ;;
7553esac
7554fi
7555
7556
7557		CFLAGS="$xorg_testset_save_CFLAGS"
7558
7559		eval supported=\$$cacheid
7560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7561printf "%s\n" "$supported" >&6; }
7562		if test "$supported" = "yes" ; then
7563			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
7564			found="yes"
7565		fi
7566	fi
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582xorg_testset_save_CFLAGS="$CFLAGS"
7583
7584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7587printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7588if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7589then :
7590  printf %s "(cached) " >&6
7591else case e in #(
7592  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593/* end confdefs.h.  */
7594int i;
7595_ACEOF
7596if ac_fn_c_try_compile "$LINENO"
7597then :
7598  xorg_cv_cc_flag_unknown_warning_option=yes
7599else case e in #(
7600  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7601esac
7602fi
7603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7604esac
7605fi
7606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7607printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7608	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7609	CFLAGS="$xorg_testset_save_CFLAGS"
7610fi
7611
7612if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7613	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7614		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615	fi
7616	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7618printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7619if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7620then :
7621  printf %s "(cached) " >&6
7622else case e in #(
7623  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624/* end confdefs.h.  */
7625int i;
7626_ACEOF
7627if ac_fn_c_try_compile "$LINENO"
7628then :
7629  xorg_cv_cc_flag_unused_command_line_argument=yes
7630else case e in #(
7631  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7632esac
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7635esac
7636fi
7637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7638printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7639	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7640	CFLAGS="$xorg_testset_save_CFLAGS"
7641fi
7642
7643found="no"
7644
7645	if test $found = "no" ; then
7646		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7647			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7648		fi
7649
7650		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7651			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7652		fi
7653
7654		CFLAGS="$CFLAGS -Wbad-function-cast"
7655
7656		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
7657printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
7658		cacheid=xorg_cv_cc_flag__Wbad_function_cast
7659		if eval test \${$cacheid+y}
7660then :
7661  printf %s "(cached) " >&6
7662else case e in #(
7663  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664/* end confdefs.h.  */
7665int i;
7666int
7667main (void)
7668{
7669
7670  ;
7671  return 0;
7672}
7673_ACEOF
7674if ac_fn_c_try_link "$LINENO"
7675then :
7676  eval $cacheid=yes
7677else case e in #(
7678  e) eval $cacheid=no ;;
7679esac
7680fi
7681rm -f core conftest.err conftest.$ac_objext conftest.beam \
7682    conftest$ac_exeext conftest.$ac_ext ;;
7683esac
7684fi
7685
7686
7687		CFLAGS="$xorg_testset_save_CFLAGS"
7688
7689		eval supported=\$$cacheid
7690		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7691printf "%s\n" "$supported" >&6; }
7692		if test "$supported" = "yes" ; then
7693			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
7694			found="yes"
7695		fi
7696	fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712xorg_testset_save_CFLAGS="$CFLAGS"
7713
7714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7715	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7717printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7718if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7719then :
7720  printf %s "(cached) " >&6
7721else case e in #(
7722  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723/* end confdefs.h.  */
7724int i;
7725_ACEOF
7726if ac_fn_c_try_compile "$LINENO"
7727then :
7728  xorg_cv_cc_flag_unknown_warning_option=yes
7729else case e in #(
7730  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7731esac
7732fi
7733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7734esac
7735fi
7736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7739	CFLAGS="$xorg_testset_save_CFLAGS"
7740fi
7741
7742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7745	fi
7746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7750then :
7751  printf %s "(cached) " >&6
7752else case e in #(
7753  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754/* end confdefs.h.  */
7755int i;
7756_ACEOF
7757if ac_fn_c_try_compile "$LINENO"
7758then :
7759  xorg_cv_cc_flag_unused_command_line_argument=yes
7760else case e in #(
7761  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7762esac
7763fi
7764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7765esac
7766fi
7767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7768printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7770	CFLAGS="$xorg_testset_save_CFLAGS"
7771fi
7772
7773found="no"
7774
7775	if test $found = "no" ; then
7776		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7778		fi
7779
7780		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7782		fi
7783
7784		CFLAGS="$CFLAGS -Wold-style-definition"
7785
7786		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7787printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
7788		cacheid=xorg_cv_cc_flag__Wold_style_definition
7789		if eval test \${$cacheid+y}
7790then :
7791  printf %s "(cached) " >&6
7792else case e in #(
7793  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794/* end confdefs.h.  */
7795int i;
7796int
7797main (void)
7798{
7799
7800  ;
7801  return 0;
7802}
7803_ACEOF
7804if ac_fn_c_try_link "$LINENO"
7805then :
7806  eval $cacheid=yes
7807else case e in #(
7808  e) eval $cacheid=no ;;
7809esac
7810fi
7811rm -f core conftest.err conftest.$ac_objext conftest.beam \
7812    conftest$ac_exeext conftest.$ac_ext ;;
7813esac
7814fi
7815
7816
7817		CFLAGS="$xorg_testset_save_CFLAGS"
7818
7819		eval supported=\$$cacheid
7820		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7821printf "%s\n" "$supported" >&6; }
7822		if test "$supported" = "yes" ; then
7823			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
7824			found="yes"
7825		fi
7826	fi
7827
7828	if test $found = "no" ; then
7829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7831		fi
7832
7833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7835		fi
7836
7837		CFLAGS="$CFLAGS -fd"
7838
7839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
7840printf %s "checking if $CC supports -fd... " >&6; }
7841		cacheid=xorg_cv_cc_flag__fd
7842		if eval test \${$cacheid+y}
7843then :
7844  printf %s "(cached) " >&6
7845else case e in #(
7846  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847/* end confdefs.h.  */
7848int i;
7849int
7850main (void)
7851{
7852
7853  ;
7854  return 0;
7855}
7856_ACEOF
7857if ac_fn_c_try_link "$LINENO"
7858then :
7859  eval $cacheid=yes
7860else case e in #(
7861  e) eval $cacheid=no ;;
7862esac
7863fi
7864rm -f core conftest.err conftest.$ac_objext conftest.beam \
7865    conftest$ac_exeext conftest.$ac_ext ;;
7866esac
7867fi
7868
7869
7870		CFLAGS="$xorg_testset_save_CFLAGS"
7871
7872		eval supported=\$$cacheid
7873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7874printf "%s\n" "$supported" >&6; }
7875		if test "$supported" = "yes" ; then
7876			BASE_CFLAGS="$BASE_CFLAGS -fd"
7877			found="yes"
7878		fi
7879	fi
7880
7881
7882
7883
7884
7885# This chunk adds additional warnings that could catch undesired effects.
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899xorg_testset_save_CFLAGS="$CFLAGS"
7900
7901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7904printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7905if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7906then :
7907  printf %s "(cached) " >&6
7908else case e in #(
7909  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910/* end confdefs.h.  */
7911int i;
7912_ACEOF
7913if ac_fn_c_try_compile "$LINENO"
7914then :
7915  xorg_cv_cc_flag_unknown_warning_option=yes
7916else case e in #(
7917  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7918esac
7919fi
7920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7921esac
7922fi
7923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7924printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7926	CFLAGS="$xorg_testset_save_CFLAGS"
7927fi
7928
7929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7932	fi
7933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7934	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7935printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7936if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7937then :
7938  printf %s "(cached) " >&6
7939else case e in #(
7940  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h.  */
7942int i;
7943_ACEOF
7944if ac_fn_c_try_compile "$LINENO"
7945then :
7946  xorg_cv_cc_flag_unused_command_line_argument=yes
7947else case e in #(
7948  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7949esac
7950fi
7951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7952esac
7953fi
7954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7955printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7956	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7957	CFLAGS="$xorg_testset_save_CFLAGS"
7958fi
7959
7960found="no"
7961
7962	if test $found = "no" ; then
7963		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7964			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7965		fi
7966
7967		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7968			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7969		fi
7970
7971		CFLAGS="$CFLAGS -Wunused"
7972
7973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7974printf %s "checking if $CC supports -Wunused... " >&6; }
7975		cacheid=xorg_cv_cc_flag__Wunused
7976		if eval test \${$cacheid+y}
7977then :
7978  printf %s "(cached) " >&6
7979else case e in #(
7980  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983int
7984main (void)
7985{
7986
7987  ;
7988  return 0;
7989}
7990_ACEOF
7991if ac_fn_c_try_link "$LINENO"
7992then :
7993  eval $cacheid=yes
7994else case e in #(
7995  e) eval $cacheid=no ;;
7996esac
7997fi
7998rm -f core conftest.err conftest.$ac_objext conftest.beam \
7999    conftest$ac_exeext conftest.$ac_ext ;;
8000esac
8001fi
8002
8003
8004		CFLAGS="$xorg_testset_save_CFLAGS"
8005
8006		eval supported=\$$cacheid
8007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8008printf "%s\n" "$supported" >&6; }
8009		if test "$supported" = "yes" ; then
8010			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
8011			found="yes"
8012		fi
8013	fi
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029xorg_testset_save_CFLAGS="$CFLAGS"
8030
8031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8034printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8035if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8036then :
8037  printf %s "(cached) " >&6
8038else case e in #(
8039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041int i;
8042_ACEOF
8043if ac_fn_c_try_compile "$LINENO"
8044then :
8045  xorg_cv_cc_flag_unknown_warning_option=yes
8046else case e in #(
8047  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8048esac
8049fi
8050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8051esac
8052fi
8053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056	CFLAGS="$xorg_testset_save_CFLAGS"
8057fi
8058
8059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8062	fi
8063	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8067then :
8068  printf %s "(cached) " >&6
8069else case e in #(
8070  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071/* end confdefs.h.  */
8072int i;
8073_ACEOF
8074if ac_fn_c_try_compile "$LINENO"
8075then :
8076  xorg_cv_cc_flag_unused_command_line_argument=yes
8077else case e in #(
8078  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8079esac
8080fi
8081rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8082esac
8083fi
8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8085printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8087	CFLAGS="$xorg_testset_save_CFLAGS"
8088fi
8089
8090found="no"
8091
8092	if test $found = "no" ; then
8093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095		fi
8096
8097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8099		fi
8100
8101		CFLAGS="$CFLAGS -Wuninitialized"
8102
8103		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
8104printf %s "checking if $CC supports -Wuninitialized... " >&6; }
8105		cacheid=xorg_cv_cc_flag__Wuninitialized
8106		if eval test \${$cacheid+y}
8107then :
8108  printf %s "(cached) " >&6
8109else case e in #(
8110  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111/* end confdefs.h.  */
8112int i;
8113int
8114main (void)
8115{
8116
8117  ;
8118  return 0;
8119}
8120_ACEOF
8121if ac_fn_c_try_link "$LINENO"
8122then :
8123  eval $cacheid=yes
8124else case e in #(
8125  e) eval $cacheid=no ;;
8126esac
8127fi
8128rm -f core conftest.err conftest.$ac_objext conftest.beam \
8129    conftest$ac_exeext conftest.$ac_ext ;;
8130esac
8131fi
8132
8133
8134		CFLAGS="$xorg_testset_save_CFLAGS"
8135
8136		eval supported=\$$cacheid
8137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8138printf "%s\n" "$supported" >&6; }
8139		if test "$supported" = "yes" ; then
8140			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
8141			found="yes"
8142		fi
8143	fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159xorg_testset_save_CFLAGS="$CFLAGS"
8160
8161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8162	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8164printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8165if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8166then :
8167  printf %s "(cached) " >&6
8168else case e in #(
8169  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170/* end confdefs.h.  */
8171int i;
8172_ACEOF
8173if ac_fn_c_try_compile "$LINENO"
8174then :
8175  xorg_cv_cc_flag_unknown_warning_option=yes
8176else case e in #(
8177  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8178esac
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8181esac
8182fi
8183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8184printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8186	CFLAGS="$xorg_testset_save_CFLAGS"
8187fi
8188
8189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192	fi
8193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8195printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8196if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8197then :
8198  printf %s "(cached) " >&6
8199else case e in #(
8200  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h.  */
8202int i;
8203_ACEOF
8204if ac_fn_c_try_compile "$LINENO"
8205then :
8206  xorg_cv_cc_flag_unused_command_line_argument=yes
8207else case e in #(
8208  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8209esac
8210fi
8211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8212esac
8213fi
8214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8215printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8216	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8217	CFLAGS="$xorg_testset_save_CFLAGS"
8218fi
8219
8220found="no"
8221
8222	if test $found = "no" ; then
8223		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225		fi
8226
8227		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8228			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8229		fi
8230
8231		CFLAGS="$CFLAGS -Wshadow"
8232
8233		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
8234printf %s "checking if $CC supports -Wshadow... " >&6; }
8235		cacheid=xorg_cv_cc_flag__Wshadow
8236		if eval test \${$cacheid+y}
8237then :
8238  printf %s "(cached) " >&6
8239else case e in #(
8240  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243int
8244main (void)
8245{
8246
8247  ;
8248  return 0;
8249}
8250_ACEOF
8251if ac_fn_c_try_link "$LINENO"
8252then :
8253  eval $cacheid=yes
8254else case e in #(
8255  e) eval $cacheid=no ;;
8256esac
8257fi
8258rm -f core conftest.err conftest.$ac_objext conftest.beam \
8259    conftest$ac_exeext conftest.$ac_ext ;;
8260esac
8261fi
8262
8263
8264		CFLAGS="$xorg_testset_save_CFLAGS"
8265
8266		eval supported=\$$cacheid
8267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8268printf "%s\n" "$supported" >&6; }
8269		if test "$supported" = "yes" ; then
8270			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
8271			found="yes"
8272		fi
8273	fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289xorg_testset_save_CFLAGS="$CFLAGS"
8290
8291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8295if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8296then :
8297  printf %s "(cached) " >&6
8298else case e in #(
8299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"
8304then :
8305  xorg_cv_cc_flag_unknown_warning_option=yes
8306else case e in #(
8307  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8308esac
8309fi
8310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8311esac
8312fi
8313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8314printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8315	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8316	CFLAGS="$xorg_testset_save_CFLAGS"
8317fi
8318
8319if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8320	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8321		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8322	fi
8323	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8325printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8326if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8327then :
8328  printf %s "(cached) " >&6
8329else case e in #(
8330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333_ACEOF
8334if ac_fn_c_try_compile "$LINENO"
8335then :
8336  xorg_cv_cc_flag_unused_command_line_argument=yes
8337else case e in #(
8338  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8339esac
8340fi
8341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8342esac
8343fi
8344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8345printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8346	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8347	CFLAGS="$xorg_testset_save_CFLAGS"
8348fi
8349
8350found="no"
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 -Wmissing-noreturn"
8362
8363		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
8364printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
8365		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
8366		if eval test \${$cacheid+y}
8367then :
8368  printf %s "(cached) " >&6
8369else case e in #(
8370  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371/* end confdefs.h.  */
8372int i;
8373int
8374main (void)
8375{
8376
8377  ;
8378  return 0;
8379}
8380_ACEOF
8381if ac_fn_c_try_link "$LINENO"
8382then :
8383  eval $cacheid=yes
8384else case e in #(
8385  e) eval $cacheid=no ;;
8386esac
8387fi
8388rm -f core conftest.err conftest.$ac_objext conftest.beam \
8389    conftest$ac_exeext conftest.$ac_ext ;;
8390esac
8391fi
8392
8393
8394		CFLAGS="$xorg_testset_save_CFLAGS"
8395
8396		eval supported=\$$cacheid
8397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8398printf "%s\n" "$supported" >&6; }
8399		if test "$supported" = "yes" ; then
8400			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
8401			found="yes"
8402		fi
8403	fi
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419xorg_testset_save_CFLAGS="$CFLAGS"
8420
8421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8424printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8425if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8426then :
8427  printf %s "(cached) " >&6
8428else case e in #(
8429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430/* end confdefs.h.  */
8431int i;
8432_ACEOF
8433if ac_fn_c_try_compile "$LINENO"
8434then :
8435  xorg_cv_cc_flag_unknown_warning_option=yes
8436else case e in #(
8437  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8438esac
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8441esac
8442fi
8443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8446	CFLAGS="$xorg_testset_save_CFLAGS"
8447fi
8448
8449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452	fi
8453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8456if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8457then :
8458  printf %s "(cached) " >&6
8459else case e in #(
8460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462int i;
8463_ACEOF
8464if ac_fn_c_try_compile "$LINENO"
8465then :
8466  xorg_cv_cc_flag_unused_command_line_argument=yes
8467else case e in #(
8468  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8469esac
8470fi
8471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8472esac
8473fi
8474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8475printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8477	CFLAGS="$xorg_testset_save_CFLAGS"
8478fi
8479
8480found="no"
8481
8482	if test $found = "no" ; then
8483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485		fi
8486
8487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489		fi
8490
8491		CFLAGS="$CFLAGS -Wmissing-format-attribute"
8492
8493		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
8494printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
8495		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
8496		if eval test \${$cacheid+y}
8497then :
8498  printf %s "(cached) " >&6
8499else case e in #(
8500  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h.  */
8502int i;
8503int
8504main (void)
8505{
8506
8507  ;
8508  return 0;
8509}
8510_ACEOF
8511if ac_fn_c_try_link "$LINENO"
8512then :
8513  eval $cacheid=yes
8514else case e in #(
8515  e) eval $cacheid=no ;;
8516esac
8517fi
8518rm -f core conftest.err conftest.$ac_objext conftest.beam \
8519    conftest$ac_exeext conftest.$ac_ext ;;
8520esac
8521fi
8522
8523
8524		CFLAGS="$xorg_testset_save_CFLAGS"
8525
8526		eval supported=\$$cacheid
8527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8528printf "%s\n" "$supported" >&6; }
8529		if test "$supported" = "yes" ; then
8530			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
8531			found="yes"
8532		fi
8533	fi
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549xorg_testset_save_CFLAGS="$CFLAGS"
8550
8551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8554printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8555if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8556then :
8557  printf %s "(cached) " >&6
8558else case e in #(
8559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560/* end confdefs.h.  */
8561int i;
8562_ACEOF
8563if ac_fn_c_try_compile "$LINENO"
8564then :
8565  xorg_cv_cc_flag_unknown_warning_option=yes
8566else case e in #(
8567  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8568esac
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8571esac
8572fi
8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8574printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8575	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8576	CFLAGS="$xorg_testset_save_CFLAGS"
8577fi
8578
8579if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8580	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8581		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8582	fi
8583	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8585printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8586if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8587then :
8588  printf %s "(cached) " >&6
8589else case e in #(
8590  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8591/* end confdefs.h.  */
8592int i;
8593_ACEOF
8594if ac_fn_c_try_compile "$LINENO"
8595then :
8596  xorg_cv_cc_flag_unused_command_line_argument=yes
8597else case e in #(
8598  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8599esac
8600fi
8601rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8602esac
8603fi
8604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8605printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8607	CFLAGS="$xorg_testset_save_CFLAGS"
8608fi
8609
8610found="no"
8611
8612	if test $found = "no" ; then
8613		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8615		fi
8616
8617		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8619		fi
8620
8621		CFLAGS="$CFLAGS -Wredundant-decls"
8622
8623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
8624printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
8625		cacheid=xorg_cv_cc_flag__Wredundant_decls
8626		if eval test \${$cacheid+y}
8627then :
8628  printf %s "(cached) " >&6
8629else case e in #(
8630  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633int
8634main (void)
8635{
8636
8637  ;
8638  return 0;
8639}
8640_ACEOF
8641if ac_fn_c_try_link "$LINENO"
8642then :
8643  eval $cacheid=yes
8644else case e in #(
8645  e) eval $cacheid=no ;;
8646esac
8647fi
8648rm -f core conftest.err conftest.$ac_objext conftest.beam \
8649    conftest$ac_exeext conftest.$ac_ext ;;
8650esac
8651fi
8652
8653
8654		CFLAGS="$xorg_testset_save_CFLAGS"
8655
8656		eval supported=\$$cacheid
8657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8658printf "%s\n" "$supported" >&6; }
8659		if test "$supported" = "yes" ; then
8660			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
8661			found="yes"
8662		fi
8663	fi
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679xorg_testset_save_CFLAGS="$CFLAGS"
8680
8681if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8682	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8683	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8684printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8685if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8686then :
8687  printf %s "(cached) " >&6
8688else case e in #(
8689  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690/* end confdefs.h.  */
8691int i;
8692_ACEOF
8693if ac_fn_c_try_compile "$LINENO"
8694then :
8695  xorg_cv_cc_flag_unknown_warning_option=yes
8696else case e in #(
8697  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8698esac
8699fi
8700rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8701esac
8702fi
8703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8704printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8706	CFLAGS="$xorg_testset_save_CFLAGS"
8707fi
8708
8709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712	fi
8713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8715printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8716if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8717then :
8718  printf %s "(cached) " >&6
8719else case e in #(
8720  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h.  */
8722int i;
8723_ACEOF
8724if ac_fn_c_try_compile "$LINENO"
8725then :
8726  xorg_cv_cc_flag_unused_command_line_argument=yes
8727else case e in #(
8728  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8729esac
8730fi
8731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8732esac
8733fi
8734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8737	CFLAGS="$xorg_testset_save_CFLAGS"
8738fi
8739
8740found="no"
8741
8742	if test $found = "no" ; then
8743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8745		fi
8746
8747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749		fi
8750
8751		CFLAGS="$CFLAGS -Wlogical-op"
8752
8753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
8754printf %s "checking if $CC supports -Wlogical-op... " >&6; }
8755		cacheid=xorg_cv_cc_flag__Wlogical_op
8756		if eval test \${$cacheid+y}
8757then :
8758  printf %s "(cached) " >&6
8759else case e in #(
8760  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761/* end confdefs.h.  */
8762int i;
8763int
8764main (void)
8765{
8766
8767  ;
8768  return 0;
8769}
8770_ACEOF
8771if ac_fn_c_try_link "$LINENO"
8772then :
8773  eval $cacheid=yes
8774else case e in #(
8775  e) eval $cacheid=no ;;
8776esac
8777fi
8778rm -f core conftest.err conftest.$ac_objext conftest.beam \
8779    conftest$ac_exeext conftest.$ac_ext ;;
8780esac
8781fi
8782
8783
8784		CFLAGS="$xorg_testset_save_CFLAGS"
8785
8786		eval supported=\$$cacheid
8787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8788printf "%s\n" "$supported" >&6; }
8789		if test "$supported" = "yes" ; then
8790			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
8791			found="yes"
8792		fi
8793	fi
8794
8795
8796
8797# These are currently disabled because they are noisy.  They will be enabled
8798# in the future once the codebase is sufficiently modernized to silence
8799# them.  For now, I don't want them to drown out the other warnings.
8800# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
8801# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
8802# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
8803
8804# Turn some warnings into errors, so we don't accidentally get successful builds
8805# when there are problems that should be fixed.
8806
8807if test "x$SELECTIVE_WERROR" = "xyes" ; then
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821xorg_testset_save_CFLAGS="$CFLAGS"
8822
8823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8825	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8826printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8827if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8828then :
8829  printf %s "(cached) " >&6
8830else case e in #(
8831  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832/* end confdefs.h.  */
8833int i;
8834_ACEOF
8835if ac_fn_c_try_compile "$LINENO"
8836then :
8837  xorg_cv_cc_flag_unknown_warning_option=yes
8838else case e in #(
8839  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8840esac
8841fi
8842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8843esac
8844fi
8845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8846printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8847	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8848	CFLAGS="$xorg_testset_save_CFLAGS"
8849fi
8850
8851if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8852	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8853		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8854	fi
8855	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8857printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8858if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8859then :
8860  printf %s "(cached) " >&6
8861else case e in #(
8862  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863/* end confdefs.h.  */
8864int i;
8865_ACEOF
8866if ac_fn_c_try_compile "$LINENO"
8867then :
8868  xorg_cv_cc_flag_unused_command_line_argument=yes
8869else case e in #(
8870  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8871esac
8872fi
8873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8874esac
8875fi
8876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8877printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8879	CFLAGS="$xorg_testset_save_CFLAGS"
8880fi
8881
8882found="no"
8883
8884	if test $found = "no" ; then
8885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887		fi
8888
8889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8891		fi
8892
8893		CFLAGS="$CFLAGS -Werror=implicit"
8894
8895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
8896printf %s "checking if $CC supports -Werror=implicit... " >&6; }
8897		cacheid=xorg_cv_cc_flag__Werror_implicit
8898		if eval test \${$cacheid+y}
8899then :
8900  printf %s "(cached) " >&6
8901else case e in #(
8902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8903/* end confdefs.h.  */
8904int i;
8905int
8906main (void)
8907{
8908
8909  ;
8910  return 0;
8911}
8912_ACEOF
8913if ac_fn_c_try_link "$LINENO"
8914then :
8915  eval $cacheid=yes
8916else case e in #(
8917  e) eval $cacheid=no ;;
8918esac
8919fi
8920rm -f core conftest.err conftest.$ac_objext conftest.beam \
8921    conftest$ac_exeext conftest.$ac_ext ;;
8922esac
8923fi
8924
8925
8926		CFLAGS="$xorg_testset_save_CFLAGS"
8927
8928		eval supported=\$$cacheid
8929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8930printf "%s\n" "$supported" >&6; }
8931		if test "$supported" = "yes" ; then
8932			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
8933			found="yes"
8934		fi
8935	fi
8936
8937	if test $found = "no" ; then
8938		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8939			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940		fi
8941
8942		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8943			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8944		fi
8945
8946		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8947
8948		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
8949printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
8950		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
8951		if eval test \${$cacheid+y}
8952then :
8953  printf %s "(cached) " >&6
8954else case e in #(
8955  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956/* end confdefs.h.  */
8957int i;
8958int
8959main (void)
8960{
8961
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966if ac_fn_c_try_link "$LINENO"
8967then :
8968  eval $cacheid=yes
8969else case e in #(
8970  e) eval $cacheid=no ;;
8971esac
8972fi
8973rm -f core conftest.err conftest.$ac_objext conftest.beam \
8974    conftest$ac_exeext conftest.$ac_ext ;;
8975esac
8976fi
8977
8978
8979		CFLAGS="$xorg_testset_save_CFLAGS"
8980
8981		eval supported=\$$cacheid
8982		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8983printf "%s\n" "$supported" >&6; }
8984		if test "$supported" = "yes" ; then
8985			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8986			found="yes"
8987		fi
8988	fi
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004xorg_testset_save_CFLAGS="$CFLAGS"
9005
9006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9009printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9010if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9011then :
9012  printf %s "(cached) " >&6
9013else case e in #(
9014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015/* end confdefs.h.  */
9016int i;
9017_ACEOF
9018if ac_fn_c_try_compile "$LINENO"
9019then :
9020  xorg_cv_cc_flag_unknown_warning_option=yes
9021else case e in #(
9022  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9023esac
9024fi
9025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9026esac
9027fi
9028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9029printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9030	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9031	CFLAGS="$xorg_testset_save_CFLAGS"
9032fi
9033
9034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9035	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9036		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9037	fi
9038	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9039	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9040printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9041if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9042then :
9043  printf %s "(cached) " >&6
9044else case e in #(
9045  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046/* end confdefs.h.  */
9047int i;
9048_ACEOF
9049if ac_fn_c_try_compile "$LINENO"
9050then :
9051  xorg_cv_cc_flag_unused_command_line_argument=yes
9052else case e in #(
9053  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9054esac
9055fi
9056rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9057esac
9058fi
9059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9062	CFLAGS="$xorg_testset_save_CFLAGS"
9063fi
9064
9065found="no"
9066
9067	if test $found = "no" ; then
9068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070		fi
9071
9072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9074		fi
9075
9076		CFLAGS="$CFLAGS -Werror=nonnull"
9077
9078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
9079printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
9080		cacheid=xorg_cv_cc_flag__Werror_nonnull
9081		if eval test \${$cacheid+y}
9082then :
9083  printf %s "(cached) " >&6
9084else case e in #(
9085  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086/* end confdefs.h.  */
9087int i;
9088int
9089main (void)
9090{
9091
9092  ;
9093  return 0;
9094}
9095_ACEOF
9096if ac_fn_c_try_link "$LINENO"
9097then :
9098  eval $cacheid=yes
9099else case e in #(
9100  e) eval $cacheid=no ;;
9101esac
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.beam \
9104    conftest$ac_exeext conftest.$ac_ext ;;
9105esac
9106fi
9107
9108
9109		CFLAGS="$xorg_testset_save_CFLAGS"
9110
9111		eval supported=\$$cacheid
9112		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9113printf "%s\n" "$supported" >&6; }
9114		if test "$supported" = "yes" ; then
9115			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
9116			found="yes"
9117		fi
9118	fi
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134xorg_testset_save_CFLAGS="$CFLAGS"
9135
9136if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9137	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9139printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9140if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9141then :
9142  printf %s "(cached) " >&6
9143else case e in #(
9144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145/* end confdefs.h.  */
9146int i;
9147_ACEOF
9148if ac_fn_c_try_compile "$LINENO"
9149then :
9150  xorg_cv_cc_flag_unknown_warning_option=yes
9151else case e in #(
9152  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9153esac
9154fi
9155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9156esac
9157fi
9158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9159printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9161	CFLAGS="$xorg_testset_save_CFLAGS"
9162fi
9163
9164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9167	fi
9168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9170printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9171if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9172then :
9173  printf %s "(cached) " >&6
9174else case e in #(
9175  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176/* end confdefs.h.  */
9177int i;
9178_ACEOF
9179if ac_fn_c_try_compile "$LINENO"
9180then :
9181  xorg_cv_cc_flag_unused_command_line_argument=yes
9182else case e in #(
9183  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9184esac
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9187esac
9188fi
9189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9190printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9192	CFLAGS="$xorg_testset_save_CFLAGS"
9193fi
9194
9195found="no"
9196
9197	if test $found = "no" ; then
9198		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9200		fi
9201
9202		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9204		fi
9205
9206		CFLAGS="$CFLAGS -Werror=init-self"
9207
9208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
9209printf %s "checking if $CC supports -Werror=init-self... " >&6; }
9210		cacheid=xorg_cv_cc_flag__Werror_init_self
9211		if eval test \${$cacheid+y}
9212then :
9213  printf %s "(cached) " >&6
9214else case e in #(
9215  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216/* end confdefs.h.  */
9217int i;
9218int
9219main (void)
9220{
9221
9222  ;
9223  return 0;
9224}
9225_ACEOF
9226if ac_fn_c_try_link "$LINENO"
9227then :
9228  eval $cacheid=yes
9229else case e in #(
9230  e) eval $cacheid=no ;;
9231esac
9232fi
9233rm -f core conftest.err conftest.$ac_objext conftest.beam \
9234    conftest$ac_exeext conftest.$ac_ext ;;
9235esac
9236fi
9237
9238
9239		CFLAGS="$xorg_testset_save_CFLAGS"
9240
9241		eval supported=\$$cacheid
9242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9243printf "%s\n" "$supported" >&6; }
9244		if test "$supported" = "yes" ; then
9245			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
9246			found="yes"
9247		fi
9248	fi
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264xorg_testset_save_CFLAGS="$CFLAGS"
9265
9266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9270if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9271then :
9272  printf %s "(cached) " >&6
9273else case e in #(
9274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h.  */
9276int i;
9277_ACEOF
9278if ac_fn_c_try_compile "$LINENO"
9279then :
9280  xorg_cv_cc_flag_unknown_warning_option=yes
9281else case e in #(
9282  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9283esac
9284fi
9285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9286esac
9287fi
9288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9291	CFLAGS="$xorg_testset_save_CFLAGS"
9292fi
9293
9294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9297	fi
9298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9301if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9302then :
9303  printf %s "(cached) " >&6
9304else case e in #(
9305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306/* end confdefs.h.  */
9307int i;
9308_ACEOF
9309if ac_fn_c_try_compile "$LINENO"
9310then :
9311  xorg_cv_cc_flag_unused_command_line_argument=yes
9312else case e in #(
9313  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9314esac
9315fi
9316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9317esac
9318fi
9319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9322	CFLAGS="$xorg_testset_save_CFLAGS"
9323fi
9324
9325found="no"
9326
9327	if test $found = "no" ; then
9328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9330		fi
9331
9332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334		fi
9335
9336		CFLAGS="$CFLAGS -Werror=main"
9337
9338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
9339printf %s "checking if $CC supports -Werror=main... " >&6; }
9340		cacheid=xorg_cv_cc_flag__Werror_main
9341		if eval test \${$cacheid+y}
9342then :
9343  printf %s "(cached) " >&6
9344else case e in #(
9345  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347int i;
9348int
9349main (void)
9350{
9351
9352  ;
9353  return 0;
9354}
9355_ACEOF
9356if ac_fn_c_try_link "$LINENO"
9357then :
9358  eval $cacheid=yes
9359else case e in #(
9360  e) eval $cacheid=no ;;
9361esac
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.beam \
9364    conftest$ac_exeext conftest.$ac_ext ;;
9365esac
9366fi
9367
9368
9369		CFLAGS="$xorg_testset_save_CFLAGS"
9370
9371		eval supported=\$$cacheid
9372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9373printf "%s\n" "$supported" >&6; }
9374		if test "$supported" = "yes" ; then
9375			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
9376			found="yes"
9377		fi
9378	fi
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394xorg_testset_save_CFLAGS="$CFLAGS"
9395
9396if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9397	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9399printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9400if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9401then :
9402  printf %s "(cached) " >&6
9403else case e in #(
9404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h.  */
9406int i;
9407_ACEOF
9408if ac_fn_c_try_compile "$LINENO"
9409then :
9410  xorg_cv_cc_flag_unknown_warning_option=yes
9411else case e in #(
9412  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9413esac
9414fi
9415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9416esac
9417fi
9418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9419printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9421	CFLAGS="$xorg_testset_save_CFLAGS"
9422fi
9423
9424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9427	fi
9428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9430printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9431if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9432then :
9433  printf %s "(cached) " >&6
9434else case e in #(
9435  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436/* end confdefs.h.  */
9437int i;
9438_ACEOF
9439if ac_fn_c_try_compile "$LINENO"
9440then :
9441  xorg_cv_cc_flag_unused_command_line_argument=yes
9442else case e in #(
9443  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9444esac
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9447esac
9448fi
9449{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9450printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9451	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9452	CFLAGS="$xorg_testset_save_CFLAGS"
9453fi
9454
9455found="no"
9456
9457	if test $found = "no" ; then
9458		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460		fi
9461
9462		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9463			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464		fi
9465
9466		CFLAGS="$CFLAGS -Werror=missing-braces"
9467
9468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
9469printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
9470		cacheid=xorg_cv_cc_flag__Werror_missing_braces
9471		if eval test \${$cacheid+y}
9472then :
9473  printf %s "(cached) " >&6
9474else case e in #(
9475  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478int
9479main (void)
9480{
9481
9482  ;
9483  return 0;
9484}
9485_ACEOF
9486if ac_fn_c_try_link "$LINENO"
9487then :
9488  eval $cacheid=yes
9489else case e in #(
9490  e) eval $cacheid=no ;;
9491esac
9492fi
9493rm -f core conftest.err conftest.$ac_objext conftest.beam \
9494    conftest$ac_exeext conftest.$ac_ext ;;
9495esac
9496fi
9497
9498
9499		CFLAGS="$xorg_testset_save_CFLAGS"
9500
9501		eval supported=\$$cacheid
9502		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9503printf "%s\n" "$supported" >&6; }
9504		if test "$supported" = "yes" ; then
9505			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
9506			found="yes"
9507		fi
9508	fi
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524xorg_testset_save_CFLAGS="$CFLAGS"
9525
9526if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9527	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9529printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9530if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9531then :
9532  printf %s "(cached) " >&6
9533else case e in #(
9534  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535/* end confdefs.h.  */
9536int i;
9537_ACEOF
9538if ac_fn_c_try_compile "$LINENO"
9539then :
9540  xorg_cv_cc_flag_unknown_warning_option=yes
9541else case e in #(
9542  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9543esac
9544fi
9545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9546esac
9547fi
9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9549printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9550	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9551	CFLAGS="$xorg_testset_save_CFLAGS"
9552fi
9553
9554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9555	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9556		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9557	fi
9558	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9560printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9561if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9562then :
9563  printf %s "(cached) " >&6
9564else case e in #(
9565  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int i;
9568_ACEOF
9569if ac_fn_c_try_compile "$LINENO"
9570then :
9571  xorg_cv_cc_flag_unused_command_line_argument=yes
9572else case e in #(
9573  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9574esac
9575fi
9576rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9577esac
9578fi
9579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9580printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9582	CFLAGS="$xorg_testset_save_CFLAGS"
9583fi
9584
9585found="no"
9586
9587	if test $found = "no" ; then
9588		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9590		fi
9591
9592		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9594		fi
9595
9596		CFLAGS="$CFLAGS -Werror=sequence-point"
9597
9598		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
9599printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
9600		cacheid=xorg_cv_cc_flag__Werror_sequence_point
9601		if eval test \${$cacheid+y}
9602then :
9603  printf %s "(cached) " >&6
9604else case e in #(
9605  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606/* end confdefs.h.  */
9607int i;
9608int
9609main (void)
9610{
9611
9612  ;
9613  return 0;
9614}
9615_ACEOF
9616if ac_fn_c_try_link "$LINENO"
9617then :
9618  eval $cacheid=yes
9619else case e in #(
9620  e) eval $cacheid=no ;;
9621esac
9622fi
9623rm -f core conftest.err conftest.$ac_objext conftest.beam \
9624    conftest$ac_exeext conftest.$ac_ext ;;
9625esac
9626fi
9627
9628
9629		CFLAGS="$xorg_testset_save_CFLAGS"
9630
9631		eval supported=\$$cacheid
9632		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9633printf "%s\n" "$supported" >&6; }
9634		if test "$supported" = "yes" ; then
9635			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
9636			found="yes"
9637		fi
9638	fi
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654xorg_testset_save_CFLAGS="$CFLAGS"
9655
9656if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9657	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9659printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9660if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9661then :
9662  printf %s "(cached) " >&6
9663else case e in #(
9664  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665/* end confdefs.h.  */
9666int i;
9667_ACEOF
9668if ac_fn_c_try_compile "$LINENO"
9669then :
9670  xorg_cv_cc_flag_unknown_warning_option=yes
9671else case e in #(
9672  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9673esac
9674fi
9675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9676esac
9677fi
9678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9679printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9680	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9681	CFLAGS="$xorg_testset_save_CFLAGS"
9682fi
9683
9684if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9685	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9686		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9687	fi
9688	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9690printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9691if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9692then :
9693  printf %s "(cached) " >&6
9694else case e in #(
9695  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697int i;
9698_ACEOF
9699if ac_fn_c_try_compile "$LINENO"
9700then :
9701  xorg_cv_cc_flag_unused_command_line_argument=yes
9702else case e in #(
9703  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9704esac
9705fi
9706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9707esac
9708fi
9709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712	CFLAGS="$xorg_testset_save_CFLAGS"
9713fi
9714
9715found="no"
9716
9717	if test $found = "no" ; then
9718		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9719			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720		fi
9721
9722		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9723			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9724		fi
9725
9726		CFLAGS="$CFLAGS -Werror=return-type"
9727
9728		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
9729printf %s "checking if $CC supports -Werror=return-type... " >&6; }
9730		cacheid=xorg_cv_cc_flag__Werror_return_type
9731		if eval test \${$cacheid+y}
9732then :
9733  printf %s "(cached) " >&6
9734else case e in #(
9735  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h.  */
9737int i;
9738int
9739main (void)
9740{
9741
9742  ;
9743  return 0;
9744}
9745_ACEOF
9746if ac_fn_c_try_link "$LINENO"
9747then :
9748  eval $cacheid=yes
9749else case e in #(
9750  e) eval $cacheid=no ;;
9751esac
9752fi
9753rm -f core conftest.err conftest.$ac_objext conftest.beam \
9754    conftest$ac_exeext conftest.$ac_ext ;;
9755esac
9756fi
9757
9758
9759		CFLAGS="$xorg_testset_save_CFLAGS"
9760
9761		eval supported=\$$cacheid
9762		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9763printf "%s\n" "$supported" >&6; }
9764		if test "$supported" = "yes" ; then
9765			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
9766			found="yes"
9767		fi
9768	fi
9769
9770	if test $found = "no" ; then
9771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773		fi
9774
9775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9777		fi
9778
9779		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9780
9781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
9782printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
9783		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
9784		if eval test \${$cacheid+y}
9785then :
9786  printf %s "(cached) " >&6
9787else case e in #(
9788  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9789/* end confdefs.h.  */
9790int i;
9791int
9792main (void)
9793{
9794
9795  ;
9796  return 0;
9797}
9798_ACEOF
9799if ac_fn_c_try_link "$LINENO"
9800then :
9801  eval $cacheid=yes
9802else case e in #(
9803  e) eval $cacheid=no ;;
9804esac
9805fi
9806rm -f core conftest.err conftest.$ac_objext conftest.beam \
9807    conftest$ac_exeext conftest.$ac_ext ;;
9808esac
9809fi
9810
9811
9812		CFLAGS="$xorg_testset_save_CFLAGS"
9813
9814		eval supported=\$$cacheid
9815		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9816printf "%s\n" "$supported" >&6; }
9817		if test "$supported" = "yes" ; then
9818			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
9819			found="yes"
9820		fi
9821	fi
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837xorg_testset_save_CFLAGS="$CFLAGS"
9838
9839if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9840	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9842printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9843if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9844then :
9845  printf %s "(cached) " >&6
9846else case e in #(
9847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849int i;
9850_ACEOF
9851if ac_fn_c_try_compile "$LINENO"
9852then :
9853  xorg_cv_cc_flag_unknown_warning_option=yes
9854else case e in #(
9855  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9856esac
9857fi
9858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9859esac
9860fi
9861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9862printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9864	CFLAGS="$xorg_testset_save_CFLAGS"
9865fi
9866
9867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870	fi
9871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9873printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9874if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9875then :
9876  printf %s "(cached) " >&6
9877else case e in #(
9878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879/* end confdefs.h.  */
9880int i;
9881_ACEOF
9882if ac_fn_c_try_compile "$LINENO"
9883then :
9884  xorg_cv_cc_flag_unused_command_line_argument=yes
9885else case e in #(
9886  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9887esac
9888fi
9889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9890esac
9891fi
9892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9893printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9895	CFLAGS="$xorg_testset_save_CFLAGS"
9896fi
9897
9898found="no"
9899
9900	if test $found = "no" ; then
9901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903		fi
9904
9905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9907		fi
9908
9909		CFLAGS="$CFLAGS -Werror=trigraphs"
9910
9911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
9912printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
9913		cacheid=xorg_cv_cc_flag__Werror_trigraphs
9914		if eval test \${$cacheid+y}
9915then :
9916  printf %s "(cached) " >&6
9917else case e in #(
9918  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919/* end confdefs.h.  */
9920int i;
9921int
9922main (void)
9923{
9924
9925  ;
9926  return 0;
9927}
9928_ACEOF
9929if ac_fn_c_try_link "$LINENO"
9930then :
9931  eval $cacheid=yes
9932else case e in #(
9933  e) eval $cacheid=no ;;
9934esac
9935fi
9936rm -f core conftest.err conftest.$ac_objext conftest.beam \
9937    conftest$ac_exeext conftest.$ac_ext ;;
9938esac
9939fi
9940
9941
9942		CFLAGS="$xorg_testset_save_CFLAGS"
9943
9944		eval supported=\$$cacheid
9945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9946printf "%s\n" "$supported" >&6; }
9947		if test "$supported" = "yes" ; then
9948			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
9949			found="yes"
9950		fi
9951	fi
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967xorg_testset_save_CFLAGS="$CFLAGS"
9968
9969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9974then :
9975  printf %s "(cached) " >&6
9976else case e in #(
9977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h.  */
9979int i;
9980_ACEOF
9981if ac_fn_c_try_compile "$LINENO"
9982then :
9983  xorg_cv_cc_flag_unknown_warning_option=yes
9984else case e in #(
9985  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9986esac
9987fi
9988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9989esac
9990fi
9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9992printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9994	CFLAGS="$xorg_testset_save_CFLAGS"
9995fi
9996
9997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10000	fi
10001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10003printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10004if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10005then :
10006  printf %s "(cached) " >&6
10007else case e in #(
10008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10009/* end confdefs.h.  */
10010int i;
10011_ACEOF
10012if ac_fn_c_try_compile "$LINENO"
10013then :
10014  xorg_cv_cc_flag_unused_command_line_argument=yes
10015else case e in #(
10016  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10017esac
10018fi
10019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10020esac
10021fi
10022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10023printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10024	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10025	CFLAGS="$xorg_testset_save_CFLAGS"
10026fi
10027
10028found="no"
10029
10030	if test $found = "no" ; then
10031		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10032			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10033		fi
10034
10035		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10036			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037		fi
10038
10039		CFLAGS="$CFLAGS -Werror=array-bounds"
10040
10041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
10042printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
10043		cacheid=xorg_cv_cc_flag__Werror_array_bounds
10044		if eval test \${$cacheid+y}
10045then :
10046  printf %s "(cached) " >&6
10047else case e in #(
10048  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049/* end confdefs.h.  */
10050int i;
10051int
10052main (void)
10053{
10054
10055  ;
10056  return 0;
10057}
10058_ACEOF
10059if ac_fn_c_try_link "$LINENO"
10060then :
10061  eval $cacheid=yes
10062else case e in #(
10063  e) eval $cacheid=no ;;
10064esac
10065fi
10066rm -f core conftest.err conftest.$ac_objext conftest.beam \
10067    conftest$ac_exeext conftest.$ac_ext ;;
10068esac
10069fi
10070
10071
10072		CFLAGS="$xorg_testset_save_CFLAGS"
10073
10074		eval supported=\$$cacheid
10075		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10076printf "%s\n" "$supported" >&6; }
10077		if test "$supported" = "yes" ; then
10078			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
10079			found="yes"
10080		fi
10081	fi
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097xorg_testset_save_CFLAGS="$CFLAGS"
10098
10099if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10100	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10102printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10103if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10104then :
10105  printf %s "(cached) " >&6
10106else case e in #(
10107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108/* end confdefs.h.  */
10109int i;
10110_ACEOF
10111if ac_fn_c_try_compile "$LINENO"
10112then :
10113  xorg_cv_cc_flag_unknown_warning_option=yes
10114else case e in #(
10115  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10116esac
10117fi
10118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10119esac
10120fi
10121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10122printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10124	CFLAGS="$xorg_testset_save_CFLAGS"
10125fi
10126
10127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10130	fi
10131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10133printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10134if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10135then :
10136  printf %s "(cached) " >&6
10137else case e in #(
10138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int i;
10141_ACEOF
10142if ac_fn_c_try_compile "$LINENO"
10143then :
10144  xorg_cv_cc_flag_unused_command_line_argument=yes
10145else case e in #(
10146  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10147esac
10148fi
10149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10150esac
10151fi
10152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10153printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10155	CFLAGS="$xorg_testset_save_CFLAGS"
10156fi
10157
10158found="no"
10159
10160	if test $found = "no" ; then
10161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10163		fi
10164
10165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10167		fi
10168
10169		CFLAGS="$CFLAGS -Werror=write-strings"
10170
10171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
10172printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
10173		cacheid=xorg_cv_cc_flag__Werror_write_strings
10174		if eval test \${$cacheid+y}
10175then :
10176  printf %s "(cached) " >&6
10177else case e in #(
10178  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179/* end confdefs.h.  */
10180int i;
10181int
10182main (void)
10183{
10184
10185  ;
10186  return 0;
10187}
10188_ACEOF
10189if ac_fn_c_try_link "$LINENO"
10190then :
10191  eval $cacheid=yes
10192else case e in #(
10193  e) eval $cacheid=no ;;
10194esac
10195fi
10196rm -f core conftest.err conftest.$ac_objext conftest.beam \
10197    conftest$ac_exeext conftest.$ac_ext ;;
10198esac
10199fi
10200
10201
10202		CFLAGS="$xorg_testset_save_CFLAGS"
10203
10204		eval supported=\$$cacheid
10205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10206printf "%s\n" "$supported" >&6; }
10207		if test "$supported" = "yes" ; then
10208			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
10209			found="yes"
10210		fi
10211	fi
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227xorg_testset_save_CFLAGS="$CFLAGS"
10228
10229if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10230	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10232printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10233if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10234then :
10235  printf %s "(cached) " >&6
10236else case e in #(
10237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238/* end confdefs.h.  */
10239int i;
10240_ACEOF
10241if ac_fn_c_try_compile "$LINENO"
10242then :
10243  xorg_cv_cc_flag_unknown_warning_option=yes
10244else case e in #(
10245  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10246esac
10247fi
10248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10249esac
10250fi
10251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10252printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10253	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10254	CFLAGS="$xorg_testset_save_CFLAGS"
10255fi
10256
10257if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10258	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10259		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10260	fi
10261	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10263printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10264if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10265then :
10266  printf %s "(cached) " >&6
10267else case e in #(
10268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h.  */
10270int i;
10271_ACEOF
10272if ac_fn_c_try_compile "$LINENO"
10273then :
10274  xorg_cv_cc_flag_unused_command_line_argument=yes
10275else case e in #(
10276  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10277esac
10278fi
10279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10280esac
10281fi
10282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10283printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10284	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10285	CFLAGS="$xorg_testset_save_CFLAGS"
10286fi
10287
10288found="no"
10289
10290	if test $found = "no" ; then
10291		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293		fi
10294
10295		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10296			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10297		fi
10298
10299		CFLAGS="$CFLAGS -Werror=address"
10300
10301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
10302printf %s "checking if $CC supports -Werror=address... " >&6; }
10303		cacheid=xorg_cv_cc_flag__Werror_address
10304		if eval test \${$cacheid+y}
10305then :
10306  printf %s "(cached) " >&6
10307else case e in #(
10308  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10309/* end confdefs.h.  */
10310int i;
10311int
10312main (void)
10313{
10314
10315  ;
10316  return 0;
10317}
10318_ACEOF
10319if ac_fn_c_try_link "$LINENO"
10320then :
10321  eval $cacheid=yes
10322else case e in #(
10323  e) eval $cacheid=no ;;
10324esac
10325fi
10326rm -f core conftest.err conftest.$ac_objext conftest.beam \
10327    conftest$ac_exeext conftest.$ac_ext ;;
10328esac
10329fi
10330
10331
10332		CFLAGS="$xorg_testset_save_CFLAGS"
10333
10334		eval supported=\$$cacheid
10335		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10336printf "%s\n" "$supported" >&6; }
10337		if test "$supported" = "yes" ; then
10338			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
10339			found="yes"
10340		fi
10341	fi
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357xorg_testset_save_CFLAGS="$CFLAGS"
10358
10359if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10360	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10362printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10363if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10364then :
10365  printf %s "(cached) " >&6
10366else case e in #(
10367  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370_ACEOF
10371if ac_fn_c_try_compile "$LINENO"
10372then :
10373  xorg_cv_cc_flag_unknown_warning_option=yes
10374else case e in #(
10375  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10376esac
10377fi
10378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10379esac
10380fi
10381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10382printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10383	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10384	CFLAGS="$xorg_testset_save_CFLAGS"
10385fi
10386
10387if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10388	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10389		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10390	fi
10391	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10393printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10394if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10395then :
10396  printf %s "(cached) " >&6
10397else case e in #(
10398  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399/* end confdefs.h.  */
10400int i;
10401_ACEOF
10402if ac_fn_c_try_compile "$LINENO"
10403then :
10404  xorg_cv_cc_flag_unused_command_line_argument=yes
10405else case e in #(
10406  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10407esac
10408fi
10409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10410esac
10411fi
10412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10413printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10414	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10415	CFLAGS="$xorg_testset_save_CFLAGS"
10416fi
10417
10418found="no"
10419
10420	if test $found = "no" ; then
10421		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423		fi
10424
10425		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10426			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427		fi
10428
10429		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
10430
10431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
10432printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
10433		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
10434		if eval test \${$cacheid+y}
10435then :
10436  printf %s "(cached) " >&6
10437else case e in #(
10438  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439/* end confdefs.h.  */
10440int i;
10441int
10442main (void)
10443{
10444
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449if ac_fn_c_try_link "$LINENO"
10450then :
10451  eval $cacheid=yes
10452else case e in #(
10453  e) eval $cacheid=no ;;
10454esac
10455fi
10456rm -f core conftest.err conftest.$ac_objext conftest.beam \
10457    conftest$ac_exeext conftest.$ac_ext ;;
10458esac
10459fi
10460
10461
10462		CFLAGS="$xorg_testset_save_CFLAGS"
10463
10464		eval supported=\$$cacheid
10465		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10466printf "%s\n" "$supported" >&6; }
10467		if test "$supported" = "yes" ; then
10468			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
10469			found="yes"
10470		fi
10471	fi
10472
10473	if test $found = "no" ; then
10474		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10475			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10476		fi
10477
10478		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10479			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10480		fi
10481
10482		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10483
10484		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
10485printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
10486		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
10487		if eval test \${$cacheid+y}
10488then :
10489  printf %s "(cached) " >&6
10490else case e in #(
10491  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492/* end confdefs.h.  */
10493int i;
10494int
10495main (void)
10496{
10497
10498  ;
10499  return 0;
10500}
10501_ACEOF
10502if ac_fn_c_try_link "$LINENO"
10503then :
10504  eval $cacheid=yes
10505else case e in #(
10506  e) eval $cacheid=no ;;
10507esac
10508fi
10509rm -f core conftest.err conftest.$ac_objext conftest.beam \
10510    conftest$ac_exeext conftest.$ac_ext ;;
10511esac
10512fi
10513
10514
10515		CFLAGS="$xorg_testset_save_CFLAGS"
10516
10517		eval supported=\$$cacheid
10518		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10519printf "%s\n" "$supported" >&6; }
10520		if test "$supported" = "yes" ; then
10521			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
10522			found="yes"
10523		fi
10524	fi
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540xorg_testset_save_CFLAGS="$CFLAGS"
10541
10542if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10543	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10544	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10545printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10546if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10547then :
10548  printf %s "(cached) " >&6
10549else case e in #(
10550  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10551/* end confdefs.h.  */
10552int i;
10553_ACEOF
10554if ac_fn_c_try_compile "$LINENO"
10555then :
10556  xorg_cv_cc_flag_unknown_warning_option=yes
10557else case e in #(
10558  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10559esac
10560fi
10561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10562esac
10563fi
10564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10565printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10566	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10567	CFLAGS="$xorg_testset_save_CFLAGS"
10568fi
10569
10570if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10571	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10572		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10573	fi
10574	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10575	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10576printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10577if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10578then :
10579  printf %s "(cached) " >&6
10580else case e in #(
10581  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582/* end confdefs.h.  */
10583int i;
10584_ACEOF
10585if ac_fn_c_try_compile "$LINENO"
10586then :
10587  xorg_cv_cc_flag_unused_command_line_argument=yes
10588else case e in #(
10589  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10590esac
10591fi
10592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10593esac
10594fi
10595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10598	CFLAGS="$xorg_testset_save_CFLAGS"
10599fi
10600
10601found="no"
10602
10603	if test $found = "no" ; then
10604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10606		fi
10607
10608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10610		fi
10611
10612		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
10613
10614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
10615printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
10616		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
10617		if eval test \${$cacheid+y}
10618then :
10619  printf %s "(cached) " >&6
10620else case e in #(
10621  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10622/* end confdefs.h.  */
10623int i;
10624int
10625main (void)
10626{
10627
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632if ac_fn_c_try_link "$LINENO"
10633then :
10634  eval $cacheid=yes
10635else case e in #(
10636  e) eval $cacheid=no ;;
10637esac
10638fi
10639rm -f core conftest.err conftest.$ac_objext conftest.beam \
10640    conftest$ac_exeext conftest.$ac_ext ;;
10641esac
10642fi
10643
10644
10645		CFLAGS="$xorg_testset_save_CFLAGS"
10646
10647		eval supported=\$$cacheid
10648		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10649printf "%s\n" "$supported" >&6; }
10650		if test "$supported" = "yes" ; then
10651			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
10652			found="yes"
10653		fi
10654	fi
10655
10656 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
10657else
10658{ printf "%s\n" "$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
10659printf "%s\n" "$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;}
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673xorg_testset_save_CFLAGS="$CFLAGS"
10674
10675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10678printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10679if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10680then :
10681  printf %s "(cached) " >&6
10682else case e in #(
10683  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h.  */
10685int i;
10686_ACEOF
10687if ac_fn_c_try_compile "$LINENO"
10688then :
10689  xorg_cv_cc_flag_unknown_warning_option=yes
10690else case e in #(
10691  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10692esac
10693fi
10694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10695esac
10696fi
10697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10698printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10700	CFLAGS="$xorg_testset_save_CFLAGS"
10701fi
10702
10703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10706	fi
10707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10709printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10710if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10711then :
10712  printf %s "(cached) " >&6
10713else case e in #(
10714  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715/* end confdefs.h.  */
10716int i;
10717_ACEOF
10718if ac_fn_c_try_compile "$LINENO"
10719then :
10720  xorg_cv_cc_flag_unused_command_line_argument=yes
10721else case e in #(
10722  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10723esac
10724fi
10725rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10726esac
10727fi
10728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10729printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10731	CFLAGS="$xorg_testset_save_CFLAGS"
10732fi
10733
10734found="no"
10735
10736	if test $found = "no" ; then
10737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10739		fi
10740
10741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10743		fi
10744
10745		CFLAGS="$CFLAGS -Wimplicit"
10746
10747		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
10748printf %s "checking if $CC supports -Wimplicit... " >&6; }
10749		cacheid=xorg_cv_cc_flag__Wimplicit
10750		if eval test \${$cacheid+y}
10751then :
10752  printf %s "(cached) " >&6
10753else case e in #(
10754  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755/* end confdefs.h.  */
10756int i;
10757int
10758main (void)
10759{
10760
10761  ;
10762  return 0;
10763}
10764_ACEOF
10765if ac_fn_c_try_link "$LINENO"
10766then :
10767  eval $cacheid=yes
10768else case e in #(
10769  e) eval $cacheid=no ;;
10770esac
10771fi
10772rm -f core conftest.err conftest.$ac_objext conftest.beam \
10773    conftest$ac_exeext conftest.$ac_ext ;;
10774esac
10775fi
10776
10777
10778		CFLAGS="$xorg_testset_save_CFLAGS"
10779
10780		eval supported=\$$cacheid
10781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10782printf "%s\n" "$supported" >&6; }
10783		if test "$supported" = "yes" ; then
10784			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
10785			found="yes"
10786		fi
10787	fi
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803xorg_testset_save_CFLAGS="$CFLAGS"
10804
10805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10808printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10809if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10810then :
10811  printf %s "(cached) " >&6
10812else case e in #(
10813  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h.  */
10815int i;
10816_ACEOF
10817if ac_fn_c_try_compile "$LINENO"
10818then :
10819  xorg_cv_cc_flag_unknown_warning_option=yes
10820else case e in #(
10821  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10822esac
10823fi
10824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10825esac
10826fi
10827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10828printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10829	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10830	CFLAGS="$xorg_testset_save_CFLAGS"
10831fi
10832
10833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10834	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10835		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10836	fi
10837	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10838	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10839printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10840if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10841then :
10842  printf %s "(cached) " >&6
10843else case e in #(
10844  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845/* end confdefs.h.  */
10846int i;
10847_ACEOF
10848if ac_fn_c_try_compile "$LINENO"
10849then :
10850  xorg_cv_cc_flag_unused_command_line_argument=yes
10851else case e in #(
10852  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10853esac
10854fi
10855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10856esac
10857fi
10858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10861	CFLAGS="$xorg_testset_save_CFLAGS"
10862fi
10863
10864found="no"
10865
10866	if test $found = "no" ; then
10867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10869		fi
10870
10871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10873		fi
10874
10875		CFLAGS="$CFLAGS -Wnonnull"
10876
10877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
10878printf %s "checking if $CC supports -Wnonnull... " >&6; }
10879		cacheid=xorg_cv_cc_flag__Wnonnull
10880		if eval test \${$cacheid+y}
10881then :
10882  printf %s "(cached) " >&6
10883else case e in #(
10884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885/* end confdefs.h.  */
10886int i;
10887int
10888main (void)
10889{
10890
10891  ;
10892  return 0;
10893}
10894_ACEOF
10895if ac_fn_c_try_link "$LINENO"
10896then :
10897  eval $cacheid=yes
10898else case e in #(
10899  e) eval $cacheid=no ;;
10900esac
10901fi
10902rm -f core conftest.err conftest.$ac_objext conftest.beam \
10903    conftest$ac_exeext conftest.$ac_ext ;;
10904esac
10905fi
10906
10907
10908		CFLAGS="$xorg_testset_save_CFLAGS"
10909
10910		eval supported=\$$cacheid
10911		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10912printf "%s\n" "$supported" >&6; }
10913		if test "$supported" = "yes" ; then
10914			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
10915			found="yes"
10916		fi
10917	fi
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933xorg_testset_save_CFLAGS="$CFLAGS"
10934
10935if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10936	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10938printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10939if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10940then :
10941  printf %s "(cached) " >&6
10942else case e in #(
10943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h.  */
10945int i;
10946_ACEOF
10947if ac_fn_c_try_compile "$LINENO"
10948then :
10949  xorg_cv_cc_flag_unknown_warning_option=yes
10950else case e in #(
10951  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10952esac
10953fi
10954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10955esac
10956fi
10957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10960	CFLAGS="$xorg_testset_save_CFLAGS"
10961fi
10962
10963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10966	fi
10967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10970if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10971then :
10972  printf %s "(cached) " >&6
10973else case e in #(
10974  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10975/* end confdefs.h.  */
10976int i;
10977_ACEOF
10978if ac_fn_c_try_compile "$LINENO"
10979then :
10980  xorg_cv_cc_flag_unused_command_line_argument=yes
10981else case e in #(
10982  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10983esac
10984fi
10985rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10986esac
10987fi
10988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10989printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10991	CFLAGS="$xorg_testset_save_CFLAGS"
10992fi
10993
10994found="no"
10995
10996	if test $found = "no" ; then
10997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10999		fi
11000
11001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11003		fi
11004
11005		CFLAGS="$CFLAGS -Winit-self"
11006
11007		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
11008printf %s "checking if $CC supports -Winit-self... " >&6; }
11009		cacheid=xorg_cv_cc_flag__Winit_self
11010		if eval test \${$cacheid+y}
11011then :
11012  printf %s "(cached) " >&6
11013else case e in #(
11014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015/* end confdefs.h.  */
11016int i;
11017int
11018main (void)
11019{
11020
11021  ;
11022  return 0;
11023}
11024_ACEOF
11025if ac_fn_c_try_link "$LINENO"
11026then :
11027  eval $cacheid=yes
11028else case e in #(
11029  e) eval $cacheid=no ;;
11030esac
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.beam \
11033    conftest$ac_exeext conftest.$ac_ext ;;
11034esac
11035fi
11036
11037
11038		CFLAGS="$xorg_testset_save_CFLAGS"
11039
11040		eval supported=\$$cacheid
11041		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11042printf "%s\n" "$supported" >&6; }
11043		if test "$supported" = "yes" ; then
11044			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
11045			found="yes"
11046		fi
11047	fi
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063xorg_testset_save_CFLAGS="$CFLAGS"
11064
11065if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11066	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11068printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11069if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11070then :
11071  printf %s "(cached) " >&6
11072else case e in #(
11073  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075int i;
11076_ACEOF
11077if ac_fn_c_try_compile "$LINENO"
11078then :
11079  xorg_cv_cc_flag_unknown_warning_option=yes
11080else case e in #(
11081  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11082esac
11083fi
11084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11085esac
11086fi
11087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11088printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11090	CFLAGS="$xorg_testset_save_CFLAGS"
11091fi
11092
11093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11096	fi
11097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11099printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11100if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11101then :
11102  printf %s "(cached) " >&6
11103else case e in #(
11104  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105/* end confdefs.h.  */
11106int i;
11107_ACEOF
11108if ac_fn_c_try_compile "$LINENO"
11109then :
11110  xorg_cv_cc_flag_unused_command_line_argument=yes
11111else case e in #(
11112  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11113esac
11114fi
11115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11116esac
11117fi
11118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11121	CFLAGS="$xorg_testset_save_CFLAGS"
11122fi
11123
11124found="no"
11125
11126	if test $found = "no" ; then
11127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11129		fi
11130
11131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11133		fi
11134
11135		CFLAGS="$CFLAGS -Wmain"
11136
11137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
11138printf %s "checking if $CC supports -Wmain... " >&6; }
11139		cacheid=xorg_cv_cc_flag__Wmain
11140		if eval test \${$cacheid+y}
11141then :
11142  printf %s "(cached) " >&6
11143else case e in #(
11144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145/* end confdefs.h.  */
11146int i;
11147int
11148main (void)
11149{
11150
11151  ;
11152  return 0;
11153}
11154_ACEOF
11155if ac_fn_c_try_link "$LINENO"
11156then :
11157  eval $cacheid=yes
11158else case e in #(
11159  e) eval $cacheid=no ;;
11160esac
11161fi
11162rm -f core conftest.err conftest.$ac_objext conftest.beam \
11163    conftest$ac_exeext conftest.$ac_ext ;;
11164esac
11165fi
11166
11167
11168		CFLAGS="$xorg_testset_save_CFLAGS"
11169
11170		eval supported=\$$cacheid
11171		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11172printf "%s\n" "$supported" >&6; }
11173		if test "$supported" = "yes" ; then
11174			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
11175			found="yes"
11176		fi
11177	fi
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193xorg_testset_save_CFLAGS="$CFLAGS"
11194
11195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11198printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11199if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11200then :
11201  printf %s "(cached) " >&6
11202else case e in #(
11203  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204/* end confdefs.h.  */
11205int i;
11206_ACEOF
11207if ac_fn_c_try_compile "$LINENO"
11208then :
11209  xorg_cv_cc_flag_unknown_warning_option=yes
11210else case e in #(
11211  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11212esac
11213fi
11214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11215esac
11216fi
11217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11220	CFLAGS="$xorg_testset_save_CFLAGS"
11221fi
11222
11223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11226	fi
11227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11231then :
11232  printf %s "(cached) " >&6
11233else case e in #(
11234  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235/* end confdefs.h.  */
11236int i;
11237_ACEOF
11238if ac_fn_c_try_compile "$LINENO"
11239then :
11240  xorg_cv_cc_flag_unused_command_line_argument=yes
11241else case e in #(
11242  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11243esac
11244fi
11245rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11246esac
11247fi
11248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11249printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11251	CFLAGS="$xorg_testset_save_CFLAGS"
11252fi
11253
11254found="no"
11255
11256	if test $found = "no" ; then
11257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11259		fi
11260
11261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11263		fi
11264
11265		CFLAGS="$CFLAGS -Wmissing-braces"
11266
11267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
11268printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
11269		cacheid=xorg_cv_cc_flag__Wmissing_braces
11270		if eval test \${$cacheid+y}
11271then :
11272  printf %s "(cached) " >&6
11273else case e in #(
11274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275/* end confdefs.h.  */
11276int i;
11277int
11278main (void)
11279{
11280
11281  ;
11282  return 0;
11283}
11284_ACEOF
11285if ac_fn_c_try_link "$LINENO"
11286then :
11287  eval $cacheid=yes
11288else case e in #(
11289  e) eval $cacheid=no ;;
11290esac
11291fi
11292rm -f core conftest.err conftest.$ac_objext conftest.beam \
11293    conftest$ac_exeext conftest.$ac_ext ;;
11294esac
11295fi
11296
11297
11298		CFLAGS="$xorg_testset_save_CFLAGS"
11299
11300		eval supported=\$$cacheid
11301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11302printf "%s\n" "$supported" >&6; }
11303		if test "$supported" = "yes" ; then
11304			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
11305			found="yes"
11306		fi
11307	fi
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323xorg_testset_save_CFLAGS="$CFLAGS"
11324
11325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11329if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11330then :
11331  printf %s "(cached) " >&6
11332else case e in #(
11333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334/* end confdefs.h.  */
11335int i;
11336_ACEOF
11337if ac_fn_c_try_compile "$LINENO"
11338then :
11339  xorg_cv_cc_flag_unknown_warning_option=yes
11340else case e in #(
11341  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11342esac
11343fi
11344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11345esac
11346fi
11347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11348printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11350	CFLAGS="$xorg_testset_save_CFLAGS"
11351fi
11352
11353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11356	fi
11357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11358	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11359printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11360if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11361then :
11362  printf %s "(cached) " >&6
11363else case e in #(
11364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365/* end confdefs.h.  */
11366int i;
11367_ACEOF
11368if ac_fn_c_try_compile "$LINENO"
11369then :
11370  xorg_cv_cc_flag_unused_command_line_argument=yes
11371else case e in #(
11372  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11373esac
11374fi
11375rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11376esac
11377fi
11378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11381	CFLAGS="$xorg_testset_save_CFLAGS"
11382fi
11383
11384found="no"
11385
11386	if test $found = "no" ; then
11387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11389		fi
11390
11391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11393		fi
11394
11395		CFLAGS="$CFLAGS -Wsequence-point"
11396
11397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
11398printf %s "checking if $CC supports -Wsequence-point... " >&6; }
11399		cacheid=xorg_cv_cc_flag__Wsequence_point
11400		if eval test \${$cacheid+y}
11401then :
11402  printf %s "(cached) " >&6
11403else case e in #(
11404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405/* end confdefs.h.  */
11406int i;
11407int
11408main (void)
11409{
11410
11411  ;
11412  return 0;
11413}
11414_ACEOF
11415if ac_fn_c_try_link "$LINENO"
11416then :
11417  eval $cacheid=yes
11418else case e in #(
11419  e) eval $cacheid=no ;;
11420esac
11421fi
11422rm -f core conftest.err conftest.$ac_objext conftest.beam \
11423    conftest$ac_exeext conftest.$ac_ext ;;
11424esac
11425fi
11426
11427
11428		CFLAGS="$xorg_testset_save_CFLAGS"
11429
11430		eval supported=\$$cacheid
11431		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11432printf "%s\n" "$supported" >&6; }
11433		if test "$supported" = "yes" ; then
11434			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
11435			found="yes"
11436		fi
11437	fi
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453xorg_testset_save_CFLAGS="$CFLAGS"
11454
11455if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11456	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11458printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11459if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11460then :
11461  printf %s "(cached) " >&6
11462else case e in #(
11463  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h.  */
11465int i;
11466_ACEOF
11467if ac_fn_c_try_compile "$LINENO"
11468then :
11469  xorg_cv_cc_flag_unknown_warning_option=yes
11470else case e in #(
11471  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11472esac
11473fi
11474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11475esac
11476fi
11477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11480	CFLAGS="$xorg_testset_save_CFLAGS"
11481fi
11482
11483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11486	fi
11487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11490if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11491then :
11492  printf %s "(cached) " >&6
11493else case e in #(
11494  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495/* end confdefs.h.  */
11496int i;
11497_ACEOF
11498if ac_fn_c_try_compile "$LINENO"
11499then :
11500  xorg_cv_cc_flag_unused_command_line_argument=yes
11501else case e in #(
11502  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11503esac
11504fi
11505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11506esac
11507fi
11508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11509printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11511	CFLAGS="$xorg_testset_save_CFLAGS"
11512fi
11513
11514found="no"
11515
11516	if test $found = "no" ; then
11517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11519		fi
11520
11521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11523		fi
11524
11525		CFLAGS="$CFLAGS -Wreturn-type"
11526
11527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
11528printf %s "checking if $CC supports -Wreturn-type... " >&6; }
11529		cacheid=xorg_cv_cc_flag__Wreturn_type
11530		if eval test \${$cacheid+y}
11531then :
11532  printf %s "(cached) " >&6
11533else case e in #(
11534  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h.  */
11536int i;
11537int
11538main (void)
11539{
11540
11541  ;
11542  return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_link "$LINENO"
11546then :
11547  eval $cacheid=yes
11548else case e in #(
11549  e) eval $cacheid=no ;;
11550esac
11551fi
11552rm -f core conftest.err conftest.$ac_objext conftest.beam \
11553    conftest$ac_exeext conftest.$ac_ext ;;
11554esac
11555fi
11556
11557
11558		CFLAGS="$xorg_testset_save_CFLAGS"
11559
11560		eval supported=\$$cacheid
11561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11562printf "%s\n" "$supported" >&6; }
11563		if test "$supported" = "yes" ; then
11564			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
11565			found="yes"
11566		fi
11567	fi
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583xorg_testset_save_CFLAGS="$CFLAGS"
11584
11585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11589if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11590then :
11591  printf %s "(cached) " >&6
11592else case e in #(
11593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594/* end confdefs.h.  */
11595int i;
11596_ACEOF
11597if ac_fn_c_try_compile "$LINENO"
11598then :
11599  xorg_cv_cc_flag_unknown_warning_option=yes
11600else case e in #(
11601  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11602esac
11603fi
11604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11605esac
11606fi
11607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11608printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11609	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11610	CFLAGS="$xorg_testset_save_CFLAGS"
11611fi
11612
11613if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11614	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11615		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11616	fi
11617	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11619printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11620if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11621then :
11622  printf %s "(cached) " >&6
11623else case e in #(
11624  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11625/* end confdefs.h.  */
11626int i;
11627_ACEOF
11628if ac_fn_c_try_compile "$LINENO"
11629then :
11630  xorg_cv_cc_flag_unused_command_line_argument=yes
11631else case e in #(
11632  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11633esac
11634fi
11635rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11636esac
11637fi
11638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11639printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11640	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11641	CFLAGS="$xorg_testset_save_CFLAGS"
11642fi
11643
11644found="no"
11645
11646	if test $found = "no" ; then
11647		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11648			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11649		fi
11650
11651		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11652			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11653		fi
11654
11655		CFLAGS="$CFLAGS -Wtrigraphs"
11656
11657		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
11658printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
11659		cacheid=xorg_cv_cc_flag__Wtrigraphs
11660		if eval test \${$cacheid+y}
11661then :
11662  printf %s "(cached) " >&6
11663else case e in #(
11664  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11665/* end confdefs.h.  */
11666int i;
11667int
11668main (void)
11669{
11670
11671  ;
11672  return 0;
11673}
11674_ACEOF
11675if ac_fn_c_try_link "$LINENO"
11676then :
11677  eval $cacheid=yes
11678else case e in #(
11679  e) eval $cacheid=no ;;
11680esac
11681fi
11682rm -f core conftest.err conftest.$ac_objext conftest.beam \
11683    conftest$ac_exeext conftest.$ac_ext ;;
11684esac
11685fi
11686
11687
11688		CFLAGS="$xorg_testset_save_CFLAGS"
11689
11690		eval supported=\$$cacheid
11691		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11692printf "%s\n" "$supported" >&6; }
11693		if test "$supported" = "yes" ; then
11694			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
11695			found="yes"
11696		fi
11697	fi
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713xorg_testset_save_CFLAGS="$CFLAGS"
11714
11715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11718printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11719if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11720then :
11721  printf %s "(cached) " >&6
11722else case e in #(
11723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724/* end confdefs.h.  */
11725int i;
11726_ACEOF
11727if ac_fn_c_try_compile "$LINENO"
11728then :
11729  xorg_cv_cc_flag_unknown_warning_option=yes
11730else case e in #(
11731  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11732esac
11733fi
11734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11735esac
11736fi
11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11738printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11739	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11740	CFLAGS="$xorg_testset_save_CFLAGS"
11741fi
11742
11743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11744	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11745		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11746	fi
11747	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11748	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11749printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11750if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11751then :
11752  printf %s "(cached) " >&6
11753else case e in #(
11754  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755/* end confdefs.h.  */
11756int i;
11757_ACEOF
11758if ac_fn_c_try_compile "$LINENO"
11759then :
11760  xorg_cv_cc_flag_unused_command_line_argument=yes
11761else case e in #(
11762  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11763esac
11764fi
11765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11766esac
11767fi
11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11769printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11771	CFLAGS="$xorg_testset_save_CFLAGS"
11772fi
11773
11774found="no"
11775
11776	if test $found = "no" ; then
11777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11779		fi
11780
11781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11783		fi
11784
11785		CFLAGS="$CFLAGS -Warray-bounds"
11786
11787		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
11788printf %s "checking if $CC supports -Warray-bounds... " >&6; }
11789		cacheid=xorg_cv_cc_flag__Warray_bounds
11790		if eval test \${$cacheid+y}
11791then :
11792  printf %s "(cached) " >&6
11793else case e in #(
11794  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795/* end confdefs.h.  */
11796int i;
11797int
11798main (void)
11799{
11800
11801  ;
11802  return 0;
11803}
11804_ACEOF
11805if ac_fn_c_try_link "$LINENO"
11806then :
11807  eval $cacheid=yes
11808else case e in #(
11809  e) eval $cacheid=no ;;
11810esac
11811fi
11812rm -f core conftest.err conftest.$ac_objext conftest.beam \
11813    conftest$ac_exeext conftest.$ac_ext ;;
11814esac
11815fi
11816
11817
11818		CFLAGS="$xorg_testset_save_CFLAGS"
11819
11820		eval supported=\$$cacheid
11821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11822printf "%s\n" "$supported" >&6; }
11823		if test "$supported" = "yes" ; then
11824			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
11825			found="yes"
11826		fi
11827	fi
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843xorg_testset_save_CFLAGS="$CFLAGS"
11844
11845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11850then :
11851  printf %s "(cached) " >&6
11852else case e in #(
11853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854/* end confdefs.h.  */
11855int i;
11856_ACEOF
11857if ac_fn_c_try_compile "$LINENO"
11858then :
11859  xorg_cv_cc_flag_unknown_warning_option=yes
11860else case e in #(
11861  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11862esac
11863fi
11864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11865esac
11866fi
11867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11870	CFLAGS="$xorg_testset_save_CFLAGS"
11871fi
11872
11873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11876	fi
11877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11881then :
11882  printf %s "(cached) " >&6
11883else case e in #(
11884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h.  */
11886int i;
11887_ACEOF
11888if ac_fn_c_try_compile "$LINENO"
11889then :
11890  xorg_cv_cc_flag_unused_command_line_argument=yes
11891else case e in #(
11892  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11893esac
11894fi
11895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11896esac
11897fi
11898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11901	CFLAGS="$xorg_testset_save_CFLAGS"
11902fi
11903
11904found="no"
11905
11906	if test $found = "no" ; then
11907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11909		fi
11910
11911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11913		fi
11914
11915		CFLAGS="$CFLAGS -Wwrite-strings"
11916
11917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
11918printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
11919		cacheid=xorg_cv_cc_flag__Wwrite_strings
11920		if eval test \${$cacheid+y}
11921then :
11922  printf %s "(cached) " >&6
11923else case e in #(
11924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925/* end confdefs.h.  */
11926int i;
11927int
11928main (void)
11929{
11930
11931  ;
11932  return 0;
11933}
11934_ACEOF
11935if ac_fn_c_try_link "$LINENO"
11936then :
11937  eval $cacheid=yes
11938else case e in #(
11939  e) eval $cacheid=no ;;
11940esac
11941fi
11942rm -f core conftest.err conftest.$ac_objext conftest.beam \
11943    conftest$ac_exeext conftest.$ac_ext ;;
11944esac
11945fi
11946
11947
11948		CFLAGS="$xorg_testset_save_CFLAGS"
11949
11950		eval supported=\$$cacheid
11951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11952printf "%s\n" "$supported" >&6; }
11953		if test "$supported" = "yes" ; then
11954			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
11955			found="yes"
11956		fi
11957	fi
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973xorg_testset_save_CFLAGS="$CFLAGS"
11974
11975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11980then :
11981  printf %s "(cached) " >&6
11982else case e in #(
11983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h.  */
11985int i;
11986_ACEOF
11987if ac_fn_c_try_compile "$LINENO"
11988then :
11989  xorg_cv_cc_flag_unknown_warning_option=yes
11990else case e in #(
11991  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11992esac
11993fi
11994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11995esac
11996fi
11997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12000	CFLAGS="$xorg_testset_save_CFLAGS"
12001fi
12002
12003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12006	fi
12007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12011then :
12012  printf %s "(cached) " >&6
12013else case e in #(
12014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015/* end confdefs.h.  */
12016int i;
12017_ACEOF
12018if ac_fn_c_try_compile "$LINENO"
12019then :
12020  xorg_cv_cc_flag_unused_command_line_argument=yes
12021else case e in #(
12022  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
12023esac
12024fi
12025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12026esac
12027fi
12028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12031	CFLAGS="$xorg_testset_save_CFLAGS"
12032fi
12033
12034found="no"
12035
12036	if test $found = "no" ; then
12037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12039		fi
12040
12041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12043		fi
12044
12045		CFLAGS="$CFLAGS -Waddress"
12046
12047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
12048printf %s "checking if $CC supports -Waddress... " >&6; }
12049		cacheid=xorg_cv_cc_flag__Waddress
12050		if eval test \${$cacheid+y}
12051then :
12052  printf %s "(cached) " >&6
12053else case e in #(
12054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055/* end confdefs.h.  */
12056int i;
12057int
12058main (void)
12059{
12060
12061  ;
12062  return 0;
12063}
12064_ACEOF
12065if ac_fn_c_try_link "$LINENO"
12066then :
12067  eval $cacheid=yes
12068else case e in #(
12069  e) eval $cacheid=no ;;
12070esac
12071fi
12072rm -f core conftest.err conftest.$ac_objext conftest.beam \
12073    conftest$ac_exeext conftest.$ac_ext ;;
12074esac
12075fi
12076
12077
12078		CFLAGS="$xorg_testset_save_CFLAGS"
12079
12080		eval supported=\$$cacheid
12081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12082printf "%s\n" "$supported" >&6; }
12083		if test "$supported" = "yes" ; then
12084			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
12085			found="yes"
12086		fi
12087	fi
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103xorg_testset_save_CFLAGS="$CFLAGS"
12104
12105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12110then :
12111  printf %s "(cached) " >&6
12112else case e in #(
12113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114/* end confdefs.h.  */
12115int i;
12116_ACEOF
12117if ac_fn_c_try_compile "$LINENO"
12118then :
12119  xorg_cv_cc_flag_unknown_warning_option=yes
12120else case e in #(
12121  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
12122esac
12123fi
12124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12125esac
12126fi
12127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12130	CFLAGS="$xorg_testset_save_CFLAGS"
12131fi
12132
12133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12136	fi
12137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12141then :
12142  printf %s "(cached) " >&6
12143else case e in #(
12144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h.  */
12146int i;
12147_ACEOF
12148if ac_fn_c_try_compile "$LINENO"
12149then :
12150  xorg_cv_cc_flag_unused_command_line_argument=yes
12151else case e in #(
12152  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
12153esac
12154fi
12155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12156esac
12157fi
12158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12161	CFLAGS="$xorg_testset_save_CFLAGS"
12162fi
12163
12164found="no"
12165
12166	if test $found = "no" ; then
12167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12169		fi
12170
12171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12173		fi
12174
12175		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
12176
12177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
12178printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
12179		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
12180		if eval test \${$cacheid+y}
12181then :
12182  printf %s "(cached) " >&6
12183else case e in #(
12184  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186int i;
12187int
12188main (void)
12189{
12190
12191  ;
12192  return 0;
12193}
12194_ACEOF
12195if ac_fn_c_try_link "$LINENO"
12196then :
12197  eval $cacheid=yes
12198else case e in #(
12199  e) eval $cacheid=no ;;
12200esac
12201fi
12202rm -f core conftest.err conftest.$ac_objext conftest.beam \
12203    conftest$ac_exeext conftest.$ac_ext ;;
12204esac
12205fi
12206
12207
12208		CFLAGS="$xorg_testset_save_CFLAGS"
12209
12210		eval supported=\$$cacheid
12211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12212printf "%s\n" "$supported" >&6; }
12213		if test "$supported" = "yes" ; then
12214			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
12215			found="yes"
12216		fi
12217	fi
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233xorg_testset_save_CFLAGS="$CFLAGS"
12234
12235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12240then :
12241  printf %s "(cached) " >&6
12242else case e in #(
12243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12244/* end confdefs.h.  */
12245int i;
12246_ACEOF
12247if ac_fn_c_try_compile "$LINENO"
12248then :
12249  xorg_cv_cc_flag_unknown_warning_option=yes
12250else case e in #(
12251  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
12252esac
12253fi
12254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12255esac
12256fi
12257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12260	CFLAGS="$xorg_testset_save_CFLAGS"
12261fi
12262
12263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12266	fi
12267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12270if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12271then :
12272  printf %s "(cached) " >&6
12273else case e in #(
12274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275/* end confdefs.h.  */
12276int i;
12277_ACEOF
12278if ac_fn_c_try_compile "$LINENO"
12279then :
12280  xorg_cv_cc_flag_unused_command_line_argument=yes
12281else case e in #(
12282  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
12283esac
12284fi
12285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12286esac
12287fi
12288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12291	CFLAGS="$xorg_testset_save_CFLAGS"
12292fi
12293
12294found="no"
12295
12296	if test $found = "no" ; then
12297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12299		fi
12300
12301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12303		fi
12304
12305		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
12306
12307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
12308printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
12309		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
12310		if eval test \${$cacheid+y}
12311then :
12312  printf %s "(cached) " >&6
12313else case e in #(
12314  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12315/* end confdefs.h.  */
12316int i;
12317int
12318main (void)
12319{
12320
12321  ;
12322  return 0;
12323}
12324_ACEOF
12325if ac_fn_c_try_link "$LINENO"
12326then :
12327  eval $cacheid=yes
12328else case e in #(
12329  e) eval $cacheid=no ;;
12330esac
12331fi
12332rm -f core conftest.err conftest.$ac_objext conftest.beam \
12333    conftest$ac_exeext conftest.$ac_ext ;;
12334esac
12335fi
12336
12337
12338		CFLAGS="$xorg_testset_save_CFLAGS"
12339
12340		eval supported=\$$cacheid
12341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12342printf "%s\n" "$supported" >&6; }
12343		if test "$supported" = "yes" ; then
12344			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
12345			found="yes"
12346		fi
12347	fi
12348
12349
12350fi
12351
12352
12353
12354
12355
12356
12357
12358		CWARNFLAGS="$BASE_CFLAGS"
12359		if  test "x$GCC" = xyes ; then
12360		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
12361		fi
12362
12363
12364
12365
12366
12367
12368
12369
12370# Check whether --enable-strict-compilation was given.
12371if test ${enable_strict_compilation+y}
12372then :
12373  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
12374else case e in #(
12375  e) STRICT_COMPILE=no ;;
12376esac
12377fi
12378
12379
12380
12381
12382
12383
12384STRICT_CFLAGS=""
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398xorg_testset_save_CFLAGS="$CFLAGS"
12399
12400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12403printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12404if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12405then :
12406  printf %s "(cached) " >&6
12407else case e in #(
12408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409/* end confdefs.h.  */
12410int i;
12411_ACEOF
12412if ac_fn_c_try_compile "$LINENO"
12413then :
12414  xorg_cv_cc_flag_unknown_warning_option=yes
12415else case e in #(
12416  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
12417esac
12418fi
12419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12420esac
12421fi
12422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12423printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12424	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12425	CFLAGS="$xorg_testset_save_CFLAGS"
12426fi
12427
12428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12429	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12430		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12431	fi
12432	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12433	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12434printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12435if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12436then :
12437  printf %s "(cached) " >&6
12438else case e in #(
12439  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h.  */
12441int i;
12442_ACEOF
12443if ac_fn_c_try_compile "$LINENO"
12444then :
12445  xorg_cv_cc_flag_unused_command_line_argument=yes
12446else case e in #(
12447  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
12448esac
12449fi
12450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12451esac
12452fi
12453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12454printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12455	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12456	CFLAGS="$xorg_testset_save_CFLAGS"
12457fi
12458
12459found="no"
12460
12461	if test $found = "no" ; then
12462		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12463			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12464		fi
12465
12466		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12467			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12468		fi
12469
12470		CFLAGS="$CFLAGS -pedantic"
12471
12472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
12473printf %s "checking if $CC supports -pedantic... " >&6; }
12474		cacheid=xorg_cv_cc_flag__pedantic
12475		if eval test \${$cacheid+y}
12476then :
12477  printf %s "(cached) " >&6
12478else case e in #(
12479  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h.  */
12481int i;
12482int
12483main (void)
12484{
12485
12486  ;
12487  return 0;
12488}
12489_ACEOF
12490if ac_fn_c_try_link "$LINENO"
12491then :
12492  eval $cacheid=yes
12493else case e in #(
12494  e) eval $cacheid=no ;;
12495esac
12496fi
12497rm -f core conftest.err conftest.$ac_objext conftest.beam \
12498    conftest$ac_exeext conftest.$ac_ext ;;
12499esac
12500fi
12501
12502
12503		CFLAGS="$xorg_testset_save_CFLAGS"
12504
12505		eval supported=\$$cacheid
12506		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12507printf "%s\n" "$supported" >&6; }
12508		if test "$supported" = "yes" ; then
12509			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
12510			found="yes"
12511		fi
12512	fi
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528xorg_testset_save_CFLAGS="$CFLAGS"
12529
12530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12531	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12533printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12534if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12535then :
12536  printf %s "(cached) " >&6
12537else case e in #(
12538  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12539/* end confdefs.h.  */
12540int i;
12541_ACEOF
12542if ac_fn_c_try_compile "$LINENO"
12543then :
12544  xorg_cv_cc_flag_unknown_warning_option=yes
12545else case e in #(
12546  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
12547esac
12548fi
12549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12550esac
12551fi
12552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12553printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12555	CFLAGS="$xorg_testset_save_CFLAGS"
12556fi
12557
12558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12561	fi
12562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12564printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12565if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12566then :
12567  printf %s "(cached) " >&6
12568else case e in #(
12569  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570/* end confdefs.h.  */
12571int i;
12572_ACEOF
12573if ac_fn_c_try_compile "$LINENO"
12574then :
12575  xorg_cv_cc_flag_unused_command_line_argument=yes
12576else case e in #(
12577  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
12578esac
12579fi
12580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12581esac
12582fi
12583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12584printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12585	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12586	CFLAGS="$xorg_testset_save_CFLAGS"
12587fi
12588
12589found="no"
12590
12591	if test $found = "no" ; then
12592		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12593			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12594		fi
12595
12596		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12597			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12598		fi
12599
12600		CFLAGS="$CFLAGS -Werror"
12601
12602		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
12603printf %s "checking if $CC supports -Werror... " >&6; }
12604		cacheid=xorg_cv_cc_flag__Werror
12605		if eval test \${$cacheid+y}
12606then :
12607  printf %s "(cached) " >&6
12608else case e in #(
12609  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h.  */
12611int i;
12612int
12613main (void)
12614{
12615
12616  ;
12617  return 0;
12618}
12619_ACEOF
12620if ac_fn_c_try_link "$LINENO"
12621then :
12622  eval $cacheid=yes
12623else case e in #(
12624  e) eval $cacheid=no ;;
12625esac
12626fi
12627rm -f core conftest.err conftest.$ac_objext conftest.beam \
12628    conftest$ac_exeext conftest.$ac_ext ;;
12629esac
12630fi
12631
12632
12633		CFLAGS="$xorg_testset_save_CFLAGS"
12634
12635		eval supported=\$$cacheid
12636		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12637printf "%s\n" "$supported" >&6; }
12638		if test "$supported" = "yes" ; then
12639			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
12640			found="yes"
12641		fi
12642	fi
12643
12644	if test $found = "no" ; then
12645		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12646			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12647		fi
12648
12649		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12650			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12651		fi
12652
12653		CFLAGS="$CFLAGS -errwarn"
12654
12655		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
12656printf %s "checking if $CC supports -errwarn... " >&6; }
12657		cacheid=xorg_cv_cc_flag__errwarn
12658		if eval test \${$cacheid+y}
12659then :
12660  printf %s "(cached) " >&6
12661else case e in #(
12662  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663/* end confdefs.h.  */
12664int i;
12665int
12666main (void)
12667{
12668
12669  ;
12670  return 0;
12671}
12672_ACEOF
12673if ac_fn_c_try_link "$LINENO"
12674then :
12675  eval $cacheid=yes
12676else case e in #(
12677  e) eval $cacheid=no ;;
12678esac
12679fi
12680rm -f core conftest.err conftest.$ac_objext conftest.beam \
12681    conftest$ac_exeext conftest.$ac_ext ;;
12682esac
12683fi
12684
12685
12686		CFLAGS="$xorg_testset_save_CFLAGS"
12687
12688		eval supported=\$$cacheid
12689		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12690printf "%s\n" "$supported" >&6; }
12691		if test "$supported" = "yes" ; then
12692			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
12693			found="yes"
12694		fi
12695	fi
12696
12697
12698
12699# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
12700# activate it with -Werror, so we add it here explicitly.
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714xorg_testset_save_CFLAGS="$CFLAGS"
12715
12716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
12721then :
12722  printf %s "(cached) " >&6
12723else case e in #(
12724  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12725/* end confdefs.h.  */
12726int i;
12727_ACEOF
12728if ac_fn_c_try_compile "$LINENO"
12729then :
12730  xorg_cv_cc_flag_unknown_warning_option=yes
12731else case e in #(
12732  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
12733esac
12734fi
12735rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12736esac
12737fi
12738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12739printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12740	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12741	CFLAGS="$xorg_testset_save_CFLAGS"
12742fi
12743
12744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12745	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12746		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12747	fi
12748	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12749	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12750printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12751if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
12752then :
12753  printf %s "(cached) " >&6
12754else case e in #(
12755  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756/* end confdefs.h.  */
12757int i;
12758_ACEOF
12759if ac_fn_c_try_compile "$LINENO"
12760then :
12761  xorg_cv_cc_flag_unused_command_line_argument=yes
12762else case e in #(
12763  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
12764esac
12765fi
12766rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12767esac
12768fi
12769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12770printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12772	CFLAGS="$xorg_testset_save_CFLAGS"
12773fi
12774
12775found="no"
12776
12777	if test $found = "no" ; then
12778		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12780		fi
12781
12782		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12784		fi
12785
12786		CFLAGS="$CFLAGS -Werror=attributes"
12787
12788		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
12789printf %s "checking if $CC supports -Werror=attributes... " >&6; }
12790		cacheid=xorg_cv_cc_flag__Werror_attributes
12791		if eval test \${$cacheid+y}
12792then :
12793  printf %s "(cached) " >&6
12794else case e in #(
12795  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796/* end confdefs.h.  */
12797int i;
12798int
12799main (void)
12800{
12801
12802  ;
12803  return 0;
12804}
12805_ACEOF
12806if ac_fn_c_try_link "$LINENO"
12807then :
12808  eval $cacheid=yes
12809else case e in #(
12810  e) eval $cacheid=no ;;
12811esac
12812fi
12813rm -f core conftest.err conftest.$ac_objext conftest.beam \
12814    conftest$ac_exeext conftest.$ac_ext ;;
12815esac
12816fi
12817
12818
12819		CFLAGS="$xorg_testset_save_CFLAGS"
12820
12821		eval supported=\$$cacheid
12822		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12823printf "%s\n" "$supported" >&6; }
12824		if test "$supported" = "yes" ; then
12825			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
12826			found="yes"
12827		fi
12828	fi
12829
12830
12831
12832if test "x$STRICT_COMPILE" = "xyes"; then
12833    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
12834    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
12835fi
12836
12837
12838
12839
12840
12841
12842
12843
12844cat >>confdefs.h <<_ACEOF
12845#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
12846_ACEOF
12847
12848	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
12849	if test "x$PVM" = "x"; then
12850		PVM="0"
12851	fi
12852
12853printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
12854
12855	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
12856	if test "x$PVP" = "x"; then
12857		PVP="0"
12858	fi
12859
12860printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
12861
12862
12863
12864CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
12865mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
12866|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
12867touch \$(top_srcdir)/ChangeLog; \
12868echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
12869
12870
12871
12872
12873macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
12874INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
12875mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
12876|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
12877touch \$(top_srcdir)/INSTALL; \
12878echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
12879
12880
12881
12882
12883
12884
12885case $host_os in
12886    solaris*)
12887        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
12888        # check for a man page file found in later versions that use
12889        # traditional section numbers instead
12890        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
12891printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
12892if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
12893then :
12894  printf %s "(cached) " >&6
12895else case e in #(
12896  e) test "$cross_compiling" = yes &&
12897  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12898if test -r "/usr/share/man/man7/attributes.7"; then
12899  ac_cv_file__usr_share_man_man7_attributes_7=yes
12900else
12901  ac_cv_file__usr_share_man_man7_attributes_7=no
12902fi ;;
12903esac
12904fi
12905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
12906printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
12907if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
12908then :
12909  SYSV_MAN_SECTIONS=false
12910else case e in #(
12911  e) SYSV_MAN_SECTIONS=true ;;
12912esac
12913fi
12914
12915        ;;
12916    *) SYSV_MAN_SECTIONS=false ;;
12917esac
12918
12919if test x$APP_MAN_SUFFIX = x    ; then
12920    APP_MAN_SUFFIX=1
12921fi
12922if test x$APP_MAN_DIR = x    ; then
12923    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
12924fi
12925
12926if test x$LIB_MAN_SUFFIX = x    ; then
12927    LIB_MAN_SUFFIX=3
12928fi
12929if test x$LIB_MAN_DIR = x    ; then
12930    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
12931fi
12932
12933if test x$FILE_MAN_SUFFIX = x    ; then
12934    case $SYSV_MAN_SECTIONS in
12935	true)				FILE_MAN_SUFFIX=4  ;;
12936	*)				FILE_MAN_SUFFIX=5  ;;
12937    esac
12938fi
12939if test x$FILE_MAN_DIR = x    ; then
12940    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
12941fi
12942
12943if test x$MISC_MAN_SUFFIX = x    ; then
12944    case $SYSV_MAN_SECTIONS in
12945	true)				MISC_MAN_SUFFIX=5  ;;
12946	*)				MISC_MAN_SUFFIX=7  ;;
12947    esac
12948fi
12949if test x$MISC_MAN_DIR = x    ; then
12950    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
12951fi
12952
12953if test x$DRIVER_MAN_SUFFIX = x    ; then
12954    case $SYSV_MAN_SECTIONS in
12955	true)				DRIVER_MAN_SUFFIX=7  ;;
12956	*)				DRIVER_MAN_SUFFIX=4  ;;
12957    esac
12958fi
12959if test x$DRIVER_MAN_DIR = x    ; then
12960    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12961fi
12962
12963if test x$ADMIN_MAN_SUFFIX = x    ; then
12964    case $SYSV_MAN_SECTIONS in
12965	true)				ADMIN_MAN_SUFFIX=1m ;;
12966	*)				ADMIN_MAN_SUFFIX=8  ;;
12967    esac
12968fi
12969if test x$ADMIN_MAN_DIR = x    ; then
12970    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12971fi
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987XORG_MAN_PAGE="X Version 11"
12988
12989MAN_SUBSTS="\
12990	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12991	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12992	-e 's|__xservername__|Xorg|g' \
12993	-e 's|__xconfigfile__|xorg.conf|g' \
12994	-e 's|__projectroot__|\$(prefix)|g' \
12995	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
12996	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12997	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12998	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12999	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
13000	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
13001	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
13002
13003
13004
13005
13006AM_DEFAULT_VERBOSITY=0
13007
13008
13009
13010
13011
13012
13013
13014# Check whether --with-doxygen was given.
13015if test ${with_doxygen+y}
13016then :
13017  withval=$with_doxygen; use_doxygen=$withval
13018else case e in #(
13019  e) use_doxygen=auto ;;
13020esac
13021fi
13022
13023
13024
13025if test "x$use_doxygen" = x"auto"; then
13026   # Extract the first word of "doxygen", so it can be a program name with args.
13027set dummy doxygen; ac_word=$2
13028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029printf %s "checking for $ac_word... " >&6; }
13030if test ${ac_cv_path_DOXYGEN+y}
13031then :
13032  printf %s "(cached) " >&6
13033else case e in #(
13034  e) case $DOXYGEN in
13035  [\\/]* | ?:[\\/]*)
13036  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13037  ;;
13038  *)
13039  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042  IFS=$as_save_IFS
13043  case $as_dir in #(((
13044    '') as_dir=./ ;;
13045    */) ;;
13046    *) as_dir=$as_dir/ ;;
13047  esac
13048    for ac_exec_ext in '' $ac_executable_extensions; do
13049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13050    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
13051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13052    break 2
13053  fi
13054done
13055  done
13056IFS=$as_save_IFS
13057
13058  ;;
13059esac ;;
13060esac
13061fi
13062DOXYGEN=$ac_cv_path_DOXYGEN
13063if test -n "$DOXYGEN"; then
13064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13065printf "%s\n" "$DOXYGEN" >&6; }
13066else
13067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068printf "%s\n" "no" >&6; }
13069fi
13070
13071
13072   if test "x$DOXYGEN" = "x"; then
13073        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
13074printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
13075	have_doxygen=no
13076   else
13077        have_doxygen=yes
13078   fi
13079elif test "x$use_doxygen" = x"yes" ; then
13080   # Extract the first word of "doxygen", so it can be a program name with args.
13081set dummy doxygen; ac_word=$2
13082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083printf %s "checking for $ac_word... " >&6; }
13084if test ${ac_cv_path_DOXYGEN+y}
13085then :
13086  printf %s "(cached) " >&6
13087else case e in #(
13088  e) case $DOXYGEN in
13089  [\\/]* | ?:[\\/]*)
13090  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13091  ;;
13092  *)
13093  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13094for as_dir in $PATH
13095do
13096  IFS=$as_save_IFS
13097  case $as_dir in #(((
13098    '') as_dir=./ ;;
13099    */) ;;
13100    *) as_dir=$as_dir/ ;;
13101  esac
13102    for ac_exec_ext in '' $ac_executable_extensions; do
13103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13104    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
13105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13106    break 2
13107  fi
13108done
13109  done
13110IFS=$as_save_IFS
13111
13112  ;;
13113esac ;;
13114esac
13115fi
13116DOXYGEN=$ac_cv_path_DOXYGEN
13117if test -n "$DOXYGEN"; then
13118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
13119printf "%s\n" "$DOXYGEN" >&6; }
13120else
13121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122printf "%s\n" "no" >&6; }
13123fi
13124
13125
13126   if test "x$DOXYGEN" = "x"; then
13127        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
13128   fi
13129   have_doxygen=yes
13130elif test "x$use_doxygen" = x"no" ; then
13131   if test "x$DOXYGEN" != "x"; then
13132      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
13133printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
13134   fi
13135   have_doxygen=no
13136else
13137   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
13138fi
13139if test "$have_doxygen" = yes; then
13140    # scrape the doxygen version
13141    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the doxygen version" >&5
13142printf %s "checking the doxygen version... " >&6; }
13143    doxygen_version=`$DOXYGEN --version 2>/dev/null`
13144    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $doxygen_version" >&5
13145printf "%s\n" "$doxygen_version" >&6; }
13146    as_arg_v1=$doxygen_version
13147as_arg_v2=1.6.1
13148awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13149case $? in #(
13150  1) :
13151    if test "x$use_doxygen" = xauto; then
13152            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&5
13153printf "%s\n" "$as_me: WARNING: doxygen version $doxygen_version found, but 1.6.1 needed" >&2;}
13154            have_doxygen=no
13155        else
13156            as_fn_error $? "doxygen version $doxygen_version found, but 1.6.1 needed" "$LINENO" 5
13157        fi ;; #(
13158  0) :
13159     ;; #(
13160  2) :
13161     ;; #(
13162  *) :
13163     ;;
13164esac
13165fi
13166
13167HAVE_DOT=no
13168if test "x$have_doxygen" = "xyes"; then
13169  # Extract the first word of "dot", so it can be a program name with args.
13170set dummy dot; ac_word=$2
13171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13172printf %s "checking for $ac_word... " >&6; }
13173if test ${ac_cv_path_DOT+y}
13174then :
13175  printf %s "(cached) " >&6
13176else case e in #(
13177  e) case $DOT in
13178  [\\/]* | ?:[\\/]*)
13179  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13180  ;;
13181  *)
13182  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  case $as_dir in #(((
13187    '') as_dir=./ ;;
13188    */) ;;
13189    *) as_dir=$as_dir/ ;;
13190  esac
13191    for ac_exec_ext in '' $ac_executable_extensions; do
13192  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13193    ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
13194    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13195    break 2
13196  fi
13197done
13198  done
13199IFS=$as_save_IFS
13200
13201  ;;
13202esac ;;
13203esac
13204fi
13205DOT=$ac_cv_path_DOT
13206if test -n "$DOT"; then
13207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
13208printf "%s\n" "$DOT" >&6; }
13209else
13210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13211printf "%s\n" "no" >&6; }
13212fi
13213
13214
13215    if test "x$DOT" != "x"; then
13216      HAVE_DOT=yes
13217    fi
13218fi
13219
13220
13221 if test "$HAVE_DOT" = "yes"; then
13222  HAVE_DOT_TRUE=
13223  HAVE_DOT_FALSE='#'
13224else
13225  HAVE_DOT_TRUE='#'
13226  HAVE_DOT_FALSE=
13227fi
13228
13229 if test "$have_doxygen" = yes; then
13230  HAVE_DOXYGEN_TRUE=
13231  HAVE_DOXYGEN_FALSE='#'
13232else
13233  HAVE_DOXYGEN_TRUE='#'
13234  HAVE_DOXYGEN_FALSE=
13235fi
13236
13237
13238
13239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.8" >&5
13240printf %s "checking for X.Org SGML entities >= 1.8... " >&6; }
13241XORG_SGML_PATH=
13242if test -n "$PKG_CONFIG" && \
13243    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.8\""; } >&5
13244  ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.8") 2>&5
13245  ac_status=$?
13246  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13247  test $ac_status = 0; }; then
13248  XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
13249else
13250  :
13251
13252fi
13253
13254# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
13255# the path and the name of the doc stylesheet
13256if test "x$XORG_SGML_PATH" != "x" ; then
13257   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
13258printf "%s\n" "$XORG_SGML_PATH" >&6; }
13259   STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
13260   XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
13261else
13262   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13263printf "%s\n" "no" >&6; }
13264fi
13265
13266
13267
13268
13269 if test "x$XSL_STYLESHEET" != "x"; then
13270  HAVE_STYLESHEETS_TRUE=
13271  HAVE_STYLESHEETS_FALSE='#'
13272else
13273  HAVE_STYLESHEETS_TRUE='#'
13274  HAVE_STYLESHEETS_FALSE=
13275fi
13276
13277
13278
13279
13280# Check whether --enable-docs was given.
13281if test ${enable_docs+y}
13282then :
13283  enableval=$enable_docs; build_docs=$enableval
13284else case e in #(
13285  e) build_docs=yes ;;
13286esac
13287fi
13288
13289
13290 if test x$build_docs = xyes; then
13291  ENABLE_DOCS_TRUE=
13292  ENABLE_DOCS_FALSE='#'
13293else
13294  ENABLE_DOCS_TRUE='#'
13295  ENABLE_DOCS_FALSE=
13296fi
13297
13298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
13299printf %s "checking whether to build documentation... " >&6; }
13300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5
13301printf "%s\n" "$build_docs" >&6; }
13302
13303
13304
13305# Check whether --enable-devel-docs was given.
13306if test ${enable_devel_docs+y}
13307then :
13308  enableval=$enable_devel_docs; build_devel_docs=$enableval
13309else case e in #(
13310  e) build_devel_docs=yes ;;
13311esac
13312fi
13313
13314
13315 if test x$build_devel_docs = xyes; then
13316  ENABLE_DEVEL_DOCS_TRUE=
13317  ENABLE_DEVEL_DOCS_FALSE='#'
13318else
13319  ENABLE_DEVEL_DOCS_TRUE='#'
13320  ENABLE_DEVEL_DOCS_FALSE=
13321fi
13322
13323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
13324printf %s "checking whether to build developer documentation... " >&6; }
13325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
13326printf "%s\n" "$build_devel_docs" >&6; }
13327
13328
13329
13330
13331
13332# Check whether --with-xmlto was given.
13333if test ${with_xmlto+y}
13334then :
13335  withval=$with_xmlto; use_xmlto=$withval
13336else case e in #(
13337  e) use_xmlto=auto ;;
13338esac
13339fi
13340
13341
13342
13343if test "x$use_xmlto" = x"auto"; then
13344   # Extract the first word of "xmlto", so it can be a program name with args.
13345set dummy xmlto; ac_word=$2
13346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347printf %s "checking for $ac_word... " >&6; }
13348if test ${ac_cv_path_XMLTO+y}
13349then :
13350  printf %s "(cached) " >&6
13351else case e in #(
13352  e) case $XMLTO in
13353  [\\/]* | ?:[\\/]*)
13354  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
13355  ;;
13356  *)
13357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13358for as_dir in $PATH
13359do
13360  IFS=$as_save_IFS
13361  case $as_dir in #(((
13362    '') as_dir=./ ;;
13363    */) ;;
13364    *) as_dir=$as_dir/ ;;
13365  esac
13366    for ac_exec_ext in '' $ac_executable_extensions; do
13367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13368    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
13369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13370    break 2
13371  fi
13372done
13373  done
13374IFS=$as_save_IFS
13375
13376  ;;
13377esac ;;
13378esac
13379fi
13380XMLTO=$ac_cv_path_XMLTO
13381if test -n "$XMLTO"; then
13382  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13383printf "%s\n" "$XMLTO" >&6; }
13384else
13385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13386printf "%s\n" "no" >&6; }
13387fi
13388
13389
13390   if test "x$XMLTO" = "x"; then
13391        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
13392printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
13393	have_xmlto=no
13394   else
13395        have_xmlto=yes
13396   fi
13397elif test "x$use_xmlto" = x"yes" ; then
13398   # Extract the first word of "xmlto", so it can be a program name with args.
13399set dummy xmlto; ac_word=$2
13400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13401printf %s "checking for $ac_word... " >&6; }
13402if test ${ac_cv_path_XMLTO+y}
13403then :
13404  printf %s "(cached) " >&6
13405else case e in #(
13406  e) case $XMLTO in
13407  [\\/]* | ?:[\\/]*)
13408  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
13409  ;;
13410  *)
13411  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412for as_dir in $PATH
13413do
13414  IFS=$as_save_IFS
13415  case $as_dir in #(((
13416    '') as_dir=./ ;;
13417    */) ;;
13418    *) as_dir=$as_dir/ ;;
13419  esac
13420    for ac_exec_ext in '' $ac_executable_extensions; do
13421  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13422    ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
13423    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13424    break 2
13425  fi
13426done
13427  done
13428IFS=$as_save_IFS
13429
13430  ;;
13431esac ;;
13432esac
13433fi
13434XMLTO=$ac_cv_path_XMLTO
13435if test -n "$XMLTO"; then
13436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
13437printf "%s\n" "$XMLTO" >&6; }
13438else
13439  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440printf "%s\n" "no" >&6; }
13441fi
13442
13443
13444   if test "x$XMLTO" = "x"; then
13445        as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
13446   fi
13447   have_xmlto=yes
13448elif test "x$use_xmlto" = x"no" ; then
13449   if test "x$XMLTO" != "x"; then
13450      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
13451printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
13452   fi
13453   have_xmlto=no
13454else
13455   as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
13456fi
13457
13458# Test for a minimum version of xmlto, if provided.
13459if test "$have_xmlto" = yes; then
13460    # scrape the xmlto version
13461    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
13462printf %s "checking the xmlto version... " >&6; }
13463    xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
13464    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
13465printf "%s\n" "$xmlto_version" >&6; }
13466    as_arg_v1=$xmlto_version
13467as_arg_v2=0.0.20
13468awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
13469case $? in #(
13470  1) :
13471    if test "x$use_xmlto" = xauto; then
13472            { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
13473printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
13474            have_xmlto=no
13475        else
13476            as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
13477        fi ;; #(
13478  0) :
13479     ;; #(
13480  2) :
13481     ;; #(
13482  *) :
13483     ;;
13484esac
13485fi
13486
13487# Test for the ability of xmlto to generate a text target
13488#
13489# NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
13490# following test for empty XML docbook files.
13491# For compatibility reasons use the following empty XML docbook file and if
13492# it fails try it again with a non-empty XML file.
13493have_xmlto_text=no
13494cat > conftest.xml << "EOF"
13495EOF
13496if test "$have_xmlto" = yes
13497then :
13498  if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
13499then :
13500  have_xmlto_text=yes
13501else case e in #(
13502  e) # Try it again with a non-empty XML file.
13503              cat > conftest.xml << "EOF"
13504<x></x>
13505EOF
13506              if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
13507then :
13508  have_xmlto_text=yes
13509else case e in #(
13510  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
13511printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
13512esac
13513fi ;;
13514esac
13515fi
13516fi
13517rm -f conftest.xml
13518 if test $have_xmlto_text = yes; then
13519  HAVE_XMLTO_TEXT_TRUE=
13520  HAVE_XMLTO_TEXT_FALSE='#'
13521else
13522  HAVE_XMLTO_TEXT_TRUE='#'
13523  HAVE_XMLTO_TEXT_FALSE=
13524fi
13525
13526 if test "$have_xmlto" = yes; then
13527  HAVE_XMLTO_TRUE=
13528  HAVE_XMLTO_FALSE='#'
13529else
13530  HAVE_XMLTO_TRUE='#'
13531  HAVE_XMLTO_FALSE=
13532fi
13533
13534
13535
13536
13537
13538
13539# Check whether --with-fop was given.
13540if test ${with_fop+y}
13541then :
13542  withval=$with_fop; use_fop=$withval
13543else case e in #(
13544  e) use_fop=auto ;;
13545esac
13546fi
13547
13548
13549
13550if test "x$use_fop" = x"auto"; then
13551   # Extract the first word of "fop", so it can be a program name with args.
13552set dummy fop; ac_word=$2
13553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554printf %s "checking for $ac_word... " >&6; }
13555if test ${ac_cv_path_FOP+y}
13556then :
13557  printf %s "(cached) " >&6
13558else case e in #(
13559  e) case $FOP in
13560  [\\/]* | ?:[\\/]*)
13561  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
13562  ;;
13563  *)
13564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565for as_dir in $PATH
13566do
13567  IFS=$as_save_IFS
13568  case $as_dir in #(((
13569    '') as_dir=./ ;;
13570    */) ;;
13571    *) as_dir=$as_dir/ ;;
13572  esac
13573    for ac_exec_ext in '' $ac_executable_extensions; do
13574  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13575    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
13576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13577    break 2
13578  fi
13579done
13580  done
13581IFS=$as_save_IFS
13582
13583  ;;
13584esac ;;
13585esac
13586fi
13587FOP=$ac_cv_path_FOP
13588if test -n "$FOP"; then
13589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
13590printf "%s\n" "$FOP" >&6; }
13591else
13592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593printf "%s\n" "no" >&6; }
13594fi
13595
13596
13597   if test "x$FOP" = "x"; then
13598        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
13599printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
13600	have_fop=no
13601   else
13602        have_fop=yes
13603   fi
13604elif test "x$use_fop" = x"yes" ; then
13605   # Extract the first word of "fop", so it can be a program name with args.
13606set dummy fop; ac_word=$2
13607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608printf %s "checking for $ac_word... " >&6; }
13609if test ${ac_cv_path_FOP+y}
13610then :
13611  printf %s "(cached) " >&6
13612else case e in #(
13613  e) case $FOP in
13614  [\\/]* | ?:[\\/]*)
13615  ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
13616  ;;
13617  *)
13618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619for as_dir in $PATH
13620do
13621  IFS=$as_save_IFS
13622  case $as_dir in #(((
13623    '') as_dir=./ ;;
13624    */) ;;
13625    *) as_dir=$as_dir/ ;;
13626  esac
13627    for ac_exec_ext in '' $ac_executable_extensions; do
13628  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13629    ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
13630    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13631    break 2
13632  fi
13633done
13634  done
13635IFS=$as_save_IFS
13636
13637  ;;
13638esac ;;
13639esac
13640fi
13641FOP=$ac_cv_path_FOP
13642if test -n "$FOP"; then
13643  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
13644printf "%s\n" "$FOP" >&6; }
13645else
13646  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647printf "%s\n" "no" >&6; }
13648fi
13649
13650
13651   if test "x$FOP" = "x"; then
13652        as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
13653   fi
13654   have_fop=yes
13655elif test "x$use_fop" = x"no" ; then
13656   if test "x$FOP" != "x"; then
13657      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
13658printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
13659   fi
13660   have_fop=no
13661else
13662   as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
13663fi
13664
13665# Test for a minimum version of fop, if provided.
13666
13667 if test "$have_fop" = yes; then
13668  HAVE_FOP_TRUE=
13669  HAVE_FOP_FALSE='#'
13670else
13671  HAVE_FOP_TRUE='#'
13672  HAVE_FOP_FALSE=
13673fi
13674
13675
13676
13677
13678# Preserves the interface, should it be implemented later
13679
13680
13681
13682# Check whether --with-xsltproc was given.
13683if test ${with_xsltproc+y}
13684then :
13685  withval=$with_xsltproc; use_xsltproc=$withval
13686else case e in #(
13687  e) use_xsltproc=auto ;;
13688esac
13689fi
13690
13691
13692
13693if test "x$use_xsltproc" = x"auto"; then
13694   # Extract the first word of "xsltproc", so it can be a program name with args.
13695set dummy xsltproc; ac_word=$2
13696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697printf %s "checking for $ac_word... " >&6; }
13698if test ${ac_cv_path_XSLTPROC+y}
13699then :
13700  printf %s "(cached) " >&6
13701else case e in #(
13702  e) case $XSLTPROC in
13703  [\\/]* | ?:[\\/]*)
13704  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13705  ;;
13706  *)
13707  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13708for as_dir in $PATH
13709do
13710  IFS=$as_save_IFS
13711  case $as_dir in #(((
13712    '') as_dir=./ ;;
13713    */) ;;
13714    *) as_dir=$as_dir/ ;;
13715  esac
13716    for ac_exec_ext in '' $ac_executable_extensions; do
13717  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13718    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
13719    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13720    break 2
13721  fi
13722done
13723  done
13724IFS=$as_save_IFS
13725
13726  ;;
13727esac ;;
13728esac
13729fi
13730XSLTPROC=$ac_cv_path_XSLTPROC
13731if test -n "$XSLTPROC"; then
13732  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13733printf "%s\n" "$XSLTPROC" >&6; }
13734else
13735  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13736printf "%s\n" "no" >&6; }
13737fi
13738
13739
13740   if test "x$XSLTPROC" = "x"; then
13741        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xsltproc not found - cannot transform XML documents" >&5
13742printf "%s\n" "$as_me: WARNING: xsltproc not found - cannot transform XML documents" >&2;}
13743	have_xsltproc=no
13744   else
13745        have_xsltproc=yes
13746   fi
13747elif test "x$use_xsltproc" = x"yes" ; then
13748   # Extract the first word of "xsltproc", so it can be a program name with args.
13749set dummy xsltproc; ac_word=$2
13750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751printf %s "checking for $ac_word... " >&6; }
13752if test ${ac_cv_path_XSLTPROC+y}
13753then :
13754  printf %s "(cached) " >&6
13755else case e in #(
13756  e) case $XSLTPROC in
13757  [\\/]* | ?:[\\/]*)
13758  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
13759  ;;
13760  *)
13761  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764  IFS=$as_save_IFS
13765  case $as_dir in #(((
13766    '') as_dir=./ ;;
13767    */) ;;
13768    *) as_dir=$as_dir/ ;;
13769  esac
13770    for ac_exec_ext in '' $ac_executable_extensions; do
13771  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13772    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
13773    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13774    break 2
13775  fi
13776done
13777  done
13778IFS=$as_save_IFS
13779
13780  ;;
13781esac ;;
13782esac
13783fi
13784XSLTPROC=$ac_cv_path_XSLTPROC
13785if test -n "$XSLTPROC"; then
13786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
13787printf "%s\n" "$XSLTPROC" >&6; }
13788else
13789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13790printf "%s\n" "no" >&6; }
13791fi
13792
13793
13794   if test "x$XSLTPROC" = "x"; then
13795        as_fn_error $? "--with-xsltproc=yes specified but xsltproc not found in PATH" "$LINENO" 5
13796   fi
13797   have_xsltproc=yes
13798elif test "x$use_xsltproc" = x"no" ; then
13799   if test "x$XSLTPROC" != "x"; then
13800      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&5
13801printf "%s\n" "$as_me: WARNING: ignoring XSLTPROC environment variable since --with-xsltproc=no was specified" >&2;}
13802   fi
13803   have_xsltproc=no
13804else
13805   as_fn_error $? "--with-xsltproc expects 'yes' or 'no'" "$LINENO" 5
13806fi
13807
13808 if test "$have_xsltproc" = yes; then
13809  HAVE_XSLTPROC_TRUE=
13810  HAVE_XSLTPROC_FALSE='#'
13811else
13812  HAVE_XSLTPROC_TRUE='#'
13813  HAVE_XSLTPROC_FALSE=
13814fi
13815
13816
13817
13818
13819
13820
13821
13822# Check for different types of support on different platforms
13823case $host_os in
13824    solaris*)
13825        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
13826printf %s "checking for umem_alloc in -lumem... " >&6; }
13827if test ${ac_cv_lib_umem_umem_alloc+y}
13828then :
13829  printf %s "(cached) " >&6
13830else case e in #(
13831  e) ac_check_lib_save_LIBS=$LIBS
13832LIBS="-lumem  $LIBS"
13833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834/* end confdefs.h.  */
13835
13836/* Override any GCC internal prototype to avoid an error.
13837   Use char because int might match the return type of a GCC
13838   builtin and then its argument prototype would still apply.
13839   The 'extern "C"' is for builds by C++ compilers;
13840   although this is not generally supported in C code supporting it here
13841   has little cost and some practical benefit (sr 110532).  */
13842#ifdef __cplusplus
13843extern "C"
13844#endif
13845char umem_alloc (void);
13846int
13847main (void)
13848{
13849return umem_alloc ();
13850  ;
13851  return 0;
13852}
13853_ACEOF
13854if ac_fn_c_try_link "$LINENO"
13855then :
13856  ac_cv_lib_umem_umem_alloc=yes
13857else case e in #(
13858  e) ac_cv_lib_umem_umem_alloc=no ;;
13859esac
13860fi
13861rm -f core conftest.err conftest.$ac_objext conftest.beam \
13862    conftest$ac_exeext conftest.$ac_ext
13863LIBS=$ac_check_lib_save_LIBS ;;
13864esac
13865fi
13866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
13867printf "%s\n" "$ac_cv_lib_umem_umem_alloc" >&6; }
13868if test "x$ac_cv_lib_umem_umem_alloc" = xyes
13869then :
13870  malloc_debug_env='LD_PRELOAD=libumem.so UMEM_DEBUG=default'
13871fi
13872
13873        ;;
13874    *-gnu*) # GNU libc - Value is used as a single byte bit pattern,
13875        # both directly and inverted, so should not be 0 or 255.
13876        malloc_debug_env='MALLOC_PERTURB_=15'
13877        ;;
13878    darwin*)
13879        malloc_debug_env='MallocPreScribble=1 MallocScribble=1 DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib'
13880        ;;
13881    *bsd*)
13882        malloc_debug_env='MallocPreScribble=1 MallocScribble=1'
13883        ;;
13884esac
13885
13886# User supplied flags override default flags
13887if test "x$XORG_MALLOC_DEBUG_ENV" != "x"; then
13888    malloc_debug_env="$XORG_MALLOC_DEBUG_ENV"
13889fi
13890
13891XORG_MALLOC_DEBUG_ENV=$malloc_debug_env
13892
13893
13894
13895
13896
13897
13898
13899# Check whether --enable-unit-tests was given.
13900if test ${enable_unit_tests+y}
13901then :
13902  enableval=$enable_unit_tests; enable_unit_tests=$enableval
13903else case e in #(
13904  e) enable_unit_tests=auto ;;
13905esac
13906fi
13907
13908
13909 if test "x$enable_unit_tests" != xno; then
13910  ENABLE_UNIT_TESTS_TRUE=
13911  ENABLE_UNIT_TESTS_FALSE='#'
13912else
13913  ENABLE_UNIT_TESTS_TRUE='#'
13914  ENABLE_UNIT_TESTS_FALSE=
13915fi
13916
13917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build unit test cases" >&5
13918printf %s "checking whether to build unit test cases... " >&6; }
13919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_unit_tests" >&5
13920printf "%s\n" "$enable_unit_tests" >&6; }
13921
13922
13923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-wrap,exit" >&5
13924printf %s "checking whether the linker accepts -Wl,-wrap,exit... " >&6; }
13925if test ${xorg_cv_linker_flags__Wl__wrap_exit+y}
13926then :
13927  printf %s "(cached) " >&6
13928else case e in #(
13929  e)
13930      ax_save_FLAGS=$LDFLAGS
13931      LDFLAGS="-Wl,-wrap,exit"
13932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933/* end confdefs.h.  */
13934#include <stdlib.h>
13935                      void __wrap_exit(int status) { return; }
13936int
13937main (void)
13938{
13939exit(0);
13940  ;
13941  return 0;
13942}
13943_ACEOF
13944if ac_fn_c_try_link "$LINENO"
13945then :
13946  xorg_cv_linker_flags__Wl__wrap_exit=yes
13947else case e in #(
13948  e) xorg_cv_linker_flags__Wl__wrap_exit=no ;;
13949esac
13950fi
13951rm -f core conftest.err conftest.$ac_objext conftest.beam \
13952    conftest$ac_exeext conftest.$ac_ext
13953      LDFLAGS=$ax_save_FLAGS ;;
13954esac
13955fi
13956
13957eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__wrap_exit
13958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
13959printf "%s\n" "$xorg_check_linker_flags" >&6; }
13960if test "x$xorg_check_linker_flags" = xyes; then
13961	have_ld_wrap=yes
13962else
13963	have_ld_wrap=no
13964fi
13965
13966# Not having ld wrap when unit testing has been explicitly requested is an error
13967if test "x$enable_unit_tests" = x"yes" -a "xoptional" != "xoptional"; then
13968  if test "x$have_ld_wrap" = x"no"; then
13969    as_fn_error $? "--enable-unit-tests=yes specified but ld -wrap support is not available" "$LINENO" 5
13970  fi
13971fi
13972 if test "$have_ld_wrap" = yes; then
13973  HAVE_LD_WRAP_TRUE=
13974  HAVE_LD_WRAP_FALSE='#'
13975else
13976  HAVE_LD_WRAP_TRUE='#'
13977  HAVE_LD_WRAP_FALSE=
13978fi
13979
13980#
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995ac_config_headers="$ac_config_headers include/do-not-use-config.h"
13996
13997ac_config_headers="$ac_config_headers include/xorg-server.h"
13998
13999ac_config_headers="$ac_config_headers include/dix-config.h"
14000
14001ac_config_headers="$ac_config_headers include/xorg-config.h"
14002
14003ac_config_headers="$ac_config_headers include/xkb-config.h"
14004
14005ac_config_headers="$ac_config_headers include/xwin-config.h"
14006
14007ac_config_headers="$ac_config_headers include/version-config.h"
14008
14009
14010# By default we simply use the C compiler to build assembly code.
14011
14012test "${CCAS+set}" = set || CCAS=$CC
14013test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
14014
14015
14016
14017depcc="$CCAS"   am_compiler_list=
14018
14019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14020printf %s "checking dependency style of $depcc... " >&6; }
14021if test ${am_cv_CCAS_dependencies_compiler_type+y}
14022then :
14023  printf %s "(cached) " >&6
14024else case e in #(
14025  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14026  # We make a subdir and do the tests there.  Otherwise we can end up
14027  # making bogus files that we don't know about and never remove.  For
14028  # instance it was reported that on HP-UX the gcc test will end up
14029  # making a dummy file named 'D' -- because '-MD' means "put the output
14030  # in D".
14031  rm -rf conftest.dir
14032  mkdir conftest.dir
14033  # Copy depcomp to subdir because otherwise we won't find it if we're
14034  # using a relative directory.
14035  cp "$am_depcomp" conftest.dir
14036  cd conftest.dir
14037  # We will build objects and dependencies in a subdirectory because
14038  # it helps to detect inapplicable dependency modes.  For instance
14039  # both Tru64's cc and ICC support -MD to output dependencies as a
14040  # side effect of compilation, but ICC will put the dependencies in
14041  # the current directory while Tru64 will put them in the object
14042  # directory.
14043  mkdir sub
14044
14045  am_cv_CCAS_dependencies_compiler_type=none
14046  if test "$am_compiler_list" = ""; then
14047     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14048  fi
14049  am__universal=false
14050
14051
14052  for depmode in $am_compiler_list; do
14053    # Setup a source with many dependencies, because some compilers
14054    # like to wrap large dependency lists on column 80 (with \), and
14055    # we should not choose a depcomp mode which is confused by this.
14056    #
14057    # We need to recreate these files for each test, as the compiler may
14058    # overwrite some of them when testing with obscure command lines.
14059    # This happens at least with the AIX C compiler.
14060    : > sub/conftest.c
14061    for i in 1 2 3 4 5 6; do
14062      echo '#include "conftst'$i'.h"' >> sub/conftest.c
14063      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14064      # Solaris 10 /bin/sh.
14065      echo '/* dummy */' > sub/conftst$i.h
14066    done
14067    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14068
14069    # We check with '-c' and '-o' for the sake of the "dashmstdout"
14070    # mode.  It turns out that the SunPro C++ compiler does not properly
14071    # handle '-M -o', and we need to detect this.  Also, some Intel
14072    # versions had trouble with output in subdirs.
14073    am__obj=sub/conftest.${OBJEXT-o}
14074    am__minus_obj="-o $am__obj"
14075    case $depmode in
14076    gcc)
14077      # This depmode causes a compiler race in universal mode.
14078      test "$am__universal" = false || continue
14079      ;;
14080    nosideeffect)
14081      # After this tag, mechanisms are not by side-effect, so they'll
14082      # only be used when explicitly requested.
14083      if test "x$enable_dependency_tracking" = xyes; then
14084	continue
14085      else
14086	break
14087      fi
14088      ;;
14089    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14090      # This compiler won't grok '-c -o', but also, the minuso test has
14091      # not run yet.  These depmodes are late enough in the game, and
14092      # so weak that their functioning should not be impacted.
14093      am__obj=conftest.${OBJEXT-o}
14094      am__minus_obj=
14095      ;;
14096    none) break ;;
14097    esac
14098    if depmode=$depmode \
14099       source=sub/conftest.c object=$am__obj \
14100       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14101       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14102         >/dev/null 2>conftest.err &&
14103       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14104       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14105       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14106       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14107      # icc doesn't choke on unknown options, it will just issue warnings
14108      # or remarks (even with -Werror).  So we grep stderr for any message
14109      # that says an option was ignored or not supported.
14110      # When given -MP, icc 7.0 and 7.1 complain thus:
14111      #   icc: Command line warning: ignoring option '-M'; no argument required
14112      # The diagnosis changed in icc 8.0:
14113      #   icc: Command line remark: option '-MP' not supported
14114      if (grep 'ignoring option' conftest.err ||
14115          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14116        am_cv_CCAS_dependencies_compiler_type=$depmode
14117        break
14118      fi
14119    fi
14120  done
14121
14122  cd ..
14123  rm -rf conftest.dir
14124else
14125  am_cv_CCAS_dependencies_compiler_type=none
14126fi
14127 ;;
14128esac
14129fi
14130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
14131printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
14132CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
14133
14134 if
14135  test "x$enable_dependency_tracking" != xno \
14136  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
14137  am__fastdepCCAS_TRUE=
14138  am__fastdepCCAS_FALSE='#'
14139else
14140  am__fastdepCCAS_TRUE='#'
14141  am__fastdepCCAS_FALSE=
14142fi
14143
14144
14145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14146printf %s "checking whether ln -s works... " >&6; }
14147LN_S=$as_ln_s
14148if test "$LN_S" = "ln -s"; then
14149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14150printf "%s\n" "yes" >&6; }
14151else
14152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14153printf "%s\n" "no, using $LN_S" >&6; }
14154fi
14155
14156
14157case `pwd` in
14158  *\ * | *\	*)
14159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
14160printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
14161esac
14162
14163
14164
14165macro_version='2.5.4'
14166macro_revision='2.5.4'
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181ltmain=$ac_aux_dir/ltmain.sh
14182
14183# Backslashify metacharacters that are still active within
14184# double-quoted strings.
14185sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14186
14187# Same as above, but do not quote variable references.
14188double_quote_subst='s/\(["`\\]\)/\\\1/g'
14189
14190# Sed substitution to delay expansion of an escaped shell variable in a
14191# double_quote_subst'ed string.
14192delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14193
14194# Sed substitution to delay expansion of an escaped single quote.
14195delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14196
14197# Sed substitution to avoid accidental globbing in evaled expressions
14198no_glob_subst='s/\*/\\\*/g'
14199
14200ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14201ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
14202ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
14203
14204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
14205printf %s "checking how to print strings... " >&6; }
14206# Test print first, because it will be a builtin if present.
14207if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
14208   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
14209  ECHO='print -r --'
14210elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
14211  ECHO='printf %s\n'
14212else
14213  # Use this function as a fallback that always works.
14214  func_fallback_echo ()
14215  {
14216    eval 'cat <<_LTECHO_EOF
14217$1
14218_LTECHO_EOF'
14219  }
14220  ECHO='func_fallback_echo'
14221fi
14222
14223# func_echo_all arg...
14224# Invoke $ECHO with all args, space-separated.
14225func_echo_all ()
14226{
14227    $ECHO ""
14228}
14229
14230case $ECHO in
14231  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
14232printf "%s\n" "printf" >&6; } ;;
14233  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
14234printf "%s\n" "print -r" >&6; } ;;
14235  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
14236printf "%s\n" "cat" >&6; } ;;
14237esac
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
14253printf %s "checking for a sed that does not truncate output... " >&6; }
14254if test ${ac_cv_path_SED+y}
14255then :
14256  printf %s "(cached) " >&6
14257else case e in #(
14258  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
14259     for ac_i in 1 2 3 4 5 6 7; do
14260       ac_script="$ac_script$as_nl$ac_script"
14261     done
14262     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
14263     { ac_script=; unset ac_script;}
14264     if test -z "$SED"; then
14265  ac_path_SED_found=false
14266  # Loop through the user's path and test for each of PROGNAME-LIST
14267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268for as_dir in $PATH
14269do
14270  IFS=$as_save_IFS
14271  case $as_dir in #(((
14272    '') as_dir=./ ;;
14273    */) ;;
14274    *) as_dir=$as_dir/ ;;
14275  esac
14276    for ac_prog in sed gsed
14277   do
14278    for ac_exec_ext in '' $ac_executable_extensions; do
14279      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
14280      as_fn_executable_p "$ac_path_SED" || continue
14281# Check for GNU ac_path_SED and select it if it is found.
14282  # Check for GNU $ac_path_SED
14283case `"$ac_path_SED" --version 2>&1` in #(
14284*GNU*)
14285  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
14286#(
14287*)
14288  ac_count=0
14289  printf %s 0123456789 >"conftest.in"
14290  while :
14291  do
14292    cat "conftest.in" "conftest.in" >"conftest.tmp"
14293    mv "conftest.tmp" "conftest.in"
14294    cp "conftest.in" "conftest.nl"
14295    printf "%s\n" '' >> "conftest.nl"
14296    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
14297    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14298    as_fn_arith $ac_count + 1 && ac_count=$as_val
14299    if test $ac_count -gt ${ac_path_SED_max-0}; then
14300      # Best one so far, save it but keep looking for a better one
14301      ac_cv_path_SED="$ac_path_SED"
14302      ac_path_SED_max=$ac_count
14303    fi
14304    # 10*(2^10) chars as input seems more than enough
14305    test $ac_count -gt 10 && break
14306  done
14307  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14308esac
14309
14310      $ac_path_SED_found && break 3
14311    done
14312  done
14313  done
14314IFS=$as_save_IFS
14315  if test -z "$ac_cv_path_SED"; then
14316    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
14317  fi
14318else
14319  ac_cv_path_SED=$SED
14320fi
14321 ;;
14322esac
14323fi
14324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
14325printf "%s\n" "$ac_cv_path_SED" >&6; }
14326 SED="$ac_cv_path_SED"
14327  rm -f conftest.sed
14328
14329test -z "$SED" && SED=sed
14330Xsed="$SED -e 1s/^X//"
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
14343printf %s "checking for grep that handles long lines and -e... " >&6; }
14344if test ${ac_cv_path_GREP+y}
14345then :
14346  printf %s "(cached) " >&6
14347else case e in #(
14348  e) if test -z "$GREP"; then
14349  ac_path_GREP_found=false
14350  # Loop through the user's path and test for each of PROGNAME-LIST
14351  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14353do
14354  IFS=$as_save_IFS
14355  case $as_dir in #(((
14356    '') as_dir=./ ;;
14357    */) ;;
14358    *) as_dir=$as_dir/ ;;
14359  esac
14360    for ac_prog in grep ggrep
14361   do
14362    for ac_exec_ext in '' $ac_executable_extensions; do
14363      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
14364      as_fn_executable_p "$ac_path_GREP" || continue
14365# Check for GNU ac_path_GREP and select it if it is found.
14366  # Check for GNU $ac_path_GREP
14367case `"$ac_path_GREP" --version 2>&1` in #(
14368*GNU*)
14369  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
14370#(
14371*)
14372  ac_count=0
14373  printf %s 0123456789 >"conftest.in"
14374  while :
14375  do
14376    cat "conftest.in" "conftest.in" >"conftest.tmp"
14377    mv "conftest.tmp" "conftest.in"
14378    cp "conftest.in" "conftest.nl"
14379    printf "%s\n" 'GREP' >> "conftest.nl"
14380    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14381    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14382    as_fn_arith $ac_count + 1 && ac_count=$as_val
14383    if test $ac_count -gt ${ac_path_GREP_max-0}; then
14384      # Best one so far, save it but keep looking for a better one
14385      ac_cv_path_GREP="$ac_path_GREP"
14386      ac_path_GREP_max=$ac_count
14387    fi
14388    # 10*(2^10) chars as input seems more than enough
14389    test $ac_count -gt 10 && break
14390  done
14391  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14392esac
14393
14394      $ac_path_GREP_found && break 3
14395    done
14396  done
14397  done
14398IFS=$as_save_IFS
14399  if test -z "$ac_cv_path_GREP"; then
14400    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14401  fi
14402else
14403  ac_cv_path_GREP=$GREP
14404fi
14405 ;;
14406esac
14407fi
14408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
14409printf "%s\n" "$ac_cv_path_GREP" >&6; }
14410 GREP="$ac_cv_path_GREP"
14411
14412
14413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
14414printf %s "checking for egrep... " >&6; }
14415if test ${ac_cv_path_EGREP+y}
14416then :
14417  printf %s "(cached) " >&6
14418else case e in #(
14419  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
14420   then ac_cv_path_EGREP="$GREP -E"
14421   else
14422     if test -z "$EGREP"; then
14423  ac_path_EGREP_found=false
14424  # Loop through the user's path and test for each of PROGNAME-LIST
14425  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14426for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14427do
14428  IFS=$as_save_IFS
14429  case $as_dir in #(((
14430    '') as_dir=./ ;;
14431    */) ;;
14432    *) as_dir=$as_dir/ ;;
14433  esac
14434    for ac_prog in egrep
14435   do
14436    for ac_exec_ext in '' $ac_executable_extensions; do
14437      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
14438      as_fn_executable_p "$ac_path_EGREP" || continue
14439# Check for GNU ac_path_EGREP and select it if it is found.
14440  # Check for GNU $ac_path_EGREP
14441case `"$ac_path_EGREP" --version 2>&1` in #(
14442*GNU*)
14443  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
14444#(
14445*)
14446  ac_count=0
14447  printf %s 0123456789 >"conftest.in"
14448  while :
14449  do
14450    cat "conftest.in" "conftest.in" >"conftest.tmp"
14451    mv "conftest.tmp" "conftest.in"
14452    cp "conftest.in" "conftest.nl"
14453    printf "%s\n" 'EGREP' >> "conftest.nl"
14454    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
14455    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14456    as_fn_arith $ac_count + 1 && ac_count=$as_val
14457    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
14458      # Best one so far, save it but keep looking for a better one
14459      ac_cv_path_EGREP="$ac_path_EGREP"
14460      ac_path_EGREP_max=$ac_count
14461    fi
14462    # 10*(2^10) chars as input seems more than enough
14463    test $ac_count -gt 10 && break
14464  done
14465  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14466esac
14467
14468      $ac_path_EGREP_found && break 3
14469    done
14470  done
14471  done
14472IFS=$as_save_IFS
14473  if test -z "$ac_cv_path_EGREP"; then
14474    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14475  fi
14476else
14477  ac_cv_path_EGREP=$EGREP
14478fi
14479
14480   fi ;;
14481esac
14482fi
14483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
14484printf "%s\n" "$ac_cv_path_EGREP" >&6; }
14485 EGREP="$ac_cv_path_EGREP"
14486
14487         EGREP_TRADITIONAL=$EGREP
14488 ac_cv_path_EGREP_TRADITIONAL=$EGREP
14489
14490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
14491printf %s "checking for fgrep... " >&6; }
14492if test ${ac_cv_path_FGREP+y}
14493then :
14494  printf %s "(cached) " >&6
14495else case e in #(
14496  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
14497   then ac_cv_path_FGREP="$GREP -F"
14498   else
14499     if test -z "$FGREP"; then
14500  ac_path_FGREP_found=false
14501  # Loop through the user's path and test for each of PROGNAME-LIST
14502  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
14504do
14505  IFS=$as_save_IFS
14506  case $as_dir in #(((
14507    '') as_dir=./ ;;
14508    */) ;;
14509    *) as_dir=$as_dir/ ;;
14510  esac
14511    for ac_prog in fgrep
14512   do
14513    for ac_exec_ext in '' $ac_executable_extensions; do
14514      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
14515      as_fn_executable_p "$ac_path_FGREP" || continue
14516# Check for GNU ac_path_FGREP and select it if it is found.
14517  # Check for GNU $ac_path_FGREP
14518case `"$ac_path_FGREP" --version 2>&1` in #(
14519*GNU*)
14520  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
14521#(
14522*)
14523  ac_count=0
14524  printf %s 0123456789 >"conftest.in"
14525  while :
14526  do
14527    cat "conftest.in" "conftest.in" >"conftest.tmp"
14528    mv "conftest.tmp" "conftest.in"
14529    cp "conftest.in" "conftest.nl"
14530    printf "%s\n" 'FGREP' >> "conftest.nl"
14531    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
14532    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
14533    as_fn_arith $ac_count + 1 && ac_count=$as_val
14534    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
14535      # Best one so far, save it but keep looking for a better one
14536      ac_cv_path_FGREP="$ac_path_FGREP"
14537      ac_path_FGREP_max=$ac_count
14538    fi
14539    # 10*(2^10) chars as input seems more than enough
14540    test $ac_count -gt 10 && break
14541  done
14542  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
14543esac
14544
14545      $ac_path_FGREP_found && break 3
14546    done
14547  done
14548  done
14549IFS=$as_save_IFS
14550  if test -z "$ac_cv_path_FGREP"; then
14551    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
14552  fi
14553else
14554  ac_cv_path_FGREP=$FGREP
14555fi
14556
14557   fi ;;
14558esac
14559fi
14560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
14561printf "%s\n" "$ac_cv_path_FGREP" >&6; }
14562 FGREP="$ac_cv_path_FGREP"
14563
14564
14565test -z "$GREP" && GREP=grep
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585# Check whether --with-gnu-ld was given.
14586if test ${with_gnu_ld+y}
14587then :
14588  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14589else case e in #(
14590  e) with_gnu_ld=no ;;
14591esac
14592fi
14593
14594ac_prog=ld
14595if test yes = "$GCC"; then
14596  # Check if gcc -print-prog-name=ld gives a path.
14597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14598printf %s "checking for ld used by $CC... " >&6; }
14599  case $host in
14600  *-*-mingw* | *-*-windows*)
14601    # gcc leaves a trailing carriage return, which upsets mingw
14602    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14603  *)
14604    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14605  esac
14606  case $ac_prog in
14607    # Accept absolute paths.
14608    [\\/]* | ?:[\\/]*)
14609      re_direlt='/[^/][^/]*/\.\./'
14610      # Canonicalize the pathname of ld
14611      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14612      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14613	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14614      done
14615      test -z "$LD" && LD=$ac_prog
14616      ;;
14617  "")
14618    # If it fails, then pretend we aren't using GCC.
14619    ac_prog=ld
14620    ;;
14621  *)
14622    # If it is relative, then search for the first ld in PATH.
14623    with_gnu_ld=unknown
14624    ;;
14625  esac
14626elif test yes = "$with_gnu_ld"; then
14627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14628printf %s "checking for GNU ld... " >&6; }
14629else
14630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14631printf %s "checking for non-GNU ld... " >&6; }
14632fi
14633if test ${lt_cv_path_LD+y}
14634then :
14635  printf %s "(cached) " >&6
14636else case e in #(
14637  e) if test -z "$LD"; then
14638  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14639  for ac_dir in $PATH; do
14640    IFS=$lt_save_ifs
14641    test -z "$ac_dir" && ac_dir=.
14642    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14643      lt_cv_path_LD=$ac_dir/$ac_prog
14644      # Check to see if the program is GNU ld.  I'd rather use --version,
14645      # but apparently some variants of GNU ld only accept -v.
14646      # Break only if it was the GNU/non-GNU ld that we prefer.
14647      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14648      *GNU* | *'with BFD'*)
14649	test no != "$with_gnu_ld" && break
14650	;;
14651      *)
14652	test yes != "$with_gnu_ld" && break
14653	;;
14654      esac
14655    fi
14656  done
14657  IFS=$lt_save_ifs
14658else
14659  lt_cv_path_LD=$LD # Let the user override the test with a path.
14660fi ;;
14661esac
14662fi
14663
14664LD=$lt_cv_path_LD
14665if test -n "$LD"; then
14666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14667printf "%s\n" "$LD" >&6; }
14668else
14669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670printf "%s\n" "no" >&6; }
14671fi
14672test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14674printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14675if test ${lt_cv_prog_gnu_ld+y}
14676then :
14677  printf %s "(cached) " >&6
14678else case e in #(
14679  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14680case `$LD -v 2>&1 </dev/null` in
14681*GNU* | *'with BFD'*)
14682  lt_cv_prog_gnu_ld=yes
14683  ;;
14684*)
14685  lt_cv_prog_gnu_ld=no
14686  ;;
14687esac ;;
14688esac
14689fi
14690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14691printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14692with_gnu_ld=$lt_cv_prog_gnu_ld
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
14703printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
14704if test ${lt_cv_path_NM+y}
14705then :
14706  printf %s "(cached) " >&6
14707else case e in #(
14708  e) if test -n "$NM"; then
14709  # Let the user override the test.
14710  lt_cv_path_NM=$NM
14711else
14712  lt_nm_to_check=${ac_tool_prefix}nm
14713  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
14714    lt_nm_to_check="$lt_nm_to_check nm"
14715  fi
14716  for lt_tmp_nm in $lt_nm_to_check; do
14717    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14718    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
14719      IFS=$lt_save_ifs
14720      test -z "$ac_dir" && ac_dir=.
14721      tmp_nm=$ac_dir/$lt_tmp_nm
14722      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
14723	# Check to see if the nm accepts a BSD-compat flag.
14724	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
14725	#   nm: unknown option "B" ignored
14726	# Tru64's nm complains that /dev/null is an invalid object file
14727	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
14728	case $build_os in
14729	mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
14730	*) lt_bad_file=/dev/null ;;
14731	esac
14732	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
14733	*$lt_bad_file* | *'Invalid file or object type'*)
14734	  lt_cv_path_NM="$tmp_nm -B"
14735	  break 2
14736	  ;;
14737	*)
14738	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
14739	  */dev/null*)
14740	    lt_cv_path_NM="$tmp_nm -p"
14741	    break 2
14742	    ;;
14743	  *)
14744	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14745	    continue # so that we can try to find one that supports BSD flags
14746	    ;;
14747	  esac
14748	  ;;
14749	esac
14750      fi
14751    done
14752    IFS=$lt_save_ifs
14753  done
14754  : ${lt_cv_path_NM=no}
14755fi ;;
14756esac
14757fi
14758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
14759printf "%s\n" "$lt_cv_path_NM" >&6; }
14760if test no != "$lt_cv_path_NM"; then
14761  NM=$lt_cv_path_NM
14762else
14763  # Didn't find any BSD compatible name lister, look for dumpbin.
14764  if test -n "$DUMPBIN"; then :
14765    # Let the user override the test.
14766  else
14767    if test -n "$ac_tool_prefix"; then
14768  for ac_prog in dumpbin "link -dump"
14769  do
14770    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14773printf %s "checking for $ac_word... " >&6; }
14774if test ${ac_cv_prog_DUMPBIN+y}
14775then :
14776  printf %s "(cached) " >&6
14777else case e in #(
14778  e) if test -n "$DUMPBIN"; then
14779  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
14780else
14781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14782for as_dir in $PATH
14783do
14784  IFS=$as_save_IFS
14785  case $as_dir in #(((
14786    '') as_dir=./ ;;
14787    */) ;;
14788    *) as_dir=$as_dir/ ;;
14789  esac
14790    for ac_exec_ext in '' $ac_executable_extensions; do
14791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14792    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
14793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14794    break 2
14795  fi
14796done
14797  done
14798IFS=$as_save_IFS
14799
14800fi ;;
14801esac
14802fi
14803DUMPBIN=$ac_cv_prog_DUMPBIN
14804if test -n "$DUMPBIN"; then
14805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
14806printf "%s\n" "$DUMPBIN" >&6; }
14807else
14808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14809printf "%s\n" "no" >&6; }
14810fi
14811
14812
14813    test -n "$DUMPBIN" && break
14814  done
14815fi
14816if test -z "$DUMPBIN"; then
14817  ac_ct_DUMPBIN=$DUMPBIN
14818  for ac_prog in dumpbin "link -dump"
14819do
14820  # Extract the first word of "$ac_prog", so it can be a program name with args.
14821set dummy $ac_prog; ac_word=$2
14822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823printf %s "checking for $ac_word... " >&6; }
14824if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
14825then :
14826  printf %s "(cached) " >&6
14827else case e in #(
14828  e) if test -n "$ac_ct_DUMPBIN"; then
14829  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
14830else
14831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832for as_dir in $PATH
14833do
14834  IFS=$as_save_IFS
14835  case $as_dir in #(((
14836    '') as_dir=./ ;;
14837    */) ;;
14838    *) as_dir=$as_dir/ ;;
14839  esac
14840    for ac_exec_ext in '' $ac_executable_extensions; do
14841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14842    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
14843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14844    break 2
14845  fi
14846done
14847  done
14848IFS=$as_save_IFS
14849
14850fi ;;
14851esac
14852fi
14853ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
14854if test -n "$ac_ct_DUMPBIN"; then
14855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
14856printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
14857else
14858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14859printf "%s\n" "no" >&6; }
14860fi
14861
14862
14863  test -n "$ac_ct_DUMPBIN" && break
14864done
14865
14866  if test "x$ac_ct_DUMPBIN" = x; then
14867    DUMPBIN=":"
14868  else
14869    case $cross_compiling:$ac_tool_warned in
14870yes:)
14871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14872printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14873ac_tool_warned=yes ;;
14874esac
14875    DUMPBIN=$ac_ct_DUMPBIN
14876  fi
14877fi
14878
14879    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
14880    *COFF*)
14881      DUMPBIN="$DUMPBIN -symbols -headers"
14882      ;;
14883    *)
14884      DUMPBIN=:
14885      ;;
14886    esac
14887  fi
14888
14889  if test : != "$DUMPBIN"; then
14890    NM=$DUMPBIN
14891  fi
14892fi
14893test -z "$NM" && NM=nm
14894
14895
14896
14897
14898
14899
14900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
14901printf %s "checking the name lister ($NM) interface... " >&6; }
14902if test ${lt_cv_nm_interface+y}
14903then :
14904  printf %s "(cached) " >&6
14905else case e in #(
14906  e) lt_cv_nm_interface="BSD nm"
14907  echo "int some_variable = 0;" > conftest.$ac_ext
14908  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
14909  (eval "$ac_compile" 2>conftest.err)
14910  cat conftest.err >&5
14911  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
14912  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
14913  cat conftest.err >&5
14914  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
14915  cat conftest.out >&5
14916  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
14917    lt_cv_nm_interface="MS dumpbin"
14918  fi
14919  rm -f conftest* ;;
14920esac
14921fi
14922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
14923printf "%s\n" "$lt_cv_nm_interface" >&6; }
14924
14925# find the maximum length of command line arguments
14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
14927printf %s "checking the maximum length of command line arguments... " >&6; }
14928if test ${lt_cv_sys_max_cmd_len+y}
14929then :
14930  printf %s "(cached) " >&6
14931else case e in #(
14932  e)   i=0
14933  teststring=ABCD
14934
14935  case $build_os in
14936  msdosdjgpp*)
14937    # On DJGPP, this test can blow up pretty badly due to problems in libc
14938    # (any single argument exceeding 2000 bytes causes a buffer overrun
14939    # during glob expansion).  Even if it were fixed, the result of this
14940    # check would be larger than it should be.
14941    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14942    ;;
14943
14944  gnu* | ironclad*)
14945    # Under GNU Hurd and Ironclad, this test is not required because there
14946    # is no limit to the length of command line arguments.
14947    # Libtool will interpret -1 as no limit whatsoever
14948    lt_cv_sys_max_cmd_len=-1;
14949    ;;
14950
14951  cygwin* | mingw* | windows* | cegcc*)
14952    # On Win9x/ME, this test blows up -- it succeeds, but takes
14953    # about 5 minutes as the teststring grows exponentially.
14954    # Worse, since 9x/ME are not pre-emptively multitasking,
14955    # you end up with a "frozen" computer, even though with patience
14956    # the test eventually succeeds (with a max line length of 256k).
14957    # Instead, let's just punt: use the minimum linelength reported by
14958    # all of the supported platforms: 8192 (on NT/2K/XP).
14959    lt_cv_sys_max_cmd_len=8192;
14960    ;;
14961
14962  mint*)
14963    # On MiNT this can take a long time and run out of memory.
14964    lt_cv_sys_max_cmd_len=8192;
14965    ;;
14966
14967  amigaos*)
14968    # On AmigaOS with pdksh, this test takes hours, literally.
14969    # So we just punt and use a minimum line length of 8192.
14970    lt_cv_sys_max_cmd_len=8192;
14971    ;;
14972
14973  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
14974    # This has been around since 386BSD, at least.  Likely further.
14975    if test -x /sbin/sysctl; then
14976      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14977    elif test -x /usr/sbin/sysctl; then
14978      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14979    else
14980      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
14981    fi
14982    # And add a safety zone
14983    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14984    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14985    ;;
14986
14987  interix*)
14988    # We know the value 262144 and hardcode it with a safety zone (like BSD)
14989    lt_cv_sys_max_cmd_len=196608
14990    ;;
14991
14992  os2*)
14993    # The test takes a long time on OS/2.
14994    lt_cv_sys_max_cmd_len=8192
14995    ;;
14996
14997  osf*)
14998    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14999    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15000    # nice to cause kernel panics so lets avoid the loop below.
15001    # First set a reasonable default.
15002    lt_cv_sys_max_cmd_len=16384
15003    #
15004    if test -x /sbin/sysconfig; then
15005      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15006        *1*) lt_cv_sys_max_cmd_len=-1 ;;
15007      esac
15008    fi
15009    ;;
15010  sco3.2v5*)
15011    lt_cv_sys_max_cmd_len=102400
15012    ;;
15013  sysv5* | sco5v6* | sysv4.2uw2*)
15014    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15015    if test -n "$kargmax"; then
15016      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
15017    else
15018      lt_cv_sys_max_cmd_len=32768
15019    fi
15020    ;;
15021  *)
15022    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15023    if test -n "$lt_cv_sys_max_cmd_len" && \
15024       test undefined != "$lt_cv_sys_max_cmd_len"; then
15025      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15026      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15027    else
15028      # Make teststring a little bigger before we do anything with it.
15029      # a 1K string should be a reasonable start.
15030      for i in 1 2 3 4 5 6 7 8; do
15031        teststring=$teststring$teststring
15032      done
15033      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15034      # If test is not a shell built-in, we'll probably end up computing a
15035      # maximum length that is only half of the actual maximum length, but
15036      # we can't tell.
15037      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
15038	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15039	      test 17 != "$i" # 1/2 MB should be enough
15040      do
15041        i=`expr $i + 1`
15042        teststring=$teststring$teststring
15043      done
15044      # Only check the string length outside the loop.
15045      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15046      teststring=
15047      # Add a significant safety factor because C++ compilers can tack on
15048      # massive amounts of additional arguments before passing them to the
15049      # linker.  It appears as though 1/2 is a usable value.
15050      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15051    fi
15052    ;;
15053  esac
15054 ;;
15055esac
15056fi
15057
15058if test -n "$lt_cv_sys_max_cmd_len"; then
15059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
15060printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
15061else
15062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
15063printf "%s\n" "none" >&6; }
15064fi
15065max_cmd_len=$lt_cv_sys_max_cmd_len
15066
15067
15068
15069
15070
15071
15072: ${CP="cp -f"}
15073: ${MV="mv -f"}
15074: ${RM="rm -f"}
15075
15076if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15077  lt_unset=unset
15078else
15079  lt_unset=false
15080fi
15081
15082
15083
15084
15085
15086# test EBCDIC or ASCII
15087case `echo X|tr X '\101'` in
15088 A) # ASCII based system
15089    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
15090  lt_SP2NL='tr \040 \012'
15091  lt_NL2SP='tr \015\012 \040\040'
15092  ;;
15093 *) # EBCDIC based system
15094  lt_SP2NL='tr \100 \n'
15095  lt_NL2SP='tr \r\n \100\100'
15096  ;;
15097esac
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
15108printf %s "checking how to convert $build file names to $host format... " >&6; }
15109if test ${lt_cv_to_host_file_cmd+y}
15110then :
15111  printf %s "(cached) " >&6
15112else case e in #(
15113  e) case $host in
15114  *-*-mingw* )
15115    case $build in
15116      *-*-mingw* | *-*-windows* ) # actually msys
15117        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
15118        ;;
15119      *-*-cygwin* )
15120        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
15121        ;;
15122      * ) # otherwise, assume *nix
15123        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
15124        ;;
15125    esac
15126    ;;
15127  *-*-cygwin* )
15128    case $build in
15129      *-*-mingw* | *-*-windows* ) # actually msys
15130        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
15131        ;;
15132      *-*-cygwin* )
15133        lt_cv_to_host_file_cmd=func_convert_file_noop
15134        ;;
15135      * ) # otherwise, assume *nix
15136        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
15137        ;;
15138    esac
15139    ;;
15140  * ) # unhandled hosts (and "normal" native builds)
15141    lt_cv_to_host_file_cmd=func_convert_file_noop
15142    ;;
15143esac
15144 ;;
15145esac
15146fi
15147
15148to_host_file_cmd=$lt_cv_to_host_file_cmd
15149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
15150printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
15151
15152
15153
15154
15155
15156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
15157printf %s "checking how to convert $build file names to toolchain format... " >&6; }
15158if test ${lt_cv_to_tool_file_cmd+y}
15159then :
15160  printf %s "(cached) " >&6
15161else case e in #(
15162  e) #assume ordinary cross tools, or native build.
15163lt_cv_to_tool_file_cmd=func_convert_file_noop
15164case $host in
15165  *-*-mingw* | *-*-windows* )
15166    case $build in
15167      *-*-mingw* | *-*-windows* ) # actually msys
15168        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
15169        ;;
15170    esac
15171    ;;
15172esac
15173 ;;
15174esac
15175fi
15176
15177to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
15179printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
15180
15181
15182
15183
15184
15185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
15186printf %s "checking for $LD option to reload object files... " >&6; }
15187if test ${lt_cv_ld_reload_flag+y}
15188then :
15189  printf %s "(cached) " >&6
15190else case e in #(
15191  e) lt_cv_ld_reload_flag='-r' ;;
15192esac
15193fi
15194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
15195printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
15196reload_flag=$lt_cv_ld_reload_flag
15197case $reload_flag in
15198"" | " "*) ;;
15199*) reload_flag=" $reload_flag" ;;
15200esac
15201reload_cmds='$LD$reload_flag -o $output$reload_objs'
15202case $host_os in
15203  cygwin* | mingw* | windows* | pw32* | cegcc*)
15204    if test yes != "$GCC"; then
15205      reload_cmds=false
15206    fi
15207    ;;
15208  darwin*)
15209    if test yes = "$GCC"; then
15210      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
15211    else
15212      reload_cmds='$LD$reload_flag -o $output$reload_objs'
15213    fi
15214    ;;
15215esac
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225# Extract the first word of "file", so it can be a program name with args.
15226set dummy file; ac_word=$2
15227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15228printf %s "checking for $ac_word... " >&6; }
15229if test ${ac_cv_prog_FILECMD+y}
15230then :
15231  printf %s "(cached) " >&6
15232else case e in #(
15233  e) if test -n "$FILECMD"; then
15234  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
15235else
15236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15237for as_dir in $PATH
15238do
15239  IFS=$as_save_IFS
15240  case $as_dir in #(((
15241    '') as_dir=./ ;;
15242    */) ;;
15243    *) as_dir=$as_dir/ ;;
15244  esac
15245    for ac_exec_ext in '' $ac_executable_extensions; do
15246  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15247    ac_cv_prog_FILECMD="file"
15248    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15249    break 2
15250  fi
15251done
15252  done
15253IFS=$as_save_IFS
15254
15255  test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
15256fi ;;
15257esac
15258fi
15259FILECMD=$ac_cv_prog_FILECMD
15260if test -n "$FILECMD"; then
15261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
15262printf "%s\n" "$FILECMD" >&6; }
15263else
15264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265printf "%s\n" "no" >&6; }
15266fi
15267
15268
15269
15270
15271
15272
15273
15274
15275if test -n "$ac_tool_prefix"; then
15276  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15277set dummy ${ac_tool_prefix}objdump; ac_word=$2
15278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15279printf %s "checking for $ac_word... " >&6; }
15280if test ${ac_cv_prog_OBJDUMP+y}
15281then :
15282  printf %s "(cached) " >&6
15283else case e in #(
15284  e) if test -n "$OBJDUMP"; then
15285  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15286else
15287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288for as_dir in $PATH
15289do
15290  IFS=$as_save_IFS
15291  case $as_dir in #(((
15292    '') as_dir=./ ;;
15293    */) ;;
15294    *) as_dir=$as_dir/ ;;
15295  esac
15296    for ac_exec_ext in '' $ac_executable_extensions; do
15297  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15298    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15299    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15300    break 2
15301  fi
15302done
15303  done
15304IFS=$as_save_IFS
15305
15306fi ;;
15307esac
15308fi
15309OBJDUMP=$ac_cv_prog_OBJDUMP
15310if test -n "$OBJDUMP"; then
15311  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
15312printf "%s\n" "$OBJDUMP" >&6; }
15313else
15314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15315printf "%s\n" "no" >&6; }
15316fi
15317
15318
15319fi
15320if test -z "$ac_cv_prog_OBJDUMP"; then
15321  ac_ct_OBJDUMP=$OBJDUMP
15322  # Extract the first word of "objdump", so it can be a program name with args.
15323set dummy objdump; ac_word=$2
15324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15325printf %s "checking for $ac_word... " >&6; }
15326if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
15327then :
15328  printf %s "(cached) " >&6
15329else case e in #(
15330  e) if test -n "$ac_ct_OBJDUMP"; then
15331  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
15332else
15333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15334for as_dir in $PATH
15335do
15336  IFS=$as_save_IFS
15337  case $as_dir in #(((
15338    '') as_dir=./ ;;
15339    */) ;;
15340    *) as_dir=$as_dir/ ;;
15341  esac
15342    for ac_exec_ext in '' $ac_executable_extensions; do
15343  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15344    ac_cv_prog_ac_ct_OBJDUMP="objdump"
15345    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15346    break 2
15347  fi
15348done
15349  done
15350IFS=$as_save_IFS
15351
15352fi ;;
15353esac
15354fi
15355ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
15356if test -n "$ac_ct_OBJDUMP"; then
15357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
15358printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
15359else
15360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15361printf "%s\n" "no" >&6; }
15362fi
15363
15364  if test "x$ac_ct_OBJDUMP" = x; then
15365    OBJDUMP="false"
15366  else
15367    case $cross_compiling:$ac_tool_warned in
15368yes:)
15369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15371ac_tool_warned=yes ;;
15372esac
15373    OBJDUMP=$ac_ct_OBJDUMP
15374  fi
15375else
15376  OBJDUMP="$ac_cv_prog_OBJDUMP"
15377fi
15378
15379test -z "$OBJDUMP" && OBJDUMP=objdump
15380
15381
15382
15383
15384
15385
15386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
15387printf %s "checking how to recognize dependent libraries... " >&6; }
15388if test ${lt_cv_deplibs_check_method+y}
15389then :
15390  printf %s "(cached) " >&6
15391else case e in #(
15392  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
15393lt_cv_file_magic_test_file=
15394lt_cv_deplibs_check_method='unknown'
15395# Need to set the preceding variable on all platforms that support
15396# interlibrary dependencies.
15397# 'none' -- dependencies not supported.
15398# 'unknown' -- same as none, but documents that we really don't know.
15399# 'pass_all' -- all dependencies passed with no checks.
15400# 'file_magic [[regex]]' -- check by looking for files in library path
15401# that responds to the $file_magic_cmd with a given extended regex.
15402# If you have 'file' or equivalent on your system and you're not sure
15403# whether 'pass_all' will *always* work, you probably want this one.
15404
15405case $host_os in
15406aix[4-9]*)
15407  lt_cv_deplibs_check_method=pass_all
15408  ;;
15409
15410beos*)
15411  lt_cv_deplibs_check_method=pass_all
15412  ;;
15413
15414bsdi[45]*)
15415  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15416  lt_cv_file_magic_cmd='$FILECMD -L'
15417  lt_cv_file_magic_test_file=/shlib/libc.so
15418  ;;
15419
15420cygwin*)
15421  # func_win32_libid is a shell function defined in ltmain.sh
15422  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15423  lt_cv_file_magic_cmd='func_win32_libid'
15424  ;;
15425
15426mingw* | windows* | pw32*)
15427  # Base MSYS/MinGW do not provide the 'file' command needed by
15428  # func_win32_libid shell function, so use a weaker test based on 'objdump',
15429  # unless we find 'file', for example because we are cross-compiling.
15430  if ( file / ) >/dev/null 2>&1; then
15431    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15432    lt_cv_file_magic_cmd='func_win32_libid'
15433  else
15434    # Keep this pattern in sync with the one in func_win32_libid.
15435    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
15436    lt_cv_file_magic_cmd='$OBJDUMP -f'
15437  fi
15438  ;;
15439
15440cegcc*)
15441  # use the weaker test based on 'objdump'. See mingw*.
15442  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
15443  lt_cv_file_magic_cmd='$OBJDUMP -f'
15444  ;;
15445
15446darwin* | rhapsody*)
15447  lt_cv_deplibs_check_method=pass_all
15448  ;;
15449
15450freebsd* | dragonfly* | midnightbsd*)
15451  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15452    case $host_cpu in
15453    i*86 )
15454      # Not sure whether the presence of OpenBSD here was a mistake.
15455      # Let's accept both of them until this is cleared up.
15456      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
15457      lt_cv_file_magic_cmd=$FILECMD
15458      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15459      ;;
15460    esac
15461  else
15462    lt_cv_deplibs_check_method=pass_all
15463  fi
15464  ;;
15465
15466haiku*)
15467  lt_cv_deplibs_check_method=pass_all
15468  ;;
15469
15470hpux10.20* | hpux11*)
15471  lt_cv_file_magic_cmd=$FILECMD
15472  case $host_cpu in
15473  ia64*)
15474    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15475    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15476    ;;
15477  hppa*64*)
15478    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]'
15479    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15480    ;;
15481  *)
15482    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
15483    lt_cv_file_magic_test_file=/usr/lib/libc.sl
15484    ;;
15485  esac
15486  ;;
15487
15488interix[3-9]*)
15489  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
15490  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
15491  ;;
15492
15493irix5* | irix6* | nonstopux*)
15494  case $LD in
15495  *-32|*"-32 ") libmagic=32-bit;;
15496  *-n32|*"-n32 ") libmagic=N32;;
15497  *-64|*"-64 ") libmagic=64-bit;;
15498  *) libmagic=never-match;;
15499  esac
15500  lt_cv_deplibs_check_method=pass_all
15501  ;;
15502
15503# This must be glibc/ELF.
15504linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15505  lt_cv_deplibs_check_method=pass_all
15506  ;;
15507
15508*-mlibc)
15509  lt_cv_deplibs_check_method=pass_all
15510  ;;
15511
15512netbsd* | netbsdelf*-gnu)
15513  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
15514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15515  else
15516    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15517  fi
15518  ;;
15519
15520newos6*)
15521  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15522  lt_cv_file_magic_cmd=$FILECMD
15523  lt_cv_file_magic_test_file=/usr/lib/libnls.so
15524  ;;
15525
15526*nto* | *qnx*)
15527  lt_cv_deplibs_check_method=pass_all
15528  ;;
15529
15530openbsd*)
15531  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15532    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
15533  else
15534    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15535  fi
15536  ;;
15537
15538osf3* | osf4* | osf5*)
15539  lt_cv_deplibs_check_method=pass_all
15540  ;;
15541
15542rdos*)
15543  lt_cv_deplibs_check_method=pass_all
15544  ;;
15545
15546serenity*)
15547  lt_cv_deplibs_check_method=pass_all
15548  ;;
15549
15550solaris*)
15551  lt_cv_deplibs_check_method=pass_all
15552  ;;
15553
15554sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15555  lt_cv_deplibs_check_method=pass_all
15556  ;;
15557
15558sysv4 | sysv4.3*)
15559  case $host_vendor in
15560  motorola)
15561    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]'
15562    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15563    ;;
15564  ncr)
15565    lt_cv_deplibs_check_method=pass_all
15566    ;;
15567  sequent)
15568    lt_cv_file_magic_cmd='/bin/file'
15569    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15570    ;;
15571  sni)
15572    lt_cv_file_magic_cmd='/bin/file'
15573    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15574    lt_cv_file_magic_test_file=/lib/libc.so
15575    ;;
15576  siemens)
15577    lt_cv_deplibs_check_method=pass_all
15578    ;;
15579  pc)
15580    lt_cv_deplibs_check_method=pass_all
15581    ;;
15582  esac
15583  ;;
15584
15585tpf*)
15586  lt_cv_deplibs_check_method=pass_all
15587  ;;
15588os2*)
15589  lt_cv_deplibs_check_method=pass_all
15590  ;;
15591esac
15592 ;;
15593esac
15594fi
15595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
15596printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
15597
15598file_magic_glob=
15599want_nocaseglob=no
15600if test "$build" = "$host"; then
15601  case $host_os in
15602  mingw* | windows* | pw32*)
15603    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
15604      want_nocaseglob=yes
15605    else
15606      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
15607    fi
15608    ;;
15609  esac
15610fi
15611
15612file_magic_cmd=$lt_cv_file_magic_cmd
15613deplibs_check_method=$lt_cv_deplibs_check_method
15614test -z "$deplibs_check_method" && deplibs_check_method=unknown
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637if test -n "$ac_tool_prefix"; then
15638  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15639set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15641printf %s "checking for $ac_word... " >&6; }
15642if test ${ac_cv_prog_DLLTOOL+y}
15643then :
15644  printf %s "(cached) " >&6
15645else case e in #(
15646  e) if test -n "$DLLTOOL"; then
15647  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15648else
15649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15650for as_dir in $PATH
15651do
15652  IFS=$as_save_IFS
15653  case $as_dir in #(((
15654    '') as_dir=./ ;;
15655    */) ;;
15656    *) as_dir=$as_dir/ ;;
15657  esac
15658    for ac_exec_ext in '' $ac_executable_extensions; do
15659  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15660    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15661    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15662    break 2
15663  fi
15664done
15665  done
15666IFS=$as_save_IFS
15667
15668fi ;;
15669esac
15670fi
15671DLLTOOL=$ac_cv_prog_DLLTOOL
15672if test -n "$DLLTOOL"; then
15673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15674printf "%s\n" "$DLLTOOL" >&6; }
15675else
15676  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15677printf "%s\n" "no" >&6; }
15678fi
15679
15680
15681fi
15682if test -z "$ac_cv_prog_DLLTOOL"; then
15683  ac_ct_DLLTOOL=$DLLTOOL
15684  # Extract the first word of "dlltool", so it can be a program name with args.
15685set dummy dlltool; ac_word=$2
15686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15687printf %s "checking for $ac_word... " >&6; }
15688if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
15689then :
15690  printf %s "(cached) " >&6
15691else case e in #(
15692  e) if test -n "$ac_ct_DLLTOOL"; then
15693  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15694else
15695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15696for as_dir in $PATH
15697do
15698  IFS=$as_save_IFS
15699  case $as_dir in #(((
15700    '') as_dir=./ ;;
15701    */) ;;
15702    *) as_dir=$as_dir/ ;;
15703  esac
15704    for ac_exec_ext in '' $ac_executable_extensions; do
15705  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15706    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15707    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15708    break 2
15709  fi
15710done
15711  done
15712IFS=$as_save_IFS
15713
15714fi ;;
15715esac
15716fi
15717ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15718if test -n "$ac_ct_DLLTOOL"; then
15719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15720printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
15721else
15722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723printf "%s\n" "no" >&6; }
15724fi
15725
15726  if test "x$ac_ct_DLLTOOL" = x; then
15727    DLLTOOL="false"
15728  else
15729    case $cross_compiling:$ac_tool_warned in
15730yes:)
15731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15732printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15733ac_tool_warned=yes ;;
15734esac
15735    DLLTOOL=$ac_ct_DLLTOOL
15736  fi
15737else
15738  DLLTOOL="$ac_cv_prog_DLLTOOL"
15739fi
15740
15741test -z "$DLLTOOL" && DLLTOOL=dlltool
15742
15743
15744
15745
15746
15747
15748
15749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
15750printf %s "checking how to associate runtime and link libraries... " >&6; }
15751if test ${lt_cv_sharedlib_from_linklib_cmd+y}
15752then :
15753  printf %s "(cached) " >&6
15754else case e in #(
15755  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
15756
15757case $host_os in
15758cygwin* | mingw* | windows* | pw32* | cegcc*)
15759  # two different shell functions defined in ltmain.sh;
15760  # decide which one to use based on capabilities of $DLLTOOL
15761  case `$DLLTOOL --help 2>&1` in
15762  *--identify-strict*)
15763    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
15764    ;;
15765  *)
15766    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
15767    ;;
15768  esac
15769  ;;
15770*)
15771  # fallback: assume linklib IS sharedlib
15772  lt_cv_sharedlib_from_linklib_cmd=$ECHO
15773  ;;
15774esac
15775 ;;
15776esac
15777fi
15778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
15779printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
15780sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
15781test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
15782
15783
15784
15785
15786
15787
15788
15789if test -n "$ac_tool_prefix"; then
15790  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15791set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15793printf %s "checking for $ac_word... " >&6; }
15794if test ${ac_cv_prog_RANLIB+y}
15795then :
15796  printf %s "(cached) " >&6
15797else case e in #(
15798  e) if test -n "$RANLIB"; then
15799  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15800else
15801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15802for as_dir in $PATH
15803do
15804  IFS=$as_save_IFS
15805  case $as_dir in #(((
15806    '') as_dir=./ ;;
15807    */) ;;
15808    *) as_dir=$as_dir/ ;;
15809  esac
15810    for ac_exec_ext in '' $ac_executable_extensions; do
15811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15812    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15814    break 2
15815  fi
15816done
15817  done
15818IFS=$as_save_IFS
15819
15820fi ;;
15821esac
15822fi
15823RANLIB=$ac_cv_prog_RANLIB
15824if test -n "$RANLIB"; then
15825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15826printf "%s\n" "$RANLIB" >&6; }
15827else
15828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15829printf "%s\n" "no" >&6; }
15830fi
15831
15832
15833fi
15834if test -z "$ac_cv_prog_RANLIB"; then
15835  ac_ct_RANLIB=$RANLIB
15836  # Extract the first word of "ranlib", so it can be a program name with args.
15837set dummy ranlib; ac_word=$2
15838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15839printf %s "checking for $ac_word... " >&6; }
15840if test ${ac_cv_prog_ac_ct_RANLIB+y}
15841then :
15842  printf %s "(cached) " >&6
15843else case e in #(
15844  e) if test -n "$ac_ct_RANLIB"; then
15845  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15846else
15847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15848for as_dir in $PATH
15849do
15850  IFS=$as_save_IFS
15851  case $as_dir in #(((
15852    '') as_dir=./ ;;
15853    */) ;;
15854    *) as_dir=$as_dir/ ;;
15855  esac
15856    for ac_exec_ext in '' $ac_executable_extensions; do
15857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15858    ac_cv_prog_ac_ct_RANLIB="ranlib"
15859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15860    break 2
15861  fi
15862done
15863  done
15864IFS=$as_save_IFS
15865
15866fi ;;
15867esac
15868fi
15869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15870if test -n "$ac_ct_RANLIB"; then
15871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15872printf "%s\n" "$ac_ct_RANLIB" >&6; }
15873else
15874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15875printf "%s\n" "no" >&6; }
15876fi
15877
15878  if test "x$ac_ct_RANLIB" = x; then
15879    RANLIB=":"
15880  else
15881    case $cross_compiling:$ac_tool_warned in
15882yes:)
15883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15884printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15885ac_tool_warned=yes ;;
15886esac
15887    RANLIB=$ac_ct_RANLIB
15888  fi
15889else
15890  RANLIB="$ac_cv_prog_RANLIB"
15891fi
15892
15893if test -n "$ac_tool_prefix"; then
15894  for ac_prog in ar
15895  do
15896    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15897set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15899printf %s "checking for $ac_word... " >&6; }
15900if test ${ac_cv_prog_AR+y}
15901then :
15902  printf %s "(cached) " >&6
15903else case e in #(
15904  e) if test -n "$AR"; then
15905  ac_cv_prog_AR="$AR" # Let the user override the test.
15906else
15907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908for as_dir in $PATH
15909do
15910  IFS=$as_save_IFS
15911  case $as_dir in #(((
15912    '') as_dir=./ ;;
15913    */) ;;
15914    *) as_dir=$as_dir/ ;;
15915  esac
15916    for ac_exec_ext in '' $ac_executable_extensions; do
15917  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15918    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
15919    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15920    break 2
15921  fi
15922done
15923  done
15924IFS=$as_save_IFS
15925
15926fi ;;
15927esac
15928fi
15929AR=$ac_cv_prog_AR
15930if test -n "$AR"; then
15931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15932printf "%s\n" "$AR" >&6; }
15933else
15934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15935printf "%s\n" "no" >&6; }
15936fi
15937
15938
15939    test -n "$AR" && break
15940  done
15941fi
15942if test -z "$AR"; then
15943  ac_ct_AR=$AR
15944  for ac_prog in ar
15945do
15946  # Extract the first word of "$ac_prog", so it can be a program name with args.
15947set dummy $ac_prog; ac_word=$2
15948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15949printf %s "checking for $ac_word... " >&6; }
15950if test ${ac_cv_prog_ac_ct_AR+y}
15951then :
15952  printf %s "(cached) " >&6
15953else case e in #(
15954  e) if test -n "$ac_ct_AR"; then
15955  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15956else
15957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15958for as_dir in $PATH
15959do
15960  IFS=$as_save_IFS
15961  case $as_dir in #(((
15962    '') as_dir=./ ;;
15963    */) ;;
15964    *) as_dir=$as_dir/ ;;
15965  esac
15966    for ac_exec_ext in '' $ac_executable_extensions; do
15967  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15968    ac_cv_prog_ac_ct_AR="$ac_prog"
15969    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15970    break 2
15971  fi
15972done
15973  done
15974IFS=$as_save_IFS
15975
15976fi ;;
15977esac
15978fi
15979ac_ct_AR=$ac_cv_prog_ac_ct_AR
15980if test -n "$ac_ct_AR"; then
15981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15982printf "%s\n" "$ac_ct_AR" >&6; }
15983else
15984  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985printf "%s\n" "no" >&6; }
15986fi
15987
15988
15989  test -n "$ac_ct_AR" && break
15990done
15991
15992  if test "x$ac_ct_AR" = x; then
15993    AR="false"
15994  else
15995    case $cross_compiling:$ac_tool_warned in
15996yes:)
15997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15999ac_tool_warned=yes ;;
16000esac
16001    AR=$ac_ct_AR
16002  fi
16003fi
16004
16005: ${AR=ar}
16006
16007
16008
16009
16010
16011
16012# Use ARFLAGS variable as AR's operation code to sync the variable naming with
16013# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
16014# higher priority because that's what people were doing historically (setting
16015# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
16016# variable obsoleted/removed.
16017
16018test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
16019lt_ar_flags=$AR_FLAGS
16020
16021
16022
16023
16024
16025
16026# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
16027# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
16028
16029
16030
16031
16032
16033
16034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
16035printf %s "checking for archiver @FILE support... " >&6; }
16036if test ${lt_cv_ar_at_file+y}
16037then :
16038  printf %s "(cached) " >&6
16039else case e in #(
16040  e) lt_cv_ar_at_file=no
16041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042/* end confdefs.h.  */
16043
16044int
16045main (void)
16046{
16047
16048  ;
16049  return 0;
16050}
16051_ACEOF
16052if ac_fn_c_try_compile "$LINENO"
16053then :
16054  echo conftest.$ac_objext > conftest.lst
16055      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
16056      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16057  (eval $lt_ar_try) 2>&5
16058  ac_status=$?
16059  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060  test $ac_status = 0; }
16061      if test 0 -eq "$ac_status"; then
16062	# Ensure the archiver fails upon bogus file names.
16063	rm -f conftest.$ac_objext libconftest.a
16064	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
16065  (eval $lt_ar_try) 2>&5
16066  ac_status=$?
16067  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068  test $ac_status = 0; }
16069	if test 0 -ne "$ac_status"; then
16070          lt_cv_ar_at_file=@
16071        fi
16072      fi
16073      rm -f conftest.* libconftest.a
16074
16075fi
16076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16077   ;;
16078esac
16079fi
16080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
16081printf "%s\n" "$lt_cv_ar_at_file" >&6; }
16082
16083if test no = "$lt_cv_ar_at_file"; then
16084  archiver_list_spec=
16085else
16086  archiver_list_spec=$lt_cv_ar_at_file
16087fi
16088
16089
16090
16091
16092
16093
16094
16095if test -n "$ac_tool_prefix"; then
16096  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16097set dummy ${ac_tool_prefix}strip; ac_word=$2
16098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16099printf %s "checking for $ac_word... " >&6; }
16100if test ${ac_cv_prog_STRIP+y}
16101then :
16102  printf %s "(cached) " >&6
16103else case e in #(
16104  e) if test -n "$STRIP"; then
16105  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16106else
16107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16108for as_dir in $PATH
16109do
16110  IFS=$as_save_IFS
16111  case $as_dir in #(((
16112    '') as_dir=./ ;;
16113    */) ;;
16114    *) as_dir=$as_dir/ ;;
16115  esac
16116    for ac_exec_ext in '' $ac_executable_extensions; do
16117  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16118    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16119    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16120    break 2
16121  fi
16122done
16123  done
16124IFS=$as_save_IFS
16125
16126fi ;;
16127esac
16128fi
16129STRIP=$ac_cv_prog_STRIP
16130if test -n "$STRIP"; then
16131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16132printf "%s\n" "$STRIP" >&6; }
16133else
16134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16135printf "%s\n" "no" >&6; }
16136fi
16137
16138
16139fi
16140if test -z "$ac_cv_prog_STRIP"; then
16141  ac_ct_STRIP=$STRIP
16142  # Extract the first word of "strip", so it can be a program name with args.
16143set dummy strip; ac_word=$2
16144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16145printf %s "checking for $ac_word... " >&6; }
16146if test ${ac_cv_prog_ac_ct_STRIP+y}
16147then :
16148  printf %s "(cached) " >&6
16149else case e in #(
16150  e) if test -n "$ac_ct_STRIP"; then
16151  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16152else
16153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16154for as_dir in $PATH
16155do
16156  IFS=$as_save_IFS
16157  case $as_dir in #(((
16158    '') as_dir=./ ;;
16159    */) ;;
16160    *) as_dir=$as_dir/ ;;
16161  esac
16162    for ac_exec_ext in '' $ac_executable_extensions; do
16163  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16164    ac_cv_prog_ac_ct_STRIP="strip"
16165    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16166    break 2
16167  fi
16168done
16169  done
16170IFS=$as_save_IFS
16171
16172fi ;;
16173esac
16174fi
16175ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16176if test -n "$ac_ct_STRIP"; then
16177  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16178printf "%s\n" "$ac_ct_STRIP" >&6; }
16179else
16180  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16181printf "%s\n" "no" >&6; }
16182fi
16183
16184  if test "x$ac_ct_STRIP" = x; then
16185    STRIP=":"
16186  else
16187    case $cross_compiling:$ac_tool_warned in
16188yes:)
16189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16190printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16191ac_tool_warned=yes ;;
16192esac
16193    STRIP=$ac_ct_STRIP
16194  fi
16195else
16196  STRIP="$ac_cv_prog_STRIP"
16197fi
16198
16199test -z "$STRIP" && STRIP=:
16200
16201
16202
16203
16204
16205
16206
16207test -z "$RANLIB" && RANLIB=:
16208
16209
16210
16211
16212
16213
16214# Determine commands to create old-style static archives.
16215old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
16216old_postinstall_cmds='chmod 644 $oldlib'
16217old_postuninstall_cmds=
16218
16219if test -n "$RANLIB"; then
16220  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
16221  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
16222fi
16223
16224case $host_os in
16225  darwin*)
16226    lock_old_archive_extraction=yes ;;
16227  *)
16228    lock_old_archive_extraction=no ;;
16229esac
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269# If no C compiler was specified, use CC.
16270LTCC=${LTCC-"$CC"}
16271
16272# If no C compiler flags were specified, use CFLAGS.
16273LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16274
16275# Allow CC to be a program name with arguments.
16276compiler=$CC
16277
16278
16279# Check for command to grab the raw symbol name followed by C symbol from nm.
16280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
16281printf %s "checking command to parse $NM output from $compiler object... " >&6; }
16282if test ${lt_cv_sys_global_symbol_pipe+y}
16283then :
16284  printf %s "(cached) " >&6
16285else case e in #(
16286  e)
16287# These are sane defaults that work on at least a few old systems.
16288# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16289
16290# Character class describing NM global symbol codes.
16291symcode='[BCDEGRST]'
16292
16293# Regexp to match symbols that can be accessed directly from C.
16294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16295
16296# Define system-specific variables.
16297case $host_os in
16298aix*)
16299  symcode='[BCDT]'
16300  ;;
16301cygwin* | mingw* | windows* | pw32* | cegcc*)
16302  symcode='[ABCDGISTW]'
16303  ;;
16304hpux*)
16305  if test ia64 = "$host_cpu"; then
16306    symcode='[ABCDEGRST]'
16307  fi
16308  ;;
16309irix* | nonstopux*)
16310  symcode='[BCDEGRST]'
16311  ;;
16312osf*)
16313  symcode='[BCDEGQRST]'
16314  ;;
16315solaris*)
16316  symcode='[BCDRT]'
16317  ;;
16318sco3.2v5*)
16319  symcode='[DT]'
16320  ;;
16321sysv4.2uw2*)
16322  symcode='[DT]'
16323  ;;
16324sysv5* | sco5v6* | unixware* | OpenUNIX*)
16325  symcode='[ABDT]'
16326  ;;
16327sysv4)
16328  symcode='[DFNSTU]'
16329  ;;
16330esac
16331
16332# If we're using GNU nm, then use its standard symbol codes.
16333case `$NM -V 2>&1` in
16334*GNU* | *'with BFD'*)
16335  symcode='[ABCDGIRSTW]' ;;
16336esac
16337
16338if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16339  # Gets list of data symbols to import.
16340  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
16341  # Adjust the below global symbol transforms to fixup imported variables.
16342  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
16343  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
16344  lt_c_name_lib_hook="\
16345  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
16346  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
16347else
16348  # Disable hooks by default.
16349  lt_cv_sys_global_symbol_to_import=
16350  lt_cdecl_hook=
16351  lt_c_name_hook=
16352  lt_c_name_lib_hook=
16353fi
16354
16355# Transform an extracted symbol line into a proper C declaration.
16356# Some systems (esp. on ia64) link data and code symbols differently,
16357# so use this general approach.
16358lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
16359$lt_cdecl_hook\
16360" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
16361" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
16362
16363# Transform an extracted symbol line into symbol name and symbol address
16364lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
16365$lt_c_name_hook\
16366" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
16367" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
16368
16369# Transform an extracted symbol line into symbol name with lib prefix and
16370# symbol address.
16371lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
16372$lt_c_name_lib_hook\
16373" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
16374" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
16375" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
16376
16377# Handle CRLF in mingw tool chain
16378opt_cr=
16379case $build_os in
16380mingw* | windows*)
16381  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16382  ;;
16383esac
16384
16385# Try without a prefix underscore, then with it.
16386for ac_symprfx in "" "_"; do
16387
16388  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16389  symxfrm="\\1 $ac_symprfx\\2 \\2"
16390
16391  # Write the raw and C identifiers.
16392  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16393    # Fake it for dumpbin and say T for any non-static function,
16394    # D for any global variable and I for any imported variable.
16395    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
16396    # which start with @ or ?.
16397    lt_cv_sys_global_symbol_pipe="$AWK '"\
16398"     {last_section=section; section=\$ 3};"\
16399"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
16400"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
16401"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
16402"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
16403"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
16404"     \$ 0!~/External *\|/{next};"\
16405"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
16406"     {if(hide[section]) next};"\
16407"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
16408"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
16409"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
16410"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
16411"     ' prfx=^$ac_symprfx"
16412  else
16413    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16414  fi
16415  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
16416
16417  # Check to see that the pipe works correctly.
16418  pipe_works=no
16419
16420  rm -f conftest*
16421  cat > conftest.$ac_ext <<_LT_EOF
16422#ifdef __cplusplus
16423extern "C" {
16424#endif
16425char nm_test_var;
16426void nm_test_func(void);
16427void nm_test_func(void){}
16428#ifdef __cplusplus
16429}
16430#endif
16431int main(void){nm_test_var='a';nm_test_func();return(0);}
16432_LT_EOF
16433
16434  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16435  (eval $ac_compile) 2>&5
16436  ac_status=$?
16437  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16438  test $ac_status = 0; }; then
16439    # Now try to grab the symbols.
16440    nlist=conftest.nm
16441    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
16442    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
16443      # Try sorting and uniquifying the output.
16444      if sort "$nlist" | uniq > "$nlist"T; then
16445	mv -f "$nlist"T "$nlist"
16446      else
16447	rm -f "$nlist"T
16448      fi
16449
16450      # Make sure that we snagged all the symbols we need.
16451      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
16452	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
16453	  cat <<_LT_EOF > conftest.$ac_ext
16454/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
16455#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
16456/* DATA imports from DLLs on WIN32 can't be const, because runtime
16457   relocations are performed -- see ld's documentation on pseudo-relocs.  */
16458# define LT_DLSYM_CONST
16459#elif defined __osf__
16460/* This system does not cope well with relocations in const data.  */
16461# define LT_DLSYM_CONST
16462#else
16463# define LT_DLSYM_CONST const
16464#endif
16465
16466#ifdef __cplusplus
16467extern "C" {
16468#endif
16469
16470_LT_EOF
16471	  # Now generate the symbol file.
16472	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
16473
16474	  cat <<_LT_EOF >> conftest.$ac_ext
16475
16476/* The mapping between symbol names and symbols.  */
16477LT_DLSYM_CONST struct {
16478  const char *name;
16479  void       *address;
16480}
16481lt__PROGRAM__LTX_preloaded_symbols[] =
16482{
16483  { "@PROGRAM@", (void *) 0 },
16484_LT_EOF
16485	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
16486	  cat <<\_LT_EOF >> conftest.$ac_ext
16487  {0, (void *) 0}
16488};
16489
16490/* This works around a problem in FreeBSD linker */
16491#ifdef FREEBSD_WORKAROUND
16492static const void *lt_preloaded_setup() {
16493  return lt__PROGRAM__LTX_preloaded_symbols;
16494}
16495#endif
16496
16497#ifdef __cplusplus
16498}
16499#endif
16500_LT_EOF
16501	  # Now try linking the two files.
16502	  mv conftest.$ac_objext conftstm.$ac_objext
16503	  lt_globsym_save_LIBS=$LIBS
16504	  lt_globsym_save_CFLAGS=$CFLAGS
16505	  LIBS=conftstm.$ac_objext
16506	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16507	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16508  (eval $ac_link) 2>&5
16509  ac_status=$?
16510  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16511  test $ac_status = 0; } && test -s conftest$ac_exeext; then
16512	    pipe_works=yes
16513	  fi
16514	  LIBS=$lt_globsym_save_LIBS
16515	  CFLAGS=$lt_globsym_save_CFLAGS
16516	else
16517	  echo "cannot find nm_test_func in $nlist" >&5
16518	fi
16519      else
16520	echo "cannot find nm_test_var in $nlist" >&5
16521      fi
16522    else
16523      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16524    fi
16525  else
16526    echo "$progname: failed program was:" >&5
16527    cat conftest.$ac_ext >&5
16528  fi
16529  rm -rf conftest* conftst*
16530
16531  # Do not use the global_symbol_pipe unless it works.
16532  if test yes = "$pipe_works"; then
16533    break
16534  else
16535    lt_cv_sys_global_symbol_pipe=
16536  fi
16537done
16538 ;;
16539esac
16540fi
16541
16542if test -z "$lt_cv_sys_global_symbol_pipe"; then
16543  lt_cv_sys_global_symbol_to_cdecl=
16544fi
16545if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16546  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
16547printf "%s\n" "failed" >&6; }
16548else
16549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16550printf "%s\n" "ok" >&6; }
16551fi
16552
16553# Response file support.
16554if test "$lt_cv_nm_interface" = "MS dumpbin"; then
16555  nm_file_list_spec='@'
16556elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
16557  nm_file_list_spec='@'
16558fi
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
16597printf %s "checking for sysroot... " >&6; }
16598
16599# Check whether --with-sysroot was given.
16600if test ${with_sysroot+y}
16601then :
16602  withval=$with_sysroot;
16603else case e in #(
16604  e) with_sysroot=no ;;
16605esac
16606fi
16607
16608
16609lt_sysroot=
16610case $with_sysroot in #(
16611 yes)
16612   if test yes = "$GCC"; then
16613     # Trim trailing / since we'll always append absolute paths and we want
16614     # to avoid //, if only for less confusing output for the user.
16615     lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
16616   fi
16617   ;; #(
16618 /*)
16619   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
16620   ;; #(
16621 no|'')
16622   ;; #(
16623 *)
16624   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
16625printf "%s\n" "$with_sysroot" >&6; }
16626   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
16627   ;;
16628esac
16629
16630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
16631printf "%s\n" "${lt_sysroot:-no}" >&6; }
16632
16633
16634
16635
16636
16637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
16638printf %s "checking for a working dd... " >&6; }
16639if test ${ac_cv_path_lt_DD+y}
16640then :
16641  printf %s "(cached) " >&6
16642else case e in #(
16643  e) printf 0123456789abcdef0123456789abcdef >conftest.i
16644cat conftest.i conftest.i >conftest2.i
16645: ${lt_DD:=$DD}
16646if test -z "$lt_DD"; then
16647  ac_path_lt_DD_found=false
16648  # Loop through the user's path and test for each of PROGNAME-LIST
16649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16650for as_dir in $PATH
16651do
16652  IFS=$as_save_IFS
16653  case $as_dir in #(((
16654    '') as_dir=./ ;;
16655    */) ;;
16656    *) as_dir=$as_dir/ ;;
16657  esac
16658    for ac_prog in dd
16659   do
16660    for ac_exec_ext in '' $ac_executable_extensions; do
16661      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
16662      as_fn_executable_p "$ac_path_lt_DD" || continue
16663if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
16664  cmp -s conftest.i conftest.out \
16665  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
16666fi
16667      $ac_path_lt_DD_found && break 3
16668    done
16669  done
16670  done
16671IFS=$as_save_IFS
16672  if test -z "$ac_cv_path_lt_DD"; then
16673    :
16674  fi
16675else
16676  ac_cv_path_lt_DD=$lt_DD
16677fi
16678
16679rm -f conftest.i conftest2.i conftest.out ;;
16680esac
16681fi
16682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
16683printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
16684
16685
16686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
16687printf %s "checking how to truncate binary pipes... " >&6; }
16688if test ${lt_cv_truncate_bin+y}
16689then :
16690  printf %s "(cached) " >&6
16691else case e in #(
16692  e) printf 0123456789abcdef0123456789abcdef >conftest.i
16693cat conftest.i conftest.i >conftest2.i
16694lt_cv_truncate_bin=
16695if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
16696  cmp -s conftest.i conftest.out \
16697  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
16698fi
16699rm -f conftest.i conftest2.i conftest.out
16700test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
16701esac
16702fi
16703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
16704printf "%s\n" "$lt_cv_truncate_bin" >&6; }
16705
16706
16707
16708
16709
16710
16711
16712# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
16713func_cc_basename ()
16714{
16715    for cc_temp in $*""; do
16716      case $cc_temp in
16717        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16718        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16719        \-*) ;;
16720        *) break;;
16721      esac
16722    done
16723    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16724}
16725
16726# Check whether --enable-libtool-lock was given.
16727if test ${enable_libtool_lock+y}
16728then :
16729  enableval=$enable_libtool_lock;
16730fi
16731
16732test no = "$enable_libtool_lock" || enable_libtool_lock=yes
16733
16734# Some flags need to be propagated to the compiler or linker for good
16735# libtool support.
16736case $host in
16737ia64-*-hpux*)
16738  # Find out what ABI is being produced by ac_compile, and set mode
16739  # options accordingly.
16740  echo 'int i;' > conftest.$ac_ext
16741  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16742  (eval $ac_compile) 2>&5
16743  ac_status=$?
16744  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16745  test $ac_status = 0; }; then
16746    case `$FILECMD conftest.$ac_objext` in
16747      *ELF-32*)
16748	HPUX_IA64_MODE=32
16749	;;
16750      *ELF-64*)
16751	HPUX_IA64_MODE=64
16752	;;
16753    esac
16754  fi
16755  rm -rf conftest*
16756  ;;
16757*-*-irix6*)
16758  # Find out what ABI is being produced by ac_compile, and set linker
16759  # options accordingly.
16760  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16762  (eval $ac_compile) 2>&5
16763  ac_status=$?
16764  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765  test $ac_status = 0; }; then
16766    if test yes = "$lt_cv_prog_gnu_ld"; then
16767      case `$FILECMD conftest.$ac_objext` in
16768	*32-bit*)
16769	  LD="${LD-ld} -melf32bsmip"
16770	  ;;
16771	*N32*)
16772	  LD="${LD-ld} -melf32bmipn32"
16773	  ;;
16774	*64-bit*)
16775	  LD="${LD-ld} -melf64bmip"
16776	;;
16777      esac
16778    else
16779      case `$FILECMD conftest.$ac_objext` in
16780	*32-bit*)
16781	  LD="${LD-ld} -32"
16782	  ;;
16783	*N32*)
16784	  LD="${LD-ld} -n32"
16785	  ;;
16786	*64-bit*)
16787	  LD="${LD-ld} -64"
16788	  ;;
16789      esac
16790    fi
16791  fi
16792  rm -rf conftest*
16793  ;;
16794
16795mips64*-*linux*)
16796  # Find out what ABI is being produced by ac_compile, and set linker
16797  # options accordingly.
16798  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
16799  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16800  (eval $ac_compile) 2>&5
16801  ac_status=$?
16802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16803  test $ac_status = 0; }; then
16804    emul=elf
16805    case `$FILECMD conftest.$ac_objext` in
16806      *32-bit*)
16807	emul="${emul}32"
16808	;;
16809      *64-bit*)
16810	emul="${emul}64"
16811	;;
16812    esac
16813    case `$FILECMD conftest.$ac_objext` in
16814      *MSB*)
16815	emul="${emul}btsmip"
16816	;;
16817      *LSB*)
16818	emul="${emul}ltsmip"
16819	;;
16820    esac
16821    case `$FILECMD conftest.$ac_objext` in
16822      *N32*)
16823	emul="${emul}n32"
16824	;;
16825    esac
16826    LD="${LD-ld} -m $emul"
16827  fi
16828  rm -rf conftest*
16829  ;;
16830
16831x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
16832s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
16833  # Find out what ABI is being produced by ac_compile, and set linker
16834  # options accordingly.  Note that the listed cases only cover the
16835  # situations where additional linker options are needed (such as when
16836  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
16837  # vice versa); the common cases where no linker options are needed do
16838  # not appear in the list.
16839  echo 'int i;' > conftest.$ac_ext
16840  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16841  (eval $ac_compile) 2>&5
16842  ac_status=$?
16843  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16844  test $ac_status = 0; }; then
16845    case `$FILECMD conftest.o` in
16846      *32-bit*)
16847	case $host in
16848	  x86_64-*kfreebsd*-gnu)
16849	    LD="${LD-ld} -m elf_i386_fbsd"
16850	    ;;
16851	  x86_64-*linux*|x86_64-gnu*)
16852	    case `$FILECMD conftest.o` in
16853	      *x86-64*)
16854		LD="${LD-ld} -m elf32_x86_64"
16855		;;
16856	      *)
16857		LD="${LD-ld} -m elf_i386"
16858		;;
16859	    esac
16860	    ;;
16861	  powerpc64le-*linux*)
16862	    LD="${LD-ld} -m elf32lppclinux"
16863	    ;;
16864	  powerpc64-*linux*)
16865	    LD="${LD-ld} -m elf32ppclinux"
16866	    ;;
16867	  s390x-*linux*)
16868	    LD="${LD-ld} -m elf_s390"
16869	    ;;
16870	  sparc64-*linux*)
16871	    LD="${LD-ld} -m elf32_sparc"
16872	    ;;
16873	esac
16874	;;
16875      *64-bit*)
16876	case $host in
16877	  x86_64-*kfreebsd*-gnu)
16878	    LD="${LD-ld} -m elf_x86_64_fbsd"
16879	    ;;
16880	  x86_64-*linux*|x86_64-gnu*)
16881	    LD="${LD-ld} -m elf_x86_64"
16882	    ;;
16883	  powerpcle-*linux*)
16884	    LD="${LD-ld} -m elf64lppc"
16885	    ;;
16886	  powerpc-*linux*)
16887	    LD="${LD-ld} -m elf64ppc"
16888	    ;;
16889	  s390*-*linux*|s390*-*tpf*)
16890	    LD="${LD-ld} -m elf64_s390"
16891	    ;;
16892	  sparc*-*linux*)
16893	    LD="${LD-ld} -m elf64_sparc"
16894	    ;;
16895	esac
16896	;;
16897    esac
16898  fi
16899  rm -rf conftest*
16900  ;;
16901
16902*-*-sco3.2v5*)
16903  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16904  SAVE_CFLAGS=$CFLAGS
16905  CFLAGS="$CFLAGS -belf"
16906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
16907printf %s "checking whether the C compiler needs -belf... " >&6; }
16908if test ${lt_cv_cc_needs_belf+y}
16909then :
16910  printf %s "(cached) " >&6
16911else case e in #(
16912  e) ac_ext=c
16913ac_cpp='$CPP $CPPFLAGS'
16914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16916ac_compiler_gnu=$ac_cv_c_compiler_gnu
16917
16918     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919/* end confdefs.h.  */
16920
16921int
16922main (void)
16923{
16924
16925  ;
16926  return 0;
16927}
16928_ACEOF
16929if ac_fn_c_try_link "$LINENO"
16930then :
16931  lt_cv_cc_needs_belf=yes
16932else case e in #(
16933  e) lt_cv_cc_needs_belf=no ;;
16934esac
16935fi
16936rm -f core conftest.err conftest.$ac_objext conftest.beam \
16937    conftest$ac_exeext conftest.$ac_ext
16938     ac_ext=c
16939ac_cpp='$CPP $CPPFLAGS'
16940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16942ac_compiler_gnu=$ac_cv_c_compiler_gnu
16943 ;;
16944esac
16945fi
16946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
16947printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
16948  if test yes != "$lt_cv_cc_needs_belf"; then
16949    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16950    CFLAGS=$SAVE_CFLAGS
16951  fi
16952  ;;
16953*-*solaris*)
16954  # Find out what ABI is being produced by ac_compile, and set linker
16955  # options accordingly.
16956  echo 'int i;' > conftest.$ac_ext
16957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16958  (eval $ac_compile) 2>&5
16959  ac_status=$?
16960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16961  test $ac_status = 0; }; then
16962    case `$FILECMD conftest.o` in
16963    *64-bit*)
16964      case $lt_cv_prog_gnu_ld in
16965      yes*)
16966        case $host in
16967        i?86-*-solaris*|x86_64-*-solaris*)
16968          LD="${LD-ld} -m elf_x86_64"
16969          ;;
16970        sparc*-*-solaris*)
16971          LD="${LD-ld} -m elf64_sparc"
16972          ;;
16973        esac
16974        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
16975        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
16976          LD=${LD-ld}_sol2
16977        fi
16978        ;;
16979      *)
16980	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
16981	  LD="${LD-ld} -64"
16982	fi
16983	;;
16984      esac
16985      ;;
16986    esac
16987  fi
16988  rm -rf conftest*
16989  ;;
16990esac
16991
16992need_locks=$enable_libtool_lock
16993
16994if test -n "$ac_tool_prefix"; then
16995  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
16996set dummy ${ac_tool_prefix}mt; ac_word=$2
16997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16998printf %s "checking for $ac_word... " >&6; }
16999if test ${ac_cv_prog_MANIFEST_TOOL+y}
17000then :
17001  printf %s "(cached) " >&6
17002else case e in #(
17003  e) if test -n "$MANIFEST_TOOL"; then
17004  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
17005else
17006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17007for as_dir in $PATH
17008do
17009  IFS=$as_save_IFS
17010  case $as_dir in #(((
17011    '') as_dir=./ ;;
17012    */) ;;
17013    *) as_dir=$as_dir/ ;;
17014  esac
17015    for ac_exec_ext in '' $ac_executable_extensions; do
17016  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17017    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
17018    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17019    break 2
17020  fi
17021done
17022  done
17023IFS=$as_save_IFS
17024
17025fi ;;
17026esac
17027fi
17028MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
17029if test -n "$MANIFEST_TOOL"; then
17030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
17031printf "%s\n" "$MANIFEST_TOOL" >&6; }
17032else
17033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17034printf "%s\n" "no" >&6; }
17035fi
17036
17037
17038fi
17039if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
17040  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
17041  # Extract the first word of "mt", so it can be a program name with args.
17042set dummy mt; ac_word=$2
17043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17044printf %s "checking for $ac_word... " >&6; }
17045if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
17046then :
17047  printf %s "(cached) " >&6
17048else case e in #(
17049  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
17050  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
17051else
17052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17053for as_dir in $PATH
17054do
17055  IFS=$as_save_IFS
17056  case $as_dir in #(((
17057    '') as_dir=./ ;;
17058    */) ;;
17059    *) as_dir=$as_dir/ ;;
17060  esac
17061    for ac_exec_ext in '' $ac_executable_extensions; do
17062  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17063    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
17064    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17065    break 2
17066  fi
17067done
17068  done
17069IFS=$as_save_IFS
17070
17071fi ;;
17072esac
17073fi
17074ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
17075if test -n "$ac_ct_MANIFEST_TOOL"; then
17076  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
17077printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
17078else
17079  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080printf "%s\n" "no" >&6; }
17081fi
17082
17083  if test "x$ac_ct_MANIFEST_TOOL" = x; then
17084    MANIFEST_TOOL=":"
17085  else
17086    case $cross_compiling:$ac_tool_warned in
17087yes:)
17088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17089printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17090ac_tool_warned=yes ;;
17091esac
17092    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
17093  fi
17094else
17095  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
17096fi
17097
17098test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
17099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
17100printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
17101if test ${lt_cv_path_manifest_tool+y}
17102then :
17103  printf %s "(cached) " >&6
17104else case e in #(
17105  e) lt_cv_path_manifest_tool=no
17106  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
17107  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
17108  cat conftest.err >&5
17109  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
17110    lt_cv_path_manifest_tool=yes
17111  fi
17112  rm -f conftest* ;;
17113esac
17114fi
17115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
17116printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
17117if test yes != "$lt_cv_path_manifest_tool"; then
17118  MANIFEST_TOOL=:
17119fi
17120
17121
17122
17123
17124
17125
17126  case $host_os in
17127    rhapsody* | darwin*)
17128    if test -n "$ac_tool_prefix"; then
17129  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
17130set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
17131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17132printf %s "checking for $ac_word... " >&6; }
17133if test ${ac_cv_prog_DSYMUTIL+y}
17134then :
17135  printf %s "(cached) " >&6
17136else case e in #(
17137  e) if test -n "$DSYMUTIL"; then
17138  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
17139else
17140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17141for as_dir in $PATH
17142do
17143  IFS=$as_save_IFS
17144  case $as_dir in #(((
17145    '') as_dir=./ ;;
17146    */) ;;
17147    *) as_dir=$as_dir/ ;;
17148  esac
17149    for ac_exec_ext in '' $ac_executable_extensions; do
17150  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17151    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
17152    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17153    break 2
17154  fi
17155done
17156  done
17157IFS=$as_save_IFS
17158
17159fi ;;
17160esac
17161fi
17162DSYMUTIL=$ac_cv_prog_DSYMUTIL
17163if test -n "$DSYMUTIL"; then
17164  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
17165printf "%s\n" "$DSYMUTIL" >&6; }
17166else
17167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17168printf "%s\n" "no" >&6; }
17169fi
17170
17171
17172fi
17173if test -z "$ac_cv_prog_DSYMUTIL"; then
17174  ac_ct_DSYMUTIL=$DSYMUTIL
17175  # Extract the first word of "dsymutil", so it can be a program name with args.
17176set dummy dsymutil; ac_word=$2
17177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17178printf %s "checking for $ac_word... " >&6; }
17179if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
17180then :
17181  printf %s "(cached) " >&6
17182else case e in #(
17183  e) if test -n "$ac_ct_DSYMUTIL"; then
17184  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
17185else
17186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17187for as_dir in $PATH
17188do
17189  IFS=$as_save_IFS
17190  case $as_dir in #(((
17191    '') as_dir=./ ;;
17192    */) ;;
17193    *) as_dir=$as_dir/ ;;
17194  esac
17195    for ac_exec_ext in '' $ac_executable_extensions; do
17196  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17197    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
17198    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17199    break 2
17200  fi
17201done
17202  done
17203IFS=$as_save_IFS
17204
17205fi ;;
17206esac
17207fi
17208ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
17209if test -n "$ac_ct_DSYMUTIL"; then
17210  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
17211printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
17212else
17213  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17214printf "%s\n" "no" >&6; }
17215fi
17216
17217  if test "x$ac_ct_DSYMUTIL" = x; then
17218    DSYMUTIL=":"
17219  else
17220    case $cross_compiling:$ac_tool_warned in
17221yes:)
17222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17223printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17224ac_tool_warned=yes ;;
17225esac
17226    DSYMUTIL=$ac_ct_DSYMUTIL
17227  fi
17228else
17229  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
17230fi
17231
17232    if test -n "$ac_tool_prefix"; then
17233  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
17234set dummy ${ac_tool_prefix}nmedit; ac_word=$2
17235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17236printf %s "checking for $ac_word... " >&6; }
17237if test ${ac_cv_prog_NMEDIT+y}
17238then :
17239  printf %s "(cached) " >&6
17240else case e in #(
17241  e) if test -n "$NMEDIT"; then
17242  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
17243else
17244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17245for as_dir in $PATH
17246do
17247  IFS=$as_save_IFS
17248  case $as_dir in #(((
17249    '') as_dir=./ ;;
17250    */) ;;
17251    *) as_dir=$as_dir/ ;;
17252  esac
17253    for ac_exec_ext in '' $ac_executable_extensions; do
17254  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17255    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
17256    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17257    break 2
17258  fi
17259done
17260  done
17261IFS=$as_save_IFS
17262
17263fi ;;
17264esac
17265fi
17266NMEDIT=$ac_cv_prog_NMEDIT
17267if test -n "$NMEDIT"; then
17268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
17269printf "%s\n" "$NMEDIT" >&6; }
17270else
17271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17272printf "%s\n" "no" >&6; }
17273fi
17274
17275
17276fi
17277if test -z "$ac_cv_prog_NMEDIT"; then
17278  ac_ct_NMEDIT=$NMEDIT
17279  # Extract the first word of "nmedit", so it can be a program name with args.
17280set dummy nmedit; ac_word=$2
17281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282printf %s "checking for $ac_word... " >&6; }
17283if test ${ac_cv_prog_ac_ct_NMEDIT+y}
17284then :
17285  printf %s "(cached) " >&6
17286else case e in #(
17287  e) if test -n "$ac_ct_NMEDIT"; then
17288  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
17289else
17290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17291for as_dir in $PATH
17292do
17293  IFS=$as_save_IFS
17294  case $as_dir in #(((
17295    '') as_dir=./ ;;
17296    */) ;;
17297    *) as_dir=$as_dir/ ;;
17298  esac
17299    for ac_exec_ext in '' $ac_executable_extensions; do
17300  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17301    ac_cv_prog_ac_ct_NMEDIT="nmedit"
17302    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17303    break 2
17304  fi
17305done
17306  done
17307IFS=$as_save_IFS
17308
17309fi ;;
17310esac
17311fi
17312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
17313if test -n "$ac_ct_NMEDIT"; then
17314  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
17315printf "%s\n" "$ac_ct_NMEDIT" >&6; }
17316else
17317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17318printf "%s\n" "no" >&6; }
17319fi
17320
17321  if test "x$ac_ct_NMEDIT" = x; then
17322    NMEDIT=":"
17323  else
17324    case $cross_compiling:$ac_tool_warned in
17325yes:)
17326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17327printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17328ac_tool_warned=yes ;;
17329esac
17330    NMEDIT=$ac_ct_NMEDIT
17331  fi
17332else
17333  NMEDIT="$ac_cv_prog_NMEDIT"
17334fi
17335
17336    if test -n "$ac_tool_prefix"; then
17337  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
17338set dummy ${ac_tool_prefix}lipo; ac_word=$2
17339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17340printf %s "checking for $ac_word... " >&6; }
17341if test ${ac_cv_prog_LIPO+y}
17342then :
17343  printf %s "(cached) " >&6
17344else case e in #(
17345  e) if test -n "$LIPO"; then
17346  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
17347else
17348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17349for as_dir in $PATH
17350do
17351  IFS=$as_save_IFS
17352  case $as_dir in #(((
17353    '') as_dir=./ ;;
17354    */) ;;
17355    *) as_dir=$as_dir/ ;;
17356  esac
17357    for ac_exec_ext in '' $ac_executable_extensions; do
17358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17359    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
17360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17361    break 2
17362  fi
17363done
17364  done
17365IFS=$as_save_IFS
17366
17367fi ;;
17368esac
17369fi
17370LIPO=$ac_cv_prog_LIPO
17371if test -n "$LIPO"; then
17372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
17373printf "%s\n" "$LIPO" >&6; }
17374else
17375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17376printf "%s\n" "no" >&6; }
17377fi
17378
17379
17380fi
17381if test -z "$ac_cv_prog_LIPO"; then
17382  ac_ct_LIPO=$LIPO
17383  # Extract the first word of "lipo", so it can be a program name with args.
17384set dummy lipo; ac_word=$2
17385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17386printf %s "checking for $ac_word... " >&6; }
17387if test ${ac_cv_prog_ac_ct_LIPO+y}
17388then :
17389  printf %s "(cached) " >&6
17390else case e in #(
17391  e) if test -n "$ac_ct_LIPO"; then
17392  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
17393else
17394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17395for as_dir in $PATH
17396do
17397  IFS=$as_save_IFS
17398  case $as_dir in #(((
17399    '') as_dir=./ ;;
17400    */) ;;
17401    *) as_dir=$as_dir/ ;;
17402  esac
17403    for ac_exec_ext in '' $ac_executable_extensions; do
17404  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17405    ac_cv_prog_ac_ct_LIPO="lipo"
17406    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17407    break 2
17408  fi
17409done
17410  done
17411IFS=$as_save_IFS
17412
17413fi ;;
17414esac
17415fi
17416ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
17417if test -n "$ac_ct_LIPO"; then
17418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
17419printf "%s\n" "$ac_ct_LIPO" >&6; }
17420else
17421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17422printf "%s\n" "no" >&6; }
17423fi
17424
17425  if test "x$ac_ct_LIPO" = x; then
17426    LIPO=":"
17427  else
17428    case $cross_compiling:$ac_tool_warned in
17429yes:)
17430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17431printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17432ac_tool_warned=yes ;;
17433esac
17434    LIPO=$ac_ct_LIPO
17435  fi
17436else
17437  LIPO="$ac_cv_prog_LIPO"
17438fi
17439
17440    if test -n "$ac_tool_prefix"; then
17441  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
17442set dummy ${ac_tool_prefix}otool; ac_word=$2
17443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17444printf %s "checking for $ac_word... " >&6; }
17445if test ${ac_cv_prog_OTOOL+y}
17446then :
17447  printf %s "(cached) " >&6
17448else case e in #(
17449  e) if test -n "$OTOOL"; then
17450  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
17451else
17452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17453for as_dir in $PATH
17454do
17455  IFS=$as_save_IFS
17456  case $as_dir in #(((
17457    '') as_dir=./ ;;
17458    */) ;;
17459    *) as_dir=$as_dir/ ;;
17460  esac
17461    for ac_exec_ext in '' $ac_executable_extensions; do
17462  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17463    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
17464    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17465    break 2
17466  fi
17467done
17468  done
17469IFS=$as_save_IFS
17470
17471fi ;;
17472esac
17473fi
17474OTOOL=$ac_cv_prog_OTOOL
17475if test -n "$OTOOL"; then
17476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17477printf "%s\n" "$OTOOL" >&6; }
17478else
17479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17480printf "%s\n" "no" >&6; }
17481fi
17482
17483
17484fi
17485if test -z "$ac_cv_prog_OTOOL"; then
17486  ac_ct_OTOOL=$OTOOL
17487  # Extract the first word of "otool", so it can be a program name with args.
17488set dummy otool; ac_word=$2
17489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17490printf %s "checking for $ac_word... " >&6; }
17491if test ${ac_cv_prog_ac_ct_OTOOL+y}
17492then :
17493  printf %s "(cached) " >&6
17494else case e in #(
17495  e) if test -n "$ac_ct_OTOOL"; then
17496  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
17497else
17498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17499for as_dir in $PATH
17500do
17501  IFS=$as_save_IFS
17502  case $as_dir in #(((
17503    '') as_dir=./ ;;
17504    */) ;;
17505    *) as_dir=$as_dir/ ;;
17506  esac
17507    for ac_exec_ext in '' $ac_executable_extensions; do
17508  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17509    ac_cv_prog_ac_ct_OTOOL="otool"
17510    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17511    break 2
17512  fi
17513done
17514  done
17515IFS=$as_save_IFS
17516
17517fi ;;
17518esac
17519fi
17520ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
17521if test -n "$ac_ct_OTOOL"; then
17522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
17523printf "%s\n" "$ac_ct_OTOOL" >&6; }
17524else
17525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526printf "%s\n" "no" >&6; }
17527fi
17528
17529  if test "x$ac_ct_OTOOL" = x; then
17530    OTOOL=":"
17531  else
17532    case $cross_compiling:$ac_tool_warned in
17533yes:)
17534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17536ac_tool_warned=yes ;;
17537esac
17538    OTOOL=$ac_ct_OTOOL
17539  fi
17540else
17541  OTOOL="$ac_cv_prog_OTOOL"
17542fi
17543
17544    if test -n "$ac_tool_prefix"; then
17545  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
17546set dummy ${ac_tool_prefix}otool64; ac_word=$2
17547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17548printf %s "checking for $ac_word... " >&6; }
17549if test ${ac_cv_prog_OTOOL64+y}
17550then :
17551  printf %s "(cached) " >&6
17552else case e in #(
17553  e) if test -n "$OTOOL64"; then
17554  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
17555else
17556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17557for as_dir in $PATH
17558do
17559  IFS=$as_save_IFS
17560  case $as_dir in #(((
17561    '') as_dir=./ ;;
17562    */) ;;
17563    *) as_dir=$as_dir/ ;;
17564  esac
17565    for ac_exec_ext in '' $ac_executable_extensions; do
17566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17567    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
17568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17569    break 2
17570  fi
17571done
17572  done
17573IFS=$as_save_IFS
17574
17575fi ;;
17576esac
17577fi
17578OTOOL64=$ac_cv_prog_OTOOL64
17579if test -n "$OTOOL64"; then
17580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
17581printf "%s\n" "$OTOOL64" >&6; }
17582else
17583  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17584printf "%s\n" "no" >&6; }
17585fi
17586
17587
17588fi
17589if test -z "$ac_cv_prog_OTOOL64"; then
17590  ac_ct_OTOOL64=$OTOOL64
17591  # Extract the first word of "otool64", so it can be a program name with args.
17592set dummy otool64; ac_word=$2
17593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17594printf %s "checking for $ac_word... " >&6; }
17595if test ${ac_cv_prog_ac_ct_OTOOL64+y}
17596then :
17597  printf %s "(cached) " >&6
17598else case e in #(
17599  e) if test -n "$ac_ct_OTOOL64"; then
17600  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
17601else
17602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17603for as_dir in $PATH
17604do
17605  IFS=$as_save_IFS
17606  case $as_dir in #(((
17607    '') as_dir=./ ;;
17608    */) ;;
17609    *) as_dir=$as_dir/ ;;
17610  esac
17611    for ac_exec_ext in '' $ac_executable_extensions; do
17612  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17613    ac_cv_prog_ac_ct_OTOOL64="otool64"
17614    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17615    break 2
17616  fi
17617done
17618  done
17619IFS=$as_save_IFS
17620
17621fi ;;
17622esac
17623fi
17624ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
17625if test -n "$ac_ct_OTOOL64"; then
17626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
17627printf "%s\n" "$ac_ct_OTOOL64" >&6; }
17628else
17629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17630printf "%s\n" "no" >&6; }
17631fi
17632
17633  if test "x$ac_ct_OTOOL64" = x; then
17634    OTOOL64=":"
17635  else
17636    case $cross_compiling:$ac_tool_warned in
17637yes:)
17638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17639printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17640ac_tool_warned=yes ;;
17641esac
17642    OTOOL64=$ac_ct_OTOOL64
17643  fi
17644else
17645  OTOOL64="$ac_cv_prog_OTOOL64"
17646fi
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
17675printf %s "checking for -single_module linker flag... " >&6; }
17676if test ${lt_cv_apple_cc_single_mod+y}
17677then :
17678  printf %s "(cached) " >&6
17679else case e in #(
17680  e) lt_cv_apple_cc_single_mod=no
17681      if test -z "$LT_MULTI_MODULE"; then
17682	# By default we will add the -single_module flag. You can override
17683	# by either setting the environment variable LT_MULTI_MODULE
17684	# non-empty at configure time, or by adding -multi_module to the
17685	# link flags.
17686	rm -rf libconftest.dylib*
17687	echo "int foo(void){return 1;}" > conftest.c
17688	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17689-dynamiclib -Wl,-single_module conftest.c" >&5
17690	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
17691	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
17692        _lt_result=$?
17693	# If there is a non-empty error log, and "single_module"
17694	# appears in it, assume the flag caused a linker warning
17695        if test -s conftest.err && $GREP single_module conftest.err; then
17696	  cat conftest.err >&5
17697	# Otherwise, if the output was created with a 0 exit code from
17698	# the compiler, it worked.
17699	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
17700	  lt_cv_apple_cc_single_mod=yes
17701	else
17702	  cat conftest.err >&5
17703	fi
17704	rm -rf libconftest.dylib*
17705	rm -f conftest.*
17706      fi ;;
17707esac
17708fi
17709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
17710printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
17711
17712    # Feature test to disable chained fixups since it is not
17713    # compatible with '-undefined dynamic_lookup'
17714    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
17715printf %s "checking for -no_fixup_chains linker flag... " >&6; }
17716if test ${lt_cv_support_no_fixup_chains+y}
17717then :
17718  printf %s "(cached) " >&6
17719else case e in #(
17720  e)  save_LDFLAGS=$LDFLAGS
17721        LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
17722        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723/* end confdefs.h.  */
17724
17725int
17726main (void)
17727{
17728
17729  ;
17730  return 0;
17731}
17732_ACEOF
17733if ac_fn_c_try_link "$LINENO"
17734then :
17735  lt_cv_support_no_fixup_chains=yes
17736else case e in #(
17737  e) lt_cv_support_no_fixup_chains=no
17738         ;;
17739esac
17740fi
17741rm -f core conftest.err conftest.$ac_objext conftest.beam \
17742    conftest$ac_exeext conftest.$ac_ext
17743        LDFLAGS=$save_LDFLAGS
17744
17745     ;;
17746esac
17747fi
17748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
17749printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
17750
17751    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
17752printf %s "checking for -exported_symbols_list linker flag... " >&6; }
17753if test ${lt_cv_ld_exported_symbols_list+y}
17754then :
17755  printf %s "(cached) " >&6
17756else case e in #(
17757  e) lt_cv_ld_exported_symbols_list=no
17758      save_LDFLAGS=$LDFLAGS
17759      echo "_main" > conftest.sym
17760      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
17761      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762/* end confdefs.h.  */
17763
17764int
17765main (void)
17766{
17767
17768  ;
17769  return 0;
17770}
17771_ACEOF
17772if ac_fn_c_try_link "$LINENO"
17773then :
17774  lt_cv_ld_exported_symbols_list=yes
17775else case e in #(
17776  e) lt_cv_ld_exported_symbols_list=no ;;
17777esac
17778fi
17779rm -f core conftest.err conftest.$ac_objext conftest.beam \
17780    conftest$ac_exeext conftest.$ac_ext
17781	LDFLAGS=$save_LDFLAGS
17782     ;;
17783esac
17784fi
17785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
17786printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
17787
17788    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
17789printf %s "checking for -force_load linker flag... " >&6; }
17790if test ${lt_cv_ld_force_load+y}
17791then :
17792  printf %s "(cached) " >&6
17793else case e in #(
17794  e) lt_cv_ld_force_load=no
17795      cat > conftest.c << _LT_EOF
17796int forced_loaded() { return 2;}
17797_LT_EOF
17798      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
17799      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
17800      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
17801      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
17802      echo "$RANLIB libconftest.a" >&5
17803      $RANLIB libconftest.a 2>&5
17804      cat > conftest.c << _LT_EOF
17805int main(void) { return 0;}
17806_LT_EOF
17807      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
17808      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
17809      _lt_result=$?
17810      if test -s conftest.err && $GREP force_load conftest.err; then
17811	cat conftest.err >&5
17812      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
17813	lt_cv_ld_force_load=yes
17814      else
17815	cat conftest.err >&5
17816      fi
17817        rm -f conftest.err libconftest.a conftest conftest.c
17818        rm -rf conftest.dSYM
17819     ;;
17820esac
17821fi
17822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
17823printf "%s\n" "$lt_cv_ld_force_load" >&6; }
17824    case $host_os in
17825    rhapsody* | darwin1.[012])
17826      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
17827    darwin1.*)
17828      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17829    darwin*)
17830      case $MACOSX_DEPLOYMENT_TARGET,$host in
17831        10.[012],*|,*powerpc*-darwin[5-8]*)
17832          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
17833        *)
17834          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
17835          if test yes = "$lt_cv_support_no_fixup_chains"; then
17836            as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
17837          fi
17838        ;;
17839      esac
17840    ;;
17841  esac
17842    if test yes = "$lt_cv_apple_cc_single_mod"; then
17843      _lt_dar_single_mod='$single_module'
17844    fi
17845    _lt_dar_needs_single_mod=no
17846    case $host_os in
17847    rhapsody* | darwin1.*)
17848      _lt_dar_needs_single_mod=yes ;;
17849    darwin*)
17850      # When targeting Mac OS X 10.4 (darwin 8) or later,
17851      # -single_module is the default and -multi_module is unsupported.
17852      # The toolchain on macOS 10.14 (darwin 18) and later cannot
17853      # target any OS version that needs -single_module.
17854      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
17855      10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
17856        _lt_dar_needs_single_mod=yes ;;
17857      esac
17858    ;;
17859    esac
17860    if test yes = "$lt_cv_ld_exported_symbols_list"; then
17861      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
17862    else
17863      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
17864    fi
17865    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
17866      _lt_dsymutil='~$DSYMUTIL $lib || :'
17867    else
17868      _lt_dsymutil=
17869    fi
17870    ;;
17871  esac
17872
17873# func_munge_path_list VARIABLE PATH
17874# -----------------------------------
17875# VARIABLE is name of variable containing _space_ separated list of
17876# directories to be munged by the contents of PATH, which is string
17877# having a format:
17878# "DIR[:DIR]:"
17879#       string "DIR[ DIR]" will be prepended to VARIABLE
17880# ":DIR[:DIR]"
17881#       string "DIR[ DIR]" will be appended to VARIABLE
17882# "DIRP[:DIRP]::[DIRA:]DIRA"
17883#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17884#       "DIRA[ DIRA]" will be appended to VARIABLE
17885# "DIR[:DIR]"
17886#       VARIABLE will be replaced by "DIR[ DIR]"
17887func_munge_path_list ()
17888{
17889    case x$2 in
17890    x)
17891        ;;
17892    *:)
17893        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17894        ;;
17895    x:*)
17896        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17897        ;;
17898    *::*)
17899        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17900        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17901        ;;
17902    *)
17903        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17904        ;;
17905    esac
17906}
17907
17908ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
17909"
17910if test "x$ac_cv_header_dlfcn_h" = xyes
17911then :
17912  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
17913
17914fi
17915
17916
17917
17918
17919
17920# Set options
17921# Check whether --enable-static was given.
17922if test ${enable_static+y}
17923then :
17924  enableval=$enable_static; p=${PACKAGE-default}
17925    case $enableval in
17926    yes) enable_static=yes ;;
17927    no) enable_static=no ;;
17928    *)
17929     enable_static=no
17930      # Look at the argument we got.  We use all the common list separators.
17931      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
17932      for pkg in $enableval; do
17933	IFS=$lt_save_ifs
17934	if test "X$pkg" = "X$p"; then
17935	  enable_static=yes
17936	fi
17937      done
17938      IFS=$lt_save_ifs
17939      ;;
17940    esac
17941else case e in #(
17942  e) enable_static=no ;;
17943esac
17944fi
17945
17946
17947
17948
17949
17950
17951
17952enable_win32_dll=yes
17953
17954case $host in
17955*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
17956  if test -n "$ac_tool_prefix"; then
17957  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
17958set dummy ${ac_tool_prefix}as; ac_word=$2
17959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17960printf %s "checking for $ac_word... " >&6; }
17961if test ${ac_cv_prog_AS+y}
17962then :
17963  printf %s "(cached) " >&6
17964else case e in #(
17965  e) if test -n "$AS"; then
17966  ac_cv_prog_AS="$AS" # Let the user override the test.
17967else
17968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17969for as_dir in $PATH
17970do
17971  IFS=$as_save_IFS
17972  case $as_dir in #(((
17973    '') as_dir=./ ;;
17974    */) ;;
17975    *) as_dir=$as_dir/ ;;
17976  esac
17977    for ac_exec_ext in '' $ac_executable_extensions; do
17978  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17979    ac_cv_prog_AS="${ac_tool_prefix}as"
17980    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17981    break 2
17982  fi
17983done
17984  done
17985IFS=$as_save_IFS
17986
17987fi ;;
17988esac
17989fi
17990AS=$ac_cv_prog_AS
17991if test -n "$AS"; then
17992  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
17993printf "%s\n" "$AS" >&6; }
17994else
17995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17996printf "%s\n" "no" >&6; }
17997fi
17998
17999
18000fi
18001if test -z "$ac_cv_prog_AS"; then
18002  ac_ct_AS=$AS
18003  # Extract the first word of "as", so it can be a program name with args.
18004set dummy as; ac_word=$2
18005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18006printf %s "checking for $ac_word... " >&6; }
18007if test ${ac_cv_prog_ac_ct_AS+y}
18008then :
18009  printf %s "(cached) " >&6
18010else case e in #(
18011  e) if test -n "$ac_ct_AS"; then
18012  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
18013else
18014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18015for as_dir in $PATH
18016do
18017  IFS=$as_save_IFS
18018  case $as_dir in #(((
18019    '') as_dir=./ ;;
18020    */) ;;
18021    *) as_dir=$as_dir/ ;;
18022  esac
18023    for ac_exec_ext in '' $ac_executable_extensions; do
18024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18025    ac_cv_prog_ac_ct_AS="as"
18026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18027    break 2
18028  fi
18029done
18030  done
18031IFS=$as_save_IFS
18032
18033fi ;;
18034esac
18035fi
18036ac_ct_AS=$ac_cv_prog_ac_ct_AS
18037if test -n "$ac_ct_AS"; then
18038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
18039printf "%s\n" "$ac_ct_AS" >&6; }
18040else
18041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042printf "%s\n" "no" >&6; }
18043fi
18044
18045  if test "x$ac_ct_AS" = x; then
18046    AS="false"
18047  else
18048    case $cross_compiling:$ac_tool_warned in
18049yes:)
18050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18051printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18052ac_tool_warned=yes ;;
18053esac
18054    AS=$ac_ct_AS
18055  fi
18056else
18057  AS="$ac_cv_prog_AS"
18058fi
18059
18060  if test -n "$ac_tool_prefix"; then
18061  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
18062set dummy ${ac_tool_prefix}dlltool; ac_word=$2
18063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18064printf %s "checking for $ac_word... " >&6; }
18065if test ${ac_cv_prog_DLLTOOL+y}
18066then :
18067  printf %s "(cached) " >&6
18068else case e in #(
18069  e) if test -n "$DLLTOOL"; then
18070  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
18071else
18072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18073for as_dir in $PATH
18074do
18075  IFS=$as_save_IFS
18076  case $as_dir in #(((
18077    '') as_dir=./ ;;
18078    */) ;;
18079    *) as_dir=$as_dir/ ;;
18080  esac
18081    for ac_exec_ext in '' $ac_executable_extensions; do
18082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18083    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
18084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18085    break 2
18086  fi
18087done
18088  done
18089IFS=$as_save_IFS
18090
18091fi ;;
18092esac
18093fi
18094DLLTOOL=$ac_cv_prog_DLLTOOL
18095if test -n "$DLLTOOL"; then
18096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
18097printf "%s\n" "$DLLTOOL" >&6; }
18098else
18099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18100printf "%s\n" "no" >&6; }
18101fi
18102
18103
18104fi
18105if test -z "$ac_cv_prog_DLLTOOL"; then
18106  ac_ct_DLLTOOL=$DLLTOOL
18107  # Extract the first word of "dlltool", so it can be a program name with args.
18108set dummy dlltool; ac_word=$2
18109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18110printf %s "checking for $ac_word... " >&6; }
18111if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
18112then :
18113  printf %s "(cached) " >&6
18114else case e in #(
18115  e) if test -n "$ac_ct_DLLTOOL"; then
18116  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
18117else
18118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119for as_dir in $PATH
18120do
18121  IFS=$as_save_IFS
18122  case $as_dir in #(((
18123    '') as_dir=./ ;;
18124    */) ;;
18125    *) as_dir=$as_dir/ ;;
18126  esac
18127    for ac_exec_ext in '' $ac_executable_extensions; do
18128  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18129    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
18130    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18131    break 2
18132  fi
18133done
18134  done
18135IFS=$as_save_IFS
18136
18137fi ;;
18138esac
18139fi
18140ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
18141if test -n "$ac_ct_DLLTOOL"; then
18142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
18143printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
18144else
18145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146printf "%s\n" "no" >&6; }
18147fi
18148
18149  if test "x$ac_ct_DLLTOOL" = x; then
18150    DLLTOOL="false"
18151  else
18152    case $cross_compiling:$ac_tool_warned in
18153yes:)
18154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18155printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18156ac_tool_warned=yes ;;
18157esac
18158    DLLTOOL=$ac_ct_DLLTOOL
18159  fi
18160else
18161  DLLTOOL="$ac_cv_prog_DLLTOOL"
18162fi
18163
18164  if test -n "$ac_tool_prefix"; then
18165  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
18166set dummy ${ac_tool_prefix}objdump; ac_word=$2
18167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18168printf %s "checking for $ac_word... " >&6; }
18169if test ${ac_cv_prog_OBJDUMP+y}
18170then :
18171  printf %s "(cached) " >&6
18172else case e in #(
18173  e) if test -n "$OBJDUMP"; then
18174  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
18175else
18176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18177for as_dir in $PATH
18178do
18179  IFS=$as_save_IFS
18180  case $as_dir in #(((
18181    '') as_dir=./ ;;
18182    */) ;;
18183    *) as_dir=$as_dir/ ;;
18184  esac
18185    for ac_exec_ext in '' $ac_executable_extensions; do
18186  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18187    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
18188    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18189    break 2
18190  fi
18191done
18192  done
18193IFS=$as_save_IFS
18194
18195fi ;;
18196esac
18197fi
18198OBJDUMP=$ac_cv_prog_OBJDUMP
18199if test -n "$OBJDUMP"; then
18200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
18201printf "%s\n" "$OBJDUMP" >&6; }
18202else
18203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204printf "%s\n" "no" >&6; }
18205fi
18206
18207
18208fi
18209if test -z "$ac_cv_prog_OBJDUMP"; then
18210  ac_ct_OBJDUMP=$OBJDUMP
18211  # Extract the first word of "objdump", so it can be a program name with args.
18212set dummy objdump; ac_word=$2
18213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18214printf %s "checking for $ac_word... " >&6; }
18215if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
18216then :
18217  printf %s "(cached) " >&6
18218else case e in #(
18219  e) if test -n "$ac_ct_OBJDUMP"; then
18220  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
18221else
18222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18223for as_dir in $PATH
18224do
18225  IFS=$as_save_IFS
18226  case $as_dir in #(((
18227    '') as_dir=./ ;;
18228    */) ;;
18229    *) as_dir=$as_dir/ ;;
18230  esac
18231    for ac_exec_ext in '' $ac_executable_extensions; do
18232  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18233    ac_cv_prog_ac_ct_OBJDUMP="objdump"
18234    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18235    break 2
18236  fi
18237done
18238  done
18239IFS=$as_save_IFS
18240
18241fi ;;
18242esac
18243fi
18244ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
18245if test -n "$ac_ct_OBJDUMP"; then
18246  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
18247printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
18248else
18249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250printf "%s\n" "no" >&6; }
18251fi
18252
18253  if test "x$ac_ct_OBJDUMP" = x; then
18254    OBJDUMP="false"
18255  else
18256    case $cross_compiling:$ac_tool_warned in
18257yes:)
18258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18259printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18260ac_tool_warned=yes ;;
18261esac
18262    OBJDUMP=$ac_ct_OBJDUMP
18263  fi
18264else
18265  OBJDUMP="$ac_cv_prog_OBJDUMP"
18266fi
18267
18268  ;;
18269esac
18270
18271test -z "$AS" && AS=as
18272
18273
18274
18275
18276
18277test -z "$DLLTOOL" && DLLTOOL=dlltool
18278
18279
18280
18281
18282
18283test -z "$OBJDUMP" && OBJDUMP=objdump
18284
18285
18286
18287
18288
18289
18290
18291        enable_dlopen=no
18292
18293
18294
18295            # Check whether --enable-shared was given.
18296if test ${enable_shared+y}
18297then :
18298  enableval=$enable_shared; p=${PACKAGE-default}
18299    case $enableval in
18300    yes) enable_shared=yes ;;
18301    no) enable_shared=no ;;
18302    *)
18303      enable_shared=no
18304      # Look at the argument we got.  We use all the common list separators.
18305      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18306      for pkg in $enableval; do
18307	IFS=$lt_save_ifs
18308	if test "X$pkg" = "X$p"; then
18309	  enable_shared=yes
18310	fi
18311      done
18312      IFS=$lt_save_ifs
18313      ;;
18314    esac
18315else case e in #(
18316  e) enable_shared=yes ;;
18317esac
18318fi
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329  # Check whether --enable-pic was given.
18330if test ${enable_pic+y}
18331then :
18332  enableval=$enable_pic; lt_p=${PACKAGE-default}
18333     case $enableval in
18334     yes|no) pic_mode=$enableval ;;
18335     *)
18336       pic_mode=default
18337       # Look at the argument we got.  We use all the common list separators.
18338       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18339       for lt_pkg in $enableval; do
18340	 IFS=$lt_save_ifs
18341	 if test "X$lt_pkg" = "X$lt_p"; then
18342	   pic_mode=yes
18343	 fi
18344       done
18345       IFS=$lt_save_ifs
18346       ;;
18347     esac
18348else case e in #(
18349  e)           # Check whether --with-pic was given.
18350if test ${with_pic+y}
18351then :
18352  withval=$with_pic; lt_p=${PACKAGE-default}
18353	 case $withval in
18354	 yes|no) pic_mode=$withval ;;
18355	 *)
18356	   pic_mode=default
18357	   # Look at the argument we got.  We use all the common list separators.
18358	   lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18359	   for lt_pkg in $withval; do
18360	     IFS=$lt_save_ifs
18361	     if test "X$lt_pkg" = "X$lt_p"; then
18362	       pic_mode=yes
18363	     fi
18364	   done
18365	   IFS=$lt_save_ifs
18366	   ;;
18367	 esac
18368else case e in #(
18369  e) pic_mode=default ;;
18370esac
18371fi
18372
18373     ;;
18374esac
18375fi
18376
18377
18378
18379
18380
18381
18382
18383
18384  # Check whether --enable-fast-install was given.
18385if test ${enable_fast_install+y}
18386then :
18387  enableval=$enable_fast_install; p=${PACKAGE-default}
18388    case $enableval in
18389    yes) enable_fast_install=yes ;;
18390    no) enable_fast_install=no ;;
18391    *)
18392      enable_fast_install=no
18393      # Look at the argument we got.  We use all the common list separators.
18394      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
18395      for pkg in $enableval; do
18396	IFS=$lt_save_ifs
18397	if test "X$pkg" = "X$p"; then
18398	  enable_fast_install=yes
18399	fi
18400      done
18401      IFS=$lt_save_ifs
18402      ;;
18403    esac
18404else case e in #(
18405  e) enable_fast_install=yes ;;
18406esac
18407fi
18408
18409
18410
18411
18412
18413
18414
18415
18416  shared_archive_member_spec=
18417case $host,$enable_shared in
18418power*-*-aix[5-9]*,yes)
18419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
18420printf %s "checking which variant of shared library versioning to provide... " >&6; }
18421  # Check whether --enable-aix-soname was given.
18422if test ${enable_aix_soname+y}
18423then :
18424  enableval=$enable_aix_soname; case $enableval in
18425     aix|svr4|both)
18426       ;;
18427     *)
18428       as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
18429       ;;
18430     esac
18431     lt_cv_with_aix_soname=$enable_aix_soname
18432else case e in #(
18433  e) # Check whether --with-aix-soname was given.
18434if test ${with_aix_soname+y}
18435then :
18436  withval=$with_aix_soname; case $withval in
18437         aix|svr4|both)
18438           ;;
18439         *)
18440           as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
18441           ;;
18442         esac
18443         lt_cv_with_aix_soname=$with_aix_soname
18444else case e in #(
18445  e) if test ${lt_cv_with_aix_soname+y}
18446then :
18447  printf %s "(cached) " >&6
18448else case e in #(
18449  e) lt_cv_with_aix_soname=aix ;;
18450esac
18451fi
18452 ;;
18453esac
18454fi
18455
18456     enable_aix_soname=$lt_cv_with_aix_soname ;;
18457esac
18458fi
18459
18460  with_aix_soname=$enable_aix_soname
18461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
18462printf "%s\n" "$with_aix_soname" >&6; }
18463  if test aix != "$with_aix_soname"; then
18464    # For the AIX way of multilib, we name the shared archive member
18465    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
18466    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
18467    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
18468    # the AIX toolchain works better with OBJECT_MODE set (default 32).
18469    if test 64 = "${OBJECT_MODE-32}"; then
18470      shared_archive_member_spec=shr_64
18471    else
18472      shared_archive_member_spec=shr
18473    fi
18474  fi
18475  ;;
18476*)
18477  with_aix_soname=aix
18478  ;;
18479esac
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490# This can be used to rebuild libtool when needed
18491LIBTOOL_DEPS=$ltmain
18492
18493# Always use our own libtool.
18494LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525test -z "$LN_S" && LN_S="ln -s"
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540if test -n "${ZSH_VERSION+set}"; then
18541   setopt NO_GLOB_SUBST
18542fi
18543
18544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
18545printf %s "checking for objdir... " >&6; }
18546if test ${lt_cv_objdir+y}
18547then :
18548  printf %s "(cached) " >&6
18549else case e in #(
18550  e) rm -f .libs 2>/dev/null
18551mkdir .libs 2>/dev/null
18552if test -d .libs; then
18553  lt_cv_objdir=.libs
18554else
18555  # MS-DOS does not allow filenames that begin with a dot.
18556  lt_cv_objdir=_libs
18557fi
18558rmdir .libs 2>/dev/null ;;
18559esac
18560fi
18561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
18562printf "%s\n" "$lt_cv_objdir" >&6; }
18563objdir=$lt_cv_objdir
18564
18565
18566
18567
18568
18569printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
18570
18571
18572
18573
18574case $host_os in
18575aix3*)
18576  # AIX sometimes has problems with the GCC collect2 program.  For some
18577  # reason, if we set the COLLECT_NAMES environment variable, the problems
18578  # vanish in a puff of smoke.
18579  if test set != "${COLLECT_NAMES+set}"; then
18580    COLLECT_NAMES=
18581    export COLLECT_NAMES
18582  fi
18583  ;;
18584esac
18585
18586# Global variables:
18587ofile=libtool
18588can_build_shared=yes
18589
18590# All known linkers require a '.a' archive for static linking (except MSVC and
18591# ICC, which need '.lib').
18592libext=a
18593
18594with_gnu_ld=$lt_cv_prog_gnu_ld
18595
18596old_CC=$CC
18597old_CFLAGS=$CFLAGS
18598
18599# Set sane defaults for various variables
18600test -z "$CC" && CC=cc
18601test -z "$LTCC" && LTCC=$CC
18602test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
18603test -z "$LD" && LD=ld
18604test -z "$ac_objext" && ac_objext=o
18605
18606func_cc_basename $compiler
18607cc_basename=$func_cc_basename_result
18608
18609
18610# Only perform the check for file, if the check method requires it
18611test -z "$MAGIC_CMD" && MAGIC_CMD=file
18612case $deplibs_check_method in
18613file_magic*)
18614  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18615    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
18616printf %s "checking for ${ac_tool_prefix}file... " >&6; }
18617if test ${lt_cv_path_MAGIC_CMD+y}
18618then :
18619  printf %s "(cached) " >&6
18620else case e in #(
18621  e) case $MAGIC_CMD in
18622[\\/*] |  ?:[\\/]*)
18623  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18624  ;;
18625*)
18626  lt_save_MAGIC_CMD=$MAGIC_CMD
18627  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18628  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18629  for ac_dir in $ac_dummy; do
18630    IFS=$lt_save_ifs
18631    test -z "$ac_dir" && ac_dir=.
18632    if test -f "$ac_dir/${ac_tool_prefix}file"; then
18633      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
18634      if test -n "$file_magic_test_file"; then
18635	case $deplibs_check_method in
18636	"file_magic "*)
18637	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18638	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18639	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18640	    $EGREP "$file_magic_regex" > /dev/null; then
18641	    :
18642	  else
18643	    cat <<_LT_EOF 1>&2
18644
18645*** Warning: the command libtool uses to detect shared libraries,
18646*** $file_magic_cmd, produces output that libtool cannot recognize.
18647*** The result is that libtool may fail to recognize shared libraries
18648*** as such.  This will affect the creation of libtool libraries that
18649*** depend on shared libraries, but programs linked with such libtool
18650*** libraries will work regardless of this problem.  Nevertheless, you
18651*** may want to report the problem to your system manager and/or to
18652*** bug-libtool@gnu.org
18653
18654_LT_EOF
18655	  fi ;;
18656	esac
18657      fi
18658      break
18659    fi
18660  done
18661  IFS=$lt_save_ifs
18662  MAGIC_CMD=$lt_save_MAGIC_CMD
18663  ;;
18664esac ;;
18665esac
18666fi
18667
18668MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18669if test -n "$MAGIC_CMD"; then
18670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18671printf "%s\n" "$MAGIC_CMD" >&6; }
18672else
18673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18674printf "%s\n" "no" >&6; }
18675fi
18676
18677
18678
18679
18680
18681if test -z "$lt_cv_path_MAGIC_CMD"; then
18682  if test -n "$ac_tool_prefix"; then
18683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
18684printf %s "checking for file... " >&6; }
18685if test ${lt_cv_path_MAGIC_CMD+y}
18686then :
18687  printf %s "(cached) " >&6
18688else case e in #(
18689  e) case $MAGIC_CMD in
18690[\\/*] |  ?:[\\/]*)
18691  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
18692  ;;
18693*)
18694  lt_save_MAGIC_CMD=$MAGIC_CMD
18695  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18696  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18697  for ac_dir in $ac_dummy; do
18698    IFS=$lt_save_ifs
18699    test -z "$ac_dir" && ac_dir=.
18700    if test -f "$ac_dir/file"; then
18701      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
18702      if test -n "$file_magic_test_file"; then
18703	case $deplibs_check_method in
18704	"file_magic "*)
18705	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18706	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18707	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18708	    $EGREP "$file_magic_regex" > /dev/null; then
18709	    :
18710	  else
18711	    cat <<_LT_EOF 1>&2
18712
18713*** Warning: the command libtool uses to detect shared libraries,
18714*** $file_magic_cmd, produces output that libtool cannot recognize.
18715*** The result is that libtool may fail to recognize shared libraries
18716*** as such.  This will affect the creation of libtool libraries that
18717*** depend on shared libraries, but programs linked with such libtool
18718*** libraries will work regardless of this problem.  Nevertheless, you
18719*** may want to report the problem to your system manager and/or to
18720*** bug-libtool@gnu.org
18721
18722_LT_EOF
18723	  fi ;;
18724	esac
18725      fi
18726      break
18727    fi
18728  done
18729  IFS=$lt_save_ifs
18730  MAGIC_CMD=$lt_save_MAGIC_CMD
18731  ;;
18732esac ;;
18733esac
18734fi
18735
18736MAGIC_CMD=$lt_cv_path_MAGIC_CMD
18737if test -n "$MAGIC_CMD"; then
18738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
18739printf "%s\n" "$MAGIC_CMD" >&6; }
18740else
18741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18742printf "%s\n" "no" >&6; }
18743fi
18744
18745
18746  else
18747    MAGIC_CMD=:
18748  fi
18749fi
18750
18751  fi
18752  ;;
18753esac
18754
18755# Use C for the default configuration in the libtool script
18756
18757lt_save_CC=$CC
18758ac_ext=c
18759ac_cpp='$CPP $CPPFLAGS'
18760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18762ac_compiler_gnu=$ac_cv_c_compiler_gnu
18763
18764
18765# Source file extension for C test sources.
18766ac_ext=c
18767
18768# Object file extension for compiled C test sources.
18769objext=o
18770objext=$objext
18771
18772# Code to be used in simple compile tests
18773lt_simple_compile_test_code="int some_variable = 0;"
18774
18775# Code to be used in simple link tests
18776lt_simple_link_test_code='int main(void){return(0);}'
18777
18778
18779
18780
18781
18782
18783
18784# If no C compiler was specified, use CC.
18785LTCC=${LTCC-"$CC"}
18786
18787# If no C compiler flags were specified, use CFLAGS.
18788LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18789
18790# Allow CC to be a program name with arguments.
18791compiler=$CC
18792
18793# Save the default compiler, since it gets overwritten when the other
18794# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
18795compiler_DEFAULT=$CC
18796
18797# save warnings/boilerplate of simple test code
18798ac_outfile=conftest.$ac_objext
18799echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18800eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18801_lt_compiler_boilerplate=`cat conftest.err`
18802$RM conftest*
18803
18804ac_outfile=conftest.$ac_objext
18805echo "$lt_simple_link_test_code" >conftest.$ac_ext
18806eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18807_lt_linker_boilerplate=`cat conftest.err`
18808$RM -r conftest*
18809
18810
18811## CAVEAT EMPTOR:
18812## There is no encapsulation within the following macros, do not change
18813## the running order or otherwise move them around unless you know exactly
18814## what you are doing...
18815if test -n "$compiler"; then
18816
18817lt_prog_compiler_no_builtin_flag=
18818
18819if test yes = "$GCC"; then
18820  case $cc_basename in
18821  nvcc*)
18822    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
18823  *)
18824    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
18825  esac
18826
18827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18828printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18829if test ${lt_cv_prog_compiler_rtti_exceptions+y}
18830then :
18831  printf %s "(cached) " >&6
18832else case e in #(
18833  e) lt_cv_prog_compiler_rtti_exceptions=no
18834   ac_outfile=conftest.$ac_objext
18835   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18836   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
18837   # Insert the option either (1) after the last *FLAGS variable, or
18838   # (2) before a word containing "conftest.", or (3) at the end.
18839   # Note that $ac_compile itself does not contain backslashes and begins
18840   # with a dollar sign (not a hyphen), so the echo should work correctly.
18841   # The option is referenced via a variable to avoid confusing sed.
18842   lt_compile=`echo "$ac_compile" | $SED \
18843   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18844   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18845   -e 's:$: $lt_compiler_flag:'`
18846   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18847   (eval "$lt_compile" 2>conftest.err)
18848   ac_status=$?
18849   cat conftest.err >&5
18850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851   if (exit $ac_status) && test -s "$ac_outfile"; then
18852     # The compiler can only warn and ignore the option if not recognized
18853     # So say no if there are warnings other than the usual output.
18854     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18855     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18856     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18857       lt_cv_prog_compiler_rtti_exceptions=yes
18858     fi
18859   fi
18860   $RM conftest*
18861 ;;
18862esac
18863fi
18864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18865printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18866
18867if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
18868    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18869else
18870    :
18871fi
18872
18873fi
18874
18875
18876
18877
18878
18879
18880  lt_prog_compiler_wl=
18881lt_prog_compiler_pic=
18882lt_prog_compiler_static=
18883
18884
18885  if test yes = "$GCC"; then
18886    lt_prog_compiler_wl='-Wl,'
18887    lt_prog_compiler_static='-static'
18888
18889    case $host_os in
18890      aix*)
18891      # All AIX code is PIC.
18892      if test ia64 = "$host_cpu"; then
18893	# AIX 5 now supports IA64 processor
18894	lt_prog_compiler_static='-Bstatic'
18895      fi
18896      lt_prog_compiler_pic='-fPIC'
18897      ;;
18898
18899    amigaos*)
18900      case $host_cpu in
18901      powerpc)
18902            # see comment about AmigaOS4 .so support
18903            lt_prog_compiler_pic='-fPIC'
18904        ;;
18905      m68k)
18906            # FIXME: we need at least 68020 code to build shared libraries, but
18907            # adding the '-m68020' flag to GCC prevents building anything better,
18908            # like '-m68040'.
18909            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18910        ;;
18911      esac
18912      ;;
18913
18914    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18915      # PIC is the default for these OSes.
18916      ;;
18917
18918    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
18919      # This hack is so that the source file can tell whether it is being
18920      # built for inclusion in a dll (and should export symbols for example).
18921      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18922      # (--disable-auto-import) libraries
18923      lt_prog_compiler_pic='-DDLL_EXPORT'
18924      case $host_os in
18925      os2*)
18926	lt_prog_compiler_static='$wl-static'
18927	;;
18928      esac
18929      ;;
18930
18931    darwin* | rhapsody*)
18932      # PIC is the default on this platform
18933      # Common symbols not allowed in MH_DYLIB files
18934      lt_prog_compiler_pic='-fno-common'
18935      ;;
18936
18937    haiku*)
18938      # PIC is the default for Haiku.
18939      # The "-static" flag exists, but is broken.
18940      lt_prog_compiler_static=
18941      ;;
18942
18943    hpux*)
18944      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18945      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18946      # sets the default TLS model and affects inlining.
18947      case $host_cpu in
18948      hppa*64*)
18949	# +Z the default
18950	;;
18951      *)
18952	lt_prog_compiler_pic='-fPIC'
18953	;;
18954      esac
18955      ;;
18956
18957    interix[3-9]*)
18958      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18959      # Instead, we relocate shared libraries at runtime.
18960      ;;
18961
18962    msdosdjgpp*)
18963      # Just because we use GCC doesn't mean we suddenly get shared libraries
18964      # on systems that don't support them.
18965      lt_prog_compiler_can_build_shared=no
18966      enable_shared=no
18967      ;;
18968
18969    *nto* | *qnx*)
18970      # QNX uses GNU C++, but need to define -shared option too, otherwise
18971      # it will coredump.
18972      lt_prog_compiler_pic='-fPIC -shared'
18973      ;;
18974
18975    sysv4*MP*)
18976      if test -d /usr/nec; then
18977	lt_prog_compiler_pic=-Kconform_pic
18978      fi
18979      ;;
18980
18981    *)
18982      lt_prog_compiler_pic='-fPIC'
18983      ;;
18984    esac
18985
18986    case $cc_basename in
18987    nvcc*) # Cuda Compiler Driver 2.2
18988      lt_prog_compiler_wl='-Xlinker '
18989      if test -n "$lt_prog_compiler_pic"; then
18990        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
18991      fi
18992      ;;
18993    esac
18994  else
18995    # PORTME Check for flag to pass linker flags through the system compiler.
18996    case $host_os in
18997    aix*)
18998      lt_prog_compiler_wl='-Wl,'
18999      if test ia64 = "$host_cpu"; then
19000	# AIX 5 now supports IA64 processor
19001	lt_prog_compiler_static='-Bstatic'
19002      else
19003	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
19004      fi
19005      ;;
19006
19007    darwin* | rhapsody*)
19008      # PIC is the default on this platform
19009      # Common symbols not allowed in MH_DYLIB files
19010      lt_prog_compiler_pic='-fno-common'
19011      case $cc_basename in
19012      nagfor*)
19013        # NAG Fortran compiler
19014        lt_prog_compiler_wl='-Wl,-Wl,,'
19015        lt_prog_compiler_pic='-PIC'
19016        lt_prog_compiler_static='-Bstatic'
19017        ;;
19018      esac
19019      ;;
19020
19021    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
19022      # This hack is so that the source file can tell whether it is being
19023      # built for inclusion in a dll (and should export symbols for example).
19024      lt_prog_compiler_pic='-DDLL_EXPORT'
19025      case $host_os in
19026      os2*)
19027	lt_prog_compiler_static='$wl-static'
19028	;;
19029      esac
19030      ;;
19031
19032    hpux9* | hpux10* | hpux11*)
19033      lt_prog_compiler_wl='-Wl,'
19034      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19035      # not for PA HP-UX.
19036      case $host_cpu in
19037      hppa*64*|ia64*)
19038	# +Z the default
19039	;;
19040      *)
19041	lt_prog_compiler_pic='+Z'
19042	;;
19043      esac
19044      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19045      lt_prog_compiler_static='$wl-a ${wl}archive'
19046      ;;
19047
19048    irix5* | irix6* | nonstopux*)
19049      lt_prog_compiler_wl='-Wl,'
19050      # PIC (with -KPIC) is the default.
19051      lt_prog_compiler_static='-non_shared'
19052      ;;
19053
19054    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19055      case $cc_basename in
19056      # old Intel for x86_64, which still supported -KPIC.
19057      ecc*)
19058	lt_prog_compiler_wl='-Wl,'
19059	lt_prog_compiler_pic='-KPIC'
19060	lt_prog_compiler_static='-static'
19061        ;;
19062      *flang* | ftn | f18* | f95*)
19063        # Flang compiler.
19064	lt_prog_compiler_wl='-Wl,'
19065	lt_prog_compiler_pic='-fPIC'
19066	lt_prog_compiler_static='-static'
19067        ;;
19068      # icc used to be incompatible with GCC.
19069      # ICC 10 doesn't accept -KPIC any more.
19070      icc* | ifort*)
19071	lt_prog_compiler_wl='-Wl,'
19072	lt_prog_compiler_pic='-fPIC'
19073	lt_prog_compiler_static='-static'
19074        ;;
19075      # Lahey Fortran 8.1.
19076      lf95*)
19077	lt_prog_compiler_wl='-Wl,'
19078	lt_prog_compiler_pic='--shared'
19079	lt_prog_compiler_static='--static'
19080	;;
19081      nagfor*)
19082	# NAG Fortran compiler
19083	lt_prog_compiler_wl='-Wl,-Wl,,'
19084	lt_prog_compiler_pic='-PIC'
19085	lt_prog_compiler_static='-Bstatic'
19086	;;
19087      tcc*)
19088	# Fabrice Bellard et al's Tiny C Compiler
19089	lt_prog_compiler_wl='-Wl,'
19090	lt_prog_compiler_pic='-fPIC'
19091	lt_prog_compiler_static='-static'
19092	;;
19093      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
19094        # Portland Group compilers (*not* the Pentium gcc compiler,
19095	# which looks to be a dead project)
19096	lt_prog_compiler_wl='-Wl,'
19097	lt_prog_compiler_pic='-fpic'
19098	lt_prog_compiler_static='-Bstatic'
19099        ;;
19100      ccc*)
19101        lt_prog_compiler_wl='-Wl,'
19102        # All Alpha code is PIC.
19103        lt_prog_compiler_static='-non_shared'
19104        ;;
19105      xl* | bgxl* | bgf* | mpixl*)
19106	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
19107	lt_prog_compiler_wl='-Wl,'
19108	lt_prog_compiler_pic='-qpic'
19109	lt_prog_compiler_static='-qstaticlink'
19110	;;
19111      *)
19112	case `$CC -V 2>&1 | $SED 5q` in
19113	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
19114	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
19115	  lt_prog_compiler_pic='-KPIC'
19116	  lt_prog_compiler_static='-Bstatic'
19117	  lt_prog_compiler_wl=''
19118	  ;;
19119	*Sun\ F* | *Sun*Fortran*)
19120	  lt_prog_compiler_pic='-KPIC'
19121	  lt_prog_compiler_static='-Bstatic'
19122	  lt_prog_compiler_wl='-Qoption ld '
19123	  ;;
19124	*Sun\ C*)
19125	  # Sun C 5.9
19126	  lt_prog_compiler_pic='-KPIC'
19127	  lt_prog_compiler_static='-Bstatic'
19128	  lt_prog_compiler_wl='-Wl,'
19129	  ;;
19130        *Intel*\ [CF]*Compiler*)
19131	  lt_prog_compiler_wl='-Wl,'
19132	  lt_prog_compiler_pic='-fPIC'
19133	  lt_prog_compiler_static='-static'
19134	  ;;
19135	*Portland\ Group*)
19136	  lt_prog_compiler_wl='-Wl,'
19137	  lt_prog_compiler_pic='-fpic'
19138	  lt_prog_compiler_static='-Bstatic'
19139	  ;;
19140	esac
19141	;;
19142      esac
19143      ;;
19144
19145    newsos6)
19146      lt_prog_compiler_pic='-KPIC'
19147      lt_prog_compiler_static='-Bstatic'
19148      ;;
19149
19150    *-mlibc)
19151      lt_prog_compiler_wl='-Wl,'
19152      lt_prog_compiler_pic='-fPIC'
19153      lt_prog_compiler_static='-static'
19154      ;;
19155
19156    *nto* | *qnx*)
19157      # QNX uses GNU C++, but need to define -shared option too, otherwise
19158      # it will coredump.
19159      lt_prog_compiler_pic='-fPIC -shared'
19160      ;;
19161
19162    osf3* | osf4* | osf5*)
19163      lt_prog_compiler_wl='-Wl,'
19164      # All OSF/1 code is PIC.
19165      lt_prog_compiler_static='-non_shared'
19166      ;;
19167
19168    rdos*)
19169      lt_prog_compiler_static='-non_shared'
19170      ;;
19171
19172    serenity*)
19173      ;;
19174
19175    solaris*)
19176      lt_prog_compiler_pic='-KPIC'
19177      lt_prog_compiler_static='-Bstatic'
19178      case $cc_basename in
19179      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
19180	lt_prog_compiler_wl='-Qoption ld ';;
19181      *)
19182	lt_prog_compiler_wl='-Wl,';;
19183      esac
19184      ;;
19185
19186    sunos4*)
19187      lt_prog_compiler_wl='-Qoption ld '
19188      lt_prog_compiler_pic='-PIC'
19189      lt_prog_compiler_static='-Bstatic'
19190      ;;
19191
19192    sysv4 | sysv4.2uw2* | sysv4.3*)
19193      lt_prog_compiler_wl='-Wl,'
19194      lt_prog_compiler_pic='-KPIC'
19195      lt_prog_compiler_static='-Bstatic'
19196      ;;
19197
19198    sysv4*MP*)
19199      if test -d /usr/nec; then
19200	lt_prog_compiler_pic='-Kconform_pic'
19201	lt_prog_compiler_static='-Bstatic'
19202      fi
19203      ;;
19204
19205    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19206      lt_prog_compiler_wl='-Wl,'
19207      lt_prog_compiler_pic='-KPIC'
19208      lt_prog_compiler_static='-Bstatic'
19209      ;;
19210
19211    unicos*)
19212      lt_prog_compiler_wl='-Wl,'
19213      lt_prog_compiler_can_build_shared=no
19214      ;;
19215
19216    uts4*)
19217      lt_prog_compiler_pic='-pic'
19218      lt_prog_compiler_static='-Bstatic'
19219      ;;
19220
19221    *)
19222      lt_prog_compiler_can_build_shared=no
19223      ;;
19224    esac
19225  fi
19226
19227case $host_os in
19228  # For platforms that do not support PIC, -DPIC is meaningless:
19229  *djgpp*)
19230    lt_prog_compiler_pic=
19231    ;;
19232  *)
19233    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19234    ;;
19235esac
19236
19237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19238printf %s "checking for $compiler option to produce PIC... " >&6; }
19239if test ${lt_cv_prog_compiler_pic+y}
19240then :
19241  printf %s "(cached) " >&6
19242else case e in #(
19243  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
19244esac
19245fi
19246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
19247printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
19248lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
19249
19250#
19251# Check to make sure the PIC flag actually works.
19252#
19253if test -n "$lt_prog_compiler_pic"; then
19254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19255printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
19256if test ${lt_cv_prog_compiler_pic_works+y}
19257then :
19258  printf %s "(cached) " >&6
19259else case e in #(
19260  e) lt_cv_prog_compiler_pic_works=no
19261   ac_outfile=conftest.$ac_objext
19262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19263   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
19264   # Insert the option either (1) after the last *FLAGS variable, or
19265   # (2) before a word containing "conftest.", or (3) at the end.
19266   # Note that $ac_compile itself does not contain backslashes and begins
19267   # with a dollar sign (not a hyphen), so the echo should work correctly.
19268   # The option is referenced via a variable to avoid confusing sed.
19269   lt_compile=`echo "$ac_compile" | $SED \
19270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19272   -e 's:$: $lt_compiler_flag:'`
19273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19274   (eval "$lt_compile" 2>conftest.err)
19275   ac_status=$?
19276   cat conftest.err >&5
19277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278   if (exit $ac_status) && test -s "$ac_outfile"; then
19279     # The compiler can only warn and ignore the option if not recognized
19280     # So say no if there are warnings other than the usual output.
19281     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19282     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19283     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19284       lt_cv_prog_compiler_pic_works=yes
19285     fi
19286   fi
19287   $RM conftest*
19288 ;;
19289esac
19290fi
19291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
19292printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
19293
19294if test yes = "$lt_cv_prog_compiler_pic_works"; then
19295    case $lt_prog_compiler_pic in
19296     "" | " "*) ;;
19297     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19298     esac
19299else
19300    lt_prog_compiler_pic=
19301     lt_prog_compiler_can_build_shared=no
19302fi
19303
19304fi
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316#
19317# Check to make sure the static flag actually works.
19318#
19319wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
19320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19321printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19322if test ${lt_cv_prog_compiler_static_works+y}
19323then :
19324  printf %s "(cached) " >&6
19325else case e in #(
19326  e) lt_cv_prog_compiler_static_works=no
19327   save_LDFLAGS=$LDFLAGS
19328   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19329   echo "$lt_simple_link_test_code" > conftest.$ac_ext
19330   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19331     # The linker can only warn and ignore the option if not recognized
19332     # So say no if there are warnings
19333     if test -s conftest.err; then
19334       # Append any errors to the config.log.
19335       cat conftest.err 1>&5
19336       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19337       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19338       if diff conftest.exp conftest.er2 >/dev/null; then
19339         lt_cv_prog_compiler_static_works=yes
19340       fi
19341     else
19342       lt_cv_prog_compiler_static_works=yes
19343     fi
19344   fi
19345   $RM -r conftest*
19346   LDFLAGS=$save_LDFLAGS
19347 ;;
19348esac
19349fi
19350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
19351printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
19352
19353if test yes = "$lt_cv_prog_compiler_static_works"; then
19354    :
19355else
19356    lt_prog_compiler_static=
19357fi
19358
19359
19360
19361
19362
19363
19364
19365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19366printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19367if test ${lt_cv_prog_compiler_c_o+y}
19368then :
19369  printf %s "(cached) " >&6
19370else case e in #(
19371  e) lt_cv_prog_compiler_c_o=no
19372   $RM -r conftest 2>/dev/null
19373   mkdir conftest
19374   cd conftest
19375   mkdir out
19376   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19377
19378   lt_compiler_flag="-o out/conftest2.$ac_objext"
19379   # Insert the option either (1) after the last *FLAGS variable, or
19380   # (2) before a word containing "conftest.", or (3) at the end.
19381   # Note that $ac_compile itself does not contain backslashes and begins
19382   # with a dollar sign (not a hyphen), so the echo should work correctly.
19383   lt_compile=`echo "$ac_compile" | $SED \
19384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19386   -e 's:$: $lt_compiler_flag:'`
19387   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19388   (eval "$lt_compile" 2>out/conftest.err)
19389   ac_status=$?
19390   cat out/conftest.err >&5
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19393   then
19394     # The compiler can only warn and ignore the option if not recognized
19395     # So say no if there are warnings
19396     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19397     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19398     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19399       lt_cv_prog_compiler_c_o=yes
19400     fi
19401   fi
19402   chmod u+w . 2>&5
19403   $RM conftest*
19404   # SGI C++ compiler will create directory out/ii_files/ for
19405   # template instantiation
19406   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19407   $RM out/* && rmdir out
19408   cd ..
19409   $RM -r conftest
19410   $RM conftest*
19411 ;;
19412esac
19413fi
19414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19415printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
19416
19417
19418
19419
19420
19421
19422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19423printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19424if test ${lt_cv_prog_compiler_c_o+y}
19425then :
19426  printf %s "(cached) " >&6
19427else case e in #(
19428  e) lt_cv_prog_compiler_c_o=no
19429   $RM -r conftest 2>/dev/null
19430   mkdir conftest
19431   cd conftest
19432   mkdir out
19433   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19434
19435   lt_compiler_flag="-o out/conftest2.$ac_objext"
19436   # Insert the option either (1) after the last *FLAGS variable, or
19437   # (2) before a word containing "conftest.", or (3) at the end.
19438   # Note that $ac_compile itself does not contain backslashes and begins
19439   # with a dollar sign (not a hyphen), so the echo should work correctly.
19440   lt_compile=`echo "$ac_compile" | $SED \
19441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19443   -e 's:$: $lt_compiler_flag:'`
19444   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19445   (eval "$lt_compile" 2>out/conftest.err)
19446   ac_status=$?
19447   cat out/conftest.err >&5
19448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19450   then
19451     # The compiler can only warn and ignore the option if not recognized
19452     # So say no if there are warnings
19453     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19454     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19455     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19456       lt_cv_prog_compiler_c_o=yes
19457     fi
19458   fi
19459   chmod u+w . 2>&5
19460   $RM conftest*
19461   # SGI C++ compiler will create directory out/ii_files/ for
19462   # template instantiation
19463   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19464   $RM out/* && rmdir out
19465   cd ..
19466   $RM -r conftest
19467   $RM conftest*
19468 ;;
19469esac
19470fi
19471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
19472printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
19473
19474
19475
19476
19477hard_links=nottested
19478if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
19479  # do not overwrite the value of need_locks provided by the user
19480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19481printf %s "checking if we can lock with hard links... " >&6; }
19482  hard_links=yes
19483  $RM conftest*
19484  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19485  touch conftest.a
19486  ln conftest.a conftest.b 2>&5 || hard_links=no
19487  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19489printf "%s\n" "$hard_links" >&6; }
19490  if test no = "$hard_links"; then
19491    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19492printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19493    need_locks=warn
19494  fi
19495else
19496  need_locks=no
19497fi
19498
19499
19500
19501
19502
19503
19504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19505printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19506
19507  runpath_var=
19508  allow_undefined_flag=
19509  always_export_symbols=no
19510  archive_cmds=
19511  archive_expsym_cmds=
19512  compiler_needs_object=no
19513  enable_shared_with_static_runtimes=no
19514  export_dynamic_flag_spec=
19515  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19516  hardcode_automatic=no
19517  hardcode_direct=no
19518  hardcode_direct_absolute=no
19519  hardcode_libdir_flag_spec=
19520  hardcode_libdir_separator=
19521  hardcode_minus_L=no
19522  hardcode_shlibpath_var=unsupported
19523  inherit_rpath=no
19524  link_all_deplibs=unknown
19525  module_cmds=
19526  module_expsym_cmds=
19527  old_archive_from_new_cmds=
19528  old_archive_from_expsyms_cmds=
19529  thread_safe_flag_spec=
19530  whole_archive_flag_spec=
19531  # include_expsyms should be a list of space-separated symbols to be *always*
19532  # included in the symbol list
19533  include_expsyms=
19534  # exclude_expsyms can be an extended regexp of symbols to exclude
19535  # it will be wrapped by ' (' and ')$', so one must not match beginning or
19536  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
19537  # as well as any symbol that contains 'd'.
19538  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19539  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19540  # platforms (ab)use it in PIC code, but their linkers get confused if
19541  # the symbol is explicitly referenced.  Since portable code cannot
19542  # rely on this symbol name, it's probably fine to never include it in
19543  # preloaded symbol tables.
19544  # Exclude shared library initialization/finalization symbols.
19545  extract_expsyms_cmds=
19546
19547  case $host_os in
19548  cygwin* | mingw* | windows* | pw32* | cegcc*)
19549    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
19550    # When not using gcc, we currently assume that we are using
19551    # Microsoft Visual C++ or Intel C++ Compiler.
19552    if test yes != "$GCC"; then
19553      with_gnu_ld=no
19554    fi
19555    ;;
19556  interix*)
19557    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
19558    with_gnu_ld=yes
19559    ;;
19560  esac
19561
19562  ld_shlibs=yes
19563
19564  # On some targets, GNU ld is compatible enough with the native linker
19565  # that we're better off using the native interface for both.
19566  lt_use_gnu_ld_interface=no
19567  if test yes = "$with_gnu_ld"; then
19568    case $host_os in
19569      aix*)
19570	# The AIX port of GNU ld has always aspired to compatibility
19571	# with the native linker.  However, as the warning in the GNU ld
19572	# block says, versions before 2.19.5* couldn't really create working
19573	# shared libraries, regardless of the interface used.
19574	case `$LD -v 2>&1` in
19575	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
19576	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
19577	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
19578	  *)
19579	    lt_use_gnu_ld_interface=yes
19580	    ;;
19581	esac
19582	;;
19583      *)
19584	lt_use_gnu_ld_interface=yes
19585	;;
19586    esac
19587  fi
19588
19589  if test yes = "$lt_use_gnu_ld_interface"; then
19590    # If archive_cmds runs LD, not CC, wlarc should be empty
19591    wlarc='$wl'
19592
19593    # Set some defaults for GNU ld with shared library support. These
19594    # are reset later if shared libraries are not supported. Putting them
19595    # here allows them to be overridden if necessary.
19596    runpath_var=LD_RUN_PATH
19597    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19598    export_dynamic_flag_spec='$wl--export-dynamic'
19599    # ancient GNU ld didn't support --whole-archive et. al.
19600    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
19601      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19602    else
19603      whole_archive_flag_spec=
19604    fi
19605    supports_anon_versioning=no
19606    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
19607      *GNU\ gold*) supports_anon_versioning=yes ;;
19608      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19609      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19610      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19611      *\ 2.11.*) ;; # other 2.11 versions
19612      *) supports_anon_versioning=yes ;;
19613    esac
19614
19615    # See if GNU ld supports shared libraries.
19616    case $host_os in
19617    aix[3-9]*)
19618      # On AIX/PPC, the GNU linker is very broken
19619      if test ia64 != "$host_cpu"; then
19620	ld_shlibs=no
19621	cat <<_LT_EOF 1>&2
19622
19623*** Warning: the GNU linker, at least up to release 2.19, is reported
19624*** to be unable to reliably create shared libraries on AIX.
19625*** Therefore, libtool is disabling shared libraries support.  If you
19626*** really care for shared libraries, you may want to install binutils
19627*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
19628*** You will then need to restart the configuration process.
19629
19630_LT_EOF
19631      fi
19632      ;;
19633
19634    amigaos*)
19635      case $host_cpu in
19636      powerpc)
19637            # see comment about AmigaOS4 .so support
19638            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19639            archive_expsym_cmds=''
19640        ;;
19641      m68k)
19642            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)'
19643            hardcode_libdir_flag_spec='-L$libdir'
19644            hardcode_minus_L=yes
19645        ;;
19646      esac
19647      ;;
19648
19649    beos*)
19650      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19651	allow_undefined_flag=unsupported
19652	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19653	# support --undefined.  This deserves some investigation.  FIXME
19654	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19655      else
19656	ld_shlibs=no
19657      fi
19658      ;;
19659
19660    cygwin* | mingw* | windows* | pw32* | cegcc*)
19661      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19662      # as there is no search path for DLLs.
19663      hardcode_libdir_flag_spec='-L$libdir'
19664      export_dynamic_flag_spec='$wl--export-all-symbols'
19665      allow_undefined_flag=unsupported
19666      always_export_symbols=no
19667      enable_shared_with_static_runtimes=yes
19668      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'
19669      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19670      file_list_spec='@'
19671
19672      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19673        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19674	# If the export-symbols file already is a .def file, use it as
19675	# is; otherwise, prepend EXPORTS...
19676	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19677          cp $export_symbols $output_objdir/$soname.def;
19678        else
19679          echo EXPORTS > $output_objdir/$soname.def;
19680          cat $export_symbols >> $output_objdir/$soname.def;
19681        fi~
19682        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19683      else
19684	ld_shlibs=no
19685      fi
19686      ;;
19687
19688    haiku*)
19689      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19690      link_all_deplibs=no
19691      ;;
19692
19693    os2*)
19694      hardcode_libdir_flag_spec='-L$libdir'
19695      hardcode_minus_L=yes
19696      allow_undefined_flag=unsupported
19697      shrext_cmds=.dll
19698      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19699	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19700	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19701	$ECHO EXPORTS >> $output_objdir/$libname.def~
19702	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19703	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19704	emximp -o $lib $output_objdir/$libname.def'
19705      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19706	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19707	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19708	$ECHO EXPORTS >> $output_objdir/$libname.def~
19709	prefix_cmds="$SED"~
19710	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19711	  prefix_cmds="$prefix_cmds -e 1d";
19712	fi~
19713	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19714	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19715	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19716	emximp -o $lib $output_objdir/$libname.def'
19717      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19718      enable_shared_with_static_runtimes=yes
19719      file_list_spec='@'
19720      ;;
19721
19722    interix[3-9]*)
19723      hardcode_direct=no
19724      hardcode_shlibpath_var=no
19725      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
19726      export_dynamic_flag_spec='$wl-E'
19727      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19728      # Instead, shared libraries are loaded at an image base (0x10000000 by
19729      # default) and relocated if they conflict, which is a slow very memory
19730      # consuming and fragmenting process.  To avoid this, we pick a random,
19731      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19732      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19733      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19734      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'
19735      ;;
19736
19737    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
19738      tmp_diet=no
19739      if test linux-dietlibc = "$host_os"; then
19740	case $cc_basename in
19741	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
19742	esac
19743      fi
19744      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
19745	 && test no = "$tmp_diet"
19746      then
19747	tmp_addflag=' $pic_flag'
19748	tmp_sharedflag='-shared'
19749	case $cc_basename,$host_cpu in
19750        pgcc*)				# Portland Group C compiler
19751	  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'
19752	  tmp_addflag=' $pic_flag'
19753	  ;;
19754	pgf77* | pgf90* | pgf95* | pgfortran*)
19755					# Portland Group f77 and f90 compilers
19756	  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'
19757	  tmp_addflag=' $pic_flag -Mnomain' ;;
19758	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
19759	  tmp_addflag=' -i_dynamic' ;;
19760	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19761	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19762	ifc* | ifort*)			# Intel Fortran compiler
19763	  tmp_addflag=' -nofor_main' ;;
19764	lf95*)				# Lahey Fortran 8.1
19765	  whole_archive_flag_spec=
19766	  tmp_sharedflag='--shared' ;;
19767        nagfor*)                        # NAGFOR 5.3
19768          tmp_sharedflag='-Wl,-shared' ;;
19769	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
19770	  tmp_sharedflag='-qmkshrobj'
19771	  tmp_addflag= ;;
19772	nvcc*)	# Cuda Compiler Driver 2.2
19773	  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'
19774	  compiler_needs_object=yes
19775	  ;;
19776	esac
19777	case `$CC -V 2>&1 | $SED 5q` in
19778	*Sun\ C*)			# Sun C 5.9
19779	  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'
19780	  compiler_needs_object=yes
19781	  tmp_sharedflag='-G' ;;
19782	*Sun\ F*)			# Sun Fortran 8.3
19783	  tmp_sharedflag='-G' ;;
19784	esac
19785	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19786
19787        if test yes = "$supports_anon_versioning"; then
19788          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19789            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19790            echo "local: *; };" >> $output_objdir/$libname.ver~
19791            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
19792        fi
19793
19794	case $cc_basename in
19795	tcc*)
19796	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19797	  export_dynamic_flag_spec='-rdynamic'
19798	  ;;
19799	xlf* | bgf* | bgxlf* | mpixlf*)
19800	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
19801	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
19802	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19803	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
19804	  if test yes = "$supports_anon_versioning"; then
19805	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
19806              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19807              echo "local: *; };" >> $output_objdir/$libname.ver~
19808              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
19809	  fi
19810	  ;;
19811	esac
19812      else
19813        ld_shlibs=no
19814      fi
19815      ;;
19816
19817    *-mlibc)
19818	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19819	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19820      ;;
19821
19822    netbsd* | netbsdelf*-gnu)
19823      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19824	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19825	wlarc=
19826      else
19827	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19828	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19829      fi
19830      ;;
19831
19832    solaris*)
19833      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
19834	ld_shlibs=no
19835	cat <<_LT_EOF 1>&2
19836
19837*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19838*** create shared libraries on Solaris systems.  Therefore, libtool
19839*** is disabling shared libraries support.  We urge you to upgrade GNU
19840*** binutils to release 2.9.1 or newer.  Another option is to modify
19841*** your PATH or compiler configuration so that the native linker is
19842*** used, and then restart.
19843
19844_LT_EOF
19845      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19846	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19847	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19848      else
19849	ld_shlibs=no
19850      fi
19851      ;;
19852
19853    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19854      case `$LD -v 2>&1` in
19855        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19856	ld_shlibs=no
19857	cat <<_LT_EOF 1>&2
19858
19859*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
19860*** reliably create shared libraries on SCO systems.  Therefore, libtool
19861*** is disabling shared libraries support.  We urge you to upgrade GNU
19862*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19863*** your PATH or compiler configuration so that the native linker is
19864*** used, and then restart.
19865
19866_LT_EOF
19867	;;
19868	*)
19869	  # For security reasons, it is highly recommended that you always
19870	  # use absolute paths for naming shared libraries, and exclude the
19871	  # DT_RUNPATH tag from executables and libraries.  But doing so
19872	  # requires that you compile everything twice, which is a pain.
19873	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19874	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
19875	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19876	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19877	  else
19878	    ld_shlibs=no
19879	  fi
19880	;;
19881      esac
19882      ;;
19883
19884    sunos4*)
19885      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19886      wlarc=
19887      hardcode_direct=yes
19888      hardcode_shlibpath_var=no
19889      ;;
19890
19891    *)
19892      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19893	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19894	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
19895      else
19896	ld_shlibs=no
19897      fi
19898      ;;
19899    esac
19900
19901    if test no = "$ld_shlibs"; then
19902      runpath_var=
19903      hardcode_libdir_flag_spec=
19904      export_dynamic_flag_spec=
19905      whole_archive_flag_spec=
19906    fi
19907  else
19908    # PORTME fill in a description of your system's linker (not GNU ld)
19909    case $host_os in
19910    aix3*)
19911      allow_undefined_flag=unsupported
19912      always_export_symbols=yes
19913      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'
19914      # Note: this linker hardcodes the directories in LIBPATH if there
19915      # are no directories specified by -L.
19916      hardcode_minus_L=yes
19917      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
19918	# Neither direct hardcoding nor static linking is supported with a
19919	# broken collect2.
19920	hardcode_direct=unsupported
19921      fi
19922      ;;
19923
19924    aix[4-9]*)
19925      if test ia64 = "$host_cpu"; then
19926	# On IA64, the linker does run time linking by default, so we don't
19927	# have to do anything special.
19928	aix_use_runtimelinking=no
19929	exp_sym_flag='-Bexport'
19930	no_entry_flag=
19931      else
19932	# If we're using GNU nm, then we don't want the "-C" option.
19933	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
19934	# Without the "-l" option, or with the "-B" option, AIX nm treats
19935	# weak defined symbols like other global defined symbols, whereas
19936	# GNU nm marks them as "W".
19937	# While the 'weak' keyword is ignored in the Export File, we need
19938	# it in the Import File for the 'aix-soname' feature, so we have
19939	# to replace the "-B" option with "-P" for AIX nm.
19940	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19941	  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'
19942	else
19943	  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 == "L") || (\$ 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'
19944	fi
19945	aix_use_runtimelinking=no
19946
19947	# Test if we are trying to use run time linking or normal
19948	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19949	# have runtime linking enabled, and use it for executables.
19950	# For shared libraries, we enable/disable runtime linking
19951	# depending on the kind of the shared library created -
19952	# when "with_aix_soname,aix_use_runtimelinking" is:
19953	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19954	# "aix,yes"  lib.so          shared, rtl:yes, for executables
19955	#            lib.a           static archive
19956	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
19957	#            lib.a(lib.so.V) shared, rtl:no,  for executables
19958	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19959	#            lib.a(lib.so.V) shared, rtl:no
19960	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19961	#            lib.a           static archive
19962	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19963	  for ld_flag in $LDFLAGS; do
19964	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
19965	    aix_use_runtimelinking=yes
19966	    break
19967	  fi
19968	  done
19969	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19970	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
19971	    # so we don't have lib.a shared libs to link our executables.
19972	    # We have to force runtime linking in this case.
19973	    aix_use_runtimelinking=yes
19974	    LDFLAGS="$LDFLAGS -Wl,-brtl"
19975	  fi
19976	  ;;
19977	esac
19978
19979	exp_sym_flag='-bexport'
19980	no_entry_flag='-bnoentry'
19981      fi
19982
19983      # When large executables or shared objects are built, AIX ld can
19984      # have problems creating the table of contents.  If linking a library
19985      # or program results in "error TOC overflow" add -mminimal-toc to
19986      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19987      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19988
19989      archive_cmds=''
19990      hardcode_direct=yes
19991      hardcode_direct_absolute=yes
19992      hardcode_libdir_separator=':'
19993      link_all_deplibs=yes
19994      file_list_spec='$wl-f,'
19995      case $with_aix_soname,$aix_use_runtimelinking in
19996      aix,*) ;; # traditional, no import file
19997      svr4,* | *,yes) # use import file
19998	# The Import File defines what to hardcode.
19999	hardcode_direct=no
20000	hardcode_direct_absolute=no
20001	;;
20002      esac
20003
20004      if test yes = "$GCC"; then
20005	case $host_os in aix4.[012]|aix4.[012].*)
20006	# We only want to do this on AIX 4.2 and lower, the check
20007	# below for broken collect2 doesn't work under 4.3+
20008	  collect2name=`$CC -print-prog-name=collect2`
20009	  if test -f "$collect2name" &&
20010	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20011	  then
20012	  # We have reworked collect2
20013	  :
20014	  else
20015	  # We have old collect2
20016	  hardcode_direct=unsupported
20017	  # It fails to find uninstalled libraries when the uninstalled
20018	  # path is not listed in the libpath.  Setting hardcode_minus_L
20019	  # to unsupported forces relinking
20020	  hardcode_minus_L=yes
20021	  hardcode_libdir_flag_spec='-L$libdir'
20022	  hardcode_libdir_separator=
20023	  fi
20024	  ;;
20025	esac
20026	shared_flag='-shared'
20027	if test yes = "$aix_use_runtimelinking"; then
20028	  shared_flag="$shared_flag "'$wl-G'
20029	fi
20030	# Need to ensure runtime linking is disabled for the traditional
20031	# shared library, or the linker may eventually find shared libraries
20032	# /with/ Import File - we do not want to mix them.
20033	shared_flag_aix='-shared'
20034	shared_flag_svr4='-shared $wl-G'
20035      else
20036	# not using gcc
20037	if test ia64 = "$host_cpu"; then
20038	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20039	# chokes on -Wl,-G. The following line is correct:
20040	  shared_flag='-G'
20041	else
20042	  if test yes = "$aix_use_runtimelinking"; then
20043	    shared_flag='$wl-G'
20044	  else
20045	    shared_flag='$wl-bM:SRE'
20046	  fi
20047	  shared_flag_aix='$wl-bM:SRE'
20048	  shared_flag_svr4='$wl-G'
20049	fi
20050      fi
20051
20052      export_dynamic_flag_spec='$wl-bexpall'
20053      # It seems that -bexpall does not export symbols beginning with
20054      # underscore (_), so it is better to generate a list of symbols to export.
20055      always_export_symbols=yes
20056      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20057	# Warning - without using the other runtime loading flags (-brtl),
20058	# -berok will link without error, but may produce a broken library.
20059	allow_undefined_flag='-berok'
20060        # Determine the default libpath from the value encoded in an
20061        # empty executable.
20062        if test set = "${lt_cv_aix_libpath+set}"; then
20063  aix_libpath=$lt_cv_aix_libpath
20064else
20065  if test ${lt_cv_aix_libpath_+y}
20066then :
20067  printf %s "(cached) " >&6
20068else case e in #(
20069  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070/* end confdefs.h.  */
20071
20072int
20073main (void)
20074{
20075
20076  ;
20077  return 0;
20078}
20079_ACEOF
20080if ac_fn_c_try_link "$LINENO"
20081then :
20082
20083  lt_aix_libpath_sed='
20084      /Import File Strings/,/^$/ {
20085	  /^0/ {
20086	      s/^0  *\([^ ]*\) *$/\1/
20087	      p
20088	  }
20089      }'
20090  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20091  # Check for a 64-bit object if we didn't find anything.
20092  if test -z "$lt_cv_aix_libpath_"; then
20093    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20094  fi
20095fi
20096rm -f core conftest.err conftest.$ac_objext conftest.beam \
20097    conftest$ac_exeext conftest.$ac_ext
20098  if test -z "$lt_cv_aix_libpath_"; then
20099    lt_cv_aix_libpath_=/usr/lib:/lib
20100  fi
20101   ;;
20102esac
20103fi
20104
20105  aix_libpath=$lt_cv_aix_libpath_
20106fi
20107
20108        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20109        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
20110      else
20111	if test ia64 = "$host_cpu"; then
20112	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
20113	  allow_undefined_flag="-z nodefs"
20114	  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"
20115	else
20116	 # Determine the default libpath from the value encoded in an
20117	 # empty executable.
20118	 if test set = "${lt_cv_aix_libpath+set}"; then
20119  aix_libpath=$lt_cv_aix_libpath
20120else
20121  if test ${lt_cv_aix_libpath_+y}
20122then :
20123  printf %s "(cached) " >&6
20124else case e in #(
20125  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126/* end confdefs.h.  */
20127
20128int
20129main (void)
20130{
20131
20132  ;
20133  return 0;
20134}
20135_ACEOF
20136if ac_fn_c_try_link "$LINENO"
20137then :
20138
20139  lt_aix_libpath_sed='
20140      /Import File Strings/,/^$/ {
20141	  /^0/ {
20142	      s/^0  *\([^ ]*\) *$/\1/
20143	      p
20144	  }
20145      }'
20146  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20147  # Check for a 64-bit object if we didn't find anything.
20148  if test -z "$lt_cv_aix_libpath_"; then
20149    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20150  fi
20151fi
20152rm -f core conftest.err conftest.$ac_objext conftest.beam \
20153    conftest$ac_exeext conftest.$ac_ext
20154  if test -z "$lt_cv_aix_libpath_"; then
20155    lt_cv_aix_libpath_=/usr/lib:/lib
20156  fi
20157   ;;
20158esac
20159fi
20160
20161  aix_libpath=$lt_cv_aix_libpath_
20162fi
20163
20164	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
20165	  # Warning - without using the other run time loading flags,
20166	  # -berok will link without error, but may produce a broken library.
20167	  no_undefined_flag=' $wl-bernotok'
20168	  allow_undefined_flag=' $wl-berok'
20169	  if test yes = "$with_gnu_ld"; then
20170	    # We only use this code for GNU lds that support --whole-archive.
20171	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
20172	  else
20173	    # Exported symbols can be pulled into shared objects from archives
20174	    whole_archive_flag_spec='$convenience'
20175	  fi
20176	  archive_cmds_need_lc=yes
20177	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20178	  # -brtl affects multiple linker settings, -berok does not and is overridden later
20179	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20180	  if test svr4 != "$with_aix_soname"; then
20181	    # This is similar to how AIX traditionally builds its shared libraries.
20182	    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'
20183	  fi
20184	  if test aix != "$with_aix_soname"; then
20185	    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'
20186	  else
20187	    # used by -dlpreopen to get the symbols
20188	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
20189	  fi
20190	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
20191	fi
20192      fi
20193      ;;
20194
20195    amigaos*)
20196      case $host_cpu in
20197      powerpc)
20198            # see comment about AmigaOS4 .so support
20199            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20200            archive_expsym_cmds=''
20201        ;;
20202      m68k)
20203            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)'
20204            hardcode_libdir_flag_spec='-L$libdir'
20205            hardcode_minus_L=yes
20206        ;;
20207      esac
20208      ;;
20209
20210    bsdi[45]*)
20211      export_dynamic_flag_spec=-rdynamic
20212      ;;
20213
20214    cygwin* | mingw* | windows* | pw32* | cegcc*)
20215      # When not using gcc, we currently assume that we are using
20216      # Microsoft Visual C++ or Intel C++ Compiler.
20217      # hardcode_libdir_flag_spec is actually meaningless, as there is
20218      # no search path for DLLs.
20219      case $cc_basename in
20220      cl* | icl*)
20221	# Native MSVC or ICC
20222	hardcode_libdir_flag_spec=' '
20223	allow_undefined_flag=unsupported
20224	always_export_symbols=yes
20225	file_list_spec='@'
20226	# Tell ltmain to make .lib files, not .a files.
20227	libext=lib
20228	# Tell ltmain to make .dll files, not .so files.
20229	shrext_cmds=.dll
20230	# FIXME: Setting linknames here is a bad hack.
20231	archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20232	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20233            cp "$export_symbols" "$output_objdir/$soname.def";
20234            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20235          else
20236            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20237          fi~
20238          $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20239          linknames='
20240	# The linker will not automatically build a static lib if we build a DLL.
20241	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
20242	enable_shared_with_static_runtimes=yes
20243	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20244	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20245	# Don't use ranlib
20246	old_postinstall_cmds='chmod 644 $oldlib'
20247	postlink_cmds='lt_outputfile="@OUTPUT@"~
20248          lt_tool_outputfile="@TOOL_OUTPUT@"~
20249          case $lt_outputfile in
20250            *.exe|*.EXE) ;;
20251            *)
20252              lt_outputfile=$lt_outputfile.exe
20253              lt_tool_outputfile=$lt_tool_outputfile.exe
20254              ;;
20255          esac~
20256          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20257            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20258            $RM "$lt_outputfile.manifest";
20259          fi'
20260	;;
20261      *)
20262	# Assume MSVC and ICC wrapper
20263	hardcode_libdir_flag_spec=' '
20264	allow_undefined_flag=unsupported
20265	# Tell ltmain to make .lib files, not .a files.
20266	libext=lib
20267	# Tell ltmain to make .dll files, not .so files.
20268	shrext_cmds=.dll
20269	# FIXME: Setting linknames here is a bad hack.
20270	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
20271	# The linker will automatically build a .lib file if we build a DLL.
20272	old_archive_from_new_cmds='true'
20273	# FIXME: Should let the user specify the lib program.
20274	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
20275	enable_shared_with_static_runtimes=yes
20276	;;
20277      esac
20278      ;;
20279
20280    darwin* | rhapsody*)
20281
20282
20283  archive_cmds_need_lc=no
20284  hardcode_direct=no
20285  hardcode_automatic=yes
20286  hardcode_shlibpath_var=unsupported
20287  if test yes = "$lt_cv_ld_force_load"; then
20288    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\"`'
20289
20290  else
20291    whole_archive_flag_spec=''
20292  fi
20293  link_all_deplibs=yes
20294  allow_undefined_flag=$_lt_dar_allow_undefined
20295  case $cc_basename in
20296     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20297     *) _lt_dar_can_shared=$GCC ;;
20298  esac
20299  if test yes = "$_lt_dar_can_shared"; then
20300    output_verbose_link_cmd=func_echo_all
20301    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
20302    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20303    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"
20304    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"
20305
20306  else
20307  ld_shlibs=no
20308  fi
20309
20310      ;;
20311
20312    dgux*)
20313      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20314      hardcode_libdir_flag_spec='-L$libdir'
20315      hardcode_shlibpath_var=no
20316      ;;
20317
20318    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20319    # support.  Future versions do this automatically, but an explicit c++rt0.o
20320    # does not break anything, and helps significantly (at the cost of a little
20321    # extra space).
20322    freebsd2.2*)
20323      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20324      hardcode_libdir_flag_spec='-R$libdir'
20325      hardcode_direct=yes
20326      hardcode_shlibpath_var=no
20327      ;;
20328
20329    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20330    freebsd2.*)
20331      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20332      hardcode_direct=yes
20333      hardcode_minus_L=yes
20334      hardcode_shlibpath_var=no
20335      ;;
20336
20337    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20338    freebsd* | dragonfly* | midnightbsd*)
20339      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20340      hardcode_libdir_flag_spec='-R$libdir'
20341      hardcode_direct=yes
20342      hardcode_shlibpath_var=no
20343      ;;
20344
20345    hpux9*)
20346      if test yes = "$GCC"; then
20347	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'
20348      else
20349	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'
20350      fi
20351      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20352      hardcode_libdir_separator=:
20353      hardcode_direct=yes
20354
20355      # hardcode_minus_L: Not really in the search PATH,
20356      # but as the default location of the library.
20357      hardcode_minus_L=yes
20358      export_dynamic_flag_spec='$wl-E'
20359      ;;
20360
20361    hpux10*)
20362      if test yes,no = "$GCC,$with_gnu_ld"; then
20363	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20364      else
20365	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20366      fi
20367      if test no = "$with_gnu_ld"; then
20368	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20369	hardcode_libdir_separator=:
20370	hardcode_direct=yes
20371	hardcode_direct_absolute=yes
20372	export_dynamic_flag_spec='$wl-E'
20373	# hardcode_minus_L: Not really in the search PATH,
20374	# but as the default location of the library.
20375	hardcode_minus_L=yes
20376      fi
20377      ;;
20378
20379    hpux11*)
20380      if test yes,no = "$GCC,$with_gnu_ld"; then
20381	case $host_cpu in
20382	hppa*64*)
20383	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20384	  ;;
20385	ia64*)
20386	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20387	  ;;
20388	*)
20389	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20390	  ;;
20391	esac
20392      else
20393	case $host_cpu in
20394	hppa*64*)
20395	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20396	  ;;
20397	ia64*)
20398	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20399	  ;;
20400	*)
20401
20402	  # Older versions of the 11.00 compiler do not understand -b yet
20403	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
20404	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
20405printf %s "checking if $CC understands -b... " >&6; }
20406if test ${lt_cv_prog_compiler__b+y}
20407then :
20408  printf %s "(cached) " >&6
20409else case e in #(
20410  e) lt_cv_prog_compiler__b=no
20411   save_LDFLAGS=$LDFLAGS
20412   LDFLAGS="$LDFLAGS -b"
20413   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20414   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20415     # The linker can only warn and ignore the option if not recognized
20416     # So say no if there are warnings
20417     if test -s conftest.err; then
20418       # Append any errors to the config.log.
20419       cat conftest.err 1>&5
20420       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20421       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20422       if diff conftest.exp conftest.er2 >/dev/null; then
20423         lt_cv_prog_compiler__b=yes
20424       fi
20425     else
20426       lt_cv_prog_compiler__b=yes
20427     fi
20428   fi
20429   $RM -r conftest*
20430   LDFLAGS=$save_LDFLAGS
20431 ;;
20432esac
20433fi
20434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
20435printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
20436
20437if test yes = "$lt_cv_prog_compiler__b"; then
20438    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20439else
20440    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20441fi
20442
20443	  ;;
20444	esac
20445      fi
20446      if test no = "$with_gnu_ld"; then
20447	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
20448	hardcode_libdir_separator=:
20449
20450	case $host_cpu in
20451	hppa*64*|ia64*)
20452	  hardcode_direct=no
20453	  hardcode_shlibpath_var=no
20454	  ;;
20455	*)
20456	  hardcode_direct=yes
20457	  hardcode_direct_absolute=yes
20458	  export_dynamic_flag_spec='$wl-E'
20459
20460	  # hardcode_minus_L: Not really in the search PATH,
20461	  # but as the default location of the library.
20462	  hardcode_minus_L=yes
20463	  ;;
20464	esac
20465      fi
20466      ;;
20467
20468    irix5* | irix6* | nonstopux*)
20469      if test yes = "$GCC"; then
20470	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'
20471	# Try to use the -exported_symbol ld option, if it does not
20472	# work, assume that -exports_file does not work either and
20473	# implicitly export all symbols.
20474	# This should be the same for all languages, so no per-tag cache variable.
20475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
20476printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
20477if test ${lt_cv_irix_exported_symbol+y}
20478then :
20479  printf %s "(cached) " >&6
20480else case e in #(
20481  e) save_LDFLAGS=$LDFLAGS
20482	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
20483	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20484/* end confdefs.h.  */
20485int foo (void) { return 0; }
20486_ACEOF
20487if ac_fn_c_try_link "$LINENO"
20488then :
20489  lt_cv_irix_exported_symbol=yes
20490else case e in #(
20491  e) lt_cv_irix_exported_symbol=no ;;
20492esac
20493fi
20494rm -f core conftest.err conftest.$ac_objext conftest.beam \
20495    conftest$ac_exeext conftest.$ac_ext
20496           LDFLAGS=$save_LDFLAGS ;;
20497esac
20498fi
20499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
20500printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
20501	if test yes = "$lt_cv_irix_exported_symbol"; then
20502          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'
20503	fi
20504      else
20505	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'
20506	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'
20507      fi
20508      archive_cmds_need_lc='no'
20509      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20510      hardcode_libdir_separator=:
20511      inherit_rpath=yes
20512      link_all_deplibs=yes
20513      ;;
20514
20515    linux*)
20516      case $cc_basename in
20517      tcc*)
20518	# Fabrice Bellard et al's Tiny C Compiler
20519	ld_shlibs=yes
20520	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20521	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20522	;;
20523      esac
20524      ;;
20525
20526    *-mlibc)
20527      ;;
20528
20529    netbsd* | netbsdelf*-gnu)
20530      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20531	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20532      else
20533	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20534      fi
20535      hardcode_libdir_flag_spec='-R$libdir'
20536      hardcode_direct=yes
20537      hardcode_shlibpath_var=no
20538      ;;
20539
20540    newsos6)
20541      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20542      hardcode_direct=yes
20543      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20544      hardcode_libdir_separator=:
20545      hardcode_shlibpath_var=no
20546      ;;
20547
20548    *nto* | *qnx*)
20549      ;;
20550
20551    openbsd*)
20552      if test -f /usr/libexec/ld.so; then
20553	hardcode_direct=yes
20554	hardcode_shlibpath_var=no
20555	hardcode_direct_absolute=yes
20556	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20557	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20558	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
20559	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20560	  export_dynamic_flag_spec='$wl-E'
20561	else
20562	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20563	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
20564	fi
20565      else
20566	ld_shlibs=no
20567      fi
20568      ;;
20569
20570    os2*)
20571      hardcode_libdir_flag_spec='-L$libdir'
20572      hardcode_minus_L=yes
20573      allow_undefined_flag=unsupported
20574      shrext_cmds=.dll
20575      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20576	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20577	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20578	$ECHO EXPORTS >> $output_objdir/$libname.def~
20579	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20580	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20581	emximp -o $lib $output_objdir/$libname.def'
20582      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20583	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20584	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20585	$ECHO EXPORTS >> $output_objdir/$libname.def~
20586	prefix_cmds="$SED"~
20587	if test EXPORTS = "`$SED 1q $export_symbols`"; then
20588	  prefix_cmds="$prefix_cmds -e 1d";
20589	fi~
20590	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20591	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20592	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20593	emximp -o $lib $output_objdir/$libname.def'
20594      old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20595      enable_shared_with_static_runtimes=yes
20596      file_list_spec='@'
20597      ;;
20598
20599    osf3*)
20600      if test yes = "$GCC"; then
20601	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20602	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'
20603      else
20604	allow_undefined_flag=' -expect_unresolved \*'
20605	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'
20606      fi
20607      archive_cmds_need_lc='no'
20608      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20609      hardcode_libdir_separator=:
20610      ;;
20611
20612    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20613      if test yes = "$GCC"; then
20614	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
20615	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'
20616	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
20617      else
20618	allow_undefined_flag=' -expect_unresolved \*'
20619	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'
20620	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~
20621          $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'
20622
20623	# Both c and cxx compiler support -rpath directly
20624	hardcode_libdir_flag_spec='-rpath $libdir'
20625      fi
20626      archive_cmds_need_lc='no'
20627      hardcode_libdir_separator=:
20628      ;;
20629
20630    serenity*)
20631      ;;
20632
20633    solaris*)
20634      no_undefined_flag=' -z defs'
20635      if test yes = "$GCC"; then
20636	wlarc='$wl'
20637	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
20638	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20639          $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'
20640      else
20641	case `$CC -V 2>&1` in
20642	*"Compilers 5.0"*)
20643	  wlarc=''
20644	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
20645	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20646            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
20647	  ;;
20648	*)
20649	  wlarc='$wl'
20650	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
20651	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20652            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
20653	  ;;
20654	esac
20655      fi
20656      hardcode_libdir_flag_spec='-R$libdir'
20657      hardcode_shlibpath_var=no
20658      case $host_os in
20659      solaris2.[0-5] | solaris2.[0-5].*) ;;
20660      *)
20661	# The compiler driver will combine and reorder linker options,
20662	# but understands '-z linker_flag'.  GCC discards it without '$wl',
20663	# but is careful enough not to reorder.
20664	# Supported since Solaris 2.6 (maybe 2.5.1?)
20665	if test yes = "$GCC"; then
20666	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20667	else
20668	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
20669	fi
20670	;;
20671      esac
20672      link_all_deplibs=yes
20673      ;;
20674
20675    sunos4*)
20676      if test sequent = "$host_vendor"; then
20677	# Use $CC to link under sequent, because it throws in some extra .o
20678	# files that make .init and .fini sections work.
20679	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20680      else
20681	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20682      fi
20683      hardcode_libdir_flag_spec='-L$libdir'
20684      hardcode_direct=yes
20685      hardcode_minus_L=yes
20686      hardcode_shlibpath_var=no
20687      ;;
20688
20689    sysv4)
20690      case $host_vendor in
20691	sni)
20692	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20693	  hardcode_direct=yes # is this really true???
20694	;;
20695	siemens)
20696	  ## LD is ld it makes a PLAMLIB
20697	  ## CC just makes a GrossModule.
20698	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20699	  reload_cmds='$CC -r -o $output$reload_objs'
20700	  hardcode_direct=no
20701        ;;
20702	motorola)
20703	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20704	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
20705	;;
20706      esac
20707      runpath_var='LD_RUN_PATH'
20708      hardcode_shlibpath_var=no
20709      ;;
20710
20711    sysv4.3*)
20712      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20713      hardcode_shlibpath_var=no
20714      export_dynamic_flag_spec='-Bexport'
20715      ;;
20716
20717    sysv4*MP*)
20718      if test -d /usr/nec; then
20719	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20720	hardcode_shlibpath_var=no
20721	runpath_var=LD_RUN_PATH
20722	hardcode_runpath_var=yes
20723	ld_shlibs=yes
20724      fi
20725      ;;
20726
20727    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20728      no_undefined_flag='$wl-z,text'
20729      archive_cmds_need_lc=no
20730      hardcode_shlibpath_var=no
20731      runpath_var='LD_RUN_PATH'
20732
20733      if test yes = "$GCC"; then
20734	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20735	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20736      else
20737	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20738	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20739      fi
20740      ;;
20741
20742    sysv5* | sco3.2v5* | sco5v6*)
20743      # Note: We CANNOT use -z defs as we might desire, because we do not
20744      # link with -lc, and that would cause any symbols used from libc to
20745      # always be unresolved, which means just about no library would
20746      # ever link correctly.  If we're not using GNU ld we use -z text
20747      # though, which does catch some bad symbols but isn't as heavy-handed
20748      # as -z defs.
20749      no_undefined_flag='$wl-z,text'
20750      allow_undefined_flag='$wl-z,nodefs'
20751      archive_cmds_need_lc=no
20752      hardcode_shlibpath_var=no
20753      hardcode_libdir_flag_spec='$wl-R,$libdir'
20754      hardcode_libdir_separator=':'
20755      link_all_deplibs=yes
20756      export_dynamic_flag_spec='$wl-Bexport'
20757      runpath_var='LD_RUN_PATH'
20758
20759      if test yes = "$GCC"; then
20760	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20761	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20762      else
20763	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20764	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20765      fi
20766      ;;
20767
20768    uts4*)
20769      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20770      hardcode_libdir_flag_spec='-L$libdir'
20771      hardcode_shlibpath_var=no
20772      ;;
20773
20774    *)
20775      ld_shlibs=no
20776      ;;
20777    esac
20778
20779    if test sni = "$host_vendor"; then
20780      case $host in
20781      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20782	export_dynamic_flag_spec='$wl-Blargedynsym'
20783	;;
20784      esac
20785    fi
20786  fi
20787
20788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
20789printf "%s\n" "$ld_shlibs" >&6; }
20790test no = "$ld_shlibs" && can_build_shared=no
20791
20792with_gnu_ld=$with_gnu_ld
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808#
20809# Do we need to explicitly link libc?
20810#
20811case "x$archive_cmds_need_lc" in
20812x|xyes)
20813  # Assume -lc should be added
20814  archive_cmds_need_lc=yes
20815
20816  if test yes,yes = "$GCC,$enable_shared"; then
20817    case $archive_cmds in
20818    *'~'*)
20819      # FIXME: we may have to deal with multi-command sequences.
20820      ;;
20821    '$CC '*)
20822      # Test whether the compiler implicitly links with -lc since on some
20823      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20824      # to ld, don't add -lc before -lgcc.
20825      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20826printf %s "checking whether -lc should be explicitly linked in... " >&6; }
20827if test ${lt_cv_archive_cmds_need_lc+y}
20828then :
20829  printf %s "(cached) " >&6
20830else case e in #(
20831  e) $RM conftest*
20832	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20833
20834	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20835  (eval $ac_compile) 2>&5
20836  ac_status=$?
20837  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20838  test $ac_status = 0; } 2>conftest.err; then
20839	  soname=conftest
20840	  lib=conftest
20841	  libobjs=conftest.$ac_objext
20842	  deplibs=
20843	  wl=$lt_prog_compiler_wl
20844	  pic_flag=$lt_prog_compiler_pic
20845	  compiler_flags=-v
20846	  linker_flags=-v
20847	  verstring=
20848	  output_objdir=.
20849	  libname=conftest
20850	  lt_save_allow_undefined_flag=$allow_undefined_flag
20851	  allow_undefined_flag=
20852	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20853  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20854  ac_status=$?
20855  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20856  test $ac_status = 0; }
20857	  then
20858	    lt_cv_archive_cmds_need_lc=no
20859	  else
20860	    lt_cv_archive_cmds_need_lc=yes
20861	  fi
20862	  allow_undefined_flag=$lt_save_allow_undefined_flag
20863	else
20864	  cat conftest.err 1>&5
20865	fi
20866	$RM conftest*
20867	 ;;
20868esac
20869fi
20870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
20871printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
20872      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
20873      ;;
20874    esac
20875  fi
20876  ;;
20877esac
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21031printf %s "checking dynamic linker characteristics... " >&6; }
21032
21033if test yes = "$GCC"; then
21034  case $host_os in
21035    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
21036    *) lt_awk_arg='/^libraries:/' ;;
21037  esac
21038  case $host_os in
21039    mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
21040    *) lt_sed_strip_eq='s|=/|/|g' ;;
21041  esac
21042  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21043  case $lt_search_path_spec in
21044  *\;*)
21045    # if the path contains ";" then we assume it to be the separator
21046    # otherwise default to the standard path separator (i.e. ":") - it is
21047    # assumed that no part of a normal pathname contains ";" but that should
21048    # okay in the real world where ";" in dirpaths is itself problematic.
21049    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
21050    ;;
21051  *)
21052    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
21053    ;;
21054  esac
21055  # Ok, now we have the path, separated by spaces, we can step through it
21056  # and add multilib dir if necessary...
21057  lt_tmp_lt_search_path_spec=
21058  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
21059  # ...but if some path component already ends with the multilib dir we assume
21060  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
21061  case "$lt_multi_os_dir; $lt_search_path_spec " in
21062  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
21063    lt_multi_os_dir=
21064    ;;
21065  esac
21066  for lt_sys_path in $lt_search_path_spec; do
21067    if test -d "$lt_sys_path$lt_multi_os_dir"; then
21068      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
21069    elif test -n "$lt_multi_os_dir"; then
21070      test -d "$lt_sys_path" && \
21071	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
21072    fi
21073  done
21074  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
21075BEGIN {RS = " "; FS = "/|\n";} {
21076  lt_foo = "";
21077  lt_count = 0;
21078  for (lt_i = NF; lt_i > 0; lt_i--) {
21079    if ($lt_i != "" && $lt_i != ".") {
21080      if ($lt_i == "..") {
21081        lt_count++;
21082      } else {
21083        if (lt_count == 0) {
21084          lt_foo = "/" $lt_i lt_foo;
21085        } else {
21086          lt_count--;
21087        }
21088      }
21089    }
21090  }
21091  if (lt_foo != "") { lt_freq[lt_foo]++; }
21092  if (lt_freq[lt_foo] == 1) { print lt_foo; }
21093}'`
21094  # AWK program above erroneously prepends '/' to C:/dos/paths
21095  # for these hosts.
21096  case $host_os in
21097    mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
21098      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
21099  esac
21100  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
21101else
21102  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21103fi
21104library_names_spec=
21105libname_spec='lib$name'
21106soname_spec=
21107shrext_cmds=.so
21108postinstall_cmds=
21109postuninstall_cmds=
21110finish_cmds=
21111finish_eval=
21112shlibpath_var=
21113shlibpath_overrides_runpath=unknown
21114version_type=none
21115dynamic_linker="$host_os ld.so"
21116sys_lib_dlsearch_path_spec="/lib /usr/lib"
21117need_lib_prefix=unknown
21118hardcode_into_libs=no
21119
21120# when you set need_version to no, make sure it does not cause -set_version
21121# flags to be left without arguments
21122need_version=unknown
21123
21124
21125
21126case $host_os in
21127aix3*)
21128  version_type=linux # correct to gnu/linux during the next big refactor
21129  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21130  shlibpath_var=LIBPATH
21131
21132  # AIX 3 has no versioning support, so we append a major version to the name.
21133  soname_spec='$libname$release$shared_ext$major'
21134  ;;
21135
21136aix[4-9]*)
21137  version_type=linux # correct to gnu/linux during the next big refactor
21138  need_lib_prefix=no
21139  need_version=no
21140  hardcode_into_libs=yes
21141  if test ia64 = "$host_cpu"; then
21142    # AIX 5 supports IA64
21143    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21144    shlibpath_var=LD_LIBRARY_PATH
21145  else
21146    # With GCC up to 2.95.x, collect2 would create an import file
21147    # for dependence libraries.  The import file would start with
21148    # the line '#! .'.  This would cause the generated library to
21149    # depend on '.', always an invalid library.  This was fixed in
21150    # development snapshots of GCC prior to 3.0.
21151    case $host_os in
21152      aix4 | aix4.[01] | aix4.[01].*)
21153      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21154	   echo ' yes '
21155	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21156	:
21157      else
21158	can_build_shared=no
21159      fi
21160      ;;
21161    esac
21162    # Using Import Files as archive members, it is possible to support
21163    # filename-based versioning of shared library archives on AIX. While
21164    # this would work for both with and without runtime linking, it will
21165    # prevent static linking of such archives. So we do filename-based
21166    # shared library versioning with .so extension only, which is used
21167    # when both runtime linking and shared linking is enabled.
21168    # Unfortunately, runtime linking may impact performance, so we do
21169    # not want this to be the default eventually. Also, we use the
21170    # versioned .so libs for executables only if there is the -brtl
21171    # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
21172    # To allow for filename-based versioning support, we need to create
21173    # libNAME.so.V as an archive file, containing:
21174    # *) an Import File, referring to the versioned filename of the
21175    #    archive as well as the shared archive member, telling the
21176    #    bitwidth (32 or 64) of that shared object, and providing the
21177    #    list of exported symbols of that shared object, eventually
21178    #    decorated with the 'weak' keyword
21179    # *) the shared object with the F_LOADONLY flag set, to really avoid
21180    #    it being seen by the linker.
21181    # At run time we better use the real file rather than another symlink,
21182    # but for link time we create the symlink libNAME.so -> libNAME.so.V
21183
21184    case $with_aix_soname,$aix_use_runtimelinking in
21185    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21186    # soname into executable. Probably we can add versioning support to
21187    # collect2, so additional links can be useful in future.
21188    aix,yes) # traditional libtool
21189      dynamic_linker='AIX unversionable lib.so'
21190      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21191      # instead of lib<name>.a to let people know that these are not
21192      # typical AIX shared libraries.
21193      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21194      ;;
21195    aix,no) # traditional AIX only
21196      dynamic_linker='AIX lib.a(lib.so.V)'
21197      # We preserve .a as extension for shared libraries through AIX4.2
21198      # and later when we are not doing run time linking.
21199      library_names_spec='$libname$release.a $libname.a'
21200      soname_spec='$libname$release$shared_ext$major'
21201      ;;
21202    svr4,*) # full svr4 only
21203      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21204      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21205      # We do not specify a path in Import Files, so LIBPATH fires.
21206      shlibpath_overrides_runpath=yes
21207      ;;
21208    *,yes) # both, prefer svr4
21209      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21210      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21211      # unpreferred sharedlib libNAME.a needs extra handling
21212      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"'
21213      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"'
21214      # We do not specify a path in Import Files, so LIBPATH fires.
21215      shlibpath_overrides_runpath=yes
21216      ;;
21217    *,no) # both, prefer aix
21218      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21219      library_names_spec='$libname$release.a $libname.a'
21220      soname_spec='$libname$release$shared_ext$major'
21221      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21222      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)'
21223      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"'
21224      ;;
21225    esac
21226    shlibpath_var=LIBPATH
21227  fi
21228  ;;
21229
21230amigaos*)
21231  case $host_cpu in
21232  powerpc)
21233    # Since July 2007 AmigaOS4 officially supports .so libraries.
21234    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21235    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21236    ;;
21237  m68k)
21238    library_names_spec='$libname.ixlibrary $libname.a'
21239    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21240    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'
21241    ;;
21242  esac
21243  ;;
21244
21245beos*)
21246  library_names_spec='$libname$shared_ext'
21247  dynamic_linker="$host_os ld.so"
21248  shlibpath_var=LIBRARY_PATH
21249  ;;
21250
21251bsdi[45]*)
21252  version_type=linux # correct to gnu/linux during the next big refactor
21253  need_version=no
21254  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21255  soname_spec='$libname$release$shared_ext$major'
21256  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21257  shlibpath_var=LD_LIBRARY_PATH
21258  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21259  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21260  # the default ld.so.conf also contains /usr/contrib/lib and
21261  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21262  # libtool to hard-code these into programs
21263  ;;
21264
21265cygwin* | mingw* | windows* | pw32* | cegcc*)
21266  version_type=windows
21267  shrext_cmds=.dll
21268  need_version=no
21269  need_lib_prefix=no
21270
21271  case $GCC,$cc_basename in
21272  yes,*)
21273    # gcc
21274    library_names_spec='$libname.dll.a'
21275    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21276    # If user builds GCC with multilib enabled,
21277    # it should just install on $(libdir)
21278    # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
21279    if test xyes = x"$multilib"; then
21280      postinstall_cmds='base_file=`basename \$file`~
21281        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21282        dldir=$destdir/`dirname \$dlpath`~
21283        $install_prog $dir/$dlname $destdir/$dlname~
21284        chmod a+x $destdir/$dlname~
21285        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21286          eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
21287        fi'
21288    else
21289      postinstall_cmds='base_file=`basename \$file`~
21290        dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21291        dldir=$destdir/`dirname \$dlpath`~
21292        test -d \$dldir || mkdir -p \$dldir~
21293        $install_prog $dir/$dlname \$dldir/$dlname~
21294        chmod a+x \$dldir/$dlname~
21295        if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21296          eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21297        fi'
21298    fi
21299    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21300      dlpath=$dir/\$dldll~
21301       $RM \$dlpath'
21302    shlibpath_overrides_runpath=yes
21303
21304    case $host_os in
21305    cygwin*)
21306      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21307      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21308
21309      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
21310      ;;
21311    mingw* | windows* | cegcc*)
21312      # MinGW DLLs use traditional 'lib' prefix
21313      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21314      ;;
21315    pw32*)
21316      # pw32 DLLs use 'pw' prefix rather than 'lib'
21317      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21318      ;;
21319    esac
21320    dynamic_linker='Win32 ld.exe'
21321    ;;
21322
21323  *,cl* | *,icl*)
21324    # Native MSVC or ICC
21325    libname_spec='$name'
21326    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21327    library_names_spec='$libname.dll.lib'
21328
21329    case $build_os in
21330    mingw* | windows*)
21331      sys_lib_search_path_spec=
21332      lt_save_ifs=$IFS
21333      IFS=';'
21334      for lt_path in $LIB
21335      do
21336        IFS=$lt_save_ifs
21337        # Let DOS variable expansion print the short 8.3 style file name.
21338        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21339        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21340      done
21341      IFS=$lt_save_ifs
21342      # Convert to MSYS style.
21343      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21344      ;;
21345    cygwin*)
21346      # Convert to unix form, then to dos form, then back to unix form
21347      # but this time dos style (no spaces!) so that the unix form looks
21348      # like /cygdrive/c/PROGRA~1:/cygdr...
21349      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21350      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21351      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21352      ;;
21353    *)
21354      sys_lib_search_path_spec=$LIB
21355      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21356        # It is most probably a Windows format PATH.
21357        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21358      else
21359        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21360      fi
21361      # FIXME: find the short name or the path components, as spaces are
21362      # common. (e.g. "Program Files" -> "PROGRA~1")
21363      ;;
21364    esac
21365
21366    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21367    postinstall_cmds='base_file=`basename \$file`~
21368      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21369      dldir=$destdir/`dirname \$dlpath`~
21370      test -d \$dldir || mkdir -p \$dldir~
21371      $install_prog $dir/$dlname \$dldir/$dlname'
21372    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21373      dlpath=$dir/\$dldll~
21374       $RM \$dlpath'
21375    shlibpath_overrides_runpath=yes
21376    dynamic_linker='Win32 link.exe'
21377    ;;
21378
21379  *)
21380    # Assume MSVC and ICC wrapper
21381    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
21382    dynamic_linker='Win32 ld.exe'
21383    ;;
21384  esac
21385  # FIXME: first we should search . and the directory the executable is in
21386  shlibpath_var=PATH
21387  ;;
21388
21389darwin* | rhapsody*)
21390  dynamic_linker="$host_os dyld"
21391  version_type=darwin
21392  need_lib_prefix=no
21393  need_version=no
21394  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21395  soname_spec='$libname$release$major$shared_ext'
21396  shlibpath_overrides_runpath=yes
21397  shlibpath_var=DYLD_LIBRARY_PATH
21398  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21399
21400  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
21401  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21402  ;;
21403
21404dgux*)
21405  version_type=linux # correct to gnu/linux during the next big refactor
21406  need_lib_prefix=no
21407  need_version=no
21408  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21409  soname_spec='$libname$release$shared_ext$major'
21410  shlibpath_var=LD_LIBRARY_PATH
21411  ;;
21412
21413freebsd* | dragonfly* | midnightbsd*)
21414  # DragonFly does not have aout.  When/if they implement a new
21415  # versioning mechanism, adjust this.
21416  if test -x /usr/bin/objformat; then
21417    objformat=`/usr/bin/objformat`
21418  else
21419    case $host_os in
21420    freebsd[23].*) objformat=aout ;;
21421    *) objformat=elf ;;
21422    esac
21423  fi
21424  version_type=freebsd-$objformat
21425  case $version_type in
21426    freebsd-elf*)
21427      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21428      soname_spec='$libname$release$shared_ext$major'
21429      need_version=no
21430      need_lib_prefix=no
21431      ;;
21432    freebsd-*)
21433      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21434      need_version=yes
21435      ;;
21436  esac
21437  case $host_cpu in
21438    powerpc64)
21439      # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
21440      # binaries.  See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
21441      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21442/* end confdefs.h.  */
21443int test_pointer_size[sizeof (void *) - 5];
21444
21445_ACEOF
21446if ac_fn_c_try_compile "$LINENO"
21447then :
21448  shlibpath_var=LD_LIBRARY_PATH
21449else case e in #(
21450  e) shlibpath_var=LD_32_LIBRARY_PATH ;;
21451esac
21452fi
21453rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21454      ;;
21455    *)
21456      shlibpath_var=LD_LIBRARY_PATH
21457      ;;
21458  esac
21459  case $host_os in
21460  freebsd2.*)
21461    shlibpath_overrides_runpath=yes
21462    ;;
21463  freebsd3.[01]* | freebsdelf3.[01]*)
21464    shlibpath_overrides_runpath=yes
21465    hardcode_into_libs=yes
21466    ;;
21467  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21468  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21469    shlibpath_overrides_runpath=no
21470    hardcode_into_libs=yes
21471    ;;
21472  *) # from 4.6 on, and DragonFly
21473    shlibpath_overrides_runpath=yes
21474    hardcode_into_libs=yes
21475    ;;
21476  esac
21477  ;;
21478
21479haiku*)
21480  version_type=linux # correct to gnu/linux during the next big refactor
21481  need_lib_prefix=no
21482  need_version=no
21483  dynamic_linker="$host_os runtime_loader"
21484  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21485  soname_spec='$libname$release$shared_ext$major'
21486  shlibpath_var=LIBRARY_PATH
21487  shlibpath_overrides_runpath=no
21488  sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
21489  sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
21490  hardcode_into_libs=no
21491  ;;
21492
21493hpux9* | hpux10* | hpux11*)
21494  # Give a soname corresponding to the major version so that dld.sl refuses to
21495  # link against other versions.
21496  version_type=sunos
21497  need_lib_prefix=no
21498  need_version=no
21499  case $host_cpu in
21500  ia64*)
21501    shrext_cmds='.so'
21502    hardcode_into_libs=yes
21503    dynamic_linker="$host_os dld.so"
21504    shlibpath_var=LD_LIBRARY_PATH
21505    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21506    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21507    soname_spec='$libname$release$shared_ext$major'
21508    if test 32 = "$HPUX_IA64_MODE"; then
21509      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21510      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
21511    else
21512      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21513      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
21514    fi
21515    ;;
21516  hppa*64*)
21517    shrext_cmds='.sl'
21518    hardcode_into_libs=yes
21519    dynamic_linker="$host_os dld.sl"
21520    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21521    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21522    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21523    soname_spec='$libname$release$shared_ext$major'
21524    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21525    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21526    ;;
21527  *)
21528    shrext_cmds='.sl'
21529    dynamic_linker="$host_os dld.sl"
21530    shlibpath_var=SHLIB_PATH
21531    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21532    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21533    soname_spec='$libname$release$shared_ext$major'
21534    ;;
21535  esac
21536  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21537  postinstall_cmds='chmod 555 $lib'
21538  # or fails outright, so override atomically:
21539  install_override_mode=555
21540  ;;
21541
21542interix[3-9]*)
21543  version_type=linux # correct to gnu/linux during the next big refactor
21544  need_lib_prefix=no
21545  need_version=no
21546  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21547  soname_spec='$libname$release$shared_ext$major'
21548  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21549  shlibpath_var=LD_LIBRARY_PATH
21550  shlibpath_overrides_runpath=no
21551  hardcode_into_libs=yes
21552  ;;
21553
21554irix5* | irix6* | nonstopux*)
21555  case $host_os in
21556    nonstopux*) version_type=nonstopux ;;
21557    *)
21558	if test yes = "$lt_cv_prog_gnu_ld"; then
21559		version_type=linux # correct to gnu/linux during the next big refactor
21560	else
21561		version_type=irix
21562	fi ;;
21563  esac
21564  need_lib_prefix=no
21565  need_version=no
21566  soname_spec='$libname$release$shared_ext$major'
21567  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
21568  case $host_os in
21569  irix5* | nonstopux*)
21570    libsuff= shlibsuff=
21571    ;;
21572  *)
21573    case $LD in # libtool.m4 will add one of these switches to LD
21574    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21575      libsuff= shlibsuff= libmagic=32-bit;;
21576    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21577      libsuff=32 shlibsuff=N32 libmagic=N32;;
21578    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21579      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21580    *) libsuff= shlibsuff= libmagic=never-match;;
21581    esac
21582    ;;
21583  esac
21584  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21585  shlibpath_overrides_runpath=no
21586  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21587  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
21588  hardcode_into_libs=yes
21589  ;;
21590
21591# No shared lib support for Linux oldld, aout, or coff.
21592linux*oldld* | linux*aout* | linux*coff*)
21593  dynamic_linker=no
21594  ;;
21595
21596linux*android*)
21597  version_type=none # Android doesn't support versioned libraries.
21598  need_lib_prefix=no
21599  need_version=no
21600  library_names_spec='$libname$release$shared_ext $libname$shared_ext'
21601  soname_spec='$libname$release$shared_ext'
21602  finish_cmds=
21603  shlibpath_var=LD_LIBRARY_PATH
21604  shlibpath_overrides_runpath=yes
21605
21606  # This implies no fast_install, which is unacceptable.
21607  # Some rework will be needed to allow for fast_install
21608  # before this can be enabled.
21609  hardcode_into_libs=yes
21610
21611  dynamic_linker='Android linker'
21612  # -rpath works at least for libraries that are not overridden by
21613  # libraries installed in system locations.
21614  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
21615  ;;
21616
21617# This must be glibc/ELF.
21618linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21619  version_type=linux # correct to gnu/linux during the next big refactor
21620  need_lib_prefix=no
21621  need_version=no
21622  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21623  soname_spec='$libname$release$shared_ext$major'
21624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21625  shlibpath_var=LD_LIBRARY_PATH
21626  shlibpath_overrides_runpath=no
21627
21628  # Some binutils ld are patched to set DT_RUNPATH
21629  if test ${lt_cv_shlibpath_overrides_runpath+y}
21630then :
21631  printf %s "(cached) " >&6
21632else case e in #(
21633  e) lt_cv_shlibpath_overrides_runpath=no
21634    save_LDFLAGS=$LDFLAGS
21635    save_libdir=$libdir
21636    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
21637	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
21638    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639/* end confdefs.h.  */
21640
21641int
21642main (void)
21643{
21644
21645  ;
21646  return 0;
21647}
21648_ACEOF
21649if ac_fn_c_try_link "$LINENO"
21650then :
21651  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
21652then :
21653  lt_cv_shlibpath_overrides_runpath=yes
21654fi
21655fi
21656rm -f core conftest.err conftest.$ac_objext conftest.beam \
21657    conftest$ac_exeext conftest.$ac_ext
21658    LDFLAGS=$save_LDFLAGS
21659    libdir=$save_libdir
21660     ;;
21661esac
21662fi
21663
21664  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
21665
21666  # This implies no fast_install, which is unacceptable.
21667  # Some rework will be needed to allow for fast_install
21668  # before this can be enabled.
21669  hardcode_into_libs=yes
21670
21671  # Add ABI-specific directories to the system library path.
21672  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21673
21674  # Ideally, we could use ldconfig to report *all* directories which are
21675  # searched for libraries, however this is still not possible.  Aside from not
21676  # being certain /sbin/ldconfig is available, command
21677  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21678  # even though it is searched at run-time.  Try to do the best guess by
21679  # appending ld.so.conf contents (and includes) to the search path.
21680  if test -f /etc/ld.so.conf; then
21681    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' ' '`
21682    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21683  fi
21684
21685  # We used to test for /lib/ld.so.1 and disable shared libraries on
21686  # powerpc, because MkLinux only supported shared libraries with the
21687  # GNU dynamic linker.  Since this was broken with cross compilers,
21688  # most powerpc-linux boxes support dynamic linking these days and
21689  # people can always --disable-shared, the test was removed, and we
21690  # assume the GNU/Linux dynamic linker is in use.
21691  dynamic_linker='GNU/Linux ld.so'
21692  ;;
21693
21694netbsdelf*-gnu)
21695  version_type=linux
21696  need_lib_prefix=no
21697  need_version=no
21698  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21699  soname_spec='$libname$release$shared_ext$major'
21700  shlibpath_var=LD_LIBRARY_PATH
21701  shlibpath_overrides_runpath=no
21702  hardcode_into_libs=yes
21703  dynamic_linker='NetBSD ld.elf_so'
21704  ;;
21705
21706netbsd*)
21707  version_type=sunos
21708  need_lib_prefix=no
21709  need_version=no
21710  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21711    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21712    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21713    dynamic_linker='NetBSD (a.out) ld.so'
21714  else
21715    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21716    soname_spec='$libname$release$shared_ext$major'
21717    dynamic_linker='NetBSD ld.elf_so'
21718  fi
21719  shlibpath_var=LD_LIBRARY_PATH
21720  shlibpath_overrides_runpath=yes
21721  hardcode_into_libs=yes
21722  ;;
21723
21724*-mlibc)
21725  version_type=linux # correct to gnu/linux during the next big refactor
21726  need_lib_prefix=no
21727  need_version=no
21728  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21729  soname_spec='$libname$release$shared_ext$major'
21730  dynamic_linker='mlibc ld.so'
21731  shlibpath_var=LD_LIBRARY_PATH
21732  shlibpath_overrides_runpath=no
21733  hardcode_into_libs=yes
21734  ;;
21735
21736newsos6)
21737  version_type=linux # correct to gnu/linux during the next big refactor
21738  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21739  shlibpath_var=LD_LIBRARY_PATH
21740  shlibpath_overrides_runpath=yes
21741  ;;
21742
21743*nto* | *qnx*)
21744  version_type=qnx
21745  need_lib_prefix=no
21746  need_version=no
21747  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21748  soname_spec='$libname$release$shared_ext$major'
21749  shlibpath_var=LD_LIBRARY_PATH
21750  shlibpath_overrides_runpath=no
21751  hardcode_into_libs=yes
21752  dynamic_linker='ldqnx.so'
21753  ;;
21754
21755openbsd*)
21756  version_type=sunos
21757  sys_lib_dlsearch_path_spec=/usr/lib
21758  need_lib_prefix=no
21759  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21760    need_version=no
21761  else
21762    need_version=yes
21763  fi
21764  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21765  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21766  shlibpath_var=LD_LIBRARY_PATH
21767  shlibpath_overrides_runpath=yes
21768  ;;
21769
21770os2*)
21771  libname_spec='$name'
21772  version_type=windows
21773  shrext_cmds=.dll
21774  need_version=no
21775  need_lib_prefix=no
21776  # OS/2 can only load a DLL with a base name of 8 characters or less.
21777  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21778    v=$($ECHO $release$versuffix | tr -d .-);
21779    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21780    $ECHO $n$v`$shared_ext'
21781  library_names_spec='${libname}_dll.$libext'
21782  dynamic_linker='OS/2 ld.exe'
21783  shlibpath_var=BEGINLIBPATH
21784  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21785  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21786  postinstall_cmds='base_file=`basename \$file`~
21787    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21788    dldir=$destdir/`dirname \$dlpath`~
21789    test -d \$dldir || mkdir -p \$dldir~
21790    $install_prog $dir/$dlname \$dldir/$dlname~
21791    chmod a+x \$dldir/$dlname~
21792    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21793      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21794    fi'
21795  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21796    dlpath=$dir/\$dldll~
21797    $RM \$dlpath'
21798  ;;
21799
21800osf3* | osf4* | osf5*)
21801  version_type=osf
21802  need_lib_prefix=no
21803  need_version=no
21804  soname_spec='$libname$release$shared_ext$major'
21805  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21806  shlibpath_var=LD_LIBRARY_PATH
21807  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21808  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21809  ;;
21810
21811rdos*)
21812  dynamic_linker=no
21813  ;;
21814
21815serenity*)
21816  version_type=linux # correct to gnu/linux during the next big refactor
21817  need_lib_prefix=no
21818  need_version=no
21819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21820  soname_spec='$libname$release$shared_ext$major'
21821  shlibpath_var=LD_LIBRARY_PATH
21822  shlibpath_overrides_runpath=no
21823  dynamic_linker='SerenityOS LibELF'
21824  ;;
21825
21826solaris*)
21827  version_type=linux # correct to gnu/linux during the next big refactor
21828  need_lib_prefix=no
21829  need_version=no
21830  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21831  soname_spec='$libname$release$shared_ext$major'
21832  shlibpath_var=LD_LIBRARY_PATH
21833  shlibpath_overrides_runpath=yes
21834  hardcode_into_libs=yes
21835  # ldd complains unless libraries are executable
21836  postinstall_cmds='chmod +x $lib'
21837  ;;
21838
21839sunos4*)
21840  version_type=sunos
21841  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
21842  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21843  shlibpath_var=LD_LIBRARY_PATH
21844  shlibpath_overrides_runpath=yes
21845  if test yes = "$with_gnu_ld"; then
21846    need_lib_prefix=no
21847  fi
21848  need_version=yes
21849  ;;
21850
21851sysv4 | sysv4.3*)
21852  version_type=linux # correct to gnu/linux during the next big refactor
21853  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21854  soname_spec='$libname$release$shared_ext$major'
21855  shlibpath_var=LD_LIBRARY_PATH
21856  case $host_vendor in
21857    sni)
21858      shlibpath_overrides_runpath=no
21859      need_lib_prefix=no
21860      runpath_var=LD_RUN_PATH
21861      ;;
21862    siemens)
21863      need_lib_prefix=no
21864      ;;
21865    motorola)
21866      need_lib_prefix=no
21867      need_version=no
21868      shlibpath_overrides_runpath=no
21869      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21870      ;;
21871  esac
21872  ;;
21873
21874sysv4*MP*)
21875  if test -d /usr/nec; then
21876    version_type=linux # correct to gnu/linux during the next big refactor
21877    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21878    soname_spec='$libname$shared_ext.$major'
21879    shlibpath_var=LD_LIBRARY_PATH
21880  fi
21881  ;;
21882
21883sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21884  version_type=sco
21885  need_lib_prefix=no
21886  need_version=no
21887  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21888  soname_spec='$libname$release$shared_ext$major'
21889  shlibpath_var=LD_LIBRARY_PATH
21890  shlibpath_overrides_runpath=yes
21891  hardcode_into_libs=yes
21892  if test yes = "$with_gnu_ld"; then
21893    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21894  else
21895    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21896    case $host_os in
21897      sco3.2v5*)
21898        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21899	;;
21900    esac
21901  fi
21902  sys_lib_dlsearch_path_spec='/usr/lib'
21903  ;;
21904
21905tpf*)
21906  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21907  version_type=linux # correct to gnu/linux during the next big refactor
21908  need_lib_prefix=no
21909  need_version=no
21910  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21911  shlibpath_var=LD_LIBRARY_PATH
21912  shlibpath_overrides_runpath=no
21913  hardcode_into_libs=yes
21914  ;;
21915
21916uts4*)
21917  version_type=linux # correct to gnu/linux during the next big refactor
21918  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21919  soname_spec='$libname$release$shared_ext$major'
21920  shlibpath_var=LD_LIBRARY_PATH
21921  ;;
21922
21923emscripten*)
21924  version_type=none
21925  need_lib_prefix=no
21926  need_version=no
21927  library_names_spec='$libname$release$shared_ext'
21928  soname_spec='$libname$release$shared_ext'
21929  finish_cmds=
21930  dynamic_linker="Emscripten linker"
21931  lt_prog_compiler_wl=
21932lt_prog_compiler_pic=
21933lt_prog_compiler_static=
21934
21935
21936  if test yes = "$GCC"; then
21937    lt_prog_compiler_wl='-Wl,'
21938    lt_prog_compiler_static='-static'
21939
21940    case $host_os in
21941      aix*)
21942      # All AIX code is PIC.
21943      if test ia64 = "$host_cpu"; then
21944	# AIX 5 now supports IA64 processor
21945	lt_prog_compiler_static='-Bstatic'
21946      fi
21947      lt_prog_compiler_pic='-fPIC'
21948      ;;
21949
21950    amigaos*)
21951      case $host_cpu in
21952      powerpc)
21953            # see comment about AmigaOS4 .so support
21954            lt_prog_compiler_pic='-fPIC'
21955        ;;
21956      m68k)
21957            # FIXME: we need at least 68020 code to build shared libraries, but
21958            # adding the '-m68020' flag to GCC prevents building anything better,
21959            # like '-m68040'.
21960            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
21961        ;;
21962      esac
21963      ;;
21964
21965    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21966      # PIC is the default for these OSes.
21967      ;;
21968
21969    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
21970      # This hack is so that the source file can tell whether it is being
21971      # built for inclusion in a dll (and should export symbols for example).
21972      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21973      # (--disable-auto-import) libraries
21974      lt_prog_compiler_pic='-DDLL_EXPORT'
21975      case $host_os in
21976      os2*)
21977	lt_prog_compiler_static='$wl-static'
21978	;;
21979      esac
21980      ;;
21981
21982    darwin* | rhapsody*)
21983      # PIC is the default on this platform
21984      # Common symbols not allowed in MH_DYLIB files
21985      lt_prog_compiler_pic='-fno-common'
21986      ;;
21987
21988    haiku*)
21989      # PIC is the default for Haiku.
21990      # The "-static" flag exists, but is broken.
21991      lt_prog_compiler_static=
21992      ;;
21993
21994    hpux*)
21995      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21996      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21997      # sets the default TLS model and affects inlining.
21998      case $host_cpu in
21999      hppa*64*)
22000	# +Z the default
22001	;;
22002      *)
22003	lt_prog_compiler_pic='-fPIC'
22004	;;
22005      esac
22006      ;;
22007
22008    interix[3-9]*)
22009      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22010      # Instead, we relocate shared libraries at runtime.
22011      ;;
22012
22013    msdosdjgpp*)
22014      # Just because we use GCC doesn't mean we suddenly get shared libraries
22015      # on systems that don't support them.
22016      lt_prog_compiler_can_build_shared=no
22017      enable_shared=no
22018      ;;
22019
22020    *nto* | *qnx*)
22021      # QNX uses GNU C++, but need to define -shared option too, otherwise
22022      # it will coredump.
22023      lt_prog_compiler_pic='-fPIC -shared'
22024      ;;
22025
22026    sysv4*MP*)
22027      if test -d /usr/nec; then
22028	lt_prog_compiler_pic=-Kconform_pic
22029      fi
22030      ;;
22031
22032    *)
22033      lt_prog_compiler_pic='-fPIC'
22034      ;;
22035    esac
22036
22037    case $cc_basename in
22038    nvcc*) # Cuda Compiler Driver 2.2
22039      lt_prog_compiler_wl='-Xlinker '
22040      if test -n "$lt_prog_compiler_pic"; then
22041        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
22042      fi
22043      ;;
22044    esac
22045  else
22046    # PORTME Check for flag to pass linker flags through the system compiler.
22047    case $host_os in
22048    aix*)
22049      lt_prog_compiler_wl='-Wl,'
22050      if test ia64 = "$host_cpu"; then
22051	# AIX 5 now supports IA64 processor
22052	lt_prog_compiler_static='-Bstatic'
22053      else
22054	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
22055      fi
22056      ;;
22057
22058    darwin* | rhapsody*)
22059      # PIC is the default on this platform
22060      # Common symbols not allowed in MH_DYLIB files
22061      lt_prog_compiler_pic='-fno-common'
22062      case $cc_basename in
22063      nagfor*)
22064        # NAG Fortran compiler
22065        lt_prog_compiler_wl='-Wl,-Wl,,'
22066        lt_prog_compiler_pic='-PIC'
22067        lt_prog_compiler_static='-Bstatic'
22068        ;;
22069      esac
22070      ;;
22071
22072    mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
22073      # This hack is so that the source file can tell whether it is being
22074      # built for inclusion in a dll (and should export symbols for example).
22075      lt_prog_compiler_pic='-DDLL_EXPORT'
22076      case $host_os in
22077      os2*)
22078	lt_prog_compiler_static='$wl-static'
22079	;;
22080      esac
22081      ;;
22082
22083    hpux9* | hpux10* | hpux11*)
22084      lt_prog_compiler_wl='-Wl,'
22085      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22086      # not for PA HP-UX.
22087      case $host_cpu in
22088      hppa*64*|ia64*)
22089	# +Z the default
22090	;;
22091      *)
22092	lt_prog_compiler_pic='+Z'
22093	;;
22094      esac
22095      # Is there a better lt_prog_compiler_static that works with the bundled CC?
22096      lt_prog_compiler_static='$wl-a ${wl}archive'
22097      ;;
22098
22099    irix5* | irix6* | nonstopux*)
22100      lt_prog_compiler_wl='-Wl,'
22101      # PIC (with -KPIC) is the default.
22102      lt_prog_compiler_static='-non_shared'
22103      ;;
22104
22105    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22106      case $cc_basename in
22107      # old Intel for x86_64, which still supported -KPIC.
22108      ecc*)
22109	lt_prog_compiler_wl='-Wl,'
22110	lt_prog_compiler_pic='-KPIC'
22111	lt_prog_compiler_static='-static'
22112        ;;
22113      *flang* | ftn | f18* | f95*)
22114        # Flang compiler.
22115	lt_prog_compiler_wl='-Wl,'
22116	lt_prog_compiler_pic='-fPIC'
22117	lt_prog_compiler_static='-static'
22118        ;;
22119      # icc used to be incompatible with GCC.
22120      # ICC 10 doesn't accept -KPIC any more.
22121      icc* | ifort*)
22122	lt_prog_compiler_wl='-Wl,'
22123	lt_prog_compiler_pic='-fPIC'
22124	lt_prog_compiler_static='-static'
22125        ;;
22126      # Lahey Fortran 8.1.
22127      lf95*)
22128	lt_prog_compiler_wl='-Wl,'
22129	lt_prog_compiler_pic='--shared'
22130	lt_prog_compiler_static='--static'
22131	;;
22132      nagfor*)
22133	# NAG Fortran compiler
22134	lt_prog_compiler_wl='-Wl,-Wl,,'
22135	lt_prog_compiler_pic='-PIC'
22136	lt_prog_compiler_static='-Bstatic'
22137	;;
22138      tcc*)
22139	# Fabrice Bellard et al's Tiny C Compiler
22140	lt_prog_compiler_wl='-Wl,'
22141	lt_prog_compiler_pic='-fPIC'
22142	lt_prog_compiler_static='-static'
22143	;;
22144      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
22145        # Portland Group compilers (*not* the Pentium gcc compiler,
22146	# which looks to be a dead project)
22147	lt_prog_compiler_wl='-Wl,'
22148	lt_prog_compiler_pic='-fpic'
22149	lt_prog_compiler_static='-Bstatic'
22150        ;;
22151      ccc*)
22152        lt_prog_compiler_wl='-Wl,'
22153        # All Alpha code is PIC.
22154        lt_prog_compiler_static='-non_shared'
22155        ;;
22156      xl* | bgxl* | bgf* | mpixl*)
22157	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
22158	lt_prog_compiler_wl='-Wl,'
22159	lt_prog_compiler_pic='-qpic'
22160	lt_prog_compiler_static='-qstaticlink'
22161	;;
22162      *)
22163	case `$CC -V 2>&1 | $SED 5q` in
22164	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
22165	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
22166	  lt_prog_compiler_pic='-KPIC'
22167	  lt_prog_compiler_static='-Bstatic'
22168	  lt_prog_compiler_wl=''
22169	  ;;
22170	*Sun\ F* | *Sun*Fortran*)
22171	  lt_prog_compiler_pic='-KPIC'
22172	  lt_prog_compiler_static='-Bstatic'
22173	  lt_prog_compiler_wl='-Qoption ld '
22174	  ;;
22175	*Sun\ C*)
22176	  # Sun C 5.9
22177	  lt_prog_compiler_pic='-KPIC'
22178	  lt_prog_compiler_static='-Bstatic'
22179	  lt_prog_compiler_wl='-Wl,'
22180	  ;;
22181        *Intel*\ [CF]*Compiler*)
22182	  lt_prog_compiler_wl='-Wl,'
22183	  lt_prog_compiler_pic='-fPIC'
22184	  lt_prog_compiler_static='-static'
22185	  ;;
22186	*Portland\ Group*)
22187	  lt_prog_compiler_wl='-Wl,'
22188	  lt_prog_compiler_pic='-fpic'
22189	  lt_prog_compiler_static='-Bstatic'
22190	  ;;
22191	esac
22192	;;
22193      esac
22194      ;;
22195
22196    newsos6)
22197      lt_prog_compiler_pic='-KPIC'
22198      lt_prog_compiler_static='-Bstatic'
22199      ;;
22200
22201    *-mlibc)
22202      lt_prog_compiler_wl='-Wl,'
22203      lt_prog_compiler_pic='-fPIC'
22204      lt_prog_compiler_static='-static'
22205      ;;
22206
22207    *nto* | *qnx*)
22208      # QNX uses GNU C++, but need to define -shared option too, otherwise
22209      # it will coredump.
22210      lt_prog_compiler_pic='-fPIC -shared'
22211      ;;
22212
22213    osf3* | osf4* | osf5*)
22214      lt_prog_compiler_wl='-Wl,'
22215      # All OSF/1 code is PIC.
22216      lt_prog_compiler_static='-non_shared'
22217      ;;
22218
22219    rdos*)
22220      lt_prog_compiler_static='-non_shared'
22221      ;;
22222
22223    serenity*)
22224      ;;
22225
22226    solaris*)
22227      lt_prog_compiler_pic='-KPIC'
22228      lt_prog_compiler_static='-Bstatic'
22229      case $cc_basename in
22230      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
22231	lt_prog_compiler_wl='-Qoption ld ';;
22232      *)
22233	lt_prog_compiler_wl='-Wl,';;
22234      esac
22235      ;;
22236
22237    sunos4*)
22238      lt_prog_compiler_wl='-Qoption ld '
22239      lt_prog_compiler_pic='-PIC'
22240      lt_prog_compiler_static='-Bstatic'
22241      ;;
22242
22243    sysv4 | sysv4.2uw2* | sysv4.3*)
22244      lt_prog_compiler_wl='-Wl,'
22245      lt_prog_compiler_pic='-KPIC'
22246      lt_prog_compiler_static='-Bstatic'
22247      ;;
22248
22249    sysv4*MP*)
22250      if test -d /usr/nec; then
22251	lt_prog_compiler_pic='-Kconform_pic'
22252	lt_prog_compiler_static='-Bstatic'
22253      fi
22254      ;;
22255
22256    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22257      lt_prog_compiler_wl='-Wl,'
22258      lt_prog_compiler_pic='-KPIC'
22259      lt_prog_compiler_static='-Bstatic'
22260      ;;
22261
22262    unicos*)
22263      lt_prog_compiler_wl='-Wl,'
22264      lt_prog_compiler_can_build_shared=no
22265      ;;
22266
22267    uts4*)
22268      lt_prog_compiler_pic='-pic'
22269      lt_prog_compiler_static='-Bstatic'
22270      ;;
22271
22272    *)
22273      lt_prog_compiler_can_build_shared=no
22274      ;;
22275    esac
22276  fi
22277
22278case $host_os in
22279  # For platforms that do not support PIC, -DPIC is meaningless:
22280  *djgpp*)
22281    lt_prog_compiler_pic=
22282    ;;
22283  *)
22284    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
22285    ;;
22286esac
22287
22288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22289printf %s "checking for $compiler option to produce PIC... " >&6; }
22290if test ${lt_cv_prog_compiler_pic+y}
22291then :
22292  printf %s "(cached) " >&6
22293else case e in #(
22294  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
22295esac
22296fi
22297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
22298printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
22299lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
22300
22301#
22302# Check to make sure the PIC flag actually works.
22303#
22304if test -n "$lt_prog_compiler_pic"; then
22305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
22306printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22307if test ${lt_cv_prog_compiler_pic_works+y}
22308then :
22309  printf %s "(cached) " >&6
22310else case e in #(
22311  e) lt_cv_prog_compiler_pic_works=no
22312   ac_outfile=conftest.$ac_objext
22313   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22314   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
22315   # Insert the option either (1) after the last *FLAGS variable, or
22316   # (2) before a word containing "conftest.", or (3) at the end.
22317   # Note that $ac_compile itself does not contain backslashes and begins
22318   # with a dollar sign (not a hyphen), so the echo should work correctly.
22319   # The option is referenced via a variable to avoid confusing sed.
22320   lt_compile=`echo "$ac_compile" | $SED \
22321   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22322   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22323   -e 's:$: $lt_compiler_flag:'`
22324   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22325   (eval "$lt_compile" 2>conftest.err)
22326   ac_status=$?
22327   cat conftest.err >&5
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   if (exit $ac_status) && test -s "$ac_outfile"; then
22330     # The compiler can only warn and ignore the option if not recognized
22331     # So say no if there are warnings other than the usual output.
22332     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22333     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22334     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22335       lt_cv_prog_compiler_pic_works=yes
22336     fi
22337   fi
22338   $RM conftest*
22339 ;;
22340esac
22341fi
22342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
22343printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
22344
22345if test yes = "$lt_cv_prog_compiler_pic_works"; then
22346    case $lt_prog_compiler_pic in
22347     "" | " "*) ;;
22348     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
22349     esac
22350else
22351    lt_prog_compiler_pic=
22352     lt_prog_compiler_can_build_shared=no
22353fi
22354
22355fi
22356
22357
22358
22359
22360
22361#
22362# Check to make sure the static flag actually works.
22363#
22364wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
22365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22366printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22367if test ${lt_cv_prog_compiler_static_works+y}
22368then :
22369  printf %s "(cached) " >&6
22370else case e in #(
22371  e) lt_cv_prog_compiler_static_works=no
22372   save_LDFLAGS=$LDFLAGS
22373   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22374   echo "$lt_simple_link_test_code" > conftest.$ac_ext
22375   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22376     # The linker can only warn and ignore the option if not recognized
22377     # So say no if there are warnings
22378     if test -s conftest.err; then
22379       # Append any errors to the config.log.
22380       cat conftest.err 1>&5
22381       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22382       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22383       if diff conftest.exp conftest.er2 >/dev/null; then
22384         lt_cv_prog_compiler_static_works=yes
22385       fi
22386     else
22387       lt_cv_prog_compiler_static_works=yes
22388     fi
22389   fi
22390   $RM -r conftest*
22391   LDFLAGS=$save_LDFLAGS
22392 ;;
22393esac
22394fi
22395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
22396printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
22397
22398if test yes = "$lt_cv_prog_compiler_static_works"; then
22399    :
22400else
22401    lt_prog_compiler_static=
22402fi
22403
22404
22405
22406='-fPIC'
22407  archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
22408  archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
22409  archive_cmds_need_lc=no
22410  no_undefined_flag=
22411  ;;
22412
22413*)
22414  dynamic_linker=no
22415  ;;
22416esac
22417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22418printf "%s\n" "$dynamic_linker" >&6; }
22419test no = "$dynamic_linker" && can_build_shared=no
22420
22421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22422if test yes = "$GCC"; then
22423  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22424fi
22425
22426if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22427  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22428fi
22429
22430if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22431  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22432fi
22433
22434# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22435configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22436
22437# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22438func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22439
22440# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22441configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22540printf %s "checking how to hardcode library paths into programs... " >&6; }
22541hardcode_action=
22542if test -n "$hardcode_libdir_flag_spec" ||
22543   test -n "$runpath_var" ||
22544   test yes = "$hardcode_automatic"; then
22545
22546  # We can hardcode non-existent directories.
22547  if test no != "$hardcode_direct" &&
22548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22549     # have to relink, otherwise we might link with an installed library
22550     # when we should be linking with a yet-to-be-installed one
22551     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
22552     test no != "$hardcode_minus_L"; then
22553    # Linking always hardcodes the temporary library directory.
22554    hardcode_action=relink
22555  else
22556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22557    hardcode_action=immediate
22558  fi
22559else
22560  # We cannot hardcode anything, or else we can only hardcode existing
22561  # directories.
22562  hardcode_action=unsupported
22563fi
22564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
22565printf "%s\n" "$hardcode_action" >&6; }
22566
22567if test relink = "$hardcode_action" ||
22568   test yes = "$inherit_rpath"; then
22569  # Fast installation is not supported
22570  enable_fast_install=no
22571elif test yes = "$shlibpath_overrides_runpath" ||
22572     test no = "$enable_shared"; then
22573  # Fast installation is not necessary
22574  enable_fast_install=needless
22575fi
22576
22577
22578
22579
22580
22581
22582  if test yes != "$enable_dlopen"; then
22583  enable_dlopen=unknown
22584  enable_dlopen_self=unknown
22585  enable_dlopen_self_static=unknown
22586else
22587  lt_cv_dlopen=no
22588  lt_cv_dlopen_libs=
22589
22590  case $host_os in
22591  beos*)
22592    lt_cv_dlopen=load_add_on
22593    lt_cv_dlopen_libs=
22594    lt_cv_dlopen_self=yes
22595    ;;
22596
22597  mingw* | windows* | pw32* | cegcc*)
22598    lt_cv_dlopen=LoadLibrary
22599    lt_cv_dlopen_libs=
22600    ;;
22601
22602  cygwin*)
22603    lt_cv_dlopen=dlopen
22604    lt_cv_dlopen_libs=
22605    ;;
22606
22607  darwin*)
22608    # if libdl is installed we need to link against it
22609    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22610printf %s "checking for dlopen in -ldl... " >&6; }
22611if test ${ac_cv_lib_dl_dlopen+y}
22612then :
22613  printf %s "(cached) " >&6
22614else case e in #(
22615  e) ac_check_lib_save_LIBS=$LIBS
22616LIBS="-ldl  $LIBS"
22617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618/* end confdefs.h.  */
22619
22620/* Override any GCC internal prototype to avoid an error.
22621   Use char because int might match the return type of a GCC
22622   builtin and then its argument prototype would still apply.
22623   The 'extern "C"' is for builds by C++ compilers;
22624   although this is not generally supported in C code supporting it here
22625   has little cost and some practical benefit (sr 110532).  */
22626#ifdef __cplusplus
22627extern "C"
22628#endif
22629char dlopen (void);
22630int
22631main (void)
22632{
22633return dlopen ();
22634  ;
22635  return 0;
22636}
22637_ACEOF
22638if ac_fn_c_try_link "$LINENO"
22639then :
22640  ac_cv_lib_dl_dlopen=yes
22641else case e in #(
22642  e) ac_cv_lib_dl_dlopen=no ;;
22643esac
22644fi
22645rm -f core conftest.err conftest.$ac_objext conftest.beam \
22646    conftest$ac_exeext conftest.$ac_ext
22647LIBS=$ac_check_lib_save_LIBS ;;
22648esac
22649fi
22650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22651printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
22652if test "x$ac_cv_lib_dl_dlopen" = xyes
22653then :
22654  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22655else case e in #(
22656  e)
22657    lt_cv_dlopen=dyld
22658    lt_cv_dlopen_libs=
22659    lt_cv_dlopen_self=yes
22660     ;;
22661esac
22662fi
22663
22664    ;;
22665
22666  tpf*)
22667    # Don't try to run any link tests for TPF.  We know it's impossible
22668    # because TPF is a cross-compiler, and we know how we open DSOs.
22669    lt_cv_dlopen=dlopen
22670    lt_cv_dlopen_libs=
22671    lt_cv_dlopen_self=no
22672    ;;
22673
22674  *)
22675    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22676if test "x$ac_cv_func_shl_load" = xyes
22677then :
22678  lt_cv_dlopen=shl_load
22679else case e in #(
22680  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
22681printf %s "checking for shl_load in -ldld... " >&6; }
22682if test ${ac_cv_lib_dld_shl_load+y}
22683then :
22684  printf %s "(cached) " >&6
22685else case e in #(
22686  e) ac_check_lib_save_LIBS=$LIBS
22687LIBS="-ldld  $LIBS"
22688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689/* end confdefs.h.  */
22690
22691/* Override any GCC internal prototype to avoid an error.
22692   Use char because int might match the return type of a GCC
22693   builtin and then its argument prototype would still apply.
22694   The 'extern "C"' is for builds by C++ compilers;
22695   although this is not generally supported in C code supporting it here
22696   has little cost and some practical benefit (sr 110532).  */
22697#ifdef __cplusplus
22698extern "C"
22699#endif
22700char shl_load (void);
22701int
22702main (void)
22703{
22704return shl_load ();
22705  ;
22706  return 0;
22707}
22708_ACEOF
22709if ac_fn_c_try_link "$LINENO"
22710then :
22711  ac_cv_lib_dld_shl_load=yes
22712else case e in #(
22713  e) ac_cv_lib_dld_shl_load=no ;;
22714esac
22715fi
22716rm -f core conftest.err conftest.$ac_objext conftest.beam \
22717    conftest$ac_exeext conftest.$ac_ext
22718LIBS=$ac_check_lib_save_LIBS ;;
22719esac
22720fi
22721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
22722printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
22723if test "x$ac_cv_lib_dld_shl_load" = xyes
22724then :
22725  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
22726else case e in #(
22727  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22728if test "x$ac_cv_func_dlopen" = xyes
22729then :
22730  lt_cv_dlopen=dlopen
22731else case e in #(
22732  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22733printf %s "checking for dlopen in -ldl... " >&6; }
22734if test ${ac_cv_lib_dl_dlopen+y}
22735then :
22736  printf %s "(cached) " >&6
22737else case e in #(
22738  e) ac_check_lib_save_LIBS=$LIBS
22739LIBS="-ldl  $LIBS"
22740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22741/* end confdefs.h.  */
22742
22743/* Override any GCC internal prototype to avoid an error.
22744   Use char because int might match the return type of a GCC
22745   builtin and then its argument prototype would still apply.
22746   The 'extern "C"' is for builds by C++ compilers;
22747   although this is not generally supported in C code supporting it here
22748   has little cost and some practical benefit (sr 110532).  */
22749#ifdef __cplusplus
22750extern "C"
22751#endif
22752char dlopen (void);
22753int
22754main (void)
22755{
22756return dlopen ();
22757  ;
22758  return 0;
22759}
22760_ACEOF
22761if ac_fn_c_try_link "$LINENO"
22762then :
22763  ac_cv_lib_dl_dlopen=yes
22764else case e in #(
22765  e) ac_cv_lib_dl_dlopen=no ;;
22766esac
22767fi
22768rm -f core conftest.err conftest.$ac_objext conftest.beam \
22769    conftest$ac_exeext conftest.$ac_ext
22770LIBS=$ac_check_lib_save_LIBS ;;
22771esac
22772fi
22773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22774printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
22775if test "x$ac_cv_lib_dl_dlopen" = xyes
22776then :
22777  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
22778else case e in #(
22779  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
22780printf %s "checking for dlopen in -lsvld... " >&6; }
22781if test ${ac_cv_lib_svld_dlopen+y}
22782then :
22783  printf %s "(cached) " >&6
22784else case e in #(
22785  e) ac_check_lib_save_LIBS=$LIBS
22786LIBS="-lsvld  $LIBS"
22787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788/* end confdefs.h.  */
22789
22790/* Override any GCC internal prototype to avoid an error.
22791   Use char because int might match the return type of a GCC
22792   builtin and then its argument prototype would still apply.
22793   The 'extern "C"' is for builds by C++ compilers;
22794   although this is not generally supported in C code supporting it here
22795   has little cost and some practical benefit (sr 110532).  */
22796#ifdef __cplusplus
22797extern "C"
22798#endif
22799char dlopen (void);
22800int
22801main (void)
22802{
22803return dlopen ();
22804  ;
22805  return 0;
22806}
22807_ACEOF
22808if ac_fn_c_try_link "$LINENO"
22809then :
22810  ac_cv_lib_svld_dlopen=yes
22811else case e in #(
22812  e) ac_cv_lib_svld_dlopen=no ;;
22813esac
22814fi
22815rm -f core conftest.err conftest.$ac_objext conftest.beam \
22816    conftest$ac_exeext conftest.$ac_ext
22817LIBS=$ac_check_lib_save_LIBS ;;
22818esac
22819fi
22820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
22821printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
22822if test "x$ac_cv_lib_svld_dlopen" = xyes
22823then :
22824  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
22825else case e in #(
22826  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
22827printf %s "checking for dld_link in -ldld... " >&6; }
22828if test ${ac_cv_lib_dld_dld_link+y}
22829then :
22830  printf %s "(cached) " >&6
22831else case e in #(
22832  e) ac_check_lib_save_LIBS=$LIBS
22833LIBS="-ldld  $LIBS"
22834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22835/* end confdefs.h.  */
22836
22837/* Override any GCC internal prototype to avoid an error.
22838   Use char because int might match the return type of a GCC
22839   builtin and then its argument prototype would still apply.
22840   The 'extern "C"' is for builds by C++ compilers;
22841   although this is not generally supported in C code supporting it here
22842   has little cost and some practical benefit (sr 110532).  */
22843#ifdef __cplusplus
22844extern "C"
22845#endif
22846char dld_link (void);
22847int
22848main (void)
22849{
22850return dld_link ();
22851  ;
22852  return 0;
22853}
22854_ACEOF
22855if ac_fn_c_try_link "$LINENO"
22856then :
22857  ac_cv_lib_dld_dld_link=yes
22858else case e in #(
22859  e) ac_cv_lib_dld_dld_link=no ;;
22860esac
22861fi
22862rm -f core conftest.err conftest.$ac_objext conftest.beam \
22863    conftest$ac_exeext conftest.$ac_ext
22864LIBS=$ac_check_lib_save_LIBS ;;
22865esac
22866fi
22867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
22868printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
22869if test "x$ac_cv_lib_dld_dld_link" = xyes
22870then :
22871  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
22872fi
22873
22874	       ;;
22875esac
22876fi
22877
22878	     ;;
22879esac
22880fi
22881
22882	   ;;
22883esac
22884fi
22885
22886	 ;;
22887esac
22888fi
22889
22890       ;;
22891esac
22892fi
22893
22894    ;;
22895  esac
22896
22897  if test no = "$lt_cv_dlopen"; then
22898    enable_dlopen=no
22899  else
22900    enable_dlopen=yes
22901  fi
22902
22903  case $lt_cv_dlopen in
22904  dlopen)
22905    save_CPPFLAGS=$CPPFLAGS
22906    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
22907
22908    save_LDFLAGS=$LDFLAGS
22909    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
22910
22911    save_LIBS=$LIBS
22912    LIBS="$lt_cv_dlopen_libs $LIBS"
22913
22914    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
22915printf %s "checking whether a program can dlopen itself... " >&6; }
22916if test ${lt_cv_dlopen_self+y}
22917then :
22918  printf %s "(cached) " >&6
22919else case e in #(
22920  e) 	  if test yes = "$cross_compiling"; then :
22921  lt_cv_dlopen_self=cross
22922else
22923  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
22924  lt_status=$lt_dlunknown
22925  cat > conftest.$ac_ext <<_LT_EOF
22926#line $LINENO "configure"
22927#include "confdefs.h"
22928
22929#if HAVE_DLFCN_H
22930#include <dlfcn.h>
22931#endif
22932
22933#include <stdio.h>
22934
22935#ifdef RTLD_GLOBAL
22936#  define LT_DLGLOBAL		RTLD_GLOBAL
22937#else
22938#  ifdef DL_GLOBAL
22939#    define LT_DLGLOBAL		DL_GLOBAL
22940#  else
22941#    define LT_DLGLOBAL		0
22942#  endif
22943#endif
22944
22945/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
22946   find out it does not work in some platform. */
22947#ifndef LT_DLLAZY_OR_NOW
22948#  ifdef RTLD_LAZY
22949#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
22950#  else
22951#    ifdef DL_LAZY
22952#      define LT_DLLAZY_OR_NOW		DL_LAZY
22953#    else
22954#      ifdef RTLD_NOW
22955#        define LT_DLLAZY_OR_NOW	RTLD_NOW
22956#      else
22957#        ifdef DL_NOW
22958#          define LT_DLLAZY_OR_NOW	DL_NOW
22959#        else
22960#          define LT_DLLAZY_OR_NOW	0
22961#        endif
22962#      endif
22963#    endif
22964#  endif
22965#endif
22966
22967/* When -fvisibility=hidden is used, assume the code has been annotated
22968   correspondingly for the symbols needed.  */
22969#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
22970int fnord (void) __attribute__((visibility("default")));
22971#endif
22972
22973int fnord (void) { return 42; }
22974int main (void)
22975{
22976  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
22977  int status = $lt_dlunknown;
22978
22979  if (self)
22980    {
22981      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
22982      else
22983        {
22984	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
22985          else puts (dlerror ());
22986	}
22987      /* dlclose (self); */
22988    }
22989  else
22990    puts (dlerror ());
22991
22992  return status;
22993}
22994_LT_EOF
22995  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
22996  (eval $ac_link) 2>&5
22997  ac_status=$?
22998  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22999  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
23000    (./conftest; exit; ) >&5 2>/dev/null
23001    lt_status=$?
23002    case x$lt_status in
23003      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23004      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23005      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
23006    esac
23007  else :
23008    # compilation failed
23009    lt_cv_dlopen_self=no
23010  fi
23011fi
23012rm -fr conftest*
23013
23014     ;;
23015esac
23016fi
23017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
23018printf "%s\n" "$lt_cv_dlopen_self" >&6; }
23019
23020    if test yes = "$lt_cv_dlopen_self"; then
23021      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
23022      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
23023printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
23024if test ${lt_cv_dlopen_self_static+y}
23025then :
23026  printf %s "(cached) " >&6
23027else case e in #(
23028  e) 	  if test yes = "$cross_compiling"; then :
23029  lt_cv_dlopen_self_static=cross
23030else
23031  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23032  lt_status=$lt_dlunknown
23033  cat > conftest.$ac_ext <<_LT_EOF
23034#line $LINENO "configure"
23035#include "confdefs.h"
23036
23037#if HAVE_DLFCN_H
23038#include <dlfcn.h>
23039#endif
23040
23041#include <stdio.h>
23042
23043#ifdef RTLD_GLOBAL
23044#  define LT_DLGLOBAL		RTLD_GLOBAL
23045#else
23046#  ifdef DL_GLOBAL
23047#    define LT_DLGLOBAL		DL_GLOBAL
23048#  else
23049#    define LT_DLGLOBAL		0
23050#  endif
23051#endif
23052
23053/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23054   find out it does not work in some platform. */
23055#ifndef LT_DLLAZY_OR_NOW
23056#  ifdef RTLD_LAZY
23057#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
23058#  else
23059#    ifdef DL_LAZY
23060#      define LT_DLLAZY_OR_NOW		DL_LAZY
23061#    else
23062#      ifdef RTLD_NOW
23063#        define LT_DLLAZY_OR_NOW	RTLD_NOW
23064#      else
23065#        ifdef DL_NOW
23066#          define LT_DLLAZY_OR_NOW	DL_NOW
23067#        else
23068#          define LT_DLLAZY_OR_NOW	0
23069#        endif
23070#      endif
23071#    endif
23072#  endif
23073#endif
23074
23075/* When -fvisibility=hidden is used, assume the code has been annotated
23076   correspondingly for the symbols needed.  */
23077#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
23078int fnord (void) __attribute__((visibility("default")));
23079#endif
23080
23081int fnord (void) { return 42; }
23082int main (void)
23083{
23084  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23085  int status = $lt_dlunknown;
23086
23087  if (self)
23088    {
23089      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23090      else
23091        {
23092	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
23093          else puts (dlerror ());
23094	}
23095      /* dlclose (self); */
23096    }
23097  else
23098    puts (dlerror ());
23099
23100  return status;
23101}
23102_LT_EOF
23103  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
23104  (eval $ac_link) 2>&5
23105  ac_status=$?
23106  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23107  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
23108    (./conftest; exit; ) >&5 2>/dev/null
23109    lt_status=$?
23110    case x$lt_status in
23111      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23112      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23113      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
23114    esac
23115  else :
23116    # compilation failed
23117    lt_cv_dlopen_self_static=no
23118  fi
23119fi
23120rm -fr conftest*
23121
23122       ;;
23123esac
23124fi
23125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
23126printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
23127    fi
23128
23129    CPPFLAGS=$save_CPPFLAGS
23130    LDFLAGS=$save_LDFLAGS
23131    LIBS=$save_LIBS
23132    ;;
23133  esac
23134
23135  case $lt_cv_dlopen_self in
23136  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23137  *) enable_dlopen_self=unknown ;;
23138  esac
23139
23140  case $lt_cv_dlopen_self_static in
23141  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23142  *) enable_dlopen_self_static=unknown ;;
23143  esac
23144fi
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162striplib=
23163old_striplib=
23164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
23165printf %s "checking whether stripping libraries is possible... " >&6; }
23166if test -z "$STRIP"; then
23167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168printf "%s\n" "no" >&6; }
23169else
23170  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
23171    old_striplib="$STRIP --strip-debug"
23172    striplib="$STRIP --strip-unneeded"
23173    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23174printf "%s\n" "yes" >&6; }
23175  else
23176    case $host_os in
23177    darwin*)
23178      # FIXME - insert some real tests, host_os isn't really good enough
23179      striplib="$STRIP -x"
23180      old_striplib="$STRIP -S"
23181      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23182printf "%s\n" "yes" >&6; }
23183      ;;
23184    freebsd*)
23185      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
23186        old_striplib="$STRIP --strip-debug"
23187        striplib="$STRIP --strip-unneeded"
23188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189printf "%s\n" "yes" >&6; }
23190      else
23191        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23192printf "%s\n" "no" >&6; }
23193      fi
23194      ;;
23195    *)
23196      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23197printf "%s\n" "no" >&6; }
23198      ;;
23199    esac
23200  fi
23201fi
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214  # Report what library types will actually be built
23215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
23216printf %s "checking if libtool supports shared libraries... " >&6; }
23217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
23218printf "%s\n" "$can_build_shared" >&6; }
23219
23220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
23221printf %s "checking whether to build shared libraries... " >&6; }
23222  test no = "$can_build_shared" && enable_shared=no
23223
23224  # On AIX, shared libraries and static libraries use the same namespace, and
23225  # are all built from PIC.
23226  case $host_os in
23227  aix3*)
23228    test yes = "$enable_shared" && enable_static=no
23229    if test -n "$RANLIB"; then
23230      archive_cmds="$archive_cmds~\$RANLIB \$lib"
23231      postinstall_cmds='$RANLIB $lib'
23232    fi
23233    ;;
23234
23235  aix[4-9]*)
23236    if test ia64 != "$host_cpu"; then
23237      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
23238      yes,aix,yes) ;;			# shared object as lib.so file only
23239      yes,svr4,*) ;;			# shared object as lib.so archive member only
23240      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
23241      esac
23242    fi
23243    ;;
23244  esac
23245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
23246printf "%s\n" "$enable_shared" >&6; }
23247
23248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
23249printf %s "checking whether to build static libraries... " >&6; }
23250  # Make sure either enable_shared or enable_static is yes.
23251  test yes = "$enable_shared" || enable_static=yes
23252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
23253printf "%s\n" "$enable_static" >&6; }
23254
23255
23256
23257
23258fi
23259ac_ext=c
23260ac_cpp='$CPP $CPPFLAGS'
23261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23263ac_compiler_gnu=$ac_cv_c_compiler_gnu
23264
23265CC=$lt_save_CC
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281        ac_config_commands="$ac_config_commands libtool"
23282
23283
23284
23285
23286# Only expand once:
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23297	if test -n "$ac_tool_prefix"; then
23298  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23299set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23301printf %s "checking for $ac_word... " >&6; }
23302if test ${ac_cv_path_PKG_CONFIG+y}
23303then :
23304  printf %s "(cached) " >&6
23305else case e in #(
23306  e) case $PKG_CONFIG in
23307  [\\/]* | ?:[\\/]*)
23308  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23309  ;;
23310  *)
23311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23312for as_dir in $PATH
23313do
23314  IFS=$as_save_IFS
23315  case $as_dir in #(((
23316    '') as_dir=./ ;;
23317    */) ;;
23318    *) as_dir=$as_dir/ ;;
23319  esac
23320    for ac_exec_ext in '' $ac_executable_extensions; do
23321  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23322    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23323    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23324    break 2
23325  fi
23326done
23327  done
23328IFS=$as_save_IFS
23329
23330  ;;
23331esac ;;
23332esac
23333fi
23334PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23335if test -n "$PKG_CONFIG"; then
23336  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23337printf "%s\n" "$PKG_CONFIG" >&6; }
23338else
23339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23340printf "%s\n" "no" >&6; }
23341fi
23342
23343
23344fi
23345if test -z "$ac_cv_path_PKG_CONFIG"; then
23346  ac_pt_PKG_CONFIG=$PKG_CONFIG
23347  # Extract the first word of "pkg-config", so it can be a program name with args.
23348set dummy pkg-config; ac_word=$2
23349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23350printf %s "checking for $ac_word... " >&6; }
23351if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23352then :
23353  printf %s "(cached) " >&6
23354else case e in #(
23355  e) case $ac_pt_PKG_CONFIG in
23356  [\\/]* | ?:[\\/]*)
23357  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23358  ;;
23359  *)
23360  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23361for as_dir in $PATH
23362do
23363  IFS=$as_save_IFS
23364  case $as_dir in #(((
23365    '') as_dir=./ ;;
23366    */) ;;
23367    *) as_dir=$as_dir/ ;;
23368  esac
23369    for ac_exec_ext in '' $ac_executable_extensions; do
23370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23371    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23373    break 2
23374  fi
23375done
23376  done
23377IFS=$as_save_IFS
23378
23379  ;;
23380esac ;;
23381esac
23382fi
23383ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23384if test -n "$ac_pt_PKG_CONFIG"; then
23385  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23386printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23387else
23388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23389printf "%s\n" "no" >&6; }
23390fi
23391
23392  if test "x$ac_pt_PKG_CONFIG" = x; then
23393    PKG_CONFIG=""
23394  else
23395    case $cross_compiling:$ac_tool_warned in
23396yes:)
23397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23398printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23399ac_tool_warned=yes ;;
23400esac
23401    PKG_CONFIG=$ac_pt_PKG_CONFIG
23402  fi
23403else
23404  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23405fi
23406
23407fi
23408if test -n "$PKG_CONFIG"; then
23409	_pkg_min_version=0.9.0
23410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23411printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23412	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23414printf "%s\n" "yes" >&6; }
23415	else
23416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23417printf "%s\n" "no" >&6; }
23418		PKG_CONFIG=""
23419	fi
23420fi
23421if test -z "$PKG_CONFIG"; then
23422	as_fn_error $? "pkg-config not found" "$LINENO" 5
23423fi
23424for ac_prog in flex lex
23425do
23426  # Extract the first word of "$ac_prog", so it can be a program name with args.
23427set dummy $ac_prog; ac_word=$2
23428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23429printf %s "checking for $ac_word... " >&6; }
23430if test ${ac_cv_prog_LEX+y}
23431then :
23432  printf %s "(cached) " >&6
23433else case e in #(
23434  e) if test -n "$LEX"; then
23435  ac_cv_prog_LEX="$LEX" # Let the user override the test.
23436else
23437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23438for as_dir in $PATH
23439do
23440  IFS=$as_save_IFS
23441  case $as_dir in #(((
23442    '') as_dir=./ ;;
23443    */) ;;
23444    *) as_dir=$as_dir/ ;;
23445  esac
23446    for ac_exec_ext in '' $ac_executable_extensions; do
23447  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23448    ac_cv_prog_LEX="$ac_prog"
23449    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23450    break 2
23451  fi
23452done
23453  done
23454IFS=$as_save_IFS
23455
23456fi ;;
23457esac
23458fi
23459LEX=$ac_cv_prog_LEX
23460if test -n "$LEX"; then
23461  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
23462printf "%s\n" "$LEX" >&6; }
23463else
23464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465printf "%s\n" "no" >&6; }
23466fi
23467
23468
23469  test -n "$LEX" && break
23470done
23471test -n "$LEX" || LEX=":"
23472
23473  if test "x$LEX" != "x:"; then
23474    cat >conftest.l <<_ACEOF
23475%{
23476#ifdef __cplusplus
23477extern "C"
23478#endif
23479int yywrap(void);
23480%}
23481%%
23482a { ECHO; }
23483b { REJECT; }
23484c { yymore (); }
23485d { yyless (1); }
23486e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
23487#ifdef __cplusplus
23488    yyless ((yyinput () != 0));
23489#else
23490    yyless ((input () != 0));
23491#endif
23492  }
23493f { unput (yytext[0]); }
23494. { BEGIN INITIAL; }
23495%%
23496#ifdef YYTEXT_POINTER
23497extern char *yytext;
23498#endif
23499int
23500yywrap (void)
23501{
23502  return 1;
23503}
23504int
23505main (void)
23506{
23507  return ! yylex ();
23508}
23509_ACEOF
23510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
23511printf %s "checking for lex output file root... " >&6; }
23512if test ${ac_cv_prog_lex_root+y}
23513then :
23514  printf %s "(cached) " >&6
23515else case e in #(
23516  e)
23517ac_cv_prog_lex_root=unknown
23518{ { ac_try="$LEX conftest.l"
23519case "(($ac_try" in
23520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521  *) ac_try_echo=$ac_try;;
23522esac
23523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23524printf "%s\n" "$ac_try_echo"; } >&5
23525  (eval "$LEX conftest.l") 2>&5
23526  ac_status=$?
23527  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23528  test $ac_status = 0; } &&
23529if test -f lex.yy.c; then
23530  ac_cv_prog_lex_root=lex.yy
23531elif test -f lexyy.c; then
23532  ac_cv_prog_lex_root=lexyy
23533fi ;;
23534esac
23535fi
23536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
23537printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
23538if test "$ac_cv_prog_lex_root" = unknown
23539then :
23540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
23541printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
23542   LEX=: LEXLIB=
23543fi
23544LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
23545
23546if test ${LEXLIB+y}
23547then :
23548
23549else case e in #(
23550  e)
23551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
23552printf %s "checking for lex library... " >&6; }
23553if test ${ac_cv_lib_lex+y}
23554then :
23555  printf %s "(cached) " >&6
23556else case e in #(
23557  e)
23558    ac_save_LIBS="$LIBS"
23559    ac_found=false
23560    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
23561      case $ac_cv_lib_lex in #(
23562  'none needed') :
23563     ;; #(
23564  'not found') :
23565    break ;; #(
23566  *) :
23567    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
23568  *) :
23569     ;;
23570esac
23571
23572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23573/* end confdefs.h.  */
23574`cat $LEX_OUTPUT_ROOT.c`
23575_ACEOF
23576if ac_fn_c_try_link "$LINENO"
23577then :
23578  ac_found=:
23579fi
23580rm -f core conftest.err conftest.$ac_objext conftest.beam \
23581    conftest$ac_exeext conftest.$ac_ext
23582      if $ac_found; then
23583        break
23584      fi
23585    done
23586    LIBS="$ac_save_LIBS"
23587   ;;
23588esac
23589fi
23590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
23591printf "%s\n" "$ac_cv_lib_lex" >&6; }
23592  if test "$ac_cv_lib_lex" = 'not found'
23593then :
23594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
23595printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
23596	 LEX=: LEXLIB=
23597elif test "$ac_cv_lib_lex" = 'none needed'
23598then :
23599  LEXLIB=''
23600else case e in #(
23601  e) LEXLIB=$ac_cv_lib_lex ;;
23602esac
23603fi
23604  ac_save_LIBS="$LIBS"
23605      LIBS=
23606      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
23607printf %s "checking for library containing yywrap... " >&6; }
23608if test ${ac_cv_search_yywrap+y}
23609then :
23610  printf %s "(cached) " >&6
23611else case e in #(
23612  e) ac_func_search_save_LIBS=$LIBS
23613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614/* end confdefs.h.  */
23615
23616/* Override any GCC internal prototype to avoid an error.
23617   Use char because int might match the return type of a GCC
23618   builtin and then its argument prototype would still apply.
23619   The 'extern "C"' is for builds by C++ compilers;
23620   although this is not generally supported in C code supporting it here
23621   has little cost and some practical benefit (sr 110532).  */
23622#ifdef __cplusplus
23623extern "C"
23624#endif
23625char yywrap (void);
23626int
23627main (void)
23628{
23629return yywrap ();
23630  ;
23631  return 0;
23632}
23633_ACEOF
23634for ac_lib in '' fl l
23635do
23636  if test -z "$ac_lib"; then
23637    ac_res="none required"
23638  else
23639    ac_res=-l$ac_lib
23640    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23641  fi
23642  if ac_fn_c_try_link "$LINENO"
23643then :
23644  ac_cv_search_yywrap=$ac_res
23645fi
23646rm -f core conftest.err conftest.$ac_objext conftest.beam \
23647    conftest$ac_exeext
23648  if test ${ac_cv_search_yywrap+y}
23649then :
23650  break
23651fi
23652done
23653if test ${ac_cv_search_yywrap+y}
23654then :
23655
23656else case e in #(
23657  e) ac_cv_search_yywrap=no ;;
23658esac
23659fi
23660rm conftest.$ac_ext
23661LIBS=$ac_func_search_save_LIBS ;;
23662esac
23663fi
23664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
23665printf "%s\n" "$ac_cv_search_yywrap" >&6; }
23666ac_res=$ac_cv_search_yywrap
23667if test "$ac_res" != no
23668then :
23669  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23670  LEXLIB="$LIBS"
23671fi
23672
23673      LIBS="$ac_save_LIBS" ;;
23674esac
23675fi
23676
23677
23678if test "$LEX" != :
23679then :
23680
23681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
23682printf %s "checking whether yytext is a pointer... " >&6; }
23683if test ${ac_cv_prog_lex_yytext_pointer+y}
23684then :
23685  printf %s "(cached) " >&6
23686else case e in #(
23687  e) # POSIX says lex can declare yytext either as a pointer or an array; the
23688# default is implementation-dependent.  Figure out which it is, since
23689# not all implementations provide the %pointer and %array declarations.
23690ac_cv_prog_lex_yytext_pointer=no
23691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692/* end confdefs.h.  */
23693
23694  #define YYTEXT_POINTER 1
23695`cat $LEX_OUTPUT_ROOT.c`
23696_ACEOF
23697if ac_fn_c_try_compile "$LINENO"
23698then :
23699  ac_cv_prog_lex_yytext_pointer=yes
23700fi
23701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23702 ;;
23703esac
23704fi
23705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
23706printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
23707if test $ac_cv_prog_lex_yytext_pointer = yes; then
23708
23709printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
23710
23711fi
23712
23713fi
23714rm -f conftest.l $LEX_OUTPUT_ROOT.c
23715
23716fi
23717for ac_prog in 'bison -y' byacc
23718do
23719  # Extract the first word of "$ac_prog", so it can be a program name with args.
23720set dummy $ac_prog; ac_word=$2
23721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23722printf %s "checking for $ac_word... " >&6; }
23723if test ${ac_cv_prog_YACC+y}
23724then :
23725  printf %s "(cached) " >&6
23726else case e in #(
23727  e) if test -n "$YACC"; then
23728  ac_cv_prog_YACC="$YACC" # Let the user override the test.
23729else
23730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23731for as_dir in $PATH
23732do
23733  IFS=$as_save_IFS
23734  case $as_dir in #(((
23735    '') as_dir=./ ;;
23736    */) ;;
23737    *) as_dir=$as_dir/ ;;
23738  esac
23739    for ac_exec_ext in '' $ac_executable_extensions; do
23740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23741    ac_cv_prog_YACC="$ac_prog"
23742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23743    break 2
23744  fi
23745done
23746  done
23747IFS=$as_save_IFS
23748
23749fi ;;
23750esac
23751fi
23752YACC=$ac_cv_prog_YACC
23753if test -n "$YACC"; then
23754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
23755printf "%s\n" "$YACC" >&6; }
23756else
23757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758printf "%s\n" "no" >&6; }
23759fi
23760
23761
23762  test -n "$YACC" && break
23763done
23764test -n "$YACC" || YACC="yacc"
23765
23766# Check whether --enable-largefile was given.
23767if test ${enable_largefile+y}
23768then :
23769  enableval=$enable_largefile;
23770fi
23771if test "$enable_largefile,$enable_year2038" != no,no
23772then :
23773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
23774printf %s "checking for $CC option to enable large file support... " >&6; }
23775if test ${ac_cv_sys_largefile_opts+y}
23776then :
23777  printf %s "(cached) " >&6
23778else case e in #(
23779  e) ac_save_CC="$CC"
23780  ac_opt_found=no
23781  for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
23782    if test x"$ac_opt" != x"none needed"
23783then :
23784  CC="$ac_save_CC $ac_opt"
23785fi
23786    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787/* end confdefs.h.  */
23788#include <sys/types.h>
23789#ifndef FTYPE
23790# define FTYPE off_t
23791#endif
23792 /* Check that FTYPE can represent 2**63 - 1 correctly.
23793    We can't simply define LARGE_FTYPE to be 9223372036854775807,
23794    since some C++ compilers masquerading as C compilers
23795    incorrectly reject 9223372036854775807.  */
23796#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
23797  int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
23798		       && LARGE_FTYPE % 2147483647 == 1)
23799		      ? 1 : -1];
23800int
23801main (void)
23802{
23803
23804  ;
23805  return 0;
23806}
23807_ACEOF
23808if ac_fn_c_try_compile "$LINENO"
23809then :
23810  if test x"$ac_opt" = x"none needed"
23811then :
23812  # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
23813	 CC="$CC -DFTYPE=ino_t"
23814	 if ac_fn_c_try_compile "$LINENO"
23815then :
23816
23817else case e in #(
23818  e) CC="$CC -D_FILE_OFFSET_BITS=64"
23819	    if ac_fn_c_try_compile "$LINENO"
23820then :
23821  ac_opt='-D_FILE_OFFSET_BITS=64'
23822fi
23823rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
23824esac
23825fi
23826rm -f core conftest.err conftest.$ac_objext conftest.beam
23827fi
23828      ac_cv_sys_largefile_opts=$ac_opt
23829      ac_opt_found=yes
23830fi
23831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23832    test $ac_opt_found = no || break
23833  done
23834  CC="$ac_save_CC"
23835
23836  test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
23837esac
23838fi
23839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
23840printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
23841
23842ac_have_largefile=yes
23843case $ac_cv_sys_largefile_opts in #(
23844  "none needed") :
23845     ;; #(
23846  "supported through gnulib") :
23847     ;; #(
23848  "support not detected") :
23849    ac_have_largefile=no ;; #(
23850  "-D_FILE_OFFSET_BITS=64") :
23851
23852printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
23853 ;; #(
23854  "-D_LARGE_FILES=1") :
23855
23856printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
23857 ;; #(
23858  "-n32") :
23859    CC="$CC -n32" ;; #(
23860  *) :
23861    as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
23862esac
23863
23864if test "$enable_year2038" != no
23865then :
23866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
23867printf %s "checking for $CC option for timestamps after 2038... " >&6; }
23868if test ${ac_cv_sys_year2038_opts+y}
23869then :
23870  printf %s "(cached) " >&6
23871else case e in #(
23872  e) ac_save_CPPFLAGS="$CPPFLAGS"
23873  ac_opt_found=no
23874  for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
23875    if test x"$ac_opt" != x"none needed"
23876then :
23877  CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
23878fi
23879    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23880/* end confdefs.h.  */
23881
23882  #include <time.h>
23883  /* Check that time_t can represent 2**32 - 1 correctly.  */
23884  #define LARGE_TIME_T \\
23885    ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
23886  int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
23887                           && LARGE_TIME_T % 65537 == 0)
23888                          ? 1 : -1];
23889
23890int
23891main (void)
23892{
23893
23894  ;
23895  return 0;
23896}
23897_ACEOF
23898if ac_fn_c_try_compile "$LINENO"
23899then :
23900  ac_cv_sys_year2038_opts="$ac_opt"
23901      ac_opt_found=yes
23902fi
23903rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23904    test $ac_opt_found = no || break
23905  done
23906  CPPFLAGS="$ac_save_CPPFLAGS"
23907  test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
23908esac
23909fi
23910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
23911printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
23912
23913ac_have_year2038=yes
23914case $ac_cv_sys_year2038_opts in #(
23915  "none needed") :
23916     ;; #(
23917  "support not detected") :
23918    ac_have_year2038=no ;; #(
23919  "-D_TIME_BITS=64") :
23920
23921printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
23922 ;; #(
23923  "-D__MINGW_USE_VC2005_COMPAT") :
23924
23925printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
23926 ;; #(
23927  "-U_USE_32_BIT_TIME_T"*) :
23928    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23929printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23930as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
23931will stop working after mid-January 2038. Remove
23932_USE_32BIT_TIME_T from the compiler flags.
23933See 'config.log' for more details" "$LINENO" 5; } ;; #(
23934  *) :
23935    as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
23936esac
23937
23938fi
23939
23940fi
23941ac_ext=c
23942ac_cpp='$CPP $CPPFLAGS'
23943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23945ac_compiler_gnu=$ac_cv_c_compiler_gnu
23946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
23947printf %s "checking how to run the C preprocessor... " >&6; }
23948# On Suns, sometimes $CPP names a directory.
23949if test -n "$CPP" && test -d "$CPP"; then
23950  CPP=
23951fi
23952if test -z "$CPP"; then
23953  if test ${ac_cv_prog_CPP+y}
23954then :
23955  printf %s "(cached) " >&6
23956else case e in #(
23957  e)     # Double quotes because $CC needs to be expanded
23958    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
23959    do
23960      ac_preproc_ok=false
23961for ac_c_preproc_warn_flag in '' yes
23962do
23963  # Use a header file that comes with gcc, so configuring glibc
23964  # with a fresh cross-compiler works.
23965  # On the NeXT, cc -E runs the code through the compiler's parser,
23966  # not just through cpp. "Syntax error" is here to catch this case.
23967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23968/* end confdefs.h.  */
23969#include <limits.h>
23970		     Syntax error
23971_ACEOF
23972if ac_fn_c_try_cpp "$LINENO"
23973then :
23974
23975else case e in #(
23976  e) # Broken: fails on valid input.
23977continue ;;
23978esac
23979fi
23980rm -f conftest.err conftest.i conftest.$ac_ext
23981
23982  # OK, works on sane cases.  Now check whether nonexistent headers
23983  # can be detected and how.
23984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23985/* end confdefs.h.  */
23986#include <ac_nonexistent.h>
23987_ACEOF
23988if ac_fn_c_try_cpp "$LINENO"
23989then :
23990  # Broken: success on invalid input.
23991continue
23992else case e in #(
23993  e) # Passes both tests.
23994ac_preproc_ok=:
23995break ;;
23996esac
23997fi
23998rm -f conftest.err conftest.i conftest.$ac_ext
23999
24000done
24001# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24002rm -f conftest.i conftest.err conftest.$ac_ext
24003if $ac_preproc_ok
24004then :
24005  break
24006fi
24007
24008    done
24009    ac_cv_prog_CPP=$CPP
24010   ;;
24011esac
24012fi
24013  CPP=$ac_cv_prog_CPP
24014else
24015  ac_cv_prog_CPP=$CPP
24016fi
24017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
24018printf "%s\n" "$CPP" >&6; }
24019ac_preproc_ok=false
24020for ac_c_preproc_warn_flag in '' yes
24021do
24022  # Use a header file that comes with gcc, so configuring glibc
24023  # with a fresh cross-compiler works.
24024  # On the NeXT, cc -E runs the code through the compiler's parser,
24025  # not just through cpp. "Syntax error" is here to catch this case.
24026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24027/* end confdefs.h.  */
24028#include <limits.h>
24029		     Syntax error
24030_ACEOF
24031if ac_fn_c_try_cpp "$LINENO"
24032then :
24033
24034else case e in #(
24035  e) # Broken: fails on valid input.
24036continue ;;
24037esac
24038fi
24039rm -f conftest.err conftest.i conftest.$ac_ext
24040
24041  # OK, works on sane cases.  Now check whether nonexistent headers
24042  # can be detected and how.
24043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044/* end confdefs.h.  */
24045#include <ac_nonexistent.h>
24046_ACEOF
24047if ac_fn_c_try_cpp "$LINENO"
24048then :
24049  # Broken: success on invalid input.
24050continue
24051else case e in #(
24052  e) # Passes both tests.
24053ac_preproc_ok=:
24054break ;;
24055esac
24056fi
24057rm -f conftest.err conftest.i conftest.$ac_ext
24058
24059done
24060# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24061rm -f conftest.i conftest.err conftest.$ac_ext
24062if $ac_preproc_ok
24063then :
24064
24065else case e in #(
24066  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24067printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24068as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
24069See 'config.log' for more details" "$LINENO" 5; } ;;
24070esac
24071fi
24072
24073ac_ext=c
24074ac_cpp='$CPP $CPPFLAGS'
24075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077ac_compiler_gnu=$ac_cv_c_compiler_gnu
24078
24079
24080
24081if test -n "$ac_tool_prefix"; then
24082  # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
24083set dummy ${ac_tool_prefix}cpp; ac_word=$2
24084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24085printf %s "checking for $ac_word... " >&6; }
24086if test ${ac_cv_path_RAWCPP+y}
24087then :
24088  printf %s "(cached) " >&6
24089else case e in #(
24090  e) case $RAWCPP in
24091  [\\/]* | ?:[\\/]*)
24092  ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
24093  ;;
24094  *)
24095  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24096as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
24097for as_dir in $as_dummy
24098do
24099  IFS=$as_save_IFS
24100  case $as_dir in #(((
24101    '') as_dir=./ ;;
24102    */) ;;
24103    *) as_dir=$as_dir/ ;;
24104  esac
24105    for ac_exec_ext in '' $ac_executable_extensions; do
24106  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24107    ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
24108    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24109    break 2
24110  fi
24111done
24112  done
24113IFS=$as_save_IFS
24114
24115  ;;
24116esac ;;
24117esac
24118fi
24119RAWCPP=$ac_cv_path_RAWCPP
24120if test -n "$RAWCPP"; then
24121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
24122printf "%s\n" "$RAWCPP" >&6; }
24123else
24124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24125printf "%s\n" "no" >&6; }
24126fi
24127
24128
24129fi
24130if test -z "$ac_cv_path_RAWCPP"; then
24131  ac_pt_RAWCPP=$RAWCPP
24132  # Extract the first word of "cpp", so it can be a program name with args.
24133set dummy cpp; ac_word=$2
24134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24135printf %s "checking for $ac_word... " >&6; }
24136if test ${ac_cv_path_ac_pt_RAWCPP+y}
24137then :
24138  printf %s "(cached) " >&6
24139else case e in #(
24140  e) case $ac_pt_RAWCPP in
24141  [\\/]* | ?:[\\/]*)
24142  ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
24143  ;;
24144  *)
24145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
24147for as_dir in $as_dummy
24148do
24149  IFS=$as_save_IFS
24150  case $as_dir in #(((
24151    '') as_dir=./ ;;
24152    */) ;;
24153    *) as_dir=$as_dir/ ;;
24154  esac
24155    for ac_exec_ext in '' $ac_executable_extensions; do
24156  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24157    ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
24158    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24159    break 2
24160  fi
24161done
24162  done
24163IFS=$as_save_IFS
24164
24165  ;;
24166esac ;;
24167esac
24168fi
24169ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
24170if test -n "$ac_pt_RAWCPP"; then
24171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
24172printf "%s\n" "$ac_pt_RAWCPP" >&6; }
24173else
24174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24175printf "%s\n" "no" >&6; }
24176fi
24177
24178  if test "x$ac_pt_RAWCPP" = x; then
24179    RAWCPP="${CPP}"
24180  else
24181    case $cross_compiling:$ac_tool_warned in
24182yes:)
24183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24184printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24185ac_tool_warned=yes ;;
24186esac
24187    RAWCPP=$ac_pt_RAWCPP
24188  fi
24189else
24190  RAWCPP="$ac_cv_path_RAWCPP"
24191fi
24192
24193
24194# Check for flag to avoid builtin definitions - assumes unix is predefined,
24195# which is not the best choice for supporting other OS'es, but covers most
24196# of the ones we need for now.
24197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
24198printf %s "checking if $RAWCPP requires -undef... " >&6; }
24199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200/* end confdefs.h.  */
24201Does cpp redefine unix ?
24202_ACEOF
24203if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
24204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24205printf "%s\n" "no" >&6; }
24206else
24207	if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
24208		RAWCPPFLAGS=-undef
24209		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24210printf "%s\n" "yes" >&6; }
24211	# under Cygwin unix is still defined even with -undef
24212	elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
24213		RAWCPPFLAGS="-undef -ansi"
24214		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
24215printf "%s\n" "yes, with -ansi" >&6; }
24216	else
24217		as_fn_error $? "${RAWCPP} defines unix with or without -undef.  I don't know what to do." "$LINENO" 5
24218	fi
24219fi
24220rm -f conftest.$ac_ext
24221
24222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
24223printf %s "checking if $RAWCPP requires -traditional... " >&6; }
24224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24225/* end confdefs.h.  */
24226Does cpp preserve   "whitespace"?
24227_ACEOF
24228if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
24229	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24230printf "%s\n" "no" >&6; }
24231else
24232	if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve   "'` -eq 1 ; then
24233		TRADITIONALCPPFLAGS="-traditional"
24234		RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
24235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24236printf "%s\n" "yes" >&6; }
24237	else
24238		as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional.  I don't know what to do." "$LINENO" 5
24239	fi
24240fi
24241rm -f conftest.$ac_ext
24242
24243
24244
24245
24246# Quoted so that make will expand $(CWARNFLAGS) in makefiles to allow
24247# easier overrides at build time.
24248XSERVER_CFLAGS='$(CWARNFLAGS)'
24249
24250if  test "x$GCC" = xyes ; then
24251    XSERVER_CFLAGS="$XSERVER_CFLAGS -fno-strict-aliasing"
24252fi
24253
24254
24255# Check whether --with-dtrace was given.
24256if test ${with_dtrace+y}
24257then :
24258  withval=$with_dtrace; WDTRACE=$withval
24259else case e in #(
24260  e) WDTRACE=auto ;;
24261esac
24262fi
24263
24264if test "x$WDTRACE" = "xyes" -o "x$WDTRACE" = "xauto" ; then
24265	# Extract the first word of "dtrace", so it can be a program name with args.
24266set dummy dtrace; ac_word=$2
24267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24268printf %s "checking for $ac_word... " >&6; }
24269if test ${ac_cv_path_DTRACE+y}
24270then :
24271  printf %s "(cached) " >&6
24272else case e in #(
24273  e) case $DTRACE in
24274  [\\/]* | ?:[\\/]*)
24275  ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path.
24276  ;;
24277  *)
24278  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24279as_dummy="$PATH:/usr/sbin"
24280for as_dir in $as_dummy
24281do
24282  IFS=$as_save_IFS
24283  case $as_dir in #(((
24284    '') as_dir=./ ;;
24285    */) ;;
24286    *) as_dir=$as_dir/ ;;
24287  esac
24288    for ac_exec_ext in '' $ac_executable_extensions; do
24289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24290    ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext"
24291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24292    break 2
24293  fi
24294done
24295  done
24296IFS=$as_save_IFS
24297
24298  test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not_found"
24299  ;;
24300esac ;;
24301esac
24302fi
24303DTRACE=$ac_cv_path_DTRACE
24304if test -n "$DTRACE"; then
24305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
24306printf "%s\n" "$DTRACE" >&6; }
24307else
24308  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24309printf "%s\n" "no" >&6; }
24310fi
24311
24312
24313	if test "x$DTRACE" = "xnot_found" ; then
24314		if test "x$WDTRACE" = "xyes" ; then
24315			{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24316printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24317as_fn_error $? "dtrace requested but not found
24318See 'config.log' for more details" "$LINENO" 5; }
24319		fi
24320		WDTRACE="no"
24321	else
24322		ac_fn_c_check_header_compile "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
24323if test "x$ac_cv_header_sys_sdt_h" = xyes
24324then :
24325  HAS_SDT_H="yes"
24326else case e in #(
24327  e) HAS_SDT_H="no" ;;
24328esac
24329fi
24330
24331		if test "x$WDTRACE" = "xauto" -a "x$HAS_SDT_H" = "xno" ; then
24332			WDTRACE="no"
24333		fi
24334	fi
24335fi
24336if test "x$WDTRACE" != "xno" ; then
24337
24338printf "%s\n" "#define XSERVER_DTRACE 1" >>confdefs.h
24339
24340
24341# Solaris/OpenSolaris require dtrace -G to build dtrace probe information into
24342# object files, and require linking with those as relocatable objects, not .a
24343# archives. MacOS X handles all this in the normal compiler toolchain, and on
24344# some releases (like Tiger), will error out on dtrace -G.  For now, other
24345# platforms with Dtrace ports are assumed to support -G (the FreeBSD and Linux
24346# ports appear to, based on my web searches, but have not yet been tested).
24347	case $host_os in
24348		darwin*)	SPECIAL_DTRACE_OBJECTS=no ;;
24349		*)		SPECIAL_DTRACE_OBJECTS=yes ;;
24350	esac
24351fi
24352 if test "x$WDTRACE" != "xno"; then
24353  XSERVER_DTRACE_TRUE=
24354  XSERVER_DTRACE_FALSE='#'
24355else
24356  XSERVER_DTRACE_TRUE='#'
24357  XSERVER_DTRACE_FALSE=
24358fi
24359
24360 if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes"; then
24361  SPECIAL_DTRACE_OBJECTS_TRUE=
24362  SPECIAL_DTRACE_OBJECTS_FALSE='#'
24363else
24364  SPECIAL_DTRACE_OBJECTS_TRUE='#'
24365  SPECIAL_DTRACE_OBJECTS_FALSE=
24366fi
24367
24368
24369ac_header_dirent=no
24370for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24371  as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
24372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24373printf %s "checking for $ac_hdr that defines DIR... " >&6; }
24374if eval test \${$as_ac_Header+y}
24375then :
24376  printf %s "(cached) " >&6
24377else case e in #(
24378  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379/* end confdefs.h.  */
24380#include <sys/types.h>
24381#include <$ac_hdr>
24382
24383int
24384main (void)
24385{
24386if ((DIR *) 0)
24387return 0;
24388  ;
24389  return 0;
24390}
24391_ACEOF
24392if ac_fn_c_try_compile "$LINENO"
24393then :
24394  eval "$as_ac_Header=yes"
24395else case e in #(
24396  e) eval "$as_ac_Header=no" ;;
24397esac
24398fi
24399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24400esac
24401fi
24402eval ac_res=\$$as_ac_Header
24403	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24404printf "%s\n" "$ac_res" >&6; }
24405if eval test \"x\$"$as_ac_Header"\" = x"yes"
24406then :
24407  cat >>confdefs.h <<_ACEOF
24408#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
24409_ACEOF
24410
24411ac_header_dirent=$ac_hdr; break
24412fi
24413
24414done
24415# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24416if test $ac_header_dirent = dirent.h; then
24417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
24418printf %s "checking for library containing opendir... " >&6; }
24419if test ${ac_cv_search_opendir+y}
24420then :
24421  printf %s "(cached) " >&6
24422else case e in #(
24423  e) ac_func_search_save_LIBS=$LIBS
24424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425/* end confdefs.h.  */
24426
24427/* Override any GCC internal prototype to avoid an error.
24428   Use char because int might match the return type of a GCC
24429   builtin and then its argument prototype would still apply.
24430   The 'extern "C"' is for builds by C++ compilers;
24431   although this is not generally supported in C code supporting it here
24432   has little cost and some practical benefit (sr 110532).  */
24433#ifdef __cplusplus
24434extern "C"
24435#endif
24436char opendir (void);
24437int
24438main (void)
24439{
24440return opendir ();
24441  ;
24442  return 0;
24443}
24444_ACEOF
24445for ac_lib in '' dir
24446do
24447  if test -z "$ac_lib"; then
24448    ac_res="none required"
24449  else
24450    ac_res=-l$ac_lib
24451    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24452  fi
24453  if ac_fn_c_try_link "$LINENO"
24454then :
24455  ac_cv_search_opendir=$ac_res
24456fi
24457rm -f core conftest.err conftest.$ac_objext conftest.beam \
24458    conftest$ac_exeext
24459  if test ${ac_cv_search_opendir+y}
24460then :
24461  break
24462fi
24463done
24464if test ${ac_cv_search_opendir+y}
24465then :
24466
24467else case e in #(
24468  e) ac_cv_search_opendir=no ;;
24469esac
24470fi
24471rm conftest.$ac_ext
24472LIBS=$ac_func_search_save_LIBS ;;
24473esac
24474fi
24475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
24476printf "%s\n" "$ac_cv_search_opendir" >&6; }
24477ac_res=$ac_cv_search_opendir
24478if test "$ac_res" != no
24479then :
24480  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24481
24482fi
24483
24484else
24485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
24486printf %s "checking for library containing opendir... " >&6; }
24487if test ${ac_cv_search_opendir+y}
24488then :
24489  printf %s "(cached) " >&6
24490else case e in #(
24491  e) ac_func_search_save_LIBS=$LIBS
24492cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24493/* end confdefs.h.  */
24494
24495/* Override any GCC internal prototype to avoid an error.
24496   Use char because int might match the return type of a GCC
24497   builtin and then its argument prototype would still apply.
24498   The 'extern "C"' is for builds by C++ compilers;
24499   although this is not generally supported in C code supporting it here
24500   has little cost and some practical benefit (sr 110532).  */
24501#ifdef __cplusplus
24502extern "C"
24503#endif
24504char opendir (void);
24505int
24506main (void)
24507{
24508return opendir ();
24509  ;
24510  return 0;
24511}
24512_ACEOF
24513for ac_lib in '' x
24514do
24515  if test -z "$ac_lib"; then
24516    ac_res="none required"
24517  else
24518    ac_res=-l$ac_lib
24519    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24520  fi
24521  if ac_fn_c_try_link "$LINENO"
24522then :
24523  ac_cv_search_opendir=$ac_res
24524fi
24525rm -f core conftest.err conftest.$ac_objext conftest.beam \
24526    conftest$ac_exeext
24527  if test ${ac_cv_search_opendir+y}
24528then :
24529  break
24530fi
24531done
24532if test ${ac_cv_search_opendir+y}
24533then :
24534
24535else case e in #(
24536  e) ac_cv_search_opendir=no ;;
24537esac
24538fi
24539rm conftest.$ac_ext
24540LIBS=$ac_func_search_save_LIBS ;;
24541esac
24542fi
24543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
24544printf "%s\n" "$ac_cv_search_opendir" >&6; }
24545ac_res=$ac_cv_search_opendir
24546if test "$ac_res" != no
24547then :
24548  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24549
24550fi
24551
24552fi
24553
24554# Autoupdate added the next two lines to ensure that your configure
24555# script's behavior did not change.  They are probably safe to remove.
24556
24557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
24558printf %s "checking for egrep... " >&6; }
24559if test ${ac_cv_path_EGREP+y}
24560then :
24561  printf %s "(cached) " >&6
24562else case e in #(
24563  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
24564   then ac_cv_path_EGREP="$GREP -E"
24565   else
24566     if test -z "$EGREP"; then
24567  ac_path_EGREP_found=false
24568  # Loop through the user's path and test for each of PROGNAME-LIST
24569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
24571do
24572  IFS=$as_save_IFS
24573  case $as_dir in #(((
24574    '') as_dir=./ ;;
24575    */) ;;
24576    *) as_dir=$as_dir/ ;;
24577  esac
24578    for ac_prog in egrep
24579   do
24580    for ac_exec_ext in '' $ac_executable_extensions; do
24581      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
24582      as_fn_executable_p "$ac_path_EGREP" || continue
24583# Check for GNU ac_path_EGREP and select it if it is found.
24584  # Check for GNU $ac_path_EGREP
24585case `"$ac_path_EGREP" --version 2>&1` in #(
24586*GNU*)
24587  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
24588#(
24589*)
24590  ac_count=0
24591  printf %s 0123456789 >"conftest.in"
24592  while :
24593  do
24594    cat "conftest.in" "conftest.in" >"conftest.tmp"
24595    mv "conftest.tmp" "conftest.in"
24596    cp "conftest.in" "conftest.nl"
24597    printf "%s\n" 'EGREP' >> "conftest.nl"
24598    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
24599    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
24600    as_fn_arith $ac_count + 1 && ac_count=$as_val
24601    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
24602      # Best one so far, save it but keep looking for a better one
24603      ac_cv_path_EGREP="$ac_path_EGREP"
24604      ac_path_EGREP_max=$ac_count
24605    fi
24606    # 10*(2^10) chars as input seems more than enough
24607    test $ac_count -gt 10 && break
24608  done
24609  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
24610esac
24611
24612      $ac_path_EGREP_found && break 3
24613    done
24614  done
24615  done
24616IFS=$as_save_IFS
24617  if test -z "$ac_cv_path_EGREP"; then
24618    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
24619  fi
24620else
24621  ac_cv_path_EGREP=$EGREP
24622fi
24623
24624   fi ;;
24625esac
24626fi
24627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
24628printf "%s\n" "$ac_cv_path_EGREP" >&6; }
24629 EGREP="$ac_cv_path_EGREP"
24630
24631         EGREP_TRADITIONAL=$EGREP
24632 ac_cv_path_EGREP_TRADITIONAL=$EGREP
24633
24634
24635ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
24636if test "x$ac_cv_header_fcntl_h" = xyes
24637then :
24638  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
24639
24640fi
24641ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24642if test "x$ac_cv_header_stdlib_h" = xyes
24643then :
24644  printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
24645
24646fi
24647ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
24648if test "x$ac_cv_header_string_h" = xyes
24649then :
24650  printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
24651
24652fi
24653ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
24654if test "x$ac_cv_header_unistd_h" = xyes
24655then :
24656  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
24657
24658fi
24659ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
24660if test "x$ac_cv_header_dlfcn_h" = xyes
24661then :
24662  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
24663
24664fi
24665ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
24666if test "x$ac_cv_header_stropts_h" = xyes
24667then :
24668  printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
24669
24670fi
24671ac_fn_c_check_header_compile "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
24672if test "x$ac_cv_header_fnmatch_h" = xyes
24673then :
24674  printf "%s\n" "#define HAVE_FNMATCH_H 1" >>confdefs.h
24675
24676fi
24677ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
24678if test "x$ac_cv_header_sys_mkdev_h" = xyes
24679then :
24680  printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
24681
24682fi
24683ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
24684if test "x$ac_cv_header_sys_sysmacros_h" = xyes
24685then :
24686  printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
24687
24688fi
24689ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
24690if test "x$ac_cv_header_sys_utsname_h" = xyes
24691then :
24692  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
24693
24694fi
24695
24696
24697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24698printf %s "checking for an ANSI C-conforming const... " >&6; }
24699if test ${ac_cv_c_const+y}
24700then :
24701  printf %s "(cached) " >&6
24702else case e in #(
24703  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24704/* end confdefs.h.  */
24705
24706int
24707main (void)
24708{
24709
24710#ifndef __cplusplus
24711  /* Ultrix mips cc rejects this sort of thing.  */
24712  typedef int charset[2];
24713  const charset cs = { 0, 0 };
24714  /* SunOS 4.1.1 cc rejects this.  */
24715  char const *const *pcpcc;
24716  char **ppc;
24717  /* NEC SVR4.0.2 mips cc rejects this.  */
24718  struct point {int x, y;};
24719  static struct point const zero = {0,0};
24720  /* IBM XL C 1.02.0.0 rejects this.
24721     It does not let you subtract one const X* pointer from another in
24722     an arm of an if-expression whose if-part is not a constant
24723     expression */
24724  const char *g = "string";
24725  pcpcc = &g + (g ? g-g : 0);
24726  /* HPUX 7.0 cc rejects these. */
24727  ++pcpcc;
24728  ppc = (char**) pcpcc;
24729  pcpcc = (char const *const *) ppc;
24730  { /* SCO 3.2v4 cc rejects this sort of thing.  */
24731    char tx;
24732    char *t = &tx;
24733    char const *s = 0 ? (char *) 0 : (char const *) 0;
24734
24735    *t++ = 0;
24736    if (s) return 0;
24737  }
24738  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24739    int x[] = {25, 17};
24740    const int *foo = &x[0];
24741    ++foo;
24742  }
24743  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24744    typedef const int *iptr;
24745    iptr p = 0;
24746    ++p;
24747  }
24748  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
24749       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24750    struct s { int j; const int *ap[3]; } bx;
24751    struct s *b = &bx; b->j = 5;
24752  }
24753  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24754    const int foo = 10;
24755    if (!foo) return 0;
24756  }
24757  return !cs[0] && !zero.x;
24758#endif
24759
24760  ;
24761  return 0;
24762}
24763_ACEOF
24764if ac_fn_c_try_compile "$LINENO"
24765then :
24766  ac_cv_c_const=yes
24767else case e in #(
24768  e) ac_cv_c_const=no ;;
24769esac
24770fi
24771rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
24772esac
24773fi
24774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24775printf "%s\n" "$ac_cv_c_const" >&6; }
24776if test $ac_cv_c_const = no; then
24777
24778printf "%s\n" "#define const /**/" >>confdefs.h
24779
24780fi
24781
24782
24783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5
24784printf %s "checking for typeof syntax and keyword spelling... " >&6; }
24785if test ${ac_cv_c_typeof+y}
24786then :
24787  printf %s "(cached) " >&6
24788else case e in #(
24789  e) ac_cv_c_typeof=no
24790     for ac_kw in typeof __typeof__ no; do
24791       test $ac_kw = no && break
24792       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24793/* end confdefs.h.  */
24794
24795int
24796main (void)
24797{
24798
24799	   int value;
24800	   typedef struct {
24801		   char a [1
24802			   + ! (($ac_kw (value))
24803				(($ac_kw (value)) 0 < ($ac_kw (value)) -1
24804				 ? ($ac_kw (value)) - 1
24805				 : ~ (~ ($ac_kw (value)) 0
24806				      << sizeof ($ac_kw (value)))))]; }
24807	      ac__typeof_type_;
24808	   return
24809	     (! ((void) ((ac__typeof_type_ *) 0), 0));
24810
24811  ;
24812  return 0;
24813}
24814_ACEOF
24815if ac_fn_c_try_compile "$LINENO"
24816then :
24817  ac_cv_c_typeof=$ac_kw
24818fi
24819rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24820       test $ac_cv_c_typeof != no && break
24821     done ;;
24822esac
24823fi
24824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5
24825printf "%s\n" "$ac_cv_c_typeof" >&6; }
24826  if test $ac_cv_c_typeof != no; then
24827
24828printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h
24829
24830    if test $ac_cv_c_typeof != typeof; then
24831
24832printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h
24833
24834    fi
24835  fi
24836
24837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24838printf %s "checking whether byte ordering is bigendian... " >&6; }
24839if test ${ac_cv_c_bigendian+y}
24840then :
24841  printf %s "(cached) " >&6
24842else case e in #(
24843  e) ac_cv_c_bigendian=unknown
24844    # See if we're dealing with a universal compiler.
24845    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24846/* end confdefs.h.  */
24847#ifndef __APPLE_CC__
24848	       not a universal capable compiler
24849	     #endif
24850	     typedef int dummy;
24851
24852_ACEOF
24853if ac_fn_c_try_compile "$LINENO"
24854then :
24855
24856	# Check for potential -arch flags.  It is not universal unless
24857	# there are at least two -arch flags with different values.
24858	ac_arch=
24859	ac_prev=
24860	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24861	 if test -n "$ac_prev"; then
24862	   case $ac_word in
24863	     i?86 | x86_64 | ppc | ppc64)
24864	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24865		 ac_arch=$ac_word
24866	       else
24867		 ac_cv_c_bigendian=universal
24868		 break
24869	       fi
24870	       ;;
24871	   esac
24872	   ac_prev=
24873	 elif test "x$ac_word" = "x-arch"; then
24874	   ac_prev=arch
24875	 fi
24876       done
24877fi
24878rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24879    if test $ac_cv_c_bigendian = unknown; then
24880      # See if sys/param.h defines the BYTE_ORDER macro.
24881      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24882/* end confdefs.h.  */
24883#include <sys/types.h>
24884	     #include <sys/param.h>
24885
24886int
24887main (void)
24888{
24889#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
24890		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
24891		     && LITTLE_ENDIAN)
24892	      bogus endian macros
24893	     #endif
24894
24895  ;
24896  return 0;
24897}
24898_ACEOF
24899if ac_fn_c_try_compile "$LINENO"
24900then :
24901  # It does; now see whether it defined to BIG_ENDIAN or not.
24902	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24903/* end confdefs.h.  */
24904#include <sys/types.h>
24905		#include <sys/param.h>
24906
24907int
24908main (void)
24909{
24910#if BYTE_ORDER != BIG_ENDIAN
24911		 not big endian
24912		#endif
24913
24914  ;
24915  return 0;
24916}
24917_ACEOF
24918if ac_fn_c_try_compile "$LINENO"
24919then :
24920  ac_cv_c_bigendian=yes
24921else case e in #(
24922  e) ac_cv_c_bigendian=no ;;
24923esac
24924fi
24925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24926fi
24927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24928    fi
24929    if test $ac_cv_c_bigendian = unknown; then
24930      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24931      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932/* end confdefs.h.  */
24933#include <limits.h>
24934
24935int
24936main (void)
24937{
24938#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24939	      bogus endian macros
24940	     #endif
24941
24942  ;
24943  return 0;
24944}
24945_ACEOF
24946if ac_fn_c_try_compile "$LINENO"
24947then :
24948  # It does; now see whether it defined to _BIG_ENDIAN or not.
24949	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24950/* end confdefs.h.  */
24951#include <limits.h>
24952
24953int
24954main (void)
24955{
24956#ifndef _BIG_ENDIAN
24957		 not big endian
24958		#endif
24959
24960  ;
24961  return 0;
24962}
24963_ACEOF
24964if ac_fn_c_try_compile "$LINENO"
24965then :
24966  ac_cv_c_bigendian=yes
24967else case e in #(
24968  e) ac_cv_c_bigendian=no ;;
24969esac
24970fi
24971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24972fi
24973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24974    fi
24975    if test $ac_cv_c_bigendian = unknown; then
24976      # Compile a test program.
24977      if test "$cross_compiling" = yes
24978then :
24979  # Try to guess by grepping values from an object file.
24980	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981/* end confdefs.h.  */
24982unsigned short int ascii_mm[] =
24983		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24984		unsigned short int ascii_ii[] =
24985		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24986		int use_ascii (int i) {
24987		  return ascii_mm[i] + ascii_ii[i];
24988		}
24989		unsigned short int ebcdic_ii[] =
24990		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24991		unsigned short int ebcdic_mm[] =
24992		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24993		int use_ebcdic (int i) {
24994		  return ebcdic_mm[i] + ebcdic_ii[i];
24995		}
24996		int
24997		main (int argc, char **argv)
24998		{
24999		  /* Intimidate the compiler so that it does not
25000		     optimize the arrays away.  */
25001		  char *p = argv[0];
25002		  ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
25003		  ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
25004		  return use_ascii (argc) == use_ebcdic (*p);
25005		}
25006_ACEOF
25007if ac_fn_c_try_link "$LINENO"
25008then :
25009  if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
25010	      ac_cv_c_bigendian=yes
25011	    fi
25012	    if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
25013	      if test "$ac_cv_c_bigendian" = unknown; then
25014		ac_cv_c_bigendian=no
25015	      else
25016		# finding both strings is unlikely to happen, but who knows?
25017		ac_cv_c_bigendian=unknown
25018	      fi
25019	    fi
25020fi
25021rm -f core conftest.err conftest.$ac_objext conftest.beam \
25022    conftest$ac_exeext conftest.$ac_ext
25023else case e in #(
25024  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25025/* end confdefs.h.  */
25026$ac_includes_default
25027int
25028main (void)
25029{
25030
25031	     /* Are we little or big endian?  From Harbison&Steele.  */
25032	     union
25033	     {
25034	       long int l;
25035	       char c[sizeof (long int)];
25036	     } u;
25037	     u.l = 1;
25038	     return u.c[sizeof (long int) - 1] == 1;
25039
25040  ;
25041  return 0;
25042}
25043_ACEOF
25044if ac_fn_c_try_run "$LINENO"
25045then :
25046  ac_cv_c_bigendian=no
25047else case e in #(
25048  e) ac_cv_c_bigendian=yes ;;
25049esac
25050fi
25051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25052  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
25053esac
25054fi
25055
25056    fi ;;
25057esac
25058fi
25059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25060printf "%s\n" "$ac_cv_c_bigendian" >&6; }
25061 case $ac_cv_c_bigendian in #(
25062   yes)
25063
25064printf "%s\n" "#define X_BYTE_ORDER X_BIG_ENDIAN" >>confdefs.h
25065;; #(
25066   no)
25067
25068printf "%s\n" "#define X_BYTE_ORDER X_LITTLE_ENDIAN" >>confdefs.h
25069 ;; #(
25070   universal)
25071
25072printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25073
25074     ;; #(
25075   *)
25076     as_fn_error $? "unknown endianness
25077 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25078 esac
25079
25080
25081# The cast to long int works around a bug in the HP C Compiler
25082# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25083# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
25084# This bug is HP SR number 8606223364.
25085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
25086printf %s "checking size of unsigned long... " >&6; }
25087if test ${ac_cv_sizeof_unsigned_long+y}
25088then :
25089  printf %s "(cached) " >&6
25090else case e in #(
25091  e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"
25092then :
25093
25094else case e in #(
25095  e) if test "$ac_cv_type_unsigned_long" = yes; then
25096     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
25097printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
25098as_fn_error 77 "cannot compute sizeof (unsigned long)
25099See 'config.log' for more details" "$LINENO" 5; }
25100   else
25101     ac_cv_sizeof_unsigned_long=0
25102   fi ;;
25103esac
25104fi
25105 ;;
25106esac
25107fi
25108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
25109printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
25110
25111
25112
25113printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
25114
25115
25116if test "$ac_cv_sizeof_unsigned_long" = 8; then
25117
25118printf "%s\n" "#define _XSERVER64 1" >>confdefs.h
25119
25120fi
25121
25122
25123  ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
25124"
25125if test "x$ac_cv_type_pid_t" = xyes
25126then :
25127
25128else case e in #(
25129  e)                                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25130/* end confdefs.h.  */
25131
25132          #if defined _WIN64 && !defined __CYGWIN__
25133          LLP64
25134          #endif
25135
25136int
25137main (void)
25138{
25139
25140  ;
25141  return 0;
25142}
25143
25144_ACEOF
25145if ac_fn_c_try_compile "$LINENO"
25146then :
25147  ac_pid_type='int'
25148else case e in #(
25149  e) ac_pid_type='__int64' ;;
25150esac
25151fi
25152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25153
25154printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
25155
25156     ;;
25157esac
25158fi
25159
25160
25161
25162ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25163if test "x$ac_cv_func_dlopen" = xyes
25164then :
25165
25166else case e in #(
25167  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25168printf %s "checking for dlopen in -ldl... " >&6; }
25169if test ${ac_cv_lib_dl_dlopen+y}
25170then :
25171  printf %s "(cached) " >&6
25172else case e in #(
25173  e) ac_check_lib_save_LIBS=$LIBS
25174LIBS="-ldl  $LIBS"
25175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25176/* end confdefs.h.  */
25177
25178/* Override any GCC internal prototype to avoid an error.
25179   Use char because int might match the return type of a GCC
25180   builtin and then its argument prototype would still apply.
25181   The 'extern "C"' is for builds by C++ compilers;
25182   although this is not generally supported in C code supporting it here
25183   has little cost and some practical benefit (sr 110532).  */
25184#ifdef __cplusplus
25185extern "C"
25186#endif
25187char dlopen (void);
25188int
25189main (void)
25190{
25191return dlopen ();
25192  ;
25193  return 0;
25194}
25195_ACEOF
25196if ac_fn_c_try_link "$LINENO"
25197then :
25198  ac_cv_lib_dl_dlopen=yes
25199else case e in #(
25200  e) ac_cv_lib_dl_dlopen=no ;;
25201esac
25202fi
25203rm -f core conftest.err conftest.$ac_objext conftest.beam \
25204    conftest$ac_exeext conftest.$ac_ext
25205LIBS=$ac_check_lib_save_LIBS ;;
25206esac
25207fi
25208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25209printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
25210if test "x$ac_cv_lib_dl_dlopen" = xyes
25211then :
25212  DLOPEN_LIBS="-ldl"
25213fi
25214 ;;
25215esac
25216fi
25217
25218
25219
25220ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
25221if test "x$ac_cv_func_backtrace" = xyes
25222then :
25223  printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
25224
25225fi
25226ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
25227if test "x$ac_cv_func_geteuid" = xyes
25228then :
25229  printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
25230
25231fi
25232ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
25233if test "x$ac_cv_func_getuid" = xyes
25234then :
25235  printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
25236
25237fi
25238ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
25239if test "x$ac_cv_func_issetugid" = xyes
25240then :
25241  printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
25242
25243fi
25244ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
25245if test "x$ac_cv_func_getresuid" = xyes
25246then :
25247  printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
25248
25249fi
25250ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
25251if test "x$ac_cv_func_getdtablesize" = xyes
25252then :
25253  printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
25254
25255fi
25256ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
25257if test "x$ac_cv_func_getifaddrs" = xyes
25258then :
25259  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
25260
25261fi
25262ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
25263if test "x$ac_cv_func_getpeereid" = xyes
25264then :
25265  printf "%s\n" "#define HAVE_GETPEEREID 1" >>confdefs.h
25266
25267fi
25268ac_fn_c_check_func "$LINENO" "getpeerucred" "ac_cv_func_getpeerucred"
25269if test "x$ac_cv_func_getpeerucred" = xyes
25270then :
25271  printf "%s\n" "#define HAVE_GETPEERUCRED 1" >>confdefs.h
25272
25273fi
25274ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
25275if test "x$ac_cv_func_getprogname" = xyes
25276then :
25277  printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
25278
25279fi
25280ac_fn_c_check_func "$LINENO" "getzoneid" "ac_cv_func_getzoneid"
25281if test "x$ac_cv_func_getzoneid" = xyes
25282then :
25283  printf "%s\n" "#define HAVE_GETZONEID 1" >>confdefs.h
25284
25285fi
25286ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
25287if test "x$ac_cv_func_mmap" = xyes
25288then :
25289  printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
25290
25291fi
25292ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
25293if test "x$ac_cv_func_posix_fallocate" = xyes
25294then :
25295  printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
25296
25297fi
25298ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
25299if test "x$ac_cv_func_seteuid" = xyes
25300then :
25301  printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
25302
25303fi
25304ac_fn_c_check_func "$LINENO" "shmctl64" "ac_cv_func_shmctl64"
25305if test "x$ac_cv_func_shmctl64" = xyes
25306then :
25307  printf "%s\n" "#define HAVE_SHMCTL64 1" >>confdefs.h
25308
25309fi
25310ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
25311if test "x$ac_cv_func_strncasecmp" = xyes
25312then :
25313  printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
25314
25315fi
25316ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
25317if test "x$ac_cv_func_vasprintf" = xyes
25318then :
25319  printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
25320
25321fi
25322ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25323if test "x$ac_cv_func_vsnprintf" = xyes
25324then :
25325  printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
25326
25327fi
25328ac_fn_c_check_func "$LINENO" "walkcontext" "ac_cv_func_walkcontext"
25329if test "x$ac_cv_func_walkcontext" = xyes
25330then :
25331  printf "%s\n" "#define HAVE_WALKCONTEXT 1" >>confdefs.h
25332
25333fi
25334ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer"
25335if test "x$ac_cv_func_setitimer" = xyes
25336then :
25337  printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
25338
25339fi
25340ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
25341if test "x$ac_cv_func_poll" = xyes
25342then :
25343  printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
25344
25345fi
25346ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
25347if test "x$ac_cv_func_epoll_create1" = xyes
25348then :
25349  printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
25350
25351fi
25352ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
25353if test "x$ac_cv_func_mkostemp" = xyes
25354then :
25355  printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
25356
25357fi
25358ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
25359if test "x$ac_cv_func_memfd_create" = xyes
25360then :
25361  printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
25362
25363fi
25364ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
25365if test "x$ac_cv_func_sigprocmask" = xyes
25366then :
25367  printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
25368
25369fi
25370ac_fn_c_check_func "$LINENO" "isastream" "ac_cv_func_isastream"
25371if test "x$ac_cv_func_isastream" = xyes
25372then :
25373  printf "%s\n" "#define HAVE_ISASTREAM 1" >>confdefs.h
25374
25375fi
25376
25377
25378ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
25379if test "x$ac_cv_func_reallocarray" = xyes
25380then :
25381  printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
25382
25383else case e in #(
25384  e) case " $LIBOBJS " in
25385  *" reallocarray.$ac_objext "* ) ;;
25386  *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
25387 ;;
25388esac
25389 ;;
25390esac
25391fi
25392ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
25393if test "x$ac_cv_func_strcasecmp" = xyes
25394then :
25395  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
25396
25397else case e in #(
25398  e) case " $LIBOBJS " in
25399  *" strcasecmp.$ac_objext "* ) ;;
25400  *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
25401 ;;
25402esac
25403 ;;
25404esac
25405fi
25406ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
25407if test "x$ac_cv_func_strcasestr" = xyes
25408then :
25409  printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
25410
25411else case e in #(
25412  e) case " $LIBOBJS " in
25413  *" strcasestr.$ac_objext "* ) ;;
25414  *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
25415 ;;
25416esac
25417 ;;
25418esac
25419fi
25420ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
25421if test "x$ac_cv_func_strlcat" = xyes
25422then :
25423  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
25424
25425else case e in #(
25426  e) case " $LIBOBJS " in
25427  *" strlcat.$ac_objext "* ) ;;
25428  *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
25429 ;;
25430esac
25431 ;;
25432esac
25433fi
25434ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
25435if test "x$ac_cv_func_strlcpy" = xyes
25436then :
25437  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
25438
25439else case e in #(
25440  e) case " $LIBOBJS " in
25441  *" strlcpy.$ac_objext "* ) ;;
25442  *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
25443 ;;
25444esac
25445 ;;
25446esac
25447fi
25448ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
25449if test "x$ac_cv_func_strndup" = xyes
25450then :
25451  printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
25452
25453else case e in #(
25454  e) case " $LIBOBJS " in
25455  *" strndup.$ac_objext "* ) ;;
25456  *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
25457 ;;
25458esac
25459 ;;
25460esac
25461fi
25462ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
25463if test "x$ac_cv_func_timingsafe_memcmp" = xyes
25464then :
25465  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
25466
25467else case e in #(
25468  e) case " $LIBOBJS " in
25469  *" timingsafe_memcmp.$ac_objext "* ) ;;
25470  *) LIBOBJS="$LIBOBJS timingsafe_memcmp.$ac_objext"
25471 ;;
25472esac
25473 ;;
25474esac
25475fi
25476
25477 if test "x$ac_cv_func_poll" = "xyes"; then
25478  POLL_TRUE=
25479  POLL_FALSE='#'
25480else
25481  POLL_TRUE='#'
25482  POLL_FALSE=
25483fi
25484
25485
25486# Checks for non-standard functions and fallback to libbsd if we can
25487# We only check for arc4random_buf, because if we have that, we don't
25488# need/use getentropy.
25489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25490/* end confdefs.h.  */
25491
25492/* Override any GCC internal prototype to avoid an error.
25493   Use char because int might match the return type of a GCC
25494   builtin and then its argument prototype would still apply.
25495   The 'extern "C"' is for builds by C++ compilers;
25496   although this is not generally supported in C code supporting it here
25497   has little cost and some practical benefit (sr 110532).  */
25498#ifdef __cplusplus
25499extern "C"
25500#endif
25501char arc4random_buf (void);
25502int
25503main (void)
25504{
25505return arc4random_buf ();
25506  ;
25507  return 0;
25508}
25509_ACEOF
25510if ac_fn_c_try_link "$LINENO"
25511then :
25512  TRY_LIBBSD="no"
25513else case e in #(
25514  e) TRY_LIBBSD="yes" ;;
25515esac
25516fi
25517rm -f core conftest.err conftest.$ac_objext conftest.beam \
25518    conftest$ac_exeext conftest.$ac_ext
25519if test "x$TRY_LIBBSD" = "xyes"
25520then :
25521
25522pkg_failed=no
25523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbsd-overlay" >&5
25524printf %s "checking for libbsd-overlay... " >&6; }
25525
25526if test -n "$LIBBSD_CFLAGS"; then
25527    pkg_cv_LIBBSD_CFLAGS="$LIBBSD_CFLAGS"
25528 elif test -n "$PKG_CONFIG"; then
25529    if test -n "$PKG_CONFIG" && \
25530    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
25531  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
25532  ac_status=$?
25533  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534  test $ac_status = 0; }; then
25535  pkg_cv_LIBBSD_CFLAGS=`$PKG_CONFIG --cflags "libbsd-overlay" 2>/dev/null`
25536		      test "x$?" != "x0" && pkg_failed=yes
25537else
25538  pkg_failed=yes
25539fi
25540 else
25541    pkg_failed=untried
25542fi
25543if test -n "$LIBBSD_LIBS"; then
25544    pkg_cv_LIBBSD_LIBS="$LIBBSD_LIBS"
25545 elif test -n "$PKG_CONFIG"; then
25546    if test -n "$PKG_CONFIG" && \
25547    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbsd-overlay\""; } >&5
25548  ($PKG_CONFIG --exists --print-errors "libbsd-overlay") 2>&5
25549  ac_status=$?
25550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25551  test $ac_status = 0; }; then
25552  pkg_cv_LIBBSD_LIBS=`$PKG_CONFIG --libs "libbsd-overlay" 2>/dev/null`
25553		      test "x$?" != "x0" && pkg_failed=yes
25554else
25555  pkg_failed=yes
25556fi
25557 else
25558    pkg_failed=untried
25559fi
25560
25561
25562
25563if test $pkg_failed = yes; then
25564        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25565printf "%s\n" "no" >&6; }
25566
25567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25568        _pkg_short_errors_supported=yes
25569else
25570        _pkg_short_errors_supported=no
25571fi
25572        if test $_pkg_short_errors_supported = yes; then
25573                LIBBSD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbsd-overlay" 2>&1`
25574        else
25575                LIBBSD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbsd-overlay" 2>&1`
25576        fi
25577        # Put the nasty error message in config.log where it belongs
25578        echo "$LIBBSD_PKG_ERRORS" >&5
25579
25580        :
25581elif test $pkg_failed = untried; then
25582        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25583printf "%s\n" "no" >&6; }
25584        :
25585else
25586        LIBBSD_CFLAGS=$pkg_cv_LIBBSD_CFLAGS
25587        LIBBSD_LIBS=$pkg_cv_LIBBSD_LIBS
25588        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25589printf "%s\n" "yes" >&6; }
25590
25591	CFLAGS="$CFLAGS $LIBBSD_CFLAGS"
25592	LIBS="$LIBS $LIBBSD_LIBS"
25593
25594fi
25595fi
25596
25597ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
25598" "$ac_c_undeclared_builtin_options" "CFLAGS"
25599if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
25600then :
25601  ac_have_decl=1
25602else case e in #(
25603  e) ac_have_decl=0 ;;
25604esac
25605fi
25606printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
25607
25608
25609
25610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
25611printf %s "checking for egrep -e... " >&6; }
25612if test ${ac_cv_path_EGREP_TRADITIONAL+y}
25613then :
25614  printf %s "(cached) " >&6
25615else case e in #(
25616  e) if test -z "$EGREP_TRADITIONAL"; then
25617  ac_path_EGREP_TRADITIONAL_found=false
25618  # Loop through the user's path and test for each of PROGNAME-LIST
25619  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25620for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
25621do
25622  IFS=$as_save_IFS
25623  case $as_dir in #(((
25624    '') as_dir=./ ;;
25625    */) ;;
25626    *) as_dir=$as_dir/ ;;
25627  esac
25628    for ac_prog in grep ggrep
25629   do
25630    for ac_exec_ext in '' $ac_executable_extensions; do
25631      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
25632      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
25633# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
25634  # Check for GNU $ac_path_EGREP_TRADITIONAL
25635case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
25636*GNU*)
25637  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
25638#(
25639*)
25640  ac_count=0
25641  printf %s 0123456789 >"conftest.in"
25642  while :
25643  do
25644    cat "conftest.in" "conftest.in" >"conftest.tmp"
25645    mv "conftest.tmp" "conftest.in"
25646    cp "conftest.in" "conftest.nl"
25647    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
25648    "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
25649    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25650    as_fn_arith $ac_count + 1 && ac_count=$as_val
25651    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
25652      # Best one so far, save it but keep looking for a better one
25653      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
25654      ac_path_EGREP_TRADITIONAL_max=$ac_count
25655    fi
25656    # 10*(2^10) chars as input seems more than enough
25657    test $ac_count -gt 10 && break
25658  done
25659  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
25660esac
25661
25662      $ac_path_EGREP_TRADITIONAL_found && break 3
25663    done
25664  done
25665  done
25666IFS=$as_save_IFS
25667  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
25668    :
25669  fi
25670else
25671  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
25672fi
25673
25674    if test "$ac_cv_path_EGREP_TRADITIONAL"
25675then :
25676  ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
25677else case e in #(
25678  e) if test -z "$EGREP_TRADITIONAL"; then
25679  ac_path_EGREP_TRADITIONAL_found=false
25680  # Loop through the user's path and test for each of PROGNAME-LIST
25681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
25683do
25684  IFS=$as_save_IFS
25685  case $as_dir in #(((
25686    '') as_dir=./ ;;
25687    */) ;;
25688    *) as_dir=$as_dir/ ;;
25689  esac
25690    for ac_prog in egrep
25691   do
25692    for ac_exec_ext in '' $ac_executable_extensions; do
25693      ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
25694      as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
25695# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
25696  # Check for GNU $ac_path_EGREP_TRADITIONAL
25697case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
25698*GNU*)
25699  ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
25700#(
25701*)
25702  ac_count=0
25703  printf %s 0123456789 >"conftest.in"
25704  while :
25705  do
25706    cat "conftest.in" "conftest.in" >"conftest.tmp"
25707    mv "conftest.tmp" "conftest.in"
25708    cp "conftest.in" "conftest.nl"
25709    printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
25710    "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
25711    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
25712    as_fn_arith $ac_count + 1 && ac_count=$as_val
25713    if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
25714      # Best one so far, save it but keep looking for a better one
25715      ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
25716      ac_path_EGREP_TRADITIONAL_max=$ac_count
25717    fi
25718    # 10*(2^10) chars as input seems more than enough
25719    test $ac_count -gt 10 && break
25720  done
25721  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
25722esac
25723
25724      $ac_path_EGREP_TRADITIONAL_found && break 3
25725    done
25726  done
25727  done
25728IFS=$as_save_IFS
25729  if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
25730    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
25731  fi
25732else
25733  ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
25734fi
25735 ;;
25736esac
25737fi ;;
25738esac
25739fi
25740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
25741printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
25742 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
25743
25744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SO_PEERCRED in sys/socket.h" >&5
25745printf %s "checking for SO_PEERCRED in sys/socket.h... " >&6; }
25746if test ${xorg_cv_sys_have_so_peercred+y}
25747then :
25748  printf %s "(cached) " >&6
25749else case e in #(
25750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25751/* end confdefs.h.  */
25752
25753#include <sys/types.h>
25754#include <sys/socket.h>
25755#ifdef SO_PEERCRED
25756yes_have_so_peercred
25757#endif
25758
25759_ACEOF
25760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25761  $EGREP_TRADITIONAL "yes_have_so_peercred" >/dev/null 2>&1
25762then :
25763  xorg_cv_sys_have_so_peercred=yes
25764else case e in #(
25765  e) xorg_cv_sys_have_so_peercred=no ;;
25766esac
25767fi
25768rm -rf conftest*
25769 ;;
25770esac
25771fi
25772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_sys_have_so_peercred" >&5
25773printf "%s\n" "$xorg_cv_sys_have_so_peercred" >&6; }
25774
25775if test "x$ac_cv_func_getpeereid" = xno && test "x$ac_cv_func_getpeerucred" = xno && test "x$xorg_cv_sys_have_so_peercred" = xno ; then
25776
25777printf "%s\n" "#define NO_LOCAL_CLIENT_CRED 1" >>confdefs.h
25778
25779fi
25780
25781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25782printf %s "checking for sqrt in -lm... " >&6; }
25783if test ${ac_cv_lib_m_sqrt+y}
25784then :
25785  printf %s "(cached) " >&6
25786else case e in #(
25787  e) ac_check_lib_save_LIBS=$LIBS
25788LIBS="-lm  $LIBS"
25789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25790/* end confdefs.h.  */
25791
25792/* Override any GCC internal prototype to avoid an error.
25793   Use char because int might match the return type of a GCC
25794   builtin and then its argument prototype would still apply.
25795   The 'extern "C"' is for builds by C++ compilers;
25796   although this is not generally supported in C code supporting it here
25797   has little cost and some practical benefit (sr 110532).  */
25798#ifdef __cplusplus
25799extern "C"
25800#endif
25801char sqrt (void);
25802int
25803main (void)
25804{
25805return sqrt ();
25806  ;
25807  return 0;
25808}
25809_ACEOF
25810if ac_fn_c_try_link "$LINENO"
25811then :
25812  ac_cv_lib_m_sqrt=yes
25813else case e in #(
25814  e) ac_cv_lib_m_sqrt=no ;;
25815esac
25816fi
25817rm -f core conftest.err conftest.$ac_objext conftest.beam \
25818    conftest$ac_exeext conftest.$ac_ext
25819LIBS=$ac_check_lib_save_LIBS ;;
25820esac
25821fi
25822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25823printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
25824if test "x$ac_cv_lib_m_sqrt" = xyes
25825then :
25826  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
25827
25828  LIBS="-lm $LIBS"
25829
25830fi
25831
25832ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt"
25833if test "x$ac_cv_func_cbrt" = xyes
25834then :
25835  printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h
25836
25837fi
25838
25839
25840# Check whether --enable-agp was given.
25841if test ${enable_agp+y}
25842then :
25843  enableval=$enable_agp; AGP=$enableval
25844else case e in #(
25845  e) AGP=auto ;;
25846esac
25847fi
25848
25849if test "x$AGP" = "xauto" ; then
25850           for ac_header in linux/agpgart.h sys/agpio.h sys/agpgart.h
25851do :
25852  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
25853ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25854if eval test \"x\$"$as_ac_Header"\" = x"yes"
25855then :
25856  cat >>confdefs.h <<_ACEOF
25857#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
25858_ACEOF
25859 AGP=yes
25860fi
25861
25862done
25863fi
25864 if test "x$AGP" = xyes; then
25865  AGP_TRUE=
25866  AGP_FALSE='#'
25867else
25868  AGP_TRUE='#'
25869  AGP_FALSE=
25870fi
25871
25872
25873       for ac_header in linux/fb.h
25874do :
25875  ac_fn_c_check_header_compile "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
25876if test "x$ac_cv_header_linux_fb_h" = xyes
25877then :
25878  printf "%s\n" "#define HAVE_LINUX_FB_H 1" >>confdefs.h
25879 FBDEV=yes
25880fi
25881
25882done
25883 if test "x$FBDEV" = xyes; then
25884  FBDEVHW_TRUE=
25885  FBDEVHW_FALSE='#'
25886else
25887  FBDEVHW_TRUE='#'
25888  FBDEVHW_FALSE=
25889fi
25890
25891
25892       for ac_header in sys/linker.h
25893do :
25894  ac_fn_c_check_header_compile "$LINENO" "sys/linker.h" "ac_cv_header_sys_linker_h" "#include <sys/param.h>
25895"
25896if test "x$ac_cv_header_sys_linker_h" = xyes
25897then :
25898  printf "%s\n" "#define HAVE_SYS_LINKER_H 1" >>confdefs.h
25899 ac_cv_sys_linker_h=yes
25900else case e in #(
25901  e) ac_cv_sys_linker_h=no ;;
25902esac
25903fi
25904
25905done
25906 if test "x$ac_cv_sys_linker_h" = xyes; then
25907  FREEBSD_KLDLOAD_TRUE=
25908  FREEBSD_KLDLOAD_FALSE='#'
25909else
25910  FREEBSD_KLDLOAD_TRUE='#'
25911  FREEBSD_KLDLOAD_FALSE=
25912fi
25913
25914
25915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SYSV IPC" >&5
25916printf %s "checking for SYSV IPC... " >&6; }
25917if test ${ac_cv_sysv_ipc+y}
25918then :
25919  printf %s "(cached) " >&6
25920else case e in #(
25921  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25922/* end confdefs.h.  */
25923
25924#include <sys/types.h>
25925#include <sys/ipc.h>
25926#include <sys/shm.h>
25927#include <sys/stat.h>
25928
25929int
25930main (void)
25931{
25932
25933{
25934    int id;
25935    id = shmget(IPC_PRIVATE, 512, S_IRUSR | S_IWUSR);
25936    if (id < 0) return -1;
25937    return shmctl(id, IPC_RMID, 0);
25938}
25939  ;
25940  return 0;
25941}
25942_ACEOF
25943if ac_fn_c_try_link "$LINENO"
25944then :
25945  ac_cv_sysv_ipc=yes
25946else case e in #(
25947  e) ac_cv_sysv_ipc=no ;;
25948esac
25949fi
25950rm -f core conftest.err conftest.$ac_objext conftest.beam \
25951    conftest$ac_exeext conftest.$ac_ext ;;
25952esac
25953fi
25954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sysv_ipc" >&5
25955printf "%s\n" "$ac_cv_sysv_ipc" >&6; }
25956if test "x$ac_cv_sysv_ipc" = xyes; then
25957
25958printf "%s\n" "#define HAVE_SYSV_IPC 1" >>confdefs.h
25959
25960fi
25961
25962if test -c /dev/xf86 ; then
25963
25964printf "%s\n" "#define HAS_APERTURE_DRV 1" >>confdefs.h
25965
25966fi
25967
25968ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
25969if test "x$ac_cv_header_execinfo_h" = xyes
25970then :
25971
25972    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lc" >&5
25973printf %s "checking for backtrace in -lc... " >&6; }
25974if test ${ac_cv_lib_c_backtrace+y}
25975then :
25976  printf %s "(cached) " >&6
25977else case e in #(
25978  e) ac_check_lib_save_LIBS=$LIBS
25979LIBS="-lc  $LIBS"
25980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25981/* end confdefs.h.  */
25982
25983/* Override any GCC internal prototype to avoid an error.
25984   Use char because int might match the return type of a GCC
25985   builtin and then its argument prototype would still apply.
25986   The 'extern "C"' is for builds by C++ compilers;
25987   although this is not generally supported in C code supporting it here
25988   has little cost and some practical benefit (sr 110532).  */
25989#ifdef __cplusplus
25990extern "C"
25991#endif
25992char backtrace (void);
25993int
25994main (void)
25995{
25996return backtrace ();
25997  ;
25998  return 0;
25999}
26000_ACEOF
26001if ac_fn_c_try_link "$LINENO"
26002then :
26003  ac_cv_lib_c_backtrace=yes
26004else case e in #(
26005  e) ac_cv_lib_c_backtrace=no ;;
26006esac
26007fi
26008rm -f core conftest.err conftest.$ac_objext conftest.beam \
26009    conftest$ac_exeext conftest.$ac_ext
26010LIBS=$ac_check_lib_save_LIBS ;;
26011esac
26012fi
26013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_backtrace" >&5
26014printf "%s\n" "$ac_cv_lib_c_backtrace" >&6; }
26015if test "x$ac_cv_lib_c_backtrace" = xyes
26016then :
26017
26018
26019printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
26020
26021
26022printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
26023
26024
26025fi
26026
26027
26028fi
26029
26030
26031DEFAULT_INT10="x86emu"
26032
26033
26034case $host_cpu in
26035  alpha*)
26036	ALPHA_VIDEO=yes
26037	case $host_os in
26038	        *freebsd*)	SYS_LIBS=-lio ;;
26039		*netbsd*)
26040printf "%s\n" "#define USE_ALPHA_PIO 1" >>confdefs.h
26041 ;;
26042	esac
26043	GLX_ARCH_DEFINES="-D__GLX_ALIGN64 -mieee"
26044	;;
26045  arm*)
26046	ARM_VIDEO=yes
26047	DEFAULT_INT10="stub"
26048	;;
26049  i*86)
26050	I386_VIDEO=yes
26051	case $host_os in
26052		*freebsd*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
26053 ;;
26054		*dragonfly*)	printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
26055 ;;
26056		*netbsd*)	printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
26057
26058				SYS_LIBS=-li386
26059				;;
26060		*openbsd*)	printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
26061
26062				SYS_LIBS=-li386
26063				;;
26064	esac
26065        ;;
26066  powerpc*)
26067	PPC_VIDEO=yes
26068	case $host_os in
26069		*freebsd*)	DEFAULT_INT10=stub ;;
26070	esac
26071	;;
26072  sparc*)
26073	SPARC64_VIDEO=yes
26074	BSD_ARCH_SOURCES="sparc64_video.c ioperm_noop.c"
26075	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
26076	;;
26077  x86_64*|amd64*)
26078	I386_VIDEO=yes
26079	case $host_os in
26080		*freebsd*)
26081printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
26082 ;;
26083		*dragonfly*)
26084printf "%s\n" "#define USE_DEV_IO 1" >>confdefs.h
26085 ;;
26086		*netbsd*)
26087printf "%s\n" "#define USE_I386_IOPL 1" >>confdefs.h
26088
26089				SYS_LIBS=-lx86_64
26090				;;
26091		*openbsd*)
26092printf "%s\n" "#define USE_AMD64_IOPL 1" >>confdefs.h
26093
26094				SYS_LIBS=-lamd64
26095				;;
26096	esac
26097	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
26098	;;
26099  ia64*)
26100  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
26101	;;
26102  s390*)
26103  	GLX_ARCH_DEFINES="-D__GLX_ALIGN64"
26104	;;
26105esac
26106
26107
26108 if test "x$ALPHA_VIDEO" = xyes; then
26109  ALPHA_VIDEO_TRUE=
26110  ALPHA_VIDEO_FALSE='#'
26111else
26112  ALPHA_VIDEO_TRUE='#'
26113  ALPHA_VIDEO_FALSE=
26114fi
26115
26116 if test "x$ARM_VIDEO" = xyes; then
26117  ARM_VIDEO_TRUE=
26118  ARM_VIDEO_FALSE='#'
26119else
26120  ARM_VIDEO_TRUE='#'
26121  ARM_VIDEO_FALSE=
26122fi
26123
26124 if test "x$I386_VIDEO" = xyes; then
26125  I386_VIDEO_TRUE=
26126  I386_VIDEO_FALSE='#'
26127else
26128  I386_VIDEO_TRUE='#'
26129  I386_VIDEO_FALSE=
26130fi
26131
26132 if test "x$PPC_VIDEO" = xyes; then
26133  PPC_VIDEO_TRUE=
26134  PPC_VIDEO_FALSE='#'
26135else
26136  PPC_VIDEO_TRUE='#'
26137  PPC_VIDEO_FALSE=
26138fi
26139
26140 if test "x$SPARC64_VIDEO" = xyes; then
26141  SPARC64_VIDEO_TRUE=
26142  SPARC64_VIDEO_FALSE='#'
26143else
26144  SPARC64_VIDEO_TRUE='#'
26145  SPARC64_VIDEO_FALSE=
26146fi
26147
26148
26149DRI=no
26150case $host_os in
26151  *freebsd* | *dragonfly*)
26152	case $host_os in
26153		kfreebsd*-gnu) ;;
26154		*)
26155printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
26156 ;;
26157	esac
26158
26159printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h
26160
26161
26162printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
26163
26164
26165printf "%s\n" "#define SYSCONS_SUPPORT 1" >>confdefs.h
26166
26167	DRI=yes
26168	;;
26169  *netbsd*)
26170
26171printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
26172
26173
26174printf "%s\n" "#define PCCONS_SUPPORT 1" >>confdefs.h
26175
26176
26177printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
26178
26179
26180printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h
26181
26182	DRI=yes
26183	;;
26184  *openbsd*)
26185
26186printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
26187
26188
26189printf "%s\n" "#define PCVT_SUPPORT 1" >>confdefs.h
26190
26191
26192printf "%s\n" "#define WSCONS_SUPPORT 1" >>confdefs.h
26193
26194	;;
26195  *linux*)
26196	DRI=yes
26197	;;
26198  *solaris*)
26199	DRI=yes
26200	;;
26201  darwin*)
26202
26203printf "%s\n" "#define CSRG_BASED 1" >>confdefs.h
26204
26205	;;
26206  cygwin*|mingw*)
26207	CFLAGS="$CFLAGS -DFD_SETSIZE=512"
26208	;;
26209esac
26210
26211PVMAJOR=`echo $PACKAGE_VERSION | cut -d . -f 1`
26212
26213VENDOR_RELEASE="((10000000) + (($PVMAJOR) * 100000) + (($PVM) * 1000) + $PVP)"
26214VENDOR_MAN_VERSION="Version ${PACKAGE_VERSION}"
26215
26216VENDOR_NAME="The X.Org Foundation"
26217VENDOR_NAME_SHORT="X.Org"
26218VENDOR_WEB="http://wiki.x.org"
26219
26220# Check whether --enable-werror was given.
26221if test ${enable_werror+y}
26222then :
26223  enableval=$enable_werror; as_fn_error $? "--enable-werror has been replaced by --enable-strict-compilation" "$LINENO" 5
26224fi
26225
26226
26227# Check whether --enable-debug was given.
26228if test ${enable_debug+y}
26229then :
26230  enableval=$enable_debug; DEBUGGING=$enableval
26231else case e in #(
26232  e) DEBUGGING=no ;;
26233esac
26234fi
26235
26236
26237# Check whether --with-int10 was given.
26238if test ${with_int10+y}
26239then :
26240  withval=$with_int10; INT10="$withval"
26241else case e in #(
26242  e) INT10="$DEFAULT_INT10" ;;
26243esac
26244fi
26245
26246
26247# Check whether --with-vendor-name was given.
26248if test ${with_vendor_name+y}
26249then :
26250  withval=$with_vendor_name;  VENDOR_NAME="$withval"
26251fi
26252
26253
26254# Check whether --with-vendor-name-short was given.
26255if test ${with_vendor_name_short+y}
26256then :
26257  withval=$with_vendor_name_short;  VENDOR_NAME_SHORT="$withval"
26258fi
26259
26260
26261# Check whether --with-vendor-web was given.
26262if test ${with_vendor_web+y}
26263then :
26264  withval=$with_vendor_web;  VENDOR_WEB="$withval"
26265fi
26266
26267
26268# Check whether --with-module-dir was given.
26269if test ${with_module_dir+y}
26270then :
26271  withval=$with_module_dir;  moduledir="$withval"
26272else case e in #(
26273  e)  moduledir="${libdir}/xorg/modules"  ;;
26274esac
26275fi
26276
26277
26278# Check whether --with-log-dir was given.
26279if test ${with_log_dir+y}
26280then :
26281  withval=$with_log_dir;  logdir="$withval"
26282else case e in #(
26283  e)  logdir="$localstatedir/log"  ;;
26284esac
26285fi
26286
26287
26288# Check whether --with-builder-addr was given.
26289if test ${with_builder_addr+y}
26290then :
26291  withval=$with_builder_addr;  BUILDERADDR="$withval"
26292else case e in #(
26293  e)  BUILDERADDR="xorg@lists.freedesktop.org"  ;;
26294esac
26295fi
26296
26297
26298# Check whether --with-builderstring was given.
26299if test ${with_builderstring+y}
26300then :
26301  withval=$with_builderstring;  BUILDERSTRING="$withval"
26302
26303fi
26304
26305# Check whether --enable-listen-tcp was given.
26306if test ${enable_listen_tcp+y}
26307then :
26308  enableval=$enable_listen_tcp; LISTEN_TCP=$enableval
26309else case e in #(
26310  e) LISTEN_TCP=no ;;
26311esac
26312fi
26313
26314# Check whether --enable-listen-unix was given.
26315if test ${enable_listen_unix+y}
26316then :
26317  enableval=$enable_listen_unix; LISTEN_UNIX=$enableval
26318else case e in #(
26319  e) LISTEN_UNIX=yes ;;
26320esac
26321fi
26322
26323
26324# Check whether --enable-listen-local was given.
26325if test ${enable_listen_local+y}
26326then :
26327  enableval=$enable_listen_local; LISTEN_LOCAL=$enableval
26328else case e in #(
26329  e) LISTEN_LOCAL=yes ;;
26330esac
26331fi
26332
26333
26334case $host_os in
26335    linux*)
26336        FALLBACK_INPUT_DRIVER="libinput"
26337        ;;
26338    *)
26339        FALLBACK_INPUT_DRIVER=""
26340        ;;
26341esac
26342
26343# Check whether --with-fallback-input-driver was given.
26344if test ${with_fallback_input_driver+y}
26345then :
26346  withval=$with_fallback_input_driver;  FALLBACK_INPUT_DRIVER=$withval
26347fi
26348
26349if test "x$FALLBACK_INPUT_DRIVER" = "xno"; then
26350    FALLBACK_INPUT_DRIVER=""
26351fi
26352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallback input driver" >&5
26353printf %s "checking for fallback input driver... " >&6; }
26354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FALLBACK_INPUT_DRIVER" >&5
26355printf "%s\n" "$FALLBACK_INPUT_DRIVER" >&6; }
26356
26357printf "%s\n" "#define FALLBACK_INPUT_DRIVER \"$FALLBACK_INPUT_DRIVER\"" >>confdefs.h
26358
26359
26360
26361
26362
26363	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
26364printf %s "checking for root directory for font files... " >&6; }
26365
26366# Check whether --with-fontrootdir was given.
26367if test ${with_fontrootdir+y}
26368then :
26369  withval=$with_fontrootdir; FONTROOTDIR="$withval"
26370fi
26371
26372	# if --with-fontrootdir not specified...
26373	if test "x${FONTROOTDIR}" = "x"; then
26374		FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
26375	fi
26376	# ...and if pkg-config didn't find fontdir in fontutil.pc...
26377	if test "x${FONTROOTDIR}" = "x"; then
26378		FONTROOTDIR="${datadir}/fonts/X11"
26379	fi
26380
26381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
26382printf "%s\n" "${FONTROOTDIR}" >&6; }
26383
26384
26385
26386
26387	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
26388printf %s "checking for directory for misc files... " >&6; }
26389
26390# Check whether --with-fontmiscdir was given.
26391if test ${with_fontmiscdir+y}
26392then :
26393  withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
26394else case e in #(
26395  e) FONTMISCDIR='${FONTROOTDIR}/misc' ;;
26396esac
26397fi
26398
26399
26400	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
26401printf "%s\n" "${FONTMISCDIR}" >&6; }
26402
26403
26404
26405
26406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
26407printf %s "checking for directory for OTF files... " >&6; }
26408
26409# Check whether --with-fontotfdir was given.
26410if test ${with_fontotfdir+y}
26411then :
26412  withval=$with_fontotfdir; FONTOTFDIR="${withval}"
26413else case e in #(
26414  e) FONTOTFDIR='${FONTROOTDIR}/OTF' ;;
26415esac
26416fi
26417
26418
26419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
26420printf "%s\n" "${FONTOTFDIR}" >&6; }
26421
26422
26423
26424
26425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
26426printf %s "checking for directory for TTF files... " >&6; }
26427
26428# Check whether --with-fontttfdir was given.
26429if test ${with_fontttfdir+y}
26430then :
26431  withval=$with_fontttfdir; FONTTTFDIR="${withval}"
26432else case e in #(
26433  e) FONTTTFDIR='${FONTROOTDIR}/TTF' ;;
26434esac
26435fi
26436
26437
26438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
26439printf "%s\n" "${FONTTTFDIR}" >&6; }
26440
26441
26442
26443
26444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
26445printf %s "checking for directory for Type1 files... " >&6; }
26446
26447# Check whether --with-fonttype1dir was given.
26448if test ${with_fonttype1dir+y}
26449then :
26450  withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
26451else case e in #(
26452  e) FONTTYPE1DIR='${FONTROOTDIR}/Type1' ;;
26453esac
26454fi
26455
26456
26457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
26458printf "%s\n" "${FONTTYPE1DIR}" >&6; }
26459
26460
26461
26462
26463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
26464printf %s "checking for directory for 75dpi files... " >&6; }
26465
26466# Check whether --with-font75dpidir was given.
26467if test ${with_font75dpidir+y}
26468then :
26469  withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
26470else case e in #(
26471  e) FONT75DPIDIR='${FONTROOTDIR}/75dpi' ;;
26472esac
26473fi
26474
26475
26476	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
26477printf "%s\n" "${FONT75DPIDIR}" >&6; }
26478
26479
26480
26481
26482	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
26483printf %s "checking for directory for 100dpi files... " >&6; }
26484
26485# Check whether --with-font100dpidir was given.
26486if test ${with_font100dpidir+y}
26487then :
26488  withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
26489else case e in #(
26490  e) FONT100DPIDIR='${FONTROOTDIR}/100dpi' ;;
26491esac
26492fi
26493
26494
26495	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
26496printf "%s\n" "${FONT100DPIDIR}" >&6; }
26497
26498
26499DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
26500case $host_os in
26501    darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
26502esac
26503
26504
26505# Check whether --with-default-font-path was given.
26506if test ${with_default_font_path+y}
26507then :
26508  withval=$with_default_font_path;  FONTPATH="$withval"
26509else case e in #(
26510  e)  FONTPATH="${DEFAULT_FONT_PATH}"  ;;
26511esac
26512fi
26513
26514
26515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
26516printf %s "checking for default font path... " >&6; }
26517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
26518printf "%s\n" "$FONTPATH" >&6; }
26519
26520
26521# Check whether --with-xkb-path was given.
26522if test ${with_xkb_path+y}
26523then :
26524  withval=$with_xkb_path;  XKBPATH="$withval"
26525else case e in #(
26526  e)  XKBPATH="auto"  ;;
26527esac
26528fi
26529
26530
26531# Check whether --with-xkb-output was given.
26532if test ${with_xkb_output+y}
26533then :
26534  withval=$with_xkb_output;  XKBOUTPUT="$withval"
26535else case e in #(
26536  e)  XKBOUTPUT="compiled"  ;;
26537esac
26538fi
26539
26540
26541# Check whether --with-default-xkb-rules was given.
26542if test ${with_default_xkb_rules+y}
26543then :
26544  withval=$with_default_xkb_rules;  XKB_DFLT_RULES="$withval"
26545else case e in #(
26546  e)  XKB_DFLT_RULES=""  ;;
26547esac
26548fi
26549
26550
26551# Check whether --with-default-xkb-model was given.
26552if test ${with_default_xkb_model+y}
26553then :
26554  withval=$with_default_xkb_model;  XKB_DFLT_MODEL="$withval"
26555else case e in #(
26556  e)  XKB_DFLT_MODEL="pc105"  ;;
26557esac
26558fi
26559
26560
26561# Check whether --with-default-xkb-layout was given.
26562if test ${with_default_xkb_layout+y}
26563then :
26564  withval=$with_default_xkb_layout;  XKB_DFLT_LAYOUT="$withval"
26565else case e in #(
26566  e)  XKB_DFLT_LAYOUT="us"  ;;
26567esac
26568fi
26569
26570
26571# Check whether --with-default-xkb-variant was given.
26572if test ${with_default_xkb_variant+y}
26573then :
26574  withval=$with_default_xkb_variant;  XKB_DFLT_VARIANT="$withval"
26575else case e in #(
26576  e)  XKB_DFLT_VARIANT=""  ;;
26577esac
26578fi
26579
26580
26581# Check whether --with-default-xkb-options was given.
26582if test ${with_default_xkb_options+y}
26583then :
26584  withval=$with_default_xkb_options;  XKB_DFLT_OPTIONS="$withval"
26585else case e in #(
26586  e)  XKB_DFLT_OPTIONS=""  ;;
26587esac
26588fi
26589
26590
26591# Check whether --with-serverconfig-path was given.
26592if test ${with_serverconfig_path+y}
26593then :
26594  withval=$with_serverconfig_path;  SERVERCONFIG="$withval"
26595else case e in #(
26596  e)  SERVERCONFIG="${libdir}/xorg"  ;;
26597esac
26598fi
26599
26600
26601# Check whether --with-apple-applications-dir was given.
26602if test ${with_apple_applications_dir+y}
26603then :
26604  withval=$with_apple_applications_dir;  APPLE_APPLICATIONS_DIR="${withval}"
26605else case e in #(
26606  e)  APPLE_APPLICATIONS_DIR="/Applications/Utilities"  ;;
26607esac
26608fi
26609
26610
26611
26612# Check whether --with-apple-application-name was given.
26613if test ${with_apple_application_name+y}
26614then :
26615  withval=$with_apple_application_name;  APPLE_APPLICATION_NAME="${withval}"
26616else case e in #(
26617  e)  APPLE_APPLICATION_NAME="X11"  ;;
26618esac
26619fi
26620
26621
26622
26623# Check whether --with-bundle-id-prefix was given.
26624if test ${with_bundle_id_prefix+y}
26625then :
26626  withval=$with_bundle_id_prefix;  BUNDLE_ID_PREFIX="${withval}"
26627fi
26628
26629
26630
26631printf "%s\n" "#define BUNDLE_ID_PREFIX \"$BUNDLE_ID_PREFIX\"" >>confdefs.h
26632
26633
26634
26635# Check whether --with-bundle-version was given.
26636if test ${with_bundle_version+y}
26637then :
26638  withval=$with_bundle_version;  BUNDLE_VERSION="${withval}"
26639else case e in #(
26640  e)  BUNDLE_VERSION="21.1.18"  ;;
26641esac
26642fi
26643
26644
26645
26646# Check whether --with-bundle-version-string was given.
26647if test ${with_bundle_version_string+y}
26648then :
26649  withval=$with_bundle_version_string;  BUNDLE_VERSION_STRING="${withval}"
26650else case e in #(
26651  e)  BUNDLE_VERSION_STRING="${PACKAGE_VERSION}"  ;;
26652esac
26653fi
26654
26655
26656# Check whether --enable-sparkle was given.
26657if test ${enable_sparkle+y}
26658then :
26659  enableval=$enable_sparkle;  XQUARTZ_SPARKLE="${enableval}"
26660else case e in #(
26661  e)  XQUARTZ_SPARKLE="no"  ;;
26662esac
26663fi
26664
26665
26666
26667# Check whether --with-sparkle-feed-url was given.
26668if test ${with_sparkle_feed_url+y}
26669then :
26670  withval=$with_sparkle_feed_url;  XQUARTZ_SPARKLE_FEED_URL="${withval}"
26671else case e in #(
26672  e)  XQUARTZ_SPARKLE_FEED_URL="https://www.xquartz.org/releases/sparkle/release.xml"  ;;
26673esac
26674fi
26675
26676
26677# Check whether --enable-visibility was given.
26678if test ${enable_visibility+y}
26679then :
26680  enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval
26681else case e in #(
26682  e) SYMBOL_VISIBILITY=auto ;;
26683esac
26684fi
26685
26686
26687
26688# Check whether --with-khronos-spec-dir was given.
26689if test ${with_khronos_spec_dir+y}
26690then :
26691  withval=$with_khronos_spec_dir; KHRONOS_SPEC_DIR="${withval}"
26692else case e in #(
26693  e) KHRONOS_SPEC_DIR=auto ;;
26694esac
26695fi
26696
26697
26698# Check whether --enable-composite was given.
26699if test ${enable_composite+y}
26700then :
26701  enableval=$enable_composite; COMPOSITE=$enableval
26702else case e in #(
26703  e) COMPOSITE=yes ;;
26704esac
26705fi
26706
26707# Check whether --enable-mitshm was given.
26708if test ${enable_mitshm+y}
26709then :
26710  enableval=$enable_mitshm; MITSHM=$enableval
26711else case e in #(
26712  e) MITSHM=auto ;;
26713esac
26714fi
26715
26716# Check whether --enable-xres was given.
26717if test ${enable_xres+y}
26718then :
26719  enableval=$enable_xres; RES=$enableval
26720else case e in #(
26721  e) RES=yes ;;
26722esac
26723fi
26724
26725# Check whether --enable-record was given.
26726if test ${enable_record+y}
26727then :
26728  enableval=$enable_record; RECORD=$enableval
26729else case e in #(
26730  e) RECORD=yes ;;
26731esac
26732fi
26733
26734# Check whether --enable-xv was given.
26735if test ${enable_xv+y}
26736then :
26737  enableval=$enable_xv; XV=$enableval
26738else case e in #(
26739  e) XV=yes ;;
26740esac
26741fi
26742
26743# Check whether --enable-xvmc was given.
26744if test ${enable_xvmc+y}
26745then :
26746  enableval=$enable_xvmc; XVMC=$enableval
26747else case e in #(
26748  e) XVMC=yes ;;
26749esac
26750fi
26751
26752# Check whether --enable-dga was given.
26753if test ${enable_dga+y}
26754then :
26755  enableval=$enable_dga; DGA=$enableval
26756else case e in #(
26757  e) DGA=auto ;;
26758esac
26759fi
26760
26761# Check whether --enable-screensaver was given.
26762if test ${enable_screensaver+y}
26763then :
26764  enableval=$enable_screensaver; SCREENSAVER=$enableval
26765else case e in #(
26766  e) SCREENSAVER=yes ;;
26767esac
26768fi
26769
26770# Check whether --enable-xdmcp was given.
26771if test ${enable_xdmcp+y}
26772then :
26773  enableval=$enable_xdmcp; XDMCP=$enableval
26774else case e in #(
26775  e) XDMCP=auto ;;
26776esac
26777fi
26778
26779# Check whether --enable-xdm-auth-1 was given.
26780if test ${enable_xdm_auth_1+y}
26781then :
26782  enableval=$enable_xdm_auth_1; XDMAUTH=$enableval
26783else case e in #(
26784  e) XDMAUTH=auto ;;
26785esac
26786fi
26787
26788# Check whether --enable-glx was given.
26789if test ${enable_glx+y}
26790then :
26791  enableval=$enable_glx; GLX=$enableval
26792else case e in #(
26793  e) GLX=yes ;;
26794esac
26795fi
26796
26797# Check whether --enable-dri was given.
26798if test ${enable_dri+y}
26799then :
26800  enableval=$enable_dri; DRI=$enableval
26801fi
26802
26803# Check whether --enable-dri2 was given.
26804if test ${enable_dri2+y}
26805then :
26806  enableval=$enable_dri2; DRI2=$enableval
26807else case e in #(
26808  e) DRI2=auto ;;
26809esac
26810fi
26811
26812# Check whether --enable-dri3 was given.
26813if test ${enable_dri3+y}
26814then :
26815  enableval=$enable_dri3; DRI3=$enableval
26816else case e in #(
26817  e) DRI3=auto ;;
26818esac
26819fi
26820
26821# Check whether --enable-present was given.
26822if test ${enable_present+y}
26823then :
26824  enableval=$enable_present; PRESENT=$enableval
26825else case e in #(
26826  e) PRESENT=yes ;;
26827esac
26828fi
26829
26830# Check whether --enable-xinerama was given.
26831if test ${enable_xinerama+y}
26832then :
26833  enableval=$enable_xinerama; XINERAMA=$enableval
26834else case e in #(
26835  e) XINERAMA=yes ;;
26836esac
26837fi
26838
26839# Check whether --enable-xf86vidmode was given.
26840if test ${enable_xf86vidmode+y}
26841then :
26842  enableval=$enable_xf86vidmode; XF86VIDMODE=$enableval
26843else case e in #(
26844  e) XF86VIDMODE=auto ;;
26845esac
26846fi
26847
26848# Check whether --enable-xace was given.
26849if test ${enable_xace+y}
26850then :
26851  enableval=$enable_xace; XACE=$enableval
26852else case e in #(
26853  e) XACE=yes ;;
26854esac
26855fi
26856
26857# Check whether --enable-xselinux was given.
26858if test ${enable_xselinux+y}
26859then :
26860  enableval=$enable_xselinux; XSELINUX=$enableval
26861else case e in #(
26862  e) XSELINUX=no ;;
26863esac
26864fi
26865
26866# Check whether --enable-xcsecurity was given.
26867if test ${enable_xcsecurity+y}
26868then :
26869  enableval=$enable_xcsecurity; XCSECURITY=$enableval
26870else case e in #(
26871  e) XCSECURITY=no ;;
26872esac
26873fi
26874
26875# Check whether --enable-dbe was given.
26876if test ${enable_dbe+y}
26877then :
26878  enableval=$enable_dbe; DBE=$enableval
26879else case e in #(
26880  e) DBE=yes ;;
26881esac
26882fi
26883
26884# Check whether --enable-xf86bigfont was given.
26885if test ${enable_xf86bigfont+y}
26886then :
26887  enableval=$enable_xf86bigfont; XF86BIGFONT=$enableval
26888else case e in #(
26889  e) XF86BIGFONT=no ;;
26890esac
26891fi
26892
26893# Check whether --enable-dpms was given.
26894if test ${enable_dpms+y}
26895then :
26896  enableval=$enable_dpms; DPMSExtension=$enableval
26897else case e in #(
26898  e) DPMSExtension=yes ;;
26899esac
26900fi
26901
26902# Check whether --enable-config-udev was given.
26903if test ${enable_config_udev+y}
26904then :
26905  enableval=$enable_config_udev; CONFIG_UDEV=$enableval
26906else case e in #(
26907  e) CONFIG_UDEV=auto ;;
26908esac
26909fi
26910
26911# Check whether --enable-config-udev-kms was given.
26912if test ${enable_config_udev_kms+y}
26913then :
26914  enableval=$enable_config_udev_kms; CONFIG_UDEV_KMS=$enableval
26915else case e in #(
26916  e) CONFIG_UDEV_KMS=auto ;;
26917esac
26918fi
26919
26920# Check whether --enable-config-hal was given.
26921if test ${enable_config_hal+y}
26922then :
26923  enableval=$enable_config_hal; CONFIG_HAL=$enableval
26924else case e in #(
26925  e) CONFIG_HAL=auto ;;
26926esac
26927fi
26928
26929# Check whether --enable-config-wscons was given.
26930if test ${enable_config_wscons+y}
26931then :
26932  enableval=$enable_config_wscons; CONFIG_WSCONS=$enableval
26933else case e in #(
26934  e) CONFIG_WSCONS=auto ;;
26935esac
26936fi
26937
26938# Check whether --enable-xfree86-utils was given.
26939if test ${enable_xfree86_utils+y}
26940then :
26941  enableval=$enable_xfree86_utils; XF86UTILS=$enableval
26942else case e in #(
26943  e) XF86UTILS=yes ;;
26944esac
26945fi
26946
26947# Check whether --enable-vgahw was given.
26948if test ${enable_vgahw+y}
26949then :
26950  enableval=$enable_vgahw; VGAHW=$enableval
26951else case e in #(
26952  e) VGAHW=yes ;;
26953esac
26954fi
26955
26956# Check whether --enable-int10-module was given.
26957if test ${enable_int10_module+y}
26958then :
26959  enableval=$enable_int10_module; INT10MODULE=$enableval
26960else case e in #(
26961  e) INT10MODULE=yes ;;
26962esac
26963fi
26964
26965# Check whether --enable-windowsdri was given.
26966if test ${enable_windowsdri+y}
26967then :
26968  enableval=$enable_windowsdri; WINDOWSDRI=$enableval
26969else case e in #(
26970  e) WINDOWSDRI=auto ;;
26971esac
26972fi
26973
26974# Check whether --enable-libdrm was given.
26975if test ${enable_libdrm+y}
26976then :
26977  enableval=$enable_libdrm; DRM=$enableval
26978else case e in #(
26979  e) DRM=yes ;;
26980esac
26981fi
26982
26983# Check whether --enable-clientids was given.
26984if test ${enable_clientids+y}
26985then :
26986  enableval=$enable_clientids; CLIENTIDS=$enableval
26987else case e in #(
26988  e) CLIENTIDS=yes ;;
26989esac
26990fi
26991
26992# Check whether --enable-pciaccess was given.
26993if test ${enable_pciaccess+y}
26994then :
26995  enableval=$enable_pciaccess; PCI=$enableval
26996else case e in #(
26997  e) PCI=yes ;;
26998esac
26999fi
27000
27001# Check whether --enable-linux_acpi was given.
27002if test ${enable_linux_acpi+y}
27003then :
27004  enableval=$enable_linux_acpi; enable_linux_acpi=$enableval
27005else case e in #(
27006  e) enable_linux_acpi=yes ;;
27007esac
27008fi
27009
27010# Check whether --enable-linux_apm was given.
27011if test ${enable_linux_apm+y}
27012then :
27013  enableval=$enable_linux_apm; enable_linux_apm=$enableval
27014else case e in #(
27015  e) enable_linux_apm=yes ;;
27016esac
27017fi
27018
27019# Check whether --enable-systemd-logind was given.
27020if test ${enable_systemd_logind+y}
27021then :
27022  enableval=$enable_systemd_logind; SYSTEMD_LOGIND=$enableval
27023else case e in #(
27024  e) SYSTEMD_LOGIND=auto ;;
27025esac
27026fi
27027
27028# Check whether --enable-suid-wrapper was given.
27029if test ${enable_suid_wrapper+y}
27030then :
27031  enableval=$enable_suid_wrapper; SUID_WRAPPER=$enableval
27032else case e in #(
27033  e) SUID_WRAPPER=no ;;
27034esac
27035fi
27036
27037
27038# Check whether --enable-xorg was given.
27039if test ${enable_xorg+y}
27040then :
27041  enableval=$enable_xorg; XORG=$enableval
27042else case e in #(
27043  e) XORG=auto ;;
27044esac
27045fi
27046
27047# Check whether --enable-xvfb was given.
27048if test ${enable_xvfb+y}
27049then :
27050  enableval=$enable_xvfb; XVFB=$enableval
27051else case e in #(
27052  e) XVFB=yes ;;
27053esac
27054fi
27055
27056# Check whether --enable-xnest was given.
27057if test ${enable_xnest+y}
27058then :
27059  enableval=$enable_xnest; XNEST=$enableval
27060else case e in #(
27061  e) XNEST=auto ;;
27062esac
27063fi
27064
27065# Check whether --enable-xquartz was given.
27066if test ${enable_xquartz+y}
27067then :
27068  enableval=$enable_xquartz; XQUARTZ=$enableval
27069else case e in #(
27070  e) XQUARTZ=auto ;;
27071esac
27072fi
27073
27074# Check whether --enable-standalone-xpbproxy was given.
27075if test ${enable_standalone_xpbproxy+y}
27076then :
27077  enableval=$enable_standalone_xpbproxy; STANDALONE_XPBPROXY=$enableval
27078else case e in #(
27079  e) STANDALONE_XPBPROXY=no ;;
27080esac
27081fi
27082
27083# Check whether --enable-xwin was given.
27084if test ${enable_xwin+y}
27085then :
27086  enableval=$enable_xwin; XWIN=$enableval
27087else case e in #(
27088  e) XWIN=auto ;;
27089esac
27090fi
27091
27092# Check whether --enable-glamor was given.
27093if test ${enable_glamor+y}
27094then :
27095  enableval=$enable_glamor; GLAMOR=$enableval
27096else case e in #(
27097  e) GLAMOR=auto ;;
27098esac
27099fi
27100
27101# Check whether --enable-xf86-input-inputtest was given.
27102if test ${enable_xf86_input_inputtest+y}
27103then :
27104  enableval=$enable_xf86_input_inputtest; XORG_DRIVER_INPUT_INPUTTEST=$enableval
27105else case e in #(
27106  e) XORG_DRIVER_INPUT_INPUTTEST=yes ;;
27107esac
27108fi
27109
27110# Check whether --enable-kdrive was given.
27111if test ${enable_kdrive+y}
27112then :
27113  enableval=$enable_kdrive; KDRIVE=$enableval
27114else case e in #(
27115  e) KDRIVE=no ;;
27116esac
27117fi
27118
27119# Check whether --enable-xephyr was given.
27120if test ${enable_xephyr+y}
27121then :
27122  enableval=$enable_xephyr; XEPHYR=$enableval
27123else case e in #(
27124  e) XEPHYR=auto ;;
27125esac
27126fi
27127
27128# Check whether --enable-libunwind was given.
27129if test ${enable_libunwind+y}
27130then :
27131  enableval=$enable_libunwind; LIBUNWIND="$enableval"
27132else case e in #(
27133  e) LIBUNWIND="auto" ;;
27134esac
27135fi
27136
27137# Check whether --enable-xshmfence was given.
27138if test ${enable_xshmfence+y}
27139then :
27140  enableval=$enable_xshmfence; XSHMFENCE="$enableval"
27141else case e in #(
27142  e) XSHMFENCE="auto" ;;
27143esac
27144fi
27145
27146
27147
27148# Check whether --enable-install-setuid was given.
27149if test ${enable_install_setuid+y}
27150then :
27151  enableval=$enable_install_setuid; SETUID=$enableval
27152else case e in #(
27153  e) SETUID=auto ;;
27154esac
27155fi
27156
27157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if we can install the Xorg server as root" >&5
27158printf %s "checking to see if we can install the Xorg server as root... " >&6; }
27159if test "x$SETUID" = "xauto" ; then
27160	case $host_os in
27161	    cygwin*)		SETUID="no"  ;;
27162	    mingw*)		SETUID="no"  ;;
27163	    darwin*)		SETUID="no"  ;;
27164	    *)
27165	   	case $host_cpu in
27166		    sparc)	SETUID="no"  ;;
27167		    *)		SETUID="yes" ;;
27168		esac
27169	esac
27170	if test "x$SETUID" = xyes; then
27171		touch testfile
27172		chown root testfile > /dev/null 2>&1 || SETUID="no"
27173		rm -f testfile
27174	fi
27175fi
27176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SETUID" >&5
27177printf "%s\n" "$SETUID" >&6; }
27178 if test "x$SETUID" = "xyes"; then
27179  INSTALL_SETUID_TRUE=
27180  INSTALL_SETUID_FALSE='#'
27181else
27182  INSTALL_SETUID_TRUE='#'
27183  INSTALL_SETUID_FALSE=
27184fi
27185
27186
27187
27188
27189# Transport selection macro from xtrans.m4
27190
27191
27192 case $host_os in
27193	mingw*)	unixdef="no"   ;;
27194	*)	unixdef="yes"  ;;
27195 esac
27196 # Check whether --enable-unix-transport was given.
27197if test ${enable_unix_transport+y}
27198then :
27199  enableval=$enable_unix_transport; UNIXCONN=$enableval
27200else case e in #(
27201  e) UNIXCONN=$unixdef ;;
27202esac
27203fi
27204
27205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
27206printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
27207 if test "$UNIXCONN" = "yes"; then
27208
27209printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
27210
27211 fi
27212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
27213printf "%s\n" "$UNIXCONN" >&6; }
27214 # Check whether --enable-tcp-transport was given.
27215if test ${enable_tcp_transport+y}
27216then :
27217  enableval=$enable_tcp_transport; TCPCONN=$enableval
27218else case e in #(
27219  e) TCPCONN=yes ;;
27220esac
27221fi
27222
27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
27224printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
27225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
27226printf "%s\n" "$TCPCONN" >&6; }
27227 if test "$TCPCONN" = "yes"; then
27228
27229printf "%s\n" "#define TCPCONN 1" >>confdefs.h
27230
27231
27232 # SVR4 hides these in libraries other than libc
27233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
27234printf %s "checking for library containing socket... " >&6; }
27235if test ${ac_cv_search_socket+y}
27236then :
27237  printf %s "(cached) " >&6
27238else case e in #(
27239  e) ac_func_search_save_LIBS=$LIBS
27240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27241/* end confdefs.h.  */
27242
27243/* Override any GCC internal prototype to avoid an error.
27244   Use char because int might match the return type of a GCC
27245   builtin and then its argument prototype would still apply.
27246   The 'extern "C"' is for builds by C++ compilers;
27247   although this is not generally supported in C code supporting it here
27248   has little cost and some practical benefit (sr 110532).  */
27249#ifdef __cplusplus
27250extern "C"
27251#endif
27252char socket (void);
27253int
27254main (void)
27255{
27256return socket ();
27257  ;
27258  return 0;
27259}
27260_ACEOF
27261for ac_lib in '' socket
27262do
27263  if test -z "$ac_lib"; then
27264    ac_res="none required"
27265  else
27266    ac_res=-l$ac_lib
27267    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27268  fi
27269  if ac_fn_c_try_link "$LINENO"
27270then :
27271  ac_cv_search_socket=$ac_res
27272fi
27273rm -f core conftest.err conftest.$ac_objext conftest.beam \
27274    conftest$ac_exeext
27275  if test ${ac_cv_search_socket+y}
27276then :
27277  break
27278fi
27279done
27280if test ${ac_cv_search_socket+y}
27281then :
27282
27283else case e in #(
27284  e) ac_cv_search_socket=no ;;
27285esac
27286fi
27287rm conftest.$ac_ext
27288LIBS=$ac_func_search_save_LIBS ;;
27289esac
27290fi
27291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
27292printf "%s\n" "$ac_cv_search_socket" >&6; }
27293ac_res=$ac_cv_search_socket
27294if test "$ac_res" != no
27295then :
27296  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27297
27298fi
27299
27300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
27301printf %s "checking for library containing gethostbyname... " >&6; }
27302if test ${ac_cv_search_gethostbyname+y}
27303then :
27304  printf %s "(cached) " >&6
27305else case e in #(
27306  e) ac_func_search_save_LIBS=$LIBS
27307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27308/* end confdefs.h.  */
27309
27310/* Override any GCC internal prototype to avoid an error.
27311   Use char because int might match the return type of a GCC
27312   builtin and then its argument prototype would still apply.
27313   The 'extern "C"' is for builds by C++ compilers;
27314   although this is not generally supported in C code supporting it here
27315   has little cost and some practical benefit (sr 110532).  */
27316#ifdef __cplusplus
27317extern "C"
27318#endif
27319char gethostbyname (void);
27320int
27321main (void)
27322{
27323return gethostbyname ();
27324  ;
27325  return 0;
27326}
27327_ACEOF
27328for ac_lib in '' nsl
27329do
27330  if test -z "$ac_lib"; then
27331    ac_res="none required"
27332  else
27333    ac_res=-l$ac_lib
27334    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27335  fi
27336  if ac_fn_c_try_link "$LINENO"
27337then :
27338  ac_cv_search_gethostbyname=$ac_res
27339fi
27340rm -f core conftest.err conftest.$ac_objext conftest.beam \
27341    conftest$ac_exeext
27342  if test ${ac_cv_search_gethostbyname+y}
27343then :
27344  break
27345fi
27346done
27347if test ${ac_cv_search_gethostbyname+y}
27348then :
27349
27350else case e in #(
27351  e) ac_cv_search_gethostbyname=no ;;
27352esac
27353fi
27354rm conftest.$ac_ext
27355LIBS=$ac_func_search_save_LIBS ;;
27356esac
27357fi
27358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
27359printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
27360ac_res=$ac_cv_search_gethostbyname
27361if test "$ac_res" != no
27362then :
27363  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27364
27365fi
27366
27367 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
27368   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
27369printf %s "checking for main in -lws2_32... " >&6; }
27370if test ${ac_cv_lib_ws2_32_main+y}
27371then :
27372  printf %s "(cached) " >&6
27373else case e in #(
27374  e) ac_check_lib_save_LIBS=$LIBS
27375LIBS="-lws2_32  $LIBS"
27376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27377/* end confdefs.h.  */
27378
27379
27380int
27381main (void)
27382{
27383return main ();
27384  ;
27385  return 0;
27386}
27387_ACEOF
27388if ac_fn_c_try_link "$LINENO"
27389then :
27390  ac_cv_lib_ws2_32_main=yes
27391else case e in #(
27392  e) ac_cv_lib_ws2_32_main=no ;;
27393esac
27394fi
27395rm -f core conftest.err conftest.$ac_objext conftest.beam \
27396    conftest$ac_exeext conftest.$ac_ext
27397LIBS=$ac_check_lib_save_LIBS ;;
27398esac
27399fi
27400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
27401printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
27402if test "x$ac_cv_lib_ws2_32_main" = xyes
27403then :
27404  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
27405
27406  LIBS="-lws2_32 $LIBS"
27407
27408fi
27409
27410 fi
27411
27412 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
27413 # Check whether --enable-ipv6 was given.
27414if test ${enable_ipv6+y}
27415then :
27416  enableval=$enable_ipv6; IPV6CONN=$enableval
27417else case e in #(
27418  e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
27419if test "x$ac_cv_func_getaddrinfo" = xyes
27420then :
27421  IPV6CONN=yes
27422else case e in #(
27423  e) IPV6CONN=no ;;
27424esac
27425fi
27426 ;;
27427esac
27428fi
27429
27430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
27431printf %s "checking if IPv6 support should be built... " >&6; }
27432 if test "$IPV6CONN" = "yes"; then
27433
27434printf "%s\n" "#define IPv6 1" >>confdefs.h
27435
27436 fi
27437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
27438printf "%s\n" "$IPV6CONN" >&6; }
27439
27440 # 4.3BSD-Reno added a new member to struct sockaddr_in
27441 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
27442#include <sys/types.h>
27443#include <sys/socket.h>
27444#include <netinet/in.h>
27445
27446"
27447if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
27448then :
27449
27450printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
27451
27452fi
27453
27454
27455 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
27456 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27457$ac_includes_default
27458#include <sys/socket.h>
27459"
27460if test "x$ac_cv_type_socklen_t" = xyes
27461then :
27462
27463printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
27464
27465
27466fi
27467
27468
27469 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
27470 # _XOPEN_SOURCE to get it (such as on Solaris)
27471 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
27472$ac_includes_default
27473#include <sys/socket.h>
27474
27475"
27476if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
27477then :
27478
27479fi
27480
27481 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
27482 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
27483     unset ac_cv_member_struct_msghdr_msg_control
27484     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
27485printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
27486     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
27487#define _XOPEN_SOURCE 600
27488$ac_includes_default
27489#include <sys/socket.h>
27490
27491"
27492if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
27493then :
27494
27495printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
27496
27497
27498fi
27499
27500 fi
27501 # If that didn't work, fall back to XPG5/UNIX98 with C89
27502 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
27503     unset ac_cv_member_struct_msghdr_msg_control
27504     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
27505printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
27506     ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
27507#define _XOPEN_SOURCE 500
27508$ac_includes_default
27509#include <sys/socket.h>
27510
27511"
27512if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
27513then :
27514
27515printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
27516
27517
27518fi
27519
27520 fi
27521
27522
27523
27524 fi
27525 case $host_os in
27526	solaris*)		localdef="yes" ;;
27527	*)			localdef="no"  ;;
27528 esac
27529 # Check whether --enable-local-transport was given.
27530if test ${enable_local_transport+y}
27531then :
27532  enableval=$enable_local_transport; LOCALCONN=$enableval
27533else case e in #(
27534  e) LOCALCONN=$localdef ;;
27535esac
27536fi
27537
27538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
27539printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
27540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
27541printf "%s\n" "$LOCALCONN" >&6; }
27542 if test "$LOCALCONN" = "yes"; then
27543
27544printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
27545
27546 fi
27547
27548 # Other functions Xtrans may need
27549 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
27550if test "x$ac_cv_func_strcasecmp" = xyes
27551then :
27552  printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
27553
27554fi
27555ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
27556if test "x$ac_cv_func_strlcpy" = xyes
27557then :
27558  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
27559
27560fi
27561
27562
27563
27564
27565# Secure RPC detection macro from xtrans.m4
27566
27567 # Check whether --enable-secure-rpc was given.
27568if test ${enable_secure_rpc+y}
27569then :
27570  enableval=$enable_secure_rpc; SECURE_RPC=$enableval
27571else case e in #(
27572  e) SECURE_RPC="try" ;;
27573esac
27574fi
27575
27576
27577 if test "x$SECURE_RPC" = "xyes" -o "x$SECURE_RPC" = "xtry" ; then
27578	FOUND_SECURE_RPC="no"
27579
27580  for ac_func in authdes_seccreate authdes_create
27581do :
27582  as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
27583ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27584if eval test \"x\$"$as_ac_var"\" = x"yes"
27585then :
27586  cat >>confdefs.h <<_ACEOF
27587#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
27588_ACEOF
27589 FOUND_SECURE_RPC="yes"
27590fi
27591
27592done
27593	if test "x$FOUND_SECURE_RPC" = "xno" ; then
27594		if test "x$SECURE_RPC" = "xyes" ; then
27595	as_fn_error $? "Secure RPC requested, but required functions not found" "$LINENO" 5
27596		fi
27597		SECURE_RPC="no"
27598	else
27599				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getsecretkey" >&5
27600printf %s "checking for library containing getsecretkey... " >&6; }
27601if test ${ac_cv_search_getsecretkey+y}
27602then :
27603  printf %s "(cached) " >&6
27604else case e in #(
27605  e) ac_func_search_save_LIBS=$LIBS
27606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27607/* end confdefs.h.  */
27608
27609/* Override any GCC internal prototype to avoid an error.
27610   Use char because int might match the return type of a GCC
27611   builtin and then its argument prototype would still apply.
27612   The 'extern "C"' is for builds by C++ compilers;
27613   although this is not generally supported in C code supporting it here
27614   has little cost and some practical benefit (sr 110532).  */
27615#ifdef __cplusplus
27616extern "C"
27617#endif
27618char getsecretkey (void);
27619int
27620main (void)
27621{
27622return getsecretkey ();
27623  ;
27624  return 0;
27625}
27626_ACEOF
27627for ac_lib in '' rpcsvc
27628do
27629  if test -z "$ac_lib"; then
27630    ac_res="none required"
27631  else
27632    ac_res=-l$ac_lib
27633    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27634  fi
27635  if ac_fn_c_try_link "$LINENO"
27636then :
27637  ac_cv_search_getsecretkey=$ac_res
27638fi
27639rm -f core conftest.err conftest.$ac_objext conftest.beam \
27640    conftest$ac_exeext
27641  if test ${ac_cv_search_getsecretkey+y}
27642then :
27643  break
27644fi
27645done
27646if test ${ac_cv_search_getsecretkey+y}
27647then :
27648
27649else case e in #(
27650  e) ac_cv_search_getsecretkey=no ;;
27651esac
27652fi
27653rm conftest.$ac_ext
27654LIBS=$ac_func_search_save_LIBS ;;
27655esac
27656fi
27657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getsecretkey" >&5
27658printf "%s\n" "$ac_cv_search_getsecretkey" >&6; }
27659ac_res=$ac_cv_search_getsecretkey
27660if test "$ac_res" != no
27661then :
27662  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27663
27664fi
27665
27666		SECURE_RPC="yes"
27667	fi
27668 fi
27669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Secure RPC authentication (\"SUN-DES-1\") should be supported" >&5
27670printf %s "checking if Secure RPC authentication (\"SUN-DES-1\") should be supported... " >&6; }
27671 if test "x$SECURE_RPC" = "xyes" ; then
27672
27673printf "%s\n" "#define SECURE_RPC 1" >>confdefs.h
27674
27675 fi
27676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SECURE_RPC" >&5
27677printf "%s\n" "$SECURE_RPC" >&6; }
27678
27679 if test "x$SECURE_RPC" = xyes; then
27680  SECURE_RPC_TRUE=
27681  SECURE_RPC_FALSE='#'
27682else
27683  SECURE_RPC_TRUE='#'
27684  SECURE_RPC_FALSE=
27685fi
27686
27687
27688 if test "x$INT10" = xvm86; then
27689  INT10_VM86_TRUE=
27690  INT10_VM86_FALSE='#'
27691else
27692  INT10_VM86_TRUE='#'
27693  INT10_VM86_FALSE=
27694fi
27695
27696 if test "x$INT10" = xx86emu; then
27697  INT10_X86EMU_TRUE=
27698  INT10_X86EMU_FALSE='#'
27699else
27700  INT10_X86EMU_TRUE='#'
27701  INT10_X86EMU_FALSE=
27702fi
27703
27704 if test "x$INT10" = xstub; then
27705  INT10_STUB_TRUE=
27706  INT10_STUB_FALSE='#'
27707else
27708  INT10_STUB_TRUE='#'
27709  INT10_STUB_FALSE=
27710fi
27711
27712
27713case $host_os in
27714	cygwin* | mingw*)
27715		CONFIG_HAL=no
27716		CONFIG_UDEV=no
27717		CONFIG_UDEV_KMS=no
27718		DGA=no
27719		DRM=no
27720		DRI2=no
27721		DRI3=no
27722		INT10MODULE=no
27723		PCI=no
27724		VGAHW=no
27725		XF86UTILS=no
27726		XF86VIDMODE=no
27727		XSELINUX=no
27728		SYMBOL_VISIBILITY=no
27729		;;
27730	darwin*)
27731		PCI=no
27732		INT10MODULE=no
27733		VGAHW=no
27734		DRM=no
27735		DRI2=no
27736		DRI3=no
27737
27738		if test x$XQUARTZ = xauto; then
27739			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xquartz" >&5
27740printf %s "checking whether to build Xquartz... " >&6; }
27741if test ${xorg_cv_Carbon_framework+y}
27742then :
27743  printf %s "(cached) " >&6
27744else case e in #(
27745  e)
27746		 		save_LDFLAGS=$LDFLAGS
27747				LDFLAGS="$LDFLAGS -framework Carbon"
27748				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27749/* end confdefs.h.  */
27750char FSFindFolder(); int main() { FSFindFolder(); return 0;}
27751_ACEOF
27752if ac_fn_c_try_link "$LINENO"
27753then :
27754  xorg_cv_Carbon_framework=yes
27755else case e in #(
27756  e) xorg_cv_Carbon_framework=no ;;
27757esac
27758fi
27759rm -f core conftest.err conftest.$ac_objext conftest.beam \
27760    conftest$ac_exeext conftest.$ac_ext
27761			        LDFLAGS=$save_LDFLAGS ;;
27762esac
27763fi
27764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_Carbon_framework" >&5
27765printf "%s\n" "$xorg_cv_Carbon_framework" >&6; }
27766
27767			if test "X$xorg_cv_Carbon_framework" = Xyes; then
27768				XQUARTZ=yes
27769			else
27770				XQUARTZ=no
27771			fi
27772		fi
27773
27774		if test "x$XQUARTZ" = xyes ; then
27775			XQUARTZ=yes
27776			XVFB=no
27777			XNEST=no
27778
27779			DGA=no
27780			DPMSExtension=no
27781			XF86VIDMODE=no
27782		fi
27783		;;
27784	gnu*)
27785		DRM=no
27786		DRI2=no
27787		DRI3=no
27788		;;
27789	*) XQUARTZ=no ;;
27790esac
27791
27792XEXT_INC='-I$(top_srcdir)/Xext'
27793XEXT_LIB='$(top_builddir)/Xext/libXext.la'
27794
27795VIDEOPROTO="videoproto"
27796COMPOSITEPROTO="compositeproto >= 0.4"
27797RECORDPROTO="recordproto >= 1.13.99.1"
27798SCRNSAVERPROTO="scrnsaverproto >= 1.1"
27799RESOURCEPROTO="resourceproto >= 1.2.0"
27800DRIPROTO="xf86driproto >= 2.1.0"
27801DRI2PROTO="dri2proto >= 2.8"
27802DRI3PROTO="dri3proto >= 1.2"
27803XINERAMAPROTO="xineramaproto"
27804BIGFONTPROTO="xf86bigfontproto >= 1.2.0"
27805DGAPROTO="xf86dgaproto >= 2.0.99.1"
27806GLPROTO="glproto >= 1.4.17"
27807VIDMODEPROTO="xf86vidmodeproto >= 2.2.99.1"
27808APPLEWMPROTO="applewmproto >= 1.4"
27809LIBXSHMFENCE="xshmfence >= 1.1"
27810
27811XPROTO="xproto >= 7.0.31"
27812RANDRPROTO="randrproto >= 1.6.0"
27813RENDERPROTO="renderproto >= 0.11"
27814XEXTPROTO="xextproto >= 7.2.99.901"
27815INPUTPROTO="inputproto >= 2.3.99.1"
27816KBPROTO="kbproto >= 1.0.3"
27817FONTSPROTO="fontsproto >= 2.1.3"
27818FIXESPROTO="fixesproto >= 6.0"
27819DAMAGEPROTO="damageproto >= 1.1"
27820XCMISCPROTO="xcmiscproto >= 1.2.0"
27821BIGREQSPROTO="bigreqsproto >= 1.1.0"
27822XTRANS="xtrans >= 1.3.5"
27823PRESENTPROTO="presentproto >= 1.2"
27824
27825LIBAPPLEWM="applewm >= 1.4"
27826LIBDRI="dri >= 7.8.0"
27827LIBDRM="libdrm >= 2.4.89"
27828LIBEGL="egl"
27829LIBGBM="gbm >= 10.2.0"
27830LIBGL="gl >= 1.2"
27831LIBXEXT="xext >= 1.0.99.4"
27832LIBXFONT="xfont2 >= 2.0.0"
27833LIBXI="xi >= 1.2.99.1"
27834LIBXTST="xtst >= 1.0.99.2"
27835LIBPCIACCESS="pciaccess >= 0.12.901"
27836LIBUDEV="libudev >= 143"
27837LIBSELINUX="libselinux >= 2.0.86"
27838LIBDBUS="dbus-1 >= 1.0"
27839LIBPIXMAN="pixman-1 >= 0.27.2"
27840LIBXCVT="libxcvt"
27841
27842
27843pkg_failed=no
27844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPIXMAN" >&5
27845printf %s "checking for $LIBPIXMAN... " >&6; }
27846
27847if test -n "$PIXMAN_CFLAGS"; then
27848    pkg_cv_PIXMAN_CFLAGS="$PIXMAN_CFLAGS"
27849 elif test -n "$PKG_CONFIG"; then
27850    if test -n "$PKG_CONFIG" && \
27851    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
27852  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
27853  ac_status=$?
27854  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27855  test $ac_status = 0; }; then
27856  pkg_cv_PIXMAN_CFLAGS=`$PKG_CONFIG --cflags "$LIBPIXMAN" 2>/dev/null`
27857		      test "x$?" != "x0" && pkg_failed=yes
27858else
27859  pkg_failed=yes
27860fi
27861 else
27862    pkg_failed=untried
27863fi
27864if test -n "$PIXMAN_LIBS"; then
27865    pkg_cv_PIXMAN_LIBS="$PIXMAN_LIBS"
27866 elif test -n "$PKG_CONFIG"; then
27867    if test -n "$PKG_CONFIG" && \
27868    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPIXMAN\""; } >&5
27869  ($PKG_CONFIG --exists --print-errors "$LIBPIXMAN") 2>&5
27870  ac_status=$?
27871  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27872  test $ac_status = 0; }; then
27873  pkg_cv_PIXMAN_LIBS=`$PKG_CONFIG --libs "$LIBPIXMAN" 2>/dev/null`
27874		      test "x$?" != "x0" && pkg_failed=yes
27875else
27876  pkg_failed=yes
27877fi
27878 else
27879    pkg_failed=untried
27880fi
27881
27882
27883
27884if test $pkg_failed = yes; then
27885        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27886printf "%s\n" "no" >&6; }
27887
27888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27889        _pkg_short_errors_supported=yes
27890else
27891        _pkg_short_errors_supported=no
27892fi
27893        if test $_pkg_short_errors_supported = yes; then
27894                PIXMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
27895        else
27896                PIXMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPIXMAN" 2>&1`
27897        fi
27898        # Put the nasty error message in config.log where it belongs
27899        echo "$PIXMAN_PKG_ERRORS" >&5
27900
27901        as_fn_error $? "Package requirements ($LIBPIXMAN) were not met:
27902
27903$PIXMAN_PKG_ERRORS
27904
27905Consider adjusting the PKG_CONFIG_PATH environment variable if you
27906installed software in a non-standard prefix.
27907
27908Alternatively, you may set the environment variables PIXMAN_CFLAGS
27909and PIXMAN_LIBS to avoid the need to call pkg-config.
27910See the pkg-config man page for more details." "$LINENO" 5
27911elif test $pkg_failed = untried; then
27912        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27913printf "%s\n" "no" >&6; }
27914        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
27915printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
27916as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27917is in your PATH or set the PKG_CONFIG environment variable to the full
27918path to pkg-config.
27919
27920Alternatively, you may set the environment variables PIXMAN_CFLAGS
27921and PIXMAN_LIBS to avoid the need to call pkg-config.
27922See the pkg-config man page for more details.
27923
27924To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27925See 'config.log' for more details" "$LINENO" 5; }
27926else
27927        PIXMAN_CFLAGS=$pkg_cv_PIXMAN_CFLAGS
27928        PIXMAN_LIBS=$pkg_cv_PIXMAN_LIBS
27929        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27930printf "%s\n" "yes" >&6; }
27931
27932fi
27933REQUIRED_LIBS="$REQUIRED_LIBS $LIBPIXMAN $LIBXFONT xau"
27934
27935SDK_REQUIRED_MODULES="$XPROTO $RANDRPROTO $RENDERPROTO $XEXTPROTO $INPUTPROTO $KBPROTO $FONTSPROTO $LIBPIXMAN"
27936# Make SDK_REQUIRED_MODULES available for inclusion in xorg-server.pc
27937
27938
27939ac_fn_check_decl "$LINENO" "PTHREAD_MUTEX_RECURSIVE" "ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" "#include <pthread.h>
27940" "$ac_c_undeclared_builtin_options" "CFLAGS"
27941if test "x$ac_cv_have_decl_PTHREAD_MUTEX_RECURSIVE" = xyes
27942then :
27943  HAVE_RECURSIVE_MUTEX=yes
27944else case e in #(
27945  e) HAVE_RECURSIVE_MUTEX=no ;;
27946esac
27947fi
27948
27949THREAD_DEFAULT=no
27950
27951if test "x$HAVE_RECURSIVE_MUTEX" = "xyes" ; then
27952	THREAD_DEFAULT=yes
27953fi
27954
27955case $host_os in
27956	mingw*) THREAD_DEFAULT=no  ;;
27957	*)
27958esac
27959
27960# Check whether --enable-input-thread was given.
27961if test ${enable_input_thread+y}
27962then :
27963  enableval=$enable_input_thread; INPUTTHREAD=$enableval
27964else case e in #(
27965  e) INPUTTHREAD=$THREAD_DEFAULT ;;
27966esac
27967fi
27968
27969
27970if test "x$INPUTTHREAD" = "xyes" ; then
27971
27972
27973ac_ext=c
27974ac_cpp='$CPP $CPPFLAGS'
27975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27977ac_compiler_gnu=$ac_cv_c_compiler_gnu
27978
27979ax_pthread_ok=no
27980
27981# We used to check for pthread.h first, but this fails if pthread.h
27982# requires special compiler flags (e.g. on True64 or Sequent).
27983# It gets checked for in the link test anyway.
27984
27985# First of all, check if the user has set any of the PTHREAD_LIBS,
27986# etcetera environment variables, and if threads linking works using
27987# them:
27988if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
27989        save_CFLAGS="$CFLAGS"
27990        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
27991        save_LIBS="$LIBS"
27992        LIBS="$PTHREAD_LIBS $LIBS"
27993        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
27994printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
27995        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27996/* end confdefs.h.  */
27997
27998/* Override any GCC internal prototype to avoid an error.
27999   Use char because int might match the return type of a GCC
28000   builtin and then its argument prototype would still apply.
28001   The 'extern "C"' is for builds by C++ compilers;
28002   although this is not generally supported in C code supporting it here
28003   has little cost and some practical benefit (sr 110532).  */
28004#ifdef __cplusplus
28005extern "C"
28006#endif
28007char pthread_join (void);
28008int
28009main (void)
28010{
28011return pthread_join ();
28012  ;
28013  return 0;
28014}
28015_ACEOF
28016if ac_fn_c_try_link "$LINENO"
28017then :
28018  ax_pthread_ok=yes
28019fi
28020rm -f core conftest.err conftest.$ac_objext conftest.beam \
28021    conftest$ac_exeext conftest.$ac_ext
28022        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
28023printf "%s\n" "$ax_pthread_ok" >&6; }
28024        if test x"$ax_pthread_ok" = xno; then
28025                PTHREAD_LIBS=""
28026                PTHREAD_CFLAGS=""
28027        fi
28028        LIBS="$save_LIBS"
28029        CFLAGS="$save_CFLAGS"
28030fi
28031
28032# We must check for the threads library under a number of different
28033# names; the ordering is very important because some systems
28034# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
28035# libraries is broken (non-POSIX).
28036
28037# Create a list of thread flags to try.  Items starting with a "-" are
28038# C compiler flags, and other items are library names, except for "none"
28039# which indicates that we try without any flags at all, and "pthread-config"
28040# which is a program returning the flags for the Pth emulation library.
28041
28042ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
28043
28044# The ordering *is* (sometimes) important.  Some notes on the
28045# individual items follow:
28046
28047# pthreads: AIX (must check this before -lpthread)
28048# none: in case threads are in libc; should be tried before -Kthread and
28049#       other compiler flags to prevent continual compiler warnings
28050# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
28051# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
28052# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
28053# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
28054# -pthreads: Solaris/gcc
28055# -mthreads: Mingw32/gcc, Lynx/gcc
28056# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
28057#      doesn't hurt to check since this sometimes defines pthreads too;
28058#      also defines -D_REENTRANT)
28059#      ... -mt is also the pthreads flag for HP/aCC
28060# pthread: Linux, etcetera
28061# --thread-safe: KAI C++
28062# pthread-config: use pthread-config program (for GNU Pth library)
28063
28064case ${host_os} in
28065        solaris*)
28066
28067        # On Solaris (at least, for some versions), libc contains stubbed
28068        # (non-functional) versions of the pthreads routines, so link-based
28069        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
28070        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
28071        # a function called by this macro, so we could check for that, but
28072        # who knows whether they'll stub that too in a future libc.)  So,
28073        # we'll just look for -pthreads and -lpthread first:
28074
28075        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
28076        ;;
28077
28078        darwin*)
28079        ax_pthread_flags="-pthread $ax_pthread_flags"
28080        ;;
28081	netbsd*)
28082	# use libc stubs, don't link against libpthread, to allow
28083	# dynamic loading
28084	ax_pthread_flags=""
28085	;;
28086esac
28087
28088# Clang doesn't consider unrecognized options an error unless we specify
28089# -Werror. We throw in some extra Clang-specific options to ensure that
28090# this doesn't happen for GCC, which also accepts -Werror.
28091
28092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
28093printf %s "checking if compiler needs -Werror to reject unknown flags... " >&6; }
28094save_CFLAGS="$CFLAGS"
28095ax_pthread_extra_flags="-Werror"
28096CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
28097cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098/* end confdefs.h.  */
28099int foo(void);
28100int
28101main (void)
28102{
28103foo()
28104  ;
28105  return 0;
28106}
28107_ACEOF
28108if ac_fn_c_try_compile "$LINENO"
28109then :
28110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28111printf "%s\n" "yes" >&6; }
28112else case e in #(
28113  e) ax_pthread_extra_flags=
28114                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28115printf "%s\n" "no" >&6; } ;;
28116esac
28117fi
28118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
28119CFLAGS="$save_CFLAGS"
28120
28121if test x"$ax_pthread_ok" = xno; then
28122for flag in $ax_pthread_flags; do
28123
28124        case $flag in
28125                none)
28126                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
28127printf %s "checking whether pthreads work without any flags... " >&6; }
28128                ;;
28129
28130                -*)
28131                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
28132printf %s "checking whether pthreads work with $flag... " >&6; }
28133                PTHREAD_CFLAGS="$flag"
28134                ;;
28135
28136                pthread-config)
28137                # Extract the first word of "pthread-config", so it can be a program name with args.
28138set dummy pthread-config; ac_word=$2
28139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28140printf %s "checking for $ac_word... " >&6; }
28141if test ${ac_cv_prog_ax_pthread_config+y}
28142then :
28143  printf %s "(cached) " >&6
28144else case e in #(
28145  e) if test -n "$ax_pthread_config"; then
28146  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
28147else
28148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28149for as_dir in $PATH
28150do
28151  IFS=$as_save_IFS
28152  case $as_dir in #(((
28153    '') as_dir=./ ;;
28154    */) ;;
28155    *) as_dir=$as_dir/ ;;
28156  esac
28157    for ac_exec_ext in '' $ac_executable_extensions; do
28158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28159    ac_cv_prog_ax_pthread_config="yes"
28160    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28161    break 2
28162  fi
28163done
28164  done
28165IFS=$as_save_IFS
28166
28167  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
28168fi ;;
28169esac
28170fi
28171ax_pthread_config=$ac_cv_prog_ax_pthread_config
28172if test -n "$ax_pthread_config"; then
28173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
28174printf "%s\n" "$ax_pthread_config" >&6; }
28175else
28176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28177printf "%s\n" "no" >&6; }
28178fi
28179
28180
28181                if test x"$ax_pthread_config" = xno; then continue; fi
28182                PTHREAD_CFLAGS="`pthread-config --cflags`"
28183                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
28184                ;;
28185
28186                *)
28187                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
28188printf %s "checking for the pthreads library -l$flag... " >&6; }
28189                PTHREAD_LIBS="-l$flag"
28190                ;;
28191        esac
28192
28193        save_LIBS="$LIBS"
28194        save_CFLAGS="$CFLAGS"
28195        LIBS="$PTHREAD_LIBS $LIBS"
28196        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
28197
28198        # Check for various functions.  We must include pthread.h,
28199        # since some functions may be macros.  (On the Sequent, we
28200        # need a special flag -Kthread to make this header compile.)
28201        # We check for pthread_join because it is in -lpthread on IRIX
28202        # while pthread_create is in libc.  We check for pthread_attr_init
28203        # due to DEC craziness with -lpthreads.  We check for
28204        # pthread_cleanup_push because it is one of the few pthread
28205        # functions on Solaris that doesn't have a non-functional libc stub.
28206        # We try pthread_create on general principles.
28207        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28208/* end confdefs.h.  */
28209#include <pthread.h>
28210                        static void routine(void *a) { a = 0; }
28211                        static void *start_routine(void *a) { return a; }
28212int
28213main (void)
28214{
28215pthread_t th; pthread_attr_t attr;
28216                        pthread_create(&th, 0, start_routine, 0);
28217                        pthread_join(th, 0);
28218                        pthread_attr_init(&attr);
28219                        pthread_cleanup_push(routine, 0);
28220                        pthread_cleanup_pop(0) /* ; */
28221  ;
28222  return 0;
28223}
28224_ACEOF
28225if ac_fn_c_try_link "$LINENO"
28226then :
28227  ax_pthread_ok=yes
28228fi
28229rm -f core conftest.err conftest.$ac_objext conftest.beam \
28230    conftest$ac_exeext conftest.$ac_ext
28231
28232        LIBS="$save_LIBS"
28233        CFLAGS="$save_CFLAGS"
28234
28235        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
28236printf "%s\n" "$ax_pthread_ok" >&6; }
28237        if test "x$ax_pthread_ok" = xyes; then
28238                break;
28239        fi
28240
28241        PTHREAD_LIBS=""
28242        PTHREAD_CFLAGS=""
28243done
28244fi
28245
28246# Various other checks:
28247if test "x$ax_pthread_ok" = xyes; then
28248        save_LIBS="$LIBS"
28249        LIBS="$PTHREAD_LIBS $LIBS"
28250        save_CFLAGS="$CFLAGS"
28251        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28252
28253        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
28254        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
28255printf %s "checking for joinable pthread attribute... " >&6; }
28256        attr_name=unknown
28257        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
28258            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28259/* end confdefs.h.  */
28260#include <pthread.h>
28261int
28262main (void)
28263{
28264int attr = $attr; return attr /* ; */
28265  ;
28266  return 0;
28267}
28268_ACEOF
28269if ac_fn_c_try_link "$LINENO"
28270then :
28271  attr_name=$attr; break
28272fi
28273rm -f core conftest.err conftest.$ac_objext conftest.beam \
28274    conftest$ac_exeext conftest.$ac_ext
28275        done
28276        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
28277printf "%s\n" "$attr_name" >&6; }
28278        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
28279
28280printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
28281
28282        fi
28283
28284        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
28285printf %s "checking if more special flags are required for pthreads... " >&6; }
28286        flag=no
28287        case ${host_os} in
28288            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
28289            osf* | hpux*) flag="-D_REENTRANT";;
28290            solaris*)
28291            if test "$GCC" = "yes"; then
28292                flag="-D_REENTRANT"
28293            else
28294                # TODO: What about Clang on Solaris?
28295                flag="-mt -D_REENTRANT"
28296            fi
28297            ;;
28298        esac
28299        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
28300printf "%s\n" "$flag" >&6; }
28301        if test "x$flag" != xno; then
28302            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
28303        fi
28304
28305        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
28306printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
28307if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
28308then :
28309  printf %s "(cached) " >&6
28310else case e in #(
28311  e)
28312                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28313/* end confdefs.h.  */
28314#include <pthread.h>
28315int
28316main (void)
28317{
28318int i = PTHREAD_PRIO_INHERIT;
28319  ;
28320  return 0;
28321}
28322_ACEOF
28323if ac_fn_c_try_link "$LINENO"
28324then :
28325  ax_cv_PTHREAD_PRIO_INHERIT=yes
28326else case e in #(
28327  e) ax_cv_PTHREAD_PRIO_INHERIT=no ;;
28328esac
28329fi
28330rm -f core conftest.err conftest.$ac_objext conftest.beam \
28331    conftest$ac_exeext conftest.$ac_ext
28332             ;;
28333esac
28334fi
28335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
28336printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
28337        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"
28338then :
28339
28340printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
28341
28342fi
28343
28344        LIBS="$save_LIBS"
28345        CFLAGS="$save_CFLAGS"
28346
28347        # More AIX lossage: compile with *_r variant
28348        if test "x$GCC" != xyes; then
28349            case $host_os in
28350                aix*)
28351                case "x/$CC" in #(
28352  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
28353    #handle absolute path differently from PATH based program lookup
28354                   case "x$CC" in #(
28355  x/*) :
28356    if as_fn_executable_p ${CC}_r
28357then :
28358  PTHREAD_CC="${CC}_r"
28359fi ;; #(
28360  *) :
28361    for ac_prog in ${CC}_r
28362do
28363  # Extract the first word of "$ac_prog", so it can be a program name with args.
28364set dummy $ac_prog; ac_word=$2
28365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28366printf %s "checking for $ac_word... " >&6; }
28367if test ${ac_cv_prog_PTHREAD_CC+y}
28368then :
28369  printf %s "(cached) " >&6
28370else case e in #(
28371  e) if test -n "$PTHREAD_CC"; then
28372  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
28373else
28374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28375for as_dir in $PATH
28376do
28377  IFS=$as_save_IFS
28378  case $as_dir in #(((
28379    '') as_dir=./ ;;
28380    */) ;;
28381    *) as_dir=$as_dir/ ;;
28382  esac
28383    for ac_exec_ext in '' $ac_executable_extensions; do
28384  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28385    ac_cv_prog_PTHREAD_CC="$ac_prog"
28386    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28387    break 2
28388  fi
28389done
28390  done
28391IFS=$as_save_IFS
28392
28393fi ;;
28394esac
28395fi
28396PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
28397if test -n "$PTHREAD_CC"; then
28398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
28399printf "%s\n" "$PTHREAD_CC" >&6; }
28400else
28401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28402printf "%s\n" "no" >&6; }
28403fi
28404
28405
28406  test -n "$PTHREAD_CC" && break
28407done
28408test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
28409 ;;
28410esac ;; #(
28411  *) :
28412     ;;
28413esac
28414                ;;
28415            esac
28416        fi
28417fi
28418
28419test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
28420
28421
28422
28423
28424
28425# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
28426if test x"$ax_pthread_ok" = xyes; then
28427
28428printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
28429
28430        :
28431else
28432        ax_pthread_ok=no
28433        as_fn_error $? "threaded input requested but no pthread support has been found" "$LINENO" 5
28434fi
28435ac_ext=c
28436ac_cpp='$CPP $CPPFLAGS'
28437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28439ac_compiler_gnu=$ac_cv_c_compiler_gnu
28440
28441
28442    SYS_LIBS="$SYS_LIBS $PTHREAD_LIBS"
28443    CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
28444
28445printf "%s\n" "#define INPUTTHREAD 1" >>confdefs.h
28446
28447
28448    save_LIBS="$LIBS"
28449    LIBS="$LIBS $SYS_LIBS"
28450        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(const char*)" >&5
28451printf %s "checking for pthread_setname_np(const char*)... " >&6; }
28452    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28453/* end confdefs.h.  */
28454#include <pthread.h>
28455int
28456main (void)
28457{
28458pthread_setname_np("example")
28459  ;
28460  return 0;
28461}
28462_ACEOF
28463if ac_fn_c_try_link "$LINENO"
28464then :
28465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28466printf "%s\n" "yes" >&6; }
28467
28468printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID 1" >>confdefs.h
28469
28470else case e in #(
28471  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28472printf "%s\n" "no" >&6; } ;;
28473esac
28474fi
28475rm -f core conftest.err conftest.$ac_objext conftest.beam \
28476    conftest$ac_exeext conftest.$ac_ext
28477        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(pthread_t, const char*)" >&5
28478printf %s "checking for pthread_setname_np(pthread_t, const char*)... " >&6; }
28479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28480/* end confdefs.h.  */
28481#include <pthread.h>
28482int
28483main (void)
28484{
28485pthread_setname_np(pthread_self(), "example")
28486  ;
28487  return 0;
28488}
28489_ACEOF
28490if ac_fn_c_try_link "$LINENO"
28491then :
28492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28493printf "%s\n" "yes" >&6; }
28494
28495printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_WITH_TID 1" >>confdefs.h
28496
28497else case e in #(
28498  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28499printf "%s\n" "no" >&6; } ;;
28500esac
28501fi
28502rm -f core conftest.err conftest.$ac_objext conftest.beam \
28503    conftest$ac_exeext conftest.$ac_ext
28504    LIBS="$save_LIBS"
28505fi
28506
28507REQUIRED_MODULES="$FIXESPROTO $DAMAGEPROTO $XCMISCPROTO $XTRANS $BIGREQSPROTO $SDK_REQUIRED_MODULES"
28508
28509LIBSYSTEMD="libsystemd >= 209"
28510
28511# Check whether --with-systemd-daemon was given.
28512if test ${with_systemd_daemon+y}
28513then :
28514  withval=$with_systemd_daemon; WITH_SYSTEMD_DAEMON=$withval
28515else case e in #(
28516  e) WITH_SYSTEMD_DAEMON=auto ;;
28517esac
28518fi
28519
28520if test "x$WITH_SYSTEMD_DAEMON" = "xyes" -o "x$WITH_SYSTEMD_DAEMON" = "xauto" ; then
28521
28522pkg_failed=no
28523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSYSTEMD" >&5
28524printf %s "checking for $LIBSYSTEMD... " >&6; }
28525
28526if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
28527    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
28528 elif test -n "$PKG_CONFIG"; then
28529    if test -n "$PKG_CONFIG" && \
28530    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
28531  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
28532  ac_status=$?
28533  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28534  test $ac_status = 0; }; then
28535  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "$LIBSYSTEMD" 2>/dev/null`
28536		      test "x$?" != "x0" && pkg_failed=yes
28537else
28538  pkg_failed=yes
28539fi
28540 else
28541    pkg_failed=untried
28542fi
28543if test -n "$SYSTEMD_DAEMON_LIBS"; then
28544    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
28545 elif test -n "$PKG_CONFIG"; then
28546    if test -n "$PKG_CONFIG" && \
28547    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSYSTEMD\""; } >&5
28548  ($PKG_CONFIG --exists --print-errors "$LIBSYSTEMD") 2>&5
28549  ac_status=$?
28550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28551  test $ac_status = 0; }; then
28552  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "$LIBSYSTEMD" 2>/dev/null`
28553		      test "x$?" != "x0" && pkg_failed=yes
28554else
28555  pkg_failed=yes
28556fi
28557 else
28558    pkg_failed=untried
28559fi
28560
28561
28562
28563if test $pkg_failed = yes; then
28564        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28565printf "%s\n" "no" >&6; }
28566
28567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28568        _pkg_short_errors_supported=yes
28569else
28570        _pkg_short_errors_supported=no
28571fi
28572        if test $_pkg_short_errors_supported = yes; then
28573                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
28574        else
28575                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSYSTEMD" 2>&1`
28576        fi
28577        # Put the nasty error message in config.log where it belongs
28578        echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
28579
28580
28581pkg_failed=no
28582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
28583printf %s "checking for libsystemd-daemon... " >&6; }
28584
28585if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
28586    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
28587 elif test -n "$PKG_CONFIG"; then
28588    if test -n "$PKG_CONFIG" && \
28589    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
28590  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
28591  ac_status=$?
28592  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28593  test $ac_status = 0; }; then
28594  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
28595		      test "x$?" != "x0" && pkg_failed=yes
28596else
28597  pkg_failed=yes
28598fi
28599 else
28600    pkg_failed=untried
28601fi
28602if test -n "$SYSTEMD_DAEMON_LIBS"; then
28603    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
28604 elif test -n "$PKG_CONFIG"; then
28605    if test -n "$PKG_CONFIG" && \
28606    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
28607  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
28608  ac_status=$?
28609  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28610  test $ac_status = 0; }; then
28611  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
28612		      test "x$?" != "x0" && pkg_failed=yes
28613else
28614  pkg_failed=yes
28615fi
28616 else
28617    pkg_failed=untried
28618fi
28619
28620
28621
28622if test $pkg_failed = yes; then
28623        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28624printf "%s\n" "no" >&6; }
28625
28626if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28627        _pkg_short_errors_supported=yes
28628else
28629        _pkg_short_errors_supported=no
28630fi
28631        if test $_pkg_short_errors_supported = yes; then
28632                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
28633        else
28634                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
28635        fi
28636        # Put the nasty error message in config.log where it belongs
28637        echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
28638
28639        HAVE_SYSTEMD_DAEMON=no
28640elif test $pkg_failed = untried; then
28641        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28642printf "%s\n" "no" >&6; }
28643        HAVE_SYSTEMD_DAEMON=no
28644else
28645        SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
28646        SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
28647        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28648printf "%s\n" "yes" >&6; }
28649        HAVE_SYSTEMD_DAEMON=yes;
28650					      LIBSYSTEMD_DAEMON=libsystemd-daemon
28651fi
28652elif test $pkg_failed = untried; then
28653        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28654printf "%s\n" "no" >&6; }
28655
28656pkg_failed=no
28657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd-daemon" >&5
28658printf %s "checking for libsystemd-daemon... " >&6; }
28659
28660if test -n "$SYSTEMD_DAEMON_CFLAGS"; then
28661    pkg_cv_SYSTEMD_DAEMON_CFLAGS="$SYSTEMD_DAEMON_CFLAGS"
28662 elif test -n "$PKG_CONFIG"; then
28663    if test -n "$PKG_CONFIG" && \
28664    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
28665  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
28666  ac_status=$?
28667  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28668  test $ac_status = 0; }; then
28669  pkg_cv_SYSTEMD_DAEMON_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-daemon" 2>/dev/null`
28670		      test "x$?" != "x0" && pkg_failed=yes
28671else
28672  pkg_failed=yes
28673fi
28674 else
28675    pkg_failed=untried
28676fi
28677if test -n "$SYSTEMD_DAEMON_LIBS"; then
28678    pkg_cv_SYSTEMD_DAEMON_LIBS="$SYSTEMD_DAEMON_LIBS"
28679 elif test -n "$PKG_CONFIG"; then
28680    if test -n "$PKG_CONFIG" && \
28681    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-daemon\""; } >&5
28682  ($PKG_CONFIG --exists --print-errors "libsystemd-daemon") 2>&5
28683  ac_status=$?
28684  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28685  test $ac_status = 0; }; then
28686  pkg_cv_SYSTEMD_DAEMON_LIBS=`$PKG_CONFIG --libs "libsystemd-daemon" 2>/dev/null`
28687		      test "x$?" != "x0" && pkg_failed=yes
28688else
28689  pkg_failed=yes
28690fi
28691 else
28692    pkg_failed=untried
28693fi
28694
28695
28696
28697if test $pkg_failed = yes; then
28698        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28699printf "%s\n" "no" >&6; }
28700
28701if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28702        _pkg_short_errors_supported=yes
28703else
28704        _pkg_short_errors_supported=no
28705fi
28706        if test $_pkg_short_errors_supported = yes; then
28707                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
28708        else
28709                SYSTEMD_DAEMON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-daemon" 2>&1`
28710        fi
28711        # Put the nasty error message in config.log where it belongs
28712        echo "$SYSTEMD_DAEMON_PKG_ERRORS" >&5
28713
28714        HAVE_SYSTEMD_DAEMON=no
28715elif test $pkg_failed = untried; then
28716        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28717printf "%s\n" "no" >&6; }
28718        HAVE_SYSTEMD_DAEMON=no
28719else
28720        SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
28721        SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
28722        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28723printf "%s\n" "yes" >&6; }
28724        HAVE_SYSTEMD_DAEMON=yes;
28725					      LIBSYSTEMD_DAEMON=libsystemd-daemon
28726fi
28727else
28728        SYSTEMD_DAEMON_CFLAGS=$pkg_cv_SYSTEMD_DAEMON_CFLAGS
28729        SYSTEMD_DAEMON_LIBS=$pkg_cv_SYSTEMD_DAEMON_LIBS
28730        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28731printf "%s\n" "yes" >&6; }
28732        HAVE_SYSTEMD_DAEMON=yes;
28733			   LIBSYSTEMD_DAEMON="$LIBSYSTEMD"
28734fi
28735	if test "x$HAVE_SYSTEMD_DAEMON" = xyes; then
28736
28737printf "%s\n" "#define HAVE_SYSTEMD_DAEMON 1" >>confdefs.h
28738
28739		REQUIRED_LIBS="$REQUIRED_LIBS $LIBSYSTEMD_DAEMON"
28740	elif test "x$WITH_SYSTEMD_DAEMON" = xyes; then
28741		as_fn_error $? "systemd support requested but no library has been found" "$LINENO" 5
28742	fi
28743fi
28744 if test "x$HAVE_SYSTEMD_DAEMON" = "xyes"; then
28745  HAVE_SYSTEMD_DAEMON_TRUE=
28746  HAVE_SYSTEMD_DAEMON_FALSE='#'
28747else
28748  HAVE_SYSTEMD_DAEMON_TRUE='#'
28749  HAVE_SYSTEMD_DAEMON_FALSE=
28750fi
28751
28752
28753if test "x$CONFIG_UDEV" = xyes && test "x$CONFIG_HAL" = xyes; then
28754	as_fn_error $? "Hotplugging through both libudev and hal not allowed" "$LINENO" 5
28755fi
28756
28757
28758pkg_failed=no
28759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBUDEV" >&5
28760printf %s "checking for $LIBUDEV... " >&6; }
28761
28762if test -n "$UDEV_CFLAGS"; then
28763    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
28764 elif test -n "$PKG_CONFIG"; then
28765    if test -n "$PKG_CONFIG" && \
28766    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
28767  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
28768  ac_status=$?
28769  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28770  test $ac_status = 0; }; then
28771  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "$LIBUDEV" 2>/dev/null`
28772		      test "x$?" != "x0" && pkg_failed=yes
28773else
28774  pkg_failed=yes
28775fi
28776 else
28777    pkg_failed=untried
28778fi
28779if test -n "$UDEV_LIBS"; then
28780    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
28781 elif test -n "$PKG_CONFIG"; then
28782    if test -n "$PKG_CONFIG" && \
28783    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBUDEV\""; } >&5
28784  ($PKG_CONFIG --exists --print-errors "$LIBUDEV") 2>&5
28785  ac_status=$?
28786  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28787  test $ac_status = 0; }; then
28788  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "$LIBUDEV" 2>/dev/null`
28789		      test "x$?" != "x0" && pkg_failed=yes
28790else
28791  pkg_failed=yes
28792fi
28793 else
28794    pkg_failed=untried
28795fi
28796
28797
28798
28799if test $pkg_failed = yes; then
28800        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28801printf "%s\n" "no" >&6; }
28802
28803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28804        _pkg_short_errors_supported=yes
28805else
28806        _pkg_short_errors_supported=no
28807fi
28808        if test $_pkg_short_errors_supported = yes; then
28809                UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBUDEV" 2>&1`
28810        else
28811                UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBUDEV" 2>&1`
28812        fi
28813        # Put the nasty error message in config.log where it belongs
28814        echo "$UDEV_PKG_ERRORS" >&5
28815
28816        HAVE_LIBUDEV=no
28817elif test $pkg_failed = untried; then
28818        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28819printf "%s\n" "no" >&6; }
28820        HAVE_LIBUDEV=no
28821else
28822        UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
28823        UDEV_LIBS=$pkg_cv_UDEV_LIBS
28824        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28825printf "%s\n" "yes" >&6; }
28826        HAVE_LIBUDEV=yes
28827fi
28828if test "x$CONFIG_UDEV" = xauto; then
28829	CONFIG_UDEV="$HAVE_LIBUDEV"
28830fi
28831 if test "x$CONFIG_UDEV" = xyes; then
28832  CONFIG_UDEV_TRUE=
28833  CONFIG_UDEV_FALSE='#'
28834else
28835  CONFIG_UDEV_TRUE='#'
28836  CONFIG_UDEV_FALSE=
28837fi
28838
28839if test "x$CONFIG_UDEV" = xyes; then
28840	CONFIG_HAL=no
28841	if test "x$CONFIG_UDEV_KMS" = xauto; then
28842		CONFIG_UDEV_KMS="$HAVE_LIBUDEV"
28843	fi
28844	if ! test "x$HAVE_LIBUDEV" = xyes; then
28845		as_fn_error $? "udev configuration API requested, but libudev is not installed" "$LINENO" 5
28846	fi
28847
28848printf "%s\n" "#define CONFIG_UDEV 1" >>confdefs.h
28849
28850	if test "x$CONFIG_UDEV_KMS" = xyes; then
28851
28852printf "%s\n" "#define CONFIG_UDEV_KMS 1" >>confdefs.h
28853
28854	fi
28855	SAVE_LIBS=$LIBS
28856	SAVE_CFLAGS=$CFLAGS
28857	CFLAGS="$CFLAGS $UDEV_CFLAGS"
28858	LIBS=$UDEV_LIBS
28859	ac_fn_c_check_func "$LINENO" "udev_monitor_filter_add_match_tag" "ac_cv_func_udev_monitor_filter_add_match_tag"
28860if test "x$ac_cv_func_udev_monitor_filter_add_match_tag" = xyes
28861then :
28862  printf "%s\n" "#define HAVE_UDEV_MONITOR_FILTER_ADD_MATCH_TAG 1" >>confdefs.h
28863
28864fi
28865
28866	ac_fn_c_check_func "$LINENO" "udev_enumerate_add_match_tag" "ac_cv_func_udev_enumerate_add_match_tag"
28867if test "x$ac_cv_func_udev_enumerate_add_match_tag" = xyes
28868then :
28869  printf "%s\n" "#define HAVE_UDEV_ENUMERATE_ADD_MATCH_TAG 1" >>confdefs.h
28870
28871fi
28872
28873	LIBS=$SAVE_LIBS
28874	CFLAGS=$SAVE_CFLAGS
28875fi
28876 if test "x$CONFIG_UDEV_KMS" = xyes; then
28877  CONFIG_UDEV_KMS_TRUE=
28878  CONFIG_UDEV_KMS_FALSE='#'
28879else
28880  CONFIG_UDEV_KMS_TRUE='#'
28881  CONFIG_UDEV_KMS_FALSE=
28882fi
28883
28884
28885
28886pkg_failed=no
28887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDBUS" >&5
28888printf %s "checking for $LIBDBUS... " >&6; }
28889
28890if test -n "$DBUS_CFLAGS"; then
28891    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
28892 elif test -n "$PKG_CONFIG"; then
28893    if test -n "$PKG_CONFIG" && \
28894    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
28895  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
28896  ac_status=$?
28897  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28898  test $ac_status = 0; }; then
28899  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "$LIBDBUS" 2>/dev/null`
28900		      test "x$?" != "x0" && pkg_failed=yes
28901else
28902  pkg_failed=yes
28903fi
28904 else
28905    pkg_failed=untried
28906fi
28907if test -n "$DBUS_LIBS"; then
28908    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
28909 elif test -n "$PKG_CONFIG"; then
28910    if test -n "$PKG_CONFIG" && \
28911    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDBUS\""; } >&5
28912  ($PKG_CONFIG --exists --print-errors "$LIBDBUS") 2>&5
28913  ac_status=$?
28914  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28915  test $ac_status = 0; }; then
28916  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "$LIBDBUS" 2>/dev/null`
28917		      test "x$?" != "x0" && pkg_failed=yes
28918else
28919  pkg_failed=yes
28920fi
28921 else
28922    pkg_failed=untried
28923fi
28924
28925
28926
28927if test $pkg_failed = yes; then
28928        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28929printf "%s\n" "no" >&6; }
28930
28931if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28932        _pkg_short_errors_supported=yes
28933else
28934        _pkg_short_errors_supported=no
28935fi
28936        if test $_pkg_short_errors_supported = yes; then
28937                DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDBUS" 2>&1`
28938        else
28939                DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDBUS" 2>&1`
28940        fi
28941        # Put the nasty error message in config.log where it belongs
28942        echo "$DBUS_PKG_ERRORS" >&5
28943
28944        HAVE_DBUS=no
28945elif test $pkg_failed = untried; then
28946        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28947printf "%s\n" "no" >&6; }
28948        HAVE_DBUS=no
28949else
28950        DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
28951        DBUS_LIBS=$pkg_cv_DBUS_LIBS
28952        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28953printf "%s\n" "yes" >&6; }
28954        HAVE_DBUS=yes
28955fi
28956if test "x$HAVE_DBUS" = xyes; then
28957
28958printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h
28959
28960fi
28961 if test "x$HAVE_DBUS" = xyes; then
28962  HAVE_DBUS_TRUE=
28963  HAVE_DBUS_FALSE='#'
28964else
28965  HAVE_DBUS_TRUE='#'
28966  HAVE_DBUS_FALSE=
28967fi
28968
28969
28970
28971pkg_failed=no
28972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hal" >&5
28973printf %s "checking for hal... " >&6; }
28974
28975if test -n "$HAL_CFLAGS"; then
28976    pkg_cv_HAL_CFLAGS="$HAL_CFLAGS"
28977 elif test -n "$PKG_CONFIG"; then
28978    if test -n "$PKG_CONFIG" && \
28979    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
28980  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
28981  ac_status=$?
28982  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28983  test $ac_status = 0; }; then
28984  pkg_cv_HAL_CFLAGS=`$PKG_CONFIG --cflags "hal" 2>/dev/null`
28985		      test "x$?" != "x0" && pkg_failed=yes
28986else
28987  pkg_failed=yes
28988fi
28989 else
28990    pkg_failed=untried
28991fi
28992if test -n "$HAL_LIBS"; then
28993    pkg_cv_HAL_LIBS="$HAL_LIBS"
28994 elif test -n "$PKG_CONFIG"; then
28995    if test -n "$PKG_CONFIG" && \
28996    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal\""; } >&5
28997  ($PKG_CONFIG --exists --print-errors "hal") 2>&5
28998  ac_status=$?
28999  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29000  test $ac_status = 0; }; then
29001  pkg_cv_HAL_LIBS=`$PKG_CONFIG --libs "hal" 2>/dev/null`
29002		      test "x$?" != "x0" && pkg_failed=yes
29003else
29004  pkg_failed=yes
29005fi
29006 else
29007    pkg_failed=untried
29008fi
29009
29010
29011
29012if test $pkg_failed = yes; then
29013        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29014printf "%s\n" "no" >&6; }
29015
29016if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29017        _pkg_short_errors_supported=yes
29018else
29019        _pkg_short_errors_supported=no
29020fi
29021        if test $_pkg_short_errors_supported = yes; then
29022                HAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal" 2>&1`
29023        else
29024                HAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal" 2>&1`
29025        fi
29026        # Put the nasty error message in config.log where it belongs
29027        echo "$HAL_PKG_ERRORS" >&5
29028
29029        HAVE_HAL=no
29030elif test $pkg_failed = untried; then
29031        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29032printf "%s\n" "no" >&6; }
29033        HAVE_HAL=no
29034else
29035        HAL_CFLAGS=$pkg_cv_HAL_CFLAGS
29036        HAL_LIBS=$pkg_cv_HAL_LIBS
29037        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29038printf "%s\n" "yes" >&6; }
29039        HAVE_HAL=yes
29040fi
29041if test "x$CONFIG_HAL" = xauto; then
29042	CONFIG_HAL="$HAVE_HAL"
29043fi
29044if test "x$CONFIG_HAL" = xyes; then
29045	if ! test "x$HAVE_HAL" = xyes; then
29046		as_fn_error $? "HAL hotplug API requested, but HAL is not installed." "$LINENO" 5
29047	fi
29048
29049
29050printf "%s\n" "#define CONFIG_HAL 1" >>confdefs.h
29051
29052	NEED_DBUS="yes"
29053fi
29054 if test "x$CONFIG_HAL" = xyes; then
29055  CONFIG_HAL_TRUE=
29056  CONFIG_HAL_FALSE='#'
29057else
29058  CONFIG_HAL_TRUE='#'
29059  CONFIG_HAL_FALSE=
29060fi
29061
29062
29063if test "x$SYSTEMD_LOGIND" = xauto; then
29064        if test "x$HAVE_DBUS" = xyes -a "x$CONFIG_UDEV" = xyes ; then
29065                SYSTEMD_LOGIND=yes
29066        else
29067                SYSTEMD_LOGIND=no
29068        fi
29069fi
29070if test "x$SYSTEMD_LOGIND" = xyes; then
29071        if ! test "x$HAVE_DBUS" = xyes; then
29072                as_fn_error $? "systemd-logind requested, but D-Bus is not installed." "$LINENO" 5
29073        fi
29074        if ! test "x$CONFIG_UDEV" = xyes ; then
29075                as_fn_error $? "systemd-logind is only supported in combination with udev configuration." "$LINENO" 5
29076        fi
29077
29078
29079printf "%s\n" "#define SYSTEMD_LOGIND 1" >>confdefs.h
29080
29081        NEED_DBUS="yes"
29082fi
29083 if test "x$SYSTEMD_LOGIND" = xyes; then
29084  SYSTEMD_LOGIND_TRUE=
29085  SYSTEMD_LOGIND_FALSE='#'
29086else
29087  SYSTEMD_LOGIND_TRUE='#'
29088  SYSTEMD_LOGIND_FALSE=
29089fi
29090
29091
29092if test "x$SUID_WRAPPER" = xyes; then
29093
29094  prefix_NONE=
29095  exec_prefix_NONE=
29096  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
29097  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
29098  eval ac_define_dir="\"$libexecdir\""
29099  eval ac_define_dir="\"$ac_define_dir\""
29100  SUID_WRAPPER_DIR="$ac_define_dir"
29101
29102
29103printf "%s\n" "#define SUID_WRAPPER_DIR \"$ac_define_dir\"" >>confdefs.h
29104
29105  test "$prefix_NONE" && prefix=NONE
29106  test "$exec_prefix_NONE" && exec_prefix=NONE
29107
29108        SETUID="no"
29109fi
29110 if test "x$SUID_WRAPPER" = xyes; then
29111  SUID_WRAPPER_TRUE=
29112  SUID_WRAPPER_FALSE='#'
29113else
29114  SUID_WRAPPER_TRUE='#'
29115  SUID_WRAPPER_FALSE=
29116fi
29117
29118
29119if test "x$NEED_DBUS" = xyes; then
29120
29121printf "%s\n" "#define NEED_DBUS 1" >>confdefs.h
29122
29123fi
29124 if test "x$NEED_DBUS" = xyes; then
29125  NEED_DBUS_TRUE=
29126  NEED_DBUS_FALSE='#'
29127else
29128  NEED_DBUS_TRUE='#'
29129  NEED_DBUS_FALSE=
29130fi
29131
29132
29133if test "x$CONFIG_WSCONS" = xauto; then
29134	case $host_os in
29135		*openbsd*)
29136			CONFIG_WSCONS=yes;
29137			;;
29138		*)
29139			CONFIG_WSCONS=no;
29140			;;
29141	esac
29142fi
29143 if test "x$CONFIG_WSCONS" = xyes; then
29144  CONFIG_WSCONS_TRUE=
29145  CONFIG_WSCONS_FALSE='#'
29146else
29147  CONFIG_WSCONS_TRUE='#'
29148  CONFIG_WSCONS_FALSE=
29149fi
29150
29151if test "x$CONFIG_WSCONS" = xyes; then
29152
29153printf "%s\n" "#define CONFIG_WSCONS 1" >>confdefs.h
29154
29155fi
29156
29157
29158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc..." >&5
29159printf %s "checking for glibc...... " >&6; }
29160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29161/* end confdefs.h.  */
29162
29163#include <features.h>
29164#ifndef __GLIBC__
29165#error
29166#endif
29167
29168_ACEOF
29169if ac_fn_c_try_cpp "$LINENO"
29170then :
29171  glibc=yes
29172else case e in #(
29173  e) glibc=no ;;
29174esac
29175fi
29176rm -f conftest.err conftest.i conftest.$ac_ext
29177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $glibc" >&5
29178printf "%s\n" "$glibc" >&6; }
29179
29180
29181  for ac_func in clock_gettime
29182do :
29183  ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
29184if test "x$ac_cv_func_clock_gettime" = xyes
29185then :
29186  printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
29187 have_clock_gettime=yes
29188else case e in #(
29189  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
29190printf %s "checking for clock_gettime in -lrt... " >&6; }
29191if test ${ac_cv_lib_rt_clock_gettime+y}
29192then :
29193  printf %s "(cached) " >&6
29194else case e in #(
29195  e) ac_check_lib_save_LIBS=$LIBS
29196LIBS="-lrt  $LIBS"
29197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29198/* end confdefs.h.  */
29199
29200/* Override any GCC internal prototype to avoid an error.
29201   Use char because int might match the return type of a GCC
29202   builtin and then its argument prototype would still apply.
29203   The 'extern "C"' is for builds by C++ compilers;
29204   although this is not generally supported in C code supporting it here
29205   has little cost and some practical benefit (sr 110532).  */
29206#ifdef __cplusplus
29207extern "C"
29208#endif
29209char clock_gettime (void);
29210int
29211main (void)
29212{
29213return clock_gettime ();
29214  ;
29215  return 0;
29216}
29217_ACEOF
29218if ac_fn_c_try_link "$LINENO"
29219then :
29220  ac_cv_lib_rt_clock_gettime=yes
29221else case e in #(
29222  e) ac_cv_lib_rt_clock_gettime=no ;;
29223esac
29224fi
29225rm -f core conftest.err conftest.$ac_objext conftest.beam \
29226    conftest$ac_exeext conftest.$ac_ext
29227LIBS=$ac_check_lib_save_LIBS ;;
29228esac
29229fi
29230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
29231printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
29232if test "x$ac_cv_lib_rt_clock_gettime" = xyes
29233then :
29234  have_clock_gettime=-lrt
29235else case e in #(
29236  e) have_clock_gettime=no ;;
29237esac
29238fi
29239 ;;
29240esac
29241fi
29242
29243done
29244
29245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a useful monotonic clock ..." >&5
29246printf %s "checking for a useful monotonic clock ...... " >&6; }
29247
29248if ! test "x$have_clock_gettime" = xno; then
29249    if ! test "x$have_clock_gettime" = xyes; then
29250        CLOCK_LIBS="$have_clock_gettime"
29251    else
29252        CLOCK_LIBS=""
29253    fi
29254
29255    LIBS_SAVE="$LIBS"
29256    LIBS="$CLOCK_LIBS"
29257    CPPFLAGS_SAVE="$CPPFLAGS"
29258
29259    if test x"$glibc" = xyes; then
29260        CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L"
29261    fi
29262
29263    if test "$cross_compiling" = yes
29264then :
29265  MONOTONIC_CLOCK="cross compiling"
29266else case e in #(
29267  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29268/* end confdefs.h.  */
29269
29270#include <time.h>
29271
29272int main(int argc, char *argv[]) {
29273    struct timespec tp;
29274
29275    if (clock_gettime(CLOCK_MONOTONIC, &tp) == 0)
29276        return 0;
29277    else
29278        return 1;
29279}
29280
29281_ACEOF
29282if ac_fn_c_try_run "$LINENO"
29283then :
29284  MONOTONIC_CLOCK=yes
29285else case e in #(
29286  e) MONOTONIC_CLOCK=no ;;
29287esac
29288fi
29289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29290  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
29291esac
29292fi
29293
29294
29295    if test "$MONOTONIC_CLOCK" = "cross compiling"; then
29296        ac_fn_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "#include <time.h>
29297" "$ac_c_undeclared_builtin_options" "CFLAGS"
29298if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes
29299then :
29300  MONOTONIC_CLOCK="guessing yes"
29301else case e in #(
29302  e) MONOTONIC_CLOCK=no ;;
29303esac
29304fi
29305    fi
29306
29307    LIBS="$LIBS_SAVE"
29308    CPPFLAGS="$CPPFLAGS_SAVE"
29309else
29310    MONOTONIC_CLOCK=no
29311fi
29312
29313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MONOTONIC_CLOCK" >&5
29314printf "%s\n" "$MONOTONIC_CLOCK" >&6; }
29315if test "$MONOTONIC_CLOCK" = "guessing yes"; then
29316	MONOTONIC_CLOCK=yes
29317fi
29318
29319if test "x$MONOTONIC_CLOCK" = xyes; then
29320
29321printf "%s\n" "#define MONOTONIC_CLOCK 1" >>confdefs.h
29322
29323    LIBS="$LIBS $CLOCK_LIBS"
29324fi
29325
29326 if test "x$XV" = xyes; then
29327  XV_TRUE=
29328  XV_FALSE='#'
29329else
29330  XV_TRUE='#'
29331  XV_FALSE=
29332fi
29333
29334if test "x$XV" = xyes; then
29335
29336printf "%s\n" "#define XV 1" >>confdefs.h
29337
29338
29339printf "%s\n" "#define XvExtension 1" >>confdefs.h
29340
29341	REQUIRED_MODULES="$REQUIRED_MODULES $VIDEOPROTO"
29342	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $VIDEOPROTO"
29343else
29344	XVMC=no
29345fi
29346
29347 if test "x$XVMC" = xyes; then
29348  XVMC_TRUE=
29349  XVMC_FALSE='#'
29350else
29351  XVMC_TRUE='#'
29352  XVMC_FALSE=
29353fi
29354
29355if test "x$XVMC" = xyes; then
29356
29357printf "%s\n" "#define XvMCExtension 1" >>confdefs.h
29358
29359fi
29360
29361 if test "x$COMPOSITE" = xyes; then
29362  COMPOSITE_TRUE=
29363  COMPOSITE_FALSE='#'
29364else
29365  COMPOSITE_TRUE='#'
29366  COMPOSITE_FALSE=
29367fi
29368
29369if test "x$COMPOSITE" = xyes; then
29370
29371printf "%s\n" "#define COMPOSITE 1" >>confdefs.h
29372
29373	REQUIRED_MODULES="$REQUIRED_MODULES $COMPOSITEPROTO"
29374	COMPOSITE_LIB='$(top_builddir)/composite/libcomposite.la'
29375	COMPOSITE_INC='-I$(top_srcdir)/composite'
29376fi
29377
29378if test "x$MITSHM" = xauto; then
29379	MITSHM="$ac_cv_sysv_ipc"
29380fi
29381 if test "x$MITSHM" = xyes; then
29382  MITSHM_TRUE=
29383  MITSHM_FALSE='#'
29384else
29385  MITSHM_TRUE='#'
29386  MITSHM_FALSE=
29387fi
29388
29389if test "x$MITSHM" = xyes; then
29390
29391printf "%s\n" "#define MITSHM 1" >>confdefs.h
29392
29393
29394printf "%s\n" "#define HAS_SHM 1" >>confdefs.h
29395
29396fi
29397
29398 if test "x$RECORD" = xyes; then
29399  RECORD_TRUE=
29400  RECORD_FALSE='#'
29401else
29402  RECORD_TRUE='#'
29403  RECORD_FALSE=
29404fi
29405
29406if test "x$RECORD" = xyes; then
29407
29408printf "%s\n" "#define XRECORD 1" >>confdefs.h
29409
29410	REQUIRED_MODULES="$REQUIRED_MODULES $RECORDPROTO"
29411	RECORD_LIB='$(top_builddir)/record/librecord.la'
29412fi
29413
29414 if test "x$SCREENSAVER" = xyes; then
29415  SCREENSAVER_TRUE=
29416  SCREENSAVER_FALSE='#'
29417else
29418  SCREENSAVER_TRUE='#'
29419  SCREENSAVER_FALSE=
29420fi
29421
29422if test "x$SCREENSAVER" = xyes; then
29423
29424printf "%s\n" "#define SCREENSAVER 1" >>confdefs.h
29425
29426	REQUIRED_MODULES="$REQUIRED_MODULES $SCRNSAVERPROTO"
29427	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $SCRNSAVERPROTO"
29428fi
29429
29430HASHTABLE=no
29431 if test "x$RES" = xyes; then
29432  RES_TRUE=
29433  RES_FALSE='#'
29434else
29435  RES_TRUE='#'
29436  RES_FALSE=
29437fi
29438
29439if test "x$RES" = xyes; then
29440
29441printf "%s\n" "#define RES 1" >>confdefs.h
29442
29443	HASHTABLE=yes
29444	REQUIRED_MODULES="$REQUIRED_MODULES $RESOURCEPROTO"
29445	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $RESOURCEPROTO"
29446fi
29447
29448if test "x$LISTEN_TCP" = xyes; then
29449
29450printf "%s\n" "#define LISTEN_TCP 1" >>confdefs.h
29451
29452fi
29453if test "x$LISTEN_UNIX" = xyes; then
29454
29455printf "%s\n" "#define LISTEN_UNIX 1" >>confdefs.h
29456
29457fi
29458if test "x$LISTEN_LOCAL" = xyes; then
29459
29460printf "%s\n" "#define LISTEN_LOCAL 1" >>confdefs.h
29461
29462fi
29463
29464# The XRes extension may support client ID tracking only if it has
29465# been specifically enabled. Client ID tracking is implicitly not
29466# supported if XRes extension is disabled.
29467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to track client ids" >&5
29468printf %s "checking whether to track client ids... " >&6; }
29469if test "x$RES" = xyes && test "x$CLIENTIDS" = xyes; then
29470
29471printf "%s\n" "#define CLIENTIDS 1" >>confdefs.h
29472
29473else
29474	CLIENTIDS=no
29475fi
29476if test "x$CLIENTIDS" = xyes; then
29477	case $host_os in
29478	openbsd*)
29479		SYS_LIBS="$SYS_LIBS -lkvm"
29480	;;
29481	esac
29482fi
29483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CLIENTIDS" >&5
29484printf "%s\n" "$CLIENTIDS" >&6; }
29485 if test "x$CLIENTIDS" = xyes; then
29486  CLIENTIDS_TRUE=
29487  CLIENTIDS_FALSE='#'
29488else
29489  CLIENTIDS_TRUE='#'
29490  CLIENTIDS_FALSE=
29491fi
29492
29493
29494 if test "x$DRI" = xyes; then
29495  DRI_TRUE=
29496  DRI_FALSE='#'
29497else
29498  DRI_TRUE='#'
29499  DRI_FALSE=
29500fi
29501
29502if test "x$DRI" = xyes; then
29503
29504printf "%s\n" "#define XF86DRI 1" >>confdefs.h
29505
29506	REQUIRED_MODULES="$REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
29507	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRIPROTO $GLPROTO $LIBDRI"
29508fi
29509
29510
29511pkg_failed=no
29512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI2PROTO" >&5
29513printf %s "checking for $DRI2PROTO... " >&6; }
29514
29515if test -n "$DRI2PROTO_CFLAGS"; then
29516    pkg_cv_DRI2PROTO_CFLAGS="$DRI2PROTO_CFLAGS"
29517 elif test -n "$PKG_CONFIG"; then
29518    if test -n "$PKG_CONFIG" && \
29519    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
29520  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
29521  ac_status=$?
29522  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29523  test $ac_status = 0; }; then
29524  pkg_cv_DRI2PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI2PROTO" 2>/dev/null`
29525		      test "x$?" != "x0" && pkg_failed=yes
29526else
29527  pkg_failed=yes
29528fi
29529 else
29530    pkg_failed=untried
29531fi
29532if test -n "$DRI2PROTO_LIBS"; then
29533    pkg_cv_DRI2PROTO_LIBS="$DRI2PROTO_LIBS"
29534 elif test -n "$PKG_CONFIG"; then
29535    if test -n "$PKG_CONFIG" && \
29536    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI2PROTO\""; } >&5
29537  ($PKG_CONFIG --exists --print-errors "$DRI2PROTO") 2>&5
29538  ac_status=$?
29539  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29540  test $ac_status = 0; }; then
29541  pkg_cv_DRI2PROTO_LIBS=`$PKG_CONFIG --libs "$DRI2PROTO" 2>/dev/null`
29542		      test "x$?" != "x0" && pkg_failed=yes
29543else
29544  pkg_failed=yes
29545fi
29546 else
29547    pkg_failed=untried
29548fi
29549
29550
29551
29552if test $pkg_failed = yes; then
29553        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29554printf "%s\n" "no" >&6; }
29555
29556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29557        _pkg_short_errors_supported=yes
29558else
29559        _pkg_short_errors_supported=no
29560fi
29561        if test $_pkg_short_errors_supported = yes; then
29562                DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
29563        else
29564                DRI2PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI2PROTO" 2>&1`
29565        fi
29566        # Put the nasty error message in config.log where it belongs
29567        echo "$DRI2PROTO_PKG_ERRORS" >&5
29568
29569        HAVE_DRI2PROTO=no
29570elif test $pkg_failed = untried; then
29571        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29572printf "%s\n" "no" >&6; }
29573        HAVE_DRI2PROTO=no
29574else
29575        DRI2PROTO_CFLAGS=$pkg_cv_DRI2PROTO_CFLAGS
29576        DRI2PROTO_LIBS=$pkg_cv_DRI2PROTO_LIBS
29577        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29578printf "%s\n" "yes" >&6; }
29579        HAVE_DRI2PROTO=yes
29580fi
29581case "$DRI2,$HAVE_DRI2PROTO" in
29582	yes,no)
29583		as_fn_error $? "DRI2 requested, but dri2proto not found." "$LINENO" 5
29584		;;
29585	yes,yes | auto,yes)
29586
29587printf "%s\n" "#define DRI2 1" >>confdefs.h
29588
29589		DRI2=yes
29590		LIBGL="gl >= 1.2"
29591		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI2PROTO"
29592		;;
29593esac
29594 if test "x$DRI2" = xyes; then
29595  DRI2_TRUE=
29596  DRI2_FALSE='#'
29597else
29598  DRI2_TRUE='#'
29599  DRI2_FALSE=
29600fi
29601
29602
29603# Check whether --enable-xtrans-send-fds was given.
29604if test ${enable_xtrans_send_fds+y}
29605then :
29606  enableval=$enable_xtrans_send_fds; XTRANS_SEND_FDS=$enableval
29607else case e in #(
29608  e) XTRANS_SEND_FDS=auto ;;
29609esac
29610fi
29611
29612
29613case "x$XTRANS_SEND_FDS" in
29614xauto)
29615	case "$host_os" in
29616	linux*|solaris*|freebsd*|dragonfly*|openbsd*)
29617		XTRANS_SEND_FDS=yes
29618		;;
29619	*)
29620		XTRANS_SEND_FDS=no
29621		;;
29622	esac
29623esac
29624
29625case "x$XTRANS_SEND_FDS" in
29626xyes)
29627
29628printf "%s\n" "#define XTRANS_SEND_FDS 1" >>confdefs.h
29629
29630	;;
29631esac
29632
29633case "$DRI3,$XTRANS_SEND_FDS" in
29634	yes,yes | auto,yes)
29635		;;
29636	yes,no)
29637		as_fn_error $? "DRI3 requested, but xtrans fd passing support not found." "$LINENO" 5
29638		DRI3=no
29639		;;
29640	no,*)
29641		;;
29642	*)
29643		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xtrans fd passing support not found." >&5
29644printf "%s\n" "$as_me: DRI3 disabled because xtrans fd passing support not found." >&6;}
29645		DRI3=no
29646		;;
29647esac
29648
29649
29650pkg_failed=no
29651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DRI3PROTO" >&5
29652printf %s "checking for $DRI3PROTO... " >&6; }
29653
29654if test -n "$DRI3PROTO_CFLAGS"; then
29655    pkg_cv_DRI3PROTO_CFLAGS="$DRI3PROTO_CFLAGS"
29656 elif test -n "$PKG_CONFIG"; then
29657    if test -n "$PKG_CONFIG" && \
29658    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
29659  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
29660  ac_status=$?
29661  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29662  test $ac_status = 0; }; then
29663  pkg_cv_DRI3PROTO_CFLAGS=`$PKG_CONFIG --cflags "$DRI3PROTO" 2>/dev/null`
29664		      test "x$?" != "x0" && pkg_failed=yes
29665else
29666  pkg_failed=yes
29667fi
29668 else
29669    pkg_failed=untried
29670fi
29671if test -n "$DRI3PROTO_LIBS"; then
29672    pkg_cv_DRI3PROTO_LIBS="$DRI3PROTO_LIBS"
29673 elif test -n "$PKG_CONFIG"; then
29674    if test -n "$PKG_CONFIG" && \
29675    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DRI3PROTO\""; } >&5
29676  ($PKG_CONFIG --exists --print-errors "$DRI3PROTO") 2>&5
29677  ac_status=$?
29678  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29679  test $ac_status = 0; }; then
29680  pkg_cv_DRI3PROTO_LIBS=`$PKG_CONFIG --libs "$DRI3PROTO" 2>/dev/null`
29681		      test "x$?" != "x0" && pkg_failed=yes
29682else
29683  pkg_failed=yes
29684fi
29685 else
29686    pkg_failed=untried
29687fi
29688
29689
29690
29691if test $pkg_failed = yes; then
29692        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29693printf "%s\n" "no" >&6; }
29694
29695if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29696        _pkg_short_errors_supported=yes
29697else
29698        _pkg_short_errors_supported=no
29699fi
29700        if test $_pkg_short_errors_supported = yes; then
29701                DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
29702        else
29703                DRI3PROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DRI3PROTO" 2>&1`
29704        fi
29705        # Put the nasty error message in config.log where it belongs
29706        echo "$DRI3PROTO_PKG_ERRORS" >&5
29707
29708        HAVE_DRI3PROTO=no
29709elif test $pkg_failed = untried; then
29710        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29711printf "%s\n" "no" >&6; }
29712        HAVE_DRI3PROTO=no
29713else
29714        DRI3PROTO_CFLAGS=$pkg_cv_DRI3PROTO_CFLAGS
29715        DRI3PROTO_LIBS=$pkg_cv_DRI3PROTO_LIBS
29716        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29717printf "%s\n" "yes" >&6; }
29718        HAVE_DRI3PROTO=yes
29719fi
29720
29721case "$DRI3,$HAVE_DRI3PROTO" in
29722	yes,yes | auto,yes)
29723		REQUIRED_MODULES="$REQUIRED_MODULES dri3proto"
29724		;;
29725	yes,no)
29726		as_fn_error $? "DRI3 requested, but dri3proto not found." "$LINENO" 5
29727		DRI3=no
29728		;;
29729	no,*)
29730		;;
29731	*)
29732		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because dri3proto not found." >&5
29733printf "%s\n" "$as_me: DRI3 disabled because dri3proto not found." >&6;}
29734		DRI3=no
29735		;;
29736esac
29737
29738ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
29739if test "x$ac_cv_func_sigaction" = xyes
29740then :
29741  printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
29742
29743fi
29744
29745
29746BUSFAULT=no
29747
29748case x"$ac_cv_func_sigaction" in
29749	xyes)
29750
29751printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
29752
29753		BUSFAULT=yes
29754		;;
29755esac
29756
29757case x"$BUSFAULT" in
29758	xyes)
29759
29760printf "%s\n" "#define BUSFAULT 1" >>confdefs.h
29761
29762		;;
29763esac
29764
29765 if test x"$BUSFAULT" = xyes; then
29766  BUSFAULT_TRUE=
29767  BUSFAULT_FALSE='#'
29768else
29769  BUSFAULT_TRUE='#'
29770  BUSFAULT_FALSE=
29771fi
29772
29773
29774
29775
29776pkg_failed=no
29777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXSHMFENCE" >&5
29778printf %s "checking for $LIBXSHMFENCE... " >&6; }
29779
29780if test -n "$XSHMFENCE_CFLAGS"; then
29781    pkg_cv_XSHMFENCE_CFLAGS="$XSHMFENCE_CFLAGS"
29782 elif test -n "$PKG_CONFIG"; then
29783    if test -n "$PKG_CONFIG" && \
29784    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
29785  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
29786  ac_status=$?
29787  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29788  test $ac_status = 0; }; then
29789  pkg_cv_XSHMFENCE_CFLAGS=`$PKG_CONFIG --cflags "$LIBXSHMFENCE" 2>/dev/null`
29790		      test "x$?" != "x0" && pkg_failed=yes
29791else
29792  pkg_failed=yes
29793fi
29794 else
29795    pkg_failed=untried
29796fi
29797if test -n "$XSHMFENCE_LIBS"; then
29798    pkg_cv_XSHMFENCE_LIBS="$XSHMFENCE_LIBS"
29799 elif test -n "$PKG_CONFIG"; then
29800    if test -n "$PKG_CONFIG" && \
29801    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXSHMFENCE\""; } >&5
29802  ($PKG_CONFIG --exists --print-errors "$LIBXSHMFENCE") 2>&5
29803  ac_status=$?
29804  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29805  test $ac_status = 0; }; then
29806  pkg_cv_XSHMFENCE_LIBS=`$PKG_CONFIG --libs "$LIBXSHMFENCE" 2>/dev/null`
29807		      test "x$?" != "x0" && pkg_failed=yes
29808else
29809  pkg_failed=yes
29810fi
29811 else
29812    pkg_failed=untried
29813fi
29814
29815
29816
29817if test $pkg_failed = yes; then
29818        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29819printf "%s\n" "no" >&6; }
29820
29821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29822        _pkg_short_errors_supported=yes
29823else
29824        _pkg_short_errors_supported=no
29825fi
29826        if test $_pkg_short_errors_supported = yes; then
29827                XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
29828        else
29829                XSHMFENCE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXSHMFENCE" 2>&1`
29830        fi
29831        # Put the nasty error message in config.log where it belongs
29832        echo "$XSHMFENCE_PKG_ERRORS" >&5
29833
29834        HAVE_XSHMFENCE=no
29835elif test $pkg_failed = untried; then
29836        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837printf "%s\n" "no" >&6; }
29838        HAVE_XSHMFENCE=no
29839else
29840        XSHMFENCE_CFLAGS=$pkg_cv_XSHMFENCE_CFLAGS
29841        XSHMFENCE_LIBS=$pkg_cv_XSHMFENCE_LIBS
29842        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29843printf "%s\n" "yes" >&6; }
29844        HAVE_XSHMFENCE=yes
29845fi
29846if test "x$XSHMFENCE" = "xauto"; then
29847    XSHMFENCE="$HAVE_XSHMFENCE"
29848fi
29849
29850if test "x$XSHMFENCE" = "xyes"; then
29851    if test "x$HAVE_XSHMFENCE" != "xyes"; then
29852        as_fn_error $? "xshmfence requested but not installed." "$LINENO" 5
29853    fi
29854
29855printf "%s\n" "#define HAVE_XSHMFENCE 1" >>confdefs.h
29856
29857    REQUIRED_LIBS="$REQUIRED_LIBS $LIBXSHMFENCE"
29858fi
29859
29860 if test "x$XSHMFENCE" = xyes; then
29861  XSHMFENCE_TRUE=
29862  XSHMFENCE_FALSE='#'
29863else
29864  XSHMFENCE_TRUE='#'
29865  XSHMFENCE_FALSE=
29866fi
29867
29868
29869case "$DRI3,$XSHMFENCE" in
29870	yes,yes | auto,yes)
29871		;;
29872	yes,no)
29873		as_fn_error $? "DRI3 requested, but xshmfence not found." "$LINENO" 5
29874		DRI3=no
29875		;;
29876	no,*)
29877		;;
29878	*)
29879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 disabled because xshmfence not found." >&5
29880printf "%s\n" "$as_me: DRI3 disabled because xshmfence not found." >&6;}
29881		DRI3=no
29882		;;
29883esac
29884
29885case x"$DRI3" in
29886	xyes|xauto)
29887		DRI3=yes
29888
29889printf "%s\n" "#define DRI3 1" >>confdefs.h
29890
29891		DRI3_LIB='$(top_builddir)/dri3/libdri3.la'
29892		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $DRI3PROTO"
29893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: DRI3 enabled" >&5
29894printf "%s\n" "$as_me: DRI3 enabled" >&6;};
29895		;;
29896esac
29897
29898 if test "x$DRI3" = xyes; then
29899  DRI3_TRUE=
29900  DRI3_FALSE='#'
29901else
29902  DRI3_TRUE='#'
29903  DRI3_FALSE=
29904fi
29905
29906
29907if test "x$DRI" = xyes || test "x$DRI2" = xyes || test "x$DRI3" = xyes || test "x$CONFIG_UDEV_KMS" = xyes || test "x$XORG" = xyes; then
29908	if test "x$DRM" = xyes; then
29909
29910printf "%s\n" "#define WITH_LIBDRM 1" >>confdefs.h
29911
29912
29913pkg_failed=no
29914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBDRM" >&5
29915printf %s "checking for $LIBDRM... " >&6; }
29916
29917if test -n "$LIBDRM_CFLAGS"; then
29918    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
29919 elif test -n "$PKG_CONFIG"; then
29920    if test -n "$PKG_CONFIG" && \
29921    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
29922  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
29923  ac_status=$?
29924  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29925  test $ac_status = 0; }; then
29926  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "$LIBDRM" 2>/dev/null`
29927		      test "x$?" != "x0" && pkg_failed=yes
29928else
29929  pkg_failed=yes
29930fi
29931 else
29932    pkg_failed=untried
29933fi
29934if test -n "$LIBDRM_LIBS"; then
29935    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
29936 elif test -n "$PKG_CONFIG"; then
29937    if test -n "$PKG_CONFIG" && \
29938    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBDRM\""; } >&5
29939  ($PKG_CONFIG --exists --print-errors "$LIBDRM") 2>&5
29940  ac_status=$?
29941  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29942  test $ac_status = 0; }; then
29943  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "$LIBDRM" 2>/dev/null`
29944		      test "x$?" != "x0" && pkg_failed=yes
29945else
29946  pkg_failed=yes
29947fi
29948 else
29949    pkg_failed=untried
29950fi
29951
29952
29953
29954if test $pkg_failed = yes; then
29955        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29956printf "%s\n" "no" >&6; }
29957
29958if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29959        _pkg_short_errors_supported=yes
29960else
29961        _pkg_short_errors_supported=no
29962fi
29963        if test $_pkg_short_errors_supported = yes; then
29964                LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBDRM" 2>&1`
29965        else
29966                LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBDRM" 2>&1`
29967        fi
29968        # Put the nasty error message in config.log where it belongs
29969        echo "$LIBDRM_PKG_ERRORS" >&5
29970
29971        as_fn_error $? "Package requirements ($LIBDRM) were not met:
29972
29973$LIBDRM_PKG_ERRORS
29974
29975Consider adjusting the PKG_CONFIG_PATH environment variable if you
29976installed software in a non-standard prefix.
29977
29978Alternatively, you may set the environment variables LIBDRM_CFLAGS
29979and LIBDRM_LIBS to avoid the need to call pkg-config.
29980See the pkg-config man page for more details." "$LINENO" 5
29981elif test $pkg_failed = untried; then
29982        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29983printf "%s\n" "no" >&6; }
29984        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
29985printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
29986as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
29987is in your PATH or set the PKG_CONFIG environment variable to the full
29988path to pkg-config.
29989
29990Alternatively, you may set the environment variables LIBDRM_CFLAGS
29991and LIBDRM_LIBS to avoid the need to call pkg-config.
29992See the pkg-config man page for more details.
29993
29994To get pkg-config, see <http://pkg-config.freedesktop.org/>.
29995See 'config.log' for more details" "$LINENO" 5; }
29996else
29997        LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
29998        LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
29999        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30000printf "%s\n" "yes" >&6; }
30001
30002fi
30003	fi
30004fi
30005
30006if test "x$GLX" = xyes; then
30007
30008pkg_failed=no
30009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
30010printf %s "checking for x11... " >&6; }
30011
30012if test -n "$XLIB_CFLAGS"; then
30013    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
30014 elif test -n "$PKG_CONFIG"; then
30015    if test -n "$PKG_CONFIG" && \
30016    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
30017  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
30018  ac_status=$?
30019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30020  test $ac_status = 0; }; then
30021  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
30022		      test "x$?" != "x0" && pkg_failed=yes
30023else
30024  pkg_failed=yes
30025fi
30026 else
30027    pkg_failed=untried
30028fi
30029if test -n "$XLIB_LIBS"; then
30030    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
30031 elif test -n "$PKG_CONFIG"; then
30032    if test -n "$PKG_CONFIG" && \
30033    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
30034  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
30035  ac_status=$?
30036  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30037  test $ac_status = 0; }; then
30038  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
30039		      test "x$?" != "x0" && pkg_failed=yes
30040else
30041  pkg_failed=yes
30042fi
30043 else
30044    pkg_failed=untried
30045fi
30046
30047
30048
30049if test $pkg_failed = yes; then
30050        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30051printf "%s\n" "no" >&6; }
30052
30053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30054        _pkg_short_errors_supported=yes
30055else
30056        _pkg_short_errors_supported=no
30057fi
30058        if test $_pkg_short_errors_supported = yes; then
30059                XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
30060        else
30061                XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
30062        fi
30063        # Put the nasty error message in config.log where it belongs
30064        echo "$XLIB_PKG_ERRORS" >&5
30065
30066        as_fn_error $? "Package requirements (x11) were not met:
30067
30068$XLIB_PKG_ERRORS
30069
30070Consider adjusting the PKG_CONFIG_PATH environment variable if you
30071installed software in a non-standard prefix.
30072
30073Alternatively, you may set the environment variables XLIB_CFLAGS
30074and XLIB_LIBS to avoid the need to call pkg-config.
30075See the pkg-config man page for more details." "$LINENO" 5
30076elif test $pkg_failed = untried; then
30077        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30078printf "%s\n" "no" >&6; }
30079        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30080printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30081as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30082is in your PATH or set the PKG_CONFIG environment variable to the full
30083path to pkg-config.
30084
30085Alternatively, you may set the environment variables XLIB_CFLAGS
30086and XLIB_LIBS to avoid the need to call pkg-config.
30087See the pkg-config man page for more details.
30088
30089To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30090See 'config.log' for more details" "$LINENO" 5; }
30091else
30092        XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
30093        XLIB_LIBS=$pkg_cv_XLIB_LIBS
30094        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30095printf "%s\n" "yes" >&6; }
30096
30097fi
30098
30099pkg_failed=no
30100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $GLPROTO $LIBGL" >&5
30101printf %s "checking for $GLPROTO $LIBGL... " >&6; }
30102
30103if test -n "$GL_CFLAGS"; then
30104    pkg_cv_GL_CFLAGS="$GL_CFLAGS"
30105 elif test -n "$PKG_CONFIG"; then
30106    if test -n "$PKG_CONFIG" && \
30107    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
30108  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
30109  ac_status=$?
30110  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30111  test $ac_status = 0; }; then
30112  pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$GLPROTO $LIBGL" 2>/dev/null`
30113		      test "x$?" != "x0" && pkg_failed=yes
30114else
30115  pkg_failed=yes
30116fi
30117 else
30118    pkg_failed=untried
30119fi
30120if test -n "$GL_LIBS"; then
30121    pkg_cv_GL_LIBS="$GL_LIBS"
30122 elif test -n "$PKG_CONFIG"; then
30123    if test -n "$PKG_CONFIG" && \
30124    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GLPROTO \$LIBGL\""; } >&5
30125  ($PKG_CONFIG --exists --print-errors "$GLPROTO $LIBGL") 2>&5
30126  ac_status=$?
30127  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30128  test $ac_status = 0; }; then
30129  pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$GLPROTO $LIBGL" 2>/dev/null`
30130		      test "x$?" != "x0" && pkg_failed=yes
30131else
30132  pkg_failed=yes
30133fi
30134 else
30135    pkg_failed=untried
30136fi
30137
30138
30139
30140if test $pkg_failed = yes; then
30141        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30142printf "%s\n" "no" >&6; }
30143
30144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30145        _pkg_short_errors_supported=yes
30146else
30147        _pkg_short_errors_supported=no
30148fi
30149        if test $_pkg_short_errors_supported = yes; then
30150                GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
30151        else
30152                GL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$GLPROTO $LIBGL" 2>&1`
30153        fi
30154        # Put the nasty error message in config.log where it belongs
30155        echo "$GL_PKG_ERRORS" >&5
30156
30157        as_fn_error $? "Package requirements ($GLPROTO $LIBGL) were not met:
30158
30159$GL_PKG_ERRORS
30160
30161Consider adjusting the PKG_CONFIG_PATH environment variable if you
30162installed software in a non-standard prefix.
30163
30164Alternatively, you may set the environment variables GL_CFLAGS
30165and GL_LIBS to avoid the need to call pkg-config.
30166See the pkg-config man page for more details." "$LINENO" 5
30167elif test $pkg_failed = untried; then
30168        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30169printf "%s\n" "no" >&6; }
30170        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30171printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30172as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30173is in your PATH or set the PKG_CONFIG environment variable to the full
30174path to pkg-config.
30175
30176Alternatively, you may set the environment variables GL_CFLAGS
30177and GL_LIBS to avoid the need to call pkg-config.
30178See the pkg-config man page for more details.
30179
30180To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30181See 'config.log' for more details" "$LINENO" 5; }
30182else
30183        GL_CFLAGS=$pkg_cv_GL_CFLAGS
30184        GL_LIBS=$pkg_cv_GL_LIBS
30185        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30186printf "%s\n" "yes" >&6; }
30187
30188fi
30189
30190
30191printf "%s\n" "#define GLXEXT 1" >>confdefs.h
30192
30193	HASHTABLE=yes
30194	GLX_LIBS='$(top_builddir)/glx/libglx.la $(top_builddir)/glx/libglxvnd.la'
30195	GLX_SYS_LIBS="$GLX_SYS_LIBS $GL_LIBS"
30196else
30197        GLX=no
30198fi
30199 if test "x$GLX" = xyes; then
30200  GLX_TRUE=
30201  GLX_FALSE='#'
30202else
30203  GLX_TRUE='#'
30204  GLX_FALSE=
30205fi
30206
30207
30208 if test "x$HASHTABLE" = xyes; then
30209  HASHTABLE_TRUE=
30210  HASHTABLE_FALSE='#'
30211else
30212  HASHTABLE_TRUE='#'
30213  HASHTABLE_FALSE=
30214fi
30215
30216
30217
30218
30219
30220 if test "x$PRESENT" = xyes; then
30221  PRESENT_TRUE=
30222  PRESENT_FALSE='#'
30223else
30224  PRESENT_TRUE='#'
30225  PRESENT_FALSE=
30226fi
30227
30228if test "x$PRESENT" = xyes; then
30229
30230printf "%s\n" "#define PRESENT 1" >>confdefs.h
30231
30232	REQUIRED_MODULES="$REQUIRED_MODULES $PRESENTPROTO"
30233	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $PRESENTPROTO"
30234	PRESENT_INC='-I$(top_srcdir)/present'
30235	PRESENT_LIB='$(top_builddir)/present/libpresent.la'
30236fi
30237
30238 if test "x$XINERAMA" = xyes; then
30239  XINERAMA_TRUE=
30240  XINERAMA_FALSE='#'
30241else
30242  XINERAMA_TRUE='#'
30243  XINERAMA_FALSE=
30244fi
30245
30246if test "x$XINERAMA" = xyes; then
30247
30248printf "%s\n" "#define XINERAMA 1" >>confdefs.h
30249
30250
30251printf "%s\n" "#define PANORAMIX 1" >>confdefs.h
30252
30253	REQUIRED_MODULES="$REQUIRED_MODULES $XINERAMAPROTO"
30254	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $XINERAMAPROTO"
30255fi
30256
30257 if test "x$XACE" = xyes; then
30258  XACE_TRUE=
30259  XACE_FALSE='#'
30260else
30261  XACE_TRUE='#'
30262  XACE_FALSE=
30263fi
30264
30265if test "x$XACE" = xyes; then
30266
30267printf "%s\n" "#define XACE 1" >>confdefs.h
30268
30269fi
30270
30271 if test "x$XSELINUX" = xyes; then
30272  XSELINUX_TRUE=
30273  XSELINUX_FALSE='#'
30274else
30275  XSELINUX_TRUE='#'
30276  XSELINUX_FALSE=
30277fi
30278
30279if test "x$XSELINUX" = xyes; then
30280	if test "x$XACE" != xyes; then
30281		as_fn_error $? "cannot build SELinux extension without X-ACE" "$LINENO" 5
30282	fi
30283	       for ac_header in libaudit.h
30284do :
30285  ac_fn_c_check_header_compile "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
30286if test "x$ac_cv_header_libaudit_h" = xyes
30287then :
30288  printf "%s\n" "#define HAVE_LIBAUDIT_H 1" >>confdefs.h
30289
30290else case e in #(
30291  e) as_fn_error $? "SELinux extension requires audit system headers" "$LINENO" 5 ;;
30292esac
30293fi
30294
30295done
30296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for audit_open in -laudit" >&5
30297printf %s "checking for audit_open in -laudit... " >&6; }
30298if test ${ac_cv_lib_audit_audit_open+y}
30299then :
30300  printf %s "(cached) " >&6
30301else case e in #(
30302  e) ac_check_lib_save_LIBS=$LIBS
30303LIBS="-laudit  $LIBS"
30304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30305/* end confdefs.h.  */
30306
30307/* Override any GCC internal prototype to avoid an error.
30308   Use char because int might match the return type of a GCC
30309   builtin and then its argument prototype would still apply.
30310   The 'extern "C"' is for builds by C++ compilers;
30311   although this is not generally supported in C code supporting it here
30312   has little cost and some practical benefit (sr 110532).  */
30313#ifdef __cplusplus
30314extern "C"
30315#endif
30316char audit_open (void);
30317int
30318main (void)
30319{
30320return audit_open ();
30321  ;
30322  return 0;
30323}
30324_ACEOF
30325if ac_fn_c_try_link "$LINENO"
30326then :
30327  ac_cv_lib_audit_audit_open=yes
30328else case e in #(
30329  e) ac_cv_lib_audit_audit_open=no ;;
30330esac
30331fi
30332rm -f core conftest.err conftest.$ac_objext conftest.beam \
30333    conftest$ac_exeext conftest.$ac_ext
30334LIBS=$ac_check_lib_save_LIBS ;;
30335esac
30336fi
30337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_open" >&5
30338printf "%s\n" "$ac_cv_lib_audit_audit_open" >&6; }
30339if test "x$ac_cv_lib_audit_audit_open" = xyes
30340then :
30341  printf "%s\n" "#define HAVE_LIBAUDIT 1" >>confdefs.h
30342
30343  LIBS="-laudit $LIBS"
30344
30345else case e in #(
30346  e) as_fn_error $? "SELinux extension requires audit system library" "$LINENO" 5 ;;
30347esac
30348fi
30349
30350
30351pkg_failed=no
30352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBSELINUX" >&5
30353printf %s "checking for $LIBSELINUX... " >&6; }
30354
30355if test -n "$SELINUX_CFLAGS"; then
30356    pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
30357 elif test -n "$PKG_CONFIG"; then
30358    if test -n "$PKG_CONFIG" && \
30359    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
30360  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
30361  ac_status=$?
30362  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30363  test $ac_status = 0; }; then
30364  pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "$LIBSELINUX" 2>/dev/null`
30365		      test "x$?" != "x0" && pkg_failed=yes
30366else
30367  pkg_failed=yes
30368fi
30369 else
30370    pkg_failed=untried
30371fi
30372if test -n "$SELINUX_LIBS"; then
30373    pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
30374 elif test -n "$PKG_CONFIG"; then
30375    if test -n "$PKG_CONFIG" && \
30376    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBSELINUX\""; } >&5
30377  ($PKG_CONFIG --exists --print-errors "$LIBSELINUX") 2>&5
30378  ac_status=$?
30379  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30380  test $ac_status = 0; }; then
30381  pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "$LIBSELINUX" 2>/dev/null`
30382		      test "x$?" != "x0" && pkg_failed=yes
30383else
30384  pkg_failed=yes
30385fi
30386 else
30387    pkg_failed=untried
30388fi
30389
30390
30391
30392if test $pkg_failed = yes; then
30393        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30394printf "%s\n" "no" >&6; }
30395
30396if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30397        _pkg_short_errors_supported=yes
30398else
30399        _pkg_short_errors_supported=no
30400fi
30401        if test $_pkg_short_errors_supported = yes; then
30402                SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
30403        else
30404                SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBSELINUX" 2>&1`
30405        fi
30406        # Put the nasty error message in config.log where it belongs
30407        echo "$SELINUX_PKG_ERRORS" >&5
30408
30409        as_fn_error $? "Package requirements ($LIBSELINUX) were not met:
30410
30411$SELINUX_PKG_ERRORS
30412
30413Consider adjusting the PKG_CONFIG_PATH environment variable if you
30414installed software in a non-standard prefix.
30415
30416Alternatively, you may set the environment variables SELINUX_CFLAGS
30417and SELINUX_LIBS to avoid the need to call pkg-config.
30418See the pkg-config man page for more details." "$LINENO" 5
30419elif test $pkg_failed = untried; then
30420        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30421printf "%s\n" "no" >&6; }
30422        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
30423printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
30424as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
30425is in your PATH or set the PKG_CONFIG environment variable to the full
30426path to pkg-config.
30427
30428Alternatively, you may set the environment variables SELINUX_CFLAGS
30429and SELINUX_LIBS to avoid the need to call pkg-config.
30430See the pkg-config man page for more details.
30431
30432To get pkg-config, see <http://pkg-config.freedesktop.org/>.
30433See 'config.log' for more details" "$LINENO" 5; }
30434else
30435        SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
30436        SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
30437        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30438printf "%s\n" "yes" >&6; }
30439
30440fi
30441	SELINUX_LIBS="$SELINUX_LIBS -laudit"
30442
30443printf "%s\n" "#define XSELINUX 1" >>confdefs.h
30444
30445fi
30446
30447 if test "x$XCSECURITY" = xyes; then
30448  XCSECURITY_TRUE=
30449  XCSECURITY_FALSE='#'
30450else
30451  XCSECURITY_TRUE='#'
30452  XCSECURITY_FALSE=
30453fi
30454
30455if test "x$XCSECURITY" = xyes; then
30456	if test "x$XACE" != xyes; then
30457		as_fn_error $? "cannot build Security extension without X-ACE" "$LINENO" 5
30458	fi
30459
30460printf "%s\n" "#define XCSECURITY 1" >>confdefs.h
30461
30462fi
30463
30464 if test "x$DBE" = xyes; then
30465  DBE_TRUE=
30466  DBE_FALSE='#'
30467else
30468  DBE_TRUE='#'
30469  DBE_FALSE=
30470fi
30471
30472if test "x$DBE" = xyes; then
30473
30474printf "%s\n" "#define DBE 1" >>confdefs.h
30475
30476	DBE_LIB='$(top_builddir)/dbe/libdbe.la'
30477	DBE_INC='-I$(top_srcdir)/dbe'
30478fi
30479
30480 if test "x$XF86BIGFONT" = xyes; then
30481  XF86BIGFONT_TRUE=
30482  XF86BIGFONT_FALSE='#'
30483else
30484  XF86BIGFONT_TRUE='#'
30485  XF86BIGFONT_FALSE=
30486fi
30487
30488if test "x$XF86BIGFONT" = xyes; then
30489
30490printf "%s\n" "#define XF86BIGFONT 1" >>confdefs.h
30491
30492	REQUIRED_MODULES="$REQUIRED_MODULES $BIGFONTPROTO"
30493	SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $BIGFONTPROTO"
30494fi
30495
30496 if test "x$DPMSExtension" = xyes; then
30497  DPMSExtension_TRUE=
30498  DPMSExtension_FALSE='#'
30499else
30500  DPMSExtension_TRUE='#'
30501  DPMSExtension_FALSE=
30502fi
30503
30504if test "x$DPMSExtension" = xyes; then
30505
30506printf "%s\n" "#define DPMSExtension 1" >>confdefs.h
30507
30508fi
30509
30510
30511printf "%s\n" "#define RENDER 1" >>confdefs.h
30512
30513RENDER_LIB='$(top_builddir)/render/librender.la'
30514RENDER_INC='-I$(top_srcdir)/render'
30515
30516
30517printf "%s\n" "#define RANDR 1" >>confdefs.h
30518
30519RANDR_LIB='$(top_builddir)/randr/librandr.la'
30520RANDR_INC='-I$(top_srcdir)/randr'
30521
30522
30523printf "%s\n" "#define XFIXES 1" >>confdefs.h
30524
30525FIXES_LIB='$(top_builddir)/xfixes/libxfixes.la'
30526FIXES_INC='-I$(top_srcdir)/xfixes'
30527
30528
30529printf "%s\n" "#define DAMAGE 1" >>confdefs.h
30530
30531DAMAGE_LIB='$(top_builddir)/damageext/libdamageext.la'
30532DAMAGE_INC='-I$(top_srcdir)/damageext'
30533MIEXT_DAMAGE_LIB='$(top_builddir)/miext/damage/libdamage.la'
30534MIEXT_DAMAGE_INC='-I$(top_srcdir)/miext/damage'
30535
30536# XINPUT extension is integral part of the server
30537
30538printf "%s\n" "#define XINPUT 1" >>confdefs.h
30539
30540XI_LIB='$(top_builddir)/Xi/libXi.la'
30541XI_INC='-I$(top_srcdir)/Xi'
30542
30543 if test "x$XF86UTILS" = xyes; then
30544  XF86UTILS_TRUE=
30545  XF86UTILS_FALSE='#'
30546else
30547  XF86UTILS_TRUE='#'
30548  XF86UTILS_FALSE=
30549fi
30550
30551 if test "x$VGAHW" = xyes; then
30552  VGAHW_TRUE=
30553  VGAHW_FALSE='#'
30554else
30555  VGAHW_TRUE='#'
30556  VGAHW_FALSE=
30557fi
30558
30559 if test "x$INT10MODULE" = xyes; then
30560  INT10MODULE_TRUE=
30561  INT10MODULE_FALSE='#'
30562else
30563  INT10MODULE_TRUE='#'
30564  INT10MODULE_FALSE=
30565fi
30566
30567
30568
30569printf "%s\n" "#define SHAPE 1" >>confdefs.h
30570
30571
30572if test "x$XKBPATH" = "xauto"; then
30573    XKBPATH=$(pkg-config --variable datadir xkbcomp || echo ${datadir})/X11/xkb
30574fi
30575
30576
30577  prefix_NONE=
30578  exec_prefix_NONE=
30579  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30580  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30581  eval ac_define_dir="\"$XKBPATH\""
30582  eval ac_define_dir="\"$ac_define_dir\""
30583  XKB_BASE_DIRECTORY="$ac_define_dir"
30584
30585
30586printf "%s\n" "#define XKB_BASE_DIRECTORY \"$ac_define_dir\"" >>confdefs.h
30587
30588  test "$prefix_NONE" && prefix=NONE
30589  test "$exec_prefix_NONE" && exec_prefix=NONE
30590
30591
30592# Check whether --with-xkb-bin-directory was given.
30593if test ${with_xkb_bin_directory+y}
30594then :
30595  withval=$with_xkb_bin_directory; XKB_BIN_DIRECTORY="$withval"
30596else case e in #(
30597  e) XKB_BIN_DIRECTORY="auto" ;;
30598esac
30599fi
30600
30601
30602if test "x$XKB_BIN_DIRECTORY" = "xauto"; then
30603    XKB_BIN_DIRECTORY=$(pkg-config --variable bindir xkbcomp)
30604    if test -z $XKB_BIN_DIRECTORY; then
30605        XKB_BIN_DIRECTORY="$bindir"
30606    fi
30607fi
30608
30609
30610  prefix_NONE=
30611  exec_prefix_NONE=
30612  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30613  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30614  eval ac_define_dir="\"$XKB_BIN_DIRECTORY\""
30615  eval ac_define_dir="\"$ac_define_dir\""
30616  XKB_BIN_DIRECTORY="$ac_define_dir"
30617
30618
30619printf "%s\n" "#define XKB_BIN_DIRECTORY \"$ac_define_dir\"" >>confdefs.h
30620
30621  test "$prefix_NONE" && prefix=NONE
30622  test "$exec_prefix_NONE" && exec_prefix=NONE
30623
30624
30625XKBOUTPUT_FIRSTCHAR=`echo $XKBOUTPUT | cut -b 1`
30626if [ x$XKBOUTPUT_FIRSTCHAR != x/ -a x$XKBOUTPUT_FIRSTCHAR != 'x$' ] ; then
30627   XKBOUTPUT="$XKB_BASE_DIRECTORY/$XKBOUTPUT"
30628fi
30629
30630
30631XKBOUTPUT=`echo $XKBOUTPUT/ | $SED 's|/*$|/|'`
30632XKB_COMPILED_DIR=`echo $XKBOUTPUT | $SED 's|/*$||'`
30633
30634  prefix_NONE=
30635  exec_prefix_NONE=
30636  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30637  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30638  eval ac_define_dir="\"$XKBOUTPUT\""
30639  eval ac_define_dir="\"$ac_define_dir\""
30640  XKM_OUTPUT_DIR="$ac_define_dir"
30641
30642
30643printf "%s\n" "#define XKM_OUTPUT_DIR \"$ac_define_dir\"" >>confdefs.h
30644
30645  test "$prefix_NONE" && prefix=NONE
30646  test "$exec_prefix_NONE" && exec_prefix=NONE
30647
30648
30649
30650if test "x$XKB_DFLT_RULES" = x; then
30651    case $host_os in
30652    linux*)
30653                XKB_DFLT_RULES="evdev"
30654        ;;
30655    *)
30656        XKB_DFLT_RULES="base"
30657        ;;
30658    esac
30659fi
30660
30661printf "%s\n" "#define XKB_DFLT_RULES \"$XKB_DFLT_RULES\"" >>confdefs.h
30662
30663
30664printf "%s\n" "#define XKB_DFLT_MODEL \"$XKB_DFLT_MODEL\"" >>confdefs.h
30665
30666
30667printf "%s\n" "#define XKB_DFLT_LAYOUT \"$XKB_DFLT_LAYOUT\"" >>confdefs.h
30668
30669
30670printf "%s\n" "#define XKB_DFLT_VARIANT \"$XKB_DFLT_VARIANT\"" >>confdefs.h
30671
30672
30673printf "%s\n" "#define XKB_DFLT_OPTIONS \"$XKB_DFLT_OPTIONS\"" >>confdefs.h
30674
30675
30676
30677
30678
30679
30680
30681XKB_LIB='$(top_builddir)/xkb/libxkb.la'
30682XKB_STUB_LIB='$(top_builddir)/xkb/libxkbstubs.la'
30683REQUIRED_MODULES="$REQUIRED_MODULES xkbfile"
30684
30685
30686pkg_failed=no
30687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5
30688printf %s "checking for xdmcp... " >&6; }
30689
30690if test -n "$XDMCP_CFLAGS"; then
30691    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
30692 elif test -n "$PKG_CONFIG"; then
30693    if test -n "$PKG_CONFIG" && \
30694    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
30695  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
30696  ac_status=$?
30697  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30698  test $ac_status = 0; }; then
30699  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
30700		      test "x$?" != "x0" && pkg_failed=yes
30701else
30702  pkg_failed=yes
30703fi
30704 else
30705    pkg_failed=untried
30706fi
30707if test -n "$XDMCP_LIBS"; then
30708    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
30709 elif test -n "$PKG_CONFIG"; then
30710    if test -n "$PKG_CONFIG" && \
30711    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
30712  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
30713  ac_status=$?
30714  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30715  test $ac_status = 0; }; then
30716  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
30717		      test "x$?" != "x0" && pkg_failed=yes
30718else
30719  pkg_failed=yes
30720fi
30721 else
30722    pkg_failed=untried
30723fi
30724
30725
30726
30727if test $pkg_failed = yes; then
30728        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30729printf "%s\n" "no" >&6; }
30730
30731if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30732        _pkg_short_errors_supported=yes
30733else
30734        _pkg_short_errors_supported=no
30735fi
30736        if test $_pkg_short_errors_supported = yes; then
30737                XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
30738        else
30739                XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
30740        fi
30741        # Put the nasty error message in config.log where it belongs
30742        echo "$XDMCP_PKG_ERRORS" >&5
30743
30744        have_libxdmcp="no"
30745elif test $pkg_failed = untried; then
30746        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30747printf "%s\n" "no" >&6; }
30748        have_libxdmcp="no"
30749else
30750        XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
30751        XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
30752        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30753printf "%s\n" "yes" >&6; }
30754        have_libxdmcp="yes"
30755fi
30756if test "x$XDMCP" = xauto; then
30757	if test "x$have_libxdmcp" = xyes; then
30758		XDMCP=yes
30759	else
30760		XDMCP=no
30761	fi
30762fi
30763if test "x$XDMAUTH" = xauto; then
30764	if test "x$have_libxdmcp" = xyes; then
30765		XDMAUTH=yes
30766	else
30767		XDMAUTH=no
30768	fi
30769fi
30770
30771 if test "x$XDMCP" = xyes; then
30772  XDMCP_TRUE=
30773  XDMCP_FALSE='#'
30774else
30775  XDMCP_TRUE='#'
30776  XDMCP_FALSE=
30777fi
30778
30779if test "x$XDMCP" = xyes; then
30780
30781printf "%s\n" "#define XDMCP 1" >>confdefs.h
30782
30783	REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
30784	XDMCP_MODULES="xdmcp"
30785fi
30786
30787 if test "x$XDMAUTH" = xyes; then
30788  XDMAUTH_TRUE=
30789  XDMAUTH_FALSE='#'
30790else
30791  XDMAUTH_TRUE='#'
30792  XDMAUTH_FALSE=
30793fi
30794
30795if test "x$XDMAUTH" = xyes; then
30796
30797printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
30798
30799	if ! test "x$XDMCP" = xyes; then
30800		REQUIRED_LIBS="$REQUIRED_LIBS xdmcp"
30801		XDMCP_MODULES="xdmcp"
30802	fi
30803fi
30804
30805if test "x$XF86VIDMODE" = xauto; then
30806	if test -n "$PKG_CONFIG" && \
30807    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VIDMODEPROTO\""; } >&5
30808  ($PKG_CONFIG --exists --print-errors "$VIDMODEPROTO") 2>&5
30809  ac_status=$?
30810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30811  test $ac_status = 0; }; then
30812  XF86VIDMODE=yes
30813else
30814  XF86VIDMODE=no
30815fi
30816fi
30817if test "x$XF86VIDMODE" = xyes; then
30818
30819printf "%s\n" "#define XF86VIDMODE 1" >>confdefs.h
30820
30821fi
30822 if test "x$XF86VIDMODE" = xyes; then
30823  XF86VIDMODE_TRUE=
30824  XF86VIDMODE_FALSE='#'
30825else
30826  XF86VIDMODE_TRUE='#'
30827  XF86VIDMODE_FALSE=
30828fi
30829
30830
30831
30832  prefix_NONE=
30833  exec_prefix_NONE=
30834  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30835  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30836  eval ac_define_dir="\"$FONTPATH\""
30837  eval ac_define_dir="\"$ac_define_dir\""
30838  COMPILEDDEFAULTFONTPATH="$ac_define_dir"
30839
30840
30841printf "%s\n" "#define COMPILEDDEFAULTFONTPATH \"$ac_define_dir\"" >>confdefs.h
30842
30843  test "$prefix_NONE" && prefix=NONE
30844  test "$exec_prefix_NONE" && exec_prefix=NONE
30845
30846
30847  prefix_NONE=
30848  exec_prefix_NONE=
30849  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30850  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30851  eval ac_define_dir="\"$SERVERCONFIG\""
30852  eval ac_define_dir="\"$ac_define_dir\""
30853  SERVER_MISC_CONFIG_PATH="$ac_define_dir"
30854
30855
30856printf "%s\n" "#define SERVER_MISC_CONFIG_PATH \"$ac_define_dir\"" >>confdefs.h
30857
30858  test "$prefix_NONE" && prefix=NONE
30859  test "$exec_prefix_NONE" && exec_prefix=NONE
30860
30861
30862  prefix_NONE=
30863  exec_prefix_NONE=
30864  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30865  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30866  eval ac_define_dir="\"$FONTROOTDIR\""
30867  eval ac_define_dir="\"$ac_define_dir\""
30868  BASE_FONT_PATH="$ac_define_dir"
30869
30870
30871printf "%s\n" "#define BASE_FONT_PATH \"$ac_define_dir\"" >>confdefs.h
30872
30873  test "$prefix_NONE" && prefix=NONE
30874  test "$exec_prefix_NONE" && exec_prefix=NONE
30875
30876dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
30877
30878  prefix_NONE=
30879  exec_prefix_NONE=
30880  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
30881  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
30882  eval ac_define_dir="\"$dridriverdir\""
30883  eval ac_define_dir="\"$ac_define_dir\""
30884  DRI_DRIVER_PATH="$ac_define_dir"
30885
30886
30887printf "%s\n" "#define DRI_DRIVER_PATH \"$ac_define_dir\"" >>confdefs.h
30888
30889  test "$prefix_NONE" && prefix=NONE
30890  test "$exec_prefix_NONE" && exec_prefix=NONE
30891
30892
30893printf "%s\n" "#define XVENDORNAME \"$VENDOR_NAME\"" >>confdefs.h
30894
30895
30896printf "%s\n" "#define XVENDORNAMESHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h
30897
30898
30899printf "%s\n" "#define XORG_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h
30900
30901
30902printf "%s\n" "#define BUILDERADDR \"$BUILDERADDR\"" >>confdefs.h
30903
30904
30905
30906printf "%s\n" "#define BUILDERSTRING \"$BUILDERSTRING\"" >>confdefs.h
30907
30908
30909
30910
30911printf "%s\n" "#define VENDOR_NAME \"$VENDOR_NAME\"" >>confdefs.h
30912
30913
30914printf "%s\n" "#define VENDOR_NAME_SHORT \"$VENDOR_NAME_SHORT\"" >>confdefs.h
30915
30916
30917printf "%s\n" "#define VENDOR_RELEASE $VENDOR_RELEASE" >>confdefs.h
30918
30919
30920printf "%s\n" "#define VENDOR_MAN_VERSION \"$VENDOR_MAN_VERSION\"" >>confdefs.h
30921
30922
30923if test "x$DEBUGGING" = xyes; then
30924
30925printf "%s\n" "#define DEBUG 1" >>confdefs.h
30926
30927fi
30928 if test "x$DEBUGGING" = xyes; then
30929  DEBUG_TRUE=
30930  DEBUG_FALSE='#'
30931else
30932  DEBUG_TRUE='#'
30933  DEBUG_FALSE=
30934fi
30935
30936
30937
30938printf "%s\n" "#define XTEST 1" >>confdefs.h
30939
30940
30941printf "%s\n" "#define XSYNC 1" >>confdefs.h
30942
30943
30944printf "%s\n" "#define XCMISC 1" >>confdefs.h
30945
30946
30947printf "%s\n" "#define BIGREQS 1" >>confdefs.h
30948
30949
30950if test "x$SPECIAL_DTRACE_OBJECTS" = "xyes" ; then
30951  DIX_LIB='$(top_builddir)/dix/dix.O'
30952  OS_LIB='$(top_builddir)/os/os.O $(SHA1_LIBS) $(DLOPEN_LIBS) $(LIBUNWIND_LIBS)'
30953else
30954  DIX_LIB='$(top_builddir)/dix/libdix.la'
30955  OS_LIB='$(top_builddir)/os/libos.la'
30956fi
30957
30958
30959
30960MAIN_LIB='$(top_builddir)/dix/libmain.la'
30961
30962
30963MI_LIB='$(top_builddir)/mi/libmi.la'
30964MI_EXT_LIB='$(top_builddir)/mi/libmiext.la'
30965MI_INC='-I$(top_srcdir)/mi'
30966FB_LIB='$(top_builddir)/fb/libfb.la'
30967FB_INC='-I$(top_srcdir)/fb'
30968MIEXT_SHADOW_INC='-I$(top_srcdir)/miext/shadow'
30969MIEXT_SHADOW_LIB='$(top_builddir)/miext/shadow/libshadow.la'
30970MIEXT_SYNC_INC='-I$(top_srcdir)/miext/sync'
30971MIEXT_SYNC_LIB='$(top_builddir)/miext/sync/libsync.la'
30972CORE_INCS='-I$(top_srcdir)/include -I$(top_builddir)/include'
30973
30974# SHA1 hashing
30975
30976# Check whether --with-sha1 was given.
30977if test ${with_sha1+y}
30978then :
30979  withval=$with_sha1;
30980fi
30981
30982ac_fn_c_check_func "$LINENO" "SHA1Init" "ac_cv_func_SHA1Init"
30983if test "x$ac_cv_func_SHA1Init" = xyes
30984then :
30985  HAVE_SHA1_IN_LIBC=yes
30986fi
30987
30988if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_LIBC" = xyes; then
30989	with_sha1=libc
30990fi
30991if test "x$with_sha1" = xlibc && test "x$HAVE_SHA1_IN_LIBC" != xyes; then
30992	as_fn_error $? "libc requested but not found" "$LINENO" 5
30993fi
30994if test "x$with_sha1" = xlibc; then
30995
30996printf "%s\n" "#define HAVE_SHA1_IN_LIBC 1" >>confdefs.h
30997
30998	SHA1_LIBS=""
30999fi
31000ac_fn_c_check_func "$LINENO" "CC_SHA1_Init" "ac_cv_func_CC_SHA1_Init"
31001if test "x$ac_cv_func_CC_SHA1_Init" = xyes
31002then :
31003  HAVE_SHA1_IN_COMMONCRYPTO=yes
31004fi
31005
31006if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_COMMONCRYPTO" = xyes; then
31007	with_sha1=CommonCrypto
31008fi
31009if test "x$with_sha1" = xCommonCrypto && test "x$HAVE_SHA1_IN_COMMONCRYPTO" != xyes; then
31010	as_fn_error $? "CommonCrypto requested but not found" "$LINENO" 5
31011fi
31012if test "x$with_sha1" = xCommonCrypto; then
31013
31014printf "%s\n" "#define HAVE_SHA1_IN_COMMONCRYPTO 1" >>confdefs.h
31015
31016	SHA1_LIBS=""
31017fi
31018ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#include <windows.h>
31019"
31020if test "x$ac_cv_header_wincrypt_h" = xyes
31021then :
31022  HAVE_SHA1_IN_CRYPTOAPI=yes
31023fi
31024
31025if test "x$with_sha1" = x && test "x$HAVE_SHA1_IN_CRYPTOAPI" = xyes; then
31026	with_sha1=CryptoAPI
31027fi
31028if test "x$with_sha1" = xCryptoAPI && test "x$HAVE_SHA1_IN_CRYPTOAPI" != xyes; then
31029	as_fn_error $? "CryptoAPI requested but not found" "$LINENO" 5
31030fi
31031if test "x$with_sha1" = xCryptoAPI; then
31032
31033printf "%s\n" "#define HAVE_SHA1_IN_CRYPTOAPI 1" >>confdefs.h
31034
31035	SHA1_LIBS=""
31036fi
31037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1Init in -lmd" >&5
31038printf %s "checking for SHA1Init in -lmd... " >&6; }
31039if test ${ac_cv_lib_md_SHA1Init+y}
31040then :
31041  printf %s "(cached) " >&6
31042else case e in #(
31043  e) ac_check_lib_save_LIBS=$LIBS
31044LIBS="-lmd  $LIBS"
31045cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31046/* end confdefs.h.  */
31047
31048/* Override any GCC internal prototype to avoid an error.
31049   Use char because int might match the return type of a GCC
31050   builtin and then its argument prototype would still apply.
31051   The 'extern "C"' is for builds by C++ compilers;
31052   although this is not generally supported in C code supporting it here
31053   has little cost and some practical benefit (sr 110532).  */
31054#ifdef __cplusplus
31055extern "C"
31056#endif
31057char SHA1Init (void);
31058int
31059main (void)
31060{
31061return SHA1Init ();
31062  ;
31063  return 0;
31064}
31065_ACEOF
31066if ac_fn_c_try_link "$LINENO"
31067then :
31068  ac_cv_lib_md_SHA1Init=yes
31069else case e in #(
31070  e) ac_cv_lib_md_SHA1Init=no ;;
31071esac
31072fi
31073rm -f core conftest.err conftest.$ac_objext conftest.beam \
31074    conftest$ac_exeext conftest.$ac_ext
31075LIBS=$ac_check_lib_save_LIBS ;;
31076esac
31077fi
31078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_SHA1Init" >&5
31079printf "%s\n" "$ac_cv_lib_md_SHA1Init" >&6; }
31080if test "x$ac_cv_lib_md_SHA1Init" = xyes
31081then :
31082  HAVE_LIBMD=yes
31083fi
31084
31085if test "x$with_sha1" = x && test "x$HAVE_LIBMD" = xyes; then
31086	with_sha1=libmd
31087fi
31088if test "x$with_sha1" = xlibmd && test "x$HAVE_LIBMD" != xyes; then
31089	as_fn_error $? "libmd requested but not found" "$LINENO" 5
31090fi
31091if test "x$with_sha1" = xlibmd; then
31092
31093printf "%s\n" "#define HAVE_SHA1_IN_LIBMD 1" >>confdefs.h
31094
31095	SHA1_LIBS=-lmd
31096fi
31097
31098pkg_failed=no
31099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsha1" >&5
31100printf %s "checking for libsha1... " >&6; }
31101
31102if test -n "$LIBSHA1_CFLAGS"; then
31103    pkg_cv_LIBSHA1_CFLAGS="$LIBSHA1_CFLAGS"
31104 elif test -n "$PKG_CONFIG"; then
31105    if test -n "$PKG_CONFIG" && \
31106    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
31107  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
31108  ac_status=$?
31109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31110  test $ac_status = 0; }; then
31111  pkg_cv_LIBSHA1_CFLAGS=`$PKG_CONFIG --cflags "libsha1" 2>/dev/null`
31112		      test "x$?" != "x0" && pkg_failed=yes
31113else
31114  pkg_failed=yes
31115fi
31116 else
31117    pkg_failed=untried
31118fi
31119if test -n "$LIBSHA1_LIBS"; then
31120    pkg_cv_LIBSHA1_LIBS="$LIBSHA1_LIBS"
31121 elif test -n "$PKG_CONFIG"; then
31122    if test -n "$PKG_CONFIG" && \
31123    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsha1\""; } >&5
31124  ($PKG_CONFIG --exists --print-errors "libsha1") 2>&5
31125  ac_status=$?
31126  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31127  test $ac_status = 0; }; then
31128  pkg_cv_LIBSHA1_LIBS=`$PKG_CONFIG --libs "libsha1" 2>/dev/null`
31129		      test "x$?" != "x0" && pkg_failed=yes
31130else
31131  pkg_failed=yes
31132fi
31133 else
31134    pkg_failed=untried
31135fi
31136
31137
31138
31139if test $pkg_failed = yes; then
31140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31141printf "%s\n" "no" >&6; }
31142
31143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31144        _pkg_short_errors_supported=yes
31145else
31146        _pkg_short_errors_supported=no
31147fi
31148        if test $_pkg_short_errors_supported = yes; then
31149                LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsha1" 2>&1`
31150        else
31151                LIBSHA1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsha1" 2>&1`
31152        fi
31153        # Put the nasty error message in config.log where it belongs
31154        echo "$LIBSHA1_PKG_ERRORS" >&5
31155
31156        HAVE_LIBSHA1=no
31157elif test $pkg_failed = untried; then
31158        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31159printf "%s\n" "no" >&6; }
31160        HAVE_LIBSHA1=no
31161else
31162        LIBSHA1_CFLAGS=$pkg_cv_LIBSHA1_CFLAGS
31163        LIBSHA1_LIBS=$pkg_cv_LIBSHA1_LIBS
31164        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31165printf "%s\n" "yes" >&6; }
31166        HAVE_LIBSHA1=yes
31167fi
31168if test "x$with_sha1" = x && test "x$HAVE_LIBSHA1" = xyes; then
31169   with_sha1=libsha1
31170fi
31171if test "x$with_sha1" = xlibsha1 && test "x$HAVE_LIBSHA1" != xyes; then
31172	as_fn_error $? "libsha1 requested but not found" "$LINENO" 5
31173fi
31174if test "x$with_sha1" = xlibsha1; then
31175
31176printf "%s\n" "#define HAVE_SHA1_IN_LIBSHA1 1" >>confdefs.h
31177
31178	SHA1_LIBS=-lsha1
31179fi
31180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
31181printf %s "checking for nettle_sha1_init in -lnettle... " >&6; }
31182if test ${ac_cv_lib_nettle_nettle_sha1_init+y}
31183then :
31184  printf %s "(cached) " >&6
31185else case e in #(
31186  e) ac_check_lib_save_LIBS=$LIBS
31187LIBS="-lnettle  $LIBS"
31188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31189/* end confdefs.h.  */
31190
31191/* Override any GCC internal prototype to avoid an error.
31192   Use char because int might match the return type of a GCC
31193   builtin and then its argument prototype would still apply.
31194   The 'extern "C"' is for builds by C++ compilers;
31195   although this is not generally supported in C code supporting it here
31196   has little cost and some practical benefit (sr 110532).  */
31197#ifdef __cplusplus
31198extern "C"
31199#endif
31200char nettle_sha1_init (void);
31201int
31202main (void)
31203{
31204return nettle_sha1_init ();
31205  ;
31206  return 0;
31207}
31208_ACEOF
31209if ac_fn_c_try_link "$LINENO"
31210then :
31211  ac_cv_lib_nettle_nettle_sha1_init=yes
31212else case e in #(
31213  e) ac_cv_lib_nettle_nettle_sha1_init=no ;;
31214esac
31215fi
31216rm -f core conftest.err conftest.$ac_objext conftest.beam \
31217    conftest$ac_exeext conftest.$ac_ext
31218LIBS=$ac_check_lib_save_LIBS ;;
31219esac
31220fi
31221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
31222printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
31223if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes
31224then :
31225  HAVE_LIBNETTLE=yes
31226fi
31227
31228if test "x$with_sha1" = x && test "x$HAVE_LIBNETTLE" = xyes; then
31229	with_sha1=libnettle
31230fi
31231if test "x$with_sha1" = xlibnettle && test "x$HAVE_LIBNETTLE" != xyes; then
31232	as_fn_error $? "libnettle requested but not found" "$LINENO" 5
31233fi
31234if test "x$with_sha1" = xlibnettle; then
31235
31236printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
31237
31238	SHA1_LIBS=-lnettle
31239fi
31240if test "x$with_sha1" = xnettlestatic && test "x$HAVE_LIBNETTLE" != xyes; then
31241	as_fn_error $? "nettlestatic requested but libnettle not found" "$LINENO" 5
31242fi
31243if test "x$with_sha1" = xnettlestatic; then
31244
31245printf "%s\n" "#define HAVE_SHA1_IN_LIBNETTLE 1" >>confdefs.h
31246
31247	SHA1_LIBS=-l:libnettle.a
31248fi
31249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_md_open in -lgcrypt" >&5
31250printf %s "checking for gcry_md_open in -lgcrypt... " >&6; }
31251if test ${ac_cv_lib_gcrypt_gcry_md_open+y}
31252then :
31253  printf %s "(cached) " >&6
31254else case e in #(
31255  e) ac_check_lib_save_LIBS=$LIBS
31256LIBS="-lgcrypt  $LIBS"
31257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31258/* end confdefs.h.  */
31259
31260/* Override any GCC internal prototype to avoid an error.
31261   Use char because int might match the return type of a GCC
31262   builtin and then its argument prototype would still apply.
31263   The 'extern "C"' is for builds by C++ compilers;
31264   although this is not generally supported in C code supporting it here
31265   has little cost and some practical benefit (sr 110532).  */
31266#ifdef __cplusplus
31267extern "C"
31268#endif
31269char gcry_md_open (void);
31270int
31271main (void)
31272{
31273return gcry_md_open ();
31274  ;
31275  return 0;
31276}
31277_ACEOF
31278if ac_fn_c_try_link "$LINENO"
31279then :
31280  ac_cv_lib_gcrypt_gcry_md_open=yes
31281else case e in #(
31282  e) ac_cv_lib_gcrypt_gcry_md_open=no ;;
31283esac
31284fi
31285rm -f core conftest.err conftest.$ac_objext conftest.beam \
31286    conftest$ac_exeext conftest.$ac_ext
31287LIBS=$ac_check_lib_save_LIBS ;;
31288esac
31289fi
31290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_open" >&5
31291printf "%s\n" "$ac_cv_lib_gcrypt_gcry_md_open" >&6; }
31292if test "x$ac_cv_lib_gcrypt_gcry_md_open" = xyes
31293then :
31294  HAVE_LIBGCRYPT=yes
31295fi
31296
31297if test "x$with_sha1" = x && test "x$HAVE_LIBGCRYPT" = xyes; then
31298	with_sha1=libgcrypt
31299fi
31300if test "x$with_sha1" = xlibgcrypt && test "x$HAVE_LIBGCRYPT" != xyes; then
31301	as_fn_error $? "libgcrypt requested but not found" "$LINENO" 5
31302fi
31303if test "x$with_sha1" = xlibgcrypt; then
31304
31305printf "%s\n" "#define HAVE_SHA1_IN_LIBGCRYPT 1" >>confdefs.h
31306
31307	SHA1_LIBS=-lgcrypt
31308fi
31309# We don't need all of the OpenSSL libraries, just libcrypto
31310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1_Init in -lcrypto" >&5
31311printf %s "checking for SHA1_Init in -lcrypto... " >&6; }
31312if test ${ac_cv_lib_crypto_SHA1_Init+y}
31313then :
31314  printf %s "(cached) " >&6
31315else case e in #(
31316  e) ac_check_lib_save_LIBS=$LIBS
31317LIBS="-lcrypto  $LIBS"
31318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31319/* end confdefs.h.  */
31320
31321/* Override any GCC internal prototype to avoid an error.
31322   Use char because int might match the return type of a GCC
31323   builtin and then its argument prototype would still apply.
31324   The 'extern "C"' is for builds by C++ compilers;
31325   although this is not generally supported in C code supporting it here
31326   has little cost and some practical benefit (sr 110532).  */
31327#ifdef __cplusplus
31328extern "C"
31329#endif
31330char SHA1_Init (void);
31331int
31332main (void)
31333{
31334return SHA1_Init ();
31335  ;
31336  return 0;
31337}
31338_ACEOF
31339if ac_fn_c_try_link "$LINENO"
31340then :
31341  ac_cv_lib_crypto_SHA1_Init=yes
31342else case e in #(
31343  e) ac_cv_lib_crypto_SHA1_Init=no ;;
31344esac
31345fi
31346rm -f core conftest.err conftest.$ac_objext conftest.beam \
31347    conftest$ac_exeext conftest.$ac_ext
31348LIBS=$ac_check_lib_save_LIBS ;;
31349esac
31350fi
31351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SHA1_Init" >&5
31352printf "%s\n" "$ac_cv_lib_crypto_SHA1_Init" >&6; }
31353if test "x$ac_cv_lib_crypto_SHA1_Init" = xyes
31354then :
31355  HAVE_LIBCRYPTO=yes
31356fi
31357
31358
31359pkg_failed=no
31360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
31361printf %s "checking for openssl... " >&6; }
31362
31363if test -n "$OPENSSL_CFLAGS"; then
31364    pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
31365 elif test -n "$PKG_CONFIG"; then
31366    if test -n "$PKG_CONFIG" && \
31367    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
31368  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
31369  ac_status=$?
31370  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31371  test $ac_status = 0; }; then
31372  pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
31373		      test "x$?" != "x0" && pkg_failed=yes
31374else
31375  pkg_failed=yes
31376fi
31377 else
31378    pkg_failed=untried
31379fi
31380if test -n "$OPENSSL_LIBS"; then
31381    pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
31382 elif test -n "$PKG_CONFIG"; then
31383    if test -n "$PKG_CONFIG" && \
31384    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
31385  ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
31386  ac_status=$?
31387  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31388  test $ac_status = 0; }; then
31389  pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
31390		      test "x$?" != "x0" && pkg_failed=yes
31391else
31392  pkg_failed=yes
31393fi
31394 else
31395    pkg_failed=untried
31396fi
31397
31398
31399
31400if test $pkg_failed = yes; then
31401        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31402printf "%s\n" "no" >&6; }
31403
31404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31405        _pkg_short_errors_supported=yes
31406else
31407        _pkg_short_errors_supported=no
31408fi
31409        if test $_pkg_short_errors_supported = yes; then
31410                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
31411        else
31412                OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
31413        fi
31414        # Put the nasty error message in config.log where it belongs
31415        echo "$OPENSSL_PKG_ERRORS" >&5
31416
31417        HAVE_OPENSSL_PKC=no
31418elif test $pkg_failed = untried; then
31419        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31420printf "%s\n" "no" >&6; }
31421        HAVE_OPENSSL_PKC=no
31422else
31423        OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
31424        OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
31425        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31426printf "%s\n" "yes" >&6; }
31427        HAVE_OPENSSL_PKC=yes
31428fi
31429if test "x$HAVE_LIBCRYPTO" = xyes || test "x$HAVE_OPENSSL_PKC" = xyes; then
31430	if test "x$with_sha1" = x; then
31431		with_sha1=libcrypto
31432	fi
31433else
31434	if test "x$with_sha1" = xlibcrypto; then
31435		as_fn_error $? "OpenSSL libcrypto requested but not found" "$LINENO" 5
31436	fi
31437fi
31438if test "x$with_sha1" = xlibcrypto; then
31439	if test "x$HAVE_LIBCRYPTO" = xyes; then
31440		SHA1_LIBS=-lcrypto
31441	else
31442		SHA1_LIBS="$OPENSSL_LIBS"
31443		SHA1_CFLAGS="$OPENSSL_CFLAGS"
31444	fi
31445fi
31446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SHA1 implementation" >&5
31447printf %s "checking for SHA1 implementation... " >&6; }
31448if test "x$with_sha1" = x; then
31449	as_fn_error $? "No suitable SHA1 implementation found" "$LINENO" 5
31450fi
31451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sha1" >&5
31452printf "%s\n" "$with_sha1" >&6; }
31453
31454
31455
31456
31457pkg_failed=no
31458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_MODULES $REQUIRED_LIBS" >&5
31459printf %s "checking for $REQUIRED_MODULES $REQUIRED_LIBS... " >&6; }
31460
31461if test -n "$XSERVERCFLAGS_CFLAGS"; then
31462    pkg_cv_XSERVERCFLAGS_CFLAGS="$XSERVERCFLAGS_CFLAGS"
31463 elif test -n "$PKG_CONFIG"; then
31464    if test -n "$PKG_CONFIG" && \
31465    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
31466  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
31467  ac_status=$?
31468  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31469  test $ac_status = 0; }; then
31470  pkg_cv_XSERVERCFLAGS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
31471		      test "x$?" != "x0" && pkg_failed=yes
31472else
31473  pkg_failed=yes
31474fi
31475 else
31476    pkg_failed=untried
31477fi
31478if test -n "$XSERVERCFLAGS_LIBS"; then
31479    pkg_cv_XSERVERCFLAGS_LIBS="$XSERVERCFLAGS_LIBS"
31480 elif test -n "$PKG_CONFIG"; then
31481    if test -n "$PKG_CONFIG" && \
31482    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_MODULES \$REQUIRED_LIBS\""; } >&5
31483  ($PKG_CONFIG --exists --print-errors "$REQUIRED_MODULES $REQUIRED_LIBS") 2>&5
31484  ac_status=$?
31485  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31486  test $ac_status = 0; }; then
31487  pkg_cv_XSERVERCFLAGS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>/dev/null`
31488		      test "x$?" != "x0" && pkg_failed=yes
31489else
31490  pkg_failed=yes
31491fi
31492 else
31493    pkg_failed=untried
31494fi
31495
31496
31497
31498if test $pkg_failed = yes; then
31499        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31500printf "%s\n" "no" >&6; }
31501
31502if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31503        _pkg_short_errors_supported=yes
31504else
31505        _pkg_short_errors_supported=no
31506fi
31507        if test $_pkg_short_errors_supported = yes; then
31508                XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
31509        else
31510                XSERVERCFLAGS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_MODULES $REQUIRED_LIBS" 2>&1`
31511        fi
31512        # Put the nasty error message in config.log where it belongs
31513        echo "$XSERVERCFLAGS_PKG_ERRORS" >&5
31514
31515        as_fn_error $? "Package requirements ($REQUIRED_MODULES $REQUIRED_LIBS) were not met:
31516
31517$XSERVERCFLAGS_PKG_ERRORS
31518
31519Consider adjusting the PKG_CONFIG_PATH environment variable if you
31520installed software in a non-standard prefix.
31521
31522Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
31523and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
31524See the pkg-config man page for more details." "$LINENO" 5
31525elif test $pkg_failed = untried; then
31526        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31527printf "%s\n" "no" >&6; }
31528        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
31529printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
31530as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31531is in your PATH or set the PKG_CONFIG environment variable to the full
31532path to pkg-config.
31533
31534Alternatively, you may set the environment variables XSERVERCFLAGS_CFLAGS
31535and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
31536See the pkg-config man page for more details.
31537
31538To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31539See 'config.log' for more details" "$LINENO" 5; }
31540else
31541        XSERVERCFLAGS_CFLAGS=$pkg_cv_XSERVERCFLAGS_CFLAGS
31542        XSERVERCFLAGS_LIBS=$pkg_cv_XSERVERCFLAGS_LIBS
31543        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31544printf "%s\n" "yes" >&6; }
31545
31546fi
31547
31548pkg_failed=no
31549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $REQUIRED_LIBS" >&5
31550printf %s "checking for $REQUIRED_LIBS... " >&6; }
31551
31552if test -n "$XSERVERLIBS_CFLAGS"; then
31553    pkg_cv_XSERVERLIBS_CFLAGS="$XSERVERLIBS_CFLAGS"
31554 elif test -n "$PKG_CONFIG"; then
31555    if test -n "$PKG_CONFIG" && \
31556    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
31557  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
31558  ac_status=$?
31559  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31560  test $ac_status = 0; }; then
31561  pkg_cv_XSERVERLIBS_CFLAGS=`$PKG_CONFIG --cflags "$REQUIRED_LIBS" 2>/dev/null`
31562		      test "x$?" != "x0" && pkg_failed=yes
31563else
31564  pkg_failed=yes
31565fi
31566 else
31567    pkg_failed=untried
31568fi
31569if test -n "$XSERVERLIBS_LIBS"; then
31570    pkg_cv_XSERVERLIBS_LIBS="$XSERVERLIBS_LIBS"
31571 elif test -n "$PKG_CONFIG"; then
31572    if test -n "$PKG_CONFIG" && \
31573    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$REQUIRED_LIBS\""; } >&5
31574  ($PKG_CONFIG --exists --print-errors "$REQUIRED_LIBS") 2>&5
31575  ac_status=$?
31576  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31577  test $ac_status = 0; }; then
31578  pkg_cv_XSERVERLIBS_LIBS=`$PKG_CONFIG --libs "$REQUIRED_LIBS" 2>/dev/null`
31579		      test "x$?" != "x0" && pkg_failed=yes
31580else
31581  pkg_failed=yes
31582fi
31583 else
31584    pkg_failed=untried
31585fi
31586
31587
31588
31589if test $pkg_failed = yes; then
31590        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31591printf "%s\n" "no" >&6; }
31592
31593if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31594        _pkg_short_errors_supported=yes
31595else
31596        _pkg_short_errors_supported=no
31597fi
31598        if test $_pkg_short_errors_supported = yes; then
31599                XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
31600        else
31601                XSERVERLIBS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$REQUIRED_LIBS" 2>&1`
31602        fi
31603        # Put the nasty error message in config.log where it belongs
31604        echo "$XSERVERLIBS_PKG_ERRORS" >&5
31605
31606        as_fn_error $? "Package requirements ($REQUIRED_LIBS) were not met:
31607
31608$XSERVERLIBS_PKG_ERRORS
31609
31610Consider adjusting the PKG_CONFIG_PATH environment variable if you
31611installed software in a non-standard prefix.
31612
31613Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
31614and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
31615See the pkg-config man page for more details." "$LINENO" 5
31616elif test $pkg_failed = untried; then
31617        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31618printf "%s\n" "no" >&6; }
31619        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
31620printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
31621as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
31622is in your PATH or set the PKG_CONFIG environment variable to the full
31623path to pkg-config.
31624
31625Alternatively, you may set the environment variables XSERVERLIBS_CFLAGS
31626and XSERVERLIBS_LIBS to avoid the need to call pkg-config.
31627See the pkg-config man page for more details.
31628
31629To get pkg-config, see <http://pkg-config.freedesktop.org/>.
31630See 'config.log' for more details" "$LINENO" 5; }
31631else
31632        XSERVERLIBS_CFLAGS=$pkg_cv_XSERVERLIBS_CFLAGS
31633        XSERVERLIBS_LIBS=$pkg_cv_XSERVERLIBS_LIBS
31634        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31635printf "%s\n" "yes" >&6; }
31636
31637fi
31638
31639
31640pkg_failed=no
31641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libunwind" >&5
31642printf %s "checking for libunwind... " >&6; }
31643
31644if test -n "$LIBUNWIND_CFLAGS"; then
31645    pkg_cv_LIBUNWIND_CFLAGS="$LIBUNWIND_CFLAGS"
31646 elif test -n "$PKG_CONFIG"; then
31647    if test -n "$PKG_CONFIG" && \
31648    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
31649  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
31650  ac_status=$?
31651  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31652  test $ac_status = 0; }; then
31653  pkg_cv_LIBUNWIND_CFLAGS=`$PKG_CONFIG --cflags "libunwind" 2>/dev/null`
31654		      test "x$?" != "x0" && pkg_failed=yes
31655else
31656  pkg_failed=yes
31657fi
31658 else
31659    pkg_failed=untried
31660fi
31661if test -n "$LIBUNWIND_LIBS"; then
31662    pkg_cv_LIBUNWIND_LIBS="$LIBUNWIND_LIBS"
31663 elif test -n "$PKG_CONFIG"; then
31664    if test -n "$PKG_CONFIG" && \
31665    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libunwind\""; } >&5
31666  ($PKG_CONFIG --exists --print-errors "libunwind") 2>&5
31667  ac_status=$?
31668  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31669  test $ac_status = 0; }; then
31670  pkg_cv_LIBUNWIND_LIBS=`$PKG_CONFIG --libs "libunwind" 2>/dev/null`
31671		      test "x$?" != "x0" && pkg_failed=yes
31672else
31673  pkg_failed=yes
31674fi
31675 else
31676    pkg_failed=untried
31677fi
31678
31679
31680
31681if test $pkg_failed = yes; then
31682        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31683printf "%s\n" "no" >&6; }
31684
31685if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31686        _pkg_short_errors_supported=yes
31687else
31688        _pkg_short_errors_supported=no
31689fi
31690        if test $_pkg_short_errors_supported = yes; then
31691                LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libunwind" 2>&1`
31692        else
31693                LIBUNWIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libunwind" 2>&1`
31694        fi
31695        # Put the nasty error message in config.log where it belongs
31696        echo "$LIBUNWIND_PKG_ERRORS" >&5
31697
31698        HAVE_LIBUNWIND=no
31699elif test $pkg_failed = untried; then
31700        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31701printf "%s\n" "no" >&6; }
31702        HAVE_LIBUNWIND=no
31703else
31704        LIBUNWIND_CFLAGS=$pkg_cv_LIBUNWIND_CFLAGS
31705        LIBUNWIND_LIBS=$pkg_cv_LIBUNWIND_LIBS
31706        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31707printf "%s\n" "yes" >&6; }
31708        HAVE_LIBUNWIND=yes
31709fi
31710if test "x$LIBUNWIND" = "xauto"; then
31711    LIBUNWIND="$HAVE_LIBUNWIND"
31712fi
31713
31714if test "x$LIBUNWIND" = "xyes"; then
31715    if test "x$HAVE_LIBUNWIND" != "xyes"; then
31716        as_fn_error $? "libunwind requested but not installed." "$LINENO" 5
31717    fi
31718
31719printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h
31720
31721fi
31722
31723 if test "x$LIBUNWIND" = xyes; then
31724  HAVE_LIBUNWIND_TRUE=
31725  HAVE_LIBUNWIND_FALSE='#'
31726else
31727  HAVE_LIBUNWIND_TRUE='#'
31728  HAVE_LIBUNWIND_FALSE=
31729fi
31730
31731
31732# Autotools has some unfortunate issues with library handling.  In order to
31733# get a server to rebuild when a dependency in the tree is changed, it must
31734# be listed in SERVERNAME_DEPENDENCIES.  However, no system libraries may be
31735# listed there, or some versions of autotools will break (especially if a -L
31736# is required to find the library).  So, we keep two sets of libraries
31737# detected: NAMESPACE_LIBS for in-tree libraries to be linked against, which
31738# will go into the _DEPENDENCIES and _LDADD of the server, and
31739# NAMESPACE_SYS_LIBS which will go into only the _LDADD.  The
31740# NAMESPACEMODULES_LIBS detected from pkgconfig should always go in
31741# NAMESPACE_SYS_LIBS.
31742#
31743# XSERVER_LIBS is the set of in-tree libraries which all servers require.
31744# XSERVER_SYS_LIBS is the set of out-of-tree libraries which all servers
31745# require.
31746#
31747XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
31748XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
31749XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
31750
31751
31752
31753UTILS_SYS_LIBS="${SYS_LIBS}"
31754
31755
31756# The Xorg binary needs to export symbols so that they can be used from modules
31757# Some platforms require extra flags to do this.   libtool should set the
31758# necessary flags for each platform when -export-dynamic is passed to it.
31759LD_EXPORT_SYMBOLS_FLAG="-export-dynamic"
31760LD_NO_UNDEFINED_FLAG=
31761XORG_DRIVER_LIBS=
31762case "$host_os" in
31763    cygwin*)
31764	LD_EXPORT_SYMBOLS_FLAG="-Wl,--export-all,--out-implib,lib\$@.a"
31765	LD_NO_UNDEFINED_FLAG="-no-undefined -Wl,\$(top_builddir)/hw/xfree86/libXorg.exe.a"
31766	XORG_DRIVER_LIBS="-lXorg.exe -L\${moduledir} -lshadow -lfb -no-undefined"
31767	CYGWIN=yes
31768	;;
31769    solaris*)
31770	# We use AC_LINK_IFELSE to generate a temporary program conftest$EXEEXT
31771	# that we can link against for testing if the system linker is new
31772	# enough to support -z parent=<program> for verifying loadable modules
31773	# are only calling functions defined in either the loading program or
31774	# the libraries they're linked with.
31775	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31776/* end confdefs.h.  */
31777int main(int argc, char **argv) { return 0; }
31778_ACEOF
31779if ac_fn_c_try_link "$LINENO"
31780then :
31781  mv conftest$EXEEXT conftest.parent
31782	     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,parent=conftest.parent -G" >&5
31783printf %s "checking whether the linker accepts -Wl,-z,parent=conftest.parent -G... " >&6; }
31784if test ${xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G+y}
31785then :
31786  printf %s "(cached) " >&6
31787else case e in #(
31788  e)
31789      ax_save_FLAGS=$LDFLAGS
31790      LDFLAGS="-Wl,-z,parent=conftest.parent -G"
31791      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31792/* end confdefs.h.  */
31793extern int main(int argc, char **argv);
31794			int call_main(void) { return main(0, (void *)0); }
31795_ACEOF
31796if ac_fn_c_try_link "$LINENO"
31797then :
31798  xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=yes
31799else case e in #(
31800  e) xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G=no ;;
31801esac
31802fi
31803rm -f core conftest.err conftest.$ac_objext conftest.beam \
31804    conftest$ac_exeext conftest.$ac_ext
31805      LDFLAGS=$ax_save_FLAGS ;;
31806esac
31807fi
31808
31809eval xorg_check_linker_flags=$xorg_cv_linker_flags__Wl__z_parent_conftest_parent__G
31810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_check_linker_flags" >&5
31811printf "%s\n" "$xorg_check_linker_flags" >&6; }
31812if test "x$xorg_check_linker_flags" = xyes; then
31813	LD_NO_UNDEFINED_FLAG="-Wl,-z,defs -Wl,-z,parent=\$(top_builddir)/hw/xfree86/Xorg"
31814# Not set yet, since this gets exported in xorg-server.pc to all the drivers,
31815# and they're not all fixed to build correctly with it yet.
31816#		 XORG_DRIVER_LIBS="-Wl,-z,defs -Wl,-z,parent=${bindir}/Xorg"
31817
31818else
31819	:
31820fi
31821
31822	     rm -f conftest.parent
31823
31824fi
31825rm -f core conftest.err conftest.$ac_objext conftest.beam \
31826    conftest$ac_exeext conftest.$ac_ext
31827	;;
31828esac
31829
31830
31831
31832 if test x"$CYGWIN" = xyes; then
31833  CYGWIN_TRUE=
31834  CYGWIN_FALSE='#'
31835else
31836  CYGWIN_TRUE='#'
31837  CYGWIN_FALSE=
31838fi
31839
31840 if test x"$LD_NO_UNDEFINED_FLAG" != x; then
31841  NO_UNDEFINED_TRUE=
31842  NO_UNDEFINED_FALSE='#'
31843else
31844  NO_UNDEFINED_TRUE='#'
31845  NO_UNDEFINED_FALSE=
31846fi
31847
31848
31849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SVR4 needs to be defined" >&5
31850printf %s "checking if SVR4 needs to be defined... " >&6; }
31851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31852/* end confdefs.h.  */
31853
31854#if defined(SVR4) || defined(__svr4__) || defined(__SVR4)
31855 I_AM_SVR4
31856#endif
31857
31858_ACEOF
31859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31860  $EGREP_TRADITIONAL "I_AM_SVR4" >/dev/null 2>&1
31861then :
31862
31863
31864printf "%s\n" "#define SVR4 1" >>confdefs.h
31865
31866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31867printf "%s\n" "yes" >&6; }
31868else case e in #(
31869  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31870printf "%s\n" "no" >&6; } ;;
31871esac
31872fi
31873rm -rf conftest*
31874
31875
31876XSERVER_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"
31877
31878
31879
31880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xvfb DDX" >&5
31881printf %s "checking whether to build Xvfb DDX... " >&6; }
31882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XVFB" >&5
31883printf "%s\n" "$XVFB" >&6; }
31884 if test "x$XVFB" = xyes; then
31885  XVFB_TRUE=
31886  XVFB_FALSE='#'
31887else
31888  XVFB_TRUE='#'
31889  XVFB_FALSE=
31890fi
31891
31892
31893if test "x$XVFB" = xyes; then
31894	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"
31895	XVFB_SYS_LIBS="$XVFBMODULES_LIBS $GLX_SYS_LIBS"
31896
31897
31898fi
31899
31900
31901
31902
31903pkg_failed=no
31904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXEXT x11 xau $XDMCP_MODULES" >&5
31905printf %s "checking for $LIBXEXT x11 xau $XDMCP_MODULES... " >&6; }
31906
31907if test -n "$XNESTMODULES_CFLAGS"; then
31908    pkg_cv_XNESTMODULES_CFLAGS="$XNESTMODULES_CFLAGS"
31909 elif test -n "$PKG_CONFIG"; then
31910    if test -n "$PKG_CONFIG" && \
31911    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
31912  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
31913  ac_status=$?
31914  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31915  test $ac_status = 0; }; then
31916  pkg_cv_XNESTMODULES_CFLAGS=`$PKG_CONFIG --cflags "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
31917		      test "x$?" != "x0" && pkg_failed=yes
31918else
31919  pkg_failed=yes
31920fi
31921 else
31922    pkg_failed=untried
31923fi
31924if test -n "$XNESTMODULES_LIBS"; then
31925    pkg_cv_XNESTMODULES_LIBS="$XNESTMODULES_LIBS"
31926 elif test -n "$PKG_CONFIG"; then
31927    if test -n "$PKG_CONFIG" && \
31928    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXEXT x11 xau \$XDMCP_MODULES\""; } >&5
31929  ($PKG_CONFIG --exists --print-errors "$LIBXEXT x11 xau $XDMCP_MODULES") 2>&5
31930  ac_status=$?
31931  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31932  test $ac_status = 0; }; then
31933  pkg_cv_XNESTMODULES_LIBS=`$PKG_CONFIG --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>/dev/null`
31934		      test "x$?" != "x0" && pkg_failed=yes
31935else
31936  pkg_failed=yes
31937fi
31938 else
31939    pkg_failed=untried
31940fi
31941
31942
31943
31944if test $pkg_failed = yes; then
31945        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31946printf "%s\n" "no" >&6; }
31947
31948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31949        _pkg_short_errors_supported=yes
31950else
31951        _pkg_short_errors_supported=no
31952fi
31953        if test $_pkg_short_errors_supported = yes; then
31954                XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
31955        else
31956                XNESTMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXEXT x11 xau $XDMCP_MODULES" 2>&1`
31957        fi
31958        # Put the nasty error message in config.log where it belongs
31959        echo "$XNESTMODULES_PKG_ERRORS" >&5
31960
31961        have_xnest=no
31962elif test $pkg_failed = untried; then
31963        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31964printf "%s\n" "no" >&6; }
31965        have_xnest=no
31966else
31967        XNESTMODULES_CFLAGS=$pkg_cv_XNESTMODULES_CFLAGS
31968        XNESTMODULES_LIBS=$pkg_cv_XNESTMODULES_LIBS
31969        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31970printf "%s\n" "yes" >&6; }
31971        have_xnest=yes
31972fi
31973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xnest DDX" >&5
31974printf %s "checking whether to build Xnest DDX... " >&6; }
31975if test "x$XNEST" = xauto; then
31976	XNEST="$have_xnest"
31977fi
31978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XNEST" >&5
31979printf "%s\n" "$XNEST" >&6; }
31980 if test "x$XNEST" = xyes; then
31981  XNEST_TRUE=
31982  XNEST_FALSE='#'
31983else
31984  XNEST_TRUE='#'
31985  XNEST_FALSE=
31986fi
31987
31988
31989if test "x$XNEST" = xyes; then
31990	if test "x$have_xnest" = xno; then
31991		as_fn_error $? "Xnest build explicitly requested, but required modules not found." "$LINENO" 5
31992	fi
31993	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"
31994	XNEST_SYS_LIBS="$XNESTMODULES_LIBS $GLX_SYS_LIBS"
31995
31996
31997fi
31998
31999
32000
32001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg DDX" >&5
32002printf %s "checking whether to build Xorg DDX... " >&6; }
32003if test "x$XORG" = xauto; then
32004	XORG="yes"
32005	case $host_os in
32006		cygwin*) XORG="no" ;;
32007		mingw*)  XORG="no" ;;
32008		darwin*) XORG="no" ;;
32009	esac
32010fi
32011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG" >&5
32012printf "%s\n" "$XORG" >&6; }
32013
32014if test "x$XORG" = xyes; then
32015
32016pkg_failed=no
32017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBXCVT" >&5
32018printf %s "checking for $LIBXCVT... " >&6; }
32019
32020if test -n "$LIBXCVT_CFLAGS"; then
32021    pkg_cv_LIBXCVT_CFLAGS="$LIBXCVT_CFLAGS"
32022 elif test -n "$PKG_CONFIG"; then
32023    if test -n "$PKG_CONFIG" && \
32024    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
32025  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
32026  ac_status=$?
32027  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32028  test $ac_status = 0; }; then
32029  pkg_cv_LIBXCVT_CFLAGS=`$PKG_CONFIG --cflags "$LIBXCVT" 2>/dev/null`
32030		      test "x$?" != "x0" && pkg_failed=yes
32031else
32032  pkg_failed=yes
32033fi
32034 else
32035    pkg_failed=untried
32036fi
32037if test -n "$LIBXCVT_LIBS"; then
32038    pkg_cv_LIBXCVT_LIBS="$LIBXCVT_LIBS"
32039 elif test -n "$PKG_CONFIG"; then
32040    if test -n "$PKG_CONFIG" && \
32041    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBXCVT\""; } >&5
32042  ($PKG_CONFIG --exists --print-errors "$LIBXCVT") 2>&5
32043  ac_status=$?
32044  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32045  test $ac_status = 0; }; then
32046  pkg_cv_LIBXCVT_LIBS=`$PKG_CONFIG --libs "$LIBXCVT" 2>/dev/null`
32047		      test "x$?" != "x0" && pkg_failed=yes
32048else
32049  pkg_failed=yes
32050fi
32051 else
32052    pkg_failed=untried
32053fi
32054
32055
32056
32057if test $pkg_failed = yes; then
32058        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32059printf "%s\n" "no" >&6; }
32060
32061if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32062        _pkg_short_errors_supported=yes
32063else
32064        _pkg_short_errors_supported=no
32065fi
32066        if test $_pkg_short_errors_supported = yes; then
32067                LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBXCVT" 2>&1`
32068        else
32069                LIBXCVT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBXCVT" 2>&1`
32070        fi
32071        # Put the nasty error message in config.log where it belongs
32072        echo "$LIBXCVT_PKG_ERRORS" >&5
32073
32074        as_fn_error $? "Package requirements ($LIBXCVT) were not met:
32075
32076$LIBXCVT_PKG_ERRORS
32077
32078Consider adjusting the PKG_CONFIG_PATH environment variable if you
32079installed software in a non-standard prefix.
32080
32081Alternatively, you may set the environment variables LIBXCVT_CFLAGS
32082and LIBXCVT_LIBS to avoid the need to call pkg-config.
32083See the pkg-config man page for more details." "$LINENO" 5
32084elif test $pkg_failed = untried; then
32085        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32086printf "%s\n" "no" >&6; }
32087        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
32088printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
32089as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32090is in your PATH or set the PKG_CONFIG environment variable to the full
32091path to pkg-config.
32092
32093Alternatively, you may set the environment variables LIBXCVT_CFLAGS
32094and LIBXCVT_LIBS to avoid the need to call pkg-config.
32095See the pkg-config man page for more details.
32096
32097To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32098See 'config.log' for more details" "$LINENO" 5; }
32099else
32100        LIBXCVT_CFLAGS=$pkg_cv_LIBXCVT_CFLAGS
32101        LIBXCVT_LIBS=$pkg_cv_LIBXCVT_LIBS
32102        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32103printf "%s\n" "yes" >&6; }
32104
32105fi
32106
32107	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
32108	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
32109	XORG_INCS="$XORG_DDXINCS $XORG_OSINCS"
32110	XORG_CFLAGS="$XORGSERVER_CFLAGS $LIBXCVT_CFLAGS -DHAVE_XORG_CONFIG_H"
32111	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"
32112	XORG_SYS_LIBS="$XORG_SYS_LIBS $LIBXCVT_LIBS"
32113
32114			symbol_visibility=
32115	have_visibility=disabled
32116	if test x$SYMBOL_VISIBILITY != xno; then
32117	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5
32118printf %s "checking for symbol visibility support... " >&6; }
32119	    if test x$GCC = xyes; then
32120		VISIBILITY_CFLAGS="-fvisibility=hidden"
32121	    else
32122		if test x$SUNCC = xyes; then
32123		    VISIBILITY_CFLAGS="-xldscope=hidden"
32124		else
32125		    have_visibility=no
32126		fi
32127	    fi
32128	    if test x$have_visibility != xno; then
32129		save_CFLAGS="$CFLAGS"
32130		proto_inc=`$PKG_CONFIG --cflags xproto`
32131		CFLAGS="$CFLAGS $VISIBILITY_CFLAGS $proto_inc"
32132		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32133/* end confdefs.h.  */
32134
32135		    #include <X11/Xfuncproto.h>
32136		     extern _X_HIDDEN int hidden_int;
32137		     extern _X_EXPORT int public_int;
32138		     extern _X_HIDDEN int hidden_int_func(void);
32139		     extern _X_EXPORT int public_int_func(void);
32140int
32141main (void)
32142{
32143
32144  ;
32145  return 0;
32146}
32147_ACEOF
32148if ac_fn_c_try_compile "$LINENO"
32149then :
32150  have_visibility=yes
32151else case e in #(
32152  e) have_visibility=no ;;
32153esac
32154fi
32155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32156		CFLAGS=$save_CFLAGS
32157	    fi
32158	    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5
32159printf "%s\n" "$have_visibility" >&6; }
32160	    if test x$have_visibility != xno; then
32161		symbol_visibility=$VISIBILITY_CFLAGS
32162		XORG_CFLAGS="$XORG_CFLAGS $VISIBILITY_CFLAGS"
32163		XSERVER_CFLAGS="$XSERVER_CFLAGS $VISIBILITY_CFLAGS"
32164	    fi
32165	fi
32166
32167
32168				xorg_bus_bsdpci=no
32169	xorg_bus_sparc=no
32170
32171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build Xorg PCI functions" >&5
32172printf %s "checking whether to build Xorg PCI functions... " >&6; }
32173	if test "x$PCI" = xyes; then
32174
32175pkg_failed=no
32176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LIBPCIACCESS" >&5
32177printf %s "checking for $LIBPCIACCESS... " >&6; }
32178
32179if test -n "$PCIACCESS_CFLAGS"; then
32180    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
32181 elif test -n "$PKG_CONFIG"; then
32182    if test -n "$PKG_CONFIG" && \
32183    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
32184  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
32185  ac_status=$?
32186  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32187  test $ac_status = 0; }; then
32188  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "$LIBPCIACCESS" 2>/dev/null`
32189		      test "x$?" != "x0" && pkg_failed=yes
32190else
32191  pkg_failed=yes
32192fi
32193 else
32194    pkg_failed=untried
32195fi
32196if test -n "$PCIACCESS_LIBS"; then
32197    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
32198 elif test -n "$PKG_CONFIG"; then
32199    if test -n "$PKG_CONFIG" && \
32200    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$LIBPCIACCESS\""; } >&5
32201  ($PKG_CONFIG --exists --print-errors "$LIBPCIACCESS") 2>&5
32202  ac_status=$?
32203  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32204  test $ac_status = 0; }; then
32205  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "$LIBPCIACCESS" 2>/dev/null`
32206		      test "x$?" != "x0" && pkg_failed=yes
32207else
32208  pkg_failed=yes
32209fi
32210 else
32211    pkg_failed=untried
32212fi
32213
32214
32215
32216if test $pkg_failed = yes; then
32217        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32218printf "%s\n" "no" >&6; }
32219
32220if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32221        _pkg_short_errors_supported=yes
32222else
32223        _pkg_short_errors_supported=no
32224fi
32225        if test $_pkg_short_errors_supported = yes; then
32226                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
32227        else
32228                PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$LIBPCIACCESS" 2>&1`
32229        fi
32230        # Put the nasty error message in config.log where it belongs
32231        echo "$PCIACCESS_PKG_ERRORS" >&5
32232
32233        as_fn_error $? "Package requirements ($LIBPCIACCESS) were not met:
32234
32235$PCIACCESS_PKG_ERRORS
32236
32237Consider adjusting the PKG_CONFIG_PATH environment variable if you
32238installed software in a non-standard prefix.
32239
32240Alternatively, you may set the environment variables PCIACCESS_CFLAGS
32241and PCIACCESS_LIBS to avoid the need to call pkg-config.
32242See the pkg-config man page for more details." "$LINENO" 5
32243elif test $pkg_failed = untried; then
32244        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32245printf "%s\n" "no" >&6; }
32246        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
32247printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
32248as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32249is in your PATH or set the PKG_CONFIG environment variable to the full
32250path to pkg-config.
32251
32252Alternatively, you may set the environment variables PCIACCESS_CFLAGS
32253and PCIACCESS_LIBS to avoid the need to call pkg-config.
32254See the pkg-config man page for more details.
32255
32256To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32257See 'config.log' for more details" "$LINENO" 5; }
32258else
32259        PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
32260        PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
32261        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32262printf "%s\n" "yes" >&6; }
32263
32264fi
32265		SDK_REQUIRED_MODULES="$SDK_REQUIRED_MODULES $LIBPCIACCESS"
32266		XORG_SYS_LIBS="$XORG_SYS_LIBS $PCIACCESS_LIBS $LIBDRM_LIBS"
32267		XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS $LIBDRM_CFLAGS"
32268
32269
32270printf "%s\n" "#define XSERVER_LIBPCIACCESS 1" >>confdefs.h
32271
32272
32273  prefix_NONE=
32274  exec_prefix_NONE=
32275  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32276  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32277  eval ac_define_dir="\"$PCI_TXT_IDS_DIR\""
32278  eval ac_define_dir="\"$ac_define_dir\""
32279  PCI_TXT_IDS_PATH="$ac_define_dir"
32280
32281
32282printf "%s\n" "#define PCI_TXT_IDS_PATH \"$ac_define_dir\"" >>confdefs.h
32283
32284  test "$prefix_NONE" && prefix=NONE
32285  test "$exec_prefix_NONE" && exec_prefix=NONE
32286
32287		case $host_os in
32288		  gnu* | freebsd* | kfreebsd*-gnu | netbsd* | openbsd* | solaris* | dragonfly*)
32289			xorg_bus_bsdpci="yes"
32290			;;
32291		esac
32292		case $host_cpu in
32293		  sparc*)
32294			xorg_bus_sparc="yes"
32295			;;
32296		esac
32297	else
32298		if test "x$CONFIG_UDEV_KMS" = xyes; then
32299			as_fn_error $? "Platform device enumeration requires libpciaccess" "$LINENO" 5
32300		fi
32301		if test "x$INT10MODULE" = xyes && test "x$INT10" != xstub; then
32302			as_fn_error $? "Cannot build int10 without libpciaccess" "$LINENO" 5
32303		fi
32304	fi
32305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCI" >&5
32306printf "%s\n" "$PCI" >&6; }
32307
32308	if test "x$CONFIG_UDEV_KMS" = xyes; then
32309
32310printf "%s\n" "#define XSERVER_PLATFORM_BUS 1" >>confdefs.h
32311
32312	fi
32313	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSERVER_PLATFORM_BUS" >&5
32314printf "%s\n" "$XSERVER_PLATFORM_BUS" >&6; }
32315
32316	case $host_os in
32317	  linux*)
32318		XORG_OS_SUBDIR="linux"
32319		linux_acpi="no"
32320		case $host_cpu in
32321		  i*86|amd64*|x86_64*|ia64*)
32322			linux_acpi=$enable_linux_acpi
32323			;;
32324		  *)
32325			;;
32326		esac
32327				       for ac_header in linux/apm_bios.h
32328do :
32329  ac_fn_c_check_header_compile "$LINENO" "linux/apm_bios.h" "ac_cv_header_linux_apm_bios_h" "$ac_includes_default"
32330if test "x$ac_cv_header_linux_apm_bios_h" = xyes
32331then :
32332  printf "%s\n" "#define HAVE_LINUX_APM_BIOS_H 1" >>confdefs.h
32333 linux_apm=$enable_linux_apm
32334fi
32335
32336done
32337		;;
32338	  freebsd* | kfreebsd*-gnu | dragonfly*)
32339		XORG_OS_SUBDIR="bsd"
32340		;;
32341	  netbsd*)
32342		XORG_OS_SUBDIR="bsd"
32343		;;
32344	  openbsd*)
32345		XORG_OS_SUBDIR="bsd"
32346		;;
32347	  solaris*)
32348		XORG_OS_SUBDIR="solaris"
32349		ac_fn_c_check_header_compile "$LINENO" "sys/kd.h" "ac_cv_header_sys_kd_h" "$ac_includes_default"
32350if test "x$ac_cv_header_sys_kd_h" = xyes
32351then :
32352  printf "%s\n" "#define HAVE_SYS_KD_H 1" >>confdefs.h
32353
32354fi
32355
32356		       for ac_header in sys/vt.h
32357do :
32358  ac_fn_c_check_header_compile "$LINENO" "sys/vt.h" "ac_cv_header_sys_vt_h" "$ac_includes_default"
32359if test "x$ac_cv_header_sys_vt_h" = xyes
32360then :
32361  printf "%s\n" "#define HAVE_SYS_VT_H 1" >>confdefs.h
32362 solaris_vt=yes
32363else case e in #(
32364  e) solaris_vt=no ;;
32365esac
32366fi
32367
32368done
32369		# Check for minimum supported release
32370		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Solaris version" >&5
32371printf %s "checking Solaris version... " >&6; }
32372	        OS_MINOR=`echo ${host_os}|$SED -e 's/^.*solaris2\.//' -e s'/\..*$//'`
32373		if test "${OS_MINOR}" -ge 7 ; then
32374	        	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris ${OS_MINOR}" >&5
32375printf "%s\n" "Solaris ${OS_MINOR}" >&6; }
32376		else
32377			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&5
32378printf "%s\n" "Solaris \`echo ${host_os}|$SED -e 's/^.*solaris//\`" >&6; }
32379		fi
32380		if test "${OS_MINOR}" -lt 8 ; then
32381			as_fn_error $? "This release no longer supports Solaris versions older than Solaris 8." "$LINENO" 5
32382		fi
32383		ac_fn_check_decl "$LINENO" "_LP64" "ac_cv_have_decl__LP64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
32384if test "x$ac_cv_have_decl__LP64" = xyes
32385then :
32386  SOLARIS_64="yes"
32387else case e in #(
32388  e) SOLARIS_64="no" ;;
32389esac
32390fi
32391
32392		case $host_cpu in
32393		  sparc*)
32394			SOLARIS_INOUT_ARCH="sparcv8plus"
32395			;;
32396		  i*86|x86_64*)
32397			if test x$SOLARIS_64 = xyes ; then
32398				SOLARIS_INOUT_ARCH="amd64"
32399			else
32400				SOLARIS_INOUT_ARCH="ia32"
32401			fi
32402			;;
32403		  *)
32404			as_fn_error $? "Unsupported Solaris platform. Only SPARC & x86 \
32405			are supported on Solaris in this release.   If you are \
32406			interested in porting Xorg to your platform, please email \
32407			xorg@lists.freedesktop.org." "$LINENO" 5 ;;
32408		esac
32409
32410		;;
32411	  gnu*)
32412		XORG_OS_SUBDIR="hurd"
32413		;;
32414	  cygwin*)
32415		XORG_OS_SUBDIR="stub"
32416		;;
32417	  *)
32418		XORG_OS_SUBDIR="stub"
32419		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your OS is unknown. If you are interested in porting Xorg to your platform,
32420please email xorg@lists.freedesktop.org." >&5
32421printf "%s\n" "$as_me: Your OS is unknown. If you are interested in porting Xorg to your platform,
32422please email xorg@lists.freedesktop.org." >&6;}
32423		;;
32424	esac
32425
32426	if test "x$DGA" = xauto; then
32427
32428pkg_failed=no
32429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5
32430printf %s "checking for $DGAPROTO... " >&6; }
32431
32432if test -n "$DGA_CFLAGS"; then
32433    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
32434 elif test -n "$PKG_CONFIG"; then
32435    if test -n "$PKG_CONFIG" && \
32436    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
32437  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
32438  ac_status=$?
32439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32440  test $ac_status = 0; }; then
32441  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
32442		      test "x$?" != "x0" && pkg_failed=yes
32443else
32444  pkg_failed=yes
32445fi
32446 else
32447    pkg_failed=untried
32448fi
32449if test -n "$DGA_LIBS"; then
32450    pkg_cv_DGA_LIBS="$DGA_LIBS"
32451 elif test -n "$PKG_CONFIG"; then
32452    if test -n "$PKG_CONFIG" && \
32453    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
32454  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
32455  ac_status=$?
32456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32457  test $ac_status = 0; }; then
32458  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
32459		      test "x$?" != "x0" && pkg_failed=yes
32460else
32461  pkg_failed=yes
32462fi
32463 else
32464    pkg_failed=untried
32465fi
32466
32467
32468
32469if test $pkg_failed = yes; then
32470        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32471printf "%s\n" "no" >&6; }
32472
32473if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32474        _pkg_short_errors_supported=yes
32475else
32476        _pkg_short_errors_supported=no
32477fi
32478        if test $_pkg_short_errors_supported = yes; then
32479                DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
32480        else
32481                DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
32482        fi
32483        # Put the nasty error message in config.log where it belongs
32484        echo "$DGA_PKG_ERRORS" >&5
32485
32486        DGA=no
32487elif test $pkg_failed = untried; then
32488        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32489printf "%s\n" "no" >&6; }
32490        DGA=no
32491else
32492        DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
32493        DGA_LIBS=$pkg_cv_DGA_LIBS
32494        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32495printf "%s\n" "yes" >&6; }
32496        DGA=yes
32497fi
32498	fi
32499	if test "x$DGA" = xyes; then
32500		XORG_MODULES="$XORG_MODULES $DGAPROTO"
32501
32502pkg_failed=no
32503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $DGAPROTO" >&5
32504printf %s "checking for $DGAPROTO... " >&6; }
32505
32506if test -n "$DGA_CFLAGS"; then
32507    pkg_cv_DGA_CFLAGS="$DGA_CFLAGS"
32508 elif test -n "$PKG_CONFIG"; then
32509    if test -n "$PKG_CONFIG" && \
32510    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
32511  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
32512  ac_status=$?
32513  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32514  test $ac_status = 0; }; then
32515  pkg_cv_DGA_CFLAGS=`$PKG_CONFIG --cflags "$DGAPROTO" 2>/dev/null`
32516		      test "x$?" != "x0" && pkg_failed=yes
32517else
32518  pkg_failed=yes
32519fi
32520 else
32521    pkg_failed=untried
32522fi
32523if test -n "$DGA_LIBS"; then
32524    pkg_cv_DGA_LIBS="$DGA_LIBS"
32525 elif test -n "$PKG_CONFIG"; then
32526    if test -n "$PKG_CONFIG" && \
32527    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$DGAPROTO\""; } >&5
32528  ($PKG_CONFIG --exists --print-errors "$DGAPROTO") 2>&5
32529  ac_status=$?
32530  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32531  test $ac_status = 0; }; then
32532  pkg_cv_DGA_LIBS=`$PKG_CONFIG --libs "$DGAPROTO" 2>/dev/null`
32533		      test "x$?" != "x0" && pkg_failed=yes
32534else
32535  pkg_failed=yes
32536fi
32537 else
32538    pkg_failed=untried
32539fi
32540
32541
32542
32543if test $pkg_failed = yes; then
32544        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32545printf "%s\n" "no" >&6; }
32546
32547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32548        _pkg_short_errors_supported=yes
32549else
32550        _pkg_short_errors_supported=no
32551fi
32552        if test $_pkg_short_errors_supported = yes; then
32553                DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$DGAPROTO" 2>&1`
32554        else
32555                DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$DGAPROTO" 2>&1`
32556        fi
32557        # Put the nasty error message in config.log where it belongs
32558        echo "$DGA_PKG_ERRORS" >&5
32559
32560        as_fn_error $? "Package requirements ($DGAPROTO) were not met:
32561
32562$DGA_PKG_ERRORS
32563
32564Consider adjusting the PKG_CONFIG_PATH environment variable if you
32565installed software in a non-standard prefix.
32566
32567Alternatively, you may set the environment variables DGA_CFLAGS
32568and DGA_LIBS to avoid the need to call pkg-config.
32569See the pkg-config man page for more details." "$LINENO" 5
32570elif test $pkg_failed = untried; then
32571        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32572printf "%s\n" "no" >&6; }
32573        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
32574printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
32575as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32576is in your PATH or set the PKG_CONFIG environment variable to the full
32577path to pkg-config.
32578
32579Alternatively, you may set the environment variables DGA_CFLAGS
32580and DGA_LIBS to avoid the need to call pkg-config.
32581See the pkg-config man page for more details.
32582
32583To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32584See 'config.log' for more details" "$LINENO" 5; }
32585else
32586        DGA_CFLAGS=$pkg_cv_DGA_CFLAGS
32587        DGA_LIBS=$pkg_cv_DGA_LIBS
32588        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32589printf "%s\n" "yes" >&6; }
32590
32591fi
32592
32593printf "%s\n" "#define DGA 1" >>confdefs.h
32594
32595
32596printf "%s\n" "#define XFreeXDGA 1" >>confdefs.h
32597
32598	fi
32599
32600	if test "x$XF86VIDMODE" = xyes; then
32601		XORG_MODULES="$XORG_MODULES $VIDMODEPROTO"
32602	fi
32603
32604	if test -n "$XORG_MODULES"; then
32605
32606pkg_failed=no
32607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XORG_MODULES" >&5
32608printf %s "checking for $XORG_MODULES... " >&6; }
32609
32610if test -n "$XORG_MODULES_CFLAGS"; then
32611    pkg_cv_XORG_MODULES_CFLAGS="$XORG_MODULES_CFLAGS"
32612 elif test -n "$PKG_CONFIG"; then
32613    if test -n "$PKG_CONFIG" && \
32614    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
32615  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
32616  ac_status=$?
32617  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32618  test $ac_status = 0; }; then
32619  pkg_cv_XORG_MODULES_CFLAGS=`$PKG_CONFIG --cflags "$XORG_MODULES" 2>/dev/null`
32620		      test "x$?" != "x0" && pkg_failed=yes
32621else
32622  pkg_failed=yes
32623fi
32624 else
32625    pkg_failed=untried
32626fi
32627if test -n "$XORG_MODULES_LIBS"; then
32628    pkg_cv_XORG_MODULES_LIBS="$XORG_MODULES_LIBS"
32629 elif test -n "$PKG_CONFIG"; then
32630    if test -n "$PKG_CONFIG" && \
32631    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XORG_MODULES\""; } >&5
32632  ($PKG_CONFIG --exists --print-errors "$XORG_MODULES") 2>&5
32633  ac_status=$?
32634  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32635  test $ac_status = 0; }; then
32636  pkg_cv_XORG_MODULES_LIBS=`$PKG_CONFIG --libs "$XORG_MODULES" 2>/dev/null`
32637		      test "x$?" != "x0" && pkg_failed=yes
32638else
32639  pkg_failed=yes
32640fi
32641 else
32642    pkg_failed=untried
32643fi
32644
32645
32646
32647if test $pkg_failed = yes; then
32648        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32649printf "%s\n" "no" >&6; }
32650
32651if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32652        _pkg_short_errors_supported=yes
32653else
32654        _pkg_short_errors_supported=no
32655fi
32656        if test $_pkg_short_errors_supported = yes; then
32657                XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
32658        else
32659                XORG_MODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XORG_MODULES" 2>&1`
32660        fi
32661        # Put the nasty error message in config.log where it belongs
32662        echo "$XORG_MODULES_PKG_ERRORS" >&5
32663
32664        as_fn_error $? "Package requirements ($XORG_MODULES) were not met:
32665
32666$XORG_MODULES_PKG_ERRORS
32667
32668Consider adjusting the PKG_CONFIG_PATH environment variable if you
32669installed software in a non-standard prefix.
32670
32671Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
32672and XORG_MODULES_LIBS to avoid the need to call pkg-config.
32673See the pkg-config man page for more details." "$LINENO" 5
32674elif test $pkg_failed = untried; then
32675        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32676printf "%s\n" "no" >&6; }
32677        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
32678printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
32679as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
32680is in your PATH or set the PKG_CONFIG environment variable to the full
32681path to pkg-config.
32682
32683Alternatively, you may set the environment variables XORG_MODULES_CFLAGS
32684and XORG_MODULES_LIBS to avoid the need to call pkg-config.
32685See the pkg-config man page for more details.
32686
32687To get pkg-config, see <http://pkg-config.freedesktop.org/>.
32688See 'config.log' for more details" "$LINENO" 5; }
32689else
32690        XORG_MODULES_CFLAGS=$pkg_cv_XORG_MODULES_CFLAGS
32691        XORG_MODULES_LIBS=$pkg_cv_XORG_MODULES_LIBS
32692        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32693printf "%s\n" "yes" >&6; }
32694
32695fi
32696	        XORG_CFLAGS="$XORG_CFLAGS $XORG_MODULES_CFLAGS"
32697	        XORG_SYS_LIBS="$XORG_SYS_LIBS $XORG_MODULES_LIBS"
32698	fi
32699
32700	if test "x$DRM" = xyes -a "x$DRI2" = xyes; then
32701		XORG_DRIVER_MODESETTING=yes
32702	fi
32703
32704
32705
32706
32707
32708
32709
32710		XF86CONFIGFILE="xorg.conf"
32711	XF86CONFIGDIR="xorg.conf.d"
32712
32713	LOGPREFIX="Xorg."
32714	XDG_DATA_HOME=".local/share"
32715	XDG_DATA_HOME_LOGDIR="xorg"
32716
32717printf "%s\n" "#define XORG_SERVER 1" >>confdefs.h
32718
32719
32720printf "%s\n" "#define XORGSERVER 1" >>confdefs.h
32721
32722
32723printf "%s\n" "#define XFree86Server 1" >>confdefs.h
32724
32725
32726printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h
32727
32728
32729printf "%s\n" "#define NEED_XF86_TYPES 1" >>confdefs.h
32730
32731
32732printf "%s\n" "#define NEED_XF86_PROTOTYPES 1" >>confdefs.h
32733
32734
32735printf "%s\n" "#define __XSERVERNAME__ \"Xorg\"" >>confdefs.h
32736
32737
32738  prefix_NONE=
32739  exec_prefix_NONE=
32740  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32741  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32742  eval ac_define_dir="\"$XF86CONFIGFILE\""
32743  eval ac_define_dir="\"$ac_define_dir\""
32744  XCONFIGFILE="$ac_define_dir"
32745
32746
32747printf "%s\n" "#define XCONFIGFILE \"$ac_define_dir\"" >>confdefs.h
32748
32749  test "$prefix_NONE" && prefix=NONE
32750  test "$exec_prefix_NONE" && exec_prefix=NONE
32751
32752
32753  prefix_NONE=
32754  exec_prefix_NONE=
32755  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32756  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32757  eval ac_define_dir="\"$XF86CONFIGFILE\""
32758  eval ac_define_dir="\"$ac_define_dir\""
32759  XF86CONFIGFILE="$ac_define_dir"
32760
32761
32762printf "%s\n" "#define XF86CONFIGFILE \"$ac_define_dir\"" >>confdefs.h
32763
32764  test "$prefix_NONE" && prefix=NONE
32765  test "$exec_prefix_NONE" && exec_prefix=NONE
32766
32767
32768  prefix_NONE=
32769  exec_prefix_NONE=
32770  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32771  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32772  eval ac_define_dir="\"$XF86CONFIGDIR\""
32773  eval ac_define_dir="\"$ac_define_dir\""
32774  XCONFIGDIR="$ac_define_dir"
32775
32776
32777printf "%s\n" "#define XCONFIGDIR \"$ac_define_dir\"" >>confdefs.h
32778
32779  test "$prefix_NONE" && prefix=NONE
32780  test "$exec_prefix_NONE" && exec_prefix=NONE
32781
32782
32783  prefix_NONE=
32784  exec_prefix_NONE=
32785  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32786  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32787  eval ac_define_dir="\"$moduledir\""
32788  eval ac_define_dir="\"$ac_define_dir\""
32789  DEFAULT_MODULE_PATH="$ac_define_dir"
32790
32791
32792printf "%s\n" "#define DEFAULT_MODULE_PATH \"$ac_define_dir\"" >>confdefs.h
32793
32794  test "$prefix_NONE" && prefix=NONE
32795  test "$exec_prefix_NONE" && exec_prefix=NONE
32796
32797
32798  prefix_NONE=
32799  exec_prefix_NONE=
32800  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32801  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32802  eval ac_define_dir="\"$libdir\""
32803  eval ac_define_dir="\"$ac_define_dir\""
32804  DEFAULT_LIBRARY_PATH="$ac_define_dir"
32805
32806
32807printf "%s\n" "#define DEFAULT_LIBRARY_PATH \"$ac_define_dir\"" >>confdefs.h
32808
32809  test "$prefix_NONE" && prefix=NONE
32810  test "$exec_prefix_NONE" && exec_prefix=NONE
32811
32812
32813  prefix_NONE=
32814  exec_prefix_NONE=
32815  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32816  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32817  eval ac_define_dir="\"$logdir\""
32818  eval ac_define_dir="\"$ac_define_dir\""
32819  DEFAULT_LOGDIR="$ac_define_dir"
32820
32821
32822printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h
32823
32824  test "$prefix_NONE" && prefix=NONE
32825  test "$exec_prefix_NONE" && exec_prefix=NONE
32826
32827
32828  prefix_NONE=
32829  exec_prefix_NONE=
32830  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32831  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32832  eval ac_define_dir="\"$LOGPREFIX\""
32833  eval ac_define_dir="\"$ac_define_dir\""
32834  DEFAULT_LOGPREFIX="$ac_define_dir"
32835
32836
32837printf "%s\n" "#define DEFAULT_LOGPREFIX \"$ac_define_dir\"" >>confdefs.h
32838
32839  test "$prefix_NONE" && prefix=NONE
32840  test "$exec_prefix_NONE" && exec_prefix=NONE
32841
32842
32843  prefix_NONE=
32844  exec_prefix_NONE=
32845  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32846  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32847  eval ac_define_dir="\"$XDG_DATA_HOME\""
32848  eval ac_define_dir="\"$ac_define_dir\""
32849  DEFAULT_XDG_DATA_HOME="$ac_define_dir"
32850
32851
32852printf "%s\n" "#define DEFAULT_XDG_DATA_HOME \"$ac_define_dir\"" >>confdefs.h
32853
32854  test "$prefix_NONE" && prefix=NONE
32855  test "$exec_prefix_NONE" && exec_prefix=NONE
32856
32857
32858  prefix_NONE=
32859  exec_prefix_NONE=
32860  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
32861  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
32862  eval ac_define_dir="\"$XDG_DATA_HOME_LOGDIR\""
32863  eval ac_define_dir="\"$ac_define_dir\""
32864  DEFAULT_XDG_DATA_HOME_LOGDIR="$ac_define_dir"
32865
32866
32867printf "%s\n" "#define DEFAULT_XDG_DATA_HOME_LOGDIR \"$ac_define_dir\"" >>confdefs.h
32868
32869  test "$prefix_NONE" && prefix=NONE
32870  test "$exec_prefix_NONE" && exec_prefix=NONE
32871
32872
32873printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h
32874
32875	if test "x$VGAHW" = xyes; then
32876
32877printf "%s\n" "#define WITH_VGAHW 1" >>confdefs.h
32878
32879	fi
32880
32881	driverdir="$moduledir/drivers"
32882
32883
32884	sdkdir="$includedir/xorg"
32885	extdir="$includedir/X11/extensions"
32886	sysconfigdir="$datadir/X11/$XF86CONFIGDIR"
32887
32888
32889
32890
32891
32892	# stuff the ABI versions into the pc file too
32893	extract_abi() {
32894	    grep ^.define.*${1}_VERSION ${srcdir}/hw/xfree86/common/xf86Module.h | tr '(),' '  .' | awk '{ print $4$5 }'
32895	}
32896	abi_ansic=`extract_abi ANSIC`
32897	abi_videodrv=`extract_abi VIDEODRV`
32898	abi_xinput=`extract_abi XINPUT`
32899	abi_extension=`extract_abi EXTENSION`
32900
32901
32902
32903
32904fi
32905 if test "x$XORG" = xyes; then
32906  XORG_TRUE=
32907  XORG_FALSE='#'
32908else
32909  XORG_TRUE='#'
32910  XORG_FALSE=
32911fi
32912
32913 if test "x$PCI" = xyes; then
32914  XORG_BUS_PCI_TRUE=
32915  XORG_BUS_PCI_FALSE='#'
32916else
32917  XORG_BUS_PCI_TRUE='#'
32918  XORG_BUS_PCI_FALSE=
32919fi
32920
32921 if test "x$xorg_bus_bsdpci" = xyes; then
32922  XORG_BUS_BSDPCI_TRUE=
32923  XORG_BUS_BSDPCI_FALSE='#'
32924else
32925  XORG_BUS_BSDPCI_TRUE='#'
32926  XORG_BUS_BSDPCI_FALSE=
32927fi
32928
32929 if test "x$xorg_bus_sparc" = xyes; then
32930  XORG_BUS_SPARC_TRUE=
32931  XORG_BUS_SPARC_FALSE='#'
32932else
32933  XORG_BUS_SPARC_TRUE='#'
32934  XORG_BUS_SPARC_FALSE=
32935fi
32936
32937 if test "x$linux_acpi" = xyes; then
32938  LNXACPI_TRUE=
32939  LNXACPI_FALSE='#'
32940else
32941  LNXACPI_TRUE='#'
32942  LNXACPI_FALSE=
32943fi
32944
32945 if test "x$linux_apm" = xyes; then
32946  LNXAPM_TRUE=
32947  LNXAPM_FALSE='#'
32948else
32949  LNXAPM_TRUE='#'
32950  LNXAPM_FALSE=
32951fi
32952
32953 if test "x$solaris_vt" = xyes; then
32954  SOLARIS_VT_TRUE=
32955  SOLARIS_VT_FALSE='#'
32956else
32957  SOLARIS_VT_TRUE='#'
32958  SOLARIS_VT_FALSE=
32959fi
32960
32961 if test "x$DGA" = xyes; then
32962  DGA_TRUE=
32963  DGA_FALSE='#'
32964else
32965  DGA_TRUE='#'
32966  DGA_FALSE=
32967fi
32968
32969 if test "x$CONFIG_UDEV_KMS" = xyes; then
32970  XORG_BUS_PLATFORM_TRUE=
32971  XORG_BUS_PLATFORM_FALSE='#'
32972else
32973  XORG_BUS_PLATFORM_TRUE='#'
32974  XORG_BUS_PLATFORM_FALSE=
32975fi
32976
32977 if test "x$XORG_DRIVER_MODESETTING" = xyes; then
32978  XORG_DRIVER_MODESETTING_TRUE=
32979  XORG_DRIVER_MODESETTING_FALSE='#'
32980else
32981  XORG_DRIVER_MODESETTING_TRUE='#'
32982  XORG_DRIVER_MODESETTING_FALSE=
32983fi
32984
32985 if test "x$XORG_DRIVER_INPUT_INPUTTEST" = xyes; then
32986  XORG_DRIVER_INPUT_INPUTTEST_TRUE=
32987  XORG_DRIVER_INPUT_INPUTTEST_FALSE='#'
32988else
32989  XORG_DRIVER_INPUT_INPUTTEST_TRUE='#'
32990  XORG_DRIVER_INPUT_INPUTTEST_FALSE=
32991fi
32992
32993
32994if test "x$GLAMOR" = xauto; then
32995	if echo "$XORG" "$XEPHYR" | grep -q yes ; then
32996		GLAMOR=yes
32997	fi
32998fi
32999
33000 if test "x$GLAMOR" = xyes; then
33001  GLAMOR_TRUE=
33002  GLAMOR_FALSE='#'
33003else
33004  GLAMOR_TRUE='#'
33005  GLAMOR_FALSE=
33006fi
33007
33008
33009if test "x$GLAMOR" = xyes; then
33010
33011printf "%s\n" "#define GLAMOR 1" >>confdefs.h
33012
33013
33014pkg_failed=no
33015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoxy" >&5
33016printf %s "checking for epoxy... " >&6; }
33017
33018if test -n "$GLAMOR_CFLAGS"; then
33019    pkg_cv_GLAMOR_CFLAGS="$GLAMOR_CFLAGS"
33020 elif test -n "$PKG_CONFIG"; then
33021    if test -n "$PKG_CONFIG" && \
33022    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
33023  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
33024  ac_status=$?
33025  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33026  test $ac_status = 0; }; then
33027  pkg_cv_GLAMOR_CFLAGS=`$PKG_CONFIG --cflags "epoxy" 2>/dev/null`
33028		      test "x$?" != "x0" && pkg_failed=yes
33029else
33030  pkg_failed=yes
33031fi
33032 else
33033    pkg_failed=untried
33034fi
33035if test -n "$GLAMOR_LIBS"; then
33036    pkg_cv_GLAMOR_LIBS="$GLAMOR_LIBS"
33037 elif test -n "$PKG_CONFIG"; then
33038    if test -n "$PKG_CONFIG" && \
33039    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy\""; } >&5
33040  ($PKG_CONFIG --exists --print-errors "epoxy") 2>&5
33041  ac_status=$?
33042  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33043  test $ac_status = 0; }; then
33044  pkg_cv_GLAMOR_LIBS=`$PKG_CONFIG --libs "epoxy" 2>/dev/null`
33045		      test "x$?" != "x0" && pkg_failed=yes
33046else
33047  pkg_failed=yes
33048fi
33049 else
33050    pkg_failed=untried
33051fi
33052
33053
33054
33055if test $pkg_failed = yes; then
33056        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33057printf "%s\n" "no" >&6; }
33058
33059if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33060        _pkg_short_errors_supported=yes
33061else
33062        _pkg_short_errors_supported=no
33063fi
33064        if test $_pkg_short_errors_supported = yes; then
33065                GLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "epoxy" 2>&1`
33066        else
33067                GLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "epoxy" 2>&1`
33068        fi
33069        # Put the nasty error message in config.log where it belongs
33070        echo "$GLAMOR_PKG_ERRORS" >&5
33071
33072        as_fn_error $? "Package requirements (epoxy) were not met:
33073
33074$GLAMOR_PKG_ERRORS
33075
33076Consider adjusting the PKG_CONFIG_PATH environment variable if you
33077installed software in a non-standard prefix.
33078
33079Alternatively, you may set the environment variables GLAMOR_CFLAGS
33080and GLAMOR_LIBS to avoid the need to call pkg-config.
33081See the pkg-config man page for more details." "$LINENO" 5
33082elif test $pkg_failed = untried; then
33083        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33084printf "%s\n" "no" >&6; }
33085        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
33086printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
33087as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
33088is in your PATH or set the PKG_CONFIG environment variable to the full
33089path to pkg-config.
33090
33091Alternatively, you may set the environment variables GLAMOR_CFLAGS
33092and GLAMOR_LIBS to avoid the need to call pkg-config.
33093See the pkg-config man page for more details.
33094
33095To get pkg-config, see <http://pkg-config.freedesktop.org/>.
33096See 'config.log' for more details" "$LINENO" 5; }
33097else
33098        GLAMOR_CFLAGS=$pkg_cv_GLAMOR_CFLAGS
33099        GLAMOR_LIBS=$pkg_cv_GLAMOR_LIBS
33100        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33101printf "%s\n" "yes" >&6; }
33102
33103fi
33104
33105	if test -n "$PKG_CONFIG" && \
33106    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.4.4\""; } >&5
33107  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.4.4") 2>&5
33108  ac_status=$?
33109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33110  test $ac_status = 0; }; then
33111
33112printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DMABUF 1" >>confdefs.h
33113
33114fi
33115
33116	if test -n "$PKG_CONFIG" && \
33117    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"epoxy >= 1.5.4\""; } >&5
33118  ($PKG_CONFIG --exists --print-errors "epoxy >= 1.5.4") 2>&5
33119  ac_status=$?
33120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33121  test $ac_status = 0; }; then
33122
33123printf "%s\n" "#define GLAMOR_HAS_EGL_QUERY_DRIVER 1" >>confdefs.h
33124
33125fi
33126
33127
33128pkg_failed=no
33129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"$LIBGBM\"" >&5
33130printf %s "checking for \"$LIBGBM\"... " >&6; }
33131
33132if test -n "$GBM_CFLAGS"; then
33133    pkg_cv_GBM_CFLAGS="$GBM_CFLAGS"
33134 elif test -n "$PKG_CONFIG"; then
33135    if test -n "$PKG_CONFIG" && \
33136    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
33137  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
33138  ac_status=$?
33139  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33140  test $ac_status = 0; }; then
33141  pkg_cv_GBM_CFLAGS=`$PKG_CONFIG --cflags ""$LIBGBM"" 2>/dev/null`
33142		      test "x$?" != "x0" && pkg_failed=yes
33143else
33144  pkg_failed=yes
33145fi
33146 else
33147    pkg_failed=untried
33148fi
33149if test -n "$GBM_LIBS"; then
33150    pkg_cv_GBM_LIBS="$GBM_LIBS"
33151 elif test -n "$PKG_CONFIG"; then
33152    if test -n "$PKG_CONFIG" && \
33153    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\"\$LIBGBM\"\""; } >&5
33154  ($PKG_CONFIG --exists --print-errors ""$LIBGBM"") 2>&5
33155  ac_status=$?
33156  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33157  test $ac_status = 0; }; then
33158  pkg_cv_GBM_LIBS=`$PKG_CONFIG --libs ""$LIBGBM"" 2>/dev/null`
33159		      test "x$?" != "x0" && pkg_failed=yes
33160else
33161  pkg_failed=yes
33162fi
33163 else
33164    pkg_failed=untried
33165fi
33166
33167
33168
33169if test $pkg_failed = yes; then
33170        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33171printf "%s\n" "no" >&6; }
33172
33173if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33174        _pkg_short_errors_supported=yes
33175else
33176        _pkg_short_errors_supported=no
33177fi
33178        if test $_pkg_short_errors_supported = yes; then
33179                GBM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
33180        else
33181                GBM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs ""$LIBGBM"" 2>&1`
33182        fi
33183        # Put the nasty error message in config.log where it belongs
33184        echo "$GBM_PKG_ERRORS" >&5
33185
33186        GBM=no
33187elif test $pkg_failed = untried; then
33188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33189printf "%s\n" "no" >&6; }
33190        GBM=no
33191else
33192        GBM_CFLAGS=$pkg_cv_GBM_CFLAGS
33193        GBM_LIBS=$pkg_cv_GBM_LIBS
33194        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33195printf "%s\n" "yes" >&6; }
33196        GBM=yes
33197fi
33198	if test "x$GBM" = xyes; then
33199
33200printf "%s\n" "#define GLAMOR_HAS_GBM 1" >>confdefs.h
33201
33202		ac_fn_check_decl "$LINENO" "GBM_BO_USE_LINEAR" "ac_cv_have_decl_GBM_BO_USE_LINEAR" "#include <stdlib.h>
33203			 #include <gbm.h>
33204" "$ac_c_undeclared_builtin_options" "CFLAGS"
33205if test "x$ac_cv_have_decl_GBM_BO_USE_LINEAR" = xyes
33206then :
33207
33208printf "%s\n" "#define GLAMOR_HAS_GBM_LINEAR 1" >>confdefs.h
33209
33210fi
33211				if test -n "$PKG_CONFIG" && \
33212    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gbm >= 17.1.0\""; } >&5
33213  ($PKG_CONFIG --exists --print-errors "gbm >= 17.1.0") 2>&5
33214  ac_status=$?
33215  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33216  test $ac_status = 0; }; then
33217
33218printf "%s\n" "#define GBM_BO_WITH_MODIFIERS 1" >>confdefs.h
33219
33220fi
33221	else
33222		if test "x$XORG" = xyes; then
33223			as_fn_error $? "Glamor for Xorg requires $LIBGBM" "$LINENO" 5
33224		fi
33225	fi
33226fi
33227 if test "x$GBM" = xyes; then
33228  GLAMOR_EGL_TRUE=
33229  GLAMOR_EGL_FALSE='#'
33230else
33231  GLAMOR_EGL_TRUE='#'
33232  GLAMOR_EGL_FALSE=
33233fi
33234
33235
33236
33237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build XWin DDX" >&5
33238printf %s "checking whether to build XWin DDX... " >&6; }
33239if test "x$XWIN" = xauto; then
33240	case $host_os in
33241		cygwin*) XWIN="yes" ;;
33242		mingw*) XWIN="yes" ;;
33243		*) XWIN="no" ;;
33244	esac
33245fi
33246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XWIN" >&5
33247printf "%s\n" "$XWIN" >&6; }
33248
33249if test "x$XWIN" = xyes; then
33250
33251  prefix_NONE=
33252  exec_prefix_NONE=
33253  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
33254  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
33255  eval ac_define_dir="\"$logdir\""
33256  eval ac_define_dir="\"$ac_define_dir\""
33257  DEFAULT_LOGDIR="$ac_define_dir"
33258
33259
33260printf "%s\n" "#define DEFAULT_LOGDIR \"$ac_define_dir\"" >>confdefs.h
33261
33262  test "$prefix_NONE" && prefix=NONE
33263  test "$exec_prefix_NONE" && exec_prefix=NONE
33264
33265
33266printf "%s\n" "#define XORG_VERSION_CURRENT $VENDOR_RELEASE" >>confdefs.h
33267
33268
33269printf "%s\n" "#define __VENDORDWEBSUPPORT__ \"$VENDOR_WEB\"" >>confdefs.h
33270
33271	if test -n "$ac_tool_prefix"; then
33272  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
33273set dummy ${ac_tool_prefix}windres; ac_word=$2
33274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33275printf %s "checking for $ac_word... " >&6; }
33276if test ${ac_cv_prog_WINDRES+y}
33277then :
33278  printf %s "(cached) " >&6
33279else case e in #(
33280  e) if test -n "$WINDRES"; then
33281  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
33282else
33283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33284for as_dir in $PATH
33285do
33286  IFS=$as_save_IFS
33287  case $as_dir in #(((
33288    '') as_dir=./ ;;
33289    */) ;;
33290    *) as_dir=$as_dir/ ;;
33291  esac
33292    for ac_exec_ext in '' $ac_executable_extensions; do
33293  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33294    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
33295    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33296    break 2
33297  fi
33298done
33299  done
33300IFS=$as_save_IFS
33301
33302fi ;;
33303esac
33304fi
33305WINDRES=$ac_cv_prog_WINDRES
33306if test -n "$WINDRES"; then
33307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
33308printf "%s\n" "$WINDRES" >&6; }
33309else
33310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33311printf "%s\n" "no" >&6; }
33312fi
33313
33314
33315fi
33316if test -z "$ac_cv_prog_WINDRES"; then
33317  ac_ct_WINDRES=$WINDRES
33318  # Extract the first word of "windres", so it can be a program name with args.
33319set dummy windres; ac_word=$2
33320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33321printf %s "checking for $ac_word... " >&6; }
33322if test ${ac_cv_prog_ac_ct_WINDRES+y}
33323then :
33324  printf %s "(cached) " >&6
33325else case e in #(
33326  e) if test -n "$ac_ct_WINDRES"; then
33327  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
33328else
33329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33330for as_dir in $PATH
33331do
33332  IFS=$as_save_IFS
33333  case $as_dir in #(((
33334    '') as_dir=./ ;;
33335    */) ;;
33336    *) as_dir=$as_dir/ ;;
33337  esac
33338    for ac_exec_ext in '' $ac_executable_extensions; do
33339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33340    ac_cv_prog_ac_ct_WINDRES="windres"
33341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33342    break 2
33343  fi
33344done
33345  done
33346IFS=$as_save_IFS
33347
33348fi ;;
33349esac
33350fi
33351ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
33352if test -n "$ac_ct_WINDRES"; then
33353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
33354printf "%s\n" "$ac_ct_WINDRES" >&6; }
33355else
33356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33357printf "%s\n" "no" >&6; }
33358fi
33359
33360  if test "x$ac_ct_WINDRES" = x; then
33361    WINDRES=""
33362  else
33363    case $cross_compiling:$ac_tool_warned in
33364yes:)
33365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
33366printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
33367ac_tool_warned=yes ;;
33368esac
33369    WINDRES=$ac_ct_WINDRES
33370  fi
33371else
33372  WINDRES="$ac_cv_prog_WINDRES"
33373fi
33374
33375
33376
33377pkg_failed=no
33378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" >&5
33379printf %s "checking for xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes... " >&6; }
33380
33381if test -n "$XWINMODULES_CFLAGS"; then
33382    pkg_cv_XWINMODULES_CFLAGS="$XWINMODULES_CFLAGS"
33383 elif test -n "$PKG_CONFIG"; then
33384    if test -n "$PKG_CONFIG" && \
33385    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5
33386  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
33387  ac_status=$?
33388  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33389  test $ac_status = 0; }; then
33390  pkg_cv_XWINMODULES_CFLAGS=`$PKG_CONFIG --cflags "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
33391		      test "x$?" != "x0" && pkg_failed=yes
33392else
33393  pkg_failed=yes
33394fi
33395 else
33396    pkg_failed=untried
33397fi
33398if test -n "$XWINMODULES_LIBS"; then
33399    pkg_cv_XWINMODULES_LIBS="$XWINMODULES_LIBS"
33400 elif test -n "$PKG_CONFIG"; then
33401    if test -n "$PKG_CONFIG" && \
33402    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes\""; } >&5
33403  ($PKG_CONFIG --exists --print-errors "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes") 2>&5
33404  ac_status=$?
33405  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33406  test $ac_status = 0; }; then
33407  pkg_cv_XWINMODULES_LIBS=`$PKG_CONFIG --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>/dev/null`
33408		      test "x$?" != "x0" && pkg_failed=yes
33409else
33410  pkg_failed=yes
33411fi
33412 else
33413    pkg_failed=untried
33414fi
33415
33416
33417
33418if test $pkg_failed = yes; then
33419        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33420printf "%s\n" "no" >&6; }
33421
33422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33423        _pkg_short_errors_supported=yes
33424else
33425        _pkg_short_errors_supported=no
33426fi
33427        if test $_pkg_short_errors_supported = yes; then
33428                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`
33429        else
33430                XWINMODULES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes" 2>&1`
33431        fi
33432        # Put the nasty error message in config.log where it belongs
33433        echo "$XWINMODULES_PKG_ERRORS" >&5
33434
33435        as_fn_error $? "Package requirements (xcb-aux xcb-composite xcb-image xcb-ewmh xcb-icccm xcb-xfixes) were not met:
33436
33437$XWINMODULES_PKG_ERRORS
33438
33439Consider adjusting the PKG_CONFIG_PATH environment variable if you
33440installed software in a non-standard prefix.
33441
33442Alternatively, you may set the environment variables XWINMODULES_CFLAGS
33443and XWINMODULES_LIBS to avoid the need to call pkg-config.
33444See the pkg-config man page for more details." "$LINENO" 5
33445elif test $pkg_failed = untried; then
33446        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33447printf "%s\n" "no" >&6; }
33448        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
33449printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
33450as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
33451is in your PATH or set the PKG_CONFIG environment variable to the full
33452path to pkg-config.
33453
33454Alternatively, you may set the environment variables XWINMODULES_CFLAGS
33455and XWINMODULES_LIBS to avoid the need to call pkg-config.
33456See the pkg-config man page for more details.
33457
33458To get pkg-config, see <http://pkg-config.freedesktop.org/>.
33459See 'config.log' for more details" "$LINENO" 5; }
33460else
33461        XWINMODULES_CFLAGS=$pkg_cv_XWINMODULES_CFLAGS
33462        XWINMODULES_LIBS=$pkg_cv_XWINMODULES_LIBS
33463        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33464printf "%s\n" "yes" >&6; }
33465
33466fi
33467
33468	if test "x$WINDOWSDRI" = xauto; then
33469		if test -n "$PKG_CONFIG" && \
33470    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
33471  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
33472  ac_status=$?
33473  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33474  test $ac_status = 0; }; then
33475  WINDOWSDRI=yes
33476else
33477  WINDOWSDRI=no
33478fi
33479	fi
33480	if test "x$WINDOWSDRI" = xyes ; then
33481
33482pkg_failed=no
33483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windowsdriproto" >&5
33484printf %s "checking for windowsdriproto... " >&6; }
33485
33486if test -n "$WINDOWSDRI_CFLAGS"; then
33487    pkg_cv_WINDOWSDRI_CFLAGS="$WINDOWSDRI_CFLAGS"
33488 elif test -n "$PKG_CONFIG"; then
33489    if test -n "$PKG_CONFIG" && \
33490    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
33491  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
33492  ac_status=$?
33493  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33494  test $ac_status = 0; }; then
33495  pkg_cv_WINDOWSDRI_CFLAGS=`$PKG_CONFIG --cflags "windowsdriproto" 2>/dev/null`
33496		      test "x$?" != "x0" && pkg_failed=yes
33497else
33498  pkg_failed=yes
33499fi
33500 else
33501    pkg_failed=untried
33502fi
33503if test -n "$WINDOWSDRI_LIBS"; then
33504    pkg_cv_WINDOWSDRI_LIBS="$WINDOWSDRI_LIBS"
33505 elif test -n "$PKG_CONFIG"; then
33506    if test -n "$PKG_CONFIG" && \
33507    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"windowsdriproto\""; } >&5
33508  ($PKG_CONFIG --exists --print-errors "windowsdriproto") 2>&5
33509  ac_status=$?
33510  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33511  test $ac_status = 0; }; then
33512  pkg_cv_WINDOWSDRI_LIBS=`$PKG_CONFIG --libs "windowsdriproto" 2>/dev/null`
33513		      test "x$?" != "x0" && pkg_failed=yes
33514else
33515  pkg_failed=yes
33516fi
33517 else
33518    pkg_failed=untried
33519fi
33520
33521
33522
33523if test $pkg_failed = yes; then
33524        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33525printf "%s\n" "no" >&6; }
33526
33527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33528        _pkg_short_errors_supported=yes
33529else
33530        _pkg_short_errors_supported=no
33531fi
33532        if test $_pkg_short_errors_supported = yes; then
33533                WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "windowsdriproto" 2>&1`
33534        else
33535                WINDOWSDRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "windowsdriproto" 2>&1`
33536        fi
33537        # Put the nasty error message in config.log where it belongs
33538        echo "$WINDOWSDRI_PKG_ERRORS" >&5
33539
33540        as_fn_error $? "Package requirements (windowsdriproto) were not met:
33541
33542$WINDOWSDRI_PKG_ERRORS
33543
33544Consider adjusting the PKG_CONFIG_PATH environment variable if you
33545installed software in a non-standard prefix.
33546
33547Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
33548and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
33549See the pkg-config man page for more details." "$LINENO" 5
33550elif test $pkg_failed = untried; then
33551        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33552printf "%s\n" "no" >&6; }
33553        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
33554printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
33555as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
33556is in your PATH or set the PKG_CONFIG environment variable to the full
33557path to pkg-config.
33558
33559Alternatively, you may set the environment variables WINDOWSDRI_CFLAGS
33560and WINDOWSDRI_LIBS to avoid the need to call pkg-config.
33561See the pkg-config man page for more details.
33562
33563To get pkg-config, see <http://pkg-config.freedesktop.org/>.
33564See 'config.log' for more details" "$LINENO" 5; }
33565else
33566        WINDOWSDRI_CFLAGS=$pkg_cv_WINDOWSDRI_CFLAGS
33567        WINDOWSDRI_LIBS=$pkg_cv_WINDOWSDRI_LIBS
33568        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33569printf "%s\n" "yes" >&6; }
33570
33571fi
33572	fi
33573
33574	case $host_os in
33575		cygwin*)
33576			XWIN_SERVER_NAME=XWin
33577
33578printf "%s\n" "#define HAS_DEVWINDOWS 1" >>confdefs.h
33579
33580			;;
33581		mingw*)
33582			XWIN_SERVER_NAME=Xming
33583
33584printf "%s\n" "#define RELOCATE_PROJECTROOT 1" >>confdefs.h
33585
33586
33587printf "%s\n" "#define HAS_WINSOCK 1" >>confdefs.h
33588
33589			XWIN_SYS_LIBS="-lpthread -lws2_32"
33590			;;
33591	esac
33592
33593	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"
33594	XWIN_SYS_LIBS="$XWIN_SYS_LIBS $XWINMODULES_LIBS"
33595
33596
33597
33598
33599	if test "x$DEBUGGING" = xyes; then
33600
33601printf "%s\n" "#define CYGDEBUG 1" >>confdefs.h
33602
33603
33604printf "%s\n" "#define CYGWINDOWING_DEBUG 1" >>confdefs.h
33605
33606
33607printf "%s\n" "#define CYGMULTIWINDOW_DEBUG 1" >>confdefs.h
33608
33609	fi
33610
33611
33612printf "%s\n" "#define DDXOSVERRORF 1" >>confdefs.h
33613
33614
33615printf "%s\n" "#define DDXBEFORERESET 1" >>confdefs.h
33616
33617
33618	if test "x$XWIN" = xyes && test "x$GLX" = xyes ; then
33619           # Extract the first word of "python3", so it can be a program name with args.
33620set dummy python3; ac_word=$2
33621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33622printf %s "checking for $ac_word... " >&6; }
33623if test ${ac_cv_prog_PYTHON3+y}
33624then :
33625  printf %s "(cached) " >&6
33626else case e in #(
33627  e) if test -n "$PYTHON3"; then
33628  ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
33629else
33630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33631for as_dir in $PATH
33632do
33633  IFS=$as_save_IFS
33634  case $as_dir in #(((
33635    '') as_dir=./ ;;
33636    */) ;;
33637    *) as_dir=$as_dir/ ;;
33638  esac
33639    for ac_exec_ext in '' $ac_executable_extensions; do
33640  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
33641    ac_cv_prog_PYTHON3="python3"
33642    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
33643    break 2
33644  fi
33645done
33646  done
33647IFS=$as_save_IFS
33648
33649fi ;;
33650esac
33651fi
33652PYTHON3=$ac_cv_prog_PYTHON3
33653if test -n "$PYTHON3"; then
33654  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
33655printf "%s\n" "$PYTHON3" >&6; }
33656else
33657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33658printf "%s\n" "no" >&6; }
33659fi
33660
33661
33662           if test -z "$PYTHON3"; then
33663                as_fn_error $? "python3 not found" "$LINENO" 5
33664           fi
33665           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python module lxml" >&5
33666printf %s "checking for python module lxml... " >&6; }
33667           $PYTHON3 -c "import lxml;"
33668           if test $? -ne 0 ; then
33669                as_fn_error $? "not found" "$LINENO" 5
33670           fi
33671           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33672printf "%s\n" "yes" >&6; }
33673           if test "x$KHRONOS_SPEC_DIR" = "xauto" ; then
33674
33675pkg_failed=no
33676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for khronos-opengl-registry" >&5
33677printf %s "checking for khronos-opengl-registry... " >&6; }
33678
33679if test -n "$KHRONOS_OPENGL_REGISTRY_CFLAGS"; then
33680    pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS="$KHRONOS_OPENGL_REGISTRY_CFLAGS"
33681 elif test -n "$PKG_CONFIG"; then
33682    if test -n "$PKG_CONFIG" && \
33683    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
33684  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
33685  ac_status=$?
33686  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33687  test $ac_status = 0; }; then
33688  pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS=`$PKG_CONFIG --cflags "khronos-opengl-registry" 2>/dev/null`
33689		      test "x$?" != "x0" && pkg_failed=yes
33690else
33691  pkg_failed=yes
33692fi
33693 else
33694    pkg_failed=untried
33695fi
33696if test -n "$KHRONOS_OPENGL_REGISTRY_LIBS"; then
33697    pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS="$KHRONOS_OPENGL_REGISTRY_LIBS"
33698 elif test -n "$PKG_CONFIG"; then
33699    if test -n "$PKG_CONFIG" && \
33700    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"khronos-opengl-registry\""; } >&5
33701  ($PKG_CONFIG --exists --print-errors "khronos-opengl-registry") 2>&5
33702  ac_status=$?
33703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33704  test $ac_status = 0; }; then
33705  pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS=`$PKG_CONFIG --libs "khronos-opengl-registry" 2>/dev/null`
33706		      test "x$?" != "x0" && pkg_failed=yes
33707else
33708  pkg_failed=yes
33709fi
33710 else
33711    pkg_failed=untried
33712fi
33713
33714
33715
33716if test $pkg_failed = yes; then
33717        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33718printf "%s\n" "no" >&6; }
33719
33720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33721        _pkg_short_errors_supported=yes
33722else
33723        _pkg_short_errors_supported=no
33724fi
33725        if test $_pkg_short_errors_supported = yes; then
33726                KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
33727        else
33728                KHRONOS_OPENGL_REGISTRY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "khronos-opengl-registry" 2>&1`
33729        fi
33730        # Put the nasty error message in config.log where it belongs
33731        echo "$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS" >&5
33732
33733        as_fn_error $? "Package requirements (khronos-opengl-registry) were not met:
33734
33735$KHRONOS_OPENGL_REGISTRY_PKG_ERRORS
33736
33737Consider adjusting the PKG_CONFIG_PATH environment variable if you
33738installed software in a non-standard prefix.
33739
33740Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
33741and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
33742See the pkg-config man page for more details." "$LINENO" 5
33743elif test $pkg_failed = untried; then
33744        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33745printf "%s\n" "no" >&6; }
33746        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
33747printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
33748as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
33749is in your PATH or set the PKG_CONFIG environment variable to the full
33750path to pkg-config.
33751
33752Alternatively, you may set the environment variables KHRONOS_OPENGL_REGISTRY_CFLAGS
33753and KHRONOS_OPENGL_REGISTRY_LIBS to avoid the need to call pkg-config.
33754See the pkg-config man page for more details.
33755
33756To get pkg-config, see <http://pkg-config.freedesktop.org/>.
33757See 'config.log' for more details" "$LINENO" 5; }
33758else
33759        KHRONOS_OPENGL_REGISTRY_CFLAGS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_CFLAGS
33760        KHRONOS_OPENGL_REGISTRY_LIBS=$pkg_cv_KHRONOS_OPENGL_REGISTRY_LIBS
33761        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33762printf "%s\n" "yes" >&6; }
33763
33764fi
33765		KHRONOS_SPEC_DIR=`pkg-config khronos-opengl-registry --variable=specdir`
33766           fi
33767
33768	fi
33769
33770fi
33771 if test "x$XWIN" = xyes; then
33772  XWIN_TRUE=
33773  XWIN_FALSE='#'
33774else
33775  XWIN_TRUE='#'
33776  XWIN_FALSE=
33777fi
33778
33779 if test "x$XWIN" = xyes && test "x$GLX" = xyes; then
33780  XWIN_GLX_WINDOWS_TRUE=
33781  XWIN_GLX_WINDOWS_FALSE='#'
33782else
33783  XWIN_GLX_WINDOWS_TRUE='#'
33784  XWIN_GLX_WINDOWS_FALSE=
33785fi
33786
33787 if test "x$XWIN" = xyes && test "x$WINDOWSDRI" = xyes; then
33788  XWIN_WINDOWS_DRI_TRUE=
33789  XWIN_WINDOWS_DRI_FALSE='#'
33790else
33791  XWIN_WINDOWS_DRI_TRUE='#'
33792  XWIN_WINDOWS_DRI_FALSE=
33793fi
33794
33795
33796if test "x$XQUARTZ" = xyes; then
33797
33798printf "%s\n" "#define XQUARTZ 1" >>confdefs.h
33799
33800
33801printf "%s\n" "#define ROOTLESS 1" >>confdefs.h
33802
33803
33804	XQUARTZ_LIBS="$COMPOSITE_LIB $FB_LIB $FIXES_LIB $XEXT_LIB $DBE_LIB $RECORD_LIB $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $XPSTUBS_LIB $PRESENT_LIB"
33805
33806
33807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xp_init in -lXplugin" >&5
33808printf %s "checking for xp_init in -lXplugin... " >&6; }
33809if test ${ac_cv_lib_Xplugin_xp_init+y}
33810then :
33811  printf %s "(cached) " >&6
33812else case e in #(
33813  e) ac_check_lib_save_LIBS=$LIBS
33814LIBS="-lXplugin  $LIBS"
33815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33816/* end confdefs.h.  */
33817
33818/* Override any GCC internal prototype to avoid an error.
33819   Use char because int might match the return type of a GCC
33820   builtin and then its argument prototype would still apply.
33821   The 'extern "C"' is for builds by C++ compilers;
33822   although this is not generally supported in C code supporting it here
33823   has little cost and some practical benefit (sr 110532).  */
33824#ifdef __cplusplus
33825extern "C"
33826#endif
33827char xp_init (void);
33828int
33829main (void)
33830{
33831return xp_init ();
33832  ;
33833  return 0;
33834}
33835_ACEOF
33836if ac_fn_c_try_link "$LINENO"
33837then :
33838  ac_cv_lib_Xplugin_xp_init=yes
33839else case e in #(
33840  e) ac_cv_lib_Xplugin_xp_init=no ;;
33841esac
33842fi
33843rm -f core conftest.err conftest.$ac_objext conftest.beam \
33844    conftest$ac_exeext conftest.$ac_ext
33845LIBS=$ac_check_lib_save_LIBS ;;
33846esac
33847fi
33848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xplugin_xp_init" >&5
33849printf "%s\n" "$ac_cv_lib_Xplugin_xp_init" >&6; }
33850if test "x$ac_cv_lib_Xplugin_xp_init" = xyes
33851then :
33852  :
33853fi
33854
33855
33856	CFLAGS="${CFLAGS} -DROOTLESS_WORKAROUND -DROOTLESS_SAFEALPHA -DNO_ALLOCA"
33857
33858
33859pkg_failed=no
33860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11" >&5
33861printf %s "checking for $APPLEWMPROTO $LIBAPPLEWM xfixes x11... " >&6; }
33862
33863if test -n "$XPBPROXY_CFLAGS"; then
33864    pkg_cv_XPBPROXY_CFLAGS="$XPBPROXY_CFLAGS"
33865 elif test -n "$PKG_CONFIG"; then
33866    if test -n "$PKG_CONFIG" && \
33867    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
33868  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
33869  ac_status=$?
33870  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33871  test $ac_status = 0; }; then
33872  pkg_cv_XPBPROXY_CFLAGS=`$PKG_CONFIG --cflags "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
33873		      test "x$?" != "x0" && pkg_failed=yes
33874else
33875  pkg_failed=yes
33876fi
33877 else
33878    pkg_failed=untried
33879fi
33880if test -n "$XPBPROXY_LIBS"; then
33881    pkg_cv_XPBPROXY_LIBS="$XPBPROXY_LIBS"
33882 elif test -n "$PKG_CONFIG"; then
33883    if test -n "$PKG_CONFIG" && \
33884    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$APPLEWMPROTO \$LIBAPPLEWM xfixes x11\""; } >&5
33885  ($PKG_CONFIG --exists --print-errors "$APPLEWMPROTO $LIBAPPLEWM xfixes x11") 2>&5
33886  ac_status=$?
33887  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33888  test $ac_status = 0; }; then
33889  pkg_cv_XPBPROXY_LIBS=`$PKG_CONFIG --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>/dev/null`
33890		      test "x$?" != "x0" && pkg_failed=yes
33891else
33892  pkg_failed=yes
33893fi
33894 else
33895    pkg_failed=untried
33896fi
33897
33898
33899
33900if test $pkg_failed = yes; then
33901        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33902printf "%s\n" "no" >&6; }
33903
33904if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33905        _pkg_short_errors_supported=yes
33906else
33907        _pkg_short_errors_supported=no
33908fi
33909        if test $_pkg_short_errors_supported = yes; then
33910                XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
33911        else
33912                XPBPROXY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$APPLEWMPROTO $LIBAPPLEWM xfixes x11" 2>&1`
33913        fi
33914        # Put the nasty error message in config.log where it belongs
33915        echo "$XPBPROXY_PKG_ERRORS" >&5
33916
33917        as_fn_error $? "Package requirements ($APPLEWMPROTO $LIBAPPLEWM xfixes x11) were not met:
33918
33919$XPBPROXY_PKG_ERRORS
33920
33921Consider adjusting the PKG_CONFIG_PATH environment variable if you
33922installed software in a non-standard prefix.
33923
33924Alternatively, you may set the environment variables XPBPROXY_CFLAGS
33925and XPBPROXY_LIBS to avoid the need to call pkg-config.
33926See the pkg-config man page for more details." "$LINENO" 5
33927elif test $pkg_failed = untried; then
33928        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
33929printf "%s\n" "no" >&6; }
33930        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
33931printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
33932as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
33933is in your PATH or set the PKG_CONFIG environment variable to the full
33934path to pkg-config.
33935
33936Alternatively, you may set the environment variables XPBPROXY_CFLAGS
33937and XPBPROXY_LIBS to avoid the need to call pkg-config.
33938See the pkg-config man page for more details.
33939
33940To get pkg-config, see <http://pkg-config.freedesktop.org/>.
33941See 'config.log' for more details" "$LINENO" 5; }
33942else
33943        XPBPROXY_CFLAGS=$pkg_cv_XPBPROXY_CFLAGS
33944        XPBPROXY_LIBS=$pkg_cv_XPBPROXY_LIBS
33945        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33946printf "%s\n" "yes" >&6; }
33947
33948fi
33949
33950        if test "x$XQUARTZ_SPARKLE" = xyes ; then
33951
33952printf "%s\n" "#define XQUARTZ_SPARKLE 1" >>confdefs.h
33953
33954        fi
33955
33956	if test "x$STANDALONE_XPBPROXY" = xyes ; then
33957
33958printf "%s\n" "#define STANDALONE_XPBPROXY 1" >>confdefs.h
33959
33960	fi
33961fi
33962
33963 if test "x$XQUARTZ" = xyes -o "x$XWIN" = xyes ; then
33964  PSEUDORAMIX_TRUE=
33965  PSEUDORAMIX_FALSE='#'
33966else
33967  PSEUDORAMIX_TRUE='#'
33968  PSEUDORAMIX_FALSE=
33969fi
33970
33971
33972# Support for objc in autotools is minimal and not documented.
33973OBJC='$(CC)'
33974OBJCLD='$(CCLD)'
33975OBJCLINK='$(LINK)'
33976OBJCFLAGS='$(CFLAGS)'
33977
33978
33979
33980
33981# internal, undocumented automake func follows :(
33982
33983depcc="$OBJC" am_compiler_list='gcc3 gcc'
33984
33985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
33986printf %s "checking dependency style of $depcc... " >&6; }
33987if test ${am_cv_OBJC_dependencies_compiler_type+y}
33988then :
33989  printf %s "(cached) " >&6
33990else case e in #(
33991  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
33992  # We make a subdir and do the tests there.  Otherwise we can end up
33993  # making bogus files that we don't know about and never remove.  For
33994  # instance it was reported that on HP-UX the gcc test will end up
33995  # making a dummy file named 'D' -- because '-MD' means "put the output
33996  # in D".
33997  rm -rf conftest.dir
33998  mkdir conftest.dir
33999  # Copy depcomp to subdir because otherwise we won't find it if we're
34000  # using a relative directory.
34001  cp "$am_depcomp" conftest.dir
34002  cd conftest.dir
34003  # We will build objects and dependencies in a subdirectory because
34004  # it helps to detect inapplicable dependency modes.  For instance
34005  # both Tru64's cc and ICC support -MD to output dependencies as a
34006  # side effect of compilation, but ICC will put the dependencies in
34007  # the current directory while Tru64 will put them in the object
34008  # directory.
34009  mkdir sub
34010
34011  am_cv_OBJC_dependencies_compiler_type=none
34012  if test "$am_compiler_list" = ""; then
34013     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
34014  fi
34015  am__universal=false
34016
34017
34018  for depmode in $am_compiler_list; do
34019    # Setup a source with many dependencies, because some compilers
34020    # like to wrap large dependency lists on column 80 (with \), and
34021    # we should not choose a depcomp mode which is confused by this.
34022    #
34023    # We need to recreate these files for each test, as the compiler may
34024    # overwrite some of them when testing with obscure command lines.
34025    # This happens at least with the AIX C compiler.
34026    : > sub/conftest.c
34027    for i in 1 2 3 4 5 6; do
34028      echo '#include "conftst'$i'.h"' >> sub/conftest.c
34029      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
34030      # Solaris 10 /bin/sh.
34031      echo '/* dummy */' > sub/conftst$i.h
34032    done
34033    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
34034
34035    # We check with '-c' and '-o' for the sake of the "dashmstdout"
34036    # mode.  It turns out that the SunPro C++ compiler does not properly
34037    # handle '-M -o', and we need to detect this.  Also, some Intel
34038    # versions had trouble with output in subdirs.
34039    am__obj=sub/conftest.${OBJEXT-o}
34040    am__minus_obj="-o $am__obj"
34041    case $depmode in
34042    gcc)
34043      # This depmode causes a compiler race in universal mode.
34044      test "$am__universal" = false || continue
34045      ;;
34046    nosideeffect)
34047      # After this tag, mechanisms are not by side-effect, so they'll
34048      # only be used when explicitly requested.
34049      if test "x$enable_dependency_tracking" = xyes; then
34050	continue
34051      else
34052	break
34053      fi
34054      ;;
34055    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
34056      # This compiler won't grok '-c -o', but also, the minuso test has
34057      # not run yet.  These depmodes are late enough in the game, and
34058      # so weak that their functioning should not be impacted.
34059      am__obj=conftest.${OBJEXT-o}
34060      am__minus_obj=
34061      ;;
34062    none) break ;;
34063    esac
34064    if depmode=$depmode \
34065       source=sub/conftest.c object=$am__obj \
34066       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34067       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
34068         >/dev/null 2>conftest.err &&
34069       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34070       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
34071       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
34072       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34073      # icc doesn't choke on unknown options, it will just issue warnings
34074      # or remarks (even with -Werror).  So we grep stderr for any message
34075      # that says an option was ignored or not supported.
34076      # When given -MP, icc 7.0 and 7.1 complain thus:
34077      #   icc: Command line warning: ignoring option '-M'; no argument required
34078      # The diagnosis changed in icc 8.0:
34079      #   icc: Command line remark: option '-MP' not supported
34080      if (grep 'ignoring option' conftest.err ||
34081          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
34082        am_cv_OBJC_dependencies_compiler_type=$depmode
34083        break
34084      fi
34085    fi
34086  done
34087
34088  cd ..
34089  rm -rf conftest.dir
34090else
34091  am_cv_OBJC_dependencies_compiler_type=none
34092fi
34093 ;;
34094esac
34095fi
34096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
34097printf "%s\n" "$am_cv_OBJC_dependencies_compiler_type" >&6; }
34098OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
34099
34100 if
34101  test "x$enable_dependency_tracking" != xno \
34102  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
34103  am__fastdepOBJC_TRUE=
34104  am__fastdepOBJC_FALSE='#'
34105else
34106  am__fastdepOBJC_TRUE='#'
34107  am__fastdepOBJC_FALSE=
34108fi
34109
34110
34111 if test "x$XQUARTZ" = xyes; then
34112  XQUARTZ_TRUE=
34113  XQUARTZ_FALSE='#'
34114else
34115  XQUARTZ_TRUE='#'
34116  XQUARTZ_FALSE=
34117fi
34118
34119 if test "x$XQUARTZ_SPARKLE" != "xno"; then
34120  XQUARTZ_SPARKLE_TRUE=
34121  XQUARTZ_SPARKLE_FALSE='#'
34122else
34123  XQUARTZ_SPARKLE_TRUE='#'
34124  XQUARTZ_SPARKLE_FALSE=
34125fi
34126
34127 if test "x$STANDALONE_XPBPROXY" = xyes; then
34128  STANDALONE_XPBPROXY_TRUE=
34129  STANDALONE_XPBPROXY_FALSE='#'
34130else
34131  STANDALONE_XPBPROXY_TRUE='#'
34132  STANDALONE_XPBPROXY_FALSE=
34133fi
34134
34135
34136
34137XEPHYR_LIBS=
34138XEPHYR_INCS=
34139
34140 if test x$KDRIVE = xyes; then
34141  KDRIVE_TRUE=
34142  KDRIVE_FALSE='#'
34143else
34144  KDRIVE_TRUE='#'
34145  KDRIVE_FALSE=
34146fi
34147
34148
34149if test "$KDRIVE" = yes; then
34150    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"
34151    if test "x$XV" = xyes; then
34152        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS xcb-xv"
34153    fi
34154    if test "x$DRI" = xyes && test "x$GLX" = xyes; then
34155        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS $LIBDRM xcb-glx xcb-xf86dri > 1.6"
34156    fi
34157    if test "x$GLAMOR" = xyes; then
34158        XEPHYR_REQUIRED_LIBS="$XEPHYR_REQUIRED_LIBS x11-xcb"
34159    fi
34160
34161    if test "x$XEPHYR" = xauto; then
34162
34163pkg_failed=no
34164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5
34165printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; }
34166
34167if test -n "$XEPHYR_CFLAGS"; then
34168    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
34169 elif test -n "$PKG_CONFIG"; then
34170    if test -n "$PKG_CONFIG" && \
34171    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
34172  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
34173  ac_status=$?
34174  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34175  test $ac_status = 0; }; then
34176  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
34177		      test "x$?" != "x0" && pkg_failed=yes
34178else
34179  pkg_failed=yes
34180fi
34181 else
34182    pkg_failed=untried
34183fi
34184if test -n "$XEPHYR_LIBS"; then
34185    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
34186 elif test -n "$PKG_CONFIG"; then
34187    if test -n "$PKG_CONFIG" && \
34188    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
34189  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
34190  ac_status=$?
34191  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34192  test $ac_status = 0; }; then
34193  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
34194		      test "x$?" != "x0" && pkg_failed=yes
34195else
34196  pkg_failed=yes
34197fi
34198 else
34199    pkg_failed=untried
34200fi
34201
34202
34203
34204if test $pkg_failed = yes; then
34205        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34206printf "%s\n" "no" >&6; }
34207
34208if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34209        _pkg_short_errors_supported=yes
34210else
34211        _pkg_short_errors_supported=no
34212fi
34213        if test $_pkg_short_errors_supported = yes; then
34214                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
34215        else
34216                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
34217        fi
34218        # Put the nasty error message in config.log where it belongs
34219        echo "$XEPHYR_PKG_ERRORS" >&5
34220
34221        XEPHYR="no"
34222elif test $pkg_failed = untried; then
34223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34224printf "%s\n" "no" >&6; }
34225        XEPHYR="no"
34226else
34227        XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
34228        XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
34229        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34230printf "%s\n" "yes" >&6; }
34231        XEPHYR="yes"
34232fi
34233    elif test "x$XEPHYR" = xyes ; then
34234
34235pkg_failed=no
34236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $XEPHYR_REQUIRED_LIBS" >&5
34237printf %s "checking for $XEPHYR_REQUIRED_LIBS... " >&6; }
34238
34239if test -n "$XEPHYR_CFLAGS"; then
34240    pkg_cv_XEPHYR_CFLAGS="$XEPHYR_CFLAGS"
34241 elif test -n "$PKG_CONFIG"; then
34242    if test -n "$PKG_CONFIG" && \
34243    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
34244  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
34245  ac_status=$?
34246  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34247  test $ac_status = 0; }; then
34248  pkg_cv_XEPHYR_CFLAGS=`$PKG_CONFIG --cflags "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
34249		      test "x$?" != "x0" && pkg_failed=yes
34250else
34251  pkg_failed=yes
34252fi
34253 else
34254    pkg_failed=untried
34255fi
34256if test -n "$XEPHYR_LIBS"; then
34257    pkg_cv_XEPHYR_LIBS="$XEPHYR_LIBS"
34258 elif test -n "$PKG_CONFIG"; then
34259    if test -n "$PKG_CONFIG" && \
34260    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$XEPHYR_REQUIRED_LIBS\""; } >&5
34261  ($PKG_CONFIG --exists --print-errors "$XEPHYR_REQUIRED_LIBS") 2>&5
34262  ac_status=$?
34263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34264  test $ac_status = 0; }; then
34265  pkg_cv_XEPHYR_LIBS=`$PKG_CONFIG --libs "$XEPHYR_REQUIRED_LIBS" 2>/dev/null`
34266		      test "x$?" != "x0" && pkg_failed=yes
34267else
34268  pkg_failed=yes
34269fi
34270 else
34271    pkg_failed=untried
34272fi
34273
34274
34275
34276if test $pkg_failed = yes; then
34277        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34278printf "%s\n" "no" >&6; }
34279
34280if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34281        _pkg_short_errors_supported=yes
34282else
34283        _pkg_short_errors_supported=no
34284fi
34285        if test $_pkg_short_errors_supported = yes; then
34286                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
34287        else
34288                XEPHYR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$XEPHYR_REQUIRED_LIBS" 2>&1`
34289        fi
34290        # Put the nasty error message in config.log where it belongs
34291        echo "$XEPHYR_PKG_ERRORS" >&5
34292
34293        as_fn_error $? "Package requirements ($XEPHYR_REQUIRED_LIBS) were not met:
34294
34295$XEPHYR_PKG_ERRORS
34296
34297Consider adjusting the PKG_CONFIG_PATH environment variable if you
34298installed software in a non-standard prefix.
34299
34300Alternatively, you may set the environment variables XEPHYR_CFLAGS
34301and XEPHYR_LIBS to avoid the need to call pkg-config.
34302See the pkg-config man page for more details." "$LINENO" 5
34303elif test $pkg_failed = untried; then
34304        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34305printf "%s\n" "no" >&6; }
34306        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
34307printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
34308as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
34309is in your PATH or set the PKG_CONFIG environment variable to the full
34310path to pkg-config.
34311
34312Alternatively, you may set the environment variables XEPHYR_CFLAGS
34313and XEPHYR_LIBS to avoid the need to call pkg-config.
34314See the pkg-config man page for more details.
34315
34316To get pkg-config, see <http://pkg-config.freedesktop.org/>.
34317See 'config.log' for more details" "$LINENO" 5; }
34318else
34319        XEPHYR_CFLAGS=$pkg_cv_XEPHYR_CFLAGS
34320        XEPHYR_LIBS=$pkg_cv_XEPHYR_LIBS
34321        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34322printf "%s\n" "yes" >&6; }
34323
34324fi
34325    fi
34326
34327    # Xephyr needs nanosleep() which is in librt on Solaris
34328    ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
34329if test "x$ac_cv_func_nanosleep" = xyes
34330then :
34331
34332else case e in #(
34333  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
34334printf %s "checking for nanosleep in -lrt... " >&6; }
34335if test ${ac_cv_lib_rt_nanosleep+y}
34336then :
34337  printf %s "(cached) " >&6
34338else case e in #(
34339  e) ac_check_lib_save_LIBS=$LIBS
34340LIBS="-lrt  $LIBS"
34341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34342/* end confdefs.h.  */
34343
34344/* Override any GCC internal prototype to avoid an error.
34345   Use char because int might match the return type of a GCC
34346   builtin and then its argument prototype would still apply.
34347   The 'extern "C"' is for builds by C++ compilers;
34348   although this is not generally supported in C code supporting it here
34349   has little cost and some practical benefit (sr 110532).  */
34350#ifdef __cplusplus
34351extern "C"
34352#endif
34353char nanosleep (void);
34354int
34355main (void)
34356{
34357return nanosleep ();
34358  ;
34359  return 0;
34360}
34361_ACEOF
34362if ac_fn_c_try_link "$LINENO"
34363then :
34364  ac_cv_lib_rt_nanosleep=yes
34365else case e in #(
34366  e) ac_cv_lib_rt_nanosleep=no ;;
34367esac
34368fi
34369rm -f core conftest.err conftest.$ac_objext conftest.beam \
34370    conftest$ac_exeext conftest.$ac_ext
34371LIBS=$ac_check_lib_save_LIBS ;;
34372esac
34373fi
34374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
34375printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
34376if test "x$ac_cv_lib_rt_nanosleep" = xyes
34377then :
34378  XEPHYR_LIBS="$XEPHYR_LIBS -lrt"
34379fi
34380 ;;
34381esac
34382fi
34383
34384
34385    # damage shadow extension glx (NOTYET) fb mi
34386    KDRIVE_INC='-I$(top_srcdir)/hw/kdrive/src'
34387    KDRIVE_PURE_INCS="$KDRIVE_INC $MIEXT_SYNC_INC $MIEXT_DAMAGE_INC $MIEXT_SHADOW_INC $XEXT_INC $FB_INC $MI_INC"
34388    KDRIVE_OS_INC='-I$(top_srcdir)/hw/kdrive/linux'
34389    KDRIVE_INCS="$KDRIVE_PURE_INCS $KDRIVE_OS_INC"
34390
34391    KDRIVE_CFLAGS="$XSERVER_CFLAGS"
34392
34393    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"
34394    KDRIVE_LIB='$(top_builddir)/hw/kdrive/src/libkdrive.la'
34395    KDRIVE_MAIN_LIB="$MAIN_LIB"
34396    KDRIVE_LOCAL_LIBS="$DIX_LIB $KDRIVE_LIB"
34397    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $FB_LIB $MI_LIB $KDRIVE_PURE_LIBS"
34398    KDRIVE_LOCAL_LIBS="$KDRIVE_LOCAL_LIBS $KDRIVE_OS_LIB"
34399    KDRIVE_LIBS="$KDRIVE_LOCAL_LIBS $XSERVER_SYS_LIBS $GLX_SYS_LIBS $DLOPEN_LIBS"
34400
34401
34402
34403fi
34404
34405
34406
34407
34408
34409
34410
34411 if test "x$KDRIVE" = xyes && test "x$XEPHYR" = xyes; then
34412  XEPHYR_TRUE=
34413  XEPHYR_FALSE='#'
34414else
34415  XEPHYR_TRUE='#'
34416  XEPHYR_FALSE=
34417fi
34418
34419
34420
34421
34422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34423/* end confdefs.h.  */
34424
34425#include <features.h>
34426#ifndef __GLIBC__
34427#error not glibc
34428#endif
34429
34430int
34431main (void)
34432{
34433
34434  ;
34435  return 0;
34436}
34437_ACEOF
34438if ac_fn_c_try_compile "$LINENO"
34439then :
34440
34441printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
34442
34443fi
34444rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34445
34446
34447  prefix_NONE=
34448  exec_prefix_NONE=
34449  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34450  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34451  eval ac_define_dir="\"$prefix\""
34452  eval ac_define_dir="\"$ac_define_dir\""
34453  PROJECTROOT="$ac_define_dir"
34454
34455
34456printf "%s\n" "#define PROJECTROOT \"$ac_define_dir\"" >>confdefs.h
34457
34458  test "$prefix_NONE" && prefix=NONE
34459  test "$exec_prefix_NONE" && exec_prefix=NONE
34460
34461
34462  prefix_NONE=
34463  exec_prefix_NONE=
34464  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
34465  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
34466  eval ac_define_dir="\"$sysconfdir\""
34467  eval ac_define_dir="\"$ac_define_dir\""
34468  SYSCONFDIR="$ac_define_dir"
34469
34470
34471printf "%s\n" "#define SYSCONFDIR \"$ac_define_dir\"" >>confdefs.h
34472
34473  test "$prefix_NONE" && prefix=NONE
34474  test "$exec_prefix_NONE" && exec_prefix=NONE
34475
34476
34477
34478
34479DIX_CFLAGS="-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"
34480
34481
34482
34483
34484
34485
34486
34487ac_config_commands="$ac_config_commands sdksyms"
34488
34489
34490if test "x$CONFIG_HAL" = xno && test "x$CONFIG_UDEV" = xno; then
34491    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
34492             ***********************************************
34493             Neither HAL nor udev backend will be enabled.
34494             Input device hotplugging will not be available!
34495             ***********************************************" >&5
34496printf "%s\n" "$as_me: WARNING:
34497             ***********************************************
34498             Neither HAL nor udev backend will be enabled.
34499             Input device hotplugging will not be available!
34500             ***********************************************" >&2;}
34501fi
34502
34503ac_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"
34504
34505cat >confcache <<\_ACEOF
34506# This file is a shell script that caches the results of configure
34507# tests run on this system so they can be shared between configure
34508# scripts and configure runs, see configure's option --config-cache.
34509# It is not useful on other systems.  If it contains results you don't
34510# want to keep, you may remove or edit it.
34511#
34512# config.status only pays attention to the cache file if you give it
34513# the --recheck option to rerun configure.
34514#
34515# 'ac_cv_env_foo' variables (set or unset) will be overridden when
34516# loading this file, other *unset* 'ac_cv_foo' will be assigned the
34517# following values.
34518
34519_ACEOF
34520
34521# The following way of writing the cache mishandles newlines in values,
34522# but we know of no workaround that is simple, portable, and efficient.
34523# So, we kill variables containing newlines.
34524# Ultrix sh set writes to stderr and can't be redirected directly,
34525# and sets the high bit in the cache file unless we assign to the vars.
34526(
34527  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34528    eval ac_val=\$$ac_var
34529    case $ac_val in #(
34530    *${as_nl}*)
34531      case $ac_var in #(
34532      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34533printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34534      esac
34535      case $ac_var in #(
34536      _ | IFS | as_nl) ;; #(
34537      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34538      *) { eval $ac_var=; unset $ac_var;} ;;
34539      esac ;;
34540    esac
34541  done
34542
34543  (set) 2>&1 |
34544    case $as_nl`(ac_space=' '; set) 2>&1` in #(
34545    *${as_nl}ac_space=\ *)
34546      # 'set' does not quote correctly, so add quotes: double-quote
34547      # substitution turns \\\\ into \\, and sed turns \\ into \.
34548      sed -n \
34549	"s/'/'\\\\''/g;
34550	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34551      ;; #(
34552    *)
34553      # 'set' quotes correctly as required by POSIX, so do not add quotes.
34554      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34555      ;;
34556    esac |
34557    sort
34558) |
34559  sed '
34560     /^ac_cv_env_/b end
34561     t clear
34562     :clear
34563     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
34564     t end
34565     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34566     :end' >>confcache
34567if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34568  if test -w "$cache_file"; then
34569    if test "x$cache_file" != "x/dev/null"; then
34570      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34571printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
34572      if test ! -f "$cache_file" || test -h "$cache_file"; then
34573	cat confcache >"$cache_file"
34574      else
34575        case $cache_file in #(
34576        */* | ?:*)
34577	  mv -f confcache "$cache_file"$$ &&
34578	  mv -f "$cache_file"$$ "$cache_file" ;; #(
34579        *)
34580	  mv -f confcache "$cache_file" ;;
34581	esac
34582      fi
34583    fi
34584  else
34585    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34586printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
34587  fi
34588fi
34589rm -f confcache
34590
34591test "x$prefix" = xNONE && prefix=$ac_default_prefix
34592# Let make expand exec_prefix.
34593test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34594
34595DEFS=-DHAVE_CONFIG_H
34596
34597ac_libobjs=
34598ac_ltlibobjs=
34599U=
34600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34601  # 1. Remove the extension, and $U if already installed.
34602  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34603  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
34604  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34605  #    will be set to the directory where LIBOBJS objects are built.
34606  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34607  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34608done
34609LIBOBJS=$ac_libobjs
34610
34611LTLIBOBJS=$ac_ltlibobjs
34612
34613
34614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
34615printf %s "checking that generated files are newer than configure... " >&6; }
34616   if test -n "$am_sleep_pid"; then
34617     # Hide warnings about reused PIDs.
34618     wait $am_sleep_pid 2>/dev/null
34619   fi
34620   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
34621printf "%s\n" "done" >&6; }
34622case $enable_silent_rules in # (((
34623  yes) AM_DEFAULT_VERBOSITY=0;;
34624   no) AM_DEFAULT_VERBOSITY=1;;
34625esac
34626if test $am_cv_make_support_nested_variables = yes; then
34627    AM_V='$(V)'
34628  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
34629else
34630  AM_V=$AM_DEFAULT_VERBOSITY
34631  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
34632fi
34633
34634 if test -n "$EXEEXT"; then
34635  am__EXEEXT_TRUE=
34636  am__EXEEXT_FALSE='#'
34637else
34638  am__EXEEXT_TRUE='#'
34639  am__EXEEXT_FALSE=
34640fi
34641
34642if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34643  as_fn_error $? "conditional \"AMDEP\" was never defined.
34644Usually this means the macro was only invoked conditionally." "$LINENO" 5
34645fi
34646if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34647  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34648Usually this means the macro was only invoked conditionally." "$LINENO" 5
34649fi
34650if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
34651  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
34652Usually this means the macro was only invoked conditionally." "$LINENO" 5
34653fi
34654if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
34655  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
34656Usually this means the macro was only invoked conditionally." "$LINENO" 5
34657fi
34658if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
34659  as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
34660Usually this means the macro was only invoked conditionally." "$LINENO" 5
34661fi
34662if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
34663  as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
34664Usually this means the macro was only invoked conditionally." "$LINENO" 5
34665fi
34666if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
34667  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
34668Usually this means the macro was only invoked conditionally." "$LINENO" 5
34669fi
34670if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
34671  as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
34672Usually this means the macro was only invoked conditionally." "$LINENO" 5
34673fi
34674if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
34675  as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
34676Usually this means the macro was only invoked conditionally." "$LINENO" 5
34677fi
34678if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
34679  as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
34680Usually this means the macro was only invoked conditionally." "$LINENO" 5
34681fi
34682if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
34683  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
34684Usually this means the macro was only invoked conditionally." "$LINENO" 5
34685fi
34686if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
34687  as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
34688Usually this means the macro was only invoked conditionally." "$LINENO" 5
34689fi
34690if test -z "${HAVE_LD_WRAP_TRUE}" && test -z "${HAVE_LD_WRAP_FALSE}"; then
34691  as_fn_error $? "conditional \"HAVE_LD_WRAP\" was never defined.
34692Usually this means the macro was only invoked conditionally." "$LINENO" 5
34693fi
34694if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
34695  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
34696Usually this means the macro was only invoked conditionally." "$LINENO" 5
34697fi
34698# Check whether --enable-year2038 was given.
34699if test ${enable_year2038+y}
34700then :
34701  enableval=$enable_year2038;
34702fi
34703
34704if test -z "${XSERVER_DTRACE_TRUE}" && test -z "${XSERVER_DTRACE_FALSE}"; then
34705  as_fn_error $? "conditional \"XSERVER_DTRACE\" was never defined.
34706Usually this means the macro was only invoked conditionally." "$LINENO" 5
34707fi
34708if test -z "${SPECIAL_DTRACE_OBJECTS_TRUE}" && test -z "${SPECIAL_DTRACE_OBJECTS_FALSE}"; then
34709  as_fn_error $? "conditional \"SPECIAL_DTRACE_OBJECTS\" was never defined.
34710Usually this means the macro was only invoked conditionally." "$LINENO" 5
34711fi
34712
34713if test -z "${POLL_TRUE}" && test -z "${POLL_FALSE}"; then
34714  as_fn_error $? "conditional \"POLL\" was never defined.
34715Usually this means the macro was only invoked conditionally." "$LINENO" 5
34716fi
34717if test -z "${AGP_TRUE}" && test -z "${AGP_FALSE}"; then
34718  as_fn_error $? "conditional \"AGP\" was never defined.
34719Usually this means the macro was only invoked conditionally." "$LINENO" 5
34720fi
34721if test -z "${FBDEVHW_TRUE}" && test -z "${FBDEVHW_FALSE}"; then
34722  as_fn_error $? "conditional \"FBDEVHW\" was never defined.
34723Usually this means the macro was only invoked conditionally." "$LINENO" 5
34724fi
34725if test -z "${FREEBSD_KLDLOAD_TRUE}" && test -z "${FREEBSD_KLDLOAD_FALSE}"; then
34726  as_fn_error $? "conditional \"FREEBSD_KLDLOAD\" was never defined.
34727Usually this means the macro was only invoked conditionally." "$LINENO" 5
34728fi
34729if test -z "${ALPHA_VIDEO_TRUE}" && test -z "${ALPHA_VIDEO_FALSE}"; then
34730  as_fn_error $? "conditional \"ALPHA_VIDEO\" was never defined.
34731Usually this means the macro was only invoked conditionally." "$LINENO" 5
34732fi
34733if test -z "${ARM_VIDEO_TRUE}" && test -z "${ARM_VIDEO_FALSE}"; then
34734  as_fn_error $? "conditional \"ARM_VIDEO\" was never defined.
34735Usually this means the macro was only invoked conditionally." "$LINENO" 5
34736fi
34737if test -z "${I386_VIDEO_TRUE}" && test -z "${I386_VIDEO_FALSE}"; then
34738  as_fn_error $? "conditional \"I386_VIDEO\" was never defined.
34739Usually this means the macro was only invoked conditionally." "$LINENO" 5
34740fi
34741if test -z "${PPC_VIDEO_TRUE}" && test -z "${PPC_VIDEO_FALSE}"; then
34742  as_fn_error $? "conditional \"PPC_VIDEO\" was never defined.
34743Usually this means the macro was only invoked conditionally." "$LINENO" 5
34744fi
34745if test -z "${SPARC64_VIDEO_TRUE}" && test -z "${SPARC64_VIDEO_FALSE}"; then
34746  as_fn_error $? "conditional \"SPARC64_VIDEO\" was never defined.
34747Usually this means the macro was only invoked conditionally." "$LINENO" 5
34748fi
34749if test -z "${INSTALL_SETUID_TRUE}" && test -z "${INSTALL_SETUID_FALSE}"; then
34750  as_fn_error $? "conditional \"INSTALL_SETUID\" was never defined.
34751Usually this means the macro was only invoked conditionally." "$LINENO" 5
34752fi
34753if test -z "${SECURE_RPC_TRUE}" && test -z "${SECURE_RPC_FALSE}"; then
34754  as_fn_error $? "conditional \"SECURE_RPC\" was never defined.
34755Usually this means the macro was only invoked conditionally." "$LINENO" 5
34756fi
34757if test -z "${INT10_VM86_TRUE}" && test -z "${INT10_VM86_FALSE}"; then
34758  as_fn_error $? "conditional \"INT10_VM86\" was never defined.
34759Usually this means the macro was only invoked conditionally." "$LINENO" 5
34760fi
34761if test -z "${INT10_X86EMU_TRUE}" && test -z "${INT10_X86EMU_FALSE}"; then
34762  as_fn_error $? "conditional \"INT10_X86EMU\" was never defined.
34763Usually this means the macro was only invoked conditionally." "$LINENO" 5
34764fi
34765if test -z "${INT10_STUB_TRUE}" && test -z "${INT10_STUB_FALSE}"; then
34766  as_fn_error $? "conditional \"INT10_STUB\" was never defined.
34767Usually this means the macro was only invoked conditionally." "$LINENO" 5
34768fi
34769if test -z "${HAVE_SYSTEMD_DAEMON_TRUE}" && test -z "${HAVE_SYSTEMD_DAEMON_FALSE}"; then
34770  as_fn_error $? "conditional \"HAVE_SYSTEMD_DAEMON\" was never defined.
34771Usually this means the macro was only invoked conditionally." "$LINENO" 5
34772fi
34773if test -z "${CONFIG_UDEV_TRUE}" && test -z "${CONFIG_UDEV_FALSE}"; then
34774  as_fn_error $? "conditional \"CONFIG_UDEV\" was never defined.
34775Usually this means the macro was only invoked conditionally." "$LINENO" 5
34776fi
34777if test -z "${CONFIG_UDEV_KMS_TRUE}" && test -z "${CONFIG_UDEV_KMS_FALSE}"; then
34778  as_fn_error $? "conditional \"CONFIG_UDEV_KMS\" was never defined.
34779Usually this means the macro was only invoked conditionally." "$LINENO" 5
34780fi
34781if test -z "${HAVE_DBUS_TRUE}" && test -z "${HAVE_DBUS_FALSE}"; then
34782  as_fn_error $? "conditional \"HAVE_DBUS\" was never defined.
34783Usually this means the macro was only invoked conditionally." "$LINENO" 5
34784fi
34785if test -z "${CONFIG_HAL_TRUE}" && test -z "${CONFIG_HAL_FALSE}"; then
34786  as_fn_error $? "conditional \"CONFIG_HAL\" was never defined.
34787Usually this means the macro was only invoked conditionally." "$LINENO" 5
34788fi
34789if test -z "${SYSTEMD_LOGIND_TRUE}" && test -z "${SYSTEMD_LOGIND_FALSE}"; then
34790  as_fn_error $? "conditional \"SYSTEMD_LOGIND\" was never defined.
34791Usually this means the macro was only invoked conditionally." "$LINENO" 5
34792fi
34793if test -z "${SUID_WRAPPER_TRUE}" && test -z "${SUID_WRAPPER_FALSE}"; then
34794  as_fn_error $? "conditional \"SUID_WRAPPER\" was never defined.
34795Usually this means the macro was only invoked conditionally." "$LINENO" 5
34796fi
34797if test -z "${NEED_DBUS_TRUE}" && test -z "${NEED_DBUS_FALSE}"; then
34798  as_fn_error $? "conditional \"NEED_DBUS\" was never defined.
34799Usually this means the macro was only invoked conditionally." "$LINENO" 5
34800fi
34801if test -z "${CONFIG_WSCONS_TRUE}" && test -z "${CONFIG_WSCONS_FALSE}"; then
34802  as_fn_error $? "conditional \"CONFIG_WSCONS\" was never defined.
34803Usually this means the macro was only invoked conditionally." "$LINENO" 5
34804fi
34805if test -z "${XV_TRUE}" && test -z "${XV_FALSE}"; then
34806  as_fn_error $? "conditional \"XV\" was never defined.
34807Usually this means the macro was only invoked conditionally." "$LINENO" 5
34808fi
34809if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
34810  as_fn_error $? "conditional \"XVMC\" was never defined.
34811Usually this means the macro was only invoked conditionally." "$LINENO" 5
34812fi
34813if test -z "${COMPOSITE_TRUE}" && test -z "${COMPOSITE_FALSE}"; then
34814  as_fn_error $? "conditional \"COMPOSITE\" was never defined.
34815Usually this means the macro was only invoked conditionally." "$LINENO" 5
34816fi
34817if test -z "${MITSHM_TRUE}" && test -z "${MITSHM_FALSE}"; then
34818  as_fn_error $? "conditional \"MITSHM\" was never defined.
34819Usually this means the macro was only invoked conditionally." "$LINENO" 5
34820fi
34821if test -z "${RECORD_TRUE}" && test -z "${RECORD_FALSE}"; then
34822  as_fn_error $? "conditional \"RECORD\" was never defined.
34823Usually this means the macro was only invoked conditionally." "$LINENO" 5
34824fi
34825if test -z "${SCREENSAVER_TRUE}" && test -z "${SCREENSAVER_FALSE}"; then
34826  as_fn_error $? "conditional \"SCREENSAVER\" was never defined.
34827Usually this means the macro was only invoked conditionally." "$LINENO" 5
34828fi
34829if test -z "${RES_TRUE}" && test -z "${RES_FALSE}"; then
34830  as_fn_error $? "conditional \"RES\" was never defined.
34831Usually this means the macro was only invoked conditionally." "$LINENO" 5
34832fi
34833if test -z "${CLIENTIDS_TRUE}" && test -z "${CLIENTIDS_FALSE}"; then
34834  as_fn_error $? "conditional \"CLIENTIDS\" was never defined.
34835Usually this means the macro was only invoked conditionally." "$LINENO" 5
34836fi
34837if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
34838  as_fn_error $? "conditional \"DRI\" was never defined.
34839Usually this means the macro was only invoked conditionally." "$LINENO" 5
34840fi
34841if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
34842  as_fn_error $? "conditional \"DRI2\" was never defined.
34843Usually this means the macro was only invoked conditionally." "$LINENO" 5
34844fi
34845if test -z "${BUSFAULT_TRUE}" && test -z "${BUSFAULT_FALSE}"; then
34846  as_fn_error $? "conditional \"BUSFAULT\" was never defined.
34847Usually this means the macro was only invoked conditionally." "$LINENO" 5
34848fi
34849if test -z "${XSHMFENCE_TRUE}" && test -z "${XSHMFENCE_FALSE}"; then
34850  as_fn_error $? "conditional \"XSHMFENCE\" was never defined.
34851Usually this means the macro was only invoked conditionally." "$LINENO" 5
34852fi
34853if test -z "${DRI3_TRUE}" && test -z "${DRI3_FALSE}"; then
34854  as_fn_error $? "conditional \"DRI3\" was never defined.
34855Usually this means the macro was only invoked conditionally." "$LINENO" 5
34856fi
34857if test -z "${GLX_TRUE}" && test -z "${GLX_FALSE}"; then
34858  as_fn_error $? "conditional \"GLX\" was never defined.
34859Usually this means the macro was only invoked conditionally." "$LINENO" 5
34860fi
34861if test -z "${HASHTABLE_TRUE}" && test -z "${HASHTABLE_FALSE}"; then
34862  as_fn_error $? "conditional \"HASHTABLE\" was never defined.
34863Usually this means the macro was only invoked conditionally." "$LINENO" 5
34864fi
34865if test -z "${PRESENT_TRUE}" && test -z "${PRESENT_FALSE}"; then
34866  as_fn_error $? "conditional \"PRESENT\" was never defined.
34867Usually this means the macro was only invoked conditionally." "$LINENO" 5
34868fi
34869if test -z "${XINERAMA_TRUE}" && test -z "${XINERAMA_FALSE}"; then
34870  as_fn_error $? "conditional \"XINERAMA\" was never defined.
34871Usually this means the macro was only invoked conditionally." "$LINENO" 5
34872fi
34873if test -z "${XACE_TRUE}" && test -z "${XACE_FALSE}"; then
34874  as_fn_error $? "conditional \"XACE\" was never defined.
34875Usually this means the macro was only invoked conditionally." "$LINENO" 5
34876fi
34877if test -z "${XSELINUX_TRUE}" && test -z "${XSELINUX_FALSE}"; then
34878  as_fn_error $? "conditional \"XSELINUX\" was never defined.
34879Usually this means the macro was only invoked conditionally." "$LINENO" 5
34880fi
34881if test -z "${XCSECURITY_TRUE}" && test -z "${XCSECURITY_FALSE}"; then
34882  as_fn_error $? "conditional \"XCSECURITY\" was never defined.
34883Usually this means the macro was only invoked conditionally." "$LINENO" 5
34884fi
34885if test -z "${DBE_TRUE}" && test -z "${DBE_FALSE}"; then
34886  as_fn_error $? "conditional \"DBE\" was never defined.
34887Usually this means the macro was only invoked conditionally." "$LINENO" 5
34888fi
34889if test -z "${XF86BIGFONT_TRUE}" && test -z "${XF86BIGFONT_FALSE}"; then
34890  as_fn_error $? "conditional \"XF86BIGFONT\" was never defined.
34891Usually this means the macro was only invoked conditionally." "$LINENO" 5
34892fi
34893if test -z "${DPMSExtension_TRUE}" && test -z "${DPMSExtension_FALSE}"; then
34894  as_fn_error $? "conditional \"DPMSExtension\" was never defined.
34895Usually this means the macro was only invoked conditionally." "$LINENO" 5
34896fi
34897if test -z "${XF86UTILS_TRUE}" && test -z "${XF86UTILS_FALSE}"; then
34898  as_fn_error $? "conditional \"XF86UTILS\" was never defined.
34899Usually this means the macro was only invoked conditionally." "$LINENO" 5
34900fi
34901if test -z "${VGAHW_TRUE}" && test -z "${VGAHW_FALSE}"; then
34902  as_fn_error $? "conditional \"VGAHW\" was never defined.
34903Usually this means the macro was only invoked conditionally." "$LINENO" 5
34904fi
34905if test -z "${INT10MODULE_TRUE}" && test -z "${INT10MODULE_FALSE}"; then
34906  as_fn_error $? "conditional \"INT10MODULE\" was never defined.
34907Usually this means the macro was only invoked conditionally." "$LINENO" 5
34908fi
34909if test -z "${XDMCP_TRUE}" && test -z "${XDMCP_FALSE}"; then
34910  as_fn_error $? "conditional \"XDMCP\" was never defined.
34911Usually this means the macro was only invoked conditionally." "$LINENO" 5
34912fi
34913if test -z "${XDMAUTH_TRUE}" && test -z "${XDMAUTH_FALSE}"; then
34914  as_fn_error $? "conditional \"XDMAUTH\" was never defined.
34915Usually this means the macro was only invoked conditionally." "$LINENO" 5
34916fi
34917if test -z "${XF86VIDMODE_TRUE}" && test -z "${XF86VIDMODE_FALSE}"; then
34918  as_fn_error $? "conditional \"XF86VIDMODE\" was never defined.
34919Usually this means the macro was only invoked conditionally." "$LINENO" 5
34920fi
34921if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
34922  as_fn_error $? "conditional \"DEBUG\" was never defined.
34923Usually this means the macro was only invoked conditionally." "$LINENO" 5
34924fi
34925if test -z "${HAVE_LIBUNWIND_TRUE}" && test -z "${HAVE_LIBUNWIND_FALSE}"; then
34926  as_fn_error $? "conditional \"HAVE_LIBUNWIND\" was never defined.
34927Usually this means the macro was only invoked conditionally." "$LINENO" 5
34928fi
34929if test -z "${CYGWIN_TRUE}" && test -z "${CYGWIN_FALSE}"; then
34930  as_fn_error $? "conditional \"CYGWIN\" was never defined.
34931Usually this means the macro was only invoked conditionally." "$LINENO" 5
34932fi
34933if test -z "${NO_UNDEFINED_TRUE}" && test -z "${NO_UNDEFINED_FALSE}"; then
34934  as_fn_error $? "conditional \"NO_UNDEFINED\" was never defined.
34935Usually this means the macro was only invoked conditionally." "$LINENO" 5
34936fi
34937if test -z "${XVFB_TRUE}" && test -z "${XVFB_FALSE}"; then
34938  as_fn_error $? "conditional \"XVFB\" was never defined.
34939Usually this means the macro was only invoked conditionally." "$LINENO" 5
34940fi
34941if test -z "${XNEST_TRUE}" && test -z "${XNEST_FALSE}"; then
34942  as_fn_error $? "conditional \"XNEST\" was never defined.
34943Usually this means the macro was only invoked conditionally." "$LINENO" 5
34944fi
34945if test -z "${XORG_TRUE}" && test -z "${XORG_FALSE}"; then
34946  as_fn_error $? "conditional \"XORG\" was never defined.
34947Usually this means the macro was only invoked conditionally." "$LINENO" 5
34948fi
34949if test -z "${XORG_BUS_PCI_TRUE}" && test -z "${XORG_BUS_PCI_FALSE}"; then
34950  as_fn_error $? "conditional \"XORG_BUS_PCI\" was never defined.
34951Usually this means the macro was only invoked conditionally." "$LINENO" 5
34952fi
34953if test -z "${XORG_BUS_BSDPCI_TRUE}" && test -z "${XORG_BUS_BSDPCI_FALSE}"; then
34954  as_fn_error $? "conditional \"XORG_BUS_BSDPCI\" was never defined.
34955Usually this means the macro was only invoked conditionally." "$LINENO" 5
34956fi
34957if test -z "${XORG_BUS_SPARC_TRUE}" && test -z "${XORG_BUS_SPARC_FALSE}"; then
34958  as_fn_error $? "conditional \"XORG_BUS_SPARC\" was never defined.
34959Usually this means the macro was only invoked conditionally." "$LINENO" 5
34960fi
34961if test -z "${LNXACPI_TRUE}" && test -z "${LNXACPI_FALSE}"; then
34962  as_fn_error $? "conditional \"LNXACPI\" was never defined.
34963Usually this means the macro was only invoked conditionally." "$LINENO" 5
34964fi
34965if test -z "${LNXAPM_TRUE}" && test -z "${LNXAPM_FALSE}"; then
34966  as_fn_error $? "conditional \"LNXAPM\" was never defined.
34967Usually this means the macro was only invoked conditionally." "$LINENO" 5
34968fi
34969if test -z "${SOLARIS_VT_TRUE}" && test -z "${SOLARIS_VT_FALSE}"; then
34970  as_fn_error $? "conditional \"SOLARIS_VT\" was never defined.
34971Usually this means the macro was only invoked conditionally." "$LINENO" 5
34972fi
34973if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
34974  as_fn_error $? "conditional \"DGA\" was never defined.
34975Usually this means the macro was only invoked conditionally." "$LINENO" 5
34976fi
34977if test -z "${XORG_BUS_PLATFORM_TRUE}" && test -z "${XORG_BUS_PLATFORM_FALSE}"; then
34978  as_fn_error $? "conditional \"XORG_BUS_PLATFORM\" was never defined.
34979Usually this means the macro was only invoked conditionally." "$LINENO" 5
34980fi
34981if test -z "${XORG_DRIVER_MODESETTING_TRUE}" && test -z "${XORG_DRIVER_MODESETTING_FALSE}"; then
34982  as_fn_error $? "conditional \"XORG_DRIVER_MODESETTING\" was never defined.
34983Usually this means the macro was only invoked conditionally." "$LINENO" 5
34984fi
34985if test -z "${XORG_DRIVER_INPUT_INPUTTEST_TRUE}" && test -z "${XORG_DRIVER_INPUT_INPUTTEST_FALSE}"; then
34986  as_fn_error $? "conditional \"XORG_DRIVER_INPUT_INPUTTEST\" was never defined.
34987Usually this means the macro was only invoked conditionally." "$LINENO" 5
34988fi
34989if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
34990  as_fn_error $? "conditional \"GLAMOR\" was never defined.
34991Usually this means the macro was only invoked conditionally." "$LINENO" 5
34992fi
34993if test -z "${GLAMOR_EGL_TRUE}" && test -z "${GLAMOR_EGL_FALSE}"; then
34994  as_fn_error $? "conditional \"GLAMOR_EGL\" was never defined.
34995Usually this means the macro was only invoked conditionally." "$LINENO" 5
34996fi
34997if test -z "${XWIN_TRUE}" && test -z "${XWIN_FALSE}"; then
34998  as_fn_error $? "conditional \"XWIN\" was never defined.
34999Usually this means the macro was only invoked conditionally." "$LINENO" 5
35000fi
35001if test -z "${XWIN_GLX_WINDOWS_TRUE}" && test -z "${XWIN_GLX_WINDOWS_FALSE}"; then
35002  as_fn_error $? "conditional \"XWIN_GLX_WINDOWS\" was never defined.
35003Usually this means the macro was only invoked conditionally." "$LINENO" 5
35004fi
35005if test -z "${XWIN_WINDOWS_DRI_TRUE}" && test -z "${XWIN_WINDOWS_DRI_FALSE}"; then
35006  as_fn_error $? "conditional \"XWIN_WINDOWS_DRI\" was never defined.
35007Usually this means the macro was only invoked conditionally." "$LINENO" 5
35008fi
35009if test -z "${PSEUDORAMIX_TRUE}" && test -z "${PSEUDORAMIX_FALSE}"; then
35010  as_fn_error $? "conditional \"PSEUDORAMIX\" was never defined.
35011Usually this means the macro was only invoked conditionally." "$LINENO" 5
35012fi
35013if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
35014  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
35015Usually this means the macro was only invoked conditionally." "$LINENO" 5
35016fi
35017if test -z "${XQUARTZ_TRUE}" && test -z "${XQUARTZ_FALSE}"; then
35018  as_fn_error $? "conditional \"XQUARTZ\" was never defined.
35019Usually this means the macro was only invoked conditionally." "$LINENO" 5
35020fi
35021if test -z "${XQUARTZ_SPARKLE_TRUE}" && test -z "${XQUARTZ_SPARKLE_FALSE}"; then
35022  as_fn_error $? "conditional \"XQUARTZ_SPARKLE\" was never defined.
35023Usually this means the macro was only invoked conditionally." "$LINENO" 5
35024fi
35025if test -z "${STANDALONE_XPBPROXY_TRUE}" && test -z "${STANDALONE_XPBPROXY_FALSE}"; then
35026  as_fn_error $? "conditional \"STANDALONE_XPBPROXY\" was never defined.
35027Usually this means the macro was only invoked conditionally." "$LINENO" 5
35028fi
35029if test -z "${KDRIVE_TRUE}" && test -z "${KDRIVE_FALSE}"; then
35030  as_fn_error $? "conditional \"KDRIVE\" was never defined.
35031Usually this means the macro was only invoked conditionally." "$LINENO" 5
35032fi
35033if test -z "${XEPHYR_TRUE}" && test -z "${XEPHYR_FALSE}"; then
35034  as_fn_error $? "conditional \"XEPHYR\" was never defined.
35035Usually this means the macro was only invoked conditionally." "$LINENO" 5
35036fi
35037
35038: "${CONFIG_STATUS=./config.status}"
35039ac_write_fail=0
35040ac_clean_files_save=$ac_clean_files
35041ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35043printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
35044as_write_fail=0
35045cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35046#! $SHELL
35047# Generated by $as_me.
35048# Run this file to recreate the current configuration.
35049# Compiler output produced by configure, useful for debugging
35050# configure, is in config.log if it exists.
35051
35052debug=false
35053ac_cs_recheck=false
35054ac_cs_silent=false
35055
35056SHELL=\${CONFIG_SHELL-$SHELL}
35057export SHELL
35058_ASEOF
35059cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35060## -------------------- ##
35061## M4sh Initialization. ##
35062## -------------------- ##
35063
35064# Be more Bourne compatible
35065DUALCASE=1; export DUALCASE # for MKS sh
35066if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
35067then :
35068  emulate sh
35069  NULLCMD=:
35070  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35071  # is contrary to our usage.  Disable this feature.
35072  alias -g '${1+"$@"}'='"$@"'
35073  setopt NO_GLOB_SUBST
35074else case e in #(
35075  e) case `(set -o) 2>/dev/null` in #(
35076  *posix*) :
35077    set -o posix ;; #(
35078  *) :
35079     ;;
35080esac ;;
35081esac
35082fi
35083
35084
35085
35086# Reset variables that may have inherited troublesome values from
35087# the environment.
35088
35089# IFS needs to be set, to space, tab, and newline, in precisely that order.
35090# (If _AS_PATH_WALK were called with IFS unset, it would have the
35091# side effect of setting IFS to empty, thus disabling word splitting.)
35092# Quoting is to prevent editors from complaining about space-tab.
35093as_nl='
35094'
35095export as_nl
35096IFS=" ""	$as_nl"
35097
35098PS1='$ '
35099PS2='> '
35100PS4='+ '
35101
35102# Ensure predictable behavior from utilities with locale-dependent output.
35103LC_ALL=C
35104export LC_ALL
35105LANGUAGE=C
35106export LANGUAGE
35107
35108# We cannot yet rely on "unset" to work, but we need these variables
35109# to be unset--not just set to an empty or harmless value--now, to
35110# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
35111# also avoids known problems related to "unset" and subshell syntax
35112# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
35113for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
35114do eval test \${$as_var+y} \
35115  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35116done
35117
35118# Ensure that fds 0, 1, and 2 are open.
35119if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
35120if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
35121if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
35122
35123# The user is always right.
35124if ${PATH_SEPARATOR+false} :; then
35125  PATH_SEPARATOR=:
35126  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35127    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35128      PATH_SEPARATOR=';'
35129  }
35130fi
35131
35132
35133# Find who we are.  Look in the path if we contain no directory separator.
35134as_myself=
35135case $0 in #((
35136  *[\\/]* ) as_myself=$0 ;;
35137  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35138for as_dir in $PATH
35139do
35140  IFS=$as_save_IFS
35141  case $as_dir in #(((
35142    '') as_dir=./ ;;
35143    */) ;;
35144    *) as_dir=$as_dir/ ;;
35145  esac
35146    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
35147  done
35148IFS=$as_save_IFS
35149
35150     ;;
35151esac
35152# We did not find ourselves, most probably we were run as 'sh COMMAND'
35153# in which case we are not to be found in the path.
35154if test "x$as_myself" = x; then
35155  as_myself=$0
35156fi
35157if test ! -f "$as_myself"; then
35158  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35159  exit 1
35160fi
35161
35162
35163
35164# as_fn_error STATUS ERROR [LINENO LOG_FD]
35165# ----------------------------------------
35166# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35167# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35168# script with STATUS, using 1 if that was 0.
35169as_fn_error ()
35170{
35171  as_status=$1; test $as_status -eq 0 && as_status=1
35172  if test "$4"; then
35173    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35174    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35175  fi
35176  printf "%s\n" "$as_me: error: $2" >&2
35177  as_fn_exit $as_status
35178} # as_fn_error
35179
35180
35181# as_fn_set_status STATUS
35182# -----------------------
35183# Set $? to STATUS, without forking.
35184as_fn_set_status ()
35185{
35186  return $1
35187} # as_fn_set_status
35188
35189# as_fn_exit STATUS
35190# -----------------
35191# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35192as_fn_exit ()
35193{
35194  set +e
35195  as_fn_set_status $1
35196  exit $1
35197} # as_fn_exit
35198
35199# as_fn_unset VAR
35200# ---------------
35201# Portably unset VAR.
35202as_fn_unset ()
35203{
35204  { eval $1=; unset $1;}
35205}
35206as_unset=as_fn_unset
35207
35208# as_fn_append VAR VALUE
35209# ----------------------
35210# Append the text in VALUE to the end of the definition contained in VAR. Take
35211# advantage of any shell optimizations that allow amortized linear growth over
35212# repeated appends, instead of the typical quadratic growth present in naive
35213# implementations.
35214if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
35215then :
35216  eval 'as_fn_append ()
35217  {
35218    eval $1+=\$2
35219  }'
35220else case e in #(
35221  e) as_fn_append ()
35222  {
35223    eval $1=\$$1\$2
35224  } ;;
35225esac
35226fi # as_fn_append
35227
35228# as_fn_arith ARG...
35229# ------------------
35230# Perform arithmetic evaluation on the ARGs, and store the result in the
35231# global $as_val. Take advantage of shells that can avoid forks. The arguments
35232# must be portable across $(()) and expr.
35233if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
35234then :
35235  eval 'as_fn_arith ()
35236  {
35237    as_val=$(( $* ))
35238  }'
35239else case e in #(
35240  e) as_fn_arith ()
35241  {
35242    as_val=`expr "$@" || test $? -eq 1`
35243  } ;;
35244esac
35245fi # as_fn_arith
35246
35247
35248if expr a : '\(a\)' >/dev/null 2>&1 &&
35249   test "X`expr 00001 : '.*\(...\)'`" = X001; then
35250  as_expr=expr
35251else
35252  as_expr=false
35253fi
35254
35255if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35256  as_basename=basename
35257else
35258  as_basename=false
35259fi
35260
35261if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35262  as_dirname=dirname
35263else
35264  as_dirname=false
35265fi
35266
35267as_me=`$as_basename -- "$0" ||
35268$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35269	 X"$0" : 'X\(//\)$' \| \
35270	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35271printf "%s\n" X/"$0" |
35272    sed '/^.*\/\([^/][^/]*\)\/*$/{
35273	    s//\1/
35274	    q
35275	  }
35276	  /^X\/\(\/\/\)$/{
35277	    s//\1/
35278	    q
35279	  }
35280	  /^X\/\(\/\).*/{
35281	    s//\1/
35282	    q
35283	  }
35284	  s/.*/./; q'`
35285
35286# Avoid depending upon Character Ranges.
35287as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35288as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35289as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35290as_cr_digits='0123456789'
35291as_cr_alnum=$as_cr_Letters$as_cr_digits
35292
35293
35294# Determine whether it's possible to make 'echo' print without a newline.
35295# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
35296# for compatibility with existing Makefiles.
35297ECHO_C= ECHO_N= ECHO_T=
35298case `echo -n x` in #(((((
35299-n*)
35300  case `echo 'xy\c'` in
35301  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
35302  xy)  ECHO_C='\c';;
35303  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
35304       ECHO_T='	';;
35305  esac;;
35306*)
35307  ECHO_N='-n';;
35308esac
35309
35310# For backward compatibility with old third-party macros, we provide
35311# the shell variables $as_echo and $as_echo_n.  New code should use
35312# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
35313as_echo='printf %s\n'
35314as_echo_n='printf %s'
35315
35316rm -f conf$$ conf$$.exe conf$$.file
35317if test -d conf$$.dir; then
35318  rm -f conf$$.dir/conf$$.file
35319else
35320  rm -f conf$$.dir
35321  mkdir conf$$.dir 2>/dev/null
35322fi
35323if (echo >conf$$.file) 2>/dev/null; then
35324  if ln -s conf$$.file conf$$ 2>/dev/null; then
35325    as_ln_s='ln -s'
35326    # ... but there are two gotchas:
35327    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
35328    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
35329    # In both cases, we have to default to 'cp -pR'.
35330    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35331      as_ln_s='cp -pR'
35332  elif ln conf$$.file conf$$ 2>/dev/null; then
35333    as_ln_s=ln
35334  else
35335    as_ln_s='cp -pR'
35336  fi
35337else
35338  as_ln_s='cp -pR'
35339fi
35340rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35341rmdir conf$$.dir 2>/dev/null
35342
35343
35344# as_fn_mkdir_p
35345# -------------
35346# Create "$as_dir" as a directory, including parents if necessary.
35347as_fn_mkdir_p ()
35348{
35349
35350  case $as_dir in #(
35351  -*) as_dir=./$as_dir;;
35352  esac
35353  test -d "$as_dir" || eval $as_mkdir_p || {
35354    as_dirs=
35355    while :; do
35356      case $as_dir in #(
35357      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35358      *) as_qdir=$as_dir;;
35359      esac
35360      as_dirs="'$as_qdir' $as_dirs"
35361      as_dir=`$as_dirname -- "$as_dir" ||
35362$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35363	 X"$as_dir" : 'X\(//\)[^/]' \| \
35364	 X"$as_dir" : 'X\(//\)$' \| \
35365	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35366printf "%s\n" X"$as_dir" |
35367    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35368	    s//\1/
35369	    q
35370	  }
35371	  /^X\(\/\/\)[^/].*/{
35372	    s//\1/
35373	    q
35374	  }
35375	  /^X\(\/\/\)$/{
35376	    s//\1/
35377	    q
35378	  }
35379	  /^X\(\/\).*/{
35380	    s//\1/
35381	    q
35382	  }
35383	  s/.*/./; q'`
35384      test -d "$as_dir" && break
35385    done
35386    test -z "$as_dirs" || eval "mkdir $as_dirs"
35387  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35388
35389
35390} # as_fn_mkdir_p
35391if mkdir -p . 2>/dev/null; then
35392  as_mkdir_p='mkdir -p "$as_dir"'
35393else
35394  test -d ./-p && rmdir ./-p
35395  as_mkdir_p=false
35396fi
35397
35398
35399# as_fn_executable_p FILE
35400# -----------------------
35401# Test if FILE is an executable regular file.
35402as_fn_executable_p ()
35403{
35404  test -f "$1" && test -x "$1"
35405} # as_fn_executable_p
35406as_test_x='test -x'
35407as_executable_p=as_fn_executable_p
35408
35409# Sed expression to map a string onto a valid CPP name.
35410as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35411as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
35412
35413# Sed expression to map a string onto a valid variable name.
35414as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35415as_tr_sh="eval sed '$as_sed_sh'" # deprecated
35416
35417
35418exec 6>&1
35419## ----------------------------------- ##
35420## Main body of $CONFIG_STATUS script. ##
35421## ----------------------------------- ##
35422_ASEOF
35423test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35424
35425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35426# Save the log message, to keep $0 and so on meaningful, and to
35427# report actual input values of CONFIG_FILES etc. instead of their
35428# values after options handling.
35429ac_log="
35430This file was extended by xorg-server $as_me 21.1.18, which was
35431generated by GNU Autoconf 2.72.  Invocation command line was
35432
35433  CONFIG_FILES    = $CONFIG_FILES
35434  CONFIG_HEADERS  = $CONFIG_HEADERS
35435  CONFIG_LINKS    = $CONFIG_LINKS
35436  CONFIG_COMMANDS = $CONFIG_COMMANDS
35437  $ $0 $@
35438
35439on `(hostname || uname -n) 2>/dev/null | sed 1q`
35440"
35441
35442_ACEOF
35443
35444case $ac_config_files in *"
35445"*) set x $ac_config_files; shift; ac_config_files=$*;;
35446esac
35447
35448case $ac_config_headers in *"
35449"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35450esac
35451
35452
35453cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35454# Files that config.status was made for.
35455config_files="$ac_config_files"
35456config_headers="$ac_config_headers"
35457config_commands="$ac_config_commands"
35458
35459_ACEOF
35460
35461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35462ac_cs_usage="\
35463'$as_me' instantiates files and other configuration actions
35464from templates according to the current configuration.  Unless the files
35465and actions are specified as TAGs, all are instantiated by default.
35466
35467Usage: $0 [OPTION]... [TAG]...
35468
35469  -h, --help       print this help, then exit
35470  -V, --version    print version number and configuration settings, then exit
35471      --config     print configuration, then exit
35472  -q, --quiet, --silent
35473                   do not print progress messages
35474  -d, --debug      don't remove temporary files
35475      --recheck    update $as_me by reconfiguring in the same conditions
35476      --file=FILE[:TEMPLATE]
35477                   instantiate the configuration file FILE
35478      --header=FILE[:TEMPLATE]
35479                   instantiate the configuration header FILE
35480
35481Configuration files:
35482$config_files
35483
35484Configuration headers:
35485$config_headers
35486
35487Configuration commands:
35488$config_commands
35489
35490Report bugs to <https://gitlab.freedesktop.org/xorg/xserver/issues>."
35491
35492_ACEOF
35493ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
35494ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
35495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35496ac_cs_config='$ac_cs_config_escaped'
35497ac_cs_version="\\
35498xorg-server config.status 21.1.18
35499configured by $0, generated by GNU Autoconf 2.72,
35500  with options \\"\$ac_cs_config\\"
35501
35502Copyright (C) 2023 Free Software Foundation, Inc.
35503This config.status script is free software; the Free Software Foundation
35504gives unlimited permission to copy, distribute and modify it."
35505
35506ac_pwd='$ac_pwd'
35507srcdir='$srcdir'
35508INSTALL='$INSTALL'
35509MKDIR_P='$MKDIR_P'
35510AWK='$AWK'
35511test -n "\$AWK" || AWK=awk
35512_ACEOF
35513
35514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35515# The default lists apply if the user does not specify any file.
35516ac_need_defaults=:
35517while test $# != 0
35518do
35519  case $1 in
35520  --*=?*)
35521    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35522    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35523    ac_shift=:
35524    ;;
35525  --*=)
35526    ac_option=`expr "X$1" : 'X\([^=]*\)='`
35527    ac_optarg=
35528    ac_shift=:
35529    ;;
35530  *)
35531    ac_option=$1
35532    ac_optarg=$2
35533    ac_shift=shift
35534    ;;
35535  esac
35536
35537  case $ac_option in
35538  # Handling of the options.
35539  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35540    ac_cs_recheck=: ;;
35541  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35542    printf "%s\n" "$ac_cs_version"; exit ;;
35543  --config | --confi | --conf | --con | --co | --c )
35544    printf "%s\n" "$ac_cs_config"; exit ;;
35545  --debug | --debu | --deb | --de | --d | -d )
35546    debug=: ;;
35547  --file | --fil | --fi | --f )
35548    $ac_shift
35549    case $ac_optarg in
35550    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35551    '') as_fn_error $? "missing file argument" ;;
35552    esac
35553    as_fn_append CONFIG_FILES " '$ac_optarg'"
35554    ac_need_defaults=false;;
35555  --header | --heade | --head | --hea )
35556    $ac_shift
35557    case $ac_optarg in
35558    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35559    esac
35560    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35561    ac_need_defaults=false;;
35562  --he | --h)
35563    # Conflict between --help and --header
35564    as_fn_error $? "ambiguous option: '$1'
35565Try '$0 --help' for more information.";;
35566  --help | --hel | -h )
35567    printf "%s\n" "$ac_cs_usage"; exit ;;
35568  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35569  | -silent | --silent | --silen | --sile | --sil | --si | --s)
35570    ac_cs_silent=: ;;
35571
35572  # This is an error.
35573  -*) as_fn_error $? "unrecognized option: '$1'
35574Try '$0 --help' for more information." ;;
35575
35576  *) as_fn_append ac_config_targets " $1"
35577     ac_need_defaults=false ;;
35578
35579  esac
35580  shift
35581done
35582
35583ac_configure_extra_args=
35584
35585if $ac_cs_silent; then
35586  exec 6>/dev/null
35587  ac_configure_extra_args="$ac_configure_extra_args --silent"
35588fi
35589
35590_ACEOF
35591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35592if \$ac_cs_recheck; then
35593  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35594  shift
35595  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
35596  CONFIG_SHELL='$SHELL'
35597  export CONFIG_SHELL
35598  exec "\$@"
35599fi
35600
35601_ACEOF
35602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35603exec 5>>config.log
35604{
35605  echo
35606  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35607## Running $as_me. ##
35608_ASBOX
35609  printf "%s\n" "$ac_log"
35610} >&5
35611
35612_ACEOF
35613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35614#
35615# INIT-COMMANDS
35616#
35617AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
35618
35619
35620# The HP-UX ksh and POSIX shell print the target directory to stdout
35621# if CDPATH is set.
35622(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35623
35624sed_quote_subst='$sed_quote_subst'
35625double_quote_subst='$double_quote_subst'
35626delay_variable_subst='$delay_variable_subst'
35627macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35628macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35629enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35630AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35631DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35632OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35633enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35634pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35635enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35636shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
35637SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35638ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35639PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
35640host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35641host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35642host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35643build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35644build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35645build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35646SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35647Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35648GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35649EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35650FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35651LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35652NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35653LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35654max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35655ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35656exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35657lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35658lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35659lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35660lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35661lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35662reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35663reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35664FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
35665deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35666file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35667file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35668want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35669sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35670AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35671lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
35672AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35673archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35674STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35675RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35676old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35677old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35678old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35679lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35680CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35681CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35682compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35683GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35684lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35685lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35686lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
35687lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35688lt_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"`'
35689lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
35690nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35691lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35692lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
35693objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35694MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35695lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35696lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35697lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35698lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35699lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35700need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35701MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35702DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35703NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35704LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35705OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35706OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35707libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35708shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35709extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35710archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35711enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35712export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35713whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35714compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35715old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35716old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35717archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35718archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35719module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35720module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35721with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35722allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35723no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35724hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35725hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35726hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35727hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35728hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35729hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35730hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35731inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35732link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35733always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35734export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35735exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35736include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35737prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35738postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35739file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35740variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35741need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35742need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35743version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35744runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35745shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35746shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35747libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35748library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35749soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35750install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35751postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35752postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35753finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35754finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35755hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35756sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35757configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
35758configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
35759hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35760enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35761enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35762enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35763old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35764striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35765
35766LTCC='$LTCC'
35767LTCFLAGS='$LTCFLAGS'
35768compiler='$compiler_DEFAULT'
35769
35770# A function that is used when there is no print builtin or printf.
35771func_fallback_echo ()
35772{
35773  eval 'cat <<_LTECHO_EOF
35774\$1
35775_LTECHO_EOF'
35776}
35777
35778# Quote evaled strings.
35779for var in AS \
35780DLLTOOL \
35781OBJDUMP \
35782SHELL \
35783ECHO \
35784PATH_SEPARATOR \
35785SED \
35786GREP \
35787EGREP \
35788FGREP \
35789LD \
35790NM \
35791LN_S \
35792lt_SP2NL \
35793lt_NL2SP \
35794reload_flag \
35795FILECMD \
35796deplibs_check_method \
35797file_magic_cmd \
35798file_magic_glob \
35799want_nocaseglob \
35800sharedlib_from_linklib_cmd \
35801AR \
35802archiver_list_spec \
35803STRIP \
35804RANLIB \
35805CC \
35806CFLAGS \
35807compiler \
35808lt_cv_sys_global_symbol_pipe \
35809lt_cv_sys_global_symbol_to_cdecl \
35810lt_cv_sys_global_symbol_to_import \
35811lt_cv_sys_global_symbol_to_c_name_address \
35812lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35813lt_cv_nm_interface \
35814nm_file_list_spec \
35815lt_cv_truncate_bin \
35816lt_prog_compiler_no_builtin_flag \
35817lt_prog_compiler_pic \
35818lt_prog_compiler_wl \
35819lt_prog_compiler_static \
35820lt_cv_prog_compiler_c_o \
35821need_locks \
35822MANIFEST_TOOL \
35823DSYMUTIL \
35824NMEDIT \
35825LIPO \
35826OTOOL \
35827OTOOL64 \
35828shrext_cmds \
35829export_dynamic_flag_spec \
35830whole_archive_flag_spec \
35831compiler_needs_object \
35832with_gnu_ld \
35833allow_undefined_flag \
35834no_undefined_flag \
35835hardcode_libdir_flag_spec \
35836hardcode_libdir_separator \
35837exclude_expsyms \
35838include_expsyms \
35839file_list_spec \
35840variables_saved_for_relink \
35841libname_spec \
35842library_names_spec \
35843soname_spec \
35844install_override_mode \
35845finish_eval \
35846old_striplib \
35847striplib; do
35848    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35849    *[\\\\\\\`\\"\\\$]*)
35850      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35851      ;;
35852    *)
35853      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35854      ;;
35855    esac
35856done
35857
35858# Double-quote double-evaled strings.
35859for var in reload_cmds \
35860old_postinstall_cmds \
35861old_postuninstall_cmds \
35862old_archive_cmds \
35863extract_expsyms_cmds \
35864old_archive_from_new_cmds \
35865old_archive_from_expsyms_cmds \
35866archive_cmds \
35867archive_expsym_cmds \
35868module_cmds \
35869module_expsym_cmds \
35870export_symbols_cmds \
35871prelink_cmds \
35872postlink_cmds \
35873postinstall_cmds \
35874postuninstall_cmds \
35875finish_cmds \
35876sys_lib_search_path_spec \
35877configure_time_dlsearch_path \
35878configure_time_lt_sys_library_path; do
35879    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35880    *[\\\\\\\`\\"\\\$]*)
35881      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
35882      ;;
35883    *)
35884      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35885      ;;
35886    esac
35887done
35888
35889ac_aux_dir='$ac_aux_dir'
35890
35891# See if we are running on zsh, and set the options that allow our
35892# commands through without removal of \ escapes INIT.
35893if test -n "\${ZSH_VERSION+set}"; then
35894   setopt NO_GLOB_SUBST
35895fi
35896
35897
35898    PACKAGE='$PACKAGE'
35899    VERSION='$VERSION'
35900    RM='$RM'
35901    ofile='$ofile'
35902
35903
35904
35905
35906_ACEOF
35907
35908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35909
35910# Handling of arguments.
35911for ac_config_target in $ac_config_targets
35912do
35913  case $ac_config_target in
35914    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35915    "include/do-not-use-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/do-not-use-config.h" ;;
35916    "include/xorg-server.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-server.h" ;;
35917    "include/dix-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/dix-config.h" ;;
35918    "include/xorg-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xorg-config.h" ;;
35919    "include/xkb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xkb-config.h" ;;
35920    "include/xwin-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/xwin-config.h" ;;
35921    "include/version-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/version-config.h" ;;
35922    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35923    "sdksyms") CONFIG_COMMANDS="$CONFIG_COMMANDS sdksyms" ;;
35924    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35925    "glx/Makefile") CONFIG_FILES="$CONFIG_FILES glx/Makefile" ;;
35926    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
35927    "composite/Makefile") CONFIG_FILES="$CONFIG_FILES composite/Makefile" ;;
35928    "damageext/Makefile") CONFIG_FILES="$CONFIG_FILES damageext/Makefile" ;;
35929    "dbe/Makefile") CONFIG_FILES="$CONFIG_FILES dbe/Makefile" ;;
35930    "dix/Makefile") CONFIG_FILES="$CONFIG_FILES dix/Makefile" ;;
35931    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
35932    "doc/dtrace/Makefile") CONFIG_FILES="$CONFIG_FILES doc/dtrace/Makefile" ;;
35933    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
35934    "fb/Makefile") CONFIG_FILES="$CONFIG_FILES fb/Makefile" ;;
35935    "glamor/Makefile") CONFIG_FILES="$CONFIG_FILES glamor/Makefile" ;;
35936    "record/Makefile") CONFIG_FILES="$CONFIG_FILES record/Makefile" ;;
35937    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
35938    "mi/Makefile") CONFIG_FILES="$CONFIG_FILES mi/Makefile" ;;
35939    "miext/Makefile") CONFIG_FILES="$CONFIG_FILES miext/Makefile" ;;
35940    "miext/sync/Makefile") CONFIG_FILES="$CONFIG_FILES miext/sync/Makefile" ;;
35941    "miext/damage/Makefile") CONFIG_FILES="$CONFIG_FILES miext/damage/Makefile" ;;
35942    "miext/shadow/Makefile") CONFIG_FILES="$CONFIG_FILES miext/shadow/Makefile" ;;
35943    "miext/rootless/Makefile") CONFIG_FILES="$CONFIG_FILES miext/rootless/Makefile" ;;
35944    "os/Makefile") CONFIG_FILES="$CONFIG_FILES os/Makefile" ;;
35945    "pseudoramiX/Makefile") CONFIG_FILES="$CONFIG_FILES pseudoramiX/Makefile" ;;
35946    "randr/Makefile") CONFIG_FILES="$CONFIG_FILES randr/Makefile" ;;
35947    "render/Makefile") CONFIG_FILES="$CONFIG_FILES render/Makefile" ;;
35948    "xkb/Makefile") CONFIG_FILES="$CONFIG_FILES xkb/Makefile" ;;
35949    "Xext/Makefile") CONFIG_FILES="$CONFIG_FILES Xext/Makefile" ;;
35950    "Xi/Makefile") CONFIG_FILES="$CONFIG_FILES Xi/Makefile" ;;
35951    "xfixes/Makefile") CONFIG_FILES="$CONFIG_FILES xfixes/Makefile" ;;
35952    "exa/Makefile") CONFIG_FILES="$CONFIG_FILES exa/Makefile" ;;
35953    "dri3/Makefile") CONFIG_FILES="$CONFIG_FILES dri3/Makefile" ;;
35954    "present/Makefile") CONFIG_FILES="$CONFIG_FILES present/Makefile" ;;
35955    "hw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/Makefile" ;;
35956    "hw/xfree86/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Makefile" ;;
35957    "hw/xfree86/Xorg.sh") CONFIG_FILES="$CONFIG_FILES hw/xfree86/Xorg.sh" ;;
35958    "hw/xfree86/common/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/common/Makefile" ;;
35959    "hw/xfree86/ddc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ddc/Makefile" ;;
35960    "hw/xfree86/dixmods/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dixmods/Makefile" ;;
35961    "hw/xfree86/doc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/doc/Makefile" ;;
35962    "hw/xfree86/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri/Makefile" ;;
35963    "hw/xfree86/dri2/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/Makefile" ;;
35964    "hw/xfree86/dri2/pci_ids/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/dri2/pci_ids/Makefile" ;;
35965    "hw/xfree86/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/Makefile" ;;
35966    "hw/xfree86/drivers/inputtest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/inputtest/Makefile" ;;
35967    "hw/xfree86/drivers/modesetting/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/drivers/modesetting/Makefile" ;;
35968    "hw/xfree86/exa/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/Makefile" ;;
35969    "hw/xfree86/exa/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/exa/man/Makefile" ;;
35970    "hw/xfree86/fbdevhw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/Makefile" ;;
35971    "hw/xfree86/fbdevhw/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/fbdevhw/man/Makefile" ;;
35972    "hw/xfree86/glamor_egl/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/glamor_egl/Makefile" ;;
35973    "hw/xfree86/i2c/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/i2c/Makefile" ;;
35974    "hw/xfree86/int10/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/int10/Makefile" ;;
35975    "hw/xfree86/loader/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/loader/Makefile" ;;
35976    "hw/xfree86/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/man/Makefile" ;;
35977    "hw/xfree86/modes/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/modes/Makefile" ;;
35978    "hw/xfree86/os-support/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/Makefile" ;;
35979    "hw/xfree86/os-support/bsd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bsd/Makefile" ;;
35980    "hw/xfree86/os-support/bus/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/bus/Makefile" ;;
35981    "hw/xfree86/os-support/hurd/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/hurd/Makefile" ;;
35982    "hw/xfree86/os-support/misc/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/misc/Makefile" ;;
35983    "hw/xfree86/os-support/linux/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/linux/Makefile" ;;
35984    "hw/xfree86/os-support/solaris/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/solaris/Makefile" ;;
35985    "hw/xfree86/os-support/stub/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/os-support/stub/Makefile" ;;
35986    "hw/xfree86/parser/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/parser/Makefile" ;;
35987    "hw/xfree86/ramdac/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/ramdac/Makefile" ;;
35988    "hw/xfree86/shadowfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/shadowfb/Makefile" ;;
35989    "hw/xfree86/vgahw/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/vgahw/Makefile" ;;
35990    "hw/xfree86/x86emu/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/x86emu/Makefile" ;;
35991    "hw/xfree86/xkb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/xkb/Makefile" ;;
35992    "hw/xfree86/utils/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/Makefile" ;;
35993    "hw/xfree86/utils/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/man/Makefile" ;;
35994    "hw/xfree86/utils/gtf/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xfree86/utils/gtf/Makefile" ;;
35995    "hw/vfb/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/Makefile" ;;
35996    "hw/vfb/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/vfb/man/Makefile" ;;
35997    "hw/xnest/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/Makefile" ;;
35998    "hw/xnest/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xnest/man/Makefile" ;;
35999    "hw/xwin/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/Makefile" ;;
36000    "hw/xwin/dri/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/dri/Makefile" ;;
36001    "hw/xwin/glx/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/glx/Makefile" ;;
36002    "hw/xwin/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/man/Makefile" ;;
36003    "hw/xwin/winclipboard/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xwin/winclipboard/Makefile" ;;
36004    "hw/xquartz/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/Makefile" ;;
36005    "hw/xquartz/GL/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/GL/Makefile" ;;
36006    "hw/xquartz/bundle/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/bundle/Makefile" ;;
36007    "hw/xquartz/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/man/Makefile" ;;
36008    "hw/xquartz/mach-startup/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/mach-startup/Makefile" ;;
36009    "hw/xquartz/pbproxy/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/pbproxy/Makefile" ;;
36010    "hw/xquartz/xpr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/xquartz/xpr/Makefile" ;;
36011    "hw/kdrive/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/Makefile" ;;
36012    "hw/kdrive/ephyr/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/Makefile" ;;
36013    "hw/kdrive/ephyr/man/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/ephyr/man/Makefile" ;;
36014    "hw/kdrive/src/Makefile") CONFIG_FILES="$CONFIG_FILES hw/kdrive/src/Makefile" ;;
36015    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
36016    "xserver.ent") CONFIG_FILES="$CONFIG_FILES xserver.ent" ;;
36017    "xorg-server.pc") CONFIG_FILES="$CONFIG_FILES xorg-server.pc" ;;
36018
36019  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
36020  esac
36021done
36022
36023
36024# If the user did not use the arguments to specify the items to instantiate,
36025# then the envvar interface is used.  Set only those that are not.
36026# We use the long form for the default assignment because of an extremely
36027# bizarre bug on SunOS 4.1.3.
36028if $ac_need_defaults; then
36029  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
36030  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
36031  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
36032fi
36033
36034# Have a temporary directory for convenience.  Make it in the build tree
36035# simply because there is no reason against having it here, and in addition,
36036# creating and moving files from /tmp can sometimes cause problems.
36037# Hook for its removal unless debugging.
36038# Note that there is a small window in which the directory will not be cleaned:
36039# after its creation but before its name has been assigned to '$tmp'.
36040$debug ||
36041{
36042  tmp= ac_tmp=
36043  trap 'exit_status=$?
36044  : "${ac_tmp:=$tmp}"
36045  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36046' 0
36047  trap 'as_fn_exit 1' 1 2 13 15
36048}
36049# Create a (secure) tmp directory for tmp files.
36050
36051{
36052  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36053  test -d "$tmp"
36054}  ||
36055{
36056  tmp=./conf$$-$RANDOM
36057  (umask 077 && mkdir "$tmp")
36058} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36059ac_tmp=$tmp
36060
36061# Set up the scripts for CONFIG_FILES section.
36062# No need to generate them if there are no CONFIG_FILES.
36063# This happens for instance with './config.status config.h'.
36064if test -n "$CONFIG_FILES"; then
36065
36066
36067ac_cr=`echo X | tr X '\015'`
36068# On cygwin, bash can eat \r inside `` if the user requested igncr.
36069# But we know of no other shell where ac_cr would be empty at this
36070# point, so we can use a bashism as a fallback.
36071if test "x$ac_cr" = x; then
36072  eval ac_cr=\$\'\\r\'
36073fi
36074ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36075if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36076  ac_cs_awk_cr='\\r'
36077else
36078  ac_cs_awk_cr=$ac_cr
36079fi
36080
36081echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36082_ACEOF
36083
36084
36085{
36086  echo "cat >conf$$subs.awk <<_ACEOF" &&
36087  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36088  echo "_ACEOF"
36089} >conf$$subs.sh ||
36090  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36091ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36092ac_delim='%!_!# '
36093for ac_last_try in false false false false false :; do
36094  . ./conf$$subs.sh ||
36095    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36096
36097  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36098  if test $ac_delim_n = $ac_delim_num; then
36099    break
36100  elif $ac_last_try; then
36101    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36102  else
36103    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36104  fi
36105done
36106rm -f conf$$subs.sh
36107
36108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36109cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36110_ACEOF
36111sed -n '
36112h
36113s/^/S["/; s/!.*/"]=/
36114p
36115g
36116s/^[^!]*!//
36117:repl
36118t repl
36119s/'"$ac_delim"'$//
36120t delim
36121:nl
36122h
36123s/\(.\{148\}\)..*/\1/
36124t more1
36125s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36126p
36127n
36128b repl
36129:more1
36130s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36131p
36132g
36133s/.\{148\}//
36134t nl
36135:delim
36136h
36137s/\(.\{148\}\)..*/\1/
36138t more2
36139s/["\\]/\\&/g; s/^/"/; s/$/"/
36140p
36141b
36142:more2
36143s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36144p
36145g
36146s/.\{148\}//
36147t delim
36148' <conf$$subs.awk | sed '
36149/^[^""]/{
36150  N
36151  s/\n//
36152}
36153' >>$CONFIG_STATUS || ac_write_fail=1
36154rm -f conf$$subs.awk
36155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36156_ACAWK
36157cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36158  for (key in S) S_is_set[key] = 1
36159  FS = ""
36160
36161}
36162{
36163  line = $ 0
36164  nfields = split(line, field, "@")
36165  substed = 0
36166  len = length(field[1])
36167  for (i = 2; i < nfields; i++) {
36168    key = field[i]
36169    keylen = length(key)
36170    if (S_is_set[key]) {
36171      value = S[key]
36172      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36173      len += length(value) + length(field[++i])
36174      substed = 1
36175    } else
36176      len += 1 + keylen
36177  }
36178
36179  print line
36180}
36181
36182_ACAWK
36183_ACEOF
36184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36185if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36186  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36187else
36188  cat
36189fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36190  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36191_ACEOF
36192
36193# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36194# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36195# trailing colons and then remove the whole line if VPATH becomes empty
36196# (actually we leave an empty line to preserve line numbers).
36197if test "x$srcdir" = x.; then
36198  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
36199h
36200s///
36201s/^/:/
36202s/[	 ]*$/:/
36203s/:\$(srcdir):/:/g
36204s/:\${srcdir}:/:/g
36205s/:@srcdir@:/:/g
36206s/^:*//
36207s/:*$//
36208x
36209s/\(=[	 ]*\).*/\1/
36210G
36211s/\n//
36212s/^[^=]*=[	 ]*$//
36213}'
36214fi
36215
36216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36217fi # test -n "$CONFIG_FILES"
36218
36219# Set up the scripts for CONFIG_HEADERS section.
36220# No need to generate them if there are no CONFIG_HEADERS.
36221# This happens for instance with './config.status Makefile'.
36222if test -n "$CONFIG_HEADERS"; then
36223cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36224BEGIN {
36225_ACEOF
36226
36227# Transform confdefs.h into an awk script 'defines.awk', embedded as
36228# here-document in config.status, that substitutes the proper values into
36229# config.h.in to produce config.h.
36230
36231# Create a delimiter string that does not exist in confdefs.h, to ease
36232# handling of long lines.
36233ac_delim='%!_!# '
36234for ac_last_try in false false :; do
36235  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36236  if test -z "$ac_tt"; then
36237    break
36238  elif $ac_last_try; then
36239    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36240  else
36241    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36242  fi
36243done
36244
36245# For the awk script, D is an array of macro values keyed by name,
36246# likewise P contains macro parameters if any.  Preserve backslash
36247# newline sequences.
36248
36249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36250sed -n '
36251s/.\{148\}/&'"$ac_delim"'/g
36252t rset
36253:rset
36254s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
36255t def
36256d
36257:def
36258s/\\$//
36259t bsnl
36260s/["\\]/\\&/g
36261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
36262D["\1"]=" \3"/p
36263s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
36264d
36265:bsnl
36266s/["\\]/\\&/g
36267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
36268D["\1"]=" \3\\\\\\n"\\/p
36269t cont
36270s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36271t cont
36272d
36273:cont
36274n
36275s/.\{148\}/&'"$ac_delim"'/g
36276t clear
36277:clear
36278s/\\$//
36279t bsnlc
36280s/["\\]/\\&/g; s/^/"/; s/$/"/p
36281d
36282:bsnlc
36283s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36284b cont
36285' <confdefs.h | sed '
36286s/'"$ac_delim"'/"\\\
36287"/g' >>$CONFIG_STATUS || ac_write_fail=1
36288
36289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36290  for (key in D) D_is_set[key] = 1
36291  FS = ""
36292}
36293/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36294  line = \$ 0
36295  split(line, arg, " ")
36296  if (arg[1] == "#") {
36297    defundef = arg[2]
36298    mac1 = arg[3]
36299  } else {
36300    defundef = substr(arg[1], 2)
36301    mac1 = arg[2]
36302  }
36303  split(mac1, mac2, "(") #)
36304  macro = mac2[1]
36305  prefix = substr(line, 1, index(line, defundef) - 1)
36306  if (D_is_set[macro]) {
36307    # Preserve the white space surrounding the "#".
36308    print prefix "define", macro P[macro] D[macro]
36309    next
36310  } else {
36311    # Replace #undef with comments.  This is necessary, for example,
36312    # in the case of _POSIX_SOURCE, which is predefined and required
36313    # on some systems where configure will not decide to define it.
36314    if (defundef == "undef") {
36315      print "/*", prefix defundef, macro, "*/"
36316      next
36317    }
36318  }
36319}
36320{ print }
36321_ACAWK
36322_ACEOF
36323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36324  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36325fi # test -n "$CONFIG_HEADERS"
36326
36327
36328eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36329shift
36330for ac_tag
36331do
36332  case $ac_tag in
36333  :[FHLC]) ac_mode=$ac_tag; continue;;
36334  esac
36335  case $ac_mode$ac_tag in
36336  :[FHL]*:*);;
36337  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
36338  :[FH]-) ac_tag=-:-;;
36339  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36340  esac
36341  ac_save_IFS=$IFS
36342  IFS=:
36343  set x $ac_tag
36344  IFS=$ac_save_IFS
36345  shift
36346  ac_file=$1
36347  shift
36348
36349  case $ac_mode in
36350  :L) ac_source=$1;;
36351  :[FH])
36352    ac_file_inputs=
36353    for ac_f
36354    do
36355      case $ac_f in
36356      -) ac_f="$ac_tmp/stdin";;
36357      *) # Look for the file first in the build tree, then in the source tree
36358	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
36359	 # because $ac_f cannot contain ':'.
36360	 test -f "$ac_f" ||
36361	   case $ac_f in
36362	   [\\/$]*) false;;
36363	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36364	   esac ||
36365	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
36366      esac
36367      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36368      as_fn_append ac_file_inputs " '$ac_f'"
36369    done
36370
36371    # Let's still pretend it is 'configure' which instantiates (i.e., don't
36372    # use $as_me), people would be surprised to read:
36373    #    /* config.h.  Generated by config.status.  */
36374    configure_input='Generated from '`
36375	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36376	`' by configure.'
36377    if test x"$ac_file" != x-; then
36378      configure_input="$ac_file.  $configure_input"
36379      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36380printf "%s\n" "$as_me: creating $ac_file" >&6;}
36381    fi
36382    # Neutralize special characters interpreted by sed in replacement strings.
36383    case $configure_input in #(
36384    *\&* | *\|* | *\\* )
36385       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
36386       sed 's/[\\\\&|]/\\\\&/g'`;; #(
36387    *) ac_sed_conf_input=$configure_input;;
36388    esac
36389
36390    case $ac_tag in
36391    *:-:* | *:-) cat >"$ac_tmp/stdin" \
36392      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36393    esac
36394    ;;
36395  esac
36396
36397  ac_dir=`$as_dirname -- "$ac_file" ||
36398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36399	 X"$ac_file" : 'X\(//\)[^/]' \| \
36400	 X"$ac_file" : 'X\(//\)$' \| \
36401	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36402printf "%s\n" X"$ac_file" |
36403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36404	    s//\1/
36405	    q
36406	  }
36407	  /^X\(\/\/\)[^/].*/{
36408	    s//\1/
36409	    q
36410	  }
36411	  /^X\(\/\/\)$/{
36412	    s//\1/
36413	    q
36414	  }
36415	  /^X\(\/\).*/{
36416	    s//\1/
36417	    q
36418	  }
36419	  s/.*/./; q'`
36420  as_dir="$ac_dir"; as_fn_mkdir_p
36421  ac_builddir=.
36422
36423case "$ac_dir" in
36424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36425*)
36426  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
36427  # A ".." for each directory in $ac_dir_suffix.
36428  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36429  case $ac_top_builddir_sub in
36430  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36431  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36432  esac ;;
36433esac
36434ac_abs_top_builddir=$ac_pwd
36435ac_abs_builddir=$ac_pwd$ac_dir_suffix
36436# for backward compatibility:
36437ac_top_builddir=$ac_top_build_prefix
36438
36439case $srcdir in
36440  .)  # We are building in place.
36441    ac_srcdir=.
36442    ac_top_srcdir=$ac_top_builddir_sub
36443    ac_abs_top_srcdir=$ac_pwd ;;
36444  [\\/]* | ?:[\\/]* )  # Absolute name.
36445    ac_srcdir=$srcdir$ac_dir_suffix;
36446    ac_top_srcdir=$srcdir
36447    ac_abs_top_srcdir=$srcdir ;;
36448  *) # Relative name.
36449    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36450    ac_top_srcdir=$ac_top_build_prefix$srcdir
36451    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36452esac
36453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36454
36455
36456  case $ac_mode in
36457  :F)
36458  #
36459  # CONFIG_FILE
36460  #
36461
36462  case $INSTALL in
36463  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36464  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36465  esac
36466  ac_MKDIR_P=$MKDIR_P
36467  case $MKDIR_P in
36468  [\\/$]* | ?:[\\/]* ) ;;
36469  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36470  esac
36471_ACEOF
36472
36473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36474# If the template does not know about datarootdir, expand it.
36475# FIXME: This hack should be removed a few years after 2.60.
36476ac_datarootdir_hack=; ac_datarootdir_seen=
36477ac_sed_dataroot='
36478/datarootdir/ {
36479  p
36480  q
36481}
36482/@datadir@/p
36483/@docdir@/p
36484/@infodir@/p
36485/@localedir@/p
36486/@mandir@/p'
36487case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36488*datarootdir*) ac_datarootdir_seen=yes;;
36489*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36491printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36492_ACEOF
36493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36494  ac_datarootdir_hack='
36495  s&@datadir@&$datadir&g
36496  s&@docdir@&$docdir&g
36497  s&@infodir@&$infodir&g
36498  s&@localedir@&$localedir&g
36499  s&@mandir@&$mandir&g
36500  s&\\\${datarootdir}&$datarootdir&g' ;;
36501esac
36502_ACEOF
36503
36504# Neutralize VPATH when '$srcdir' = '.'.
36505# Shell code in configure.ac might set extrasub.
36506# FIXME: do we really want to maintain this feature?
36507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36508ac_sed_extra="$ac_vpsub
36509$extrasub
36510_ACEOF
36511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36512:t
36513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36514s|@configure_input@|$ac_sed_conf_input|;t t
36515s&@top_builddir@&$ac_top_builddir_sub&;t t
36516s&@top_build_prefix@&$ac_top_build_prefix&;t t
36517s&@srcdir@&$ac_srcdir&;t t
36518s&@abs_srcdir@&$ac_abs_srcdir&;t t
36519s&@top_srcdir@&$ac_top_srcdir&;t t
36520s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36521s&@builddir@&$ac_builddir&;t t
36522s&@abs_builddir@&$ac_abs_builddir&;t t
36523s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36524s&@INSTALL@&$ac_INSTALL&;t t
36525s&@MKDIR_P@&$ac_MKDIR_P&;t t
36526$ac_datarootdir_hack
36527"
36528eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36529  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36530
36531test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36532  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36533  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
36534      "$ac_tmp/out"`; test -z "$ac_out"; } &&
36535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
36536which seems to be undefined.  Please make sure it is defined" >&5
36537printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
36538which seems to be undefined.  Please make sure it is defined" >&2;}
36539
36540  rm -f "$ac_tmp/stdin"
36541  case $ac_file in
36542  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36543  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36544  esac \
36545  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36546 ;;
36547  :H)
36548  #
36549  # CONFIG_HEADER
36550  #
36551  if test x"$ac_file" != x-; then
36552    {
36553      printf "%s\n" "/* $configure_input  */" >&1 \
36554      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36555    } >"$ac_tmp/config.h" \
36556      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36557    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36558      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36559printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
36560    else
36561      rm -f "$ac_file"
36562      mv "$ac_tmp/config.h" "$ac_file" \
36563	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
36564    fi
36565  else
36566    printf "%s\n" "/* $configure_input  */" >&1 \
36567      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36568      || as_fn_error $? "could not create -" "$LINENO" 5
36569  fi
36570# Compute "$ac_file"'s index in $config_headers.
36571_am_arg="$ac_file"
36572_am_stamp_count=1
36573for _am_header in $config_headers :; do
36574  case $_am_header in
36575    $_am_arg | $_am_arg:* )
36576      break ;;
36577    * )
36578      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36579  esac
36580done
36581echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36582$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36583	 X"$_am_arg" : 'X\(//\)[^/]' \| \
36584	 X"$_am_arg" : 'X\(//\)$' \| \
36585	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36586printf "%s\n" X"$_am_arg" |
36587    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36588	    s//\1/
36589	    q
36590	  }
36591	  /^X\(\/\/\)[^/].*/{
36592	    s//\1/
36593	    q
36594	  }
36595	  /^X\(\/\/\)$/{
36596	    s//\1/
36597	    q
36598	  }
36599	  /^X\(\/\).*/{
36600	    s//\1/
36601	    q
36602	  }
36603	  s/.*/./; q'`/stamp-h$_am_stamp_count
36604 ;;
36605
36606  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36607printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
36608 ;;
36609  esac
36610
36611
36612  case $ac_file$ac_mode in
36613    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36614  # Older Autoconf quotes --file arguments for eval, but not when files
36615  # are listed without --file.  Let's play safe and only enable the eval
36616  # if we detect the quoting.
36617  # TODO: see whether this extra hack can be removed once we start
36618  # requiring Autoconf 2.70 or later.
36619  case $CONFIG_FILES in #(
36620  *\'*) :
36621    eval set x "$CONFIG_FILES" ;; #(
36622  *) :
36623    set x $CONFIG_FILES ;; #(
36624  *) :
36625     ;;
36626esac
36627  shift
36628  # Used to flag and report bootstrapping failures.
36629  am_rc=0
36630  for am_mf
36631  do
36632    # Strip MF so we end up with the name of the file.
36633    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
36634    # Check whether this is an Automake generated Makefile which includes
36635    # dependency-tracking related rules and includes.
36636    # Grep'ing the whole file directly is not great: AIX grep has a line
36637    # limit of 2048, but all sed's we know have understand at least 4000.
36638    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
36639      || continue
36640    am_dirpart=`$as_dirname -- "$am_mf" ||
36641$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36642	 X"$am_mf" : 'X\(//\)[^/]' \| \
36643	 X"$am_mf" : 'X\(//\)$' \| \
36644	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
36645printf "%s\n" X"$am_mf" |
36646    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36647	    s//\1/
36648	    q
36649	  }
36650	  /^X\(\/\/\)[^/].*/{
36651	    s//\1/
36652	    q
36653	  }
36654	  /^X\(\/\/\)$/{
36655	    s//\1/
36656	    q
36657	  }
36658	  /^X\(\/\).*/{
36659	    s//\1/
36660	    q
36661	  }
36662	  s/.*/./; q'`
36663    am_filepart=`$as_basename -- "$am_mf" ||
36664$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
36665	 X"$am_mf" : 'X\(//\)$' \| \
36666	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
36667printf "%s\n" X/"$am_mf" |
36668    sed '/^.*\/\([^/][^/]*\)\/*$/{
36669	    s//\1/
36670	    q
36671	  }
36672	  /^X\/\(\/\/\)$/{
36673	    s//\1/
36674	    q
36675	  }
36676	  /^X\/\(\/\).*/{
36677	    s//\1/
36678	    q
36679	  }
36680	  s/.*/./; q'`
36681    { echo "$as_me:$LINENO: cd "$am_dirpart" \
36682      && sed -e '/# am--include-marker/d' "$am_filepart" \
36683        | $MAKE -f - am--depfiles" >&5
36684   (cd "$am_dirpart" \
36685      && sed -e '/# am--include-marker/d' "$am_filepart" \
36686        | $MAKE -f - am--depfiles) >&5 2>&5
36687   ac_status=$?
36688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36689   (exit $ac_status); } || am_rc=$?
36690  done
36691  if test $am_rc -ne 0; then
36692    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
36693printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
36694as_fn_error $? "Something went wrong bootstrapping makefile fragments
36695    for automatic dependency tracking.  If GNU make was not used, consider
36696    re-running the configure script with MAKE=\"gmake\" (or whatever is
36697    necessary).  You can also try re-running configure with the
36698    '--disable-dependency-tracking' option to at least be able to build
36699    the package (albeit without support for automatic dependency tracking).
36700See 'config.log' for more details" "$LINENO" 5; }
36701  fi
36702  { am_dirpart=; unset am_dirpart;}
36703  { am_filepart=; unset am_filepart;}
36704  { am_mf=; unset am_mf;}
36705  { am_rc=; unset am_rc;}
36706  rm -f conftest-deps.mk
36707}
36708 ;;
36709    "libtool":C)
36710
36711    # See if we are running on zsh, and set the options that allow our
36712    # commands through without removal of \ escapes.
36713    if test -n "${ZSH_VERSION+set}"; then
36714      setopt NO_GLOB_SUBST
36715    fi
36716
36717    cfgfile=${ofile}T
36718    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36719    $RM "$cfgfile"
36720
36721    cat <<_LT_EOF >> "$cfgfile"
36722#! $SHELL
36723# Generated automatically by $as_me ($PACKAGE) $VERSION
36724# NOTE: Changes made to this file will be lost: look at ltmain.sh.
36725
36726# Provide generalized library-building support services.
36727# Written by Gordon Matzigkeit, 1996
36728
36729# Copyright (C) 2024 Free Software Foundation, Inc.
36730# This is free software; see the source for copying conditions.  There is NO
36731# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
36732
36733# GNU Libtool is free software; you can redistribute it and/or modify
36734# it under the terms of the GNU General Public License as published by
36735# the Free Software Foundation; either version 2 of the License, or
36736# (at your option) any later version.
36737#
36738# As a special exception to the GNU General Public License, if you
36739# distribute this file as part of a program or library that is built
36740# using GNU Libtool, you may include this file under the  same
36741# distribution terms that you use for the rest of that program.
36742#
36743# GNU Libtool is distributed in the hope that it will be useful, but
36744# WITHOUT ANY WARRANTY; without even the implied warranty of
36745# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
36746# GNU General Public License for more details.
36747#
36748# You should have received a copy of the GNU General Public License
36749# along with this program.  If not, see <http://www.gnu.org/licenses/>.
36750
36751
36752# The names of the tagged configurations supported by this script.
36753available_tags=''
36754
36755# Configured defaults for sys_lib_dlsearch_path munging.
36756: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
36757
36758# ### BEGIN LIBTOOL CONFIG
36759
36760# Which release of libtool.m4 was used?
36761macro_version=$macro_version
36762macro_revision=$macro_revision
36763
36764# Whether or not to build static libraries.
36765build_old_libs=$enable_static
36766
36767# Assembler program.
36768AS=$lt_AS
36769
36770# DLL creation program.
36771DLLTOOL=$lt_DLLTOOL
36772
36773# Object dumper program.
36774OBJDUMP=$lt_OBJDUMP
36775
36776# Whether or not to build shared libraries.
36777build_libtool_libs=$enable_shared
36778
36779# What type of objects to build.
36780pic_mode=$pic_mode
36781
36782# Whether or not to optimize for fast installation.
36783fast_install=$enable_fast_install
36784
36785# Shared archive member basename,for filename based shared library versioning on AIX.
36786shared_archive_member_spec=$shared_archive_member_spec
36787
36788# Shell to use when invoking shell scripts.
36789SHELL=$lt_SHELL
36790
36791# An echo program that protects backslashes.
36792ECHO=$lt_ECHO
36793
36794# The PATH separator for the build system.
36795PATH_SEPARATOR=$lt_PATH_SEPARATOR
36796
36797# The host system.
36798host_alias=$host_alias
36799host=$host
36800host_os=$host_os
36801
36802# The build system.
36803build_alias=$build_alias
36804build=$build
36805build_os=$build_os
36806
36807# A sed program that does not truncate output.
36808SED=$lt_SED
36809
36810# Sed that helps us avoid accidentally triggering echo(1) options like -n.
36811Xsed="\$SED -e 1s/^X//"
36812
36813# A grep program that handles long lines.
36814GREP=$lt_GREP
36815
36816# An ERE matcher.
36817EGREP=$lt_EGREP
36818
36819# A literal string matcher.
36820FGREP=$lt_FGREP
36821
36822# A BSD- or MS-compatible name lister.
36823NM=$lt_NM
36824
36825# Whether we need soft or hard links.
36826LN_S=$lt_LN_S
36827
36828# What is the maximum length of a command?
36829max_cmd_len=$max_cmd_len
36830
36831# Object file suffix (normally "o").
36832objext=$ac_objext
36833
36834# Executable file suffix (normally "").
36835exeext=$exeext
36836
36837# whether the shell understands "unset".
36838lt_unset=$lt_unset
36839
36840# turn spaces into newlines.
36841SP2NL=$lt_lt_SP2NL
36842
36843# turn newlines into spaces.
36844NL2SP=$lt_lt_NL2SP
36845
36846# convert \$build file names to \$host format.
36847to_host_file_cmd=$lt_cv_to_host_file_cmd
36848
36849# convert \$build files to toolchain format.
36850to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36851
36852# A file(cmd) program that detects file types.
36853FILECMD=$lt_FILECMD
36854
36855# Method to check whether dependent libraries are shared objects.
36856deplibs_check_method=$lt_deplibs_check_method
36857
36858# Command to use when deplibs_check_method = "file_magic".
36859file_magic_cmd=$lt_file_magic_cmd
36860
36861# How to find potential files when deplibs_check_method = "file_magic".
36862file_magic_glob=$lt_file_magic_glob
36863
36864# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36865want_nocaseglob=$lt_want_nocaseglob
36866
36867# Command to associate shared and link libraries.
36868sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36869
36870# The archiver.
36871AR=$lt_AR
36872
36873# Flags to create an archive (by configure).
36874lt_ar_flags=$lt_ar_flags
36875
36876# Flags to create an archive.
36877AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
36878
36879# How to feed a file listing to the archiver.
36880archiver_list_spec=$lt_archiver_list_spec
36881
36882# A symbol stripping program.
36883STRIP=$lt_STRIP
36884
36885# Commands used to install an old-style archive.
36886RANLIB=$lt_RANLIB
36887old_postinstall_cmds=$lt_old_postinstall_cmds
36888old_postuninstall_cmds=$lt_old_postuninstall_cmds
36889
36890# Whether to use a lock for old archive extraction.
36891lock_old_archive_extraction=$lock_old_archive_extraction
36892
36893# A C compiler.
36894LTCC=$lt_CC
36895
36896# LTCC compiler flags.
36897LTCFLAGS=$lt_CFLAGS
36898
36899# Take the output of nm and produce a listing of raw symbols and C names.
36900global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36901
36902# Transform the output of nm in a proper C declaration.
36903global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36904
36905# Transform the output of nm into a list of symbols to manually relocate.
36906global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
36907
36908# Transform the output of nm in a C name address pair.
36909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36910
36911# Transform the output of nm in a C name address pair when lib prefix is needed.
36912global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36913
36914# The name lister interface.
36915nm_interface=$lt_lt_cv_nm_interface
36916
36917# Specify filename containing input files for \$NM.
36918nm_file_list_spec=$lt_nm_file_list_spec
36919
36920# The root where to search for dependent libraries,and where our libraries should be installed.
36921lt_sysroot=$lt_sysroot
36922
36923# Command to truncate a binary pipe.
36924lt_truncate_bin=$lt_lt_cv_truncate_bin
36925
36926# The name of the directory that contains temporary libtool files.
36927objdir=$objdir
36928
36929# Used to examine libraries when file_magic_cmd begins with "file".
36930MAGIC_CMD=$MAGIC_CMD
36931
36932# Must we lock files when doing compilation?
36933need_locks=$lt_need_locks
36934
36935# Manifest tool.
36936MANIFEST_TOOL=$lt_MANIFEST_TOOL
36937
36938# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36939DSYMUTIL=$lt_DSYMUTIL
36940
36941# Tool to change global to local symbols on Mac OS X.
36942NMEDIT=$lt_NMEDIT
36943
36944# Tool to manipulate fat objects and archives on Mac OS X.
36945LIPO=$lt_LIPO
36946
36947# ldd/readelf like tool for Mach-O binaries on Mac OS X.
36948OTOOL=$lt_OTOOL
36949
36950# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36951OTOOL64=$lt_OTOOL64
36952
36953# Old archive suffix (normally "a").
36954libext=$libext
36955
36956# Shared library suffix (normally ".so").
36957shrext_cmds=$lt_shrext_cmds
36958
36959# The commands to extract the exported symbol list from a shared archive.
36960extract_expsyms_cmds=$lt_extract_expsyms_cmds
36961
36962# Variables whose values should be saved in libtool wrapper scripts and
36963# restored at link time.
36964variables_saved_for_relink=$lt_variables_saved_for_relink
36965
36966# Do we need the "lib" prefix for modules?
36967need_lib_prefix=$need_lib_prefix
36968
36969# Do we need a version for libraries?
36970need_version=$need_version
36971
36972# Library versioning type.
36973version_type=$version_type
36974
36975# Shared library runtime path variable.
36976runpath_var=$runpath_var
36977
36978# Shared library path variable.
36979shlibpath_var=$shlibpath_var
36980
36981# Is shlibpath searched before the hard-coded library search path?
36982shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36983
36984# Format of library name prefix.
36985libname_spec=$lt_libname_spec
36986
36987# List of archive names.  First name is the real one, the rest are links.
36988# The last name is the one that the linker finds with -lNAME
36989library_names_spec=$lt_library_names_spec
36990
36991# The coded name of the library, if different from the real name.
36992soname_spec=$lt_soname_spec
36993
36994# Permission mode override for installation of shared libraries.
36995install_override_mode=$lt_install_override_mode
36996
36997# Command to use after installation of a shared archive.
36998postinstall_cmds=$lt_postinstall_cmds
36999
37000# Command to use after uninstallation of a shared archive.
37001postuninstall_cmds=$lt_postuninstall_cmds
37002
37003# Commands used to finish a libtool library installation in a directory.
37004finish_cmds=$lt_finish_cmds
37005
37006# As "finish_cmds", except a single script fragment to be evaled but
37007# not shown.
37008finish_eval=$lt_finish_eval
37009
37010# Whether we should hardcode library paths into libraries.
37011hardcode_into_libs=$hardcode_into_libs
37012
37013# Compile-time system search path for libraries.
37014sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37015
37016# Detected run-time system search path for libraries.
37017sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
37018
37019# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
37020configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
37021
37022# Whether dlopen is supported.
37023dlopen_support=$enable_dlopen
37024
37025# Whether dlopen of programs is supported.
37026dlopen_self=$enable_dlopen_self
37027
37028# Whether dlopen of statically linked programs is supported.
37029dlopen_self_static=$enable_dlopen_self_static
37030
37031# Commands to strip libraries.
37032old_striplib=$lt_old_striplib
37033striplib=$lt_striplib
37034
37035
37036# The linker used to build libraries.
37037LD=$lt_LD
37038
37039# How to create reloadable object files.
37040reload_flag=$lt_reload_flag
37041reload_cmds=$lt_reload_cmds
37042
37043# Commands used to build an old-style archive.
37044old_archive_cmds=$lt_old_archive_cmds
37045
37046# A language specific compiler.
37047CC=$lt_compiler
37048
37049# Is the compiler the GNU compiler?
37050with_gcc=$GCC
37051
37052# Compiler flag to turn off builtin functions.
37053no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37054
37055# Additional compiler flags for building library objects.
37056pic_flag=$lt_lt_prog_compiler_pic
37057
37058# How to pass a linker flag through the compiler.
37059wl=$lt_lt_prog_compiler_wl
37060
37061# Compiler flag to prevent dynamic linking.
37062link_static_flag=$lt_lt_prog_compiler_static
37063
37064# Does compiler simultaneously support -c and -o options?
37065compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37066
37067# Whether or not to add -lc for building shared libraries.
37068build_libtool_need_lc=$archive_cmds_need_lc
37069
37070# Whether or not to disallow shared libs when runtime libs are static.
37071allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37072
37073# Compiler flag to allow reflexive dlopens.
37074export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37075
37076# Compiler flag to generate shared objects directly from archives.
37077whole_archive_flag_spec=$lt_whole_archive_flag_spec
37078
37079# Whether the compiler copes with passing no objects directly.
37080compiler_needs_object=$lt_compiler_needs_object
37081
37082# Create an old-style archive from a shared archive.
37083old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37084
37085# Create a temporary old-style archive to link instead of a shared archive.
37086old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37087
37088# Commands used to build a shared archive.
37089archive_cmds=$lt_archive_cmds
37090archive_expsym_cmds=$lt_archive_expsym_cmds
37091
37092# Commands used to build a loadable module if different from building
37093# a shared archive.
37094module_cmds=$lt_module_cmds
37095module_expsym_cmds=$lt_module_expsym_cmds
37096
37097# Whether we are building with GNU ld or not.
37098with_gnu_ld=$lt_with_gnu_ld
37099
37100# Flag that allows shared libraries with undefined symbols to be built.
37101allow_undefined_flag=$lt_allow_undefined_flag
37102
37103# Flag that enforces no undefined symbols.
37104no_undefined_flag=$lt_no_undefined_flag
37105
37106# Flag to hardcode \$libdir into a binary during linking.
37107# This must work even if \$libdir does not exist
37108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37109
37110# Whether we need a single "-rpath" flag with a separated argument.
37111hardcode_libdir_separator=$lt_hardcode_libdir_separator
37112
37113# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
37114# DIR into the resulting binary.
37115hardcode_direct=$hardcode_direct
37116
37117# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
37118# DIR into the resulting binary and the resulting library dependency is
37119# "absolute",i.e. impossible to change by setting \$shlibpath_var if the
37120# library is relocated.
37121hardcode_direct_absolute=$hardcode_direct_absolute
37122
37123# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37124# into the resulting binary.
37125hardcode_minus_L=$hardcode_minus_L
37126
37127# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37128# into the resulting binary.
37129hardcode_shlibpath_var=$hardcode_shlibpath_var
37130
37131# Set to "yes" if building a shared library automatically hardcodes DIR
37132# into the library and all subsequent libraries and executables linked
37133# against it.
37134hardcode_automatic=$hardcode_automatic
37135
37136# Set to yes if linker adds runtime paths of dependent libraries
37137# to runtime path list.
37138inherit_rpath=$inherit_rpath
37139
37140# Whether libtool must link a program against all its dependency libraries.
37141link_all_deplibs=$link_all_deplibs
37142
37143# Set to "yes" if exported symbols are required.
37144always_export_symbols=$always_export_symbols
37145
37146# The commands to list exported symbols.
37147export_symbols_cmds=$lt_export_symbols_cmds
37148
37149# Symbols that should not be listed in the preloaded symbols.
37150exclude_expsyms=$lt_exclude_expsyms
37151
37152# Symbols that must always be exported.
37153include_expsyms=$lt_include_expsyms
37154
37155# Commands necessary for linking programs (against libraries) with templates.
37156prelink_cmds=$lt_prelink_cmds
37157
37158# Commands necessary for finishing linking programs.
37159postlink_cmds=$lt_postlink_cmds
37160
37161# Specify filename containing input files.
37162file_list_spec=$lt_file_list_spec
37163
37164# How to hardcode a shared library path into an executable.
37165hardcode_action=$hardcode_action
37166
37167# ### END LIBTOOL CONFIG
37168
37169_LT_EOF
37170
37171    cat <<'_LT_EOF' >> "$cfgfile"
37172
37173# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
37174
37175# func_munge_path_list VARIABLE PATH
37176# -----------------------------------
37177# VARIABLE is name of variable containing _space_ separated list of
37178# directories to be munged by the contents of PATH, which is string
37179# having a format:
37180# "DIR[:DIR]:"
37181#       string "DIR[ DIR]" will be prepended to VARIABLE
37182# ":DIR[:DIR]"
37183#       string "DIR[ DIR]" will be appended to VARIABLE
37184# "DIRP[:DIRP]::[DIRA:]DIRA"
37185#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
37186#       "DIRA[ DIRA]" will be appended to VARIABLE
37187# "DIR[:DIR]"
37188#       VARIABLE will be replaced by "DIR[ DIR]"
37189func_munge_path_list ()
37190{
37191    case x$2 in
37192    x)
37193        ;;
37194    *:)
37195        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
37196        ;;
37197    x:*)
37198        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
37199        ;;
37200    *::*)
37201        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
37202        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
37203        ;;
37204    *)
37205        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
37206        ;;
37207    esac
37208}
37209
37210
37211# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
37212func_cc_basename ()
37213{
37214    for cc_temp in $*""; do
37215      case $cc_temp in
37216        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37217        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37218        \-*) ;;
37219        *) break;;
37220      esac
37221    done
37222    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
37223}
37224
37225
37226# ### END FUNCTIONS SHARED WITH CONFIGURE
37227
37228_LT_EOF
37229
37230  case $host_os in
37231  aix3*)
37232    cat <<\_LT_EOF >> "$cfgfile"
37233# AIX sometimes has problems with the GCC collect2 program.  For some
37234# reason, if we set the COLLECT_NAMES environment variable, the problems
37235# vanish in a puff of smoke.
37236if test set != "${COLLECT_NAMES+set}"; then
37237  COLLECT_NAMES=
37238  export COLLECT_NAMES
37239fi
37240_LT_EOF
37241    ;;
37242  esac
37243
37244
37245
37246ltmain=$ac_aux_dir/ltmain.sh
37247
37248
37249  # We use sed instead of cat because bash on DJGPP gets confused if
37250  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37251  # text mode, it properly converts lines to CR/LF.  This bash problem
37252  # is reportedly fixed, but why not run on old versions too?
37253  $SED '$q' "$ltmain" >> "$cfgfile" \
37254     || (rm -f "$cfgfile"; exit 1)
37255
37256   mv -f "$cfgfile" "$ofile" ||
37257    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37258  chmod +x "$ofile"
37259
37260 ;;
37261    "sdksyms":C) touch hw/xfree86/sdksyms.dep ;;
37262
37263  esac
37264done # for ac_tag
37265
37266
37267as_fn_exit 0
37268_ACEOF
37269ac_clean_files=$ac_clean_files_save
37270
37271test $ac_write_fail = 0 ||
37272  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37273
37274
37275# configure is writing to config.log, and then calls config.status.
37276# config.status does its own redirection, appending to config.log.
37277# Unfortunately, on DOS this fails, as config.log is still kept open
37278# by configure, so config.status won't be able to write to it; its
37279# output is simply discarded.  So we exec the FD to /dev/null,
37280# effectively closing config.log, so it can be properly (re)opened and
37281# appended to by config.status.  When coming back to configure, we
37282# need to make the FD available again.
37283if test "$no_create" != yes; then
37284  ac_cs_success=:
37285  ac_config_status_args=
37286  test "$silent" = yes &&
37287    ac_config_status_args="$ac_config_status_args --quiet"
37288  exec 5>/dev/null
37289  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37290  exec 5>>config.log
37291  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37292  # would make configure fail if this is the last instruction.
37293  $ac_cs_success || as_fn_exit 1
37294fi
37295if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37297printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37298fi
37299
37300
37301