1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for libxcb 1.17.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
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="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
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 \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='libxcb'
624PACKAGE_TARNAME='libxcb'
625PACKAGE_VERSION='1.17.0'
626PACKAGE_STRING='libxcb 1.17.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="xcb.pc.in"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667XCB_SERVERSIDE_SUPPORT_FALSE
668XCB_SERVERSIDE_SUPPORT_TRUE
669BUILD_XVMC_FALSE
670BUILD_XVMC_TRUE
671BUILD_XV_FALSE
672BUILD_XV_TRUE
673BUILD_XTEST_FALSE
674BUILD_XTEST_TRUE
675BUILD_SELINUX_FALSE
676BUILD_SELINUX_TRUE
677BUILD_XPRINT_FALSE
678BUILD_XPRINT_TRUE
679BUILD_XKB_FALSE
680BUILD_XKB_TRUE
681BUILD_XINPUT_FALSE
682BUILD_XINPUT_TRUE
683BUILD_XINERAMA_FALSE
684BUILD_XINERAMA_TRUE
685BUILD_XFREE86_DRI_FALSE
686BUILD_XFREE86_DRI_TRUE
687BUILD_XFIXES_FALSE
688BUILD_XFIXES_TRUE
689BUILD_XEVIE_FALSE
690BUILD_XEVIE_TRUE
691BUILD_SYNC_FALSE
692BUILD_SYNC_TRUE
693BUILD_SHM_FALSE
694BUILD_SHM_TRUE
695BUILD_SHAPE_FALSE
696BUILD_SHAPE_TRUE
697BUILD_SCREENSAVER_FALSE
698BUILD_SCREENSAVER_TRUE
699BUILD_RESOURCE_FALSE
700BUILD_RESOURCE_TRUE
701BUILD_RENDER_FALSE
702BUILD_RENDER_TRUE
703BUILD_RECORD_FALSE
704BUILD_RECORD_TRUE
705BUILD_RANDR_FALSE
706BUILD_RANDR_TRUE
707BUILD_PRESENT_FALSE
708BUILD_PRESENT_TRUE
709BUILD_GLX_FALSE
710BUILD_GLX_TRUE
711BUILD_GE_FALSE
712BUILD_GE_TRUE
713BUILD_DRI3_FALSE
714BUILD_DRI3_TRUE
715BUILD_DRI2_FALSE
716BUILD_DRI2_TRUE
717BUILD_DPMS_FALSE
718BUILD_DPMS_TRUE
719BUILD_DBE_FALSE
720BUILD_DBE_TRUE
721BUILD_DAMAGE_FALSE
722BUILD_DAMAGE_TRUE
723BUILD_COMPOSITE_FALSE
724BUILD_COMPOSITE_TRUE
725xcbincludedir
726XCB_HAVE_WIN32_FALSE
727XCB_HAVE_WIN32_TRUE
728lt_enable_auto_import
729XCBPROTO_XCBPYTHONDIR
730XCBPROTO_VERSION
731XCBPROTO_XCBINCLUDEDIR
732NEEDED
733XDMCP_LIBS
734XDMCP_CFLAGS
735NEEDED_LIBS
736NEEDED_CFLAGS
737XCBPROTO_LIBS
738XCBPROTO_CFLAGS
739HTML_CHECK_RESULT
740XSLTPROC
741HAVE_CHECK_FALSE
742HAVE_CHECK_TRUE
743CHECK_LIBS
744CHECK_CFLAGS
745HAVE_DOXYGEN_FALSE
746HAVE_DOXYGEN_TRUE
747HAVE_DOT_FALSE
748HAVE_DOT_TRUE
749HAVE_DOT
750DOT
751DOXYGEN
752ENABLE_DEVEL_DOCS_FALSE
753ENABLE_DEVEL_DOCS_TRUE
754MAN_SUBSTS
755XORG_MAN_PAGE
756ADMIN_MAN_DIR
757DRIVER_MAN_DIR
758MISC_MAN_DIR
759FILE_MAN_DIR
760LIB_MAN_DIR
761APP_MAN_DIR
762ADMIN_MAN_SUFFIX
763DRIVER_MAN_SUFFIX
764MISC_MAN_SUFFIX
765FILE_MAN_SUFFIX
766LIB_MAN_SUFFIX
767APP_MAN_SUFFIX
768INSTALL_CMD
769PKG_CONFIG_LIBDIR
770PKG_CONFIG_PATH
771PKG_CONFIG
772CHANGELOG_CMD
773STRICT_CFLAGS
774CWARNFLAGS
775BASE_CFLAGS
776LT_SYS_LIBRARY_PATH
777OTOOL64
778OTOOL
779LIPO
780NMEDIT
781DSYMUTIL
782MANIFEST_TOOL
783RANLIB
784ac_ct_AR
785AR
786FILECMD
787LN_S
788NM
789ac_ct_DUMPBIN
790DUMPBIN
791LD
792FGREP
793EGREP
794GREP
795SED
796host_os
797host_vendor
798host_cpu
799host
800build_os
801build_vendor
802build_cpu
803build
804LIBTOOL
805OBJDUMP
806DLLTOOL
807AS
808am__fastdepCC_FALSE
809am__fastdepCC_TRUE
810CCDEPMODE
811am__nodep
812AMDEPBACKSLASH
813AMDEP_FALSE
814AMDEP_TRUE
815am__include
816DEPDIR
817OBJEXT
818EXEEXT
819ac_ct_CC
820CPPFLAGS
821LDFLAGS
822CFLAGS
823CC
824pkgpyexecdir
825pyexecdir
826pkgpythondir
827pythondir
828PYTHON_EXEC_PREFIX
829PYTHON_PREFIX
830PYTHON_PLATFORM
831PYTHON_VERSION
832PYTHON
833AM_BACKSLASH
834AM_DEFAULT_VERBOSITY
835AM_DEFAULT_V
836AM_V
837CSCOPE
838ETAGS
839CTAGS
840am__untar
841am__tar
842AMTAR
843am__leading_dot
844SET_MAKE
845AWK
846mkdir_p
847MKDIR_P
848INSTALL_STRIP_PROGRAM
849STRIP
850install_sh
851MAKEINFO
852AUTOHEADER
853AUTOMAKE
854AUTOCONF
855ACLOCAL
856VERSION
857PACKAGE
858CYGPATH_W
859am__isrc
860INSTALL_DATA
861INSTALL_SCRIPT
862INSTALL_PROGRAM
863target_alias
864host_alias
865build_alias
866LIBS
867ECHO_T
868ECHO_N
869ECHO_C
870DEFS
871mandir
872localedir
873libdir
874psdir
875pdfdir
876dvidir
877htmldir
878infodir
879docdir
880oldincludedir
881includedir
882runstatedir
883localstatedir
884sharedstatedir
885sysconfdir
886datadir
887datarootdir
888libexecdir
889sbindir
890bindir
891program_transform_name
892prefix
893exec_prefix
894PACKAGE_URL
895PACKAGE_BUGREPORT
896PACKAGE_STRING
897PACKAGE_VERSION
898PACKAGE_TARNAME
899PACKAGE_NAME
900PATH_SEPARATOR
901SHELL
902am__quote'
903ac_subst_files=''
904ac_user_opts='
905enable_option_checking
906enable_silent_rules
907with_python_sys_prefix
908with_python_prefix
909with_python_exec_prefix
910enable_dependency_tracking
911enable_largefile
912enable_shared
913enable_static
914with_pic
915enable_fast_install
916with_aix_soname
917with_gnu_ld
918with_sysroot
919enable_libtool_lock
920enable_selective_werror
921enable_strict_compilation
922enable_devel_docs
923with_doxygen
924with_queue_size
925enable_composite
926enable_damage
927enable_dbe
928enable_dpms
929enable_dri2
930enable_dri3
931enable_ge
932enable_glx
933enable_present
934enable_randr
935enable_record
936enable_render
937enable_resource
938enable_screensaver
939enable_shape
940enable_shm
941enable_sync
942enable_xevie
943enable_xfixes
944enable_xfree86_dri
945enable_xinerama
946enable_xinput
947enable_xkb
948enable_xprint
949enable_selinux
950enable_xtest
951enable_xv
952enable_xvmc
953with_serverside_support
954'
955      ac_precious_vars='build_alias
956host_alias
957target_alias
958PYTHON
959CC
960CFLAGS
961LDFLAGS
962LIBS
963CPPFLAGS
964LT_SYS_LIBRARY_PATH
965PKG_CONFIG
966PKG_CONFIG_PATH
967PKG_CONFIG_LIBDIR
968DOXYGEN
969DOT
970CHECK_CFLAGS
971CHECK_LIBS
972XCBPROTO_CFLAGS
973XCBPROTO_LIBS
974NEEDED_CFLAGS
975NEEDED_LIBS
976XDMCP_CFLAGS
977XDMCP_LIBS'
978
979
980# Initialize some variables set by options.
981ac_init_help=
982ac_init_version=false
983ac_unrecognized_opts=
984ac_unrecognized_sep=
985# The variables have the same names as the options, with
986# dashes changed to underlines.
987cache_file=/dev/null
988exec_prefix=NONE
989no_create=
990no_recursion=
991prefix=NONE
992program_prefix=NONE
993program_suffix=NONE
994program_transform_name=s,x,x,
995silent=
996site=
997srcdir=
998verbose=
999x_includes=NONE
1000x_libraries=NONE
1001
1002# Installation directory options.
1003# These are left unexpanded so users can "make install exec_prefix=/foo"
1004# and all the variables that are supposed to be based on exec_prefix
1005# by default will actually change.
1006# Use braces instead of parens because sh, perl, etc. also accept them.
1007# (The list follows the same order as the GNU Coding Standards.)
1008bindir='${exec_prefix}/bin'
1009sbindir='${exec_prefix}/sbin'
1010libexecdir='${exec_prefix}/libexec'
1011datarootdir='${prefix}/share'
1012datadir='${datarootdir}'
1013sysconfdir='${prefix}/etc'
1014sharedstatedir='${prefix}/com'
1015localstatedir='${prefix}/var'
1016runstatedir='${localstatedir}/run'
1017includedir='${prefix}/include'
1018oldincludedir='/usr/include'
1019docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1020infodir='${datarootdir}/info'
1021htmldir='${docdir}'
1022dvidir='${docdir}'
1023pdfdir='${docdir}'
1024psdir='${docdir}'
1025libdir='${exec_prefix}/lib'
1026localedir='${datarootdir}/locale'
1027mandir='${datarootdir}/man'
1028
1029ac_prev=
1030ac_dashdash=
1031for ac_option
1032do
1033  # If the previous option needs an argument, assign it.
1034  if test -n "$ac_prev"; then
1035    eval $ac_prev=\$ac_option
1036    ac_prev=
1037    continue
1038  fi
1039
1040  case $ac_option in
1041  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042  *=)   ac_optarg= ;;
1043  *)    ac_optarg=yes ;;
1044  esac
1045
1046  case $ac_dashdash$ac_option in
1047  --)
1048    ac_dashdash=yes ;;
1049
1050  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051    ac_prev=bindir ;;
1052  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053    bindir=$ac_optarg ;;
1054
1055  -build | --build | --buil | --bui | --bu)
1056    ac_prev=build_alias ;;
1057  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058    build_alias=$ac_optarg ;;
1059
1060  -cache-file | --cache-file | --cache-fil | --cache-fi \
1061  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062    ac_prev=cache_file ;;
1063  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065    cache_file=$ac_optarg ;;
1066
1067  --config-cache | -C)
1068    cache_file=config.cache ;;
1069
1070  -datadir | --datadir | --datadi | --datad)
1071    ac_prev=datadir ;;
1072  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073    datadir=$ac_optarg ;;
1074
1075  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076  | --dataroo | --dataro | --datar)
1077    ac_prev=datarootdir ;;
1078  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080    datarootdir=$ac_optarg ;;
1081
1082  -disable-* | --disable-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"enable_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval enable_$ac_useropt=no ;;
1097
1098  -docdir | --docdir | --docdi | --doc | --do)
1099    ac_prev=docdir ;;
1100  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101    docdir=$ac_optarg ;;
1102
1103  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104    ac_prev=dvidir ;;
1105  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106    dvidir=$ac_optarg ;;
1107
1108  -enable-* | --enable-*)
1109    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110    # Reject names that are not valid shell variable names.
1111    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1113    ac_useropt_orig=$ac_useropt
1114    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1115    case $ac_user_opts in
1116      *"
1117"enable_$ac_useropt"
1118"*) ;;
1119      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120	 ac_unrecognized_sep=', ';;
1121    esac
1122    eval enable_$ac_useropt=\$ac_optarg ;;
1123
1124  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126  | --exec | --exe | --ex)
1127    ac_prev=exec_prefix ;;
1128  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130  | --exec=* | --exe=* | --ex=*)
1131    exec_prefix=$ac_optarg ;;
1132
1133  -gas | --gas | --ga | --g)
1134    # Obsolete; use --with-gas.
1135    with_gas=yes ;;
1136
1137  -help | --help | --hel | --he | -h)
1138    ac_init_help=long ;;
1139  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140    ac_init_help=recursive ;;
1141  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142    ac_init_help=short ;;
1143
1144  -host | --host | --hos | --ho)
1145    ac_prev=host_alias ;;
1146  -host=* | --host=* | --hos=* | --ho=*)
1147    host_alias=$ac_optarg ;;
1148
1149  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150    ac_prev=htmldir ;;
1151  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152  | --ht=*)
1153    htmldir=$ac_optarg ;;
1154
1155  -includedir | --includedir | --includedi | --included | --include \
1156  | --includ | --inclu | --incl | --inc)
1157    ac_prev=includedir ;;
1158  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159  | --includ=* | --inclu=* | --incl=* | --inc=*)
1160    includedir=$ac_optarg ;;
1161
1162  -infodir | --infodir | --infodi | --infod | --info | --inf)
1163    ac_prev=infodir ;;
1164  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165    infodir=$ac_optarg ;;
1166
1167  -libdir | --libdir | --libdi | --libd)
1168    ac_prev=libdir ;;
1169  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170    libdir=$ac_optarg ;;
1171
1172  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173  | --libexe | --libex | --libe)
1174    ac_prev=libexecdir ;;
1175  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176  | --libexe=* | --libex=* | --libe=*)
1177    libexecdir=$ac_optarg ;;
1178
1179  -localedir | --localedir | --localedi | --localed | --locale)
1180    ac_prev=localedir ;;
1181  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182    localedir=$ac_optarg ;;
1183
1184  -localstatedir | --localstatedir | --localstatedi | --localstated \
1185  | --localstate | --localstat | --localsta | --localst | --locals)
1186    ac_prev=localstatedir ;;
1187  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189    localstatedir=$ac_optarg ;;
1190
1191  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192    ac_prev=mandir ;;
1193  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194    mandir=$ac_optarg ;;
1195
1196  -nfp | --nfp | --nf)
1197    # Obsolete; use --without-fp.
1198    with_fp=no ;;
1199
1200  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201  | --no-cr | --no-c | -n)
1202    no_create=yes ;;
1203
1204  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206    no_recursion=yes ;;
1207
1208  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210  | --oldin | --oldi | --old | --ol | --o)
1211    ac_prev=oldincludedir ;;
1212  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215    oldincludedir=$ac_optarg ;;
1216
1217  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218    ac_prev=prefix ;;
1219  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220    prefix=$ac_optarg ;;
1221
1222  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223  | --program-pre | --program-pr | --program-p)
1224    ac_prev=program_prefix ;;
1225  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227    program_prefix=$ac_optarg ;;
1228
1229  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230  | --program-suf | --program-su | --program-s)
1231    ac_prev=program_suffix ;;
1232  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234    program_suffix=$ac_optarg ;;
1235
1236  -program-transform-name | --program-transform-name \
1237  | --program-transform-nam | --program-transform-na \
1238  | --program-transform-n | --program-transform- \
1239  | --program-transform | --program-transfor \
1240  | --program-transfo | --program-transf \
1241  | --program-trans | --program-tran \
1242  | --progr-tra | --program-tr | --program-t)
1243    ac_prev=program_transform_name ;;
1244  -program-transform-name=* | --program-transform-name=* \
1245  | --program-transform-nam=* | --program-transform-na=* \
1246  | --program-transform-n=* | --program-transform-=* \
1247  | --program-transform=* | --program-transfor=* \
1248  | --program-transfo=* | --program-transf=* \
1249  | --program-trans=* | --program-tran=* \
1250  | --progr-tra=* | --program-tr=* | --program-t=*)
1251    program_transform_name=$ac_optarg ;;
1252
1253  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254    ac_prev=pdfdir ;;
1255  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256    pdfdir=$ac_optarg ;;
1257
1258  -psdir | --psdir | --psdi | --psd | --ps)
1259    ac_prev=psdir ;;
1260  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261    psdir=$ac_optarg ;;
1262
1263  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264  | -silent | --silent | --silen | --sile | --sil)
1265    silent=yes ;;
1266
1267  -runstatedir | --runstatedir | --runstatedi | --runstated \
1268  | --runstate | --runstat | --runsta | --runst | --runs \
1269  | --run | --ru | --r)
1270    ac_prev=runstatedir ;;
1271  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1272  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1273  | --run=* | --ru=* | --r=*)
1274    runstatedir=$ac_optarg ;;
1275
1276  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1277    ac_prev=sbindir ;;
1278  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1279  | --sbi=* | --sb=*)
1280    sbindir=$ac_optarg ;;
1281
1282  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1283  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1284  | --sharedst | --shareds | --shared | --share | --shar \
1285  | --sha | --sh)
1286    ac_prev=sharedstatedir ;;
1287  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1288  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1289  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1290  | --sha=* | --sh=*)
1291    sharedstatedir=$ac_optarg ;;
1292
1293  -site | --site | --sit)
1294    ac_prev=site ;;
1295  -site=* | --site=* | --sit=*)
1296    site=$ac_optarg ;;
1297
1298  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1299    ac_prev=srcdir ;;
1300  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1301    srcdir=$ac_optarg ;;
1302
1303  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1304  | --syscon | --sysco | --sysc | --sys | --sy)
1305    ac_prev=sysconfdir ;;
1306  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1307  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1308    sysconfdir=$ac_optarg ;;
1309
1310  -target | --target | --targe | --targ | --tar | --ta | --t)
1311    ac_prev=target_alias ;;
1312  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1313    target_alias=$ac_optarg ;;
1314
1315  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1316    verbose=yes ;;
1317
1318  -version | --version | --versio | --versi | --vers | -V)
1319    ac_init_version=: ;;
1320
1321  -with-* | --with-*)
1322    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1323    # Reject names that are not valid shell variable names.
1324    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1325      as_fn_error $? "invalid package name: \`$ac_useropt'"
1326    ac_useropt_orig=$ac_useropt
1327    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1328    case $ac_user_opts in
1329      *"
1330"with_$ac_useropt"
1331"*) ;;
1332      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1333	 ac_unrecognized_sep=', ';;
1334    esac
1335    eval with_$ac_useropt=\$ac_optarg ;;
1336
1337  -without-* | --without-*)
1338    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1339    # Reject names that are not valid shell variable names.
1340    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341      as_fn_error $? "invalid package name: \`$ac_useropt'"
1342    ac_useropt_orig=$ac_useropt
1343    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1344    case $ac_user_opts in
1345      *"
1346"with_$ac_useropt"
1347"*) ;;
1348      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1349	 ac_unrecognized_sep=', ';;
1350    esac
1351    eval with_$ac_useropt=no ;;
1352
1353  --x)
1354    # Obsolete; use --with-x.
1355    with_x=yes ;;
1356
1357  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1358  | --x-incl | --x-inc | --x-in | --x-i)
1359    ac_prev=x_includes ;;
1360  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1361  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1362    x_includes=$ac_optarg ;;
1363
1364  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1365  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1366    ac_prev=x_libraries ;;
1367  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1368  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1369    x_libraries=$ac_optarg ;;
1370
1371  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1372Try \`$0 --help' for more information"
1373    ;;
1374
1375  *=*)
1376    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1377    # Reject names that are not valid shell variable names.
1378    case $ac_envvar in #(
1379      '' | [0-9]* | *[!_$as_cr_alnum]* )
1380      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1381    esac
1382    eval $ac_envvar=\$ac_optarg
1383    export $ac_envvar ;;
1384
1385  *)
1386    # FIXME: should be removed in autoconf 3.0.
1387    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1388    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1389      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1390    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1391    ;;
1392
1393  esac
1394done
1395
1396if test -n "$ac_prev"; then
1397  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1398  as_fn_error $? "missing argument to $ac_option"
1399fi
1400
1401if test -n "$ac_unrecognized_opts"; then
1402  case $enable_option_checking in
1403    no) ;;
1404    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1405    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1406  esac
1407fi
1408
1409# Check all directory arguments for consistency.
1410for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1411		datadir sysconfdir sharedstatedir localstatedir includedir \
1412		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1413		libdir localedir mandir runstatedir
1414do
1415  eval ac_val=\$$ac_var
1416  # Remove trailing slashes.
1417  case $ac_val in
1418    */ )
1419      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1420      eval $ac_var=\$ac_val;;
1421  esac
1422  # Be sure to have absolute directory names.
1423  case $ac_val in
1424    [\\/$]* | ?:[\\/]* )  continue;;
1425    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1426  esac
1427  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1428done
1429
1430# There might be people who depend on the old broken behavior: `$host'
1431# used to hold the argument of --host etc.
1432# FIXME: To remove some day.
1433build=$build_alias
1434host=$host_alias
1435target=$target_alias
1436
1437# FIXME: To remove some day.
1438if test "x$host_alias" != x; then
1439  if test "x$build_alias" = x; then
1440    cross_compiling=maybe
1441  elif test "x$build_alias" != "x$host_alias"; then
1442    cross_compiling=yes
1443  fi
1444fi
1445
1446ac_tool_prefix=
1447test -n "$host_alias" && ac_tool_prefix=$host_alias-
1448
1449test "$silent" = yes && exec 6>/dev/null
1450
1451
1452ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453ac_ls_di=`ls -di .` &&
1454ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455  as_fn_error $? "working directory cannot be determined"
1456test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457  as_fn_error $? "pwd does not report name of working directory"
1458
1459
1460# Find the source files, if location was not specified.
1461if test -z "$srcdir"; then
1462  ac_srcdir_defaulted=yes
1463  # Try the directory containing this script, then the parent directory.
1464  ac_confdir=`$as_dirname -- "$as_myself" ||
1465$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466	 X"$as_myself" : 'X\(//\)[^/]' \| \
1467	 X"$as_myself" : 'X\(//\)$' \| \
1468	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469printf "%s\n" X"$as_myself" |
1470    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1471	    s//\1/
1472	    q
1473	  }
1474	  /^X\(\/\/\)[^/].*/{
1475	    s//\1/
1476	    q
1477	  }
1478	  /^X\(\/\/\)$/{
1479	    s//\1/
1480	    q
1481	  }
1482	  /^X\(\/\).*/{
1483	    s//\1/
1484	    q
1485	  }
1486	  s/.*/./; q'`
1487  srcdir=$ac_confdir
1488  if test ! -r "$srcdir/$ac_unique_file"; then
1489    srcdir=..
1490  fi
1491else
1492  ac_srcdir_defaulted=no
1493fi
1494if test ! -r "$srcdir/$ac_unique_file"; then
1495  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1496  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1497fi
1498ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499ac_abs_confdir=`(
1500	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1501	pwd)`
1502# When building in place, set srcdir=.
1503if test "$ac_abs_confdir" = "$ac_pwd"; then
1504  srcdir=.
1505fi
1506# Remove unnecessary trailing slashes from srcdir.
1507# Double slashes in file names in object file debugging info
1508# mess up M-x gdb in Emacs.
1509case $srcdir in
1510*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1511esac
1512for ac_var in $ac_precious_vars; do
1513  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514  eval ac_env_${ac_var}_value=\$${ac_var}
1515  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1517done
1518
1519#
1520# Report the --help message.
1521#
1522if test "$ac_init_help" = "long"; then
1523  # Omit some internal or obsolete options to make the list less imposing.
1524  # This message is too long to be a string in the A/UX 3.1 sh.
1525  cat <<_ACEOF
1526\`configure' configures libxcb 1.17.0 to adapt to many kinds of systems.
1527
1528Usage: $0 [OPTION]... [VAR=VALUE]...
1529
1530To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531VAR=VALUE.  See below for descriptions of some of the useful variables.
1532
1533Defaults for the options are specified in brackets.
1534
1535Configuration:
1536  -h, --help              display this help and exit
1537      --help=short        display options specific to this package
1538      --help=recursive    display the short help of all the included packages
1539  -V, --version           display version information and exit
1540  -q, --quiet, --silent   do not print \`checking ...' messages
1541      --cache-file=FILE   cache test results in FILE [disabled]
1542  -C, --config-cache      alias for \`--cache-file=config.cache'
1543  -n, --no-create         do not create output files
1544      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1545
1546Installation directories:
1547  --prefix=PREFIX         install architecture-independent files in PREFIX
1548                          [$ac_default_prefix]
1549  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1550                          [PREFIX]
1551
1552By default, \`make install' will install all the files in
1553\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1554an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555for instance \`--prefix=\$HOME'.
1556
1557For better control, use the options below.
1558
1559Fine tuning of the installation directories:
1560  --bindir=DIR            user executables [EPREFIX/bin]
1561  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1562  --libexecdir=DIR        program executables [EPREFIX/libexec]
1563  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1564  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1565  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1566  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1567  --libdir=DIR            object code libraries [EPREFIX/lib]
1568  --includedir=DIR        C header files [PREFIX/include]
1569  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1570  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1571  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1572  --infodir=DIR           info documentation [DATAROOTDIR/info]
1573  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1574  --mandir=DIR            man documentation [DATAROOTDIR/man]
1575  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxcb]
1576  --htmldir=DIR           html documentation [DOCDIR]
1577  --dvidir=DIR            dvi documentation [DOCDIR]
1578  --pdfdir=DIR            pdf documentation [DOCDIR]
1579  --psdir=DIR             ps documentation [DOCDIR]
1580_ACEOF
1581
1582  cat <<\_ACEOF
1583
1584Program names:
1585  --program-prefix=PREFIX            prepend PREFIX to installed program names
1586  --program-suffix=SUFFIX            append SUFFIX to installed program names
1587  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1588
1589System types:
1590  --build=BUILD     configure for building on BUILD [guessed]
1591  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1592_ACEOF
1593fi
1594
1595if test -n "$ac_init_help"; then
1596  case $ac_init_help in
1597     short | recursive ) echo "Configuration of libxcb 1.17.0:";;
1598   esac
1599  cat <<\_ACEOF
1600
1601Optional Features:
1602  --disable-option-checking  ignore unrecognized --enable/--with options
1603  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1604  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1605  --enable-silent-rules   less verbose build output (undo: "make V=1")
1606  --disable-silent-rules  verbose build output (undo: "make V=0")
1607  --enable-dependency-tracking
1608                          do not reject slow dependency extractors
1609  --disable-dependency-tracking
1610                          speeds up one-time build
1611  --disable-largefile     omit support for large files
1612  --enable-shared[=PKGS]  build shared libraries [default=yes]
1613  --enable-static[=PKGS]  build static libraries [default=yes]
1614  --enable-fast-install[=PKGS]
1615                          optimize for fast installation [default=yes]
1616  --disable-libtool-lock  avoid locking (might break parallel builds)
1617  --disable-selective-werror
1618                          Turn off selective compiler errors. (default:
1619                          enabled)
1620  --enable-strict-compilation
1621                          Enable all warnings from compiler and make them
1622                          errors (default: disabled)
1623  --enable-devel-docs     Enable building the developer documentation
1624                          (default: yes)
1625  --enable-composite      Build XCB Composite Extension (default: yes)
1626  --enable-damage         Build XCB Damage Extension (default: yes)
1627  --enable-dbe            Build XCB Dbe Extension (default: yes)
1628  --enable-dpms           Build XCB DPMS Extension (default: yes)
1629  --enable-dri2           Build XCB DRI2 Extension (default: yes)
1630  --enable-dri3           Build XCB DRI3 Extension (default: auto)
1631  --enable-ge             Build XCB GE Extension (default: no)
1632  --enable-glx            Build XCB GLX Extension (default: yes)
1633  --enable-present        Build XCB Present Extension (default: yes)
1634  --enable-randr          Build XCB RandR Extension (default: yes)
1635  --enable-record         Build XCB Record Extension (default: yes)
1636  --enable-render         Build XCB Render Extension (default: yes)
1637  --enable-resource       Build XCB Resource Extension (default: yes)
1638  --enable-screensaver    Build XCB Screensaver Extension (default: yes)
1639  --enable-shape          Build XCB Shape Extension (default: yes)
1640  --enable-shm            Build XCB Shm Extension (default: yes)
1641  --enable-sync           Build XCB Sync Extension (default: yes)
1642  --enable-xevie          Build XCB Xevie Extension (default: no)
1643  --enable-xfixes         Build XCB XFixes Extension (default: yes)
1644  --enable-xfree86-dri    Build XCB XFree86-DRI Extension (default: yes)
1645  --enable-xinerama       Build XCB Xinerama Extension (default: yes)
1646  --enable-xinput         Build XCB XInput Extension (default: yes)
1647  --enable-xkb            Build XCB XKB Extension (default: yes)
1648  --enable-xprint         Build XCB Xprint Extension (default: no)
1649  --enable-selinux        Build XCB SELinux Extension (default: no)
1650  --enable-xtest          Build XCB XTest Extension (default: yes)
1651  --enable-xv             Build XCB Xv Extension (default: yes)
1652  --enable-xvmc           Build XCB XvMC Extension (default: yes)
1653
1654Optional Packages:
1655  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1656  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1657  --with-python-sys-prefix
1658                          use Python's sys.prefix and sys.exec_prefix values
1659  --with-python_prefix    override the default PYTHON_PREFIX
1660  --with-python_exec_prefix
1661                          override the default PYTHON_EXEC_PREFIX
1662  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1663                          both]
1664  --with-aix-soname=aix|svr4|both
1665                          shared library versioning (aka "SONAME") variant to
1666                          provide on AIX, [default=aix].
1667  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1668  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1669                          compiler's sysroot if not specified).
1670  --with-doxygen          Use doxygen to regenerate documentation (default:
1671                          auto)
1672  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
1673  --with-serverside-support
1674                          Build with support for server-side usage of xcb.
1675                          This is still EXPERIMENTAL! ABI/API may change!
1676                          (default: no)
1677
1678Some influential environment variables:
1679  PYTHON      the Python interpreter
1680  CC          C compiler command
1681  CFLAGS      C compiler flags
1682  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1683              nonstandard directory <lib dir>
1684  LIBS        libraries to pass to the linker, e.g. -l<library>
1685  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1686              you have headers in a nonstandard directory <include dir>
1687  LT_SYS_LIBRARY_PATH
1688              User-defined run-time library search path.
1689  PKG_CONFIG  path to pkg-config utility
1690  PKG_CONFIG_PATH
1691              directories to add to pkg-config's search path
1692  PKG_CONFIG_LIBDIR
1693              path overriding pkg-config's built-in search path
1694  DOXYGEN     Path to doxygen command
1695  DOT         Path to the dot graphics utility
1696  CHECK_CFLAGS
1697              C compiler flags for CHECK, overriding pkg-config
1698  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1699  XCBPROTO_CFLAGS
1700              C compiler flags for XCBPROTO, overriding pkg-config
1701  XCBPROTO_LIBS
1702              linker flags for XCBPROTO, overriding pkg-config
1703  NEEDED_CFLAGS
1704              C compiler flags for NEEDED, overriding pkg-config
1705  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1706  XDMCP_CFLAGS
1707              C compiler flags for XDMCP, overriding pkg-config
1708  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1709
1710Use these variables to override the choices made by `configure' or to help
1711it to find libraries and programs with nonstandard names/locations.
1712
1713Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues>.
1714_ACEOF
1715ac_status=$?
1716fi
1717
1718if test "$ac_init_help" = "recursive"; then
1719  # If there are subdirs, report their specific --help.
1720  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721    test -d "$ac_dir" ||
1722      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723      continue
1724    ac_builddir=.
1725
1726case "$ac_dir" in
1727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728*)
1729  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1730  # A ".." for each directory in $ac_dir_suffix.
1731  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732  case $ac_top_builddir_sub in
1733  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735  esac ;;
1736esac
1737ac_abs_top_builddir=$ac_pwd
1738ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739# for backward compatibility:
1740ac_top_builddir=$ac_top_build_prefix
1741
1742case $srcdir in
1743  .)  # We are building in place.
1744    ac_srcdir=.
1745    ac_top_srcdir=$ac_top_builddir_sub
1746    ac_abs_top_srcdir=$ac_pwd ;;
1747  [\\/]* | ?:[\\/]* )  # Absolute name.
1748    ac_srcdir=$srcdir$ac_dir_suffix;
1749    ac_top_srcdir=$srcdir
1750    ac_abs_top_srcdir=$srcdir ;;
1751  *) # Relative name.
1752    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753    ac_top_srcdir=$ac_top_build_prefix$srcdir
1754    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755esac
1756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758    cd "$ac_dir" || { ac_status=$?; continue; }
1759    # Check for configure.gnu first; this name is used for a wrapper for
1760    # Metaconfig's "Configure" on case-insensitive file systems.
1761    if test -f "$ac_srcdir/configure.gnu"; then
1762      echo &&
1763      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764    elif test -f "$ac_srcdir/configure"; then
1765      echo &&
1766      $SHELL "$ac_srcdir/configure" --help=recursive
1767    else
1768      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1769    fi || ac_status=$?
1770    cd "$ac_pwd" || { ac_status=$?; break; }
1771  done
1772fi
1773
1774test -n "$ac_init_help" && exit $ac_status
1775if $ac_init_version; then
1776  cat <<\_ACEOF
1777libxcb configure 1.17.0
1778generated by GNU Autoconf 2.71
1779
1780Copyright (C) 2021 Free Software Foundation, Inc.
1781This configure script is free software; the Free Software Foundation
1782gives unlimited permission to copy, distribute and modify it.
1783_ACEOF
1784  exit
1785fi
1786
1787## ------------------------ ##
1788## Autoconf initialization. ##
1789## ------------------------ ##
1790
1791# ac_fn_c_try_compile LINENO
1792# --------------------------
1793# Try to compile conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_compile ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext conftest.beam
1798  if { { ac_try="$ac_compile"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804printf "%s\n" "$ac_try_echo"; } >&5
1805  (eval "$ac_compile") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814	 test -z "$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       } && test -s conftest.$ac_objext
1817then :
1818  ac_retval=0
1819else $as_nop
1820  printf "%s\n" "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
1822
1823	ac_retval=1
1824fi
1825  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_compile
1829
1830# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831# -------------------------------------------------------
1832# Tests whether HEADER exists and can be compiled using the include files in
1833# INCLUDES, setting the cache variable VAR accordingly.
1834ac_fn_c_check_header_compile ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838printf %s "checking for $2... " >&6; }
1839if eval test \${$3+y}
1840then :
1841  printf %s "(cached) " >&6
1842else $as_nop
1843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845$4
1846#include <$2>
1847_ACEOF
1848if ac_fn_c_try_compile "$LINENO"
1849then :
1850  eval "$3=yes"
1851else $as_nop
1852  eval "$3=no"
1853fi
1854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1855fi
1856eval ac_res=\$$3
1857	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858printf "%s\n" "$ac_res" >&6; }
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861} # ac_fn_c_check_header_compile
1862
1863# ac_fn_c_try_link LINENO
1864# -----------------------
1865# Try to link conftest.$ac_ext, and return whether this succeeded.
1866ac_fn_c_try_link ()
1867{
1868  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1870  if { { ac_try="$ac_link"
1871case "(($ac_try" in
1872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873  *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876printf "%s\n" "$ac_try_echo"; } >&5
1877  (eval "$ac_link") 2>conftest.err
1878  ac_status=$?
1879  if test -s conftest.err; then
1880    grep -v '^ *+' conftest.err >conftest.er1
1881    cat conftest.er1 >&5
1882    mv -f conftest.er1 conftest.err
1883  fi
1884  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; } && {
1886	 test -z "$ac_c_werror_flag" ||
1887	 test ! -s conftest.err
1888       } && test -s conftest$ac_exeext && {
1889	 test "$cross_compiling" = yes ||
1890	 test -x conftest$ac_exeext
1891       }
1892then :
1893  ac_retval=0
1894else $as_nop
1895  printf "%s\n" "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898	ac_retval=1
1899fi
1900  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1901  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1902  # interfere with the next link command; also delete a directory that is
1903  # left behind by Apple's compiler.  We do this before executing the actions.
1904  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906  as_fn_set_status $ac_retval
1907
1908} # ac_fn_c_try_link
1909
1910# ac_fn_c_check_func LINENO FUNC VAR
1911# ----------------------------------
1912# Tests whether FUNC exists, setting the cache variable VAR accordingly
1913ac_fn_c_check_func ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917printf %s "checking for $2... " >&6; }
1918if eval test \${$3+y}
1919then :
1920  printf %s "(cached) " >&6
1921else $as_nop
1922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926#define $2 innocuous_$2
1927
1928/* System header to define __stub macros and hopefully few prototypes,
1929   which can conflict with char $2 (void); below.  */
1930
1931#include <limits.h>
1932#undef $2
1933
1934/* Override any GCC internal prototype to avoid an error.
1935   Use char because int might match the return type of a GCC
1936   builtin and then its argument prototype would still apply.  */
1937#ifdef __cplusplus
1938extern "C"
1939#endif
1940char $2 (void);
1941/* The GNU C library defines this for functions which it implements
1942    to always fail with ENOSYS.  Some functions are actually named
1943    something starting with __ and the normal name is an alias.  */
1944#if defined __stub_$2 || defined __stub___$2
1945choke me
1946#endif
1947
1948int
1949main (void)
1950{
1951return $2 ();
1952  ;
1953  return 0;
1954}
1955_ACEOF
1956if ac_fn_c_try_link "$LINENO"
1957then :
1958  eval "$3=yes"
1959else $as_nop
1960  eval "$3=no"
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.beam \
1963    conftest$ac_exeext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967printf "%s\n" "$ac_res" >&6; }
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_c_check_func
1971
1972# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1973# ------------------------------------------------------------------
1974# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1975# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1976ac_fn_check_decl ()
1977{
1978  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979  as_decl_name=`echo $2|sed 's/ *(.*//'`
1980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1981printf %s "checking whether $as_decl_name is declared... " >&6; }
1982if eval test \${$3+y}
1983then :
1984  printf %s "(cached) " >&6
1985else $as_nop
1986  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1987  eval ac_save_FLAGS=\$$6
1988  as_fn_append $6 " $5"
1989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990/* end confdefs.h.  */
1991$4
1992int
1993main (void)
1994{
1995#ifndef $as_decl_name
1996#ifdef __cplusplus
1997  (void) $as_decl_use;
1998#else
1999  (void) $as_decl_name;
2000#endif
2001#endif
2002
2003  ;
2004  return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"
2008then :
2009  eval "$3=yes"
2010else $as_nop
2011  eval "$3=no"
2012fi
2013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2014  eval $6=\$ac_save_FLAGS
2015
2016fi
2017eval ac_res=\$$3
2018	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019printf "%s\n" "$ac_res" >&6; }
2020  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2021
2022} # ac_fn_check_decl
2023
2024# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2025# ----------------------------------------------------
2026# Tries to find if the field MEMBER exists in type AGGR, after including
2027# INCLUDES, setting cache variable VAR accordingly.
2028ac_fn_c_check_member ()
2029{
2030  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2032printf %s "checking for $2.$3... " >&6; }
2033if eval test \${$4+y}
2034then :
2035  printf %s "(cached) " >&6
2036else $as_nop
2037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$5
2040int
2041main (void)
2042{
2043static $2 ac_aggr;
2044if (ac_aggr.$3)
2045return 0;
2046  ;
2047  return 0;
2048}
2049_ACEOF
2050if ac_fn_c_try_compile "$LINENO"
2051then :
2052  eval "$4=yes"
2053else $as_nop
2054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h.  */
2056$5
2057int
2058main (void)
2059{
2060static $2 ac_aggr;
2061if (sizeof ac_aggr.$3)
2062return 0;
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"
2068then :
2069  eval "$4=yes"
2070else $as_nop
2071  eval "$4=no"
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2076fi
2077eval ac_res=\$$4
2078	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079printf "%s\n" "$ac_res" >&6; }
2080  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082} # ac_fn_c_check_member
2083ac_configure_args_raw=
2084for ac_arg
2085do
2086  case $ac_arg in
2087  *\'*)
2088    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2089  esac
2090  as_fn_append ac_configure_args_raw " '$ac_arg'"
2091done
2092
2093case $ac_configure_args_raw in
2094  *$as_nl*)
2095    ac_safe_unquote= ;;
2096  *)
2097    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2098    ac_unsafe_a="$ac_unsafe_z#~"
2099    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2100    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2101esac
2102
2103cat >config.log <<_ACEOF
2104This file contains any messages produced by compilers while
2105running configure, to aid debugging if configure makes a mistake.
2106
2107It was created by libxcb $as_me 1.17.0, which was
2108generated by GNU Autoconf 2.71.  Invocation command line was
2109
2110  $ $0$ac_configure_args_raw
2111
2112_ACEOF
2113exec 5>>config.log
2114{
2115cat <<_ASUNAME
2116## --------- ##
2117## Platform. ##
2118## --------- ##
2119
2120hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2121uname -m = `(uname -m) 2>/dev/null || echo unknown`
2122uname -r = `(uname -r) 2>/dev/null || echo unknown`
2123uname -s = `(uname -s) 2>/dev/null || echo unknown`
2124uname -v = `(uname -v) 2>/dev/null || echo unknown`
2125
2126/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2127/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2128
2129/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2130/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2131/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2132/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2133/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2134/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2135/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2136
2137_ASUNAME
2138
2139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140for as_dir in $PATH
2141do
2142  IFS=$as_save_IFS
2143  case $as_dir in #(((
2144    '') as_dir=./ ;;
2145    */) ;;
2146    *) as_dir=$as_dir/ ;;
2147  esac
2148    printf "%s\n" "PATH: $as_dir"
2149  done
2150IFS=$as_save_IFS
2151
2152} >&5
2153
2154cat >&5 <<_ACEOF
2155
2156
2157## ----------- ##
2158## Core tests. ##
2159## ----------- ##
2160
2161_ACEOF
2162
2163
2164# Keep a trace of the command line.
2165# Strip out --no-create and --no-recursion so they do not pile up.
2166# Strip out --silent because we don't want to record it for future runs.
2167# Also quote any args containing shell meta-characters.
2168# Make two passes to allow for proper duplicate-argument suppression.
2169ac_configure_args=
2170ac_configure_args0=
2171ac_configure_args1=
2172ac_must_keep_next=false
2173for ac_pass in 1 2
2174do
2175  for ac_arg
2176  do
2177    case $ac_arg in
2178    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180    | -silent | --silent | --silen | --sile | --sil)
2181      continue ;;
2182    *\'*)
2183      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184    esac
2185    case $ac_pass in
2186    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2187    2)
2188      as_fn_append ac_configure_args1 " '$ac_arg'"
2189      if test $ac_must_keep_next = true; then
2190	ac_must_keep_next=false # Got value, back to normal.
2191      else
2192	case $ac_arg in
2193	  *=* | --config-cache | -C | -disable-* | --disable-* \
2194	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196	  | -with-* | --with-* | -without-* | --without-* | --x)
2197	    case "$ac_configure_args0 " in
2198	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199	    esac
2200	    ;;
2201	  -* ) ac_must_keep_next=true ;;
2202	esac
2203      fi
2204      as_fn_append ac_configure_args " '$ac_arg'"
2205      ;;
2206    esac
2207  done
2208done
2209{ ac_configure_args0=; unset ac_configure_args0;}
2210{ ac_configure_args1=; unset ac_configure_args1;}
2211
2212# When interrupted or exit'd, cleanup temporary files, and complete
2213# config.log.  We remove comments because anyway the quotes in there
2214# would cause problems or look ugly.
2215# WARNING: Use '\'' to represent an apostrophe within the trap.
2216# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217trap 'exit_status=$?
2218  # Sanitize IFS.
2219  IFS=" ""	$as_nl"
2220  # Save into config.log some information that might help in debugging.
2221  {
2222    echo
2223
2224    printf "%s\n" "## ---------------- ##
2225## Cache variables. ##
2226## ---------------- ##"
2227    echo
2228    # The following way of writing the cache mishandles newlines in values,
2229(
2230  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231    eval ac_val=\$$ac_var
2232    case $ac_val in #(
2233    *${as_nl}*)
2234      case $ac_var in #(
2235      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237      esac
2238      case $ac_var in #(
2239      _ | IFS | as_nl) ;; #(
2240      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241      *) { eval $ac_var=; unset $ac_var;} ;;
2242      esac ;;
2243    esac
2244  done
2245  (set) 2>&1 |
2246    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247    *${as_nl}ac_space=\ *)
2248      sed -n \
2249	"s/'\''/'\''\\\\'\'''\''/g;
2250	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251      ;; #(
2252    *)
2253      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2254      ;;
2255    esac |
2256    sort
2257)
2258    echo
2259
2260    printf "%s\n" "## ----------------- ##
2261## Output variables. ##
2262## ----------------- ##"
2263    echo
2264    for ac_var in $ac_subst_vars
2265    do
2266      eval ac_val=\$$ac_var
2267      case $ac_val in
2268      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2269      esac
2270      printf "%s\n" "$ac_var='\''$ac_val'\''"
2271    done | sort
2272    echo
2273
2274    if test -n "$ac_subst_files"; then
2275      printf "%s\n" "## ------------------- ##
2276## File substitutions. ##
2277## ------------------- ##"
2278      echo
2279      for ac_var in $ac_subst_files
2280      do
2281	eval ac_val=\$$ac_var
2282	case $ac_val in
2283	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2284	esac
2285	printf "%s\n" "$ac_var='\''$ac_val'\''"
2286      done | sort
2287      echo
2288    fi
2289
2290    if test -s confdefs.h; then
2291      printf "%s\n" "## ----------- ##
2292## confdefs.h. ##
2293## ----------- ##"
2294      echo
2295      cat confdefs.h
2296      echo
2297    fi
2298    test "$ac_signal" != 0 &&
2299      printf "%s\n" "$as_me: caught signal $ac_signal"
2300    printf "%s\n" "$as_me: exit $exit_status"
2301  } >&5
2302  rm -f core *.core core.conftest.* &&
2303    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2304    exit $exit_status
2305' 0
2306for ac_signal in 1 2 13 15; do
2307  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2308done
2309ac_signal=0
2310
2311# confdefs.h avoids OS command line length limits that DEFS can exceed.
2312rm -f -r conftest* confdefs.h
2313
2314printf "%s\n" "/* confdefs.h */" > confdefs.h
2315
2316# Predefined preprocessor variables.
2317
2318printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2319
2320printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2321
2322printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2323
2324printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2325
2326printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2327
2328printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2329
2330
2331# Let the site file select an alternate cache file if it wants to.
2332# Prefer an explicitly selected file to automatically selected ones.
2333if test -n "$CONFIG_SITE"; then
2334  ac_site_files="$CONFIG_SITE"
2335elif test "x$prefix" != xNONE; then
2336  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2337else
2338  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2339fi
2340
2341for ac_site_file in $ac_site_files
2342do
2343  case $ac_site_file in #(
2344  */*) :
2345     ;; #(
2346  *) :
2347    ac_site_file=./$ac_site_file ;;
2348esac
2349  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2350    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2352    sed 's/^/| /' "$ac_site_file" >&5
2353    . "$ac_site_file" \
2354      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2356as_fn_error $? "failed to load site script $ac_site_file
2357See \`config.log' for more details" "$LINENO" 5; }
2358  fi
2359done
2360
2361if test -r "$cache_file"; then
2362  # Some versions of bash will fail to source /dev/null (special files
2363  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2364  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2365    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2366printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2367    case $cache_file in
2368      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369      *)                      . "./$cache_file";;
2370    esac
2371  fi
2372else
2373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2374printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2375  >$cache_file
2376fi
2377
2378as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2379# Test code for whether the C compiler supports C89 (global declarations)
2380ac_c_conftest_c89_globals='
2381/* Does the compiler advertise C89 conformance?
2382   Do not test the value of __STDC__, because some compilers set it to 0
2383   while being otherwise adequately conformant. */
2384#if !defined __STDC__
2385# error "Compiler does not advertise C89 conformance"
2386#endif
2387
2388#include <stddef.h>
2389#include <stdarg.h>
2390struct stat;
2391/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2392struct buf { int x; };
2393struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2394static char *e (char **p, int i)
2395{
2396  return p[i];
2397}
2398static char *f (char * (*g) (char **, int), char **p, ...)
2399{
2400  char *s;
2401  va_list v;
2402  va_start (v,p);
2403  s = g (p, va_arg (v,int));
2404  va_end (v);
2405  return s;
2406}
2407
2408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2409   function prototypes and stuff, but not \xHH hex character constants.
2410   These do not provoke an error unfortunately, instead are silently treated
2411   as an "x".  The following induces an error, until -std is added to get
2412   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2413   array size at least.  It is necessary to write \x00 == 0 to get something
2414   that is true only with -std.  */
2415int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2416
2417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2418   inside strings and character constants.  */
2419#define FOO(x) '\''x'\''
2420int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2421
2422int test (int i, double x);
2423struct s1 {int (*f) (int a);};
2424struct s2 {int (*f) (double a);};
2425int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2426               int, int);'
2427
2428# Test code for whether the C compiler supports C89 (body of main).
2429ac_c_conftest_c89_main='
2430ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2431'
2432
2433# Test code for whether the C compiler supports C99 (global declarations)
2434ac_c_conftest_c99_globals='
2435// Does the compiler advertise C99 conformance?
2436#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2437# error "Compiler does not advertise C99 conformance"
2438#endif
2439
2440#include <stdbool.h>
2441extern int puts (const char *);
2442extern int printf (const char *, ...);
2443extern int dprintf (int, const char *, ...);
2444extern void *malloc (size_t);
2445extern void free (void *);
2446
2447// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2448// dprintf is used instead of fprintf to avoid needing to declare
2449// FILE and stderr.
2450#define debug(...) dprintf (2, __VA_ARGS__)
2451#define showlist(...) puts (#__VA_ARGS__)
2452#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2453static void
2454test_varargs_macros (void)
2455{
2456  int x = 1234;
2457  int y = 5678;
2458  debug ("Flag");
2459  debug ("X = %d\n", x);
2460  showlist (The first, second, and third items.);
2461  report (x>y, "x is %d but y is %d", x, y);
2462}
2463
2464// Check long long types.
2465#define BIG64 18446744073709551615ull
2466#define BIG32 4294967295ul
2467#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2468#if !BIG_OK
2469  #error "your preprocessor is broken"
2470#endif
2471#if BIG_OK
2472#else
2473  #error "your preprocessor is broken"
2474#endif
2475static long long int bignum = -9223372036854775807LL;
2476static unsigned long long int ubignum = BIG64;
2477
2478struct incomplete_array
2479{
2480  int datasize;
2481  double data[];
2482};
2483
2484struct named_init {
2485  int number;
2486  const wchar_t *name;
2487  double average;
2488};
2489
2490typedef const char *ccp;
2491
2492static inline int
2493test_restrict (ccp restrict text)
2494{
2495  // See if C++-style comments work.
2496  // Iterate through items via the restricted pointer.
2497  // Also check for declarations in for loops.
2498  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2499    continue;
2500  return 0;
2501}
2502
2503// Check varargs and va_copy.
2504static bool
2505test_varargs (const char *format, ...)
2506{
2507  va_list args;
2508  va_start (args, format);
2509  va_list args_copy;
2510  va_copy (args_copy, args);
2511
2512  const char *str = "";
2513  int number = 0;
2514  float fnumber = 0;
2515
2516  while (*format)
2517    {
2518      switch (*format++)
2519	{
2520	case '\''s'\'': // string
2521	  str = va_arg (args_copy, const char *);
2522	  break;
2523	case '\''d'\'': // int
2524	  number = va_arg (args_copy, int);
2525	  break;
2526	case '\''f'\'': // float
2527	  fnumber = va_arg (args_copy, double);
2528	  break;
2529	default:
2530	  break;
2531	}
2532    }
2533  va_end (args_copy);
2534  va_end (args);
2535
2536  return *str && number && fnumber;
2537}
2538'
2539
2540# Test code for whether the C compiler supports C99 (body of main).
2541ac_c_conftest_c99_main='
2542  // Check bool.
2543  _Bool success = false;
2544  success |= (argc != 0);
2545
2546  // Check restrict.
2547  if (test_restrict ("String literal") == 0)
2548    success = true;
2549  char *restrict newvar = "Another string";
2550
2551  // Check varargs.
2552  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2553  test_varargs_macros ();
2554
2555  // Check flexible array members.
2556  struct incomplete_array *ia =
2557    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2558  ia->datasize = 10;
2559  for (int i = 0; i < ia->datasize; ++i)
2560    ia->data[i] = i * 1.234;
2561
2562  // Check named initializers.
2563  struct named_init ni = {
2564    .number = 34,
2565    .name = L"Test wide string",
2566    .average = 543.34343,
2567  };
2568
2569  ni.number = 58;
2570
2571  int dynamic_array[ni.number];
2572  dynamic_array[0] = argv[0][0];
2573  dynamic_array[ni.number - 1] = 543;
2574
2575  // work around unused variable warnings
2576  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2577	 || dynamic_array[ni.number - 1] != 543);
2578'
2579
2580# Test code for whether the C compiler supports C11 (global declarations)
2581ac_c_conftest_c11_globals='
2582// Does the compiler advertise C11 conformance?
2583#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2584# error "Compiler does not advertise C11 conformance"
2585#endif
2586
2587// Check _Alignas.
2588char _Alignas (double) aligned_as_double;
2589char _Alignas (0) no_special_alignment;
2590extern char aligned_as_int;
2591char _Alignas (0) _Alignas (int) aligned_as_int;
2592
2593// Check _Alignof.
2594enum
2595{
2596  int_alignment = _Alignof (int),
2597  int_array_alignment = _Alignof (int[100]),
2598  char_alignment = _Alignof (char)
2599};
2600_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2601
2602// Check _Noreturn.
2603int _Noreturn does_not_return (void) { for (;;) continue; }
2604
2605// Check _Static_assert.
2606struct test_static_assert
2607{
2608  int x;
2609  _Static_assert (sizeof (int) <= sizeof (long int),
2610                  "_Static_assert does not work in struct");
2611  long int y;
2612};
2613
2614// Check UTF-8 literals.
2615#define u8 syntax error!
2616char const utf8_literal[] = u8"happens to be ASCII" "another string";
2617
2618// Check duplicate typedefs.
2619typedef long *long_ptr;
2620typedef long int *long_ptr;
2621typedef long_ptr long_ptr;
2622
2623// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2624struct anonymous
2625{
2626  union {
2627    struct { int i; int j; };
2628    struct { int k; long int l; } w;
2629  };
2630  int m;
2631} v1;
2632'
2633
2634# Test code for whether the C compiler supports C11 (body of main).
2635ac_c_conftest_c11_main='
2636  _Static_assert ((offsetof (struct anonymous, i)
2637		   == offsetof (struct anonymous, w.k)),
2638		  "Anonymous union alignment botch");
2639  v1.i = 2;
2640  v1.w.k = 5;
2641  ok |= v1.i != 5;
2642'
2643
2644# Test code for whether the C compiler supports C11 (complete).
2645ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2646${ac_c_conftest_c99_globals}
2647${ac_c_conftest_c11_globals}
2648
2649int
2650main (int argc, char **argv)
2651{
2652  int ok = 0;
2653  ${ac_c_conftest_c89_main}
2654  ${ac_c_conftest_c99_main}
2655  ${ac_c_conftest_c11_main}
2656  return ok;
2657}
2658"
2659
2660# Test code for whether the C compiler supports C99 (complete).
2661ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2662${ac_c_conftest_c99_globals}
2663
2664int
2665main (int argc, char **argv)
2666{
2667  int ok = 0;
2668  ${ac_c_conftest_c89_main}
2669  ${ac_c_conftest_c99_main}
2670  return ok;
2671}
2672"
2673
2674# Test code for whether the C compiler supports C89 (complete).
2675ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2676
2677int
2678main (int argc, char **argv)
2679{
2680  int ok = 0;
2681  ${ac_c_conftest_c89_main}
2682  return ok;
2683}
2684"
2685
2686as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2687as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2688as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2689as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2690as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2691as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2692as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2693as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2694as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2695as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2696
2697# Auxiliary files required by this configure script.
2698ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2699
2700# Locations in which to look for auxiliary files.
2701ac_aux_dir_candidates="${srcdir}/build-aux"
2702
2703# Search for a directory containing all of the required auxiliary files,
2704# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2705# If we don't find one directory that contains all the files we need,
2706# we report the set of missing files from the *first* directory in
2707# $ac_aux_dir_candidates and give up.
2708ac_missing_aux_files=""
2709ac_first_candidate=:
2710printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712as_found=false
2713for as_dir in $ac_aux_dir_candidates
2714do
2715  IFS=$as_save_IFS
2716  case $as_dir in #(((
2717    '') as_dir=./ ;;
2718    */) ;;
2719    *) as_dir=$as_dir/ ;;
2720  esac
2721  as_found=:
2722
2723  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2724  ac_aux_dir_found=yes
2725  ac_install_sh=
2726  for ac_aux in $ac_aux_files
2727  do
2728    # As a special case, if "install-sh" is required, that requirement
2729    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2730    # and $ac_install_sh is set appropriately for whichever one is found.
2731    if test x"$ac_aux" = x"install-sh"
2732    then
2733      if test -f "${as_dir}install-sh"; then
2734        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2735        ac_install_sh="${as_dir}install-sh -c"
2736      elif test -f "${as_dir}install.sh"; then
2737        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2738        ac_install_sh="${as_dir}install.sh -c"
2739      elif test -f "${as_dir}shtool"; then
2740        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2741        ac_install_sh="${as_dir}shtool install -c"
2742      else
2743        ac_aux_dir_found=no
2744        if $ac_first_candidate; then
2745          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2746        else
2747          break
2748        fi
2749      fi
2750    else
2751      if test -f "${as_dir}${ac_aux}"; then
2752        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2753      else
2754        ac_aux_dir_found=no
2755        if $ac_first_candidate; then
2756          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2757        else
2758          break
2759        fi
2760      fi
2761    fi
2762  done
2763  if test "$ac_aux_dir_found" = yes; then
2764    ac_aux_dir="$as_dir"
2765    break
2766  fi
2767  ac_first_candidate=false
2768
2769  as_found=false
2770done
2771IFS=$as_save_IFS
2772if $as_found
2773then :
2774
2775else $as_nop
2776  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2777fi
2778
2779
2780# These three variables are undocumented and unsupported,
2781# and are intended to be withdrawn in a future Autoconf release.
2782# They can cause serious problems if a builder's source tree is in a directory
2783# whose full name contains unusual characters.
2784if test -f "${ac_aux_dir}config.guess"; then
2785  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2786fi
2787if test -f "${ac_aux_dir}config.sub"; then
2788  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2789fi
2790if test -f "$ac_aux_dir/configure"; then
2791  ac_configure="$SHELL ${ac_aux_dir}configure"
2792fi
2793
2794# Check that the precious variables saved in the cache have kept the same
2795# value.
2796ac_cache_corrupted=false
2797for ac_var in $ac_precious_vars; do
2798  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2799  eval ac_new_set=\$ac_env_${ac_var}_set
2800  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2801  eval ac_new_val=\$ac_env_${ac_var}_value
2802  case $ac_old_set,$ac_new_set in
2803    set,)
2804      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2805printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2806      ac_cache_corrupted=: ;;
2807    ,set)
2808      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2809printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2810      ac_cache_corrupted=: ;;
2811    ,);;
2812    *)
2813      if test "x$ac_old_val" != "x$ac_new_val"; then
2814	# differences in whitespace do not lead to failure.
2815	ac_old_val_w=`echo x $ac_old_val`
2816	ac_new_val_w=`echo x $ac_new_val`
2817	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2818	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2819printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2820	  ac_cache_corrupted=:
2821	else
2822	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2823printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2824	  eval $ac_var=\$ac_old_val
2825	fi
2826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2827printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2828	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2829printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2830      fi;;
2831  esac
2832  # Pass precious variables to config.status.
2833  if test "$ac_new_set" = set; then
2834    case $ac_new_val in
2835    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2836    *) ac_arg=$ac_var=$ac_new_val ;;
2837    esac
2838    case " $ac_configure_args " in
2839      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2840      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2841    esac
2842  fi
2843done
2844if $ac_cache_corrupted; then
2845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2846printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2848printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2849  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2850	    and start over" "$LINENO" 5
2851fi
2852## -------------------- ##
2853## Main body of script. ##
2854## -------------------- ##
2855
2856ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2860ac_compiler_gnu=$ac_cv_c_compiler_gnu
2861
2862
2863
2864
2865
2866ac_config_headers="$ac_config_headers src/config.h"
2867
2868
2869# Initialize Automake
2870am__api_version='1.16'
2871
2872
2873
2874  # Find a good install program.  We prefer a C program (faster),
2875# so one script is as good as another.  But avoid the broken or
2876# incompatible versions:
2877# SysV /etc/install, /usr/sbin/install
2878# SunOS /usr/etc/install
2879# IRIX /sbin/install
2880# AIX /bin/install
2881# AmigaOS /C/install, which installs bootblocks on floppy discs
2882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2883# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2885# OS/2's system install, which has a completely different semantic
2886# ./install, which can be erroneously created by make from ./install.sh.
2887# Reject install programs that cannot install multiple files.
2888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2889printf %s "checking for a BSD-compatible install... " >&6; }
2890if test -z "$INSTALL"; then
2891if test ${ac_cv_path_install+y}
2892then :
2893  printf %s "(cached) " >&6
2894else $as_nop
2895  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  case $as_dir in #(((
2900    '') as_dir=./ ;;
2901    */) ;;
2902    *) as_dir=$as_dir/ ;;
2903  esac
2904    # Account for fact that we put trailing slashes in our PATH walk.
2905case $as_dir in #((
2906  ./ | /[cC]/* | \
2907  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2908  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2909  /usr/ucb/* ) ;;
2910  *)
2911    # OSF1 and SCO ODT 3.0 have their own names for install.
2912    # Don't use installbsd from OSF since it installs stuff as root
2913    # by default.
2914    for ac_prog in ginstall scoinst install; do
2915      for ac_exec_ext in '' $ac_executable_extensions; do
2916	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2917	  if test $ac_prog = install &&
2918	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2919	    # AIX install.  It has an incompatible calling convention.
2920	    :
2921	  elif test $ac_prog = install &&
2922	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2923	    # program-specific install script used by HP pwplus--don't use.
2924	    :
2925	  else
2926	    rm -rf conftest.one conftest.two conftest.dir
2927	    echo one > conftest.one
2928	    echo two > conftest.two
2929	    mkdir conftest.dir
2930	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2931	      test -s conftest.one && test -s conftest.two &&
2932	      test -s conftest.dir/conftest.one &&
2933	      test -s conftest.dir/conftest.two
2934	    then
2935	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2936	      break 3
2937	    fi
2938	  fi
2939	fi
2940      done
2941    done
2942    ;;
2943esac
2944
2945  done
2946IFS=$as_save_IFS
2947
2948rm -rf conftest.one conftest.two conftest.dir
2949
2950fi
2951  if test ${ac_cv_path_install+y}; then
2952    INSTALL=$ac_cv_path_install
2953  else
2954    # As a last resort, use the slow shell script.  Don't cache a
2955    # value for INSTALL within a source directory, because that will
2956    # break other packages using the cache if that directory is
2957    # removed, or if the value is a relative name.
2958    INSTALL=$ac_install_sh
2959  fi
2960fi
2961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2962printf "%s\n" "$INSTALL" >&6; }
2963
2964# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2965# It thinks the first close brace ends the variable substitution.
2966test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2967
2968test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2969
2970test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2971
2972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2973printf %s "checking whether build environment is sane... " >&6; }
2974# Reject unsafe characters in $srcdir or the absolute working directory
2975# name.  Accept space and tab only in the latter.
2976am_lf='
2977'
2978case `pwd` in
2979  *[\\\"\#\$\&\'\`$am_lf]*)
2980    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2981esac
2982case $srcdir in
2983  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2984    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2985esac
2986
2987# Do 'set' in a subshell so we don't clobber the current shell's
2988# arguments.  Must try -L first in case configure is actually a
2989# symlink; some systems play weird games with the mod time of symlinks
2990# (eg FreeBSD returns the mod time of the symlink's containing
2991# directory).
2992if (
2993   am_has_slept=no
2994   for am_try in 1 2; do
2995     echo "timestamp, slept: $am_has_slept" > conftest.file
2996     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2997     if test "$*" = "X"; then
2998	# -L didn't work.
2999	set X `ls -t "$srcdir/configure" conftest.file`
3000     fi
3001     if test "$*" != "X $srcdir/configure conftest.file" \
3002	&& test "$*" != "X conftest.file $srcdir/configure"; then
3003
3004	# If neither matched, then we have a broken ls.  This can happen
3005	# if, for instance, CONFIG_SHELL is bash and it inherits a
3006	# broken ls alias from the environment.  This has actually
3007	# happened.  Such a system could not be considered "sane".
3008	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3009  alias in your environment" "$LINENO" 5
3010     fi
3011     if test "$2" = conftest.file || test $am_try -eq 2; then
3012       break
3013     fi
3014     # Just in case.
3015     sleep 1
3016     am_has_slept=yes
3017   done
3018   test "$2" = conftest.file
3019   )
3020then
3021   # Ok.
3022   :
3023else
3024   as_fn_error $? "newly created file is older than distributed files!
3025Check your system clock" "$LINENO" 5
3026fi
3027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3028printf "%s\n" "yes" >&6; }
3029# If we didn't sleep, we still need to ensure time stamps of config.status and
3030# generated files are strictly newer.
3031am_sleep_pid=
3032if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3033  ( sleep 1 ) &
3034  am_sleep_pid=$!
3035fi
3036
3037rm -f conftest.file
3038
3039test "$program_prefix" != NONE &&
3040  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3041# Use a double $ so make ignores it.
3042test "$program_suffix" != NONE &&
3043  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3044# Double any \ or $.
3045# By default was `s,x,x', remove it if useless.
3046ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3047program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3048
3049
3050# Expand $ac_aux_dir to an absolute path.
3051am_aux_dir=`cd "$ac_aux_dir" && pwd`
3052
3053
3054  if test x"${MISSING+set}" != xset; then
3055  MISSING="\${SHELL} '$am_aux_dir/missing'"
3056fi
3057# Use eval to expand $SHELL
3058if eval "$MISSING --is-lightweight"; then
3059  am_missing_run="$MISSING "
3060else
3061  am_missing_run=
3062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3063printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3064fi
3065
3066if test x"${install_sh+set}" != xset; then
3067  case $am_aux_dir in
3068  *\ * | *\	*)
3069    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3070  *)
3071    install_sh="\${SHELL} $am_aux_dir/install-sh"
3072  esac
3073fi
3074
3075# Installed binaries are usually stripped using 'strip' when the user
3076# run "make install-strip".  However 'strip' might not be the right
3077# tool to use in cross-compilation environments, therefore Automake
3078# will honor the 'STRIP' environment variable to overrule this program.
3079if test "$cross_compiling" != no; then
3080  if test -n "$ac_tool_prefix"; then
3081  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3082set dummy ${ac_tool_prefix}strip; ac_word=$2
3083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084printf %s "checking for $ac_word... " >&6; }
3085if test ${ac_cv_prog_STRIP+y}
3086then :
3087  printf %s "(cached) " >&6
3088else $as_nop
3089  if test -n "$STRIP"; then
3090  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095  IFS=$as_save_IFS
3096  case $as_dir in #(((
3097    '') as_dir=./ ;;
3098    */) ;;
3099    *) as_dir=$as_dir/ ;;
3100  esac
3101    for ac_exec_ext in '' $ac_executable_extensions; do
3102  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3103    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3104    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3105    break 2
3106  fi
3107done
3108  done
3109IFS=$as_save_IFS
3110
3111fi
3112fi
3113STRIP=$ac_cv_prog_STRIP
3114if test -n "$STRIP"; then
3115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3116printf "%s\n" "$STRIP" >&6; }
3117else
3118  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119printf "%s\n" "no" >&6; }
3120fi
3121
3122
3123fi
3124if test -z "$ac_cv_prog_STRIP"; then
3125  ac_ct_STRIP=$STRIP
3126  # Extract the first word of "strip", so it can be a program name with args.
3127set dummy strip; ac_word=$2
3128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129printf %s "checking for $ac_word... " >&6; }
3130if test ${ac_cv_prog_ac_ct_STRIP+y}
3131then :
3132  printf %s "(cached) " >&6
3133else $as_nop
3134  if test -n "$ac_ct_STRIP"; then
3135  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  case $as_dir in #(((
3142    '') as_dir=./ ;;
3143    */) ;;
3144    *) as_dir=$as_dir/ ;;
3145  esac
3146    for ac_exec_ext in '' $ac_executable_extensions; do
3147  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3148    ac_cv_prog_ac_ct_STRIP="strip"
3149    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3150    break 2
3151  fi
3152done
3153  done
3154IFS=$as_save_IFS
3155
3156fi
3157fi
3158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3159if test -n "$ac_ct_STRIP"; then
3160  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3161printf "%s\n" "$ac_ct_STRIP" >&6; }
3162else
3163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164printf "%s\n" "no" >&6; }
3165fi
3166
3167  if test "x$ac_ct_STRIP" = x; then
3168    STRIP=":"
3169  else
3170    case $cross_compiling:$ac_tool_warned in
3171yes:)
3172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174ac_tool_warned=yes ;;
3175esac
3176    STRIP=$ac_ct_STRIP
3177  fi
3178else
3179  STRIP="$ac_cv_prog_STRIP"
3180fi
3181
3182fi
3183INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3184
3185
3186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3187printf %s "checking for a race-free mkdir -p... " >&6; }
3188if test -z "$MKDIR_P"; then
3189  if test ${ac_cv_path_mkdir+y}
3190then :
3191  printf %s "(cached) " >&6
3192else $as_nop
3193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3195do
3196  IFS=$as_save_IFS
3197  case $as_dir in #(((
3198    '') as_dir=./ ;;
3199    */) ;;
3200    *) as_dir=$as_dir/ ;;
3201  esac
3202    for ac_prog in mkdir gmkdir; do
3203	 for ac_exec_ext in '' $ac_executable_extensions; do
3204	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3205	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3206	     'mkdir ('*'coreutils) '* | \
3207	     'BusyBox '* | \
3208	     'mkdir (fileutils) '4.1*)
3209	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3210	       break 3;;
3211	   esac
3212	 done
3213       done
3214  done
3215IFS=$as_save_IFS
3216
3217fi
3218
3219  test -d ./--version && rmdir ./--version
3220  if test ${ac_cv_path_mkdir+y}; then
3221    MKDIR_P="$ac_cv_path_mkdir -p"
3222  else
3223    # As a last resort, use the slow shell script.  Don't cache a
3224    # value for MKDIR_P within a source directory, because that will
3225    # break other packages using the cache if that directory is
3226    # removed, or if the value is a relative name.
3227    MKDIR_P="$ac_install_sh -d"
3228  fi
3229fi
3230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3231printf "%s\n" "$MKDIR_P" >&6; }
3232
3233for ac_prog in gawk mawk nawk awk
3234do
3235  # Extract the first word of "$ac_prog", so it can be a program name with args.
3236set dummy $ac_prog; ac_word=$2
3237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238printf %s "checking for $ac_word... " >&6; }
3239if test ${ac_cv_prog_AWK+y}
3240then :
3241  printf %s "(cached) " >&6
3242else $as_nop
3243  if test -n "$AWK"; then
3244  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  case $as_dir in #(((
3251    '') as_dir=./ ;;
3252    */) ;;
3253    *) as_dir=$as_dir/ ;;
3254  esac
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_AWK="$ac_prog"
3258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267AWK=$ac_cv_prog_AWK
3268if test -n "$AWK"; then
3269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3270printf "%s\n" "$AWK" >&6; }
3271else
3272  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273printf "%s\n" "no" >&6; }
3274fi
3275
3276
3277  test -n "$AWK" && break
3278done
3279
3280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3281printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3282set x ${MAKE-make}
3283ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3284if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3285then :
3286  printf %s "(cached) " >&6
3287else $as_nop
3288  cat >conftest.make <<\_ACEOF
3289SHELL = /bin/sh
3290all:
3291	@echo '@@@%%%=$(MAKE)=@@@%%%'
3292_ACEOF
3293# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3294case `${MAKE-make} -f conftest.make 2>/dev/null` in
3295  *@@@%%%=?*=@@@%%%*)
3296    eval ac_cv_prog_make_${ac_make}_set=yes;;
3297  *)
3298    eval ac_cv_prog_make_${ac_make}_set=no;;
3299esac
3300rm -f conftest.make
3301fi
3302if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304printf "%s\n" "yes" >&6; }
3305  SET_MAKE=
3306else
3307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3308printf "%s\n" "no" >&6; }
3309  SET_MAKE="MAKE=${MAKE-make}"
3310fi
3311
3312rm -rf .tst 2>/dev/null
3313mkdir .tst 2>/dev/null
3314if test -d .tst; then
3315  am__leading_dot=.
3316else
3317  am__leading_dot=_
3318fi
3319rmdir .tst 2>/dev/null
3320
3321# Check whether --enable-silent-rules was given.
3322if test ${enable_silent_rules+y}
3323then :
3324  enableval=$enable_silent_rules;
3325fi
3326
3327case $enable_silent_rules in # (((
3328  yes) AM_DEFAULT_VERBOSITY=0;;
3329   no) AM_DEFAULT_VERBOSITY=1;;
3330    *) AM_DEFAULT_VERBOSITY=1;;
3331esac
3332am_make=${MAKE-make}
3333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3334printf %s "checking whether $am_make supports nested variables... " >&6; }
3335if test ${am_cv_make_support_nested_variables+y}
3336then :
3337  printf %s "(cached) " >&6
3338else $as_nop
3339  if printf "%s\n" 'TRUE=$(BAR$(V))
3340BAR0=false
3341BAR1=true
3342V=1
3343am__doit:
3344	@$(TRUE)
3345.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3346  am_cv_make_support_nested_variables=yes
3347else
3348  am_cv_make_support_nested_variables=no
3349fi
3350fi
3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3352printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3353if test $am_cv_make_support_nested_variables = yes; then
3354    AM_V='$(V)'
3355  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3356else
3357  AM_V=$AM_DEFAULT_VERBOSITY
3358  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3359fi
3360AM_BACKSLASH='\'
3361
3362if test "`cd $srcdir && pwd`" != "`pwd`"; then
3363  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3364  # is not polluted with repeated "-I."
3365  am__isrc=' -I$(srcdir)'
3366  # test to see if srcdir already configured
3367  if test -f $srcdir/config.status; then
3368    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3369  fi
3370fi
3371
3372# test whether we have cygpath
3373if test -z "$CYGPATH_W"; then
3374  if (cygpath --version) >/dev/null 2>/dev/null; then
3375    CYGPATH_W='cygpath -w'
3376  else
3377    CYGPATH_W=echo
3378  fi
3379fi
3380
3381
3382# Define the identity of the package.
3383 PACKAGE='libxcb'
3384 VERSION='1.17.0'
3385
3386
3387printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3388
3389
3390printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3391
3392# Some tools Automake needs.
3393
3394ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3395
3396
3397AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3398
3399
3400AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3401
3402
3403AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3404
3405
3406MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3407
3408# For better backward compatibility.  To be removed once Automake 1.9.x
3409# dies out for good.  For more background, see:
3410# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3411# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3412mkdir_p='$(MKDIR_P)'
3413
3414# We need awk for the "check" target (and possibly the TAP driver).  The
3415# system "awk" is bad on some platforms.
3416# Always define AMTAR for backward compatibility.  Yes, it's still used
3417# in the wild :-(  We should find a proper way to deprecate it ...
3418AMTAR='$${TAR-tar}'
3419
3420
3421# We'll loop over all known methods to create a tar archive until one works.
3422_am_tools='gnutar  pax cpio none'
3423
3424am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3425
3426
3427
3428
3429
3430# Variables for tags utilities; see am/tags.am
3431if test -z "$CTAGS"; then
3432  CTAGS=ctags
3433fi
3434
3435if test -z "$ETAGS"; then
3436  ETAGS=etags
3437fi
3438
3439if test -z "$CSCOPE"; then
3440  CSCOPE=cscope
3441fi
3442
3443
3444
3445# POSIX will say in a future version that running "rm -f" with no argument
3446# is OK; and we want to be able to make that assumption in our Makefile
3447# recipes.  So use an aggressive probe to check that the usage we want is
3448# actually supported "in the wild" to an acceptable degree.
3449# See automake bug#10828.
3450# To make any issue more visible, cause the running configure to be aborted
3451# by default if the 'rm' program in use doesn't match our expectations; the
3452# user can still override this though.
3453if rm -f && rm -fr && rm -rf; then : OK; else
3454  cat >&2 <<'END'
3455Oops!
3456
3457Your 'rm' program seems unable to run without file operands specified
3458on the command line, even when the '-f' option is present.  This is contrary
3459to the behaviour of most rm programs out there, and not conforming with
3460the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3461
3462Please tell bug-automake@gnu.org about your system, including the value
3463of your $PATH and any error possibly output before this message.  This
3464can help us improve future automake versions.
3465
3466END
3467  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3468    echo 'Configuration will proceed anyway, since you have set the' >&2
3469    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3470    echo >&2
3471  else
3472    cat >&2 <<'END'
3473Aborting the configuration process, to ensure you take notice of the issue.
3474
3475You can download and install GNU coreutils to get an 'rm' implementation
3476that behaves properly: <https://www.gnu.org/software/coreutils/>.
3477
3478If you want to complete the configuration process using your problematic
3479'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3480to "yes", and re-run configure.
3481
3482END
3483    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3484  fi
3485fi
3486
3487
3488
3489
3490
3491
3492
3493        if test -n "$PYTHON"; then
3494      # If the user set $PYTHON, use it and don't search something else.
3495      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.0" >&5
3496printf %s "checking whether $PYTHON version is >= 3.0... " >&6; }
3497      prog="import sys
3498# split strings by '.' and convert to numeric.  Append some zeros
3499# because we need at least 4 digits for the hex conversion.
3500# map returns an iterator in Python 3.0 and a list in 2.x
3501minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
3502minverhex = 0
3503# xrange is not present in Python 3.0 and range returns an iterator
3504for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3505sys.exit(sys.hexversion < minverhex)"
3506  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3507   ($PYTHON -c "$prog") >&5 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }
3511then :
3512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513printf "%s\n" "yes" >&6; }
3514else $as_nop
3515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516printf "%s\n" "no" >&6; }
3517			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3518fi
3519      am_display_PYTHON=$PYTHON
3520    else
3521      # Otherwise, try each interpreter until we find one that satisfies
3522      # VERSION.
3523      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.0" >&5
3524printf %s "checking for a Python interpreter with version >= 3.0... " >&6; }
3525if test ${am_cv_pathless_PYTHON+y}
3526then :
3527  printf %s "(cached) " >&6
3528else $as_nop
3529
3530	for am_cv_pathless_PYTHON in python python2 python3  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
3531	  test "$am_cv_pathless_PYTHON" = none && break
3532	  prog="import sys
3533# split strings by '.' and convert to numeric.  Append some zeros
3534# because we need at least 4 digits for the hex conversion.
3535# map returns an iterator in Python 3.0 and a list in 2.x
3536minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
3537minverhex = 0
3538# xrange is not present in Python 3.0 and range returns an iterator
3539for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3540sys.exit(sys.hexversion < minverhex)"
3541  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3542   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3543   ac_status=$?
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); }
3546then :
3547  break
3548fi
3549	done
3550fi
3551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3552printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
3553      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3554      if test "$am_cv_pathless_PYTHON" = none; then
3555	PYTHON=:
3556      else
3557        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3558set dummy $am_cv_pathless_PYTHON; ac_word=$2
3559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560printf %s "checking for $ac_word... " >&6; }
3561if test ${ac_cv_path_PYTHON+y}
3562then :
3563  printf %s "(cached) " >&6
3564else $as_nop
3565  case $PYTHON in
3566  [\\/]* | ?:[\\/]*)
3567  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3568  ;;
3569  *)
3570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571for as_dir in $PATH
3572do
3573  IFS=$as_save_IFS
3574  case $as_dir in #(((
3575    '') as_dir=./ ;;
3576    */) ;;
3577    *) as_dir=$as_dir/ ;;
3578  esac
3579    for ac_exec_ext in '' $ac_executable_extensions; do
3580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3581    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
3582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3583    break 2
3584  fi
3585done
3586  done
3587IFS=$as_save_IFS
3588
3589  ;;
3590esac
3591fi
3592PYTHON=$ac_cv_path_PYTHON
3593if test -n "$PYTHON"; then
3594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3595printf "%s\n" "$PYTHON" >&6; }
3596else
3597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598printf "%s\n" "no" >&6; }
3599fi
3600
3601
3602      fi
3603      am_display_PYTHON=$am_cv_pathless_PYTHON
3604    fi
3605
3606
3607  if test "$PYTHON" = :; then
3608        as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3609  else
3610
3611              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3612printf %s "checking for $am_display_PYTHON version... " >&6; }
3613if test ${am_cv_python_version+y}
3614then :
3615  printf %s "(cached) " >&6
3616else $as_nop
3617  am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
3618fi
3619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3620printf "%s\n" "$am_cv_python_version" >&6; }
3621  PYTHON_VERSION=$am_cv_python_version
3622
3623
3624        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3625printf %s "checking for $am_display_PYTHON platform... " >&6; }
3626if test ${am_cv_python_platform+y}
3627then :
3628  printf %s "(cached) " >&6
3629else $as_nop
3630  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3631fi
3632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3633printf "%s\n" "$am_cv_python_platform" >&6; }
3634  PYTHON_PLATFORM=$am_cv_python_platform
3635
3636
3637                            if test "x$prefix" = xNONE; then
3638    am__usable_prefix=$ac_default_prefix
3639  else
3640    am__usable_prefix=$prefix
3641  fi
3642
3643  # Allow user to request using sys.* values from Python,
3644  # instead of the GNU $prefix values.
3645
3646# Check whether --with-python-sys-prefix was given.
3647if test ${with_python_sys_prefix+y}
3648then :
3649  withval=$with_python_sys_prefix; am_use_python_sys=:
3650else $as_nop
3651  am_use_python_sys=false
3652fi
3653
3654
3655  # Allow user to override whatever the default Python prefix is.
3656
3657# Check whether --with-python_prefix was given.
3658if test ${with_python_prefix+y}
3659then :
3660  withval=$with_python_prefix; am_python_prefix_subst=$withval
3661   am_cv_python_prefix=$withval
3662   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
3663printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
3664   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
3665printf "%s\n" "$am_cv_python_prefix" >&6; }
3666else $as_nop
3667
3668   if $am_use_python_sys; then
3669     # using python sys.prefix value, not GNU
3670     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
3671printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
3672if test ${am_cv_python_prefix+y}
3673then :
3674  printf %s "(cached) " >&6
3675else $as_nop
3676  am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
3677fi
3678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
3679printf "%s\n" "$am_cv_python_prefix" >&6; }
3680
3681               case $am_cv_python_prefix in
3682     $am__usable_prefix*)
3683       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
3684       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
3685       ;;
3686     *)
3687       am_python_prefix_subst=$am_cv_python_prefix
3688       ;;
3689     esac
3690   else # using GNU prefix value, not python sys.prefix
3691     am_python_prefix_subst='${prefix}'
3692     am_python_prefix=$am_python_prefix_subst
3693     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
3694printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
3695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
3696printf "%s\n" "$am_python_prefix" >&6; }
3697   fi
3698fi
3699
3700  # Substituting python_prefix_subst value.
3701  PYTHON_PREFIX=$am_python_prefix_subst
3702
3703
3704  # emacs-page Now do it all over again for Python exec_prefix, but with yet
3705  # another conditional: fall back to regular prefix if that was specified.
3706
3707# Check whether --with-python_exec_prefix was given.
3708if test ${with_python_exec_prefix+y}
3709then :
3710  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
3711   am_cv_python_exec_prefix=$withval
3712   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
3713printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
3714   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
3715printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
3716else $as_nop
3717
3718   # no explicit --with-python_exec_prefix, but if
3719   # --with-python_prefix was given, use its value for python_exec_prefix too.
3720   if test -n "$with_python_prefix"
3721then :
3722  am_python_exec_prefix_subst=$with_python_prefix
3723    am_cv_python_exec_prefix=$with_python_prefix
3724    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
3725printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
3726    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
3727printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
3728else $as_nop
3729
3730    # Set am__usable_exec_prefix whether using GNU or Python values,
3731    # since we use that variable for pyexecdir.
3732    if test "x$exec_prefix" = xNONE; then
3733      am__usable_exec_prefix=$am__usable_prefix
3734    else
3735      am__usable_exec_prefix=$exec_prefix
3736    fi
3737    #
3738    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
3739      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
3740printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
3741if test ${am_cv_python_exec_prefix+y}
3742then :
3743  printf %s "(cached) " >&6
3744else $as_nop
3745  am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
3746fi
3747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
3748printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
3749                        case $am_cv_python_exec_prefix in
3750      $am__usable_exec_prefix*)
3751        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
3752        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
3753        ;;
3754      *)
3755        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
3756        ;;
3757     esac
3758   else # using GNU $exec_prefix, not python sys.exec_prefix
3759     am_python_exec_prefix_subst='${exec_prefix}'
3760     am_python_exec_prefix=$am_python_exec_prefix_subst
3761     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
3762printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
3763     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
3764printf "%s\n" "$am_python_exec_prefix" >&6; }
3765   fi
3766fi
3767fi
3768
3769  # Substituting python_exec_prefix_subst.
3770  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
3771
3772
3773  # Factor out some code duplication into this shell variable.
3774  am_python_setup_sysconfig="\
3775import sys
3776# Prefer sysconfig over distutils.sysconfig, for better compatibility
3777# with python 3.x.  See automake bug#10227.
3778try:
3779    import sysconfig
3780except ImportError:
3781    can_use_sysconfig = 0
3782else:
3783    can_use_sysconfig = 1
3784# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3785# <https://github.com/pypa/virtualenv/issues/118>
3786try:
3787    from platform import python_implementation
3788    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3789        can_use_sysconfig = 0
3790except ImportError:
3791    pass"
3792
3793
3794              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
3795printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
3796if test ${am_cv_python_pythondir+y}
3797then :
3798  printf %s "(cached) " >&6
3799else $as_nop
3800  if test "x$am_cv_python_prefix" = x; then
3801     am_py_prefix=$am__usable_prefix
3802   else
3803     am_py_prefix=$am_cv_python_prefix
3804   fi
3805   am_cv_python_pythondir=`$PYTHON -c "
3806$am_python_setup_sysconfig
3807if can_use_sysconfig:
3808  sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3809else:
3810  from distutils import sysconfig
3811  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3812sys.stdout.write(sitedir)"`
3813   #
3814   case $am_cv_python_pythondir in
3815   $am_py_prefix*)
3816     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3817     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
3818     ;;
3819   *)
3820     case $am_py_prefix in
3821       /usr|/System*) ;;
3822       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
3823          ;;
3824     esac
3825     ;;
3826   esac
3827
3828fi
3829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3830printf "%s\n" "$am_cv_python_pythondir" >&6; }
3831  pythondir=$am_cv_python_pythondir
3832
3833
3834          pkgpythondir=\${pythondir}/$PACKAGE
3835
3836
3837          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
3838printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
3839if test ${am_cv_python_pyexecdir+y}
3840then :
3841  printf %s "(cached) " >&6
3842else $as_nop
3843  if test "x$am_cv_python_exec_prefix" = x; then
3844     am_py_exec_prefix=$am__usable_exec_prefix
3845   else
3846     am_py_exec_prefix=$am_cv_python_exec_prefix
3847   fi
3848   am_cv_python_pyexecdir=`$PYTHON -c "
3849$am_python_setup_sysconfig
3850if can_use_sysconfig:
3851  sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
3852else:
3853  from distutils import sysconfig
3854  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
3855sys.stdout.write(sitedir)"`
3856   #
3857   case $am_cv_python_pyexecdir in
3858   $am_py_exec_prefix*)
3859     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3860     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
3861     ;;
3862   *)
3863     case $am_py_exec_prefix in
3864       /usr|/System*) ;;
3865       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
3866          ;;
3867     esac
3868     ;;
3869   esac
3870
3871fi
3872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3873printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
3874  pyexecdir=$am_cv_python_pyexecdir
3875
3876
3877      pkgpyexecdir=\${pyexecdir}/$PACKAGE
3878
3879
3880
3881  fi
3882
3883
3884# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3885# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3886# to avoid autoconf errors.
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896DEPDIR="${am__leading_dot}deps"
3897
3898ac_config_commands="$ac_config_commands depfiles"
3899
3900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3901printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3902cat > confinc.mk << 'END'
3903am__doit:
3904	@echo this is the am__doit target >confinc.out
3905.PHONY: am__doit
3906END
3907am__include="#"
3908am__quote=
3909# BSD make does it like this.
3910echo '.include "confinc.mk" # ignored' > confmf.BSD
3911# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3912echo 'include confinc.mk # ignored' > confmf.GNU
3913_am_result=no
3914for s in GNU BSD; do
3915  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3916   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3917   ac_status=$?
3918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919   (exit $ac_status); }
3920  case $?:`cat confinc.out 2>/dev/null` in #(
3921  '0:this is the am__doit target') :
3922    case $s in #(
3923  BSD) :
3924    am__include='.include' am__quote='"' ;; #(
3925  *) :
3926    am__include='include' am__quote='' ;;
3927esac ;; #(
3928  *) :
3929     ;;
3930esac
3931  if test "$am__include" != "#"; then
3932    _am_result="yes ($s style)"
3933    break
3934  fi
3935done
3936rm -f confinc.* confmf.*
3937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3938printf "%s\n" "${_am_result}" >&6; }
3939
3940# Check whether --enable-dependency-tracking was given.
3941if test ${enable_dependency_tracking+y}
3942then :
3943  enableval=$enable_dependency_tracking;
3944fi
3945
3946if test "x$enable_dependency_tracking" != xno; then
3947  am_depcomp="$ac_aux_dir/depcomp"
3948  AMDEPBACKSLASH='\'
3949  am__nodep='_no'
3950fi
3951 if test "x$enable_dependency_tracking" != xno; then
3952  AMDEP_TRUE=
3953  AMDEP_FALSE='#'
3954else
3955  AMDEP_TRUE='#'
3956  AMDEP_FALSE=
3957fi
3958
3959
3960ac_ext=c
3961ac_cpp='$CPP $CPPFLAGS'
3962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965if test -n "$ac_tool_prefix"; then
3966  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3967set dummy ${ac_tool_prefix}gcc; ac_word=$2
3968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969printf %s "checking for $ac_word... " >&6; }
3970if test ${ac_cv_prog_CC+y}
3971then :
3972  printf %s "(cached) " >&6
3973else $as_nop
3974  if test -n "$CC"; then
3975  ac_cv_prog_CC="$CC" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980  IFS=$as_save_IFS
3981  case $as_dir in #(((
3982    '') as_dir=./ ;;
3983    */) ;;
3984    *) as_dir=$as_dir/ ;;
3985  esac
3986    for ac_exec_ext in '' $ac_executable_extensions; do
3987  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3988    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3989    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3990    break 2
3991  fi
3992done
3993  done
3994IFS=$as_save_IFS
3995
3996fi
3997fi
3998CC=$ac_cv_prog_CC
3999if test -n "$CC"; then
4000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001printf "%s\n" "$CC" >&6; }
4002else
4003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004printf "%s\n" "no" >&6; }
4005fi
4006
4007
4008fi
4009if test -z "$ac_cv_prog_CC"; then
4010  ac_ct_CC=$CC
4011  # Extract the first word of "gcc", so it can be a program name with args.
4012set dummy gcc; ac_word=$2
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014printf %s "checking for $ac_word... " >&6; }
4015if test ${ac_cv_prog_ac_ct_CC+y}
4016then :
4017  printf %s "(cached) " >&6
4018else $as_nop
4019  if test -n "$ac_ct_CC"; then
4020  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025  IFS=$as_save_IFS
4026  case $as_dir in #(((
4027    '') as_dir=./ ;;
4028    */) ;;
4029    *) as_dir=$as_dir/ ;;
4030  esac
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_ac_ct_CC="gcc"
4034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044if test -n "$ac_ct_CC"; then
4045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4046printf "%s\n" "$ac_ct_CC" >&6; }
4047else
4048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049printf "%s\n" "no" >&6; }
4050fi
4051
4052  if test "x$ac_ct_CC" = x; then
4053    CC=""
4054  else
4055    case $cross_compiling:$ac_tool_warned in
4056yes:)
4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059ac_tool_warned=yes ;;
4060esac
4061    CC=$ac_ct_CC
4062  fi
4063else
4064  CC="$ac_cv_prog_CC"
4065fi
4066
4067if test -z "$CC"; then
4068          if test -n "$ac_tool_prefix"; then
4069    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4070set dummy ${ac_tool_prefix}cc; ac_word=$2
4071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072printf %s "checking for $ac_word... " >&6; }
4073if test ${ac_cv_prog_CC+y}
4074then :
4075  printf %s "(cached) " >&6
4076else $as_nop
4077  if test -n "$CC"; then
4078  ac_cv_prog_CC="$CC" # Let the user override the test.
4079else
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083  IFS=$as_save_IFS
4084  case $as_dir in #(((
4085    '') as_dir=./ ;;
4086    */) ;;
4087    *) as_dir=$as_dir/ ;;
4088  esac
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4091    ac_cv_prog_CC="${ac_tool_prefix}cc"
4092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4093    break 2
4094  fi
4095done
4096  done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101CC=$ac_cv_prog_CC
4102if test -n "$CC"; then
4103  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104printf "%s\n" "$CC" >&6; }
4105else
4106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107printf "%s\n" "no" >&6; }
4108fi
4109
4110
4111  fi
4112fi
4113if test -z "$CC"; then
4114  # Extract the first word of "cc", so it can be a program name with args.
4115set dummy cc; ac_word=$2
4116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117printf %s "checking for $ac_word... " >&6; }
4118if test ${ac_cv_prog_CC+y}
4119then :
4120  printf %s "(cached) " >&6
4121else $as_nop
4122  if test -n "$CC"; then
4123  ac_cv_prog_CC="$CC" # Let the user override the test.
4124else
4125  ac_prog_rejected=no
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129  IFS=$as_save_IFS
4130  case $as_dir in #(((
4131    '') as_dir=./ ;;
4132    */) ;;
4133    *) as_dir=$as_dir/ ;;
4134  esac
4135    for ac_exec_ext in '' $ac_executable_extensions; do
4136  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4137    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4138       ac_prog_rejected=yes
4139       continue
4140     fi
4141    ac_cv_prog_CC="cc"
4142    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4143    break 2
4144  fi
4145done
4146  done
4147IFS=$as_save_IFS
4148
4149if test $ac_prog_rejected = yes; then
4150  # We found a bogon in the path, so make sure we never use it.
4151  set dummy $ac_cv_prog_CC
4152  shift
4153  if test $# != 0; then
4154    # We chose a different compiler from the bogus one.
4155    # However, it has the same basename, so the bogon will be chosen
4156    # first if we set CC to just the basename; use the full file name.
4157    shift
4158    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4159  fi
4160fi
4161fi
4162fi
4163CC=$ac_cv_prog_CC
4164if test -n "$CC"; then
4165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4166printf "%s\n" "$CC" >&6; }
4167else
4168  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169printf "%s\n" "no" >&6; }
4170fi
4171
4172
4173fi
4174if test -z "$CC"; then
4175  if test -n "$ac_tool_prefix"; then
4176  for ac_prog in cl.exe
4177  do
4178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181printf %s "checking for $ac_word... " >&6; }
4182if test ${ac_cv_prog_CC+y}
4183then :
4184  printf %s "(cached) " >&6
4185else $as_nop
4186  if test -n "$CC"; then
4187  ac_cv_prog_CC="$CC" # Let the user override the test.
4188else
4189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190for as_dir in $PATH
4191do
4192  IFS=$as_save_IFS
4193  case $as_dir in #(((
4194    '') as_dir=./ ;;
4195    */) ;;
4196    *) as_dir=$as_dir/ ;;
4197  esac
4198    for ac_exec_ext in '' $ac_executable_extensions; do
4199  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4200    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4201    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4202    break 2
4203  fi
4204done
4205  done
4206IFS=$as_save_IFS
4207
4208fi
4209fi
4210CC=$ac_cv_prog_CC
4211if test -n "$CC"; then
4212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4213printf "%s\n" "$CC" >&6; }
4214else
4215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216printf "%s\n" "no" >&6; }
4217fi
4218
4219
4220    test -n "$CC" && break
4221  done
4222fi
4223if test -z "$CC"; then
4224  ac_ct_CC=$CC
4225  for ac_prog in cl.exe
4226do
4227  # Extract the first word of "$ac_prog", so it can be a program name with args.
4228set dummy $ac_prog; ac_word=$2
4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230printf %s "checking for $ac_word... " >&6; }
4231if test ${ac_cv_prog_ac_ct_CC+y}
4232then :
4233  printf %s "(cached) " >&6
4234else $as_nop
4235  if test -n "$ac_ct_CC"; then
4236  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241  IFS=$as_save_IFS
4242  case $as_dir in #(((
4243    '') as_dir=./ ;;
4244    */) ;;
4245    *) as_dir=$as_dir/ ;;
4246  esac
4247    for ac_exec_ext in '' $ac_executable_extensions; do
4248  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249    ac_cv_prog_ac_ct_CC="$ac_prog"
4250    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254  done
4255IFS=$as_save_IFS
4256
4257fi
4258fi
4259ac_ct_CC=$ac_cv_prog_ac_ct_CC
4260if test -n "$ac_ct_CC"; then
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4262printf "%s\n" "$ac_ct_CC" >&6; }
4263else
4264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265printf "%s\n" "no" >&6; }
4266fi
4267
4268
4269  test -n "$ac_ct_CC" && break
4270done
4271
4272  if test "x$ac_ct_CC" = x; then
4273    CC=""
4274  else
4275    case $cross_compiling:$ac_tool_warned in
4276yes:)
4277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4278printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4279ac_tool_warned=yes ;;
4280esac
4281    CC=$ac_ct_CC
4282  fi
4283fi
4284
4285fi
4286if test -z "$CC"; then
4287  if test -n "$ac_tool_prefix"; then
4288  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4289set dummy ${ac_tool_prefix}clang; ac_word=$2
4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291printf %s "checking for $ac_word... " >&6; }
4292if test ${ac_cv_prog_CC+y}
4293then :
4294  printf %s "(cached) " >&6
4295else $as_nop
4296  if test -n "$CC"; then
4297  ac_cv_prog_CC="$CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302  IFS=$as_save_IFS
4303  case $as_dir in #(((
4304    '') as_dir=./ ;;
4305    */) ;;
4306    *) as_dir=$as_dir/ ;;
4307  esac
4308    for ac_exec_ext in '' $ac_executable_extensions; do
4309  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4310    ac_cv_prog_CC="${ac_tool_prefix}clang"
4311    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4312    break 2
4313  fi
4314done
4315  done
4316IFS=$as_save_IFS
4317
4318fi
4319fi
4320CC=$ac_cv_prog_CC
4321if test -n "$CC"; then
4322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4323printf "%s\n" "$CC" >&6; }
4324else
4325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4326printf "%s\n" "no" >&6; }
4327fi
4328
4329
4330fi
4331if test -z "$ac_cv_prog_CC"; then
4332  ac_ct_CC=$CC
4333  # Extract the first word of "clang", so it can be a program name with args.
4334set dummy clang; ac_word=$2
4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336printf %s "checking for $ac_word... " >&6; }
4337if test ${ac_cv_prog_ac_ct_CC+y}
4338then :
4339  printf %s "(cached) " >&6
4340else $as_nop
4341  if test -n "$ac_ct_CC"; then
4342  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4343else
4344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345for as_dir in $PATH
4346do
4347  IFS=$as_save_IFS
4348  case $as_dir in #(((
4349    '') as_dir=./ ;;
4350    */) ;;
4351    *) as_dir=$as_dir/ ;;
4352  esac
4353    for ac_exec_ext in '' $ac_executable_extensions; do
4354  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4355    ac_cv_prog_ac_ct_CC="clang"
4356    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4357    break 2
4358  fi
4359done
4360  done
4361IFS=$as_save_IFS
4362
4363fi
4364fi
4365ac_ct_CC=$ac_cv_prog_ac_ct_CC
4366if test -n "$ac_ct_CC"; then
4367  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4368printf "%s\n" "$ac_ct_CC" >&6; }
4369else
4370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371printf "%s\n" "no" >&6; }
4372fi
4373
4374  if test "x$ac_ct_CC" = x; then
4375    CC=""
4376  else
4377    case $cross_compiling:$ac_tool_warned in
4378yes:)
4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4380printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381ac_tool_warned=yes ;;
4382esac
4383    CC=$ac_ct_CC
4384  fi
4385else
4386  CC="$ac_cv_prog_CC"
4387fi
4388
4389fi
4390
4391
4392test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4393printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4394as_fn_error $? "no acceptable C compiler found in \$PATH
4395See \`config.log' for more details" "$LINENO" 5; }
4396
4397# Provide some information about the compiler.
4398printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4399set X $ac_compile
4400ac_compiler=$2
4401for ac_option in --version -v -V -qversion -version; do
4402  { { ac_try="$ac_compiler $ac_option >&5"
4403case "(($ac_try" in
4404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405  *) ac_try_echo=$ac_try;;
4406esac
4407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408printf "%s\n" "$ac_try_echo"; } >&5
4409  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4410  ac_status=$?
4411  if test -s conftest.err; then
4412    sed '10a\
4413... rest of stderr output deleted ...
4414         10q' conftest.err >conftest.er1
4415    cat conftest.er1 >&5
4416  fi
4417  rm -f conftest.er1 conftest.err
4418  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419  test $ac_status = 0; }
4420done
4421
4422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h.  */
4424
4425int
4426main (void)
4427{
4428
4429  ;
4430  return 0;
4431}
4432_ACEOF
4433ac_clean_files_save=$ac_clean_files
4434ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4435# Try to create an executable without -o first, disregard a.out.
4436# It will help us diagnose broken compilers, and finding out an intuition
4437# of exeext.
4438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4439printf %s "checking whether the C compiler works... " >&6; }
4440ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4441
4442# The possible output files:
4443ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4444
4445ac_rmfiles=
4446for ac_file in $ac_files
4447do
4448  case $ac_file in
4449    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4450    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4451  esac
4452done
4453rm -f $ac_rmfiles
4454
4455if { { ac_try="$ac_link_default"
4456case "(($ac_try" in
4457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458  *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461printf "%s\n" "$ac_try_echo"; } >&5
4462  (eval "$ac_link_default") 2>&5
4463  ac_status=$?
4464  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465  test $ac_status = 0; }
4466then :
4467  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4468# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4469# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4470# so that the user can short-circuit this test for compilers unknown to
4471# Autoconf.
4472for ac_file in $ac_files ''
4473do
4474  test -f "$ac_file" || continue
4475  case $ac_file in
4476    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4477	;;
4478    [ab].out )
4479	# We found the default executable, but exeext='' is most
4480	# certainly right.
4481	break;;
4482    *.* )
4483	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4484	then :; else
4485	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4486	fi
4487	# We set ac_cv_exeext here because the later test for it is not
4488	# safe: cross compilers may not add the suffix if given an `-o'
4489	# argument, so we may need to know it at that point already.
4490	# Even if this section looks crufty: it has the advantage of
4491	# actually working.
4492	break;;
4493    * )
4494	break;;
4495  esac
4496done
4497test "$ac_cv_exeext" = no && ac_cv_exeext=
4498
4499else $as_nop
4500  ac_file=''
4501fi
4502if test -z "$ac_file"
4503then :
4504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505printf "%s\n" "no" >&6; }
4506printf "%s\n" "$as_me: failed program was:" >&5
4507sed 's/^/| /' conftest.$ac_ext >&5
4508
4509{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4511as_fn_error 77 "C compiler cannot create executables
4512See \`config.log' for more details" "$LINENO" 5; }
4513else $as_nop
4514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4515printf "%s\n" "yes" >&6; }
4516fi
4517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4518printf %s "checking for C compiler default output file name... " >&6; }
4519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4520printf "%s\n" "$ac_file" >&6; }
4521ac_exeext=$ac_cv_exeext
4522
4523rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4524ac_clean_files=$ac_clean_files_save
4525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4526printf %s "checking for suffix of executables... " >&6; }
4527if { { ac_try="$ac_link"
4528case "(($ac_try" in
4529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4530  *) ac_try_echo=$ac_try;;
4531esac
4532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4533printf "%s\n" "$ac_try_echo"; } >&5
4534  (eval "$ac_link") 2>&5
4535  ac_status=$?
4536  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4537  test $ac_status = 0; }
4538then :
4539  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4540# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4541# work properly (i.e., refer to `conftest.exe'), while it won't with
4542# `rm'.
4543for ac_file in conftest.exe conftest conftest.*; do
4544  test -f "$ac_file" || continue
4545  case $ac_file in
4546    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4547    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4548	  break;;
4549    * ) break;;
4550  esac
4551done
4552else $as_nop
4553  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4555as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4556See \`config.log' for more details" "$LINENO" 5; }
4557fi
4558rm -f conftest conftest$ac_cv_exeext
4559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4560printf "%s\n" "$ac_cv_exeext" >&6; }
4561
4562rm -f conftest.$ac_ext
4563EXEEXT=$ac_cv_exeext
4564ac_exeext=$EXEEXT
4565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h.  */
4567#include <stdio.h>
4568int
4569main (void)
4570{
4571FILE *f = fopen ("conftest.out", "w");
4572 return ferror (f) || fclose (f) != 0;
4573
4574  ;
4575  return 0;
4576}
4577_ACEOF
4578ac_clean_files="$ac_clean_files conftest.out"
4579# Check that the compiler produces executables we can run.  If not, either
4580# the compiler is broken, or we cross compile.
4581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4582printf %s "checking whether we are cross compiling... " >&6; }
4583if test "$cross_compiling" != yes; then
4584  { { ac_try="$ac_link"
4585case "(($ac_try" in
4586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587  *) ac_try_echo=$ac_try;;
4588esac
4589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590printf "%s\n" "$ac_try_echo"; } >&5
4591  (eval "$ac_link") 2>&5
4592  ac_status=$?
4593  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594  test $ac_status = 0; }
4595  if { ac_try='./conftest$ac_cv_exeext'
4596  { { case "(($ac_try" in
4597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598  *) ac_try_echo=$ac_try;;
4599esac
4600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601printf "%s\n" "$ac_try_echo"; } >&5
4602  (eval "$ac_try") 2>&5
4603  ac_status=$?
4604  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4605  test $ac_status = 0; }; }; then
4606    cross_compiling=no
4607  else
4608    if test "$cross_compiling" = maybe; then
4609	cross_compiling=yes
4610    else
4611	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error 77 "cannot run C compiled programs.
4614If you meant to cross compile, use \`--host'.
4615See \`config.log' for more details" "$LINENO" 5; }
4616    fi
4617  fi
4618fi
4619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4620printf "%s\n" "$cross_compiling" >&6; }
4621
4622rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4623ac_clean_files=$ac_clean_files_save
4624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4625printf %s "checking for suffix of object files... " >&6; }
4626if test ${ac_cv_objext+y}
4627then :
4628  printf %s "(cached) " >&6
4629else $as_nop
4630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632
4633int
4634main (void)
4635{
4636
4637  ;
4638  return 0;
4639}
4640_ACEOF
4641rm -f conftest.o conftest.obj
4642if { { ac_try="$ac_compile"
4643case "(($ac_try" in
4644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645  *) ac_try_echo=$ac_try;;
4646esac
4647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4648printf "%s\n" "$ac_try_echo"; } >&5
4649  (eval "$ac_compile") 2>&5
4650  ac_status=$?
4651  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4652  test $ac_status = 0; }
4653then :
4654  for ac_file in conftest.o conftest.obj conftest.*; do
4655  test -f "$ac_file" || continue;
4656  case $ac_file in
4657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4658    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4659       break;;
4660  esac
4661done
4662else $as_nop
4663  printf "%s\n" "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4668as_fn_error $? "cannot compute suffix of object files: cannot compile
4669See \`config.log' for more details" "$LINENO" 5; }
4670fi
4671rm -f conftest.$ac_cv_objext conftest.$ac_ext
4672fi
4673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4674printf "%s\n" "$ac_cv_objext" >&6; }
4675OBJEXT=$ac_cv_objext
4676ac_objext=$OBJEXT
4677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4678printf %s "checking whether the compiler supports GNU C... " >&6; }
4679if test ${ac_cv_c_compiler_gnu+y}
4680then :
4681  printf %s "(cached) " >&6
4682else $as_nop
4683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h.  */
4685
4686int
4687main (void)
4688{
4689#ifndef __GNUC__
4690       choke me
4691#endif
4692
4693  ;
4694  return 0;
4695}
4696_ACEOF
4697if ac_fn_c_try_compile "$LINENO"
4698then :
4699  ac_compiler_gnu=yes
4700else $as_nop
4701  ac_compiler_gnu=no
4702fi
4703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4704ac_cv_c_compiler_gnu=$ac_compiler_gnu
4705
4706fi
4707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4708printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4709ac_compiler_gnu=$ac_cv_c_compiler_gnu
4710
4711if test $ac_compiler_gnu = yes; then
4712  GCC=yes
4713else
4714  GCC=
4715fi
4716ac_test_CFLAGS=${CFLAGS+y}
4717ac_save_CFLAGS=$CFLAGS
4718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4719printf %s "checking whether $CC accepts -g... " >&6; }
4720if test ${ac_cv_prog_cc_g+y}
4721then :
4722  printf %s "(cached) " >&6
4723else $as_nop
4724  ac_save_c_werror_flag=$ac_c_werror_flag
4725   ac_c_werror_flag=yes
4726   ac_cv_prog_cc_g=no
4727   CFLAGS="-g"
4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729/* end confdefs.h.  */
4730
4731int
4732main (void)
4733{
4734
4735  ;
4736  return 0;
4737}
4738_ACEOF
4739if ac_fn_c_try_compile "$LINENO"
4740then :
4741  ac_cv_prog_cc_g=yes
4742else $as_nop
4743  CFLAGS=""
4744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h.  */
4746
4747int
4748main (void)
4749{
4750
4751  ;
4752  return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_compile "$LINENO"
4756then :
4757
4758else $as_nop
4759  ac_c_werror_flag=$ac_save_c_werror_flag
4760	 CFLAGS="-g"
4761	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762/* end confdefs.h.  */
4763
4764int
4765main (void)
4766{
4767
4768  ;
4769  return 0;
4770}
4771_ACEOF
4772if ac_fn_c_try_compile "$LINENO"
4773then :
4774  ac_cv_prog_cc_g=yes
4775fi
4776rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4777fi
4778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4781   ac_c_werror_flag=$ac_save_c_werror_flag
4782fi
4783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4784printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4785if test $ac_test_CFLAGS; then
4786  CFLAGS=$ac_save_CFLAGS
4787elif test $ac_cv_prog_cc_g = yes; then
4788  if test "$GCC" = yes; then
4789    CFLAGS="-g -O2"
4790  else
4791    CFLAGS="-g"
4792  fi
4793else
4794  if test "$GCC" = yes; then
4795    CFLAGS="-O2"
4796  else
4797    CFLAGS=
4798  fi
4799fi
4800ac_prog_cc_stdc=no
4801if test x$ac_prog_cc_stdc = xno
4802then :
4803  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4804printf %s "checking for $CC option to enable C11 features... " >&6; }
4805if test ${ac_cv_prog_cc_c11+y}
4806then :
4807  printf %s "(cached) " >&6
4808else $as_nop
4809  ac_cv_prog_cc_c11=no
4810ac_save_CC=$CC
4811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813$ac_c_conftest_c11_program
4814_ACEOF
4815for ac_arg in '' -std=gnu11
4816do
4817  CC="$ac_save_CC $ac_arg"
4818  if ac_fn_c_try_compile "$LINENO"
4819then :
4820  ac_cv_prog_cc_c11=$ac_arg
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.beam
4823  test "x$ac_cv_prog_cc_c11" != "xno" && break
4824done
4825rm -f conftest.$ac_ext
4826CC=$ac_save_CC
4827fi
4828
4829if test "x$ac_cv_prog_cc_c11" = xno
4830then :
4831  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4832printf "%s\n" "unsupported" >&6; }
4833else $as_nop
4834  if test "x$ac_cv_prog_cc_c11" = x
4835then :
4836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4837printf "%s\n" "none needed" >&6; }
4838else $as_nop
4839  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4840printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4841     CC="$CC $ac_cv_prog_cc_c11"
4842fi
4843  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4844  ac_prog_cc_stdc=c11
4845fi
4846fi
4847if test x$ac_prog_cc_stdc = xno
4848then :
4849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4850printf %s "checking for $CC option to enable C99 features... " >&6; }
4851if test ${ac_cv_prog_cc_c99+y}
4852then :
4853  printf %s "(cached) " >&6
4854else $as_nop
4855  ac_cv_prog_cc_c99=no
4856ac_save_CC=$CC
4857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858/* end confdefs.h.  */
4859$ac_c_conftest_c99_program
4860_ACEOF
4861for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4862do
4863  CC="$ac_save_CC $ac_arg"
4864  if ac_fn_c_try_compile "$LINENO"
4865then :
4866  ac_cv_prog_cc_c99=$ac_arg
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.beam
4869  test "x$ac_cv_prog_cc_c99" != "xno" && break
4870done
4871rm -f conftest.$ac_ext
4872CC=$ac_save_CC
4873fi
4874
4875if test "x$ac_cv_prog_cc_c99" = xno
4876then :
4877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4878printf "%s\n" "unsupported" >&6; }
4879else $as_nop
4880  if test "x$ac_cv_prog_cc_c99" = x
4881then :
4882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4883printf "%s\n" "none needed" >&6; }
4884else $as_nop
4885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4886printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4887     CC="$CC $ac_cv_prog_cc_c99"
4888fi
4889  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4890  ac_prog_cc_stdc=c99
4891fi
4892fi
4893if test x$ac_prog_cc_stdc = xno
4894then :
4895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4896printf %s "checking for $CC option to enable C89 features... " >&6; }
4897if test ${ac_cv_prog_cc_c89+y}
4898then :
4899  printf %s "(cached) " >&6
4900else $as_nop
4901  ac_cv_prog_cc_c89=no
4902ac_save_CC=$CC
4903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904/* end confdefs.h.  */
4905$ac_c_conftest_c89_program
4906_ACEOF
4907for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4908do
4909  CC="$ac_save_CC $ac_arg"
4910  if ac_fn_c_try_compile "$LINENO"
4911then :
4912  ac_cv_prog_cc_c89=$ac_arg
4913fi
4914rm -f core conftest.err conftest.$ac_objext conftest.beam
4915  test "x$ac_cv_prog_cc_c89" != "xno" && break
4916done
4917rm -f conftest.$ac_ext
4918CC=$ac_save_CC
4919fi
4920
4921if test "x$ac_cv_prog_cc_c89" = xno
4922then :
4923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4924printf "%s\n" "unsupported" >&6; }
4925else $as_nop
4926  if test "x$ac_cv_prog_cc_c89" = x
4927then :
4928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4929printf "%s\n" "none needed" >&6; }
4930else $as_nop
4931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4932printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4933     CC="$CC $ac_cv_prog_cc_c89"
4934fi
4935  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4936  ac_prog_cc_stdc=c89
4937fi
4938fi
4939
4940ac_ext=c
4941ac_cpp='$CPP $CPPFLAGS'
4942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944ac_compiler_gnu=$ac_cv_c_compiler_gnu
4945
4946
4947  ac_ext=c
4948ac_cpp='$CPP $CPPFLAGS'
4949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4953printf %s "checking whether $CC understands -c and -o together... " >&6; }
4954if test ${am_cv_prog_cc_c_o+y}
4955then :
4956  printf %s "(cached) " >&6
4957else $as_nop
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960
4961int
4962main (void)
4963{
4964
4965  ;
4966  return 0;
4967}
4968_ACEOF
4969  # Make sure it works both with $CC and with simple cc.
4970  # Following AC_PROG_CC_C_O, we do the test twice because some
4971  # compilers refuse to overwrite an existing .o file with -o,
4972  # though they will create one.
4973  am_cv_prog_cc_c_o=yes
4974  for am_i in 1 2; do
4975    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4976   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4977   ac_status=$?
4978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979   (exit $ac_status); } \
4980         && test -f conftest2.$ac_objext; then
4981      : OK
4982    else
4983      am_cv_prog_cc_c_o=no
4984      break
4985    fi
4986  done
4987  rm -f core conftest*
4988  unset am_i
4989fi
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4991printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4992if test "$am_cv_prog_cc_c_o" != yes; then
4993   # Losing compiler, so override with the script.
4994   # FIXME: It is wrong to rewrite CC.
4995   # But if we don't then we get into trouble of one sort or another.
4996   # A longer-term fix would be to have automake use am__CC in this case,
4997   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4998   CC="$am_aux_dir/compile $CC"
4999fi
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005
5006
5007depcc="$CC"   am_compiler_list=
5008
5009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5010printf %s "checking dependency style of $depcc... " >&6; }
5011if test ${am_cv_CC_dependencies_compiler_type+y}
5012then :
5013  printf %s "(cached) " >&6
5014else $as_nop
5015  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5016  # We make a subdir and do the tests there.  Otherwise we can end up
5017  # making bogus files that we don't know about and never remove.  For
5018  # instance it was reported that on HP-UX the gcc test will end up
5019  # making a dummy file named 'D' -- because '-MD' means "put the output
5020  # in D".
5021  rm -rf conftest.dir
5022  mkdir conftest.dir
5023  # Copy depcomp to subdir because otherwise we won't find it if we're
5024  # using a relative directory.
5025  cp "$am_depcomp" conftest.dir
5026  cd conftest.dir
5027  # We will build objects and dependencies in a subdirectory because
5028  # it helps to detect inapplicable dependency modes.  For instance
5029  # both Tru64's cc and ICC support -MD to output dependencies as a
5030  # side effect of compilation, but ICC will put the dependencies in
5031  # the current directory while Tru64 will put them in the object
5032  # directory.
5033  mkdir sub
5034
5035  am_cv_CC_dependencies_compiler_type=none
5036  if test "$am_compiler_list" = ""; then
5037     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5038  fi
5039  am__universal=false
5040  case " $depcc " in #(
5041     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5042     esac
5043
5044  for depmode in $am_compiler_list; do
5045    # Setup a source with many dependencies, because some compilers
5046    # like to wrap large dependency lists on column 80 (with \), and
5047    # we should not choose a depcomp mode which is confused by this.
5048    #
5049    # We need to recreate these files for each test, as the compiler may
5050    # overwrite some of them when testing with obscure command lines.
5051    # This happens at least with the AIX C compiler.
5052    : > sub/conftest.c
5053    for i in 1 2 3 4 5 6; do
5054      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5055      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5056      # Solaris 10 /bin/sh.
5057      echo '/* dummy */' > sub/conftst$i.h
5058    done
5059    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5060
5061    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5062    # mode.  It turns out that the SunPro C++ compiler does not properly
5063    # handle '-M -o', and we need to detect this.  Also, some Intel
5064    # versions had trouble with output in subdirs.
5065    am__obj=sub/conftest.${OBJEXT-o}
5066    am__minus_obj="-o $am__obj"
5067    case $depmode in
5068    gcc)
5069      # This depmode causes a compiler race in universal mode.
5070      test "$am__universal" = false || continue
5071      ;;
5072    nosideeffect)
5073      # After this tag, mechanisms are not by side-effect, so they'll
5074      # only be used when explicitly requested.
5075      if test "x$enable_dependency_tracking" = xyes; then
5076	continue
5077      else
5078	break
5079      fi
5080      ;;
5081    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5082      # This compiler won't grok '-c -o', but also, the minuso test has
5083      # not run yet.  These depmodes are late enough in the game, and
5084      # so weak that their functioning should not be impacted.
5085      am__obj=conftest.${OBJEXT-o}
5086      am__minus_obj=
5087      ;;
5088    none) break ;;
5089    esac
5090    if depmode=$depmode \
5091       source=sub/conftest.c object=$am__obj \
5092       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5093       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5094         >/dev/null 2>conftest.err &&
5095       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5096       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5097       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5098       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5099      # icc doesn't choke on unknown options, it will just issue warnings
5100      # or remarks (even with -Werror).  So we grep stderr for any message
5101      # that says an option was ignored or not supported.
5102      # When given -MP, icc 7.0 and 7.1 complain thusly:
5103      #   icc: Command line warning: ignoring option '-M'; no argument required
5104      # The diagnosis changed in icc 8.0:
5105      #   icc: Command line remark: option '-MP' not supported
5106      if (grep 'ignoring option' conftest.err ||
5107          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5108        am_cv_CC_dependencies_compiler_type=$depmode
5109        break
5110      fi
5111    fi
5112  done
5113
5114  cd ..
5115  rm -rf conftest.dir
5116else
5117  am_cv_CC_dependencies_compiler_type=none
5118fi
5119
5120fi
5121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5122printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5124
5125 if
5126  test "x$enable_dependency_tracking" != xno \
5127  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5128  am__fastdepCC_TRUE=
5129  am__fastdepCC_FALSE='#'
5130else
5131  am__fastdepCC_TRUE='#'
5132  am__fastdepCC_FALSE=
5133fi
5134
5135
5136
5137ac_header= ac_cache=
5138for ac_item in $ac_header_c_list
5139do
5140  if test $ac_cache; then
5141    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5142    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5143      printf "%s\n" "#define $ac_item 1" >> confdefs.h
5144    fi
5145    ac_header= ac_cache=
5146  elif test $ac_header; then
5147    ac_cache=$ac_item
5148  else
5149    ac_header=$ac_item
5150  fi
5151done
5152
5153
5154
5155
5156
5157
5158
5159
5160if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5161then :
5162
5163printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5164
5165fi
5166
5167
5168
5169
5170
5171
5172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5173printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5174if test ${ac_cv_safe_to_define___extensions__+y}
5175then :
5176  printf %s "(cached) " >&6
5177else $as_nop
5178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179/* end confdefs.h.  */
5180
5181#         define __EXTENSIONS__ 1
5182          $ac_includes_default
5183int
5184main (void)
5185{
5186
5187  ;
5188  return 0;
5189}
5190_ACEOF
5191if ac_fn_c_try_compile "$LINENO"
5192then :
5193  ac_cv_safe_to_define___extensions__=yes
5194else $as_nop
5195  ac_cv_safe_to_define___extensions__=no
5196fi
5197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5198fi
5199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5200printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5201
5202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5203printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5204if test ${ac_cv_should_define__xopen_source+y}
5205then :
5206  printf %s "(cached) " >&6
5207else $as_nop
5208  ac_cv_should_define__xopen_source=no
5209    if test $ac_cv_header_wchar_h = yes
5210then :
5211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213
5214          #include <wchar.h>
5215          mbstate_t x;
5216int
5217main (void)
5218{
5219
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224if ac_fn_c_try_compile "$LINENO"
5225then :
5226
5227else $as_nop
5228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h.  */
5230
5231            #define _XOPEN_SOURCE 500
5232            #include <wchar.h>
5233            mbstate_t x;
5234int
5235main (void)
5236{
5237
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242if ac_fn_c_try_compile "$LINENO"
5243then :
5244  ac_cv_should_define__xopen_source=yes
5245fi
5246rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5247fi
5248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249fi
5250fi
5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5252printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5253
5254  printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5255
5256  printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5257
5258  printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5259
5260  printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5261
5262  printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5263
5264  printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5265
5266  printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5267
5268  printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5269
5270  printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5271
5272  printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5273
5274  printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5275
5276  printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5277
5278  printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5279
5280  printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5281
5282  printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5283
5284  if test $ac_cv_header_minix_config_h = yes
5285then :
5286  MINIX=yes
5287    printf "%s\n" "#define _MINIX 1" >>confdefs.h
5288
5289    printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5290
5291    printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5292
5293else $as_nop
5294  MINIX=
5295fi
5296  if test $ac_cv_safe_to_define___extensions__ = yes
5297then :
5298  printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5299
5300fi
5301  if test $ac_cv_should_define__xopen_source = yes
5302then :
5303  printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5304
5305fi
5306
5307# Check whether --enable-largefile was given.
5308if test ${enable_largefile+y}
5309then :
5310  enableval=$enable_largefile;
5311fi
5312
5313if test "$enable_largefile" != no; then
5314
5315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5316printf %s "checking for special C compiler options needed for large files... " >&6; }
5317if test ${ac_cv_sys_largefile_CC+y}
5318then :
5319  printf %s "(cached) " >&6
5320else $as_nop
5321  ac_cv_sys_largefile_CC=no
5322     if test "$GCC" != yes; then
5323       ac_save_CC=$CC
5324       while :; do
5325	 # IRIX 6.2 and later do not support large files by default,
5326	 # so use the C compiler's -n32 option if that helps.
5327	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329#include <sys/types.h>
5330 /* Check that off_t can represent 2**63 - 1 correctly.
5331    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5332    since some C++ compilers masquerading as C compilers
5333    incorrectly reject 9223372036854775807.  */
5334#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5335  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5336		       && LARGE_OFF_T % 2147483647 == 1)
5337		      ? 1 : -1];
5338int
5339main (void)
5340{
5341
5342  ;
5343  return 0;
5344}
5345_ACEOF
5346	 if ac_fn_c_try_compile "$LINENO"
5347then :
5348  break
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.beam
5351	 CC="$CC -n32"
5352	 if ac_fn_c_try_compile "$LINENO"
5353then :
5354  ac_cv_sys_largefile_CC=' -n32'; break
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.beam
5357	 break
5358       done
5359       CC=$ac_save_CC
5360       rm -f conftest.$ac_ext
5361    fi
5362fi
5363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5364printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
5365  if test "$ac_cv_sys_largefile_CC" != no; then
5366    CC=$CC$ac_cv_sys_largefile_CC
5367  fi
5368
5369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5370printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5371if test ${ac_cv_sys_file_offset_bits+y}
5372then :
5373  printf %s "(cached) " >&6
5374else $as_nop
5375  while :; do
5376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h.  */
5378#include <sys/types.h>
5379 /* Check that off_t can represent 2**63 - 1 correctly.
5380    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381    since some C++ compilers masquerading as C compilers
5382    incorrectly reject 9223372036854775807.  */
5383#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5384  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385		       && LARGE_OFF_T % 2147483647 == 1)
5386		      ? 1 : -1];
5387int
5388main (void)
5389{
5390
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_compile "$LINENO"
5396then :
5397  ac_cv_sys_file_offset_bits=no; break
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401/* end confdefs.h.  */
5402#define _FILE_OFFSET_BITS 64
5403#include <sys/types.h>
5404 /* Check that off_t can represent 2**63 - 1 correctly.
5405    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5406    since some C++ compilers masquerading as C compilers
5407    incorrectly reject 9223372036854775807.  */
5408#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5409  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5410		       && LARGE_OFF_T % 2147483647 == 1)
5411		      ? 1 : -1];
5412int
5413main (void)
5414{
5415
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420if ac_fn_c_try_compile "$LINENO"
5421then :
5422  ac_cv_sys_file_offset_bits=64; break
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5425  ac_cv_sys_file_offset_bits=unknown
5426  break
5427done
5428fi
5429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5430printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5431case $ac_cv_sys_file_offset_bits in #(
5432  no | unknown) ;;
5433  *)
5434printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5435;;
5436esac
5437rm -rf conftest*
5438  if test $ac_cv_sys_file_offset_bits = unknown; then
5439    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5440printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5441if test ${ac_cv_sys_large_files+y}
5442then :
5443  printf %s "(cached) " >&6
5444else $as_nop
5445  while :; do
5446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h.  */
5448#include <sys/types.h>
5449 /* Check that off_t can represent 2**63 - 1 correctly.
5450    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5451    since some C++ compilers masquerading as C compilers
5452    incorrectly reject 9223372036854775807.  */
5453#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5454  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5455		       && LARGE_OFF_T % 2147483647 == 1)
5456		      ? 1 : -1];
5457int
5458main (void)
5459{
5460
5461  ;
5462  return 0;
5463}
5464_ACEOF
5465if ac_fn_c_try_compile "$LINENO"
5466then :
5467  ac_cv_sys_large_files=no; break
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h.  */
5472#define _LARGE_FILES 1
5473#include <sys/types.h>
5474 /* Check that off_t can represent 2**63 - 1 correctly.
5475    We can't simply define LARGE_OFF_T to be 9223372036854775807,
5476    since some C++ compilers masquerading as C compilers
5477    incorrectly reject 9223372036854775807.  */
5478#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5479  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5480		       && LARGE_OFF_T % 2147483647 == 1)
5481		      ? 1 : -1];
5482int
5483main (void)
5484{
5485
5486  ;
5487  return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"
5491then :
5492  ac_cv_sys_large_files=1; break
5493fi
5494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5495  ac_cv_sys_large_files=unknown
5496  break
5497done
5498fi
5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5500printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5501case $ac_cv_sys_large_files in #(
5502  no | unknown) ;;
5503  *)
5504printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5505;;
5506esac
5507rm -rf conftest*
5508  fi
5509fi
5510
5511
5512# Initialize libtool
5513
5514case `pwd` in
5515  *\ * | *\	*)
5516    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5517printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5518esac
5519
5520
5521
5522macro_version='2.4.7'
5523macro_revision='2.4.7'
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538ltmain=$ac_aux_dir/ltmain.sh
5539
5540
5541
5542  # Make sure we can run config.sub.
5543$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5544  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5545
5546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5547printf %s "checking build system type... " >&6; }
5548if test ${ac_cv_build+y}
5549then :
5550  printf %s "(cached) " >&6
5551else $as_nop
5552  ac_build_alias=$build_alias
5553test "x$ac_build_alias" = x &&
5554  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5555test "x$ac_build_alias" = x &&
5556  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5557ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5558  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5559
5560fi
5561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5562printf "%s\n" "$ac_cv_build" >&6; }
5563case $ac_cv_build in
5564*-*-*) ;;
5565*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5566esac
5567build=$ac_cv_build
5568ac_save_IFS=$IFS; IFS='-'
5569set x $ac_cv_build
5570shift
5571build_cpu=$1
5572build_vendor=$2
5573shift; shift
5574# Remember, the first character of IFS is used to create $*,
5575# except with old shells:
5576build_os=$*
5577IFS=$ac_save_IFS
5578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5579
5580
5581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5582printf %s "checking host system type... " >&6; }
5583if test ${ac_cv_host+y}
5584then :
5585  printf %s "(cached) " >&6
5586else $as_nop
5587  if test "x$host_alias" = x; then
5588  ac_cv_host=$ac_cv_build
5589else
5590  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5591    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5592fi
5593
5594fi
5595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5596printf "%s\n" "$ac_cv_host" >&6; }
5597case $ac_cv_host in
5598*-*-*) ;;
5599*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5600esac
5601host=$ac_cv_host
5602ac_save_IFS=$IFS; IFS='-'
5603set x $ac_cv_host
5604shift
5605host_cpu=$1
5606host_vendor=$2
5607shift; shift
5608# Remember, the first character of IFS is used to create $*,
5609# except with old shells:
5610host_os=$*
5611IFS=$ac_save_IFS
5612case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5613
5614
5615# Backslashify metacharacters that are still active within
5616# double-quoted strings.
5617sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5618
5619# Same as above, but do not quote variable references.
5620double_quote_subst='s/\(["`\\]\)/\\\1/g'
5621
5622# Sed substitution to delay expansion of an escaped shell variable in a
5623# double_quote_subst'ed string.
5624delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5625
5626# Sed substitution to delay expansion of an escaped single quote.
5627delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5628
5629# Sed substitution to avoid accidental globbing in evaled expressions
5630no_glob_subst='s/\*/\\\*/g'
5631
5632ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5633ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5634ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5635
5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5637printf %s "checking how to print strings... " >&6; }
5638# Test print first, because it will be a builtin if present.
5639if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5640   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5641  ECHO='print -r --'
5642elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5643  ECHO='printf %s\n'
5644else
5645  # Use this function as a fallback that always works.
5646  func_fallback_echo ()
5647  {
5648    eval 'cat <<_LTECHO_EOF
5649$1
5650_LTECHO_EOF'
5651  }
5652  ECHO='func_fallback_echo'
5653fi
5654
5655# func_echo_all arg...
5656# Invoke $ECHO with all args, space-separated.
5657func_echo_all ()
5658{
5659    $ECHO ""
5660}
5661
5662case $ECHO in
5663  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5664printf "%s\n" "printf" >&6; } ;;
5665  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5666printf "%s\n" "print -r" >&6; } ;;
5667  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5668printf "%s\n" "cat" >&6; } ;;
5669esac
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5685printf %s "checking for a sed that does not truncate output... " >&6; }
5686if test ${ac_cv_path_SED+y}
5687then :
5688  printf %s "(cached) " >&6
5689else $as_nop
5690            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5691     for ac_i in 1 2 3 4 5 6 7; do
5692       ac_script="$ac_script$as_nl$ac_script"
5693     done
5694     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5695     { ac_script=; unset ac_script;}
5696     if test -z "$SED"; then
5697  ac_path_SED_found=false
5698  # Loop through the user's path and test for each of PROGNAME-LIST
5699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702  IFS=$as_save_IFS
5703  case $as_dir in #(((
5704    '') as_dir=./ ;;
5705    */) ;;
5706    *) as_dir=$as_dir/ ;;
5707  esac
5708    for ac_prog in sed gsed
5709   do
5710    for ac_exec_ext in '' $ac_executable_extensions; do
5711      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5712      as_fn_executable_p "$ac_path_SED" || continue
5713# Check for GNU ac_path_SED and select it if it is found.
5714  # Check for GNU $ac_path_SED
5715case `"$ac_path_SED" --version 2>&1` in
5716*GNU*)
5717  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5718*)
5719  ac_count=0
5720  printf %s 0123456789 >"conftest.in"
5721  while :
5722  do
5723    cat "conftest.in" "conftest.in" >"conftest.tmp"
5724    mv "conftest.tmp" "conftest.in"
5725    cp "conftest.in" "conftest.nl"
5726    printf "%s\n" '' >> "conftest.nl"
5727    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729    as_fn_arith $ac_count + 1 && ac_count=$as_val
5730    if test $ac_count -gt ${ac_path_SED_max-0}; then
5731      # Best one so far, save it but keep looking for a better one
5732      ac_cv_path_SED="$ac_path_SED"
5733      ac_path_SED_max=$ac_count
5734    fi
5735    # 10*(2^10) chars as input seems more than enough
5736    test $ac_count -gt 10 && break
5737  done
5738  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739esac
5740
5741      $ac_path_SED_found && break 3
5742    done
5743  done
5744  done
5745IFS=$as_save_IFS
5746  if test -z "$ac_cv_path_SED"; then
5747    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5748  fi
5749else
5750  ac_cv_path_SED=$SED
5751fi
5752
5753fi
5754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5755printf "%s\n" "$ac_cv_path_SED" >&6; }
5756 SED="$ac_cv_path_SED"
5757  rm -f conftest.sed
5758
5759test -z "$SED" && SED=sed
5760Xsed="$SED -e 1s/^X//"
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5773printf %s "checking for grep that handles long lines and -e... " >&6; }
5774if test ${ac_cv_path_GREP+y}
5775then :
5776  printf %s "(cached) " >&6
5777else $as_nop
5778  if test -z "$GREP"; then
5779  ac_path_GREP_found=false
5780  # Loop through the user's path and test for each of PROGNAME-LIST
5781  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5783do
5784  IFS=$as_save_IFS
5785  case $as_dir in #(((
5786    '') as_dir=./ ;;
5787    */) ;;
5788    *) as_dir=$as_dir/ ;;
5789  esac
5790    for ac_prog in grep ggrep
5791   do
5792    for ac_exec_ext in '' $ac_executable_extensions; do
5793      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5794      as_fn_executable_p "$ac_path_GREP" || continue
5795# Check for GNU ac_path_GREP and select it if it is found.
5796  # Check for GNU $ac_path_GREP
5797case `"$ac_path_GREP" --version 2>&1` in
5798*GNU*)
5799  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5800*)
5801  ac_count=0
5802  printf %s 0123456789 >"conftest.in"
5803  while :
5804  do
5805    cat "conftest.in" "conftest.in" >"conftest.tmp"
5806    mv "conftest.tmp" "conftest.in"
5807    cp "conftest.in" "conftest.nl"
5808    printf "%s\n" 'GREP' >> "conftest.nl"
5809    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5810    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5811    as_fn_arith $ac_count + 1 && ac_count=$as_val
5812    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5813      # Best one so far, save it but keep looking for a better one
5814      ac_cv_path_GREP="$ac_path_GREP"
5815      ac_path_GREP_max=$ac_count
5816    fi
5817    # 10*(2^10) chars as input seems more than enough
5818    test $ac_count -gt 10 && break
5819  done
5820  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5821esac
5822
5823      $ac_path_GREP_found && break 3
5824    done
5825  done
5826  done
5827IFS=$as_save_IFS
5828  if test -z "$ac_cv_path_GREP"; then
5829    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5830  fi
5831else
5832  ac_cv_path_GREP=$GREP
5833fi
5834
5835fi
5836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5837printf "%s\n" "$ac_cv_path_GREP" >&6; }
5838 GREP="$ac_cv_path_GREP"
5839
5840
5841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5842printf %s "checking for egrep... " >&6; }
5843if test ${ac_cv_path_EGREP+y}
5844then :
5845  printf %s "(cached) " >&6
5846else $as_nop
5847  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5848   then ac_cv_path_EGREP="$GREP -E"
5849   else
5850     if test -z "$EGREP"; then
5851  ac_path_EGREP_found=false
5852  # Loop through the user's path and test for each of PROGNAME-LIST
5853  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5855do
5856  IFS=$as_save_IFS
5857  case $as_dir in #(((
5858    '') as_dir=./ ;;
5859    */) ;;
5860    *) as_dir=$as_dir/ ;;
5861  esac
5862    for ac_prog in egrep
5863   do
5864    for ac_exec_ext in '' $ac_executable_extensions; do
5865      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5866      as_fn_executable_p "$ac_path_EGREP" || continue
5867# Check for GNU ac_path_EGREP and select it if it is found.
5868  # Check for GNU $ac_path_EGREP
5869case `"$ac_path_EGREP" --version 2>&1` in
5870*GNU*)
5871  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5872*)
5873  ac_count=0
5874  printf %s 0123456789 >"conftest.in"
5875  while :
5876  do
5877    cat "conftest.in" "conftest.in" >"conftest.tmp"
5878    mv "conftest.tmp" "conftest.in"
5879    cp "conftest.in" "conftest.nl"
5880    printf "%s\n" 'EGREP' >> "conftest.nl"
5881    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5882    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5883    as_fn_arith $ac_count + 1 && ac_count=$as_val
5884    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5885      # Best one so far, save it but keep looking for a better one
5886      ac_cv_path_EGREP="$ac_path_EGREP"
5887      ac_path_EGREP_max=$ac_count
5888    fi
5889    # 10*(2^10) chars as input seems more than enough
5890    test $ac_count -gt 10 && break
5891  done
5892  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5893esac
5894
5895      $ac_path_EGREP_found && break 3
5896    done
5897  done
5898  done
5899IFS=$as_save_IFS
5900  if test -z "$ac_cv_path_EGREP"; then
5901    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5902  fi
5903else
5904  ac_cv_path_EGREP=$EGREP
5905fi
5906
5907   fi
5908fi
5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5910printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5911 EGREP="$ac_cv_path_EGREP"
5912
5913
5914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5915printf %s "checking for fgrep... " >&6; }
5916if test ${ac_cv_path_FGREP+y}
5917then :
5918  printf %s "(cached) " >&6
5919else $as_nop
5920  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5921   then ac_cv_path_FGREP="$GREP -F"
5922   else
5923     if test -z "$FGREP"; then
5924  ac_path_FGREP_found=false
5925  # Loop through the user's path and test for each of PROGNAME-LIST
5926  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5928do
5929  IFS=$as_save_IFS
5930  case $as_dir in #(((
5931    '') as_dir=./ ;;
5932    */) ;;
5933    *) as_dir=$as_dir/ ;;
5934  esac
5935    for ac_prog in fgrep
5936   do
5937    for ac_exec_ext in '' $ac_executable_extensions; do
5938      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5939      as_fn_executable_p "$ac_path_FGREP" || continue
5940# Check for GNU ac_path_FGREP and select it if it is found.
5941  # Check for GNU $ac_path_FGREP
5942case `"$ac_path_FGREP" --version 2>&1` in
5943*GNU*)
5944  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5945*)
5946  ac_count=0
5947  printf %s 0123456789 >"conftest.in"
5948  while :
5949  do
5950    cat "conftest.in" "conftest.in" >"conftest.tmp"
5951    mv "conftest.tmp" "conftest.in"
5952    cp "conftest.in" "conftest.nl"
5953    printf "%s\n" 'FGREP' >> "conftest.nl"
5954    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5955    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5956    as_fn_arith $ac_count + 1 && ac_count=$as_val
5957    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5958      # Best one so far, save it but keep looking for a better one
5959      ac_cv_path_FGREP="$ac_path_FGREP"
5960      ac_path_FGREP_max=$ac_count
5961    fi
5962    # 10*(2^10) chars as input seems more than enough
5963    test $ac_count -gt 10 && break
5964  done
5965  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5966esac
5967
5968      $ac_path_FGREP_found && break 3
5969    done
5970  done
5971  done
5972IFS=$as_save_IFS
5973  if test -z "$ac_cv_path_FGREP"; then
5974    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5975  fi
5976else
5977  ac_cv_path_FGREP=$FGREP
5978fi
5979
5980   fi
5981fi
5982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5983printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5984 FGREP="$ac_cv_path_FGREP"
5985
5986
5987test -z "$GREP" && GREP=grep
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007# Check whether --with-gnu-ld was given.
6008if test ${with_gnu_ld+y}
6009then :
6010  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6011else $as_nop
6012  with_gnu_ld=no
6013fi
6014
6015ac_prog=ld
6016if test yes = "$GCC"; then
6017  # Check if gcc -print-prog-name=ld gives a path.
6018  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6019printf %s "checking for ld used by $CC... " >&6; }
6020  case $host in
6021  *-*-mingw*)
6022    # gcc leaves a trailing carriage return, which upsets mingw
6023    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6024  *)
6025    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6026  esac
6027  case $ac_prog in
6028    # Accept absolute paths.
6029    [\\/]* | ?:[\\/]*)
6030      re_direlt='/[^/][^/]*/\.\./'
6031      # Canonicalize the pathname of ld
6032      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6033      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6034	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6035      done
6036      test -z "$LD" && LD=$ac_prog
6037      ;;
6038  "")
6039    # If it fails, then pretend we aren't using GCC.
6040    ac_prog=ld
6041    ;;
6042  *)
6043    # If it is relative, then search for the first ld in PATH.
6044    with_gnu_ld=unknown
6045    ;;
6046  esac
6047elif test yes = "$with_gnu_ld"; then
6048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6049printf %s "checking for GNU ld... " >&6; }
6050else
6051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6052printf %s "checking for non-GNU ld... " >&6; }
6053fi
6054if test ${lt_cv_path_LD+y}
6055then :
6056  printf %s "(cached) " >&6
6057else $as_nop
6058  if test -z "$LD"; then
6059  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6060  for ac_dir in $PATH; do
6061    IFS=$lt_save_ifs
6062    test -z "$ac_dir" && ac_dir=.
6063    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6064      lt_cv_path_LD=$ac_dir/$ac_prog
6065      # Check to see if the program is GNU ld.  I'd rather use --version,
6066      # but apparently some variants of GNU ld only accept -v.
6067      # Break only if it was the GNU/non-GNU ld that we prefer.
6068      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6069      *GNU* | *'with BFD'*)
6070	test no != "$with_gnu_ld" && break
6071	;;
6072      *)
6073	test yes != "$with_gnu_ld" && break
6074	;;
6075      esac
6076    fi
6077  done
6078  IFS=$lt_save_ifs
6079else
6080  lt_cv_path_LD=$LD # Let the user override the test with a path.
6081fi
6082fi
6083
6084LD=$lt_cv_path_LD
6085if test -n "$LD"; then
6086  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6087printf "%s\n" "$LD" >&6; }
6088else
6089  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6090printf "%s\n" "no" >&6; }
6091fi
6092test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6094printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6095if test ${lt_cv_prog_gnu_ld+y}
6096then :
6097  printf %s "(cached) " >&6
6098else $as_nop
6099  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6100case `$LD -v 2>&1 </dev/null` in
6101*GNU* | *'with BFD'*)
6102  lt_cv_prog_gnu_ld=yes
6103  ;;
6104*)
6105  lt_cv_prog_gnu_ld=no
6106  ;;
6107esac
6108fi
6109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6110printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6111with_gnu_ld=$lt_cv_prog_gnu_ld
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6122printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6123if test ${lt_cv_path_NM+y}
6124then :
6125  printf %s "(cached) " >&6
6126else $as_nop
6127  if test -n "$NM"; then
6128  # Let the user override the test.
6129  lt_cv_path_NM=$NM
6130else
6131  lt_nm_to_check=${ac_tool_prefix}nm
6132  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6133    lt_nm_to_check="$lt_nm_to_check nm"
6134  fi
6135  for lt_tmp_nm in $lt_nm_to_check; do
6136    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6137    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6138      IFS=$lt_save_ifs
6139      test -z "$ac_dir" && ac_dir=.
6140      tmp_nm=$ac_dir/$lt_tmp_nm
6141      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6142	# Check to see if the nm accepts a BSD-compat flag.
6143	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6144	#   nm: unknown option "B" ignored
6145	# Tru64's nm complains that /dev/null is an invalid object file
6146	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6147	case $build_os in
6148	mingw*) lt_bad_file=conftest.nm/nofile ;;
6149	*) lt_bad_file=/dev/null ;;
6150	esac
6151	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6152	*$lt_bad_file* | *'Invalid file or object type'*)
6153	  lt_cv_path_NM="$tmp_nm -B"
6154	  break 2
6155	  ;;
6156	*)
6157	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6158	  */dev/null*)
6159	    lt_cv_path_NM="$tmp_nm -p"
6160	    break 2
6161	    ;;
6162	  *)
6163	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6164	    continue # so that we can try to find one that supports BSD flags
6165	    ;;
6166	  esac
6167	  ;;
6168	esac
6169      fi
6170    done
6171    IFS=$lt_save_ifs
6172  done
6173  : ${lt_cv_path_NM=no}
6174fi
6175fi
6176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6177printf "%s\n" "$lt_cv_path_NM" >&6; }
6178if test no != "$lt_cv_path_NM"; then
6179  NM=$lt_cv_path_NM
6180else
6181  # Didn't find any BSD compatible name lister, look for dumpbin.
6182  if test -n "$DUMPBIN"; then :
6183    # Let the user override the test.
6184  else
6185    if test -n "$ac_tool_prefix"; then
6186  for ac_prog in dumpbin "link -dump"
6187  do
6188    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191printf %s "checking for $ac_word... " >&6; }
6192if test ${ac_cv_prog_DUMPBIN+y}
6193then :
6194  printf %s "(cached) " >&6
6195else $as_nop
6196  if test -n "$DUMPBIN"; then
6197  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6198else
6199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200for as_dir in $PATH
6201do
6202  IFS=$as_save_IFS
6203  case $as_dir in #(((
6204    '') as_dir=./ ;;
6205    */) ;;
6206    *) as_dir=$as_dir/ ;;
6207  esac
6208    for ac_exec_ext in '' $ac_executable_extensions; do
6209  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6210    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6211    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6212    break 2
6213  fi
6214done
6215  done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220DUMPBIN=$ac_cv_prog_DUMPBIN
6221if test -n "$DUMPBIN"; then
6222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6223printf "%s\n" "$DUMPBIN" >&6; }
6224else
6225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226printf "%s\n" "no" >&6; }
6227fi
6228
6229
6230    test -n "$DUMPBIN" && break
6231  done
6232fi
6233if test -z "$DUMPBIN"; then
6234  ac_ct_DUMPBIN=$DUMPBIN
6235  for ac_prog in dumpbin "link -dump"
6236do
6237  # Extract the first word of "$ac_prog", so it can be a program name with args.
6238set dummy $ac_prog; ac_word=$2
6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240printf %s "checking for $ac_word... " >&6; }
6241if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6242then :
6243  printf %s "(cached) " >&6
6244else $as_nop
6245  if test -n "$ac_ct_DUMPBIN"; then
6246  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6247else
6248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249for as_dir in $PATH
6250do
6251  IFS=$as_save_IFS
6252  case $as_dir in #(((
6253    '') as_dir=./ ;;
6254    */) ;;
6255    *) as_dir=$as_dir/ ;;
6256  esac
6257    for ac_exec_ext in '' $ac_executable_extensions; do
6258  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6259    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6260    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6261    break 2
6262  fi
6263done
6264  done
6265IFS=$as_save_IFS
6266
6267fi
6268fi
6269ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6270if test -n "$ac_ct_DUMPBIN"; then
6271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6272printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6273else
6274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275printf "%s\n" "no" >&6; }
6276fi
6277
6278
6279  test -n "$ac_ct_DUMPBIN" && break
6280done
6281
6282  if test "x$ac_ct_DUMPBIN" = x; then
6283    DUMPBIN=":"
6284  else
6285    case $cross_compiling:$ac_tool_warned in
6286yes:)
6287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289ac_tool_warned=yes ;;
6290esac
6291    DUMPBIN=$ac_ct_DUMPBIN
6292  fi
6293fi
6294
6295    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6296    *COFF*)
6297      DUMPBIN="$DUMPBIN -symbols -headers"
6298      ;;
6299    *)
6300      DUMPBIN=:
6301      ;;
6302    esac
6303  fi
6304
6305  if test : != "$DUMPBIN"; then
6306    NM=$DUMPBIN
6307  fi
6308fi
6309test -z "$NM" && NM=nm
6310
6311
6312
6313
6314
6315
6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6317printf %s "checking the name lister ($NM) interface... " >&6; }
6318if test ${lt_cv_nm_interface+y}
6319then :
6320  printf %s "(cached) " >&6
6321else $as_nop
6322  lt_cv_nm_interface="BSD nm"
6323  echo "int some_variable = 0;" > conftest.$ac_ext
6324  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6325  (eval "$ac_compile" 2>conftest.err)
6326  cat conftest.err >&5
6327  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6328  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6329  cat conftest.err >&5
6330  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6331  cat conftest.out >&5
6332  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6333    lt_cv_nm_interface="MS dumpbin"
6334  fi
6335  rm -f conftest*
6336fi
6337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6338printf "%s\n" "$lt_cv_nm_interface" >&6; }
6339
6340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6341printf %s "checking whether ln -s works... " >&6; }
6342LN_S=$as_ln_s
6343if test "$LN_S" = "ln -s"; then
6344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6345printf "%s\n" "yes" >&6; }
6346else
6347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6348printf "%s\n" "no, using $LN_S" >&6; }
6349fi
6350
6351# find the maximum length of command line arguments
6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6353printf %s "checking the maximum length of command line arguments... " >&6; }
6354if test ${lt_cv_sys_max_cmd_len+y}
6355then :
6356  printf %s "(cached) " >&6
6357else $as_nop
6358    i=0
6359  teststring=ABCD
6360
6361  case $build_os in
6362  msdosdjgpp*)
6363    # On DJGPP, this test can blow up pretty badly due to problems in libc
6364    # (any single argument exceeding 2000 bytes causes a buffer overrun
6365    # during glob expansion).  Even if it were fixed, the result of this
6366    # check would be larger than it should be.
6367    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6368    ;;
6369
6370  gnu*)
6371    # Under GNU Hurd, this test is not required because there is
6372    # no limit to the length of command line arguments.
6373    # Libtool will interpret -1 as no limit whatsoever
6374    lt_cv_sys_max_cmd_len=-1;
6375    ;;
6376
6377  cygwin* | mingw* | cegcc*)
6378    # On Win9x/ME, this test blows up -- it succeeds, but takes
6379    # about 5 minutes as the teststring grows exponentially.
6380    # Worse, since 9x/ME are not pre-emptively multitasking,
6381    # you end up with a "frozen" computer, even though with patience
6382    # the test eventually succeeds (with a max line length of 256k).
6383    # Instead, let's just punt: use the minimum linelength reported by
6384    # all of the supported platforms: 8192 (on NT/2K/XP).
6385    lt_cv_sys_max_cmd_len=8192;
6386    ;;
6387
6388  mint*)
6389    # On MiNT this can take a long time and run out of memory.
6390    lt_cv_sys_max_cmd_len=8192;
6391    ;;
6392
6393  amigaos*)
6394    # On AmigaOS with pdksh, this test takes hours, literally.
6395    # So we just punt and use a minimum line length of 8192.
6396    lt_cv_sys_max_cmd_len=8192;
6397    ;;
6398
6399  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6400    # This has been around since 386BSD, at least.  Likely further.
6401    if test -x /sbin/sysctl; then
6402      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6403    elif test -x /usr/sbin/sysctl; then
6404      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6405    else
6406      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6407    fi
6408    # And add a safety zone
6409    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6410    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6411    ;;
6412
6413  interix*)
6414    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6415    lt_cv_sys_max_cmd_len=196608
6416    ;;
6417
6418  os2*)
6419    # The test takes a long time on OS/2.
6420    lt_cv_sys_max_cmd_len=8192
6421    ;;
6422
6423  osf*)
6424    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6425    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6426    # nice to cause kernel panics so lets avoid the loop below.
6427    # First set a reasonable default.
6428    lt_cv_sys_max_cmd_len=16384
6429    #
6430    if test -x /sbin/sysconfig; then
6431      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6432        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6433      esac
6434    fi
6435    ;;
6436  sco3.2v5*)
6437    lt_cv_sys_max_cmd_len=102400
6438    ;;
6439  sysv5* | sco5v6* | sysv4.2uw2*)
6440    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6441    if test -n "$kargmax"; then
6442      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
6443    else
6444      lt_cv_sys_max_cmd_len=32768
6445    fi
6446    ;;
6447  *)
6448    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6449    if test -n "$lt_cv_sys_max_cmd_len" && \
6450       test undefined != "$lt_cv_sys_max_cmd_len"; then
6451      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6452      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6453    else
6454      # Make teststring a little bigger before we do anything with it.
6455      # a 1K string should be a reasonable start.
6456      for i in 1 2 3 4 5 6 7 8; do
6457        teststring=$teststring$teststring
6458      done
6459      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6460      # If test is not a shell built-in, we'll probably end up computing a
6461      # maximum length that is only half of the actual maximum length, but
6462      # we can't tell.
6463      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6464	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6465	      test 17 != "$i" # 1/2 MB should be enough
6466      do
6467        i=`expr $i + 1`
6468        teststring=$teststring$teststring
6469      done
6470      # Only check the string length outside the loop.
6471      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6472      teststring=
6473      # Add a significant safety factor because C++ compilers can tack on
6474      # massive amounts of additional arguments before passing them to the
6475      # linker.  It appears as though 1/2 is a usable value.
6476      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6477    fi
6478    ;;
6479  esac
6480
6481fi
6482
6483if test -n "$lt_cv_sys_max_cmd_len"; then
6484  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6485printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6486else
6487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6488printf "%s\n" "none" >&6; }
6489fi
6490max_cmd_len=$lt_cv_sys_max_cmd_len
6491
6492
6493
6494
6495
6496
6497: ${CP="cp -f"}
6498: ${MV="mv -f"}
6499: ${RM="rm -f"}
6500
6501if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6502  lt_unset=unset
6503else
6504  lt_unset=false
6505fi
6506
6507
6508
6509
6510
6511# test EBCDIC or ASCII
6512case `echo X|tr X '\101'` in
6513 A) # ASCII based system
6514    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6515  lt_SP2NL='tr \040 \012'
6516  lt_NL2SP='tr \015\012 \040\040'
6517  ;;
6518 *) # EBCDIC based system
6519  lt_SP2NL='tr \100 \n'
6520  lt_NL2SP='tr \r\n \100\100'
6521  ;;
6522esac
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6533printf %s "checking how to convert $build file names to $host format... " >&6; }
6534if test ${lt_cv_to_host_file_cmd+y}
6535then :
6536  printf %s "(cached) " >&6
6537else $as_nop
6538  case $host in
6539  *-*-mingw* )
6540    case $build in
6541      *-*-mingw* ) # actually msys
6542        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6543        ;;
6544      *-*-cygwin* )
6545        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6546        ;;
6547      * ) # otherwise, assume *nix
6548        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6549        ;;
6550    esac
6551    ;;
6552  *-*-cygwin* )
6553    case $build in
6554      *-*-mingw* ) # actually msys
6555        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6556        ;;
6557      *-*-cygwin* )
6558        lt_cv_to_host_file_cmd=func_convert_file_noop
6559        ;;
6560      * ) # otherwise, assume *nix
6561        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6562        ;;
6563    esac
6564    ;;
6565  * ) # unhandled hosts (and "normal" native builds)
6566    lt_cv_to_host_file_cmd=func_convert_file_noop
6567    ;;
6568esac
6569
6570fi
6571
6572to_host_file_cmd=$lt_cv_to_host_file_cmd
6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6574printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6575
6576
6577
6578
6579
6580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6581printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6582if test ${lt_cv_to_tool_file_cmd+y}
6583then :
6584  printf %s "(cached) " >&6
6585else $as_nop
6586  #assume ordinary cross tools, or native build.
6587lt_cv_to_tool_file_cmd=func_convert_file_noop
6588case $host in
6589  *-*-mingw* )
6590    case $build in
6591      *-*-mingw* ) # actually msys
6592        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6593        ;;
6594    esac
6595    ;;
6596esac
6597
6598fi
6599
6600to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6602printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6603
6604
6605
6606
6607
6608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6609printf %s "checking for $LD option to reload object files... " >&6; }
6610if test ${lt_cv_ld_reload_flag+y}
6611then :
6612  printf %s "(cached) " >&6
6613else $as_nop
6614  lt_cv_ld_reload_flag='-r'
6615fi
6616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6617printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6618reload_flag=$lt_cv_ld_reload_flag
6619case $reload_flag in
6620"" | " "*) ;;
6621*) reload_flag=" $reload_flag" ;;
6622esac
6623reload_cmds='$LD$reload_flag -o $output$reload_objs'
6624case $host_os in
6625  cygwin* | mingw* | pw32* | cegcc*)
6626    if test yes != "$GCC"; then
6627      reload_cmds=false
6628    fi
6629    ;;
6630  darwin*)
6631    if test yes = "$GCC"; then
6632      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6633    else
6634      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6635    fi
6636    ;;
6637esac
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647if test -n "$ac_tool_prefix"; then
6648  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6649set dummy ${ac_tool_prefix}file; ac_word=$2
6650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6651printf %s "checking for $ac_word... " >&6; }
6652if test ${ac_cv_prog_FILECMD+y}
6653then :
6654  printf %s "(cached) " >&6
6655else $as_nop
6656  if test -n "$FILECMD"; then
6657  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  case $as_dir in #(((
6664    '') as_dir=./ ;;
6665    */) ;;
6666    *) as_dir=$as_dir/ ;;
6667  esac
6668    for ac_exec_ext in '' $ac_executable_extensions; do
6669  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6670    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6671    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6672    break 2
6673  fi
6674done
6675  done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680FILECMD=$ac_cv_prog_FILECMD
6681if test -n "$FILECMD"; then
6682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6683printf "%s\n" "$FILECMD" >&6; }
6684else
6685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686printf "%s\n" "no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_FILECMD"; then
6692  ac_ct_FILECMD=$FILECMD
6693  # Extract the first word of "file", so it can be a program name with args.
6694set dummy file; ac_word=$2
6695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696printf %s "checking for $ac_word... " >&6; }
6697if test ${ac_cv_prog_ac_ct_FILECMD+y}
6698then :
6699  printf %s "(cached) " >&6
6700else $as_nop
6701  if test -n "$ac_ct_FILECMD"; then
6702  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6703else
6704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705for as_dir in $PATH
6706do
6707  IFS=$as_save_IFS
6708  case $as_dir in #(((
6709    '') as_dir=./ ;;
6710    */) ;;
6711    *) as_dir=$as_dir/ ;;
6712  esac
6713    for ac_exec_ext in '' $ac_executable_extensions; do
6714  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6715    ac_cv_prog_ac_ct_FILECMD="file"
6716    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6717    break 2
6718  fi
6719done
6720  done
6721IFS=$as_save_IFS
6722
6723fi
6724fi
6725ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6726if test -n "$ac_ct_FILECMD"; then
6727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6728printf "%s\n" "$ac_ct_FILECMD" >&6; }
6729else
6730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731printf "%s\n" "no" >&6; }
6732fi
6733
6734  if test "x$ac_ct_FILECMD" = x; then
6735    FILECMD=":"
6736  else
6737    case $cross_compiling:$ac_tool_warned in
6738yes:)
6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741ac_tool_warned=yes ;;
6742esac
6743    FILECMD=$ac_ct_FILECMD
6744  fi
6745else
6746  FILECMD="$ac_cv_prog_FILECMD"
6747fi
6748
6749
6750
6751
6752
6753
6754
6755if test -n "$ac_tool_prefix"; then
6756  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}objdump; ac_word=$2
6758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759printf %s "checking for $ac_word... " >&6; }
6760if test ${ac_cv_prog_OBJDUMP+y}
6761then :
6762  printf %s "(cached) " >&6
6763else $as_nop
6764  if test -n "$OBJDUMP"; then
6765  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6766else
6767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768for as_dir in $PATH
6769do
6770  IFS=$as_save_IFS
6771  case $as_dir in #(((
6772    '') as_dir=./ ;;
6773    */) ;;
6774    *) as_dir=$as_dir/ ;;
6775  esac
6776    for ac_exec_ext in '' $ac_executable_extensions; do
6777  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6778    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6779    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6780    break 2
6781  fi
6782done
6783  done
6784IFS=$as_save_IFS
6785
6786fi
6787fi
6788OBJDUMP=$ac_cv_prog_OBJDUMP
6789if test -n "$OBJDUMP"; then
6790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6791printf "%s\n" "$OBJDUMP" >&6; }
6792else
6793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794printf "%s\n" "no" >&6; }
6795fi
6796
6797
6798fi
6799if test -z "$ac_cv_prog_OBJDUMP"; then
6800  ac_ct_OBJDUMP=$OBJDUMP
6801  # Extract the first word of "objdump", so it can be a program name with args.
6802set dummy objdump; ac_word=$2
6803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804printf %s "checking for $ac_word... " >&6; }
6805if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6806then :
6807  printf %s "(cached) " >&6
6808else $as_nop
6809  if test -n "$ac_ct_OBJDUMP"; then
6810  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6811else
6812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813for as_dir in $PATH
6814do
6815  IFS=$as_save_IFS
6816  case $as_dir in #(((
6817    '') as_dir=./ ;;
6818    */) ;;
6819    *) as_dir=$as_dir/ ;;
6820  esac
6821    for ac_exec_ext in '' $ac_executable_extensions; do
6822  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6823    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6824    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6825    break 2
6826  fi
6827done
6828  done
6829IFS=$as_save_IFS
6830
6831fi
6832fi
6833ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6834if test -n "$ac_ct_OBJDUMP"; then
6835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6836printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6837else
6838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839printf "%s\n" "no" >&6; }
6840fi
6841
6842  if test "x$ac_ct_OBJDUMP" = x; then
6843    OBJDUMP="false"
6844  else
6845    case $cross_compiling:$ac_tool_warned in
6846yes:)
6847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849ac_tool_warned=yes ;;
6850esac
6851    OBJDUMP=$ac_ct_OBJDUMP
6852  fi
6853else
6854  OBJDUMP="$ac_cv_prog_OBJDUMP"
6855fi
6856
6857test -z "$OBJDUMP" && OBJDUMP=objdump
6858
6859
6860
6861
6862
6863
6864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6865printf %s "checking how to recognize dependent libraries... " >&6; }
6866if test ${lt_cv_deplibs_check_method+y}
6867then :
6868  printf %s "(cached) " >&6
6869else $as_nop
6870  lt_cv_file_magic_cmd='$MAGIC_CMD'
6871lt_cv_file_magic_test_file=
6872lt_cv_deplibs_check_method='unknown'
6873# Need to set the preceding variable on all platforms that support
6874# interlibrary dependencies.
6875# 'none' -- dependencies not supported.
6876# 'unknown' -- same as none, but documents that we really don't know.
6877# 'pass_all' -- all dependencies passed with no checks.
6878# 'test_compile' -- check by making test program.
6879# 'file_magic [[regex]]' -- check by looking for files in library path
6880# that responds to the $file_magic_cmd with a given extended regex.
6881# If you have 'file' or equivalent on your system and you're not sure
6882# whether 'pass_all' will *always* work, you probably want this one.
6883
6884case $host_os in
6885aix[4-9]*)
6886  lt_cv_deplibs_check_method=pass_all
6887  ;;
6888
6889beos*)
6890  lt_cv_deplibs_check_method=pass_all
6891  ;;
6892
6893bsdi[45]*)
6894  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6895  lt_cv_file_magic_cmd='$FILECMD -L'
6896  lt_cv_file_magic_test_file=/shlib/libc.so
6897  ;;
6898
6899cygwin*)
6900  # func_win32_libid is a shell function defined in ltmain.sh
6901  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6902  lt_cv_file_magic_cmd='func_win32_libid'
6903  ;;
6904
6905mingw* | pw32*)
6906  # Base MSYS/MinGW do not provide the 'file' command needed by
6907  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6908  # unless we find 'file', for example because we are cross-compiling.
6909  if ( file / ) >/dev/null 2>&1; then
6910    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6911    lt_cv_file_magic_cmd='func_win32_libid'
6912  else
6913    # Keep this pattern in sync with the one in func_win32_libid.
6914    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6915    lt_cv_file_magic_cmd='$OBJDUMP -f'
6916  fi
6917  ;;
6918
6919cegcc*)
6920  # use the weaker test based on 'objdump'. See mingw*.
6921  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6922  lt_cv_file_magic_cmd='$OBJDUMP -f'
6923  ;;
6924
6925darwin* | rhapsody*)
6926  lt_cv_deplibs_check_method=pass_all
6927  ;;
6928
6929freebsd* | dragonfly* | midnightbsd*)
6930  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6931    case $host_cpu in
6932    i*86 )
6933      # Not sure whether the presence of OpenBSD here was a mistake.
6934      # Let's accept both of them until this is cleared up.
6935      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6936      lt_cv_file_magic_cmd=$FILECMD
6937      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6938      ;;
6939    esac
6940  else
6941    lt_cv_deplibs_check_method=pass_all
6942  fi
6943  ;;
6944
6945haiku*)
6946  lt_cv_deplibs_check_method=pass_all
6947  ;;
6948
6949hpux10.20* | hpux11*)
6950  lt_cv_file_magic_cmd=$FILECMD
6951  case $host_cpu in
6952  ia64*)
6953    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6954    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6955    ;;
6956  hppa*64*)
6957    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]'
6958    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6959    ;;
6960  *)
6961    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6962    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6963    ;;
6964  esac
6965  ;;
6966
6967interix[3-9]*)
6968  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6969  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6970  ;;
6971
6972irix5* | irix6* | nonstopux*)
6973  case $LD in
6974  *-32|*"-32 ") libmagic=32-bit;;
6975  *-n32|*"-n32 ") libmagic=N32;;
6976  *-64|*"-64 ") libmagic=64-bit;;
6977  *) libmagic=never-match;;
6978  esac
6979  lt_cv_deplibs_check_method=pass_all
6980  ;;
6981
6982# This must be glibc/ELF.
6983linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6984  lt_cv_deplibs_check_method=pass_all
6985  ;;
6986
6987netbsd*)
6988  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6989    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6990  else
6991    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6992  fi
6993  ;;
6994
6995newos6*)
6996  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6997  lt_cv_file_magic_cmd=$FILECMD
6998  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6999  ;;
7000
7001*nto* | *qnx*)
7002  lt_cv_deplibs_check_method=pass_all
7003  ;;
7004
7005openbsd* | bitrig*)
7006  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7007    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7008  else
7009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7010  fi
7011  ;;
7012
7013osf3* | osf4* | osf5*)
7014  lt_cv_deplibs_check_method=pass_all
7015  ;;
7016
7017rdos*)
7018  lt_cv_deplibs_check_method=pass_all
7019  ;;
7020
7021solaris*)
7022  lt_cv_deplibs_check_method=pass_all
7023  ;;
7024
7025sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7026  lt_cv_deplibs_check_method=pass_all
7027  ;;
7028
7029sysv4 | sysv4.3*)
7030  case $host_vendor in
7031  motorola)
7032    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]'
7033    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7034    ;;
7035  ncr)
7036    lt_cv_deplibs_check_method=pass_all
7037    ;;
7038  sequent)
7039    lt_cv_file_magic_cmd='/bin/file'
7040    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7041    ;;
7042  sni)
7043    lt_cv_file_magic_cmd='/bin/file'
7044    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7045    lt_cv_file_magic_test_file=/lib/libc.so
7046    ;;
7047  siemens)
7048    lt_cv_deplibs_check_method=pass_all
7049    ;;
7050  pc)
7051    lt_cv_deplibs_check_method=pass_all
7052    ;;
7053  esac
7054  ;;
7055
7056tpf*)
7057  lt_cv_deplibs_check_method=pass_all
7058  ;;
7059os2*)
7060  lt_cv_deplibs_check_method=pass_all
7061  ;;
7062esac
7063
7064fi
7065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7066printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7067
7068file_magic_glob=
7069want_nocaseglob=no
7070if test "$build" = "$host"; then
7071  case $host_os in
7072  mingw* | pw32*)
7073    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7074      want_nocaseglob=yes
7075    else
7076      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7077    fi
7078    ;;
7079  esac
7080fi
7081
7082file_magic_cmd=$lt_cv_file_magic_cmd
7083deplibs_check_method=$lt_cv_deplibs_check_method
7084test -z "$deplibs_check_method" && deplibs_check_method=unknown
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107if test -n "$ac_tool_prefix"; then
7108  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7109set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111printf %s "checking for $ac_word... " >&6; }
7112if test ${ac_cv_prog_DLLTOOL+y}
7113then :
7114  printf %s "(cached) " >&6
7115else $as_nop
7116  if test -n "$DLLTOOL"; then
7117  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122  IFS=$as_save_IFS
7123  case $as_dir in #(((
7124    '') as_dir=./ ;;
7125    */) ;;
7126    *) as_dir=$as_dir/ ;;
7127  esac
7128    for ac_exec_ext in '' $ac_executable_extensions; do
7129  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7130    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7131    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7132    break 2
7133  fi
7134done
7135  done
7136IFS=$as_save_IFS
7137
7138fi
7139fi
7140DLLTOOL=$ac_cv_prog_DLLTOOL
7141if test -n "$DLLTOOL"; then
7142  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7143printf "%s\n" "$DLLTOOL" >&6; }
7144else
7145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146printf "%s\n" "no" >&6; }
7147fi
7148
7149
7150fi
7151if test -z "$ac_cv_prog_DLLTOOL"; then
7152  ac_ct_DLLTOOL=$DLLTOOL
7153  # Extract the first word of "dlltool", so it can be a program name with args.
7154set dummy dlltool; ac_word=$2
7155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156printf %s "checking for $ac_word... " >&6; }
7157if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7158then :
7159  printf %s "(cached) " >&6
7160else $as_nop
7161  if test -n "$ac_ct_DLLTOOL"; then
7162  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7163else
7164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167  IFS=$as_save_IFS
7168  case $as_dir in #(((
7169    '') as_dir=./ ;;
7170    */) ;;
7171    *) as_dir=$as_dir/ ;;
7172  esac
7173    for ac_exec_ext in '' $ac_executable_extensions; do
7174  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7175    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7176    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7177    break 2
7178  fi
7179done
7180  done
7181IFS=$as_save_IFS
7182
7183fi
7184fi
7185ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7186if test -n "$ac_ct_DLLTOOL"; then
7187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7188printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7189else
7190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191printf "%s\n" "no" >&6; }
7192fi
7193
7194  if test "x$ac_ct_DLLTOOL" = x; then
7195    DLLTOOL="false"
7196  else
7197    case $cross_compiling:$ac_tool_warned in
7198yes:)
7199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201ac_tool_warned=yes ;;
7202esac
7203    DLLTOOL=$ac_ct_DLLTOOL
7204  fi
7205else
7206  DLLTOOL="$ac_cv_prog_DLLTOOL"
7207fi
7208
7209test -z "$DLLTOOL" && DLLTOOL=dlltool
7210
7211
7212
7213
7214
7215
7216
7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7218printf %s "checking how to associate runtime and link libraries... " >&6; }
7219if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7220then :
7221  printf %s "(cached) " >&6
7222else $as_nop
7223  lt_cv_sharedlib_from_linklib_cmd='unknown'
7224
7225case $host_os in
7226cygwin* | mingw* | pw32* | cegcc*)
7227  # two different shell functions defined in ltmain.sh;
7228  # decide which one to use based on capabilities of $DLLTOOL
7229  case `$DLLTOOL --help 2>&1` in
7230  *--identify-strict*)
7231    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7232    ;;
7233  *)
7234    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7235    ;;
7236  esac
7237  ;;
7238*)
7239  # fallback: assume linklib IS sharedlib
7240  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7241  ;;
7242esac
7243
7244fi
7245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7246printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7247sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7248test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7249
7250
7251
7252
7253
7254
7255
7256if test -n "$ac_tool_prefix"; then
7257  for ac_prog in ar
7258  do
7259    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262printf %s "checking for $ac_word... " >&6; }
7263if test ${ac_cv_prog_AR+y}
7264then :
7265  printf %s "(cached) " >&6
7266else $as_nop
7267  if test -n "$AR"; then
7268  ac_cv_prog_AR="$AR" # Let the user override the test.
7269else
7270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273  IFS=$as_save_IFS
7274  case $as_dir in #(((
7275    '') as_dir=./ ;;
7276    */) ;;
7277    *) as_dir=$as_dir/ ;;
7278  esac
7279    for ac_exec_ext in '' $ac_executable_extensions; do
7280  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7281    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7282    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7283    break 2
7284  fi
7285done
7286  done
7287IFS=$as_save_IFS
7288
7289fi
7290fi
7291AR=$ac_cv_prog_AR
7292if test -n "$AR"; then
7293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7294printf "%s\n" "$AR" >&6; }
7295else
7296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297printf "%s\n" "no" >&6; }
7298fi
7299
7300
7301    test -n "$AR" && break
7302  done
7303fi
7304if test -z "$AR"; then
7305  ac_ct_AR=$AR
7306  for ac_prog in ar
7307do
7308  # Extract the first word of "$ac_prog", so it can be a program name with args.
7309set dummy $ac_prog; ac_word=$2
7310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311printf %s "checking for $ac_word... " >&6; }
7312if test ${ac_cv_prog_ac_ct_AR+y}
7313then :
7314  printf %s "(cached) " >&6
7315else $as_nop
7316  if test -n "$ac_ct_AR"; then
7317  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7318else
7319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322  IFS=$as_save_IFS
7323  case $as_dir in #(((
7324    '') as_dir=./ ;;
7325    */) ;;
7326    *) as_dir=$as_dir/ ;;
7327  esac
7328    for ac_exec_ext in '' $ac_executable_extensions; do
7329  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7330    ac_cv_prog_ac_ct_AR="$ac_prog"
7331    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7332    break 2
7333  fi
7334done
7335  done
7336IFS=$as_save_IFS
7337
7338fi
7339fi
7340ac_ct_AR=$ac_cv_prog_ac_ct_AR
7341if test -n "$ac_ct_AR"; then
7342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7343printf "%s\n" "$ac_ct_AR" >&6; }
7344else
7345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346printf "%s\n" "no" >&6; }
7347fi
7348
7349
7350  test -n "$ac_ct_AR" && break
7351done
7352
7353  if test "x$ac_ct_AR" = x; then
7354    AR="false"
7355  else
7356    case $cross_compiling:$ac_tool_warned in
7357yes:)
7358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360ac_tool_warned=yes ;;
7361esac
7362    AR=$ac_ct_AR
7363  fi
7364fi
7365
7366: ${AR=ar}
7367
7368
7369
7370
7371
7372
7373# Use ARFLAGS variable as AR's operation code to sync the variable naming with
7374# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7375# higher priority because thats what people were doing historically (setting
7376# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
7377# variable obsoleted/removed.
7378
7379test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7380lt_ar_flags=$AR_FLAGS
7381
7382
7383
7384
7385
7386
7387# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
7388# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7389
7390
7391
7392
7393
7394
7395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7396printf %s "checking for archiver @FILE support... " >&6; }
7397if test ${lt_cv_ar_at_file+y}
7398then :
7399  printf %s "(cached) " >&6
7400else $as_nop
7401  lt_cv_ar_at_file=no
7402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404
7405int
7406main (void)
7407{
7408
7409  ;
7410  return 0;
7411}
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"
7414then :
7415  echo conftest.$ac_objext > conftest.lst
7416      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7417      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7418  (eval $lt_ar_try) 2>&5
7419  ac_status=$?
7420  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7421  test $ac_status = 0; }
7422      if test 0 -eq "$ac_status"; then
7423	# Ensure the archiver fails upon bogus file names.
7424	rm -f conftest.$ac_objext libconftest.a
7425	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7426  (eval $lt_ar_try) 2>&5
7427  ac_status=$?
7428  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7429  test $ac_status = 0; }
7430	if test 0 -ne "$ac_status"; then
7431          lt_cv_ar_at_file=@
7432        fi
7433      fi
7434      rm -f conftest.* libconftest.a
7435
7436fi
7437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7438
7439fi
7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7441printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7442
7443if test no = "$lt_cv_ar_at_file"; then
7444  archiver_list_spec=
7445else
7446  archiver_list_spec=$lt_cv_ar_at_file
7447fi
7448
7449
7450
7451
7452
7453
7454
7455if test -n "$ac_tool_prefix"; then
7456  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7457set dummy ${ac_tool_prefix}strip; ac_word=$2
7458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7459printf %s "checking for $ac_word... " >&6; }
7460if test ${ac_cv_prog_STRIP+y}
7461then :
7462  printf %s "(cached) " >&6
7463else $as_nop
7464  if test -n "$STRIP"; then
7465  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7466else
7467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468for as_dir in $PATH
7469do
7470  IFS=$as_save_IFS
7471  case $as_dir in #(((
7472    '') as_dir=./ ;;
7473    */) ;;
7474    *) as_dir=$as_dir/ ;;
7475  esac
7476    for ac_exec_ext in '' $ac_executable_extensions; do
7477  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7478    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7479    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7480    break 2
7481  fi
7482done
7483  done
7484IFS=$as_save_IFS
7485
7486fi
7487fi
7488STRIP=$ac_cv_prog_STRIP
7489if test -n "$STRIP"; then
7490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7491printf "%s\n" "$STRIP" >&6; }
7492else
7493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494printf "%s\n" "no" >&6; }
7495fi
7496
7497
7498fi
7499if test -z "$ac_cv_prog_STRIP"; then
7500  ac_ct_STRIP=$STRIP
7501  # Extract the first word of "strip", so it can be a program name with args.
7502set dummy strip; ac_word=$2
7503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504printf %s "checking for $ac_word... " >&6; }
7505if test ${ac_cv_prog_ac_ct_STRIP+y}
7506then :
7507  printf %s "(cached) " >&6
7508else $as_nop
7509  if test -n "$ac_ct_STRIP"; then
7510  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7511else
7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513for as_dir in $PATH
7514do
7515  IFS=$as_save_IFS
7516  case $as_dir in #(((
7517    '') as_dir=./ ;;
7518    */) ;;
7519    *) as_dir=$as_dir/ ;;
7520  esac
7521    for ac_exec_ext in '' $ac_executable_extensions; do
7522  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7523    ac_cv_prog_ac_ct_STRIP="strip"
7524    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7525    break 2
7526  fi
7527done
7528  done
7529IFS=$as_save_IFS
7530
7531fi
7532fi
7533ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7534if test -n "$ac_ct_STRIP"; then
7535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7536printf "%s\n" "$ac_ct_STRIP" >&6; }
7537else
7538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539printf "%s\n" "no" >&6; }
7540fi
7541
7542  if test "x$ac_ct_STRIP" = x; then
7543    STRIP=":"
7544  else
7545    case $cross_compiling:$ac_tool_warned in
7546yes:)
7547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7548printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7549ac_tool_warned=yes ;;
7550esac
7551    STRIP=$ac_ct_STRIP
7552  fi
7553else
7554  STRIP="$ac_cv_prog_STRIP"
7555fi
7556
7557test -z "$STRIP" && STRIP=:
7558
7559
7560
7561
7562
7563
7564if test -n "$ac_tool_prefix"; then
7565  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7566set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568printf %s "checking for $ac_word... " >&6; }
7569if test ${ac_cv_prog_RANLIB+y}
7570then :
7571  printf %s "(cached) " >&6
7572else $as_nop
7573  if test -n "$RANLIB"; then
7574  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579  IFS=$as_save_IFS
7580  case $as_dir in #(((
7581    '') as_dir=./ ;;
7582    */) ;;
7583    *) as_dir=$as_dir/ ;;
7584  esac
7585    for ac_exec_ext in '' $ac_executable_extensions; do
7586  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7587    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7588    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7589    break 2
7590  fi
7591done
7592  done
7593IFS=$as_save_IFS
7594
7595fi
7596fi
7597RANLIB=$ac_cv_prog_RANLIB
7598if test -n "$RANLIB"; then
7599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7600printf "%s\n" "$RANLIB" >&6; }
7601else
7602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603printf "%s\n" "no" >&6; }
7604fi
7605
7606
7607fi
7608if test -z "$ac_cv_prog_RANLIB"; then
7609  ac_ct_RANLIB=$RANLIB
7610  # Extract the first word of "ranlib", so it can be a program name with args.
7611set dummy ranlib; ac_word=$2
7612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613printf %s "checking for $ac_word... " >&6; }
7614if test ${ac_cv_prog_ac_ct_RANLIB+y}
7615then :
7616  printf %s "(cached) " >&6
7617else $as_nop
7618  if test -n "$ac_ct_RANLIB"; then
7619  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7620else
7621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624  IFS=$as_save_IFS
7625  case $as_dir in #(((
7626    '') as_dir=./ ;;
7627    */) ;;
7628    *) as_dir=$as_dir/ ;;
7629  esac
7630    for ac_exec_ext in '' $ac_executable_extensions; do
7631  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7632    ac_cv_prog_ac_ct_RANLIB="ranlib"
7633    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7634    break 2
7635  fi
7636done
7637  done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7643if test -n "$ac_ct_RANLIB"; then
7644  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7645printf "%s\n" "$ac_ct_RANLIB" >&6; }
7646else
7647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648printf "%s\n" "no" >&6; }
7649fi
7650
7651  if test "x$ac_ct_RANLIB" = x; then
7652    RANLIB=":"
7653  else
7654    case $cross_compiling:$ac_tool_warned in
7655yes:)
7656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7657printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7658ac_tool_warned=yes ;;
7659esac
7660    RANLIB=$ac_ct_RANLIB
7661  fi
7662else
7663  RANLIB="$ac_cv_prog_RANLIB"
7664fi
7665
7666test -z "$RANLIB" && RANLIB=:
7667
7668
7669
7670
7671
7672
7673# Determine commands to create old-style static archives.
7674old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7675old_postinstall_cmds='chmod 644 $oldlib'
7676old_postuninstall_cmds=
7677
7678if test -n "$RANLIB"; then
7679  case $host_os in
7680  bitrig* | openbsd*)
7681    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7682    ;;
7683  *)
7684    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7685    ;;
7686  esac
7687  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7688fi
7689
7690case $host_os in
7691  darwin*)
7692    lock_old_archive_extraction=yes ;;
7693  *)
7694    lock_old_archive_extraction=no ;;
7695esac
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735# If no C compiler was specified, use CC.
7736LTCC=${LTCC-"$CC"}
7737
7738# If no C compiler flags were specified, use CFLAGS.
7739LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7740
7741# Allow CC to be a program name with arguments.
7742compiler=$CC
7743
7744
7745# Check for command to grab the raw symbol name followed by C symbol from nm.
7746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7747printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7748if test ${lt_cv_sys_global_symbol_pipe+y}
7749then :
7750  printf %s "(cached) " >&6
7751else $as_nop
7752
7753# These are sane defaults that work on at least a few old systems.
7754# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7755
7756# Character class describing NM global symbol codes.
7757symcode='[BCDEGRST]'
7758
7759# Regexp to match symbols that can be accessed directly from C.
7760sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7761
7762# Define system-specific variables.
7763case $host_os in
7764aix*)
7765  symcode='[BCDT]'
7766  ;;
7767cygwin* | mingw* | pw32* | cegcc*)
7768  symcode='[ABCDGISTW]'
7769  ;;
7770hpux*)
7771  if test ia64 = "$host_cpu"; then
7772    symcode='[ABCDEGRST]'
7773  fi
7774  ;;
7775irix* | nonstopux*)
7776  symcode='[BCDEGRST]'
7777  ;;
7778osf*)
7779  symcode='[BCDEGQRST]'
7780  ;;
7781solaris*)
7782  symcode='[BDRT]'
7783  ;;
7784sco3.2v5*)
7785  symcode='[DT]'
7786  ;;
7787sysv4.2uw2*)
7788  symcode='[DT]'
7789  ;;
7790sysv5* | sco5v6* | unixware* | OpenUNIX*)
7791  symcode='[ABDT]'
7792  ;;
7793sysv4)
7794  symcode='[DFNSTU]'
7795  ;;
7796esac
7797
7798# If we're using GNU nm, then use its standard symbol codes.
7799case `$NM -V 2>&1` in
7800*GNU* | *'with BFD'*)
7801  symcode='[ABCDGIRSTW]' ;;
7802esac
7803
7804if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7805  # Gets list of data symbols to import.
7806  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7807  # Adjust the below global symbol transforms to fixup imported variables.
7808  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7809  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7810  lt_c_name_lib_hook="\
7811  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7812  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7813else
7814  # Disable hooks by default.
7815  lt_cv_sys_global_symbol_to_import=
7816  lt_cdecl_hook=
7817  lt_c_name_hook=
7818  lt_c_name_lib_hook=
7819fi
7820
7821# Transform an extracted symbol line into a proper C declaration.
7822# Some systems (esp. on ia64) link data and code symbols differently,
7823# so use this general approach.
7824lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7825$lt_cdecl_hook\
7826" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7827" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7828
7829# Transform an extracted symbol line into symbol name and symbol address
7830lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7831$lt_c_name_hook\
7832" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7833" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7834
7835# Transform an extracted symbol line into symbol name with lib prefix and
7836# symbol address.
7837lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7838$lt_c_name_lib_hook\
7839" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7840" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7841" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7842
7843# Handle CRLF in mingw tool chain
7844opt_cr=
7845case $build_os in
7846mingw*)
7847  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7848  ;;
7849esac
7850
7851# Try without a prefix underscore, then with it.
7852for ac_symprfx in "" "_"; do
7853
7854  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7855  symxfrm="\\1 $ac_symprfx\\2 \\2"
7856
7857  # Write the raw and C identifiers.
7858  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7859    # Fake it for dumpbin and say T for any non-static function,
7860    # D for any global variable and I for any imported variable.
7861    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7862    # which start with @ or ?.
7863    lt_cv_sys_global_symbol_pipe="$AWK '"\
7864"     {last_section=section; section=\$ 3};"\
7865"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7866"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7867"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7868"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7869"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7870"     \$ 0!~/External *\|/{next};"\
7871"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7872"     {if(hide[section]) next};"\
7873"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7874"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7875"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7876"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7877"     ' prfx=^$ac_symprfx"
7878  else
7879    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7880  fi
7881  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7882
7883  # Check to see that the pipe works correctly.
7884  pipe_works=no
7885
7886  rm -f conftest*
7887  cat > conftest.$ac_ext <<_LT_EOF
7888#ifdef __cplusplus
7889extern "C" {
7890#endif
7891char nm_test_var;
7892void nm_test_func(void);
7893void nm_test_func(void){}
7894#ifdef __cplusplus
7895}
7896#endif
7897int main(){nm_test_var='a';nm_test_func();return(0);}
7898_LT_EOF
7899
7900  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7901  (eval $ac_compile) 2>&5
7902  ac_status=$?
7903  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904  test $ac_status = 0; }; then
7905    # Now try to grab the symbols.
7906    nlist=conftest.nm
7907    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7908  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7909  ac_status=$?
7910  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911  test $ac_status = 0; } && test -s "$nlist"; then
7912      # Try sorting and uniquifying the output.
7913      if sort "$nlist" | uniq > "$nlist"T; then
7914	mv -f "$nlist"T "$nlist"
7915      else
7916	rm -f "$nlist"T
7917      fi
7918
7919      # Make sure that we snagged all the symbols we need.
7920      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7921	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7922	  cat <<_LT_EOF > conftest.$ac_ext
7923/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7924#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7925/* DATA imports from DLLs on WIN32 can't be const, because runtime
7926   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7927# define LT_DLSYM_CONST
7928#elif defined __osf__
7929/* This system does not cope well with relocations in const data.  */
7930# define LT_DLSYM_CONST
7931#else
7932# define LT_DLSYM_CONST const
7933#endif
7934
7935#ifdef __cplusplus
7936extern "C" {
7937#endif
7938
7939_LT_EOF
7940	  # Now generate the symbol file.
7941	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7942
7943	  cat <<_LT_EOF >> conftest.$ac_ext
7944
7945/* The mapping between symbol names and symbols.  */
7946LT_DLSYM_CONST struct {
7947  const char *name;
7948  void       *address;
7949}
7950lt__PROGRAM__LTX_preloaded_symbols[] =
7951{
7952  { "@PROGRAM@", (void *) 0 },
7953_LT_EOF
7954	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7955	  cat <<\_LT_EOF >> conftest.$ac_ext
7956  {0, (void *) 0}
7957};
7958
7959/* This works around a problem in FreeBSD linker */
7960#ifdef FREEBSD_WORKAROUND
7961static const void *lt_preloaded_setup() {
7962  return lt__PROGRAM__LTX_preloaded_symbols;
7963}
7964#endif
7965
7966#ifdef __cplusplus
7967}
7968#endif
7969_LT_EOF
7970	  # Now try linking the two files.
7971	  mv conftest.$ac_objext conftstm.$ac_objext
7972	  lt_globsym_save_LIBS=$LIBS
7973	  lt_globsym_save_CFLAGS=$CFLAGS
7974	  LIBS=conftstm.$ac_objext
7975	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7976	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7977  (eval $ac_link) 2>&5
7978  ac_status=$?
7979  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7980  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7981	    pipe_works=yes
7982	  fi
7983	  LIBS=$lt_globsym_save_LIBS
7984	  CFLAGS=$lt_globsym_save_CFLAGS
7985	else
7986	  echo "cannot find nm_test_func in $nlist" >&5
7987	fi
7988      else
7989	echo "cannot find nm_test_var in $nlist" >&5
7990      fi
7991    else
7992      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7993    fi
7994  else
7995    echo "$progname: failed program was:" >&5
7996    cat conftest.$ac_ext >&5
7997  fi
7998  rm -rf conftest* conftst*
7999
8000  # Do not use the global_symbol_pipe unless it works.
8001  if test yes = "$pipe_works"; then
8002    break
8003  else
8004    lt_cv_sys_global_symbol_pipe=
8005  fi
8006done
8007
8008fi
8009
8010if test -z "$lt_cv_sys_global_symbol_pipe"; then
8011  lt_cv_sys_global_symbol_to_cdecl=
8012fi
8013if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8014  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8015printf "%s\n" "failed" >&6; }
8016else
8017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8018printf "%s\n" "ok" >&6; }
8019fi
8020
8021# Response file support.
8022if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8023  nm_file_list_spec='@'
8024elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8025  nm_file_list_spec='@'
8026fi
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8065printf %s "checking for sysroot... " >&6; }
8066
8067# Check whether --with-sysroot was given.
8068if test ${with_sysroot+y}
8069then :
8070  withval=$with_sysroot;
8071else $as_nop
8072  with_sysroot=no
8073fi
8074
8075
8076lt_sysroot=
8077case $with_sysroot in #(
8078 yes)
8079   if test yes = "$GCC"; then
8080     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8081   fi
8082   ;; #(
8083 /*)
8084   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8085   ;; #(
8086 no|'')
8087   ;; #(
8088 *)
8089   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8090printf "%s\n" "$with_sysroot" >&6; }
8091   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8092   ;;
8093esac
8094
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8096printf "%s\n" "${lt_sysroot:-no}" >&6; }
8097
8098
8099
8100
8101
8102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8103printf %s "checking for a working dd... " >&6; }
8104if test ${ac_cv_path_lt_DD+y}
8105then :
8106  printf %s "(cached) " >&6
8107else $as_nop
8108  printf 0123456789abcdef0123456789abcdef >conftest.i
8109cat conftest.i conftest.i >conftest2.i
8110: ${lt_DD:=$DD}
8111if test -z "$lt_DD"; then
8112  ac_path_lt_DD_found=false
8113  # Loop through the user's path and test for each of PROGNAME-LIST
8114  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115for as_dir in $PATH
8116do
8117  IFS=$as_save_IFS
8118  case $as_dir in #(((
8119    '') as_dir=./ ;;
8120    */) ;;
8121    *) as_dir=$as_dir/ ;;
8122  esac
8123    for ac_prog in dd
8124   do
8125    for ac_exec_ext in '' $ac_executable_extensions; do
8126      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8127      as_fn_executable_p "$ac_path_lt_DD" || continue
8128if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8129  cmp -s conftest.i conftest.out \
8130  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8131fi
8132      $ac_path_lt_DD_found && break 3
8133    done
8134  done
8135  done
8136IFS=$as_save_IFS
8137  if test -z "$ac_cv_path_lt_DD"; then
8138    :
8139  fi
8140else
8141  ac_cv_path_lt_DD=$lt_DD
8142fi
8143
8144rm -f conftest.i conftest2.i conftest.out
8145fi
8146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8147printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8148
8149
8150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8151printf %s "checking how to truncate binary pipes... " >&6; }
8152if test ${lt_cv_truncate_bin+y}
8153then :
8154  printf %s "(cached) " >&6
8155else $as_nop
8156  printf 0123456789abcdef0123456789abcdef >conftest.i
8157cat conftest.i conftest.i >conftest2.i
8158lt_cv_truncate_bin=
8159if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8160  cmp -s conftest.i conftest.out \
8161  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8162fi
8163rm -f conftest.i conftest2.i conftest.out
8164test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8165fi
8166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8167printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8168
8169
8170
8171
8172
8173
8174
8175# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8176func_cc_basename ()
8177{
8178    for cc_temp in $*""; do
8179      case $cc_temp in
8180        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8181        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182        \-*) ;;
8183        *) break;;
8184      esac
8185    done
8186    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8187}
8188
8189# Check whether --enable-libtool-lock was given.
8190if test ${enable_libtool_lock+y}
8191then :
8192  enableval=$enable_libtool_lock;
8193fi
8194
8195test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8196
8197# Some flags need to be propagated to the compiler or linker for good
8198# libtool support.
8199case $host in
8200ia64-*-hpux*)
8201  # Find out what ABI is being produced by ac_compile, and set mode
8202  # options accordingly.
8203  echo 'int i;' > conftest.$ac_ext
8204  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8205  (eval $ac_compile) 2>&5
8206  ac_status=$?
8207  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208  test $ac_status = 0; }; then
8209    case `$FILECMD conftest.$ac_objext` in
8210      *ELF-32*)
8211	HPUX_IA64_MODE=32
8212	;;
8213      *ELF-64*)
8214	HPUX_IA64_MODE=64
8215	;;
8216    esac
8217  fi
8218  rm -rf conftest*
8219  ;;
8220*-*-irix6*)
8221  # Find out what ABI is being produced by ac_compile, and set linker
8222  # options accordingly.
8223  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8225  (eval $ac_compile) 2>&5
8226  ac_status=$?
8227  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8228  test $ac_status = 0; }; then
8229    if test yes = "$lt_cv_prog_gnu_ld"; then
8230      case `$FILECMD conftest.$ac_objext` in
8231	*32-bit*)
8232	  LD="${LD-ld} -melf32bsmip"
8233	  ;;
8234	*N32*)
8235	  LD="${LD-ld} -melf32bmipn32"
8236	  ;;
8237	*64-bit*)
8238	  LD="${LD-ld} -melf64bmip"
8239	;;
8240      esac
8241    else
8242      case `$FILECMD conftest.$ac_objext` in
8243	*32-bit*)
8244	  LD="${LD-ld} -32"
8245	  ;;
8246	*N32*)
8247	  LD="${LD-ld} -n32"
8248	  ;;
8249	*64-bit*)
8250	  LD="${LD-ld} -64"
8251	  ;;
8252      esac
8253    fi
8254  fi
8255  rm -rf conftest*
8256  ;;
8257
8258mips64*-*linux*)
8259  # Find out what ABI is being produced by ac_compile, and set linker
8260  # options accordingly.
8261  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8262  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8263  (eval $ac_compile) 2>&5
8264  ac_status=$?
8265  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266  test $ac_status = 0; }; then
8267    emul=elf
8268    case `$FILECMD conftest.$ac_objext` in
8269      *32-bit*)
8270	emul="${emul}32"
8271	;;
8272      *64-bit*)
8273	emul="${emul}64"
8274	;;
8275    esac
8276    case `$FILECMD conftest.$ac_objext` in
8277      *MSB*)
8278	emul="${emul}btsmip"
8279	;;
8280      *LSB*)
8281	emul="${emul}ltsmip"
8282	;;
8283    esac
8284    case `$FILECMD conftest.$ac_objext` in
8285      *N32*)
8286	emul="${emul}n32"
8287	;;
8288    esac
8289    LD="${LD-ld} -m $emul"
8290  fi
8291  rm -rf conftest*
8292  ;;
8293
8294x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8295s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8296  # Find out what ABI is being produced by ac_compile, and set linker
8297  # options accordingly.  Note that the listed cases only cover the
8298  # situations where additional linker options are needed (such as when
8299  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8300  # vice versa); the common cases where no linker options are needed do
8301  # not appear in the list.
8302  echo 'int i;' > conftest.$ac_ext
8303  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8304  (eval $ac_compile) 2>&5
8305  ac_status=$?
8306  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8307  test $ac_status = 0; }; then
8308    case `$FILECMD conftest.o` in
8309      *32-bit*)
8310	case $host in
8311	  x86_64-*kfreebsd*-gnu)
8312	    LD="${LD-ld} -m elf_i386_fbsd"
8313	    ;;
8314	  x86_64-*linux*)
8315	    case `$FILECMD conftest.o` in
8316	      *x86-64*)
8317		LD="${LD-ld} -m elf32_x86_64"
8318		;;
8319	      *)
8320		LD="${LD-ld} -m elf_i386"
8321		;;
8322	    esac
8323	    ;;
8324	  powerpc64le-*linux*)
8325	    LD="${LD-ld} -m elf32lppclinux"
8326	    ;;
8327	  powerpc64-*linux*)
8328	    LD="${LD-ld} -m elf32ppclinux"
8329	    ;;
8330	  s390x-*linux*)
8331	    LD="${LD-ld} -m elf_s390"
8332	    ;;
8333	  sparc64-*linux*)
8334	    LD="${LD-ld} -m elf32_sparc"
8335	    ;;
8336	esac
8337	;;
8338      *64-bit*)
8339	case $host in
8340	  x86_64-*kfreebsd*-gnu)
8341	    LD="${LD-ld} -m elf_x86_64_fbsd"
8342	    ;;
8343	  x86_64-*linux*)
8344	    LD="${LD-ld} -m elf_x86_64"
8345	    ;;
8346	  powerpcle-*linux*|powerpc64le-*linux*)
8347	    LD="${LD-ld} -m elf64lppc"
8348	    ;;
8349	  powerpc-*linux*|powerpc64-*linux*)
8350	    LD="${LD-ld} -m elf64ppc"
8351	    ;;
8352	  s390*-*linux*|s390*-*tpf*)
8353	    LD="${LD-ld} -m elf64_s390"
8354	    ;;
8355	  sparc*-*linux*)
8356	    LD="${LD-ld} -m elf64_sparc"
8357	    ;;
8358	esac
8359	;;
8360    esac
8361  fi
8362  rm -rf conftest*
8363  ;;
8364
8365*-*-sco3.2v5*)
8366  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8367  SAVE_CFLAGS=$CFLAGS
8368  CFLAGS="$CFLAGS -belf"
8369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8370printf %s "checking whether the C compiler needs -belf... " >&6; }
8371if test ${lt_cv_cc_needs_belf+y}
8372then :
8373  printf %s "(cached) " >&6
8374else $as_nop
8375  ac_ext=c
8376ac_cpp='$CPP $CPPFLAGS'
8377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8379ac_compiler_gnu=$ac_cv_c_compiler_gnu
8380
8381     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383
8384int
8385main (void)
8386{
8387
8388  ;
8389  return 0;
8390}
8391_ACEOF
8392if ac_fn_c_try_link "$LINENO"
8393then :
8394  lt_cv_cc_needs_belf=yes
8395else $as_nop
8396  lt_cv_cc_needs_belf=no
8397fi
8398rm -f core conftest.err conftest.$ac_objext conftest.beam \
8399    conftest$ac_exeext conftest.$ac_ext
8400     ac_ext=c
8401ac_cpp='$CPP $CPPFLAGS'
8402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406fi
8407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8408printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8409  if test yes != "$lt_cv_cc_needs_belf"; then
8410    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8411    CFLAGS=$SAVE_CFLAGS
8412  fi
8413  ;;
8414*-*solaris*)
8415  # Find out what ABI is being produced by ac_compile, and set linker
8416  # options accordingly.
8417  echo 'int i;' > conftest.$ac_ext
8418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8419  (eval $ac_compile) 2>&5
8420  ac_status=$?
8421  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8422  test $ac_status = 0; }; then
8423    case `$FILECMD conftest.o` in
8424    *64-bit*)
8425      case $lt_cv_prog_gnu_ld in
8426      yes*)
8427        case $host in
8428        i?86-*-solaris*|x86_64-*-solaris*)
8429          LD="${LD-ld} -m elf_x86_64"
8430          ;;
8431        sparc*-*-solaris*)
8432          LD="${LD-ld} -m elf64_sparc"
8433          ;;
8434        esac
8435        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8436        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8437          LD=${LD-ld}_sol2
8438        fi
8439        ;;
8440      *)
8441	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8442	  LD="${LD-ld} -64"
8443	fi
8444	;;
8445      esac
8446      ;;
8447    esac
8448  fi
8449  rm -rf conftest*
8450  ;;
8451esac
8452
8453need_locks=$enable_libtool_lock
8454
8455if test -n "$ac_tool_prefix"; then
8456  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8457set dummy ${ac_tool_prefix}mt; ac_word=$2
8458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459printf %s "checking for $ac_word... " >&6; }
8460if test ${ac_cv_prog_MANIFEST_TOOL+y}
8461then :
8462  printf %s "(cached) " >&6
8463else $as_nop
8464  if test -n "$MANIFEST_TOOL"; then
8465  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8466else
8467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8468for as_dir in $PATH
8469do
8470  IFS=$as_save_IFS
8471  case $as_dir in #(((
8472    '') as_dir=./ ;;
8473    */) ;;
8474    *) as_dir=$as_dir/ ;;
8475  esac
8476    for ac_exec_ext in '' $ac_executable_extensions; do
8477  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8478    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8479    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8480    break 2
8481  fi
8482done
8483  done
8484IFS=$as_save_IFS
8485
8486fi
8487fi
8488MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8489if test -n "$MANIFEST_TOOL"; then
8490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8491printf "%s\n" "$MANIFEST_TOOL" >&6; }
8492else
8493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494printf "%s\n" "no" >&6; }
8495fi
8496
8497
8498fi
8499if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8500  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8501  # Extract the first word of "mt", so it can be a program name with args.
8502set dummy mt; ac_word=$2
8503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504printf %s "checking for $ac_word... " >&6; }
8505if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8506then :
8507  printf %s "(cached) " >&6
8508else $as_nop
8509  if test -n "$ac_ct_MANIFEST_TOOL"; then
8510  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8511else
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515  IFS=$as_save_IFS
8516  case $as_dir in #(((
8517    '') as_dir=./ ;;
8518    */) ;;
8519    *) as_dir=$as_dir/ ;;
8520  esac
8521    for ac_exec_ext in '' $ac_executable_extensions; do
8522  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8523    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8524    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8525    break 2
8526  fi
8527done
8528  done
8529IFS=$as_save_IFS
8530
8531fi
8532fi
8533ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8534if test -n "$ac_ct_MANIFEST_TOOL"; then
8535  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8536printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8537else
8538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539printf "%s\n" "no" >&6; }
8540fi
8541
8542  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8543    MANIFEST_TOOL=":"
8544  else
8545    case $cross_compiling:$ac_tool_warned in
8546yes:)
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8548printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8549ac_tool_warned=yes ;;
8550esac
8551    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8552  fi
8553else
8554  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8555fi
8556
8557test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8559printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8560if test ${lt_cv_path_mainfest_tool+y}
8561then :
8562  printf %s "(cached) " >&6
8563else $as_nop
8564  lt_cv_path_mainfest_tool=no
8565  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8566  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8567  cat conftest.err >&5
8568  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8569    lt_cv_path_mainfest_tool=yes
8570  fi
8571  rm -f conftest*
8572fi
8573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8574printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8575if test yes != "$lt_cv_path_mainfest_tool"; then
8576  MANIFEST_TOOL=:
8577fi
8578
8579
8580
8581
8582
8583
8584  case $host_os in
8585    rhapsody* | darwin*)
8586    if test -n "$ac_tool_prefix"; then
8587  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8588set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590printf %s "checking for $ac_word... " >&6; }
8591if test ${ac_cv_prog_DSYMUTIL+y}
8592then :
8593  printf %s "(cached) " >&6
8594else $as_nop
8595  if test -n "$DSYMUTIL"; then
8596  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601  IFS=$as_save_IFS
8602  case $as_dir in #(((
8603    '') as_dir=./ ;;
8604    */) ;;
8605    *) as_dir=$as_dir/ ;;
8606  esac
8607    for ac_exec_ext in '' $ac_executable_extensions; do
8608  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8609    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8610    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8611    break 2
8612  fi
8613done
8614  done
8615IFS=$as_save_IFS
8616
8617fi
8618fi
8619DSYMUTIL=$ac_cv_prog_DSYMUTIL
8620if test -n "$DSYMUTIL"; then
8621  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8622printf "%s\n" "$DSYMUTIL" >&6; }
8623else
8624  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625printf "%s\n" "no" >&6; }
8626fi
8627
8628
8629fi
8630if test -z "$ac_cv_prog_DSYMUTIL"; then
8631  ac_ct_DSYMUTIL=$DSYMUTIL
8632  # Extract the first word of "dsymutil", so it can be a program name with args.
8633set dummy dsymutil; ac_word=$2
8634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8635printf %s "checking for $ac_word... " >&6; }
8636if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8637then :
8638  printf %s "(cached) " >&6
8639else $as_nop
8640  if test -n "$ac_ct_DSYMUTIL"; then
8641  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646  IFS=$as_save_IFS
8647  case $as_dir in #(((
8648    '') as_dir=./ ;;
8649    */) ;;
8650    *) as_dir=$as_dir/ ;;
8651  esac
8652    for ac_exec_ext in '' $ac_executable_extensions; do
8653  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8654    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8655    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8656    break 2
8657  fi
8658done
8659  done
8660IFS=$as_save_IFS
8661
8662fi
8663fi
8664ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8665if test -n "$ac_ct_DSYMUTIL"; then
8666  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8667printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8668else
8669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670printf "%s\n" "no" >&6; }
8671fi
8672
8673  if test "x$ac_ct_DSYMUTIL" = x; then
8674    DSYMUTIL=":"
8675  else
8676    case $cross_compiling:$ac_tool_warned in
8677yes:)
8678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8679printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8680ac_tool_warned=yes ;;
8681esac
8682    DSYMUTIL=$ac_ct_DSYMUTIL
8683  fi
8684else
8685  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8686fi
8687
8688    if test -n "$ac_tool_prefix"; then
8689  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8690set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692printf %s "checking for $ac_word... " >&6; }
8693if test ${ac_cv_prog_NMEDIT+y}
8694then :
8695  printf %s "(cached) " >&6
8696else $as_nop
8697  if test -n "$NMEDIT"; then
8698  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703  IFS=$as_save_IFS
8704  case $as_dir in #(((
8705    '') as_dir=./ ;;
8706    */) ;;
8707    *) as_dir=$as_dir/ ;;
8708  esac
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8711    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8712    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8713    break 2
8714  fi
8715done
8716  done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721NMEDIT=$ac_cv_prog_NMEDIT
8722if test -n "$NMEDIT"; then
8723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8724printf "%s\n" "$NMEDIT" >&6; }
8725else
8726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727printf "%s\n" "no" >&6; }
8728fi
8729
8730
8731fi
8732if test -z "$ac_cv_prog_NMEDIT"; then
8733  ac_ct_NMEDIT=$NMEDIT
8734  # Extract the first word of "nmedit", so it can be a program name with args.
8735set dummy nmedit; ac_word=$2
8736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737printf %s "checking for $ac_word... " >&6; }
8738if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8739then :
8740  printf %s "(cached) " >&6
8741else $as_nop
8742  if test -n "$ac_ct_NMEDIT"; then
8743  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8744else
8745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8746for as_dir in $PATH
8747do
8748  IFS=$as_save_IFS
8749  case $as_dir in #(((
8750    '') as_dir=./ ;;
8751    */) ;;
8752    *) as_dir=$as_dir/ ;;
8753  esac
8754    for ac_exec_ext in '' $ac_executable_extensions; do
8755  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8756    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8757    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8758    break 2
8759  fi
8760done
8761  done
8762IFS=$as_save_IFS
8763
8764fi
8765fi
8766ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8767if test -n "$ac_ct_NMEDIT"; then
8768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8769printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8770else
8771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772printf "%s\n" "no" >&6; }
8773fi
8774
8775  if test "x$ac_ct_NMEDIT" = x; then
8776    NMEDIT=":"
8777  else
8778    case $cross_compiling:$ac_tool_warned in
8779yes:)
8780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8781printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8782ac_tool_warned=yes ;;
8783esac
8784    NMEDIT=$ac_ct_NMEDIT
8785  fi
8786else
8787  NMEDIT="$ac_cv_prog_NMEDIT"
8788fi
8789
8790    if test -n "$ac_tool_prefix"; then
8791  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8792set dummy ${ac_tool_prefix}lipo; ac_word=$2
8793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794printf %s "checking for $ac_word... " >&6; }
8795if test ${ac_cv_prog_LIPO+y}
8796then :
8797  printf %s "(cached) " >&6
8798else $as_nop
8799  if test -n "$LIPO"; then
8800  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805  IFS=$as_save_IFS
8806  case $as_dir in #(((
8807    '') as_dir=./ ;;
8808    */) ;;
8809    *) as_dir=$as_dir/ ;;
8810  esac
8811    for ac_exec_ext in '' $ac_executable_extensions; do
8812  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8813    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8814    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8815    break 2
8816  fi
8817done
8818  done
8819IFS=$as_save_IFS
8820
8821fi
8822fi
8823LIPO=$ac_cv_prog_LIPO
8824if test -n "$LIPO"; then
8825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8826printf "%s\n" "$LIPO" >&6; }
8827else
8828  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829printf "%s\n" "no" >&6; }
8830fi
8831
8832
8833fi
8834if test -z "$ac_cv_prog_LIPO"; then
8835  ac_ct_LIPO=$LIPO
8836  # Extract the first word of "lipo", so it can be a program name with args.
8837set dummy lipo; ac_word=$2
8838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839printf %s "checking for $ac_word... " >&6; }
8840if test ${ac_cv_prog_ac_ct_LIPO+y}
8841then :
8842  printf %s "(cached) " >&6
8843else $as_nop
8844  if test -n "$ac_ct_LIPO"; then
8845  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8846else
8847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848for as_dir in $PATH
8849do
8850  IFS=$as_save_IFS
8851  case $as_dir in #(((
8852    '') as_dir=./ ;;
8853    */) ;;
8854    *) as_dir=$as_dir/ ;;
8855  esac
8856    for ac_exec_ext in '' $ac_executable_extensions; do
8857  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8858    ac_cv_prog_ac_ct_LIPO="lipo"
8859    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8860    break 2
8861  fi
8862done
8863  done
8864IFS=$as_save_IFS
8865
8866fi
8867fi
8868ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8869if test -n "$ac_ct_LIPO"; then
8870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8871printf "%s\n" "$ac_ct_LIPO" >&6; }
8872else
8873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874printf "%s\n" "no" >&6; }
8875fi
8876
8877  if test "x$ac_ct_LIPO" = x; then
8878    LIPO=":"
8879  else
8880    case $cross_compiling:$ac_tool_warned in
8881yes:)
8882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8883printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8884ac_tool_warned=yes ;;
8885esac
8886    LIPO=$ac_ct_LIPO
8887  fi
8888else
8889  LIPO="$ac_cv_prog_LIPO"
8890fi
8891
8892    if test -n "$ac_tool_prefix"; then
8893  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8894set dummy ${ac_tool_prefix}otool; ac_word=$2
8895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896printf %s "checking for $ac_word... " >&6; }
8897if test ${ac_cv_prog_OTOOL+y}
8898then :
8899  printf %s "(cached) " >&6
8900else $as_nop
8901  if test -n "$OTOOL"; then
8902  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8903else
8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $PATH
8906do
8907  IFS=$as_save_IFS
8908  case $as_dir in #(((
8909    '') as_dir=./ ;;
8910    */) ;;
8911    *) as_dir=$as_dir/ ;;
8912  esac
8913    for ac_exec_ext in '' $ac_executable_extensions; do
8914  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8915    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8916    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8917    break 2
8918  fi
8919done
8920  done
8921IFS=$as_save_IFS
8922
8923fi
8924fi
8925OTOOL=$ac_cv_prog_OTOOL
8926if test -n "$OTOOL"; then
8927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8928printf "%s\n" "$OTOOL" >&6; }
8929else
8930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931printf "%s\n" "no" >&6; }
8932fi
8933
8934
8935fi
8936if test -z "$ac_cv_prog_OTOOL"; then
8937  ac_ct_OTOOL=$OTOOL
8938  # Extract the first word of "otool", so it can be a program name with args.
8939set dummy otool; ac_word=$2
8940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941printf %s "checking for $ac_word... " >&6; }
8942if test ${ac_cv_prog_ac_ct_OTOOL+y}
8943then :
8944  printf %s "(cached) " >&6
8945else $as_nop
8946  if test -n "$ac_ct_OTOOL"; then
8947  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8948else
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952  IFS=$as_save_IFS
8953  case $as_dir in #(((
8954    '') as_dir=./ ;;
8955    */) ;;
8956    *) as_dir=$as_dir/ ;;
8957  esac
8958    for ac_exec_ext in '' $ac_executable_extensions; do
8959  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960    ac_cv_prog_ac_ct_OTOOL="otool"
8961    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8962    break 2
8963  fi
8964done
8965  done
8966IFS=$as_save_IFS
8967
8968fi
8969fi
8970ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8971if test -n "$ac_ct_OTOOL"; then
8972  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8973printf "%s\n" "$ac_ct_OTOOL" >&6; }
8974else
8975  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976printf "%s\n" "no" >&6; }
8977fi
8978
8979  if test "x$ac_ct_OTOOL" = x; then
8980    OTOOL=":"
8981  else
8982    case $cross_compiling:$ac_tool_warned in
8983yes:)
8984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8985printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8986ac_tool_warned=yes ;;
8987esac
8988    OTOOL=$ac_ct_OTOOL
8989  fi
8990else
8991  OTOOL="$ac_cv_prog_OTOOL"
8992fi
8993
8994    if test -n "$ac_tool_prefix"; then
8995  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8996set dummy ${ac_tool_prefix}otool64; ac_word=$2
8997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998printf %s "checking for $ac_word... " >&6; }
8999if test ${ac_cv_prog_OTOOL64+y}
9000then :
9001  printf %s "(cached) " >&6
9002else $as_nop
9003  if test -n "$OTOOL64"; then
9004  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9005else
9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009  IFS=$as_save_IFS
9010  case $as_dir in #(((
9011    '') as_dir=./ ;;
9012    */) ;;
9013    *) as_dir=$as_dir/ ;;
9014  esac
9015    for ac_exec_ext in '' $ac_executable_extensions; do
9016  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9017    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9018    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9019    break 2
9020  fi
9021done
9022  done
9023IFS=$as_save_IFS
9024
9025fi
9026fi
9027OTOOL64=$ac_cv_prog_OTOOL64
9028if test -n "$OTOOL64"; then
9029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9030printf "%s\n" "$OTOOL64" >&6; }
9031else
9032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033printf "%s\n" "no" >&6; }
9034fi
9035
9036
9037fi
9038if test -z "$ac_cv_prog_OTOOL64"; then
9039  ac_ct_OTOOL64=$OTOOL64
9040  # Extract the first word of "otool64", so it can be a program name with args.
9041set dummy otool64; ac_word=$2
9042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043printf %s "checking for $ac_word... " >&6; }
9044if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9045then :
9046  printf %s "(cached) " >&6
9047else $as_nop
9048  if test -n "$ac_ct_OTOOL64"; then
9049  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9050else
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054  IFS=$as_save_IFS
9055  case $as_dir in #(((
9056    '') as_dir=./ ;;
9057    */) ;;
9058    *) as_dir=$as_dir/ ;;
9059  esac
9060    for ac_exec_ext in '' $ac_executable_extensions; do
9061  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9062    ac_cv_prog_ac_ct_OTOOL64="otool64"
9063    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9064    break 2
9065  fi
9066done
9067  done
9068IFS=$as_save_IFS
9069
9070fi
9071fi
9072ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9073if test -n "$ac_ct_OTOOL64"; then
9074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9075printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9076else
9077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9078printf "%s\n" "no" >&6; }
9079fi
9080
9081  if test "x$ac_ct_OTOOL64" = x; then
9082    OTOOL64=":"
9083  else
9084    case $cross_compiling:$ac_tool_warned in
9085yes:)
9086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9087printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9088ac_tool_warned=yes ;;
9089esac
9090    OTOOL64=$ac_ct_OTOOL64
9091  fi
9092else
9093  OTOOL64="$ac_cv_prog_OTOOL64"
9094fi
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9123printf %s "checking for -single_module linker flag... " >&6; }
9124if test ${lt_cv_apple_cc_single_mod+y}
9125then :
9126  printf %s "(cached) " >&6
9127else $as_nop
9128  lt_cv_apple_cc_single_mod=no
9129      if test -z "$LT_MULTI_MODULE"; then
9130	# By default we will add the -single_module flag. You can override
9131	# by either setting the environment variable LT_MULTI_MODULE
9132	# non-empty at configure time, or by adding -multi_module to the
9133	# link flags.
9134	rm -rf libconftest.dylib*
9135	echo "int foo(void){return 1;}" > conftest.c
9136	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9137-dynamiclib -Wl,-single_module conftest.c" >&5
9138	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9139	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9140        _lt_result=$?
9141	# If there is a non-empty error log, and "single_module"
9142	# appears in it, assume the flag caused a linker warning
9143        if test -s conftest.err && $GREP single_module conftest.err; then
9144	  cat conftest.err >&5
9145	# Otherwise, if the output was created with a 0 exit code from
9146	# the compiler, it worked.
9147	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9148	  lt_cv_apple_cc_single_mod=yes
9149	else
9150	  cat conftest.err >&5
9151	fi
9152	rm -rf libconftest.dylib*
9153	rm -f conftest.*
9154      fi
9155fi
9156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9157printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9158
9159    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9160printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9161if test ${lt_cv_ld_exported_symbols_list+y}
9162then :
9163  printf %s "(cached) " >&6
9164else $as_nop
9165  lt_cv_ld_exported_symbols_list=no
9166      save_LDFLAGS=$LDFLAGS
9167      echo "_main" > conftest.sym
9168      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9169      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170/* end confdefs.h.  */
9171
9172int
9173main (void)
9174{
9175
9176  ;
9177  return 0;
9178}
9179_ACEOF
9180if ac_fn_c_try_link "$LINENO"
9181then :
9182  lt_cv_ld_exported_symbols_list=yes
9183else $as_nop
9184  lt_cv_ld_exported_symbols_list=no
9185fi
9186rm -f core conftest.err conftest.$ac_objext conftest.beam \
9187    conftest$ac_exeext conftest.$ac_ext
9188	LDFLAGS=$save_LDFLAGS
9189
9190fi
9191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9192printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9193
9194    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9195printf %s "checking for -force_load linker flag... " >&6; }
9196if test ${lt_cv_ld_force_load+y}
9197then :
9198  printf %s "(cached) " >&6
9199else $as_nop
9200  lt_cv_ld_force_load=no
9201      cat > conftest.c << _LT_EOF
9202int forced_loaded() { return 2;}
9203_LT_EOF
9204      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9205      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9206      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9207      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9208      echo "$RANLIB libconftest.a" >&5
9209      $RANLIB libconftest.a 2>&5
9210      cat > conftest.c << _LT_EOF
9211int main() { return 0;}
9212_LT_EOF
9213      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9214      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9215      _lt_result=$?
9216      if test -s conftest.err && $GREP force_load conftest.err; then
9217	cat conftest.err >&5
9218      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9219	lt_cv_ld_force_load=yes
9220      else
9221	cat conftest.err >&5
9222      fi
9223        rm -f conftest.err libconftest.a conftest conftest.c
9224        rm -rf conftest.dSYM
9225
9226fi
9227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9228printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9229    case $host_os in
9230    rhapsody* | darwin1.[012])
9231      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9232    darwin1.*)
9233      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9234    darwin*)
9235      case $MACOSX_DEPLOYMENT_TARGET,$host in
9236        10.[012],*|,*powerpc*-darwin[5-8]*)
9237          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9238        *)
9239          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9240      esac
9241    ;;
9242  esac
9243    if test yes = "$lt_cv_apple_cc_single_mod"; then
9244      _lt_dar_single_mod='$single_module'
9245    fi
9246    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9247      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9248    else
9249      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9250    fi
9251    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9252      _lt_dsymutil='~$DSYMUTIL $lib || :'
9253    else
9254      _lt_dsymutil=
9255    fi
9256    ;;
9257  esac
9258
9259# func_munge_path_list VARIABLE PATH
9260# -----------------------------------
9261# VARIABLE is name of variable containing _space_ separated list of
9262# directories to be munged by the contents of PATH, which is string
9263# having a format:
9264# "DIR[:DIR]:"
9265#       string "DIR[ DIR]" will be prepended to VARIABLE
9266# ":DIR[:DIR]"
9267#       string "DIR[ DIR]" will be appended to VARIABLE
9268# "DIRP[:DIRP]::[DIRA:]DIRA"
9269#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9270#       "DIRA[ DIRA]" will be appended to VARIABLE
9271# "DIR[:DIR]"
9272#       VARIABLE will be replaced by "DIR[ DIR]"
9273func_munge_path_list ()
9274{
9275    case x$2 in
9276    x)
9277        ;;
9278    *:)
9279        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9280        ;;
9281    x:*)
9282        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9283        ;;
9284    *::*)
9285        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9286        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9287        ;;
9288    *)
9289        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9290        ;;
9291    esac
9292}
9293
9294ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9295"
9296if test "x$ac_cv_header_dlfcn_h" = xyes
9297then :
9298  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9299
9300fi
9301
9302
9303
9304
9305
9306# Set options
9307enable_win32_dll=yes
9308
9309case $host in
9310*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9311  if test -n "$ac_tool_prefix"; then
9312  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9313set dummy ${ac_tool_prefix}as; ac_word=$2
9314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315printf %s "checking for $ac_word... " >&6; }
9316if test ${ac_cv_prog_AS+y}
9317then :
9318  printf %s "(cached) " >&6
9319else $as_nop
9320  if test -n "$AS"; then
9321  ac_cv_prog_AS="$AS" # Let the user override the test.
9322else
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326  IFS=$as_save_IFS
9327  case $as_dir in #(((
9328    '') as_dir=./ ;;
9329    */) ;;
9330    *) as_dir=$as_dir/ ;;
9331  esac
9332    for ac_exec_ext in '' $ac_executable_extensions; do
9333  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9334    ac_cv_prog_AS="${ac_tool_prefix}as"
9335    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9336    break 2
9337  fi
9338done
9339  done
9340IFS=$as_save_IFS
9341
9342fi
9343fi
9344AS=$ac_cv_prog_AS
9345if test -n "$AS"; then
9346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9347printf "%s\n" "$AS" >&6; }
9348else
9349  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9350printf "%s\n" "no" >&6; }
9351fi
9352
9353
9354fi
9355if test -z "$ac_cv_prog_AS"; then
9356  ac_ct_AS=$AS
9357  # Extract the first word of "as", so it can be a program name with args.
9358set dummy as; ac_word=$2
9359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360printf %s "checking for $ac_word... " >&6; }
9361if test ${ac_cv_prog_ac_ct_AS+y}
9362then :
9363  printf %s "(cached) " >&6
9364else $as_nop
9365  if test -n "$ac_ct_AS"; then
9366  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9367else
9368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9369for as_dir in $PATH
9370do
9371  IFS=$as_save_IFS
9372  case $as_dir in #(((
9373    '') as_dir=./ ;;
9374    */) ;;
9375    *) as_dir=$as_dir/ ;;
9376  esac
9377    for ac_exec_ext in '' $ac_executable_extensions; do
9378  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9379    ac_cv_prog_ac_ct_AS="as"
9380    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9381    break 2
9382  fi
9383done
9384  done
9385IFS=$as_save_IFS
9386
9387fi
9388fi
9389ac_ct_AS=$ac_cv_prog_ac_ct_AS
9390if test -n "$ac_ct_AS"; then
9391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9392printf "%s\n" "$ac_ct_AS" >&6; }
9393else
9394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9395printf "%s\n" "no" >&6; }
9396fi
9397
9398  if test "x$ac_ct_AS" = x; then
9399    AS="false"
9400  else
9401    case $cross_compiling:$ac_tool_warned in
9402yes:)
9403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9404printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9405ac_tool_warned=yes ;;
9406esac
9407    AS=$ac_ct_AS
9408  fi
9409else
9410  AS="$ac_cv_prog_AS"
9411fi
9412
9413  if test -n "$ac_tool_prefix"; then
9414  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9415set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417printf %s "checking for $ac_word... " >&6; }
9418if test ${ac_cv_prog_DLLTOOL+y}
9419then :
9420  printf %s "(cached) " >&6
9421else $as_nop
9422  if test -n "$DLLTOOL"; then
9423  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9424else
9425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428  IFS=$as_save_IFS
9429  case $as_dir in #(((
9430    '') as_dir=./ ;;
9431    */) ;;
9432    *) as_dir=$as_dir/ ;;
9433  esac
9434    for ac_exec_ext in '' $ac_executable_extensions; do
9435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9436    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9438    break 2
9439  fi
9440done
9441  done
9442IFS=$as_save_IFS
9443
9444fi
9445fi
9446DLLTOOL=$ac_cv_prog_DLLTOOL
9447if test -n "$DLLTOOL"; then
9448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9449printf "%s\n" "$DLLTOOL" >&6; }
9450else
9451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9452printf "%s\n" "no" >&6; }
9453fi
9454
9455
9456fi
9457if test -z "$ac_cv_prog_DLLTOOL"; then
9458  ac_ct_DLLTOOL=$DLLTOOL
9459  # Extract the first word of "dlltool", so it can be a program name with args.
9460set dummy dlltool; ac_word=$2
9461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462printf %s "checking for $ac_word... " >&6; }
9463if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9464then :
9465  printf %s "(cached) " >&6
9466else $as_nop
9467  if test -n "$ac_ct_DLLTOOL"; then
9468  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9469else
9470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473  IFS=$as_save_IFS
9474  case $as_dir in #(((
9475    '') as_dir=./ ;;
9476    */) ;;
9477    *) as_dir=$as_dir/ ;;
9478  esac
9479    for ac_exec_ext in '' $ac_executable_extensions; do
9480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9481    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9482    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9483    break 2
9484  fi
9485done
9486  done
9487IFS=$as_save_IFS
9488
9489fi
9490fi
9491ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9492if test -n "$ac_ct_DLLTOOL"; then
9493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9494printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9495else
9496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497printf "%s\n" "no" >&6; }
9498fi
9499
9500  if test "x$ac_ct_DLLTOOL" = x; then
9501    DLLTOOL="false"
9502  else
9503    case $cross_compiling:$ac_tool_warned in
9504yes:)
9505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9507ac_tool_warned=yes ;;
9508esac
9509    DLLTOOL=$ac_ct_DLLTOOL
9510  fi
9511else
9512  DLLTOOL="$ac_cv_prog_DLLTOOL"
9513fi
9514
9515  if test -n "$ac_tool_prefix"; then
9516  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9517set dummy ${ac_tool_prefix}objdump; ac_word=$2
9518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519printf %s "checking for $ac_word... " >&6; }
9520if test ${ac_cv_prog_OBJDUMP+y}
9521then :
9522  printf %s "(cached) " >&6
9523else $as_nop
9524  if test -n "$OBJDUMP"; then
9525  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9526else
9527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528for as_dir in $PATH
9529do
9530  IFS=$as_save_IFS
9531  case $as_dir in #(((
9532    '') as_dir=./ ;;
9533    */) ;;
9534    *) as_dir=$as_dir/ ;;
9535  esac
9536    for ac_exec_ext in '' $ac_executable_extensions; do
9537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9538    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9540    break 2
9541  fi
9542done
9543  done
9544IFS=$as_save_IFS
9545
9546fi
9547fi
9548OBJDUMP=$ac_cv_prog_OBJDUMP
9549if test -n "$OBJDUMP"; then
9550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9551printf "%s\n" "$OBJDUMP" >&6; }
9552else
9553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9554printf "%s\n" "no" >&6; }
9555fi
9556
9557
9558fi
9559if test -z "$ac_cv_prog_OBJDUMP"; then
9560  ac_ct_OBJDUMP=$OBJDUMP
9561  # Extract the first word of "objdump", so it can be a program name with args.
9562set dummy objdump; ac_word=$2
9563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564printf %s "checking for $ac_word... " >&6; }
9565if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9566then :
9567  printf %s "(cached) " >&6
9568else $as_nop
9569  if test -n "$ac_ct_OBJDUMP"; then
9570  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9571else
9572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9573for as_dir in $PATH
9574do
9575  IFS=$as_save_IFS
9576  case $as_dir in #(((
9577    '') as_dir=./ ;;
9578    */) ;;
9579    *) as_dir=$as_dir/ ;;
9580  esac
9581    for ac_exec_ext in '' $ac_executable_extensions; do
9582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9583    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9585    break 2
9586  fi
9587done
9588  done
9589IFS=$as_save_IFS
9590
9591fi
9592fi
9593ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9594if test -n "$ac_ct_OBJDUMP"; then
9595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9596printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9597else
9598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599printf "%s\n" "no" >&6; }
9600fi
9601
9602  if test "x$ac_ct_OBJDUMP" = x; then
9603    OBJDUMP="false"
9604  else
9605    case $cross_compiling:$ac_tool_warned in
9606yes:)
9607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9609ac_tool_warned=yes ;;
9610esac
9611    OBJDUMP=$ac_ct_OBJDUMP
9612  fi
9613else
9614  OBJDUMP="$ac_cv_prog_OBJDUMP"
9615fi
9616
9617  ;;
9618esac
9619
9620test -z "$AS" && AS=as
9621
9622
9623
9624
9625
9626test -z "$DLLTOOL" && DLLTOOL=dlltool
9627
9628
9629
9630
9631
9632test -z "$OBJDUMP" && OBJDUMP=objdump
9633
9634
9635
9636
9637
9638
9639
9640        enable_dlopen=no
9641
9642
9643
9644            # Check whether --enable-shared was given.
9645if test ${enable_shared+y}
9646then :
9647  enableval=$enable_shared; p=${PACKAGE-default}
9648    case $enableval in
9649    yes) enable_shared=yes ;;
9650    no) enable_shared=no ;;
9651    *)
9652      enable_shared=no
9653      # Look at the argument we got.  We use all the common list separators.
9654      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9655      for pkg in $enableval; do
9656	IFS=$lt_save_ifs
9657	if test "X$pkg" = "X$p"; then
9658	  enable_shared=yes
9659	fi
9660      done
9661      IFS=$lt_save_ifs
9662      ;;
9663    esac
9664else $as_nop
9665  enable_shared=yes
9666fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676  # Check whether --enable-static was given.
9677if test ${enable_static+y}
9678then :
9679  enableval=$enable_static; p=${PACKAGE-default}
9680    case $enableval in
9681    yes) enable_static=yes ;;
9682    no) enable_static=no ;;
9683    *)
9684     enable_static=no
9685      # Look at the argument we got.  We use all the common list separators.
9686      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9687      for pkg in $enableval; do
9688	IFS=$lt_save_ifs
9689	if test "X$pkg" = "X$p"; then
9690	  enable_static=yes
9691	fi
9692      done
9693      IFS=$lt_save_ifs
9694      ;;
9695    esac
9696else $as_nop
9697  enable_static=yes
9698fi
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709# Check whether --with-pic was given.
9710if test ${with_pic+y}
9711then :
9712  withval=$with_pic; lt_p=${PACKAGE-default}
9713    case $withval in
9714    yes|no) pic_mode=$withval ;;
9715    *)
9716      pic_mode=default
9717      # Look at the argument we got.  We use all the common list separators.
9718      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9719      for lt_pkg in $withval; do
9720	IFS=$lt_save_ifs
9721	if test "X$lt_pkg" = "X$lt_p"; then
9722	  pic_mode=yes
9723	fi
9724      done
9725      IFS=$lt_save_ifs
9726      ;;
9727    esac
9728else $as_nop
9729  pic_mode=default
9730fi
9731
9732
9733
9734
9735
9736
9737
9738
9739  # Check whether --enable-fast-install was given.
9740if test ${enable_fast_install+y}
9741then :
9742  enableval=$enable_fast_install; p=${PACKAGE-default}
9743    case $enableval in
9744    yes) enable_fast_install=yes ;;
9745    no) enable_fast_install=no ;;
9746    *)
9747      enable_fast_install=no
9748      # Look at the argument we got.  We use all the common list separators.
9749      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9750      for pkg in $enableval; do
9751	IFS=$lt_save_ifs
9752	if test "X$pkg" = "X$p"; then
9753	  enable_fast_install=yes
9754	fi
9755      done
9756      IFS=$lt_save_ifs
9757      ;;
9758    esac
9759else $as_nop
9760  enable_fast_install=yes
9761fi
9762
9763
9764
9765
9766
9767
9768
9769
9770  shared_archive_member_spec=
9771case $host,$enable_shared in
9772power*-*-aix[5-9]*,yes)
9773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9774printf %s "checking which variant of shared library versioning to provide... " >&6; }
9775
9776# Check whether --with-aix-soname was given.
9777if test ${with_aix_soname+y}
9778then :
9779  withval=$with_aix_soname; case $withval in
9780    aix|svr4|both)
9781      ;;
9782    *)
9783      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9784      ;;
9785    esac
9786    lt_cv_with_aix_soname=$with_aix_soname
9787else $as_nop
9788  if test ${lt_cv_with_aix_soname+y}
9789then :
9790  printf %s "(cached) " >&6
9791else $as_nop
9792  lt_cv_with_aix_soname=aix
9793fi
9794
9795    with_aix_soname=$lt_cv_with_aix_soname
9796fi
9797
9798  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9799printf "%s\n" "$with_aix_soname" >&6; }
9800  if test aix != "$with_aix_soname"; then
9801    # For the AIX way of multilib, we name the shared archive member
9802    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9803    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9804    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9805    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9806    if test 64 = "${OBJECT_MODE-32}"; then
9807      shared_archive_member_spec=shr_64
9808    else
9809      shared_archive_member_spec=shr
9810    fi
9811  fi
9812  ;;
9813*)
9814  with_aix_soname=aix
9815  ;;
9816esac
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827# This can be used to rebuild libtool when needed
9828LIBTOOL_DEPS=$ltmain
9829
9830# Always use our own libtool.
9831LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862test -z "$LN_S" && LN_S="ln -s"
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877if test -n "${ZSH_VERSION+set}"; then
9878   setopt NO_GLOB_SUBST
9879fi
9880
9881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9882printf %s "checking for objdir... " >&6; }
9883if test ${lt_cv_objdir+y}
9884then :
9885  printf %s "(cached) " >&6
9886else $as_nop
9887  rm -f .libs 2>/dev/null
9888mkdir .libs 2>/dev/null
9889if test -d .libs; then
9890  lt_cv_objdir=.libs
9891else
9892  # MS-DOS does not allow filenames that begin with a dot.
9893  lt_cv_objdir=_libs
9894fi
9895rmdir .libs 2>/dev/null
9896fi
9897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9898printf "%s\n" "$lt_cv_objdir" >&6; }
9899objdir=$lt_cv_objdir
9900
9901
9902
9903
9904
9905printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9906
9907
9908
9909
9910case $host_os in
9911aix3*)
9912  # AIX sometimes has problems with the GCC collect2 program.  For some
9913  # reason, if we set the COLLECT_NAMES environment variable, the problems
9914  # vanish in a puff of smoke.
9915  if test set != "${COLLECT_NAMES+set}"; then
9916    COLLECT_NAMES=
9917    export COLLECT_NAMES
9918  fi
9919  ;;
9920esac
9921
9922# Global variables:
9923ofile=libtool
9924can_build_shared=yes
9925
9926# All known linkers require a '.a' archive for static linking (except MSVC and
9927# ICC, which need '.lib').
9928libext=a
9929
9930with_gnu_ld=$lt_cv_prog_gnu_ld
9931
9932old_CC=$CC
9933old_CFLAGS=$CFLAGS
9934
9935# Set sane defaults for various variables
9936test -z "$CC" && CC=cc
9937test -z "$LTCC" && LTCC=$CC
9938test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9939test -z "$LD" && LD=ld
9940test -z "$ac_objext" && ac_objext=o
9941
9942func_cc_basename $compiler
9943cc_basename=$func_cc_basename_result
9944
9945
9946# Only perform the check for file, if the check method requires it
9947test -z "$MAGIC_CMD" && MAGIC_CMD=file
9948case $deplibs_check_method in
9949file_magic*)
9950  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9951    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9952printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9953if test ${lt_cv_path_MAGIC_CMD+y}
9954then :
9955  printf %s "(cached) " >&6
9956else $as_nop
9957  case $MAGIC_CMD in
9958[\\/*] |  ?:[\\/]*)
9959  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9960  ;;
9961*)
9962  lt_save_MAGIC_CMD=$MAGIC_CMD
9963  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9964  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9965  for ac_dir in $ac_dummy; do
9966    IFS=$lt_save_ifs
9967    test -z "$ac_dir" && ac_dir=.
9968    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9969      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9970      if test -n "$file_magic_test_file"; then
9971	case $deplibs_check_method in
9972	"file_magic "*)
9973	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9974	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9975	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9976	    $EGREP "$file_magic_regex" > /dev/null; then
9977	    :
9978	  else
9979	    cat <<_LT_EOF 1>&2
9980
9981*** Warning: the command libtool uses to detect shared libraries,
9982*** $file_magic_cmd, produces output that libtool cannot recognize.
9983*** The result is that libtool may fail to recognize shared libraries
9984*** as such.  This will affect the creation of libtool libraries that
9985*** depend on shared libraries, but programs linked with such libtool
9986*** libraries will work regardless of this problem.  Nevertheless, you
9987*** may want to report the problem to your system manager and/or to
9988*** bug-libtool@gnu.org
9989
9990_LT_EOF
9991	  fi ;;
9992	esac
9993      fi
9994      break
9995    fi
9996  done
9997  IFS=$lt_save_ifs
9998  MAGIC_CMD=$lt_save_MAGIC_CMD
9999  ;;
10000esac
10001fi
10002
10003MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10004if test -n "$MAGIC_CMD"; then
10005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10006printf "%s\n" "$MAGIC_CMD" >&6; }
10007else
10008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009printf "%s\n" "no" >&6; }
10010fi
10011
10012
10013
10014
10015
10016if test -z "$lt_cv_path_MAGIC_CMD"; then
10017  if test -n "$ac_tool_prefix"; then
10018    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10019printf %s "checking for file... " >&6; }
10020if test ${lt_cv_path_MAGIC_CMD+y}
10021then :
10022  printf %s "(cached) " >&6
10023else $as_nop
10024  case $MAGIC_CMD in
10025[\\/*] |  ?:[\\/]*)
10026  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10027  ;;
10028*)
10029  lt_save_MAGIC_CMD=$MAGIC_CMD
10030  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10031  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10032  for ac_dir in $ac_dummy; do
10033    IFS=$lt_save_ifs
10034    test -z "$ac_dir" && ac_dir=.
10035    if test -f "$ac_dir/file"; then
10036      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10037      if test -n "$file_magic_test_file"; then
10038	case $deplibs_check_method in
10039	"file_magic "*)
10040	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10041	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10042	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10043	    $EGREP "$file_magic_regex" > /dev/null; then
10044	    :
10045	  else
10046	    cat <<_LT_EOF 1>&2
10047
10048*** Warning: the command libtool uses to detect shared libraries,
10049*** $file_magic_cmd, produces output that libtool cannot recognize.
10050*** The result is that libtool may fail to recognize shared libraries
10051*** as such.  This will affect the creation of libtool libraries that
10052*** depend on shared libraries, but programs linked with such libtool
10053*** libraries will work regardless of this problem.  Nevertheless, you
10054*** may want to report the problem to your system manager and/or to
10055*** bug-libtool@gnu.org
10056
10057_LT_EOF
10058	  fi ;;
10059	esac
10060      fi
10061      break
10062    fi
10063  done
10064  IFS=$lt_save_ifs
10065  MAGIC_CMD=$lt_save_MAGIC_CMD
10066  ;;
10067esac
10068fi
10069
10070MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10071if test -n "$MAGIC_CMD"; then
10072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10073printf "%s\n" "$MAGIC_CMD" >&6; }
10074else
10075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076printf "%s\n" "no" >&6; }
10077fi
10078
10079
10080  else
10081    MAGIC_CMD=:
10082  fi
10083fi
10084
10085  fi
10086  ;;
10087esac
10088
10089# Use C for the default configuration in the libtool script
10090
10091lt_save_CC=$CC
10092ac_ext=c
10093ac_cpp='$CPP $CPPFLAGS'
10094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10096ac_compiler_gnu=$ac_cv_c_compiler_gnu
10097
10098
10099# Source file extension for C test sources.
10100ac_ext=c
10101
10102# Object file extension for compiled C test sources.
10103objext=o
10104objext=$objext
10105
10106# Code to be used in simple compile tests
10107lt_simple_compile_test_code="int some_variable = 0;"
10108
10109# Code to be used in simple link tests
10110lt_simple_link_test_code='int main(){return(0);}'
10111
10112
10113
10114
10115
10116
10117
10118# If no C compiler was specified, use CC.
10119LTCC=${LTCC-"$CC"}
10120
10121# If no C compiler flags were specified, use CFLAGS.
10122LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10123
10124# Allow CC to be a program name with arguments.
10125compiler=$CC
10126
10127# Save the default compiler, since it gets overwritten when the other
10128# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10129compiler_DEFAULT=$CC
10130
10131# save warnings/boilerplate of simple test code
10132ac_outfile=conftest.$ac_objext
10133echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10134eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10135_lt_compiler_boilerplate=`cat conftest.err`
10136$RM conftest*
10137
10138ac_outfile=conftest.$ac_objext
10139echo "$lt_simple_link_test_code" >conftest.$ac_ext
10140eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10141_lt_linker_boilerplate=`cat conftest.err`
10142$RM -r conftest*
10143
10144
10145## CAVEAT EMPTOR:
10146## There is no encapsulation within the following macros, do not change
10147## the running order or otherwise move them around unless you know exactly
10148## what you are doing...
10149if test -n "$compiler"; then
10150
10151lt_prog_compiler_no_builtin_flag=
10152
10153if test yes = "$GCC"; then
10154  case $cc_basename in
10155  nvcc*)
10156    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10157  *)
10158    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10159  esac
10160
10161  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10162printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10163if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10164then :
10165  printf %s "(cached) " >&6
10166else $as_nop
10167  lt_cv_prog_compiler_rtti_exceptions=no
10168   ac_outfile=conftest.$ac_objext
10169   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10170   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10171   # Insert the option either (1) after the last *FLAGS variable, or
10172   # (2) before a word containing "conftest.", or (3) at the end.
10173   # Note that $ac_compile itself does not contain backslashes and begins
10174   # with a dollar sign (not a hyphen), so the echo should work correctly.
10175   # The option is referenced via a variable to avoid confusing sed.
10176   lt_compile=`echo "$ac_compile" | $SED \
10177   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10178   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10179   -e 's:$: $lt_compiler_flag:'`
10180   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10181   (eval "$lt_compile" 2>conftest.err)
10182   ac_status=$?
10183   cat conftest.err >&5
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   if (exit $ac_status) && test -s "$ac_outfile"; then
10186     # The compiler can only warn and ignore the option if not recognized
10187     # So say no if there are warnings other than the usual output.
10188     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10189     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10190     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10191       lt_cv_prog_compiler_rtti_exceptions=yes
10192     fi
10193   fi
10194   $RM conftest*
10195
10196fi
10197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10198printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10199
10200if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10201    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10202else
10203    :
10204fi
10205
10206fi
10207
10208
10209
10210
10211
10212
10213  lt_prog_compiler_wl=
10214lt_prog_compiler_pic=
10215lt_prog_compiler_static=
10216
10217
10218  if test yes = "$GCC"; then
10219    lt_prog_compiler_wl='-Wl,'
10220    lt_prog_compiler_static='-static'
10221
10222    case $host_os in
10223      aix*)
10224      # All AIX code is PIC.
10225      if test ia64 = "$host_cpu"; then
10226	# AIX 5 now supports IA64 processor
10227	lt_prog_compiler_static='-Bstatic'
10228      fi
10229      lt_prog_compiler_pic='-fPIC'
10230      ;;
10231
10232    amigaos*)
10233      case $host_cpu in
10234      powerpc)
10235            # see comment about AmigaOS4 .so support
10236            lt_prog_compiler_pic='-fPIC'
10237        ;;
10238      m68k)
10239            # FIXME: we need at least 68020 code to build shared libraries, but
10240            # adding the '-m68020' flag to GCC prevents building anything better,
10241            # like '-m68040'.
10242            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10243        ;;
10244      esac
10245      ;;
10246
10247    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10248      # PIC is the default for these OSes.
10249      ;;
10250
10251    mingw* | cygwin* | pw32* | os2* | cegcc*)
10252      # This hack is so that the source file can tell whether it is being
10253      # built for inclusion in a dll (and should export symbols for example).
10254      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10255      # (--disable-auto-import) libraries
10256      lt_prog_compiler_pic='-DDLL_EXPORT'
10257      case $host_os in
10258      os2*)
10259	lt_prog_compiler_static='$wl-static'
10260	;;
10261      esac
10262      ;;
10263
10264    darwin* | rhapsody*)
10265      # PIC is the default on this platform
10266      # Common symbols not allowed in MH_DYLIB files
10267      lt_prog_compiler_pic='-fno-common'
10268      ;;
10269
10270    haiku*)
10271      # PIC is the default for Haiku.
10272      # The "-static" flag exists, but is broken.
10273      lt_prog_compiler_static=
10274      ;;
10275
10276    hpux*)
10277      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10278      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10279      # sets the default TLS model and affects inlining.
10280      case $host_cpu in
10281      hppa*64*)
10282	# +Z the default
10283	;;
10284      *)
10285	lt_prog_compiler_pic='-fPIC'
10286	;;
10287      esac
10288      ;;
10289
10290    interix[3-9]*)
10291      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10292      # Instead, we relocate shared libraries at runtime.
10293      ;;
10294
10295    msdosdjgpp*)
10296      # Just because we use GCC doesn't mean we suddenly get shared libraries
10297      # on systems that don't support them.
10298      lt_prog_compiler_can_build_shared=no
10299      enable_shared=no
10300      ;;
10301
10302    *nto* | *qnx*)
10303      # QNX uses GNU C++, but need to define -shared option too, otherwise
10304      # it will coredump.
10305      lt_prog_compiler_pic='-fPIC -shared'
10306      ;;
10307
10308    sysv4*MP*)
10309      if test -d /usr/nec; then
10310	lt_prog_compiler_pic=-Kconform_pic
10311      fi
10312      ;;
10313
10314    *)
10315      lt_prog_compiler_pic='-fPIC'
10316      ;;
10317    esac
10318
10319    case $cc_basename in
10320    nvcc*) # Cuda Compiler Driver 2.2
10321      lt_prog_compiler_wl='-Xlinker '
10322      if test -n "$lt_prog_compiler_pic"; then
10323        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10324      fi
10325      ;;
10326    esac
10327  else
10328    # PORTME Check for flag to pass linker flags through the system compiler.
10329    case $host_os in
10330    aix*)
10331      lt_prog_compiler_wl='-Wl,'
10332      if test ia64 = "$host_cpu"; then
10333	# AIX 5 now supports IA64 processor
10334	lt_prog_compiler_static='-Bstatic'
10335      else
10336	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10337      fi
10338      ;;
10339
10340    darwin* | rhapsody*)
10341      # PIC is the default on this platform
10342      # Common symbols not allowed in MH_DYLIB files
10343      lt_prog_compiler_pic='-fno-common'
10344      case $cc_basename in
10345      nagfor*)
10346        # NAG Fortran compiler
10347        lt_prog_compiler_wl='-Wl,-Wl,,'
10348        lt_prog_compiler_pic='-PIC'
10349        lt_prog_compiler_static='-Bstatic'
10350        ;;
10351      esac
10352      ;;
10353
10354    mingw* | cygwin* | pw32* | os2* | cegcc*)
10355      # This hack is so that the source file can tell whether it is being
10356      # built for inclusion in a dll (and should export symbols for example).
10357      lt_prog_compiler_pic='-DDLL_EXPORT'
10358      case $host_os in
10359      os2*)
10360	lt_prog_compiler_static='$wl-static'
10361	;;
10362      esac
10363      ;;
10364
10365    hpux9* | hpux10* | hpux11*)
10366      lt_prog_compiler_wl='-Wl,'
10367      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10368      # not for PA HP-UX.
10369      case $host_cpu in
10370      hppa*64*|ia64*)
10371	# +Z the default
10372	;;
10373      *)
10374	lt_prog_compiler_pic='+Z'
10375	;;
10376      esac
10377      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10378      lt_prog_compiler_static='$wl-a ${wl}archive'
10379      ;;
10380
10381    irix5* | irix6* | nonstopux*)
10382      lt_prog_compiler_wl='-Wl,'
10383      # PIC (with -KPIC) is the default.
10384      lt_prog_compiler_static='-non_shared'
10385      ;;
10386
10387    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10388      case $cc_basename in
10389      # old Intel for x86_64, which still supported -KPIC.
10390      ecc*)
10391	lt_prog_compiler_wl='-Wl,'
10392	lt_prog_compiler_pic='-KPIC'
10393	lt_prog_compiler_static='-static'
10394        ;;
10395      # icc used to be incompatible with GCC.
10396      # ICC 10 doesn't accept -KPIC any more.
10397      icc* | ifort*)
10398	lt_prog_compiler_wl='-Wl,'
10399	lt_prog_compiler_pic='-fPIC'
10400	lt_prog_compiler_static='-static'
10401        ;;
10402      # Lahey Fortran 8.1.
10403      lf95*)
10404	lt_prog_compiler_wl='-Wl,'
10405	lt_prog_compiler_pic='--shared'
10406	lt_prog_compiler_static='--static'
10407	;;
10408      nagfor*)
10409	# NAG Fortran compiler
10410	lt_prog_compiler_wl='-Wl,-Wl,,'
10411	lt_prog_compiler_pic='-PIC'
10412	lt_prog_compiler_static='-Bstatic'
10413	;;
10414      tcc*)
10415	# Fabrice Bellard et al's Tiny C Compiler
10416	lt_prog_compiler_wl='-Wl,'
10417	lt_prog_compiler_pic='-fPIC'
10418	lt_prog_compiler_static='-static'
10419	;;
10420      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10421        # Portland Group compilers (*not* the Pentium gcc compiler,
10422	# which looks to be a dead project)
10423	lt_prog_compiler_wl='-Wl,'
10424	lt_prog_compiler_pic='-fpic'
10425	lt_prog_compiler_static='-Bstatic'
10426        ;;
10427      ccc*)
10428        lt_prog_compiler_wl='-Wl,'
10429        # All Alpha code is PIC.
10430        lt_prog_compiler_static='-non_shared'
10431        ;;
10432      xl* | bgxl* | bgf* | mpixl*)
10433	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10434	lt_prog_compiler_wl='-Wl,'
10435	lt_prog_compiler_pic='-qpic'
10436	lt_prog_compiler_static='-qstaticlink'
10437	;;
10438      *)
10439	case `$CC -V 2>&1 | $SED 5q` in
10440	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10441	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10442	  lt_prog_compiler_pic='-KPIC'
10443	  lt_prog_compiler_static='-Bstatic'
10444	  lt_prog_compiler_wl=''
10445	  ;;
10446	*Sun\ F* | *Sun*Fortran*)
10447	  lt_prog_compiler_pic='-KPIC'
10448	  lt_prog_compiler_static='-Bstatic'
10449	  lt_prog_compiler_wl='-Qoption ld '
10450	  ;;
10451	*Sun\ C*)
10452	  # Sun C 5.9
10453	  lt_prog_compiler_pic='-KPIC'
10454	  lt_prog_compiler_static='-Bstatic'
10455	  lt_prog_compiler_wl='-Wl,'
10456	  ;;
10457        *Intel*\ [CF]*Compiler*)
10458	  lt_prog_compiler_wl='-Wl,'
10459	  lt_prog_compiler_pic='-fPIC'
10460	  lt_prog_compiler_static='-static'
10461	  ;;
10462	*Portland\ Group*)
10463	  lt_prog_compiler_wl='-Wl,'
10464	  lt_prog_compiler_pic='-fpic'
10465	  lt_prog_compiler_static='-Bstatic'
10466	  ;;
10467	esac
10468	;;
10469      esac
10470      ;;
10471
10472    newsos6)
10473      lt_prog_compiler_pic='-KPIC'
10474      lt_prog_compiler_static='-Bstatic'
10475      ;;
10476
10477    *nto* | *qnx*)
10478      # QNX uses GNU C++, but need to define -shared option too, otherwise
10479      # it will coredump.
10480      lt_prog_compiler_pic='-fPIC -shared'
10481      ;;
10482
10483    osf3* | osf4* | osf5*)
10484      lt_prog_compiler_wl='-Wl,'
10485      # All OSF/1 code is PIC.
10486      lt_prog_compiler_static='-non_shared'
10487      ;;
10488
10489    rdos*)
10490      lt_prog_compiler_static='-non_shared'
10491      ;;
10492
10493    solaris*)
10494      lt_prog_compiler_pic='-KPIC'
10495      lt_prog_compiler_static='-Bstatic'
10496      case $cc_basename in
10497      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10498	lt_prog_compiler_wl='-Qoption ld ';;
10499      *)
10500	lt_prog_compiler_wl='-Wl,';;
10501      esac
10502      ;;
10503
10504    sunos4*)
10505      lt_prog_compiler_wl='-Qoption ld '
10506      lt_prog_compiler_pic='-PIC'
10507      lt_prog_compiler_static='-Bstatic'
10508      ;;
10509
10510    sysv4 | sysv4.2uw2* | sysv4.3*)
10511      lt_prog_compiler_wl='-Wl,'
10512      lt_prog_compiler_pic='-KPIC'
10513      lt_prog_compiler_static='-Bstatic'
10514      ;;
10515
10516    sysv4*MP*)
10517      if test -d /usr/nec; then
10518	lt_prog_compiler_pic='-Kconform_pic'
10519	lt_prog_compiler_static='-Bstatic'
10520      fi
10521      ;;
10522
10523    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10524      lt_prog_compiler_wl='-Wl,'
10525      lt_prog_compiler_pic='-KPIC'
10526      lt_prog_compiler_static='-Bstatic'
10527      ;;
10528
10529    unicos*)
10530      lt_prog_compiler_wl='-Wl,'
10531      lt_prog_compiler_can_build_shared=no
10532      ;;
10533
10534    uts4*)
10535      lt_prog_compiler_pic='-pic'
10536      lt_prog_compiler_static='-Bstatic'
10537      ;;
10538
10539    *)
10540      lt_prog_compiler_can_build_shared=no
10541      ;;
10542    esac
10543  fi
10544
10545case $host_os in
10546  # For platforms that do not support PIC, -DPIC is meaningless:
10547  *djgpp*)
10548    lt_prog_compiler_pic=
10549    ;;
10550  *)
10551    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10552    ;;
10553esac
10554
10555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10556printf %s "checking for $compiler option to produce PIC... " >&6; }
10557if test ${lt_cv_prog_compiler_pic+y}
10558then :
10559  printf %s "(cached) " >&6
10560else $as_nop
10561  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10562fi
10563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10564printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10565lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10566
10567#
10568# Check to make sure the PIC flag actually works.
10569#
10570if test -n "$lt_prog_compiler_pic"; then
10571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10572printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10573if test ${lt_cv_prog_compiler_pic_works+y}
10574then :
10575  printf %s "(cached) " >&6
10576else $as_nop
10577  lt_cv_prog_compiler_pic_works=no
10578   ac_outfile=conftest.$ac_objext
10579   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10580   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10581   # Insert the option either (1) after the last *FLAGS variable, or
10582   # (2) before a word containing "conftest.", or (3) at the end.
10583   # Note that $ac_compile itself does not contain backslashes and begins
10584   # with a dollar sign (not a hyphen), so the echo should work correctly.
10585   # The option is referenced via a variable to avoid confusing sed.
10586   lt_compile=`echo "$ac_compile" | $SED \
10587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10589   -e 's:$: $lt_compiler_flag:'`
10590   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10591   (eval "$lt_compile" 2>conftest.err)
10592   ac_status=$?
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   if (exit $ac_status) && test -s "$ac_outfile"; then
10596     # The compiler can only warn and ignore the option if not recognized
10597     # So say no if there are warnings other than the usual output.
10598     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10599     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10600     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10601       lt_cv_prog_compiler_pic_works=yes
10602     fi
10603   fi
10604   $RM conftest*
10605
10606fi
10607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10608printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10609
10610if test yes = "$lt_cv_prog_compiler_pic_works"; then
10611    case $lt_prog_compiler_pic in
10612     "" | " "*) ;;
10613     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10614     esac
10615else
10616    lt_prog_compiler_pic=
10617     lt_prog_compiler_can_build_shared=no
10618fi
10619
10620fi
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632#
10633# Check to make sure the static flag actually works.
10634#
10635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10637printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10638if test ${lt_cv_prog_compiler_static_works+y}
10639then :
10640  printf %s "(cached) " >&6
10641else $as_nop
10642  lt_cv_prog_compiler_static_works=no
10643   save_LDFLAGS=$LDFLAGS
10644   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10645   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10646   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10647     # The linker can only warn and ignore the option if not recognized
10648     # So say no if there are warnings
10649     if test -s conftest.err; then
10650       # Append any errors to the config.log.
10651       cat conftest.err 1>&5
10652       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10653       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10654       if diff conftest.exp conftest.er2 >/dev/null; then
10655         lt_cv_prog_compiler_static_works=yes
10656       fi
10657     else
10658       lt_cv_prog_compiler_static_works=yes
10659     fi
10660   fi
10661   $RM -r conftest*
10662   LDFLAGS=$save_LDFLAGS
10663
10664fi
10665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10666printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10667
10668if test yes = "$lt_cv_prog_compiler_static_works"; then
10669    :
10670else
10671    lt_prog_compiler_static=
10672fi
10673
10674
10675
10676
10677
10678
10679
10680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10681printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10682if test ${lt_cv_prog_compiler_c_o+y}
10683then :
10684  printf %s "(cached) " >&6
10685else $as_nop
10686  lt_cv_prog_compiler_c_o=no
10687   $RM -r conftest 2>/dev/null
10688   mkdir conftest
10689   cd conftest
10690   mkdir out
10691   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10692
10693   lt_compiler_flag="-o out/conftest2.$ac_objext"
10694   # Insert the option either (1) after the last *FLAGS variable, or
10695   # (2) before a word containing "conftest.", or (3) at the end.
10696   # Note that $ac_compile itself does not contain backslashes and begins
10697   # with a dollar sign (not a hyphen), so the echo should work correctly.
10698   lt_compile=`echo "$ac_compile" | $SED \
10699   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10700   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10701   -e 's:$: $lt_compiler_flag:'`
10702   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10703   (eval "$lt_compile" 2>out/conftest.err)
10704   ac_status=$?
10705   cat out/conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10708   then
10709     # The compiler can only warn and ignore the option if not recognized
10710     # So say no if there are warnings
10711     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10712     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10713     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10714       lt_cv_prog_compiler_c_o=yes
10715     fi
10716   fi
10717   chmod u+w . 2>&5
10718   $RM conftest*
10719   # SGI C++ compiler will create directory out/ii_files/ for
10720   # template instantiation
10721   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10722   $RM out/* && rmdir out
10723   cd ..
10724   $RM -r conftest
10725   $RM conftest*
10726
10727fi
10728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10729printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10730
10731
10732
10733
10734
10735
10736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10737printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10738if test ${lt_cv_prog_compiler_c_o+y}
10739then :
10740  printf %s "(cached) " >&6
10741else $as_nop
10742  lt_cv_prog_compiler_c_o=no
10743   $RM -r conftest 2>/dev/null
10744   mkdir conftest
10745   cd conftest
10746   mkdir out
10747   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10748
10749   lt_compiler_flag="-o out/conftest2.$ac_objext"
10750   # Insert the option either (1) after the last *FLAGS variable, or
10751   # (2) before a word containing "conftest.", or (3) at the end.
10752   # Note that $ac_compile itself does not contain backslashes and begins
10753   # with a dollar sign (not a hyphen), so the echo should work correctly.
10754   lt_compile=`echo "$ac_compile" | $SED \
10755   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10756   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10757   -e 's:$: $lt_compiler_flag:'`
10758   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10759   (eval "$lt_compile" 2>out/conftest.err)
10760   ac_status=$?
10761   cat out/conftest.err >&5
10762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10764   then
10765     # The compiler can only warn and ignore the option if not recognized
10766     # So say no if there are warnings
10767     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10768     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10769     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10770       lt_cv_prog_compiler_c_o=yes
10771     fi
10772   fi
10773   chmod u+w . 2>&5
10774   $RM conftest*
10775   # SGI C++ compiler will create directory out/ii_files/ for
10776   # template instantiation
10777   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10778   $RM out/* && rmdir out
10779   cd ..
10780   $RM -r conftest
10781   $RM conftest*
10782
10783fi
10784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10785printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10786
10787
10788
10789
10790hard_links=nottested
10791if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10792  # do not overwrite the value of need_locks provided by the user
10793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10794printf %s "checking if we can lock with hard links... " >&6; }
10795  hard_links=yes
10796  $RM conftest*
10797  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10798  touch conftest.a
10799  ln conftest.a conftest.b 2>&5 || hard_links=no
10800  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10802printf "%s\n" "$hard_links" >&6; }
10803  if test no = "$hard_links"; then
10804    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10805printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10806    need_locks=warn
10807  fi
10808else
10809  need_locks=no
10810fi
10811
10812
10813
10814
10815
10816
10817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10818printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10819
10820  runpath_var=
10821  allow_undefined_flag=
10822  always_export_symbols=no
10823  archive_cmds=
10824  archive_expsym_cmds=
10825  compiler_needs_object=no
10826  enable_shared_with_static_runtimes=no
10827  export_dynamic_flag_spec=
10828  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10829  hardcode_automatic=no
10830  hardcode_direct=no
10831  hardcode_direct_absolute=no
10832  hardcode_libdir_flag_spec=
10833  hardcode_libdir_separator=
10834  hardcode_minus_L=no
10835  hardcode_shlibpath_var=unsupported
10836  inherit_rpath=no
10837  link_all_deplibs=unknown
10838  module_cmds=
10839  module_expsym_cmds=
10840  old_archive_from_new_cmds=
10841  old_archive_from_expsyms_cmds=
10842  thread_safe_flag_spec=
10843  whole_archive_flag_spec=
10844  # include_expsyms should be a list of space-separated symbols to be *always*
10845  # included in the symbol list
10846  include_expsyms=
10847  # exclude_expsyms can be an extended regexp of symbols to exclude
10848  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10849  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10850  # as well as any symbol that contains 'd'.
10851  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10852  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10853  # platforms (ab)use it in PIC code, but their linkers get confused if
10854  # the symbol is explicitly referenced.  Since portable code cannot
10855  # rely on this symbol name, it's probably fine to never include it in
10856  # preloaded symbol tables.
10857  # Exclude shared library initialization/finalization symbols.
10858  extract_expsyms_cmds=
10859
10860  case $host_os in
10861  cygwin* | mingw* | pw32* | cegcc*)
10862    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10863    # When not using gcc, we currently assume that we are using
10864    # Microsoft Visual C++ or Intel C++ Compiler.
10865    if test yes != "$GCC"; then
10866      with_gnu_ld=no
10867    fi
10868    ;;
10869  interix*)
10870    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10871    with_gnu_ld=yes
10872    ;;
10873  openbsd* | bitrig*)
10874    with_gnu_ld=no
10875    ;;
10876  esac
10877
10878  ld_shlibs=yes
10879
10880  # On some targets, GNU ld is compatible enough with the native linker
10881  # that we're better off using the native interface for both.
10882  lt_use_gnu_ld_interface=no
10883  if test yes = "$with_gnu_ld"; then
10884    case $host_os in
10885      aix*)
10886	# The AIX port of GNU ld has always aspired to compatibility
10887	# with the native linker.  However, as the warning in the GNU ld
10888	# block says, versions before 2.19.5* couldn't really create working
10889	# shared libraries, regardless of the interface used.
10890	case `$LD -v 2>&1` in
10891	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10892	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10893	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10894	  *)
10895	    lt_use_gnu_ld_interface=yes
10896	    ;;
10897	esac
10898	;;
10899      *)
10900	lt_use_gnu_ld_interface=yes
10901	;;
10902    esac
10903  fi
10904
10905  if test yes = "$lt_use_gnu_ld_interface"; then
10906    # If archive_cmds runs LD, not CC, wlarc should be empty
10907    wlarc='$wl'
10908
10909    # Set some defaults for GNU ld with shared library support. These
10910    # are reset later if shared libraries are not supported. Putting them
10911    # here allows them to be overridden if necessary.
10912    runpath_var=LD_RUN_PATH
10913    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10914    export_dynamic_flag_spec='$wl--export-dynamic'
10915    # ancient GNU ld didn't support --whole-archive et. al.
10916    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10917      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10918    else
10919      whole_archive_flag_spec=
10920    fi
10921    supports_anon_versioning=no
10922    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10923      *GNU\ gold*) supports_anon_versioning=yes ;;
10924      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10925      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10926      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10927      *\ 2.11.*) ;; # other 2.11 versions
10928      *) supports_anon_versioning=yes ;;
10929    esac
10930
10931    # See if GNU ld supports shared libraries.
10932    case $host_os in
10933    aix[3-9]*)
10934      # On AIX/PPC, the GNU linker is very broken
10935      if test ia64 != "$host_cpu"; then
10936	ld_shlibs=no
10937	cat <<_LT_EOF 1>&2
10938
10939*** Warning: the GNU linker, at least up to release 2.19, is reported
10940*** to be unable to reliably create shared libraries on AIX.
10941*** Therefore, libtool is disabling shared libraries support.  If you
10942*** really care for shared libraries, you may want to install binutils
10943*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10944*** You will then need to restart the configuration process.
10945
10946_LT_EOF
10947      fi
10948      ;;
10949
10950    amigaos*)
10951      case $host_cpu in
10952      powerpc)
10953            # see comment about AmigaOS4 .so support
10954            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10955            archive_expsym_cmds=''
10956        ;;
10957      m68k)
10958            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)'
10959            hardcode_libdir_flag_spec='-L$libdir'
10960            hardcode_minus_L=yes
10961        ;;
10962      esac
10963      ;;
10964
10965    beos*)
10966      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10967	allow_undefined_flag=unsupported
10968	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10969	# support --undefined.  This deserves some investigation.  FIXME
10970	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10971      else
10972	ld_shlibs=no
10973      fi
10974      ;;
10975
10976    cygwin* | mingw* | pw32* | cegcc*)
10977      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10978      # as there is no search path for DLLs.
10979      hardcode_libdir_flag_spec='-L$libdir'
10980      export_dynamic_flag_spec='$wl--export-all-symbols'
10981      allow_undefined_flag=unsupported
10982      always_export_symbols=no
10983      enable_shared_with_static_runtimes=yes
10984      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'
10985      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10986
10987      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10988        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10989	# If the export-symbols file already is a .def file, use it as
10990	# is; otherwise, prepend EXPORTS...
10991	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10992          cp $export_symbols $output_objdir/$soname.def;
10993        else
10994          echo EXPORTS > $output_objdir/$soname.def;
10995          cat $export_symbols >> $output_objdir/$soname.def;
10996        fi~
10997        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10998      else
10999	ld_shlibs=no
11000      fi
11001      ;;
11002
11003    haiku*)
11004      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11005      link_all_deplibs=yes
11006      ;;
11007
11008    os2*)
11009      hardcode_libdir_flag_spec='-L$libdir'
11010      hardcode_minus_L=yes
11011      allow_undefined_flag=unsupported
11012      shrext_cmds=.dll
11013      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11014	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11015	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11016	$ECHO EXPORTS >> $output_objdir/$libname.def~
11017	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11018	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11019	emximp -o $lib $output_objdir/$libname.def'
11020      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11021	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11022	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11023	$ECHO EXPORTS >> $output_objdir/$libname.def~
11024	prefix_cmds="$SED"~
11025	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11026	  prefix_cmds="$prefix_cmds -e 1d";
11027	fi~
11028	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11029	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11030	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11031	emximp -o $lib $output_objdir/$libname.def'
11032      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11033      enable_shared_with_static_runtimes=yes
11034      file_list_spec='@'
11035      ;;
11036
11037    interix[3-9]*)
11038      hardcode_direct=no
11039      hardcode_shlibpath_var=no
11040      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11041      export_dynamic_flag_spec='$wl-E'
11042      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11043      # Instead, shared libraries are loaded at an image base (0x10000000 by
11044      # default) and relocated if they conflict, which is a slow very memory
11045      # consuming and fragmenting process.  To avoid this, we pick a random,
11046      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11047      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11048      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11049      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'
11050      ;;
11051
11052    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11053      tmp_diet=no
11054      if test linux-dietlibc = "$host_os"; then
11055	case $cc_basename in
11056	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11057	esac
11058      fi
11059      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11060	 && test no = "$tmp_diet"
11061      then
11062	tmp_addflag=' $pic_flag'
11063	tmp_sharedflag='-shared'
11064	case $cc_basename,$host_cpu in
11065        pgcc*)				# Portland Group C compiler
11066	  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'
11067	  tmp_addflag=' $pic_flag'
11068	  ;;
11069	pgf77* | pgf90* | pgf95* | pgfortran*)
11070					# Portland Group f77 and f90 compilers
11071	  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'
11072	  tmp_addflag=' $pic_flag -Mnomain' ;;
11073	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11074	  tmp_addflag=' -i_dynamic' ;;
11075	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11076	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11077	ifc* | ifort*)			# Intel Fortran compiler
11078	  tmp_addflag=' -nofor_main' ;;
11079	lf95*)				# Lahey Fortran 8.1
11080	  whole_archive_flag_spec=
11081	  tmp_sharedflag='--shared' ;;
11082        nagfor*)                        # NAGFOR 5.3
11083          tmp_sharedflag='-Wl,-shared' ;;
11084	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11085	  tmp_sharedflag='-qmkshrobj'
11086	  tmp_addflag= ;;
11087	nvcc*)	# Cuda Compiler Driver 2.2
11088	  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'
11089	  compiler_needs_object=yes
11090	  ;;
11091	esac
11092	case `$CC -V 2>&1 | $SED 5q` in
11093	*Sun\ C*)			# Sun C 5.9
11094	  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'
11095	  compiler_needs_object=yes
11096	  tmp_sharedflag='-G' ;;
11097	*Sun\ F*)			# Sun Fortran 8.3
11098	  tmp_sharedflag='-G' ;;
11099	esac
11100	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11101
11102        if test yes = "$supports_anon_versioning"; then
11103          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11104            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11105            echo "local: *; };" >> $output_objdir/$libname.ver~
11106            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11107        fi
11108
11109	case $cc_basename in
11110	tcc*)
11111	  export_dynamic_flag_spec='-rdynamic'
11112	  ;;
11113	xlf* | bgf* | bgxlf* | mpixlf*)
11114	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11115	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11116	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11117	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11118	  if test yes = "$supports_anon_versioning"; then
11119	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11120              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11121              echo "local: *; };" >> $output_objdir/$libname.ver~
11122              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11123	  fi
11124	  ;;
11125	esac
11126      else
11127        ld_shlibs=no
11128      fi
11129      ;;
11130
11131    netbsd*)
11132      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11133	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11134	wlarc=
11135      else
11136	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11137	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11138      fi
11139      ;;
11140
11141    solaris*)
11142      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11143	ld_shlibs=no
11144	cat <<_LT_EOF 1>&2
11145
11146*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11147*** create shared libraries on Solaris systems.  Therefore, libtool
11148*** is disabling shared libraries support.  We urge you to upgrade GNU
11149*** binutils to release 2.9.1 or newer.  Another option is to modify
11150*** your PATH or compiler configuration so that the native linker is
11151*** used, and then restart.
11152
11153_LT_EOF
11154      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11155	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11156	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11157      else
11158	ld_shlibs=no
11159      fi
11160      ;;
11161
11162    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11163      case `$LD -v 2>&1` in
11164        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11165	ld_shlibs=no
11166	cat <<_LT_EOF 1>&2
11167
11168*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11169*** reliably create shared libraries on SCO systems.  Therefore, libtool
11170*** is disabling shared libraries support.  We urge you to upgrade GNU
11171*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11172*** your PATH or compiler configuration so that the native linker is
11173*** used, and then restart.
11174
11175_LT_EOF
11176	;;
11177	*)
11178	  # For security reasons, it is highly recommended that you always
11179	  # use absolute paths for naming shared libraries, and exclude the
11180	  # DT_RUNPATH tag from executables and libraries.  But doing so
11181	  # requires that you compile everything twice, which is a pain.
11182	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11183	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11184	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11185	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11186	  else
11187	    ld_shlibs=no
11188	  fi
11189	;;
11190      esac
11191      ;;
11192
11193    sunos4*)
11194      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11195      wlarc=
11196      hardcode_direct=yes
11197      hardcode_shlibpath_var=no
11198      ;;
11199
11200    *)
11201      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11202	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11203	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11204      else
11205	ld_shlibs=no
11206      fi
11207      ;;
11208    esac
11209
11210    if test no = "$ld_shlibs"; then
11211      runpath_var=
11212      hardcode_libdir_flag_spec=
11213      export_dynamic_flag_spec=
11214      whole_archive_flag_spec=
11215    fi
11216  else
11217    # PORTME fill in a description of your system's linker (not GNU ld)
11218    case $host_os in
11219    aix3*)
11220      allow_undefined_flag=unsupported
11221      always_export_symbols=yes
11222      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'
11223      # Note: this linker hardcodes the directories in LIBPATH if there
11224      # are no directories specified by -L.
11225      hardcode_minus_L=yes
11226      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11227	# Neither direct hardcoding nor static linking is supported with a
11228	# broken collect2.
11229	hardcode_direct=unsupported
11230      fi
11231      ;;
11232
11233    aix[4-9]*)
11234      if test ia64 = "$host_cpu"; then
11235	# On IA64, the linker does run time linking by default, so we don't
11236	# have to do anything special.
11237	aix_use_runtimelinking=no
11238	exp_sym_flag='-Bexport'
11239	no_entry_flag=
11240      else
11241	# If we're using GNU nm, then we don't want the "-C" option.
11242	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11243	# Without the "-l" option, or with the "-B" option, AIX nm treats
11244	# weak defined symbols like other global defined symbols, whereas
11245	# GNU nm marks them as "W".
11246	# While the 'weak' keyword is ignored in the Export File, we need
11247	# it in the Import File for the 'aix-soname' feature, so we have
11248	# to replace the "-B" option with "-P" for AIX nm.
11249	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11250	  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'
11251	else
11252	  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'
11253	fi
11254	aix_use_runtimelinking=no
11255
11256	# Test if we are trying to use run time linking or normal
11257	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11258	# have runtime linking enabled, and use it for executables.
11259	# For shared libraries, we enable/disable runtime linking
11260	# depending on the kind of the shared library created -
11261	# when "with_aix_soname,aix_use_runtimelinking" is:
11262	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11263	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11264	#            lib.a           static archive
11265	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11266	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11267	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11268	#            lib.a(lib.so.V) shared, rtl:no
11269	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11270	#            lib.a           static archive
11271	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11272	  for ld_flag in $LDFLAGS; do
11273	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11274	    aix_use_runtimelinking=yes
11275	    break
11276	  fi
11277	  done
11278	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11279	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11280	    # so we don't have lib.a shared libs to link our executables.
11281	    # We have to force runtime linking in this case.
11282	    aix_use_runtimelinking=yes
11283	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11284	  fi
11285	  ;;
11286	esac
11287
11288	exp_sym_flag='-bexport'
11289	no_entry_flag='-bnoentry'
11290      fi
11291
11292      # When large executables or shared objects are built, AIX ld can
11293      # have problems creating the table of contents.  If linking a library
11294      # or program results in "error TOC overflow" add -mminimal-toc to
11295      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11296      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11297
11298      archive_cmds=''
11299      hardcode_direct=yes
11300      hardcode_direct_absolute=yes
11301      hardcode_libdir_separator=':'
11302      link_all_deplibs=yes
11303      file_list_spec='$wl-f,'
11304      case $with_aix_soname,$aix_use_runtimelinking in
11305      aix,*) ;; # traditional, no import file
11306      svr4,* | *,yes) # use import file
11307	# The Import File defines what to hardcode.
11308	hardcode_direct=no
11309	hardcode_direct_absolute=no
11310	;;
11311      esac
11312
11313      if test yes = "$GCC"; then
11314	case $host_os in aix4.[012]|aix4.[012].*)
11315	# We only want to do this on AIX 4.2 and lower, the check
11316	# below for broken collect2 doesn't work under 4.3+
11317	  collect2name=`$CC -print-prog-name=collect2`
11318	  if test -f "$collect2name" &&
11319	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11320	  then
11321	  # We have reworked collect2
11322	  :
11323	  else
11324	  # We have old collect2
11325	  hardcode_direct=unsupported
11326	  # It fails to find uninstalled libraries when the uninstalled
11327	  # path is not listed in the libpath.  Setting hardcode_minus_L
11328	  # to unsupported forces relinking
11329	  hardcode_minus_L=yes
11330	  hardcode_libdir_flag_spec='-L$libdir'
11331	  hardcode_libdir_separator=
11332	  fi
11333	  ;;
11334	esac
11335	shared_flag='-shared'
11336	if test yes = "$aix_use_runtimelinking"; then
11337	  shared_flag="$shared_flag "'$wl-G'
11338	fi
11339	# Need to ensure runtime linking is disabled for the traditional
11340	# shared library, or the linker may eventually find shared libraries
11341	# /with/ Import File - we do not want to mix them.
11342	shared_flag_aix='-shared'
11343	shared_flag_svr4='-shared $wl-G'
11344      else
11345	# not using gcc
11346	if test ia64 = "$host_cpu"; then
11347	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11348	# chokes on -Wl,-G. The following line is correct:
11349	  shared_flag='-G'
11350	else
11351	  if test yes = "$aix_use_runtimelinking"; then
11352	    shared_flag='$wl-G'
11353	  else
11354	    shared_flag='$wl-bM:SRE'
11355	  fi
11356	  shared_flag_aix='$wl-bM:SRE'
11357	  shared_flag_svr4='$wl-G'
11358	fi
11359      fi
11360
11361      export_dynamic_flag_spec='$wl-bexpall'
11362      # It seems that -bexpall does not export symbols beginning with
11363      # underscore (_), so it is better to generate a list of symbols to export.
11364      always_export_symbols=yes
11365      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11366	# Warning - without using the other runtime loading flags (-brtl),
11367	# -berok will link without error, but may produce a broken library.
11368	allow_undefined_flag='-berok'
11369        # Determine the default libpath from the value encoded in an
11370        # empty executable.
11371        if test set = "${lt_cv_aix_libpath+set}"; then
11372  aix_libpath=$lt_cv_aix_libpath
11373else
11374  if test ${lt_cv_aix_libpath_+y}
11375then :
11376  printf %s "(cached) " >&6
11377else $as_nop
11378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380
11381int
11382main (void)
11383{
11384
11385  ;
11386  return 0;
11387}
11388_ACEOF
11389if ac_fn_c_try_link "$LINENO"
11390then :
11391
11392  lt_aix_libpath_sed='
11393      /Import File Strings/,/^$/ {
11394	  /^0/ {
11395	      s/^0  *\([^ ]*\) *$/\1/
11396	      p
11397	  }
11398      }'
11399  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11400  # Check for a 64-bit object if we didn't find anything.
11401  if test -z "$lt_cv_aix_libpath_"; then
11402    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403  fi
11404fi
11405rm -f core conftest.err conftest.$ac_objext conftest.beam \
11406    conftest$ac_exeext conftest.$ac_ext
11407  if test -z "$lt_cv_aix_libpath_"; then
11408    lt_cv_aix_libpath_=/usr/lib:/lib
11409  fi
11410
11411fi
11412
11413  aix_libpath=$lt_cv_aix_libpath_
11414fi
11415
11416        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11417        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
11418      else
11419	if test ia64 = "$host_cpu"; then
11420	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11421	  allow_undefined_flag="-z nodefs"
11422	  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"
11423	else
11424	 # Determine the default libpath from the value encoded in an
11425	 # empty executable.
11426	 if test set = "${lt_cv_aix_libpath+set}"; then
11427  aix_libpath=$lt_cv_aix_libpath
11428else
11429  if test ${lt_cv_aix_libpath_+y}
11430then :
11431  printf %s "(cached) " >&6
11432else $as_nop
11433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11434/* end confdefs.h.  */
11435
11436int
11437main (void)
11438{
11439
11440  ;
11441  return 0;
11442}
11443_ACEOF
11444if ac_fn_c_try_link "$LINENO"
11445then :
11446
11447  lt_aix_libpath_sed='
11448      /Import File Strings/,/^$/ {
11449	  /^0/ {
11450	      s/^0  *\([^ ]*\) *$/\1/
11451	      p
11452	  }
11453      }'
11454  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11455  # Check for a 64-bit object if we didn't find anything.
11456  if test -z "$lt_cv_aix_libpath_"; then
11457    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11458  fi
11459fi
11460rm -f core conftest.err conftest.$ac_objext conftest.beam \
11461    conftest$ac_exeext conftest.$ac_ext
11462  if test -z "$lt_cv_aix_libpath_"; then
11463    lt_cv_aix_libpath_=/usr/lib:/lib
11464  fi
11465
11466fi
11467
11468  aix_libpath=$lt_cv_aix_libpath_
11469fi
11470
11471	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11472	  # Warning - without using the other run time loading flags,
11473	  # -berok will link without error, but may produce a broken library.
11474	  no_undefined_flag=' $wl-bernotok'
11475	  allow_undefined_flag=' $wl-berok'
11476	  if test yes = "$with_gnu_ld"; then
11477	    # We only use this code for GNU lds that support --whole-archive.
11478	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11479	  else
11480	    # Exported symbols can be pulled into shared objects from archives
11481	    whole_archive_flag_spec='$convenience'
11482	  fi
11483	  archive_cmds_need_lc=yes
11484	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11485	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11486	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11487	  if test svr4 != "$with_aix_soname"; then
11488	    # This is similar to how AIX traditionally builds its shared libraries.
11489	    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'
11490	  fi
11491	  if test aix != "$with_aix_soname"; then
11492	    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'
11493	  else
11494	    # used by -dlpreopen to get the symbols
11495	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11496	  fi
11497	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11498	fi
11499      fi
11500      ;;
11501
11502    amigaos*)
11503      case $host_cpu in
11504      powerpc)
11505            # see comment about AmigaOS4 .so support
11506            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11507            archive_expsym_cmds=''
11508        ;;
11509      m68k)
11510            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)'
11511            hardcode_libdir_flag_spec='-L$libdir'
11512            hardcode_minus_L=yes
11513        ;;
11514      esac
11515      ;;
11516
11517    bsdi[45]*)
11518      export_dynamic_flag_spec=-rdynamic
11519      ;;
11520
11521    cygwin* | mingw* | pw32* | cegcc*)
11522      # When not using gcc, we currently assume that we are using
11523      # Microsoft Visual C++ or Intel C++ Compiler.
11524      # hardcode_libdir_flag_spec is actually meaningless, as there is
11525      # no search path for DLLs.
11526      case $cc_basename in
11527      cl* | icl*)
11528	# Native MSVC or ICC
11529	hardcode_libdir_flag_spec=' '
11530	allow_undefined_flag=unsupported
11531	always_export_symbols=yes
11532	file_list_spec='@'
11533	# Tell ltmain to make .lib files, not .a files.
11534	libext=lib
11535	# Tell ltmain to make .dll files, not .so files.
11536	shrext_cmds=.dll
11537	# FIXME: Setting linknames here is a bad hack.
11538	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11539	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11540            cp "$export_symbols" "$output_objdir/$soname.def";
11541            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11542          else
11543            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11544          fi~
11545          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11546          linknames='
11547	# The linker will not automatically build a static lib if we build a DLL.
11548	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11549	enable_shared_with_static_runtimes=yes
11550	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11551	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11552	# Don't use ranlib
11553	old_postinstall_cmds='chmod 644 $oldlib'
11554	postlink_cmds='lt_outputfile="@OUTPUT@"~
11555          lt_tool_outputfile="@TOOL_OUTPUT@"~
11556          case $lt_outputfile in
11557            *.exe|*.EXE) ;;
11558            *)
11559              lt_outputfile=$lt_outputfile.exe
11560              lt_tool_outputfile=$lt_tool_outputfile.exe
11561              ;;
11562          esac~
11563          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11564            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11565            $RM "$lt_outputfile.manifest";
11566          fi'
11567	;;
11568      *)
11569	# Assume MSVC and ICC wrapper
11570	hardcode_libdir_flag_spec=' '
11571	allow_undefined_flag=unsupported
11572	# Tell ltmain to make .lib files, not .a files.
11573	libext=lib
11574	# Tell ltmain to make .dll files, not .so files.
11575	shrext_cmds=.dll
11576	# FIXME: Setting linknames here is a bad hack.
11577	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11578	# The linker will automatically build a .lib file if we build a DLL.
11579	old_archive_from_new_cmds='true'
11580	# FIXME: Should let the user specify the lib program.
11581	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11582	enable_shared_with_static_runtimes=yes
11583	;;
11584      esac
11585      ;;
11586
11587    darwin* | rhapsody*)
11588
11589
11590  archive_cmds_need_lc=no
11591  hardcode_direct=no
11592  hardcode_automatic=yes
11593  hardcode_shlibpath_var=unsupported
11594  if test yes = "$lt_cv_ld_force_load"; then
11595    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\"`'
11596
11597  else
11598    whole_archive_flag_spec=''
11599  fi
11600  link_all_deplibs=yes
11601  allow_undefined_flag=$_lt_dar_allow_undefined
11602  case $cc_basename in
11603     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11604     *) _lt_dar_can_shared=$GCC ;;
11605  esac
11606  if test yes = "$_lt_dar_can_shared"; then
11607    output_verbose_link_cmd=func_echo_all
11608    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11609    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11610    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"
11611    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"
11612
11613  else
11614  ld_shlibs=no
11615  fi
11616
11617      ;;
11618
11619    dgux*)
11620      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11621      hardcode_libdir_flag_spec='-L$libdir'
11622      hardcode_shlibpath_var=no
11623      ;;
11624
11625    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11626    # support.  Future versions do this automatically, but an explicit c++rt0.o
11627    # does not break anything, and helps significantly (at the cost of a little
11628    # extra space).
11629    freebsd2.2*)
11630      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11631      hardcode_libdir_flag_spec='-R$libdir'
11632      hardcode_direct=yes
11633      hardcode_shlibpath_var=no
11634      ;;
11635
11636    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11637    freebsd2.*)
11638      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11639      hardcode_direct=yes
11640      hardcode_minus_L=yes
11641      hardcode_shlibpath_var=no
11642      ;;
11643
11644    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11645    freebsd* | dragonfly* | midnightbsd*)
11646      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11647      hardcode_libdir_flag_spec='-R$libdir'
11648      hardcode_direct=yes
11649      hardcode_shlibpath_var=no
11650      ;;
11651
11652    hpux9*)
11653      if test yes = "$GCC"; then
11654	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'
11655      else
11656	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'
11657      fi
11658      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11659      hardcode_libdir_separator=:
11660      hardcode_direct=yes
11661
11662      # hardcode_minus_L: Not really in the search PATH,
11663      # but as the default location of the library.
11664      hardcode_minus_L=yes
11665      export_dynamic_flag_spec='$wl-E'
11666      ;;
11667
11668    hpux10*)
11669      if test yes,no = "$GCC,$with_gnu_ld"; then
11670	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11671      else
11672	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11673      fi
11674      if test no = "$with_gnu_ld"; then
11675	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11676	hardcode_libdir_separator=:
11677	hardcode_direct=yes
11678	hardcode_direct_absolute=yes
11679	export_dynamic_flag_spec='$wl-E'
11680	# hardcode_minus_L: Not really in the search PATH,
11681	# but as the default location of the library.
11682	hardcode_minus_L=yes
11683      fi
11684      ;;
11685
11686    hpux11*)
11687      if test yes,no = "$GCC,$with_gnu_ld"; then
11688	case $host_cpu in
11689	hppa*64*)
11690	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11691	  ;;
11692	ia64*)
11693	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11694	  ;;
11695	*)
11696	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11697	  ;;
11698	esac
11699      else
11700	case $host_cpu in
11701	hppa*64*)
11702	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11703	  ;;
11704	ia64*)
11705	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11706	  ;;
11707	*)
11708
11709	  # Older versions of the 11.00 compiler do not understand -b yet
11710	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11711	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11712printf %s "checking if $CC understands -b... " >&6; }
11713if test ${lt_cv_prog_compiler__b+y}
11714then :
11715  printf %s "(cached) " >&6
11716else $as_nop
11717  lt_cv_prog_compiler__b=no
11718   save_LDFLAGS=$LDFLAGS
11719   LDFLAGS="$LDFLAGS -b"
11720   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11721   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11722     # The linker can only warn and ignore the option if not recognized
11723     # So say no if there are warnings
11724     if test -s conftest.err; then
11725       # Append any errors to the config.log.
11726       cat conftest.err 1>&5
11727       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11728       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11729       if diff conftest.exp conftest.er2 >/dev/null; then
11730         lt_cv_prog_compiler__b=yes
11731       fi
11732     else
11733       lt_cv_prog_compiler__b=yes
11734     fi
11735   fi
11736   $RM -r conftest*
11737   LDFLAGS=$save_LDFLAGS
11738
11739fi
11740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11741printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11742
11743if test yes = "$lt_cv_prog_compiler__b"; then
11744    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11745else
11746    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11747fi
11748
11749	  ;;
11750	esac
11751      fi
11752      if test no = "$with_gnu_ld"; then
11753	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11754	hardcode_libdir_separator=:
11755
11756	case $host_cpu in
11757	hppa*64*|ia64*)
11758	  hardcode_direct=no
11759	  hardcode_shlibpath_var=no
11760	  ;;
11761	*)
11762	  hardcode_direct=yes
11763	  hardcode_direct_absolute=yes
11764	  export_dynamic_flag_spec='$wl-E'
11765
11766	  # hardcode_minus_L: Not really in the search PATH,
11767	  # but as the default location of the library.
11768	  hardcode_minus_L=yes
11769	  ;;
11770	esac
11771      fi
11772      ;;
11773
11774    irix5* | irix6* | nonstopux*)
11775      if test yes = "$GCC"; then
11776	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'
11777	# Try to use the -exported_symbol ld option, if it does not
11778	# work, assume that -exports_file does not work either and
11779	# implicitly export all symbols.
11780	# This should be the same for all languages, so no per-tag cache variable.
11781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11782printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11783if test ${lt_cv_irix_exported_symbol+y}
11784then :
11785  printf %s "(cached) " >&6
11786else $as_nop
11787  save_LDFLAGS=$LDFLAGS
11788	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11789	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790/* end confdefs.h.  */
11791int foo (void) { return 0; }
11792_ACEOF
11793if ac_fn_c_try_link "$LINENO"
11794then :
11795  lt_cv_irix_exported_symbol=yes
11796else $as_nop
11797  lt_cv_irix_exported_symbol=no
11798fi
11799rm -f core conftest.err conftest.$ac_objext conftest.beam \
11800    conftest$ac_exeext conftest.$ac_ext
11801           LDFLAGS=$save_LDFLAGS
11802fi
11803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11804printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11805	if test yes = "$lt_cv_irix_exported_symbol"; then
11806          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'
11807	fi
11808      else
11809	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'
11810	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'
11811      fi
11812      archive_cmds_need_lc='no'
11813      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11814      hardcode_libdir_separator=:
11815      inherit_rpath=yes
11816      link_all_deplibs=yes
11817      ;;
11818
11819    linux*)
11820      case $cc_basename in
11821      tcc*)
11822	# Fabrice Bellard et al's Tiny C Compiler
11823	ld_shlibs=yes
11824	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11825	;;
11826      esac
11827      ;;
11828
11829    netbsd*)
11830      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11831	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11832      else
11833	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11834      fi
11835      hardcode_libdir_flag_spec='-R$libdir'
11836      hardcode_direct=yes
11837      hardcode_shlibpath_var=no
11838      ;;
11839
11840    newsos6)
11841      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11842      hardcode_direct=yes
11843      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11844      hardcode_libdir_separator=:
11845      hardcode_shlibpath_var=no
11846      ;;
11847
11848    *nto* | *qnx*)
11849      ;;
11850
11851    openbsd* | bitrig*)
11852      if test -f /usr/libexec/ld.so; then
11853	hardcode_direct=yes
11854	hardcode_shlibpath_var=no
11855	hardcode_direct_absolute=yes
11856	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11857	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11858	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11859	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11860	  export_dynamic_flag_spec='$wl-E'
11861	else
11862	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11863	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11864	fi
11865      else
11866	ld_shlibs=no
11867      fi
11868      ;;
11869
11870    os2*)
11871      hardcode_libdir_flag_spec='-L$libdir'
11872      hardcode_minus_L=yes
11873      allow_undefined_flag=unsupported
11874      shrext_cmds=.dll
11875      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11876	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11877	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11878	$ECHO EXPORTS >> $output_objdir/$libname.def~
11879	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11880	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11881	emximp -o $lib $output_objdir/$libname.def'
11882      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11883	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11884	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11885	$ECHO EXPORTS >> $output_objdir/$libname.def~
11886	prefix_cmds="$SED"~
11887	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11888	  prefix_cmds="$prefix_cmds -e 1d";
11889	fi~
11890	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11891	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11892	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11893	emximp -o $lib $output_objdir/$libname.def'
11894      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11895      enable_shared_with_static_runtimes=yes
11896      file_list_spec='@'
11897      ;;
11898
11899    osf3*)
11900      if test yes = "$GCC"; then
11901	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11902	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'
11903      else
11904	allow_undefined_flag=' -expect_unresolved \*'
11905	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'
11906      fi
11907      archive_cmds_need_lc='no'
11908      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11909      hardcode_libdir_separator=:
11910      ;;
11911
11912    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11913      if test yes = "$GCC"; then
11914	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11915	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'
11916	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11917      else
11918	allow_undefined_flag=' -expect_unresolved \*'
11919	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'
11920	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~
11921          $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'
11922
11923	# Both c and cxx compiler support -rpath directly
11924	hardcode_libdir_flag_spec='-rpath $libdir'
11925      fi
11926      archive_cmds_need_lc='no'
11927      hardcode_libdir_separator=:
11928      ;;
11929
11930    solaris*)
11931      no_undefined_flag=' -z defs'
11932      if test yes = "$GCC"; then
11933	wlarc='$wl'
11934	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11935	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11936          $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'
11937      else
11938	case `$CC -V 2>&1` in
11939	*"Compilers 5.0"*)
11940	  wlarc=''
11941	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11942	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11943            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11944	  ;;
11945	*)
11946	  wlarc='$wl'
11947	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11948	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11949            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11950	  ;;
11951	esac
11952      fi
11953      hardcode_libdir_flag_spec='-R$libdir'
11954      hardcode_shlibpath_var=no
11955      case $host_os in
11956      solaris2.[0-5] | solaris2.[0-5].*) ;;
11957      *)
11958	# The compiler driver will combine and reorder linker options,
11959	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11960	# but is careful enough not to reorder.
11961	# Supported since Solaris 2.6 (maybe 2.5.1?)
11962	if test yes = "$GCC"; then
11963	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11964	else
11965	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11966	fi
11967	;;
11968      esac
11969      link_all_deplibs=yes
11970      ;;
11971
11972    sunos4*)
11973      if test sequent = "$host_vendor"; then
11974	# Use $CC to link under sequent, because it throws in some extra .o
11975	# files that make .init and .fini sections work.
11976	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11977      else
11978	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11979      fi
11980      hardcode_libdir_flag_spec='-L$libdir'
11981      hardcode_direct=yes
11982      hardcode_minus_L=yes
11983      hardcode_shlibpath_var=no
11984      ;;
11985
11986    sysv4)
11987      case $host_vendor in
11988	sni)
11989	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11990	  hardcode_direct=yes # is this really true???
11991	;;
11992	siemens)
11993	  ## LD is ld it makes a PLAMLIB
11994	  ## CC just makes a GrossModule.
11995	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11996	  reload_cmds='$CC -r -o $output$reload_objs'
11997	  hardcode_direct=no
11998        ;;
11999	motorola)
12000	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12002	;;
12003      esac
12004      runpath_var='LD_RUN_PATH'
12005      hardcode_shlibpath_var=no
12006      ;;
12007
12008    sysv4.3*)
12009      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12010      hardcode_shlibpath_var=no
12011      export_dynamic_flag_spec='-Bexport'
12012      ;;
12013
12014    sysv4*MP*)
12015      if test -d /usr/nec; then
12016	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12017	hardcode_shlibpath_var=no
12018	runpath_var=LD_RUN_PATH
12019	hardcode_runpath_var=yes
12020	ld_shlibs=yes
12021      fi
12022      ;;
12023
12024    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12025      no_undefined_flag='$wl-z,text'
12026      archive_cmds_need_lc=no
12027      hardcode_shlibpath_var=no
12028      runpath_var='LD_RUN_PATH'
12029
12030      if test yes = "$GCC"; then
12031	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12032	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12033      else
12034	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12035	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12036      fi
12037      ;;
12038
12039    sysv5* | sco3.2v5* | sco5v6*)
12040      # Note: We CANNOT use -z defs as we might desire, because we do not
12041      # link with -lc, and that would cause any symbols used from libc to
12042      # always be unresolved, which means just about no library would
12043      # ever link correctly.  If we're not using GNU ld we use -z text
12044      # though, which does catch some bad symbols but isn't as heavy-handed
12045      # as -z defs.
12046      no_undefined_flag='$wl-z,text'
12047      allow_undefined_flag='$wl-z,nodefs'
12048      archive_cmds_need_lc=no
12049      hardcode_shlibpath_var=no
12050      hardcode_libdir_flag_spec='$wl-R,$libdir'
12051      hardcode_libdir_separator=':'
12052      link_all_deplibs=yes
12053      export_dynamic_flag_spec='$wl-Bexport'
12054      runpath_var='LD_RUN_PATH'
12055
12056      if test yes = "$GCC"; then
12057	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12058	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12059      else
12060	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12061	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12062      fi
12063      ;;
12064
12065    uts4*)
12066      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12067      hardcode_libdir_flag_spec='-L$libdir'
12068      hardcode_shlibpath_var=no
12069      ;;
12070
12071    *)
12072      ld_shlibs=no
12073      ;;
12074    esac
12075
12076    if test sni = "$host_vendor"; then
12077      case $host in
12078      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12079	export_dynamic_flag_spec='$wl-Blargedynsym'
12080	;;
12081      esac
12082    fi
12083  fi
12084
12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12086printf "%s\n" "$ld_shlibs" >&6; }
12087test no = "$ld_shlibs" && can_build_shared=no
12088
12089with_gnu_ld=$with_gnu_ld
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105#
12106# Do we need to explicitly link libc?
12107#
12108case "x$archive_cmds_need_lc" in
12109x|xyes)
12110  # Assume -lc should be added
12111  archive_cmds_need_lc=yes
12112
12113  if test yes,yes = "$GCC,$enable_shared"; then
12114    case $archive_cmds in
12115    *'~'*)
12116      # FIXME: we may have to deal with multi-command sequences.
12117      ;;
12118    '$CC '*)
12119      # Test whether the compiler implicitly links with -lc since on some
12120      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12121      # to ld, don't add -lc before -lgcc.
12122      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12123printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12124if test ${lt_cv_archive_cmds_need_lc+y}
12125then :
12126  printf %s "(cached) " >&6
12127else $as_nop
12128  $RM conftest*
12129	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12130
12131	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12132  (eval $ac_compile) 2>&5
12133  ac_status=$?
12134  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135  test $ac_status = 0; } 2>conftest.err; then
12136	  soname=conftest
12137	  lib=conftest
12138	  libobjs=conftest.$ac_objext
12139	  deplibs=
12140	  wl=$lt_prog_compiler_wl
12141	  pic_flag=$lt_prog_compiler_pic
12142	  compiler_flags=-v
12143	  linker_flags=-v
12144	  verstring=
12145	  output_objdir=.
12146	  libname=conftest
12147	  lt_save_allow_undefined_flag=$allow_undefined_flag
12148	  allow_undefined_flag=
12149	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12150  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12151  ac_status=$?
12152  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153  test $ac_status = 0; }
12154	  then
12155	    lt_cv_archive_cmds_need_lc=no
12156	  else
12157	    lt_cv_archive_cmds_need_lc=yes
12158	  fi
12159	  allow_undefined_flag=$lt_save_allow_undefined_flag
12160	else
12161	  cat conftest.err 1>&5
12162	fi
12163	$RM conftest*
12164
12165fi
12166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12167printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12168      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12169      ;;
12170    esac
12171  fi
12172  ;;
12173esac
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12327printf %s "checking dynamic linker characteristics... " >&6; }
12328
12329if test yes = "$GCC"; then
12330  case $host_os in
12331    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12332    *) lt_awk_arg='/^libraries:/' ;;
12333  esac
12334  case $host_os in
12335    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12336    *) lt_sed_strip_eq='s|=/|/|g' ;;
12337  esac
12338  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12339  case $lt_search_path_spec in
12340  *\;*)
12341    # if the path contains ";" then we assume it to be the separator
12342    # otherwise default to the standard path separator (i.e. ":") - it is
12343    # assumed that no part of a normal pathname contains ";" but that should
12344    # okay in the real world where ";" in dirpaths is itself problematic.
12345    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12346    ;;
12347  *)
12348    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12349    ;;
12350  esac
12351  # Ok, now we have the path, separated by spaces, we can step through it
12352  # and add multilib dir if necessary...
12353  lt_tmp_lt_search_path_spec=
12354  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12355  # ...but if some path component already ends with the multilib dir we assume
12356  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12357  case "$lt_multi_os_dir; $lt_search_path_spec " in
12358  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12359    lt_multi_os_dir=
12360    ;;
12361  esac
12362  for lt_sys_path in $lt_search_path_spec; do
12363    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12364      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12365    elif test -n "$lt_multi_os_dir"; then
12366      test -d "$lt_sys_path" && \
12367	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12368    fi
12369  done
12370  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12371BEGIN {RS = " "; FS = "/|\n";} {
12372  lt_foo = "";
12373  lt_count = 0;
12374  for (lt_i = NF; lt_i > 0; lt_i--) {
12375    if ($lt_i != "" && $lt_i != ".") {
12376      if ($lt_i == "..") {
12377        lt_count++;
12378      } else {
12379        if (lt_count == 0) {
12380          lt_foo = "/" $lt_i lt_foo;
12381        } else {
12382          lt_count--;
12383        }
12384      }
12385    }
12386  }
12387  if (lt_foo != "") { lt_freq[lt_foo]++; }
12388  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12389}'`
12390  # AWK program above erroneously prepends '/' to C:/dos/paths
12391  # for these hosts.
12392  case $host_os in
12393    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12394      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12395  esac
12396  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12397else
12398  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12399fi
12400library_names_spec=
12401libname_spec='lib$name'
12402soname_spec=
12403shrext_cmds=.so
12404postinstall_cmds=
12405postuninstall_cmds=
12406finish_cmds=
12407finish_eval=
12408shlibpath_var=
12409shlibpath_overrides_runpath=unknown
12410version_type=none
12411dynamic_linker="$host_os ld.so"
12412sys_lib_dlsearch_path_spec="/lib /usr/lib"
12413need_lib_prefix=unknown
12414hardcode_into_libs=no
12415
12416# when you set need_version to no, make sure it does not cause -set_version
12417# flags to be left without arguments
12418need_version=unknown
12419
12420
12421
12422case $host_os in
12423aix3*)
12424  version_type=linux # correct to gnu/linux during the next big refactor
12425  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12426  shlibpath_var=LIBPATH
12427
12428  # AIX 3 has no versioning support, so we append a major version to the name.
12429  soname_spec='$libname$release$shared_ext$major'
12430  ;;
12431
12432aix[4-9]*)
12433  version_type=linux # correct to gnu/linux during the next big refactor
12434  need_lib_prefix=no
12435  need_version=no
12436  hardcode_into_libs=yes
12437  if test ia64 = "$host_cpu"; then
12438    # AIX 5 supports IA64
12439    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12440    shlibpath_var=LD_LIBRARY_PATH
12441  else
12442    # With GCC up to 2.95.x, collect2 would create an import file
12443    # for dependence libraries.  The import file would start with
12444    # the line '#! .'.  This would cause the generated library to
12445    # depend on '.', always an invalid library.  This was fixed in
12446    # development snapshots of GCC prior to 3.0.
12447    case $host_os in
12448      aix4 | aix4.[01] | aix4.[01].*)
12449      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12450	   echo ' yes '
12451	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12452	:
12453      else
12454	can_build_shared=no
12455      fi
12456      ;;
12457    esac
12458    # Using Import Files as archive members, it is possible to support
12459    # filename-based versioning of shared library archives on AIX. While
12460    # this would work for both with and without runtime linking, it will
12461    # prevent static linking of such archives. So we do filename-based
12462    # shared library versioning with .so extension only, which is used
12463    # when both runtime linking and shared linking is enabled.
12464    # Unfortunately, runtime linking may impact performance, so we do
12465    # not want this to be the default eventually. Also, we use the
12466    # versioned .so libs for executables only if there is the -brtl
12467    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12468    # To allow for filename-based versioning support, we need to create
12469    # libNAME.so.V as an archive file, containing:
12470    # *) an Import File, referring to the versioned filename of the
12471    #    archive as well as the shared archive member, telling the
12472    #    bitwidth (32 or 64) of that shared object, and providing the
12473    #    list of exported symbols of that shared object, eventually
12474    #    decorated with the 'weak' keyword
12475    # *) the shared object with the F_LOADONLY flag set, to really avoid
12476    #    it being seen by the linker.
12477    # At run time we better use the real file rather than another symlink,
12478    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12479
12480    case $with_aix_soname,$aix_use_runtimelinking in
12481    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12482    # soname into executable. Probably we can add versioning support to
12483    # collect2, so additional links can be useful in future.
12484    aix,yes) # traditional libtool
12485      dynamic_linker='AIX unversionable lib.so'
12486      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12487      # instead of lib<name>.a to let people know that these are not
12488      # typical AIX shared libraries.
12489      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12490      ;;
12491    aix,no) # traditional AIX only
12492      dynamic_linker='AIX lib.a(lib.so.V)'
12493      # We preserve .a as extension for shared libraries through AIX4.2
12494      # and later when we are not doing run time linking.
12495      library_names_spec='$libname$release.a $libname.a'
12496      soname_spec='$libname$release$shared_ext$major'
12497      ;;
12498    svr4,*) # full svr4 only
12499      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12500      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12501      # We do not specify a path in Import Files, so LIBPATH fires.
12502      shlibpath_overrides_runpath=yes
12503      ;;
12504    *,yes) # both, prefer svr4
12505      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12506      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12507      # unpreferred sharedlib libNAME.a needs extra handling
12508      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"'
12509      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"'
12510      # We do not specify a path in Import Files, so LIBPATH fires.
12511      shlibpath_overrides_runpath=yes
12512      ;;
12513    *,no) # both, prefer aix
12514      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12515      library_names_spec='$libname$release.a $libname.a'
12516      soname_spec='$libname$release$shared_ext$major'
12517      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12518      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)'
12519      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"'
12520      ;;
12521    esac
12522    shlibpath_var=LIBPATH
12523  fi
12524  ;;
12525
12526amigaos*)
12527  case $host_cpu in
12528  powerpc)
12529    # Since July 2007 AmigaOS4 officially supports .so libraries.
12530    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12531    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12532    ;;
12533  m68k)
12534    library_names_spec='$libname.ixlibrary $libname.a'
12535    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12536    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'
12537    ;;
12538  esac
12539  ;;
12540
12541beos*)
12542  library_names_spec='$libname$shared_ext'
12543  dynamic_linker="$host_os ld.so"
12544  shlibpath_var=LIBRARY_PATH
12545  ;;
12546
12547bsdi[45]*)
12548  version_type=linux # correct to gnu/linux during the next big refactor
12549  need_version=no
12550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12551  soname_spec='$libname$release$shared_ext$major'
12552  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12553  shlibpath_var=LD_LIBRARY_PATH
12554  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12555  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12556  # the default ld.so.conf also contains /usr/contrib/lib and
12557  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12558  # libtool to hard-code these into programs
12559  ;;
12560
12561cygwin* | mingw* | pw32* | cegcc*)
12562  version_type=windows
12563  shrext_cmds=.dll
12564  need_version=no
12565  need_lib_prefix=no
12566
12567  case $GCC,$cc_basename in
12568  yes,*)
12569    # gcc
12570    library_names_spec='$libname.dll.a'
12571    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12572    postinstall_cmds='base_file=`basename \$file`~
12573      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12574      dldir=$destdir/`dirname \$dlpath`~
12575      test -d \$dldir || mkdir -p \$dldir~
12576      $install_prog $dir/$dlname \$dldir/$dlname~
12577      chmod a+x \$dldir/$dlname~
12578      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12579        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12580      fi'
12581    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12582      dlpath=$dir/\$dldll~
12583       $RM \$dlpath'
12584    shlibpath_overrides_runpath=yes
12585
12586    case $host_os in
12587    cygwin*)
12588      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12589      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12590
12591      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12592      ;;
12593    mingw* | cegcc*)
12594      # MinGW DLLs use traditional 'lib' prefix
12595      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12596      ;;
12597    pw32*)
12598      # pw32 DLLs use 'pw' prefix rather than 'lib'
12599      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12600      ;;
12601    esac
12602    dynamic_linker='Win32 ld.exe'
12603    ;;
12604
12605  *,cl* | *,icl*)
12606    # Native MSVC or ICC
12607    libname_spec='$name'
12608    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12609    library_names_spec='$libname.dll.lib'
12610
12611    case $build_os in
12612    mingw*)
12613      sys_lib_search_path_spec=
12614      lt_save_ifs=$IFS
12615      IFS=';'
12616      for lt_path in $LIB
12617      do
12618        IFS=$lt_save_ifs
12619        # Let DOS variable expansion print the short 8.3 style file name.
12620        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12621        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12622      done
12623      IFS=$lt_save_ifs
12624      # Convert to MSYS style.
12625      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12626      ;;
12627    cygwin*)
12628      # Convert to unix form, then to dos form, then back to unix form
12629      # but this time dos style (no spaces!) so that the unix form looks
12630      # like /cygdrive/c/PROGRA~1:/cygdr...
12631      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12632      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12633      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12634      ;;
12635    *)
12636      sys_lib_search_path_spec=$LIB
12637      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12638        # It is most probably a Windows format PATH.
12639        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12640      else
12641        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12642      fi
12643      # FIXME: find the short name or the path components, as spaces are
12644      # common. (e.g. "Program Files" -> "PROGRA~1")
12645      ;;
12646    esac
12647
12648    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12649    postinstall_cmds='base_file=`basename \$file`~
12650      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12651      dldir=$destdir/`dirname \$dlpath`~
12652      test -d \$dldir || mkdir -p \$dldir~
12653      $install_prog $dir/$dlname \$dldir/$dlname'
12654    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12655      dlpath=$dir/\$dldll~
12656       $RM \$dlpath'
12657    shlibpath_overrides_runpath=yes
12658    dynamic_linker='Win32 link.exe'
12659    ;;
12660
12661  *)
12662    # Assume MSVC and ICC wrapper
12663    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12664    dynamic_linker='Win32 ld.exe'
12665    ;;
12666  esac
12667  # FIXME: first we should search . and the directory the executable is in
12668  shlibpath_var=PATH
12669  ;;
12670
12671darwin* | rhapsody*)
12672  dynamic_linker="$host_os dyld"
12673  version_type=darwin
12674  need_lib_prefix=no
12675  need_version=no
12676  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
12677  soname_spec='$libname$release$major$shared_ext'
12678  shlibpath_overrides_runpath=yes
12679  shlibpath_var=DYLD_LIBRARY_PATH
12680  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
12681
12682  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12683  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12684  ;;
12685
12686dgux*)
12687  version_type=linux # correct to gnu/linux during the next big refactor
12688  need_lib_prefix=no
12689  need_version=no
12690  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12691  soname_spec='$libname$release$shared_ext$major'
12692  shlibpath_var=LD_LIBRARY_PATH
12693  ;;
12694
12695freebsd* | dragonfly* | midnightbsd*)
12696  # DragonFly does not have aout.  When/if they implement a new
12697  # versioning mechanism, adjust this.
12698  if test -x /usr/bin/objformat; then
12699    objformat=`/usr/bin/objformat`
12700  else
12701    case $host_os in
12702    freebsd[23].*) objformat=aout ;;
12703    *) objformat=elf ;;
12704    esac
12705  fi
12706  # Handle Gentoo/FreeBSD as it was Linux
12707  case $host_vendor in
12708    gentoo)
12709      version_type=linux ;;
12710    *)
12711      version_type=freebsd-$objformat ;;
12712  esac
12713
12714  case $version_type in
12715    freebsd-elf*)
12716      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12717      soname_spec='$libname$release$shared_ext$major'
12718      need_version=no
12719      need_lib_prefix=no
12720      ;;
12721    freebsd-*)
12722      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12723      need_version=yes
12724      ;;
12725    linux)
12726      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12727      soname_spec='${libname}${release}${shared_ext}$major'
12728      need_lib_prefix=no
12729      need_version=no
12730      ;;
12731  esac
12732  shlibpath_var=LD_LIBRARY_PATH
12733  case $host_os in
12734  freebsd2.*)
12735    shlibpath_overrides_runpath=yes
12736    ;;
12737  freebsd3.[01]* | freebsdelf3.[01]*)
12738    shlibpath_overrides_runpath=yes
12739    hardcode_into_libs=yes
12740    ;;
12741  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12742  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12743    shlibpath_overrides_runpath=no
12744    hardcode_into_libs=yes
12745    ;;
12746  *) # from 4.6 on, and DragonFly
12747    shlibpath_overrides_runpath=yes
12748    hardcode_into_libs=yes
12749    ;;
12750  esac
12751  ;;
12752
12753haiku*)
12754  version_type=linux # correct to gnu/linux during the next big refactor
12755  need_lib_prefix=no
12756  need_version=no
12757  dynamic_linker="$host_os runtime_loader"
12758  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12759  soname_spec='$libname$release$shared_ext$major'
12760  shlibpath_var=LIBRARY_PATH
12761  shlibpath_overrides_runpath=no
12762  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12763  hardcode_into_libs=yes
12764  ;;
12765
12766hpux9* | hpux10* | hpux11*)
12767  # Give a soname corresponding to the major version so that dld.sl refuses to
12768  # link against other versions.
12769  version_type=sunos
12770  need_lib_prefix=no
12771  need_version=no
12772  case $host_cpu in
12773  ia64*)
12774    shrext_cmds='.so'
12775    hardcode_into_libs=yes
12776    dynamic_linker="$host_os dld.so"
12777    shlibpath_var=LD_LIBRARY_PATH
12778    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12779    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12780    soname_spec='$libname$release$shared_ext$major'
12781    if test 32 = "$HPUX_IA64_MODE"; then
12782      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12783      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12784    else
12785      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12786      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12787    fi
12788    ;;
12789  hppa*64*)
12790    shrext_cmds='.sl'
12791    hardcode_into_libs=yes
12792    dynamic_linker="$host_os dld.sl"
12793    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12794    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12795    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12796    soname_spec='$libname$release$shared_ext$major'
12797    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12798    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12799    ;;
12800  *)
12801    shrext_cmds='.sl'
12802    dynamic_linker="$host_os dld.sl"
12803    shlibpath_var=SHLIB_PATH
12804    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12805    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12806    soname_spec='$libname$release$shared_ext$major'
12807    ;;
12808  esac
12809  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12810  postinstall_cmds='chmod 555 $lib'
12811  # or fails outright, so override atomically:
12812  install_override_mode=555
12813  ;;
12814
12815interix[3-9]*)
12816  version_type=linux # correct to gnu/linux during the next big refactor
12817  need_lib_prefix=no
12818  need_version=no
12819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12820  soname_spec='$libname$release$shared_ext$major'
12821  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12822  shlibpath_var=LD_LIBRARY_PATH
12823  shlibpath_overrides_runpath=no
12824  hardcode_into_libs=yes
12825  ;;
12826
12827irix5* | irix6* | nonstopux*)
12828  case $host_os in
12829    nonstopux*) version_type=nonstopux ;;
12830    *)
12831	if test yes = "$lt_cv_prog_gnu_ld"; then
12832		version_type=linux # correct to gnu/linux during the next big refactor
12833	else
12834		version_type=irix
12835	fi ;;
12836  esac
12837  need_lib_prefix=no
12838  need_version=no
12839  soname_spec='$libname$release$shared_ext$major'
12840  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12841  case $host_os in
12842  irix5* | nonstopux*)
12843    libsuff= shlibsuff=
12844    ;;
12845  *)
12846    case $LD in # libtool.m4 will add one of these switches to LD
12847    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12848      libsuff= shlibsuff= libmagic=32-bit;;
12849    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12850      libsuff=32 shlibsuff=N32 libmagic=N32;;
12851    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12852      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12853    *) libsuff= shlibsuff= libmagic=never-match;;
12854    esac
12855    ;;
12856  esac
12857  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12858  shlibpath_overrides_runpath=no
12859  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12860  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12861  hardcode_into_libs=yes
12862  ;;
12863
12864# No shared lib support for Linux oldld, aout, or coff.
12865linux*oldld* | linux*aout* | linux*coff*)
12866  dynamic_linker=no
12867  ;;
12868
12869linux*android*)
12870  version_type=none # Android doesn't support versioned libraries.
12871  need_lib_prefix=no
12872  need_version=no
12873  library_names_spec='$libname$release$shared_ext'
12874  soname_spec='$libname$release$shared_ext'
12875  finish_cmds=
12876  shlibpath_var=LD_LIBRARY_PATH
12877  shlibpath_overrides_runpath=yes
12878
12879  # This implies no fast_install, which is unacceptable.
12880  # Some rework will be needed to allow for fast_install
12881  # before this can be enabled.
12882  hardcode_into_libs=yes
12883
12884  dynamic_linker='Android linker'
12885  # Don't embed -rpath directories since the linker doesn't support them.
12886  hardcode_libdir_flag_spec='-L$libdir'
12887  ;;
12888
12889# This must be glibc/ELF.
12890linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12891  version_type=linux # correct to gnu/linux during the next big refactor
12892  need_lib_prefix=no
12893  need_version=no
12894  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12895  soname_spec='$libname$release$shared_ext$major'
12896  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12897  shlibpath_var=LD_LIBRARY_PATH
12898  shlibpath_overrides_runpath=no
12899
12900  # Some binutils ld are patched to set DT_RUNPATH
12901  if test ${lt_cv_shlibpath_overrides_runpath+y}
12902then :
12903  printf %s "(cached) " >&6
12904else $as_nop
12905  lt_cv_shlibpath_overrides_runpath=no
12906    save_LDFLAGS=$LDFLAGS
12907    save_libdir=$libdir
12908    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12909	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911/* end confdefs.h.  */
12912
12913int
12914main (void)
12915{
12916
12917  ;
12918  return 0;
12919}
12920_ACEOF
12921if ac_fn_c_try_link "$LINENO"
12922then :
12923  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12924then :
12925  lt_cv_shlibpath_overrides_runpath=yes
12926fi
12927fi
12928rm -f core conftest.err conftest.$ac_objext conftest.beam \
12929    conftest$ac_exeext conftest.$ac_ext
12930    LDFLAGS=$save_LDFLAGS
12931    libdir=$save_libdir
12932
12933fi
12934
12935  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12936
12937  # This implies no fast_install, which is unacceptable.
12938  # Some rework will be needed to allow for fast_install
12939  # before this can be enabled.
12940  hardcode_into_libs=yes
12941
12942  # Ideally, we could use ldconfig to report *all* directores which are
12943  # searched for libraries, however this is still not possible.  Aside from not
12944  # being certain /sbin/ldconfig is available, command
12945  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12946  # even though it is searched at run-time.  Try to do the best guess by
12947  # appending ld.so.conf contents (and includes) to the search path.
12948  if test -f /etc/ld.so.conf; then
12949    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' ' '`
12950    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12951  fi
12952
12953  # We used to test for /lib/ld.so.1 and disable shared libraries on
12954  # powerpc, because MkLinux only supported shared libraries with the
12955  # GNU dynamic linker.  Since this was broken with cross compilers,
12956  # most powerpc-linux boxes support dynamic linking these days and
12957  # people can always --disable-shared, the test was removed, and we
12958  # assume the GNU/Linux dynamic linker is in use.
12959  dynamic_linker='GNU/Linux ld.so'
12960  ;;
12961
12962netbsd*)
12963  version_type=sunos
12964  need_lib_prefix=no
12965  need_version=no
12966  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12967    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12968    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12969    dynamic_linker='NetBSD (a.out) ld.so'
12970  else
12971    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12972    soname_spec='$libname$release$shared_ext$major'
12973    dynamic_linker='NetBSD ld.elf_so'
12974  fi
12975  shlibpath_var=LD_LIBRARY_PATH
12976  shlibpath_overrides_runpath=yes
12977  hardcode_into_libs=yes
12978  ;;
12979
12980newsos6)
12981  version_type=linux # correct to gnu/linux during the next big refactor
12982  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12983  shlibpath_var=LD_LIBRARY_PATH
12984  shlibpath_overrides_runpath=yes
12985  ;;
12986
12987*nto* | *qnx*)
12988  version_type=qnx
12989  need_lib_prefix=no
12990  need_version=no
12991  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12992  soname_spec='$libname$release$shared_ext$major'
12993  shlibpath_var=LD_LIBRARY_PATH
12994  shlibpath_overrides_runpath=no
12995  hardcode_into_libs=yes
12996  dynamic_linker='ldqnx.so'
12997  ;;
12998
12999openbsd* | bitrig*)
13000  version_type=sunos
13001  sys_lib_dlsearch_path_spec=/usr/lib
13002  need_lib_prefix=no
13003  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13004    need_version=no
13005  else
13006    need_version=yes
13007  fi
13008  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13009  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13010  shlibpath_var=LD_LIBRARY_PATH
13011  shlibpath_overrides_runpath=yes
13012  ;;
13013
13014os2*)
13015  libname_spec='$name'
13016  version_type=windows
13017  shrext_cmds=.dll
13018  need_version=no
13019  need_lib_prefix=no
13020  # OS/2 can only load a DLL with a base name of 8 characters or less.
13021  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13022    v=$($ECHO $release$versuffix | tr -d .-);
13023    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13024    $ECHO $n$v`$shared_ext'
13025  library_names_spec='${libname}_dll.$libext'
13026  dynamic_linker='OS/2 ld.exe'
13027  shlibpath_var=BEGINLIBPATH
13028  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13029  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13030  postinstall_cmds='base_file=`basename \$file`~
13031    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13032    dldir=$destdir/`dirname \$dlpath`~
13033    test -d \$dldir || mkdir -p \$dldir~
13034    $install_prog $dir/$dlname \$dldir/$dlname~
13035    chmod a+x \$dldir/$dlname~
13036    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13037      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13038    fi'
13039  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13040    dlpath=$dir/\$dldll~
13041    $RM \$dlpath'
13042  ;;
13043
13044osf3* | osf4* | osf5*)
13045  version_type=osf
13046  need_lib_prefix=no
13047  need_version=no
13048  soname_spec='$libname$release$shared_ext$major'
13049  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13050  shlibpath_var=LD_LIBRARY_PATH
13051  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13052  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13053  ;;
13054
13055rdos*)
13056  dynamic_linker=no
13057  ;;
13058
13059solaris*)
13060  version_type=linux # correct to gnu/linux during the next big refactor
13061  need_lib_prefix=no
13062  need_version=no
13063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13064  soname_spec='$libname$release$shared_ext$major'
13065  shlibpath_var=LD_LIBRARY_PATH
13066  shlibpath_overrides_runpath=yes
13067  hardcode_into_libs=yes
13068  # ldd complains unless libraries are executable
13069  postinstall_cmds='chmod +x $lib'
13070  ;;
13071
13072sunos4*)
13073  version_type=sunos
13074  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13075  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13076  shlibpath_var=LD_LIBRARY_PATH
13077  shlibpath_overrides_runpath=yes
13078  if test yes = "$with_gnu_ld"; then
13079    need_lib_prefix=no
13080  fi
13081  need_version=yes
13082  ;;
13083
13084sysv4 | sysv4.3*)
13085  version_type=linux # correct to gnu/linux during the next big refactor
13086  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13087  soname_spec='$libname$release$shared_ext$major'
13088  shlibpath_var=LD_LIBRARY_PATH
13089  case $host_vendor in
13090    sni)
13091      shlibpath_overrides_runpath=no
13092      need_lib_prefix=no
13093      runpath_var=LD_RUN_PATH
13094      ;;
13095    siemens)
13096      need_lib_prefix=no
13097      ;;
13098    motorola)
13099      need_lib_prefix=no
13100      need_version=no
13101      shlibpath_overrides_runpath=no
13102      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13103      ;;
13104  esac
13105  ;;
13106
13107sysv4*MP*)
13108  if test -d /usr/nec; then
13109    version_type=linux # correct to gnu/linux during the next big refactor
13110    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13111    soname_spec='$libname$shared_ext.$major'
13112    shlibpath_var=LD_LIBRARY_PATH
13113  fi
13114  ;;
13115
13116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13117  version_type=sco
13118  need_lib_prefix=no
13119  need_version=no
13120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13121  soname_spec='$libname$release$shared_ext$major'
13122  shlibpath_var=LD_LIBRARY_PATH
13123  shlibpath_overrides_runpath=yes
13124  hardcode_into_libs=yes
13125  if test yes = "$with_gnu_ld"; then
13126    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13127  else
13128    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13129    case $host_os in
13130      sco3.2v5*)
13131        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13132	;;
13133    esac
13134  fi
13135  sys_lib_dlsearch_path_spec='/usr/lib'
13136  ;;
13137
13138tpf*)
13139  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13140  version_type=linux # correct to gnu/linux during the next big refactor
13141  need_lib_prefix=no
13142  need_version=no
13143  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13144  shlibpath_var=LD_LIBRARY_PATH
13145  shlibpath_overrides_runpath=no
13146  hardcode_into_libs=yes
13147  ;;
13148
13149uts4*)
13150  version_type=linux # correct to gnu/linux during the next big refactor
13151  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13152  soname_spec='$libname$release$shared_ext$major'
13153  shlibpath_var=LD_LIBRARY_PATH
13154  ;;
13155
13156*)
13157  dynamic_linker=no
13158  ;;
13159esac
13160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13161printf "%s\n" "$dynamic_linker" >&6; }
13162test no = "$dynamic_linker" && can_build_shared=no
13163
13164variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13165if test yes = "$GCC"; then
13166  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13167fi
13168
13169if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13170  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13171fi
13172
13173if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13174  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13175fi
13176
13177# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13178configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13179
13180# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13181func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13182
13183# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13184configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13283printf %s "checking how to hardcode library paths into programs... " >&6; }
13284hardcode_action=
13285if test -n "$hardcode_libdir_flag_spec" ||
13286   test -n "$runpath_var" ||
13287   test yes = "$hardcode_automatic"; then
13288
13289  # We can hardcode non-existent directories.
13290  if test no != "$hardcode_direct" &&
13291     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13292     # have to relink, otherwise we might link with an installed library
13293     # when we should be linking with a yet-to-be-installed one
13294     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13295     test no != "$hardcode_minus_L"; then
13296    # Linking always hardcodes the temporary library directory.
13297    hardcode_action=relink
13298  else
13299    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13300    hardcode_action=immediate
13301  fi
13302else
13303  # We cannot hardcode anything, or else we can only hardcode existing
13304  # directories.
13305  hardcode_action=unsupported
13306fi
13307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13308printf "%s\n" "$hardcode_action" >&6; }
13309
13310if test relink = "$hardcode_action" ||
13311   test yes = "$inherit_rpath"; then
13312  # Fast installation is not supported
13313  enable_fast_install=no
13314elif test yes = "$shlibpath_overrides_runpath" ||
13315     test no = "$enable_shared"; then
13316  # Fast installation is not necessary
13317  enable_fast_install=needless
13318fi
13319
13320
13321
13322
13323
13324
13325  if test yes != "$enable_dlopen"; then
13326  enable_dlopen=unknown
13327  enable_dlopen_self=unknown
13328  enable_dlopen_self_static=unknown
13329else
13330  lt_cv_dlopen=no
13331  lt_cv_dlopen_libs=
13332
13333  case $host_os in
13334  beos*)
13335    lt_cv_dlopen=load_add_on
13336    lt_cv_dlopen_libs=
13337    lt_cv_dlopen_self=yes
13338    ;;
13339
13340  mingw* | pw32* | cegcc*)
13341    lt_cv_dlopen=LoadLibrary
13342    lt_cv_dlopen_libs=
13343    ;;
13344
13345  cygwin*)
13346    lt_cv_dlopen=dlopen
13347    lt_cv_dlopen_libs=
13348    ;;
13349
13350  darwin*)
13351    # if libdl is installed we need to link against it
13352    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13353printf %s "checking for dlopen in -ldl... " >&6; }
13354if test ${ac_cv_lib_dl_dlopen+y}
13355then :
13356  printf %s "(cached) " >&6
13357else $as_nop
13358  ac_check_lib_save_LIBS=$LIBS
13359LIBS="-ldl  $LIBS"
13360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362
13363/* Override any GCC internal prototype to avoid an error.
13364   Use char because int might match the return type of a GCC
13365   builtin and then its argument prototype would still apply.
13366   The 'extern "C"' is for builds by C++ compilers;
13367   although this is not generally supported in C code supporting it here
13368   has little cost and some practical benefit (sr 110532).  */
13369#ifdef __cplusplus
13370extern "C"
13371#endif
13372char dlopen (void);
13373int
13374main (void)
13375{
13376return dlopen ();
13377  ;
13378  return 0;
13379}
13380_ACEOF
13381if ac_fn_c_try_link "$LINENO"
13382then :
13383  ac_cv_lib_dl_dlopen=yes
13384else $as_nop
13385  ac_cv_lib_dl_dlopen=no
13386fi
13387rm -f core conftest.err conftest.$ac_objext conftest.beam \
13388    conftest$ac_exeext conftest.$ac_ext
13389LIBS=$ac_check_lib_save_LIBS
13390fi
13391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13392printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13393if test "x$ac_cv_lib_dl_dlopen" = xyes
13394then :
13395  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13396else $as_nop
13397
13398    lt_cv_dlopen=dyld
13399    lt_cv_dlopen_libs=
13400    lt_cv_dlopen_self=yes
13401
13402fi
13403
13404    ;;
13405
13406  tpf*)
13407    # Don't try to run any link tests for TPF.  We know it's impossible
13408    # because TPF is a cross-compiler, and we know how we open DSOs.
13409    lt_cv_dlopen=dlopen
13410    lt_cv_dlopen_libs=
13411    lt_cv_dlopen_self=no
13412    ;;
13413
13414  *)
13415    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13416if test "x$ac_cv_func_shl_load" = xyes
13417then :
13418  lt_cv_dlopen=shl_load
13419else $as_nop
13420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13421printf %s "checking for shl_load in -ldld... " >&6; }
13422if test ${ac_cv_lib_dld_shl_load+y}
13423then :
13424  printf %s "(cached) " >&6
13425else $as_nop
13426  ac_check_lib_save_LIBS=$LIBS
13427LIBS="-ldld  $LIBS"
13428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429/* end confdefs.h.  */
13430
13431/* Override any GCC internal prototype to avoid an error.
13432   Use char because int might match the return type of a GCC
13433   builtin and then its argument prototype would still apply.
13434   The 'extern "C"' is for builds by C++ compilers;
13435   although this is not generally supported in C code supporting it here
13436   has little cost and some practical benefit (sr 110532).  */
13437#ifdef __cplusplus
13438extern "C"
13439#endif
13440char shl_load (void);
13441int
13442main (void)
13443{
13444return shl_load ();
13445  ;
13446  return 0;
13447}
13448_ACEOF
13449if ac_fn_c_try_link "$LINENO"
13450then :
13451  ac_cv_lib_dld_shl_load=yes
13452else $as_nop
13453  ac_cv_lib_dld_shl_load=no
13454fi
13455rm -f core conftest.err conftest.$ac_objext conftest.beam \
13456    conftest$ac_exeext conftest.$ac_ext
13457LIBS=$ac_check_lib_save_LIBS
13458fi
13459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13460printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13461if test "x$ac_cv_lib_dld_shl_load" = xyes
13462then :
13463  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13464else $as_nop
13465  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13466if test "x$ac_cv_func_dlopen" = xyes
13467then :
13468  lt_cv_dlopen=dlopen
13469else $as_nop
13470  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13471printf %s "checking for dlopen in -ldl... " >&6; }
13472if test ${ac_cv_lib_dl_dlopen+y}
13473then :
13474  printf %s "(cached) " >&6
13475else $as_nop
13476  ac_check_lib_save_LIBS=$LIBS
13477LIBS="-ldl  $LIBS"
13478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479/* end confdefs.h.  */
13480
13481/* Override any GCC internal prototype to avoid an error.
13482   Use char because int might match the return type of a GCC
13483   builtin and then its argument prototype would still apply.
13484   The 'extern "C"' is for builds by C++ compilers;
13485   although this is not generally supported in C code supporting it here
13486   has little cost and some practical benefit (sr 110532).  */
13487#ifdef __cplusplus
13488extern "C"
13489#endif
13490char dlopen (void);
13491int
13492main (void)
13493{
13494return dlopen ();
13495  ;
13496  return 0;
13497}
13498_ACEOF
13499if ac_fn_c_try_link "$LINENO"
13500then :
13501  ac_cv_lib_dl_dlopen=yes
13502else $as_nop
13503  ac_cv_lib_dl_dlopen=no
13504fi
13505rm -f core conftest.err conftest.$ac_objext conftest.beam \
13506    conftest$ac_exeext conftest.$ac_ext
13507LIBS=$ac_check_lib_save_LIBS
13508fi
13509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13510printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13511if test "x$ac_cv_lib_dl_dlopen" = xyes
13512then :
13513  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13514else $as_nop
13515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13516printf %s "checking for dlopen in -lsvld... " >&6; }
13517if test ${ac_cv_lib_svld_dlopen+y}
13518then :
13519  printf %s "(cached) " >&6
13520else $as_nop
13521  ac_check_lib_save_LIBS=$LIBS
13522LIBS="-lsvld  $LIBS"
13523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524/* end confdefs.h.  */
13525
13526/* Override any GCC internal prototype to avoid an error.
13527   Use char because int might match the return type of a GCC
13528   builtin and then its argument prototype would still apply.
13529   The 'extern "C"' is for builds by C++ compilers;
13530   although this is not generally supported in C code supporting it here
13531   has little cost and some practical benefit (sr 110532).  */
13532#ifdef __cplusplus
13533extern "C"
13534#endif
13535char dlopen (void);
13536int
13537main (void)
13538{
13539return dlopen ();
13540  ;
13541  return 0;
13542}
13543_ACEOF
13544if ac_fn_c_try_link "$LINENO"
13545then :
13546  ac_cv_lib_svld_dlopen=yes
13547else $as_nop
13548  ac_cv_lib_svld_dlopen=no
13549fi
13550rm -f core conftest.err conftest.$ac_objext conftest.beam \
13551    conftest$ac_exeext conftest.$ac_ext
13552LIBS=$ac_check_lib_save_LIBS
13553fi
13554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13555printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13556if test "x$ac_cv_lib_svld_dlopen" = xyes
13557then :
13558  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13559else $as_nop
13560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13561printf %s "checking for dld_link in -ldld... " >&6; }
13562if test ${ac_cv_lib_dld_dld_link+y}
13563then :
13564  printf %s "(cached) " >&6
13565else $as_nop
13566  ac_check_lib_save_LIBS=$LIBS
13567LIBS="-ldld  $LIBS"
13568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13569/* end confdefs.h.  */
13570
13571/* Override any GCC internal prototype to avoid an error.
13572   Use char because int might match the return type of a GCC
13573   builtin and then its argument prototype would still apply.
13574   The 'extern "C"' is for builds by C++ compilers;
13575   although this is not generally supported in C code supporting it here
13576   has little cost and some practical benefit (sr 110532).  */
13577#ifdef __cplusplus
13578extern "C"
13579#endif
13580char dld_link (void);
13581int
13582main (void)
13583{
13584return dld_link ();
13585  ;
13586  return 0;
13587}
13588_ACEOF
13589if ac_fn_c_try_link "$LINENO"
13590then :
13591  ac_cv_lib_dld_dld_link=yes
13592else $as_nop
13593  ac_cv_lib_dld_dld_link=no
13594fi
13595rm -f core conftest.err conftest.$ac_objext conftest.beam \
13596    conftest$ac_exeext conftest.$ac_ext
13597LIBS=$ac_check_lib_save_LIBS
13598fi
13599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13600printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13601if test "x$ac_cv_lib_dld_dld_link" = xyes
13602then :
13603  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13604fi
13605
13606
13607fi
13608
13609
13610fi
13611
13612
13613fi
13614
13615
13616fi
13617
13618
13619fi
13620
13621    ;;
13622  esac
13623
13624  if test no = "$lt_cv_dlopen"; then
13625    enable_dlopen=no
13626  else
13627    enable_dlopen=yes
13628  fi
13629
13630  case $lt_cv_dlopen in
13631  dlopen)
13632    save_CPPFLAGS=$CPPFLAGS
13633    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13634
13635    save_LDFLAGS=$LDFLAGS
13636    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13637
13638    save_LIBS=$LIBS
13639    LIBS="$lt_cv_dlopen_libs $LIBS"
13640
13641    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13642printf %s "checking whether a program can dlopen itself... " >&6; }
13643if test ${lt_cv_dlopen_self+y}
13644then :
13645  printf %s "(cached) " >&6
13646else $as_nop
13647  	  if test yes = "$cross_compiling"; then :
13648  lt_cv_dlopen_self=cross
13649else
13650  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13651  lt_status=$lt_dlunknown
13652  cat > conftest.$ac_ext <<_LT_EOF
13653#line $LINENO "configure"
13654#include "confdefs.h"
13655
13656#if HAVE_DLFCN_H
13657#include <dlfcn.h>
13658#endif
13659
13660#include <stdio.h>
13661
13662#ifdef RTLD_GLOBAL
13663#  define LT_DLGLOBAL		RTLD_GLOBAL
13664#else
13665#  ifdef DL_GLOBAL
13666#    define LT_DLGLOBAL		DL_GLOBAL
13667#  else
13668#    define LT_DLGLOBAL		0
13669#  endif
13670#endif
13671
13672/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13673   find out it does not work in some platform. */
13674#ifndef LT_DLLAZY_OR_NOW
13675#  ifdef RTLD_LAZY
13676#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13677#  else
13678#    ifdef DL_LAZY
13679#      define LT_DLLAZY_OR_NOW		DL_LAZY
13680#    else
13681#      ifdef RTLD_NOW
13682#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13683#      else
13684#        ifdef DL_NOW
13685#          define LT_DLLAZY_OR_NOW	DL_NOW
13686#        else
13687#          define LT_DLLAZY_OR_NOW	0
13688#        endif
13689#      endif
13690#    endif
13691#  endif
13692#endif
13693
13694/* When -fvisibility=hidden is used, assume the code has been annotated
13695   correspondingly for the symbols needed.  */
13696#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13697int fnord () __attribute__((visibility("default")));
13698#endif
13699
13700int fnord () { return 42; }
13701int main ()
13702{
13703  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13704  int status = $lt_dlunknown;
13705
13706  if (self)
13707    {
13708      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13709      else
13710        {
13711	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13712          else puts (dlerror ());
13713	}
13714      /* dlclose (self); */
13715    }
13716  else
13717    puts (dlerror ());
13718
13719  return status;
13720}
13721_LT_EOF
13722  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13723  (eval $ac_link) 2>&5
13724  ac_status=$?
13725  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13727    (./conftest; exit; ) >&5 2>/dev/null
13728    lt_status=$?
13729    case x$lt_status in
13730      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13731      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13732      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13733    esac
13734  else :
13735    # compilation failed
13736    lt_cv_dlopen_self=no
13737  fi
13738fi
13739rm -fr conftest*
13740
13741
13742fi
13743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13744printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13745
13746    if test yes = "$lt_cv_dlopen_self"; then
13747      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13748      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13749printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13750if test ${lt_cv_dlopen_self_static+y}
13751then :
13752  printf %s "(cached) " >&6
13753else $as_nop
13754  	  if test yes = "$cross_compiling"; then :
13755  lt_cv_dlopen_self_static=cross
13756else
13757  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13758  lt_status=$lt_dlunknown
13759  cat > conftest.$ac_ext <<_LT_EOF
13760#line $LINENO "configure"
13761#include "confdefs.h"
13762
13763#if HAVE_DLFCN_H
13764#include <dlfcn.h>
13765#endif
13766
13767#include <stdio.h>
13768
13769#ifdef RTLD_GLOBAL
13770#  define LT_DLGLOBAL		RTLD_GLOBAL
13771#else
13772#  ifdef DL_GLOBAL
13773#    define LT_DLGLOBAL		DL_GLOBAL
13774#  else
13775#    define LT_DLGLOBAL		0
13776#  endif
13777#endif
13778
13779/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13780   find out it does not work in some platform. */
13781#ifndef LT_DLLAZY_OR_NOW
13782#  ifdef RTLD_LAZY
13783#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13784#  else
13785#    ifdef DL_LAZY
13786#      define LT_DLLAZY_OR_NOW		DL_LAZY
13787#    else
13788#      ifdef RTLD_NOW
13789#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13790#      else
13791#        ifdef DL_NOW
13792#          define LT_DLLAZY_OR_NOW	DL_NOW
13793#        else
13794#          define LT_DLLAZY_OR_NOW	0
13795#        endif
13796#      endif
13797#    endif
13798#  endif
13799#endif
13800
13801/* When -fvisibility=hidden is used, assume the code has been annotated
13802   correspondingly for the symbols needed.  */
13803#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13804int fnord () __attribute__((visibility("default")));
13805#endif
13806
13807int fnord () { return 42; }
13808int main ()
13809{
13810  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13811  int status = $lt_dlunknown;
13812
13813  if (self)
13814    {
13815      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13816      else
13817        {
13818	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13819          else puts (dlerror ());
13820	}
13821      /* dlclose (self); */
13822    }
13823  else
13824    puts (dlerror ());
13825
13826  return status;
13827}
13828_LT_EOF
13829  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13830  (eval $ac_link) 2>&5
13831  ac_status=$?
13832  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13834    (./conftest; exit; ) >&5 2>/dev/null
13835    lt_status=$?
13836    case x$lt_status in
13837      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13838      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13839      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13840    esac
13841  else :
13842    # compilation failed
13843    lt_cv_dlopen_self_static=no
13844  fi
13845fi
13846rm -fr conftest*
13847
13848
13849fi
13850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13851printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13852    fi
13853
13854    CPPFLAGS=$save_CPPFLAGS
13855    LDFLAGS=$save_LDFLAGS
13856    LIBS=$save_LIBS
13857    ;;
13858  esac
13859
13860  case $lt_cv_dlopen_self in
13861  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13862  *) enable_dlopen_self=unknown ;;
13863  esac
13864
13865  case $lt_cv_dlopen_self_static in
13866  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13867  *) enable_dlopen_self_static=unknown ;;
13868  esac
13869fi
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887striplib=
13888old_striplib=
13889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13890printf %s "checking whether stripping libraries is possible... " >&6; }
13891if test -z "$STRIP"; then
13892  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893printf "%s\n" "no" >&6; }
13894else
13895  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13896    old_striplib="$STRIP --strip-debug"
13897    striplib="$STRIP --strip-unneeded"
13898    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13899printf "%s\n" "yes" >&6; }
13900  else
13901    case $host_os in
13902    darwin*)
13903      # FIXME - insert some real tests, host_os isn't really good enough
13904      striplib="$STRIP -x"
13905      old_striplib="$STRIP -S"
13906      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13907printf "%s\n" "yes" >&6; }
13908      ;;
13909    freebsd*)
13910      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13911        old_striplib="$STRIP --strip-debug"
13912        striplib="$STRIP --strip-unneeded"
13913        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13914printf "%s\n" "yes" >&6; }
13915      else
13916        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917printf "%s\n" "no" >&6; }
13918      fi
13919      ;;
13920    *)
13921      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13922printf "%s\n" "no" >&6; }
13923      ;;
13924    esac
13925  fi
13926fi
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939  # Report what library types will actually be built
13940  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13941printf %s "checking if libtool supports shared libraries... " >&6; }
13942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13943printf "%s\n" "$can_build_shared" >&6; }
13944
13945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13946printf %s "checking whether to build shared libraries... " >&6; }
13947  test no = "$can_build_shared" && enable_shared=no
13948
13949  # On AIX, shared libraries and static libraries use the same namespace, and
13950  # are all built from PIC.
13951  case $host_os in
13952  aix3*)
13953    test yes = "$enable_shared" && enable_static=no
13954    if test -n "$RANLIB"; then
13955      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13956      postinstall_cmds='$RANLIB $lib'
13957    fi
13958    ;;
13959
13960  aix[4-9]*)
13961    if test ia64 != "$host_cpu"; then
13962      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13963      yes,aix,yes) ;;			# shared object as lib.so file only
13964      yes,svr4,*) ;;			# shared object as lib.so archive member only
13965      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13966      esac
13967    fi
13968    ;;
13969  esac
13970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13971printf "%s\n" "$enable_shared" >&6; }
13972
13973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13974printf %s "checking whether to build static libraries... " >&6; }
13975  # Make sure either enable_shared or enable_static is yes.
13976  test yes = "$enable_shared" || enable_static=yes
13977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13978printf "%s\n" "$enable_static" >&6; }
13979
13980
13981
13982
13983fi
13984ac_ext=c
13985ac_cpp='$CPP $CPPFLAGS'
13986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13988ac_compiler_gnu=$ac_cv_c_compiler_gnu
13989
13990CC=$lt_save_CC
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006        ac_config_commands="$ac_config_commands libtool"
14007
14008
14009
14010
14011# Only expand once:
14012
14013
14014
14015# Require xorg-macros minimum of 1.18 - Initial version
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
14028printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
14029if test ${ac_cv_c_undeclared_builtin_options+y}
14030then :
14031  printf %s "(cached) " >&6
14032else $as_nop
14033  ac_save_CFLAGS=$CFLAGS
14034   ac_cv_c_undeclared_builtin_options='cannot detect'
14035   for ac_arg in '' -fno-builtin; do
14036     CFLAGS="$ac_save_CFLAGS $ac_arg"
14037     # This test program should *not* compile successfully.
14038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040
14041int
14042main (void)
14043{
14044(void) strchr;
14045  ;
14046  return 0;
14047}
14048_ACEOF
14049if ac_fn_c_try_compile "$LINENO"
14050then :
14051
14052else $as_nop
14053  # This test program should compile successfully.
14054        # No library function is consistently available on
14055        # freestanding implementations, so test against a dummy
14056        # declaration.  Include always-available headers on the
14057        # off chance that they somehow elicit warnings.
14058        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059/* end confdefs.h.  */
14060#include <float.h>
14061#include <limits.h>
14062#include <stdarg.h>
14063#include <stddef.h>
14064extern void ac_decl (int, char *);
14065
14066int
14067main (void)
14068{
14069(void) ac_decl (0, (char *) 0);
14070  (void) ac_decl;
14071
14072  ;
14073  return 0;
14074}
14075_ACEOF
14076if ac_fn_c_try_compile "$LINENO"
14077then :
14078  if test x"$ac_arg" = x
14079then :
14080  ac_cv_c_undeclared_builtin_options='none needed'
14081else $as_nop
14082  ac_cv_c_undeclared_builtin_options=$ac_arg
14083fi
14084          break
14085fi
14086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14087fi
14088rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14089    done
14090    CFLAGS=$ac_save_CFLAGS
14091
14092fi
14093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14094printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14095  case $ac_cv_c_undeclared_builtin_options in #(
14096  'cannot detect') :
14097    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14098printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14099as_fn_error $? "cannot make $CC report undeclared builtins
14100See \`config.log' for more details" "$LINENO" 5; } ;; #(
14101  'none needed') :
14102    ac_c_undeclared_builtin_options='' ;; #(
14103  *) :
14104    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14105esac
14106
14107
14108
14109
14110
14111ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14112if test "x$ac_cv_have_decl___clang__" = xyes
14113then :
14114  CLANGCC="yes"
14115else $as_nop
14116  CLANGCC="no"
14117fi
14118ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14119if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
14120then :
14121  INTELCC="yes"
14122else $as_nop
14123  INTELCC="no"
14124fi
14125ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14126if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
14127then :
14128  SUNCC="yes"
14129else $as_nop
14130  SUNCC="no"
14131fi
14132
14133
14134
14135
14136
14137
14138
14139
14140if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14141	if test -n "$ac_tool_prefix"; then
14142  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14143set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14145printf %s "checking for $ac_word... " >&6; }
14146if test ${ac_cv_path_PKG_CONFIG+y}
14147then :
14148  printf %s "(cached) " >&6
14149else $as_nop
14150  case $PKG_CONFIG in
14151  [\\/]* | ?:[\\/]*)
14152  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14153  ;;
14154  *)
14155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156for as_dir in $PATH
14157do
14158  IFS=$as_save_IFS
14159  case $as_dir in #(((
14160    '') as_dir=./ ;;
14161    */) ;;
14162    *) as_dir=$as_dir/ ;;
14163  esac
14164    for ac_exec_ext in '' $ac_executable_extensions; do
14165  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14166    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14167    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14168    break 2
14169  fi
14170done
14171  done
14172IFS=$as_save_IFS
14173
14174  ;;
14175esac
14176fi
14177PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14178if test -n "$PKG_CONFIG"; then
14179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14180printf "%s\n" "$PKG_CONFIG" >&6; }
14181else
14182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14183printf "%s\n" "no" >&6; }
14184fi
14185
14186
14187fi
14188if test -z "$ac_cv_path_PKG_CONFIG"; then
14189  ac_pt_PKG_CONFIG=$PKG_CONFIG
14190  # Extract the first word of "pkg-config", so it can be a program name with args.
14191set dummy pkg-config; ac_word=$2
14192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14193printf %s "checking for $ac_word... " >&6; }
14194if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14195then :
14196  printf %s "(cached) " >&6
14197else $as_nop
14198  case $ac_pt_PKG_CONFIG in
14199  [\\/]* | ?:[\\/]*)
14200  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14201  ;;
14202  *)
14203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14204for as_dir in $PATH
14205do
14206  IFS=$as_save_IFS
14207  case $as_dir in #(((
14208    '') as_dir=./ ;;
14209    */) ;;
14210    *) as_dir=$as_dir/ ;;
14211  esac
14212    for ac_exec_ext in '' $ac_executable_extensions; do
14213  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14214    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14215    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14216    break 2
14217  fi
14218done
14219  done
14220IFS=$as_save_IFS
14221
14222  ;;
14223esac
14224fi
14225ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14226if test -n "$ac_pt_PKG_CONFIG"; then
14227  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14228printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14229else
14230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231printf "%s\n" "no" >&6; }
14232fi
14233
14234  if test "x$ac_pt_PKG_CONFIG" = x; then
14235    PKG_CONFIG=""
14236  else
14237    case $cross_compiling:$ac_tool_warned in
14238yes:)
14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14240printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14241ac_tool_warned=yes ;;
14242esac
14243    PKG_CONFIG=$ac_pt_PKG_CONFIG
14244  fi
14245else
14246  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14247fi
14248
14249fi
14250if test -n "$PKG_CONFIG"; then
14251	_pkg_min_version=0.9.0
14252	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14253printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14254	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14255		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14256printf "%s\n" "yes" >&6; }
14257	else
14258		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259printf "%s\n" "no" >&6; }
14260		PKG_CONFIG=""
14261	fi
14262fi
14263
14264
14265
14266
14267
14268# Check whether --enable-selective-werror was given.
14269if test ${enable_selective_werror+y}
14270then :
14271  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14272else $as_nop
14273  SELECTIVE_WERROR=yes
14274fi
14275
14276
14277
14278
14279
14280# -v is too short to test reliably with XORG_TESTSET_CFLAG
14281if test "x$SUNCC" = "xyes"; then
14282    BASE_CFLAGS="-v"
14283else
14284    BASE_CFLAGS=""
14285fi
14286
14287# This chunk of warnings were those that existed in the legacy CWARNFLAGS
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301xorg_testset_save_CFLAGS="$CFLAGS"
14302
14303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14305	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14306printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14307if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14308then :
14309  printf %s "(cached) " >&6
14310else $as_nop
14311  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312/* end confdefs.h.  */
14313int i;
14314_ACEOF
14315if ac_fn_c_try_compile "$LINENO"
14316then :
14317  xorg_cv_cc_flag_unknown_warning_option=yes
14318else $as_nop
14319  xorg_cv_cc_flag_unknown_warning_option=no
14320fi
14321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14322fi
14323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14324printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14326	CFLAGS="$xorg_testset_save_CFLAGS"
14327fi
14328
14329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14332	fi
14333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14334	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14335printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14336if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14337then :
14338  printf %s "(cached) " >&6
14339else $as_nop
14340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14341/* end confdefs.h.  */
14342int i;
14343_ACEOF
14344if ac_fn_c_try_compile "$LINENO"
14345then :
14346  xorg_cv_cc_flag_unused_command_line_argument=yes
14347else $as_nop
14348  xorg_cv_cc_flag_unused_command_line_argument=no
14349fi
14350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14351fi
14352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14355	CFLAGS="$xorg_testset_save_CFLAGS"
14356fi
14357
14358found="no"
14359
14360	if test $found = "no" ; then
14361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14363		fi
14364
14365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14367		fi
14368
14369		CFLAGS="$CFLAGS -Wall"
14370
14371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14372printf %s "checking if $CC supports -Wall... " >&6; }
14373		cacheid=xorg_cv_cc_flag__Wall
14374		if eval test \${$cacheid+y}
14375then :
14376  printf %s "(cached) " >&6
14377else $as_nop
14378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379/* end confdefs.h.  */
14380int i;
14381int
14382main (void)
14383{
14384
14385  ;
14386  return 0;
14387}
14388_ACEOF
14389if ac_fn_c_try_link "$LINENO"
14390then :
14391  eval $cacheid=yes
14392else $as_nop
14393  eval $cacheid=no
14394fi
14395rm -f core conftest.err conftest.$ac_objext conftest.beam \
14396    conftest$ac_exeext conftest.$ac_ext
14397fi
14398
14399
14400		CFLAGS="$xorg_testset_save_CFLAGS"
14401
14402		eval supported=\$$cacheid
14403		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14404printf "%s\n" "$supported" >&6; }
14405		if test "$supported" = "yes" ; then
14406			BASE_CFLAGS="$BASE_CFLAGS -Wall"
14407			found="yes"
14408		fi
14409	fi
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425xorg_testset_save_CFLAGS="$CFLAGS"
14426
14427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14429	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14430printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14431if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14432then :
14433  printf %s "(cached) " >&6
14434else $as_nop
14435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14436/* end confdefs.h.  */
14437int i;
14438_ACEOF
14439if ac_fn_c_try_compile "$LINENO"
14440then :
14441  xorg_cv_cc_flag_unknown_warning_option=yes
14442else $as_nop
14443  xorg_cv_cc_flag_unknown_warning_option=no
14444fi
14445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14446fi
14447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14448printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14450	CFLAGS="$xorg_testset_save_CFLAGS"
14451fi
14452
14453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14456	fi
14457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14458	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14459printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14460if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14461then :
14462  printf %s "(cached) " >&6
14463else $as_nop
14464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465/* end confdefs.h.  */
14466int i;
14467_ACEOF
14468if ac_fn_c_try_compile "$LINENO"
14469then :
14470  xorg_cv_cc_flag_unused_command_line_argument=yes
14471else $as_nop
14472  xorg_cv_cc_flag_unused_command_line_argument=no
14473fi
14474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14475fi
14476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14477printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14478	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14479	CFLAGS="$xorg_testset_save_CFLAGS"
14480fi
14481
14482found="no"
14483
14484	if test $found = "no" ; then
14485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14487		fi
14488
14489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14491		fi
14492
14493		CFLAGS="$CFLAGS -Wpointer-arith"
14494
14495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14496printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14497		cacheid=xorg_cv_cc_flag__Wpointer_arith
14498		if eval test \${$cacheid+y}
14499then :
14500  printf %s "(cached) " >&6
14501else $as_nop
14502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14503/* end confdefs.h.  */
14504int i;
14505int
14506main (void)
14507{
14508
14509  ;
14510  return 0;
14511}
14512_ACEOF
14513if ac_fn_c_try_link "$LINENO"
14514then :
14515  eval $cacheid=yes
14516else $as_nop
14517  eval $cacheid=no
14518fi
14519rm -f core conftest.err conftest.$ac_objext conftest.beam \
14520    conftest$ac_exeext conftest.$ac_ext
14521fi
14522
14523
14524		CFLAGS="$xorg_testset_save_CFLAGS"
14525
14526		eval supported=\$$cacheid
14527		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14528printf "%s\n" "$supported" >&6; }
14529		if test "$supported" = "yes" ; then
14530			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14531			found="yes"
14532		fi
14533	fi
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549xorg_testset_save_CFLAGS="$CFLAGS"
14550
14551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14554printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14555if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14556then :
14557  printf %s "(cached) " >&6
14558else $as_nop
14559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560/* end confdefs.h.  */
14561int i;
14562_ACEOF
14563if ac_fn_c_try_compile "$LINENO"
14564then :
14565  xorg_cv_cc_flag_unknown_warning_option=yes
14566else $as_nop
14567  xorg_cv_cc_flag_unknown_warning_option=no
14568fi
14569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14570fi
14571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14572printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14573	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14574	CFLAGS="$xorg_testset_save_CFLAGS"
14575fi
14576
14577if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14578	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14579		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14580	fi
14581	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14583printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14584if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14585then :
14586  printf %s "(cached) " >&6
14587else $as_nop
14588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14589/* end confdefs.h.  */
14590int i;
14591_ACEOF
14592if ac_fn_c_try_compile "$LINENO"
14593then :
14594  xorg_cv_cc_flag_unused_command_line_argument=yes
14595else $as_nop
14596  xorg_cv_cc_flag_unused_command_line_argument=no
14597fi
14598rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14599fi
14600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14603	CFLAGS="$xorg_testset_save_CFLAGS"
14604fi
14605
14606found="no"
14607
14608	if test $found = "no" ; then
14609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14611		fi
14612
14613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14615		fi
14616
14617		CFLAGS="$CFLAGS -Wmissing-declarations"
14618
14619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14620printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14621		cacheid=xorg_cv_cc_flag__Wmissing_declarations
14622		if eval test \${$cacheid+y}
14623then :
14624  printf %s "(cached) " >&6
14625else $as_nop
14626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14627/* end confdefs.h.  */
14628int i;
14629int
14630main (void)
14631{
14632
14633  ;
14634  return 0;
14635}
14636_ACEOF
14637if ac_fn_c_try_link "$LINENO"
14638then :
14639  eval $cacheid=yes
14640else $as_nop
14641  eval $cacheid=no
14642fi
14643rm -f core conftest.err conftest.$ac_objext conftest.beam \
14644    conftest$ac_exeext conftest.$ac_ext
14645fi
14646
14647
14648		CFLAGS="$xorg_testset_save_CFLAGS"
14649
14650		eval supported=\$$cacheid
14651		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14652printf "%s\n" "$supported" >&6; }
14653		if test "$supported" = "yes" ; then
14654			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14655			found="yes"
14656		fi
14657	fi
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673xorg_testset_save_CFLAGS="$CFLAGS"
14674
14675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14678printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14679if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14680then :
14681  printf %s "(cached) " >&6
14682else $as_nop
14683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h.  */
14685int i;
14686_ACEOF
14687if ac_fn_c_try_compile "$LINENO"
14688then :
14689  xorg_cv_cc_flag_unknown_warning_option=yes
14690else $as_nop
14691  xorg_cv_cc_flag_unknown_warning_option=no
14692fi
14693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14694fi
14695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14696printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14698	CFLAGS="$xorg_testset_save_CFLAGS"
14699fi
14700
14701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14704	fi
14705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14706	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14707printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14708if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14709then :
14710  printf %s "(cached) " >&6
14711else $as_nop
14712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713/* end confdefs.h.  */
14714int i;
14715_ACEOF
14716if ac_fn_c_try_compile "$LINENO"
14717then :
14718  xorg_cv_cc_flag_unused_command_line_argument=yes
14719else $as_nop
14720  xorg_cv_cc_flag_unused_command_line_argument=no
14721fi
14722rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14723fi
14724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14727	CFLAGS="$xorg_testset_save_CFLAGS"
14728fi
14729
14730found="no"
14731
14732	if test $found = "no" ; then
14733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14735		fi
14736
14737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14739		fi
14740
14741		CFLAGS="$CFLAGS -Wformat=2"
14742
14743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14744printf %s "checking if $CC supports -Wformat=2... " >&6; }
14745		cacheid=xorg_cv_cc_flag__Wformat_2
14746		if eval test \${$cacheid+y}
14747then :
14748  printf %s "(cached) " >&6
14749else $as_nop
14750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751/* end confdefs.h.  */
14752int i;
14753int
14754main (void)
14755{
14756
14757  ;
14758  return 0;
14759}
14760_ACEOF
14761if ac_fn_c_try_link "$LINENO"
14762then :
14763  eval $cacheid=yes
14764else $as_nop
14765  eval $cacheid=no
14766fi
14767rm -f core conftest.err conftest.$ac_objext conftest.beam \
14768    conftest$ac_exeext conftest.$ac_ext
14769fi
14770
14771
14772		CFLAGS="$xorg_testset_save_CFLAGS"
14773
14774		eval supported=\$$cacheid
14775		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14776printf "%s\n" "$supported" >&6; }
14777		if test "$supported" = "yes" ; then
14778			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14779			found="yes"
14780		fi
14781	fi
14782
14783	if test $found = "no" ; then
14784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14786		fi
14787
14788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14790		fi
14791
14792		CFLAGS="$CFLAGS -Wformat"
14793
14794		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14795printf %s "checking if $CC supports -Wformat... " >&6; }
14796		cacheid=xorg_cv_cc_flag__Wformat
14797		if eval test \${$cacheid+y}
14798then :
14799  printf %s "(cached) " >&6
14800else $as_nop
14801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14802/* end confdefs.h.  */
14803int i;
14804int
14805main (void)
14806{
14807
14808  ;
14809  return 0;
14810}
14811_ACEOF
14812if ac_fn_c_try_link "$LINENO"
14813then :
14814  eval $cacheid=yes
14815else $as_nop
14816  eval $cacheid=no
14817fi
14818rm -f core conftest.err conftest.$ac_objext conftest.beam \
14819    conftest$ac_exeext conftest.$ac_ext
14820fi
14821
14822
14823		CFLAGS="$xorg_testset_save_CFLAGS"
14824
14825		eval supported=\$$cacheid
14826		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14827printf "%s\n" "$supported" >&6; }
14828		if test "$supported" = "yes" ; then
14829			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14830			found="yes"
14831		fi
14832	fi
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850xorg_testset_save_CFLAGS="$CFLAGS"
14851
14852if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14853	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14854	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14855printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14856if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14857then :
14858  printf %s "(cached) " >&6
14859else $as_nop
14860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862int i;
14863_ACEOF
14864if ac_fn_c_try_compile "$LINENO"
14865then :
14866  xorg_cv_cc_flag_unknown_warning_option=yes
14867else $as_nop
14868  xorg_cv_cc_flag_unknown_warning_option=no
14869fi
14870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14871fi
14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14873printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14875	CFLAGS="$xorg_testset_save_CFLAGS"
14876fi
14877
14878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14881	fi
14882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14883	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14884printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14885if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14886then :
14887  printf %s "(cached) " >&6
14888else $as_nop
14889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890/* end confdefs.h.  */
14891int i;
14892_ACEOF
14893if ac_fn_c_try_compile "$LINENO"
14894then :
14895  xorg_cv_cc_flag_unused_command_line_argument=yes
14896else $as_nop
14897  xorg_cv_cc_flag_unused_command_line_argument=no
14898fi
14899rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14900fi
14901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14902printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14904	CFLAGS="$xorg_testset_save_CFLAGS"
14905fi
14906
14907found="no"
14908
14909	if test $found = "no" ; then
14910		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14912		fi
14913
14914		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14916		fi
14917
14918		CFLAGS="$CFLAGS -Wstrict-prototypes"
14919
14920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14921printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14922		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14923		if eval test \${$cacheid+y}
14924then :
14925  printf %s "(cached) " >&6
14926else $as_nop
14927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928/* end confdefs.h.  */
14929int i;
14930int
14931main (void)
14932{
14933
14934  ;
14935  return 0;
14936}
14937_ACEOF
14938if ac_fn_c_try_link "$LINENO"
14939then :
14940  eval $cacheid=yes
14941else $as_nop
14942  eval $cacheid=no
14943fi
14944rm -f core conftest.err conftest.$ac_objext conftest.beam \
14945    conftest$ac_exeext conftest.$ac_ext
14946fi
14947
14948
14949		CFLAGS="$xorg_testset_save_CFLAGS"
14950
14951		eval supported=\$$cacheid
14952		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14953printf "%s\n" "$supported" >&6; }
14954		if test "$supported" = "yes" ; then
14955			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14956			found="yes"
14957		fi
14958	fi
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974xorg_testset_save_CFLAGS="$CFLAGS"
14975
14976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14981then :
14982  printf %s "(cached) " >&6
14983else $as_nop
14984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985/* end confdefs.h.  */
14986int i;
14987_ACEOF
14988if ac_fn_c_try_compile "$LINENO"
14989then :
14990  xorg_cv_cc_flag_unknown_warning_option=yes
14991else $as_nop
14992  xorg_cv_cc_flag_unknown_warning_option=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14995fi
14996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14999	CFLAGS="$xorg_testset_save_CFLAGS"
15000fi
15001
15002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15005	fi
15006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15010then :
15011  printf %s "(cached) " >&6
15012else $as_nop
15013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014/* end confdefs.h.  */
15015int i;
15016_ACEOF
15017if ac_fn_c_try_compile "$LINENO"
15018then :
15019  xorg_cv_cc_flag_unused_command_line_argument=yes
15020else $as_nop
15021  xorg_cv_cc_flag_unused_command_line_argument=no
15022fi
15023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15024fi
15025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15028	CFLAGS="$xorg_testset_save_CFLAGS"
15029fi
15030
15031found="no"
15032
15033	if test $found = "no" ; then
15034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15036		fi
15037
15038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15040		fi
15041
15042		CFLAGS="$CFLAGS -Wmissing-prototypes"
15043
15044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
15045printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
15046		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
15047		if eval test \${$cacheid+y}
15048then :
15049  printf %s "(cached) " >&6
15050else $as_nop
15051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15052/* end confdefs.h.  */
15053int i;
15054int
15055main (void)
15056{
15057
15058  ;
15059  return 0;
15060}
15061_ACEOF
15062if ac_fn_c_try_link "$LINENO"
15063then :
15064  eval $cacheid=yes
15065else $as_nop
15066  eval $cacheid=no
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.beam \
15069    conftest$ac_exeext conftest.$ac_ext
15070fi
15071
15072
15073		CFLAGS="$xorg_testset_save_CFLAGS"
15074
15075		eval supported=\$$cacheid
15076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15077printf "%s\n" "$supported" >&6; }
15078		if test "$supported" = "yes" ; then
15079			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
15080			found="yes"
15081		fi
15082	fi
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098xorg_testset_save_CFLAGS="$CFLAGS"
15099
15100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15105then :
15106  printf %s "(cached) " >&6
15107else $as_nop
15108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109/* end confdefs.h.  */
15110int i;
15111_ACEOF
15112if ac_fn_c_try_compile "$LINENO"
15113then :
15114  xorg_cv_cc_flag_unknown_warning_option=yes
15115else $as_nop
15116  xorg_cv_cc_flag_unknown_warning_option=no
15117fi
15118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15119fi
15120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15123	CFLAGS="$xorg_testset_save_CFLAGS"
15124fi
15125
15126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15129	fi
15130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15134then :
15135  printf %s "(cached) " >&6
15136else $as_nop
15137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15138/* end confdefs.h.  */
15139int i;
15140_ACEOF
15141if ac_fn_c_try_compile "$LINENO"
15142then :
15143  xorg_cv_cc_flag_unused_command_line_argument=yes
15144else $as_nop
15145  xorg_cv_cc_flag_unused_command_line_argument=no
15146fi
15147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15148fi
15149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15152	CFLAGS="$xorg_testset_save_CFLAGS"
15153fi
15154
15155found="no"
15156
15157	if test $found = "no" ; then
15158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15160		fi
15161
15162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15164		fi
15165
15166		CFLAGS="$CFLAGS -Wnested-externs"
15167
15168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15169printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15170		cacheid=xorg_cv_cc_flag__Wnested_externs
15171		if eval test \${$cacheid+y}
15172then :
15173  printf %s "(cached) " >&6
15174else $as_nop
15175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176/* end confdefs.h.  */
15177int i;
15178int
15179main (void)
15180{
15181
15182  ;
15183  return 0;
15184}
15185_ACEOF
15186if ac_fn_c_try_link "$LINENO"
15187then :
15188  eval $cacheid=yes
15189else $as_nop
15190  eval $cacheid=no
15191fi
15192rm -f core conftest.err conftest.$ac_objext conftest.beam \
15193    conftest$ac_exeext conftest.$ac_ext
15194fi
15195
15196
15197		CFLAGS="$xorg_testset_save_CFLAGS"
15198
15199		eval supported=\$$cacheid
15200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15201printf "%s\n" "$supported" >&6; }
15202		if test "$supported" = "yes" ; then
15203			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15204			found="yes"
15205		fi
15206	fi
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222xorg_testset_save_CFLAGS="$CFLAGS"
15223
15224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15229then :
15230  printf %s "(cached) " >&6
15231else $as_nop
15232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233/* end confdefs.h.  */
15234int i;
15235_ACEOF
15236if ac_fn_c_try_compile "$LINENO"
15237then :
15238  xorg_cv_cc_flag_unknown_warning_option=yes
15239else $as_nop
15240  xorg_cv_cc_flag_unknown_warning_option=no
15241fi
15242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15243fi
15244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15247	CFLAGS="$xorg_testset_save_CFLAGS"
15248fi
15249
15250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15253	fi
15254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15258then :
15259  printf %s "(cached) " >&6
15260else $as_nop
15261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263int i;
15264_ACEOF
15265if ac_fn_c_try_compile "$LINENO"
15266then :
15267  xorg_cv_cc_flag_unused_command_line_argument=yes
15268else $as_nop
15269  xorg_cv_cc_flag_unused_command_line_argument=no
15270fi
15271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15272fi
15273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15276	CFLAGS="$xorg_testset_save_CFLAGS"
15277fi
15278
15279found="no"
15280
15281	if test $found = "no" ; then
15282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15284		fi
15285
15286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15288		fi
15289
15290		CFLAGS="$CFLAGS -Wbad-function-cast"
15291
15292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15293printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15294		cacheid=xorg_cv_cc_flag__Wbad_function_cast
15295		if eval test \${$cacheid+y}
15296then :
15297  printf %s "(cached) " >&6
15298else $as_nop
15299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15300/* end confdefs.h.  */
15301int i;
15302int
15303main (void)
15304{
15305
15306  ;
15307  return 0;
15308}
15309_ACEOF
15310if ac_fn_c_try_link "$LINENO"
15311then :
15312  eval $cacheid=yes
15313else $as_nop
15314  eval $cacheid=no
15315fi
15316rm -f core conftest.err conftest.$ac_objext conftest.beam \
15317    conftest$ac_exeext conftest.$ac_ext
15318fi
15319
15320
15321		CFLAGS="$xorg_testset_save_CFLAGS"
15322
15323		eval supported=\$$cacheid
15324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15325printf "%s\n" "$supported" >&6; }
15326		if test "$supported" = "yes" ; then
15327			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15328			found="yes"
15329		fi
15330	fi
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346xorg_testset_save_CFLAGS="$CFLAGS"
15347
15348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15353then :
15354  printf %s "(cached) " >&6
15355else $as_nop
15356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357/* end confdefs.h.  */
15358int i;
15359_ACEOF
15360if ac_fn_c_try_compile "$LINENO"
15361then :
15362  xorg_cv_cc_flag_unknown_warning_option=yes
15363else $as_nop
15364  xorg_cv_cc_flag_unknown_warning_option=no
15365fi
15366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15367fi
15368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15371	CFLAGS="$xorg_testset_save_CFLAGS"
15372fi
15373
15374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15377	fi
15378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15382then :
15383  printf %s "(cached) " >&6
15384else $as_nop
15385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15386/* end confdefs.h.  */
15387int i;
15388_ACEOF
15389if ac_fn_c_try_compile "$LINENO"
15390then :
15391  xorg_cv_cc_flag_unused_command_line_argument=yes
15392else $as_nop
15393  xorg_cv_cc_flag_unused_command_line_argument=no
15394fi
15395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15396fi
15397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15400	CFLAGS="$xorg_testset_save_CFLAGS"
15401fi
15402
15403found="no"
15404
15405	if test $found = "no" ; then
15406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15408		fi
15409
15410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15412		fi
15413
15414		CFLAGS="$CFLAGS -Wold-style-definition"
15415
15416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15417printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15418		cacheid=xorg_cv_cc_flag__Wold_style_definition
15419		if eval test \${$cacheid+y}
15420then :
15421  printf %s "(cached) " >&6
15422else $as_nop
15423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425int i;
15426int
15427main (void)
15428{
15429
15430  ;
15431  return 0;
15432}
15433_ACEOF
15434if ac_fn_c_try_link "$LINENO"
15435then :
15436  eval $cacheid=yes
15437else $as_nop
15438  eval $cacheid=no
15439fi
15440rm -f core conftest.err conftest.$ac_objext conftest.beam \
15441    conftest$ac_exeext conftest.$ac_ext
15442fi
15443
15444
15445		CFLAGS="$xorg_testset_save_CFLAGS"
15446
15447		eval supported=\$$cacheid
15448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15449printf "%s\n" "$supported" >&6; }
15450		if test "$supported" = "yes" ; then
15451			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15452			found="yes"
15453		fi
15454	fi
15455
15456	if test $found = "no" ; then
15457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459		fi
15460
15461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15463		fi
15464
15465		CFLAGS="$CFLAGS -fd"
15466
15467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15468printf %s "checking if $CC supports -fd... " >&6; }
15469		cacheid=xorg_cv_cc_flag__fd
15470		if eval test \${$cacheid+y}
15471then :
15472  printf %s "(cached) " >&6
15473else $as_nop
15474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15475/* end confdefs.h.  */
15476int i;
15477int
15478main (void)
15479{
15480
15481  ;
15482  return 0;
15483}
15484_ACEOF
15485if ac_fn_c_try_link "$LINENO"
15486then :
15487  eval $cacheid=yes
15488else $as_nop
15489  eval $cacheid=no
15490fi
15491rm -f core conftest.err conftest.$ac_objext conftest.beam \
15492    conftest$ac_exeext conftest.$ac_ext
15493fi
15494
15495
15496		CFLAGS="$xorg_testset_save_CFLAGS"
15497
15498		eval supported=\$$cacheid
15499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15500printf "%s\n" "$supported" >&6; }
15501		if test "$supported" = "yes" ; then
15502			BASE_CFLAGS="$BASE_CFLAGS -fd"
15503			found="yes"
15504		fi
15505	fi
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521xorg_testset_save_CFLAGS="$CFLAGS"
15522
15523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15525	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15526printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15527if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15528then :
15529  printf %s "(cached) " >&6
15530else $as_nop
15531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532/* end confdefs.h.  */
15533int i;
15534_ACEOF
15535if ac_fn_c_try_compile "$LINENO"
15536then :
15537  xorg_cv_cc_flag_unknown_warning_option=yes
15538else $as_nop
15539  xorg_cv_cc_flag_unknown_warning_option=no
15540fi
15541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15542fi
15543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15544printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15545	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15546	CFLAGS="$xorg_testset_save_CFLAGS"
15547fi
15548
15549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15550	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15551		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552	fi
15553	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15554	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15555printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15556if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15557then :
15558  printf %s "(cached) " >&6
15559else $as_nop
15560  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561/* end confdefs.h.  */
15562int i;
15563_ACEOF
15564if ac_fn_c_try_compile "$LINENO"
15565then :
15566  xorg_cv_cc_flag_unused_command_line_argument=yes
15567else $as_nop
15568  xorg_cv_cc_flag_unused_command_line_argument=no
15569fi
15570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15571fi
15572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15575	CFLAGS="$xorg_testset_save_CFLAGS"
15576fi
15577
15578found="no"
15579
15580	if test $found = "no" ; then
15581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15583		fi
15584
15585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15587		fi
15588
15589		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15590
15591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
15592printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
15593		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
15594		if eval test \${$cacheid+y}
15595then :
15596  printf %s "(cached) " >&6
15597else $as_nop
15598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599/* end confdefs.h.  */
15600int i;
15601int
15602main (void)
15603{
15604
15605  ;
15606  return 0;
15607}
15608_ACEOF
15609if ac_fn_c_try_link "$LINENO"
15610then :
15611  eval $cacheid=yes
15612else $as_nop
15613  eval $cacheid=no
15614fi
15615rm -f core conftest.err conftest.$ac_objext conftest.beam \
15616    conftest$ac_exeext conftest.$ac_ext
15617fi
15618
15619
15620		CFLAGS="$xorg_testset_save_CFLAGS"
15621
15622		eval supported=\$$cacheid
15623		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15624printf "%s\n" "$supported" >&6; }
15625		if test "$supported" = "yes" ; then
15626			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
15627			found="yes"
15628		fi
15629	fi
15630
15631
15632
15633
15634
15635# This chunk adds additional warnings that could catch undesired effects.
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649xorg_testset_save_CFLAGS="$CFLAGS"
15650
15651if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15652	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15653	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15654printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15655if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15656then :
15657  printf %s "(cached) " >&6
15658else $as_nop
15659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660/* end confdefs.h.  */
15661int i;
15662_ACEOF
15663if ac_fn_c_try_compile "$LINENO"
15664then :
15665  xorg_cv_cc_flag_unknown_warning_option=yes
15666else $as_nop
15667  xorg_cv_cc_flag_unknown_warning_option=no
15668fi
15669rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15670fi
15671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15674	CFLAGS="$xorg_testset_save_CFLAGS"
15675fi
15676
15677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15680	fi
15681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15684if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15685then :
15686  printf %s "(cached) " >&6
15687else $as_nop
15688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689/* end confdefs.h.  */
15690int i;
15691_ACEOF
15692if ac_fn_c_try_compile "$LINENO"
15693then :
15694  xorg_cv_cc_flag_unused_command_line_argument=yes
15695else $as_nop
15696  xorg_cv_cc_flag_unused_command_line_argument=no
15697fi
15698rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15699fi
15700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15701printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15702	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15703	CFLAGS="$xorg_testset_save_CFLAGS"
15704fi
15705
15706found="no"
15707
15708	if test $found = "no" ; then
15709		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15710			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15711		fi
15712
15713		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15714			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15715		fi
15716
15717		CFLAGS="$CFLAGS -Wunused"
15718
15719		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15720printf %s "checking if $CC supports -Wunused... " >&6; }
15721		cacheid=xorg_cv_cc_flag__Wunused
15722		if eval test \${$cacheid+y}
15723then :
15724  printf %s "(cached) " >&6
15725else $as_nop
15726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727/* end confdefs.h.  */
15728int i;
15729int
15730main (void)
15731{
15732
15733  ;
15734  return 0;
15735}
15736_ACEOF
15737if ac_fn_c_try_link "$LINENO"
15738then :
15739  eval $cacheid=yes
15740else $as_nop
15741  eval $cacheid=no
15742fi
15743rm -f core conftest.err conftest.$ac_objext conftest.beam \
15744    conftest$ac_exeext conftest.$ac_ext
15745fi
15746
15747
15748		CFLAGS="$xorg_testset_save_CFLAGS"
15749
15750		eval supported=\$$cacheid
15751		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15752printf "%s\n" "$supported" >&6; }
15753		if test "$supported" = "yes" ; then
15754			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15755			found="yes"
15756		fi
15757	fi
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773xorg_testset_save_CFLAGS="$CFLAGS"
15774
15775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15778printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15779if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15780then :
15781  printf %s "(cached) " >&6
15782else $as_nop
15783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784/* end confdefs.h.  */
15785int i;
15786_ACEOF
15787if ac_fn_c_try_compile "$LINENO"
15788then :
15789  xorg_cv_cc_flag_unknown_warning_option=yes
15790else $as_nop
15791  xorg_cv_cc_flag_unknown_warning_option=no
15792fi
15793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15794fi
15795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15796printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15798	CFLAGS="$xorg_testset_save_CFLAGS"
15799fi
15800
15801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804	fi
15805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15806	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15807printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15808if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15809then :
15810  printf %s "(cached) " >&6
15811else $as_nop
15812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813/* end confdefs.h.  */
15814int i;
15815_ACEOF
15816if ac_fn_c_try_compile "$LINENO"
15817then :
15818  xorg_cv_cc_flag_unused_command_line_argument=yes
15819else $as_nop
15820  xorg_cv_cc_flag_unused_command_line_argument=no
15821fi
15822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15823fi
15824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15825printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15827	CFLAGS="$xorg_testset_save_CFLAGS"
15828fi
15829
15830found="no"
15831
15832	if test $found = "no" ; then
15833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15835		fi
15836
15837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15839		fi
15840
15841		CFLAGS="$CFLAGS -Wuninitialized"
15842
15843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15844printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15845		cacheid=xorg_cv_cc_flag__Wuninitialized
15846		if eval test \${$cacheid+y}
15847then :
15848  printf %s "(cached) " >&6
15849else $as_nop
15850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15851/* end confdefs.h.  */
15852int i;
15853int
15854main (void)
15855{
15856
15857  ;
15858  return 0;
15859}
15860_ACEOF
15861if ac_fn_c_try_link "$LINENO"
15862then :
15863  eval $cacheid=yes
15864else $as_nop
15865  eval $cacheid=no
15866fi
15867rm -f core conftest.err conftest.$ac_objext conftest.beam \
15868    conftest$ac_exeext conftest.$ac_ext
15869fi
15870
15871
15872		CFLAGS="$xorg_testset_save_CFLAGS"
15873
15874		eval supported=\$$cacheid
15875		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15876printf "%s\n" "$supported" >&6; }
15877		if test "$supported" = "yes" ; then
15878			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15879			found="yes"
15880		fi
15881	fi
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897xorg_testset_save_CFLAGS="$CFLAGS"
15898
15899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15900	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15901	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15902printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15903if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15904then :
15905  printf %s "(cached) " >&6
15906else $as_nop
15907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908/* end confdefs.h.  */
15909int i;
15910_ACEOF
15911if ac_fn_c_try_compile "$LINENO"
15912then :
15913  xorg_cv_cc_flag_unknown_warning_option=yes
15914else $as_nop
15915  xorg_cv_cc_flag_unknown_warning_option=no
15916fi
15917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15918fi
15919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15922	CFLAGS="$xorg_testset_save_CFLAGS"
15923fi
15924
15925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15928	fi
15929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15932if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15933then :
15934  printf %s "(cached) " >&6
15935else $as_nop
15936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h.  */
15938int i;
15939_ACEOF
15940if ac_fn_c_try_compile "$LINENO"
15941then :
15942  xorg_cv_cc_flag_unused_command_line_argument=yes
15943else $as_nop
15944  xorg_cv_cc_flag_unused_command_line_argument=no
15945fi
15946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15947fi
15948{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15949printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15951	CFLAGS="$xorg_testset_save_CFLAGS"
15952fi
15953
15954found="no"
15955
15956	if test $found = "no" ; then
15957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15959		fi
15960
15961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15963		fi
15964
15965		CFLAGS="$CFLAGS -Wshadow"
15966
15967		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15968printf %s "checking if $CC supports -Wshadow... " >&6; }
15969		cacheid=xorg_cv_cc_flag__Wshadow
15970		if eval test \${$cacheid+y}
15971then :
15972  printf %s "(cached) " >&6
15973else $as_nop
15974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h.  */
15976int i;
15977int
15978main (void)
15979{
15980
15981  ;
15982  return 0;
15983}
15984_ACEOF
15985if ac_fn_c_try_link "$LINENO"
15986then :
15987  eval $cacheid=yes
15988else $as_nop
15989  eval $cacheid=no
15990fi
15991rm -f core conftest.err conftest.$ac_objext conftest.beam \
15992    conftest$ac_exeext conftest.$ac_ext
15993fi
15994
15995
15996		CFLAGS="$xorg_testset_save_CFLAGS"
15997
15998		eval supported=\$$cacheid
15999		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16000printf "%s\n" "$supported" >&6; }
16001		if test "$supported" = "yes" ; then
16002			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
16003			found="yes"
16004		fi
16005	fi
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021xorg_testset_save_CFLAGS="$CFLAGS"
16022
16023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16025	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16026printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16027if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16028then :
16029  printf %s "(cached) " >&6
16030else $as_nop
16031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032/* end confdefs.h.  */
16033int i;
16034_ACEOF
16035if ac_fn_c_try_compile "$LINENO"
16036then :
16037  xorg_cv_cc_flag_unknown_warning_option=yes
16038else $as_nop
16039  xorg_cv_cc_flag_unknown_warning_option=no
16040fi
16041rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16042fi
16043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16044printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16046	CFLAGS="$xorg_testset_save_CFLAGS"
16047fi
16048
16049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16052	fi
16053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16054	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16055printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16056if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16057then :
16058  printf %s "(cached) " >&6
16059else $as_nop
16060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061/* end confdefs.h.  */
16062int i;
16063_ACEOF
16064if ac_fn_c_try_compile "$LINENO"
16065then :
16066  xorg_cv_cc_flag_unused_command_line_argument=yes
16067else $as_nop
16068  xorg_cv_cc_flag_unused_command_line_argument=no
16069fi
16070rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16071fi
16072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16073printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16074	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16075	CFLAGS="$xorg_testset_save_CFLAGS"
16076fi
16077
16078found="no"
16079
16080	if test $found = "no" ; then
16081		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16082			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16083		fi
16084
16085		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16086			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16087		fi
16088
16089		CFLAGS="$CFLAGS -Wmissing-noreturn"
16090
16091		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
16092printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
16093		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
16094		if eval test \${$cacheid+y}
16095then :
16096  printf %s "(cached) " >&6
16097else $as_nop
16098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16099/* end confdefs.h.  */
16100int i;
16101int
16102main (void)
16103{
16104
16105  ;
16106  return 0;
16107}
16108_ACEOF
16109if ac_fn_c_try_link "$LINENO"
16110then :
16111  eval $cacheid=yes
16112else $as_nop
16113  eval $cacheid=no
16114fi
16115rm -f core conftest.err conftest.$ac_objext conftest.beam \
16116    conftest$ac_exeext conftest.$ac_ext
16117fi
16118
16119
16120		CFLAGS="$xorg_testset_save_CFLAGS"
16121
16122		eval supported=\$$cacheid
16123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16124printf "%s\n" "$supported" >&6; }
16125		if test "$supported" = "yes" ; then
16126			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
16127			found="yes"
16128		fi
16129	fi
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145xorg_testset_save_CFLAGS="$CFLAGS"
16146
16147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16150printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16151if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16152then :
16153  printf %s "(cached) " >&6
16154else $as_nop
16155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156/* end confdefs.h.  */
16157int i;
16158_ACEOF
16159if ac_fn_c_try_compile "$LINENO"
16160then :
16161  xorg_cv_cc_flag_unknown_warning_option=yes
16162else $as_nop
16163  xorg_cv_cc_flag_unknown_warning_option=no
16164fi
16165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16166fi
16167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16168printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16169	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16170	CFLAGS="$xorg_testset_save_CFLAGS"
16171fi
16172
16173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16174	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16175		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16176	fi
16177	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16178	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16179printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16180if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16181then :
16182  printf %s "(cached) " >&6
16183else $as_nop
16184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185/* end confdefs.h.  */
16186int i;
16187_ACEOF
16188if ac_fn_c_try_compile "$LINENO"
16189then :
16190  xorg_cv_cc_flag_unused_command_line_argument=yes
16191else $as_nop
16192  xorg_cv_cc_flag_unused_command_line_argument=no
16193fi
16194rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16195fi
16196{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16197printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16199	CFLAGS="$xorg_testset_save_CFLAGS"
16200fi
16201
16202found="no"
16203
16204	if test $found = "no" ; then
16205		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16207		fi
16208
16209		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16211		fi
16212
16213		CFLAGS="$CFLAGS -Wmissing-format-attribute"
16214
16215		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
16216printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
16217		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
16218		if eval test \${$cacheid+y}
16219then :
16220  printf %s "(cached) " >&6
16221else $as_nop
16222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223/* end confdefs.h.  */
16224int i;
16225int
16226main (void)
16227{
16228
16229  ;
16230  return 0;
16231}
16232_ACEOF
16233if ac_fn_c_try_link "$LINENO"
16234then :
16235  eval $cacheid=yes
16236else $as_nop
16237  eval $cacheid=no
16238fi
16239rm -f core conftest.err conftest.$ac_objext conftest.beam \
16240    conftest$ac_exeext conftest.$ac_ext
16241fi
16242
16243
16244		CFLAGS="$xorg_testset_save_CFLAGS"
16245
16246		eval supported=\$$cacheid
16247		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16248printf "%s\n" "$supported" >&6; }
16249		if test "$supported" = "yes" ; then
16250			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16251			found="yes"
16252		fi
16253	fi
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269xorg_testset_save_CFLAGS="$CFLAGS"
16270
16271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16272	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16273	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16274printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16275if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16276then :
16277  printf %s "(cached) " >&6
16278else $as_nop
16279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280/* end confdefs.h.  */
16281int i;
16282_ACEOF
16283if ac_fn_c_try_compile "$LINENO"
16284then :
16285  xorg_cv_cc_flag_unknown_warning_option=yes
16286else $as_nop
16287  xorg_cv_cc_flag_unknown_warning_option=no
16288fi
16289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16290fi
16291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16292printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16294	CFLAGS="$xorg_testset_save_CFLAGS"
16295fi
16296
16297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16300	fi
16301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16302	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16303printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16304if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16305then :
16306  printf %s "(cached) " >&6
16307else $as_nop
16308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309/* end confdefs.h.  */
16310int i;
16311_ACEOF
16312if ac_fn_c_try_compile "$LINENO"
16313then :
16314  xorg_cv_cc_flag_unused_command_line_argument=yes
16315else $as_nop
16316  xorg_cv_cc_flag_unused_command_line_argument=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16319fi
16320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16321printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16322	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16323	CFLAGS="$xorg_testset_save_CFLAGS"
16324fi
16325
16326found="no"
16327
16328	if test $found = "no" ; then
16329		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16330			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16331		fi
16332
16333		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16334			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16335		fi
16336
16337		CFLAGS="$CFLAGS -Wredundant-decls"
16338
16339		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16340printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16341		cacheid=xorg_cv_cc_flag__Wredundant_decls
16342		if eval test \${$cacheid+y}
16343then :
16344  printf %s "(cached) " >&6
16345else $as_nop
16346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347/* end confdefs.h.  */
16348int i;
16349int
16350main (void)
16351{
16352
16353  ;
16354  return 0;
16355}
16356_ACEOF
16357if ac_fn_c_try_link "$LINENO"
16358then :
16359  eval $cacheid=yes
16360else $as_nop
16361  eval $cacheid=no
16362fi
16363rm -f core conftest.err conftest.$ac_objext conftest.beam \
16364    conftest$ac_exeext conftest.$ac_ext
16365fi
16366
16367
16368		CFLAGS="$xorg_testset_save_CFLAGS"
16369
16370		eval supported=\$$cacheid
16371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16372printf "%s\n" "$supported" >&6; }
16373		if test "$supported" = "yes" ; then
16374			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16375			found="yes"
16376		fi
16377	fi
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393xorg_testset_save_CFLAGS="$CFLAGS"
16394
16395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16400then :
16401  printf %s "(cached) " >&6
16402else $as_nop
16403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404/* end confdefs.h.  */
16405int i;
16406_ACEOF
16407if ac_fn_c_try_compile "$LINENO"
16408then :
16409  xorg_cv_cc_flag_unknown_warning_option=yes
16410else $as_nop
16411  xorg_cv_cc_flag_unknown_warning_option=no
16412fi
16413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16414fi
16415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16416printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16417	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16418	CFLAGS="$xorg_testset_save_CFLAGS"
16419fi
16420
16421if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16422	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16423		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16424	fi
16425	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16427printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16428if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16429then :
16430  printf %s "(cached) " >&6
16431else $as_nop
16432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16433/* end confdefs.h.  */
16434int i;
16435_ACEOF
16436if ac_fn_c_try_compile "$LINENO"
16437then :
16438  xorg_cv_cc_flag_unused_command_line_argument=yes
16439else $as_nop
16440  xorg_cv_cc_flag_unused_command_line_argument=no
16441fi
16442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16443fi
16444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16445printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16446	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16447	CFLAGS="$xorg_testset_save_CFLAGS"
16448fi
16449
16450found="no"
16451
16452	if test $found = "no" ; then
16453		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16454			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16455		fi
16456
16457		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16458			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459		fi
16460
16461		CFLAGS="$CFLAGS -Wlogical-op"
16462
16463		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16464printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16465		cacheid=xorg_cv_cc_flag__Wlogical_op
16466		if eval test \${$cacheid+y}
16467then :
16468  printf %s "(cached) " >&6
16469else $as_nop
16470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471/* end confdefs.h.  */
16472int i;
16473int
16474main (void)
16475{
16476
16477  ;
16478  return 0;
16479}
16480_ACEOF
16481if ac_fn_c_try_link "$LINENO"
16482then :
16483  eval $cacheid=yes
16484else $as_nop
16485  eval $cacheid=no
16486fi
16487rm -f core conftest.err conftest.$ac_objext conftest.beam \
16488    conftest$ac_exeext conftest.$ac_ext
16489fi
16490
16491
16492		CFLAGS="$xorg_testset_save_CFLAGS"
16493
16494		eval supported=\$$cacheid
16495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16496printf "%s\n" "$supported" >&6; }
16497		if test "$supported" = "yes" ; then
16498			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16499			found="yes"
16500		fi
16501	fi
16502
16503
16504
16505# These are currently disabled because they are noisy.  They will be enabled
16506# in the future once the codebase is sufficiently modernized to silence
16507# them.  For now, I don't want them to drown out the other warnings.
16508# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16509# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16510# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16511
16512# Turn some warnings into errors, so we don't accidentally get successful builds
16513# when there are problems that should be fixed.
16514
16515if test "x$SELECTIVE_WERROR" = "xyes" ; then
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529xorg_testset_save_CFLAGS="$CFLAGS"
16530
16531if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16532	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16533	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16534printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16535if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16536then :
16537  printf %s "(cached) " >&6
16538else $as_nop
16539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540/* end confdefs.h.  */
16541int i;
16542_ACEOF
16543if ac_fn_c_try_compile "$LINENO"
16544then :
16545  xorg_cv_cc_flag_unknown_warning_option=yes
16546else $as_nop
16547  xorg_cv_cc_flag_unknown_warning_option=no
16548fi
16549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16550fi
16551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16552printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16553	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16554	CFLAGS="$xorg_testset_save_CFLAGS"
16555fi
16556
16557if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16558	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16559		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16560	fi
16561	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16562	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16563printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16564if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16565then :
16566  printf %s "(cached) " >&6
16567else $as_nop
16568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569/* end confdefs.h.  */
16570int i;
16571_ACEOF
16572if ac_fn_c_try_compile "$LINENO"
16573then :
16574  xorg_cv_cc_flag_unused_command_line_argument=yes
16575else $as_nop
16576  xorg_cv_cc_flag_unused_command_line_argument=no
16577fi
16578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16579fi
16580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16581printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16583	CFLAGS="$xorg_testset_save_CFLAGS"
16584fi
16585
16586found="no"
16587
16588	if test $found = "no" ; then
16589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16591		fi
16592
16593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16595		fi
16596
16597		CFLAGS="$CFLAGS -Werror=implicit"
16598
16599		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16600printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16601		cacheid=xorg_cv_cc_flag__Werror_implicit
16602		if eval test \${$cacheid+y}
16603then :
16604  printf %s "(cached) " >&6
16605else $as_nop
16606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607/* end confdefs.h.  */
16608int i;
16609int
16610main (void)
16611{
16612
16613  ;
16614  return 0;
16615}
16616_ACEOF
16617if ac_fn_c_try_link "$LINENO"
16618then :
16619  eval $cacheid=yes
16620else $as_nop
16621  eval $cacheid=no
16622fi
16623rm -f core conftest.err conftest.$ac_objext conftest.beam \
16624    conftest$ac_exeext conftest.$ac_ext
16625fi
16626
16627
16628		CFLAGS="$xorg_testset_save_CFLAGS"
16629
16630		eval supported=\$$cacheid
16631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16632printf "%s\n" "$supported" >&6; }
16633		if test "$supported" = "yes" ; then
16634			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16635			found="yes"
16636		fi
16637	fi
16638
16639	if test $found = "no" ; then
16640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16642		fi
16643
16644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16646		fi
16647
16648		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16649
16650		{ 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
16651printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16652		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16653		if eval test \${$cacheid+y}
16654then :
16655  printf %s "(cached) " >&6
16656else $as_nop
16657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658/* end confdefs.h.  */
16659int i;
16660int
16661main (void)
16662{
16663
16664  ;
16665  return 0;
16666}
16667_ACEOF
16668if ac_fn_c_try_link "$LINENO"
16669then :
16670  eval $cacheid=yes
16671else $as_nop
16672  eval $cacheid=no
16673fi
16674rm -f core conftest.err conftest.$ac_objext conftest.beam \
16675    conftest$ac_exeext conftest.$ac_ext
16676fi
16677
16678
16679		CFLAGS="$xorg_testset_save_CFLAGS"
16680
16681		eval supported=\$$cacheid
16682		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16683printf "%s\n" "$supported" >&6; }
16684		if test "$supported" = "yes" ; then
16685			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16686			found="yes"
16687		fi
16688	fi
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704xorg_testset_save_CFLAGS="$CFLAGS"
16705
16706if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16707	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16708	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16709printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16710if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16711then :
16712  printf %s "(cached) " >&6
16713else $as_nop
16714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16715/* end confdefs.h.  */
16716int i;
16717_ACEOF
16718if ac_fn_c_try_compile "$LINENO"
16719then :
16720  xorg_cv_cc_flag_unknown_warning_option=yes
16721else $as_nop
16722  xorg_cv_cc_flag_unknown_warning_option=no
16723fi
16724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16725fi
16726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16727printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16728	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16729	CFLAGS="$xorg_testset_save_CFLAGS"
16730fi
16731
16732if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16733	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16734		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16735	fi
16736	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16738printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16739if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16740then :
16741  printf %s "(cached) " >&6
16742else $as_nop
16743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16744/* end confdefs.h.  */
16745int i;
16746_ACEOF
16747if ac_fn_c_try_compile "$LINENO"
16748then :
16749  xorg_cv_cc_flag_unused_command_line_argument=yes
16750else $as_nop
16751  xorg_cv_cc_flag_unused_command_line_argument=no
16752fi
16753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16754fi
16755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16756printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16757	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16758	CFLAGS="$xorg_testset_save_CFLAGS"
16759fi
16760
16761found="no"
16762
16763	if test $found = "no" ; then
16764		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16765			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16766		fi
16767
16768		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16769			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16770		fi
16771
16772		CFLAGS="$CFLAGS -Werror=nonnull"
16773
16774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16775printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16776		cacheid=xorg_cv_cc_flag__Werror_nonnull
16777		if eval test \${$cacheid+y}
16778then :
16779  printf %s "(cached) " >&6
16780else $as_nop
16781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16782/* end confdefs.h.  */
16783int i;
16784int
16785main (void)
16786{
16787
16788  ;
16789  return 0;
16790}
16791_ACEOF
16792if ac_fn_c_try_link "$LINENO"
16793then :
16794  eval $cacheid=yes
16795else $as_nop
16796  eval $cacheid=no
16797fi
16798rm -f core conftest.err conftest.$ac_objext conftest.beam \
16799    conftest$ac_exeext conftest.$ac_ext
16800fi
16801
16802
16803		CFLAGS="$xorg_testset_save_CFLAGS"
16804
16805		eval supported=\$$cacheid
16806		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16807printf "%s\n" "$supported" >&6; }
16808		if test "$supported" = "yes" ; then
16809			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16810			found="yes"
16811		fi
16812	fi
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828xorg_testset_save_CFLAGS="$CFLAGS"
16829
16830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16833printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16834if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16835then :
16836  printf %s "(cached) " >&6
16837else $as_nop
16838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h.  */
16840int i;
16841_ACEOF
16842if ac_fn_c_try_compile "$LINENO"
16843then :
16844  xorg_cv_cc_flag_unknown_warning_option=yes
16845else $as_nop
16846  xorg_cv_cc_flag_unknown_warning_option=no
16847fi
16848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16849fi
16850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16851printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16852	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16853	CFLAGS="$xorg_testset_save_CFLAGS"
16854fi
16855
16856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16857	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16858		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16859	fi
16860	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16861	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16862printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16863if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16864then :
16865  printf %s "(cached) " >&6
16866else $as_nop
16867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16868/* end confdefs.h.  */
16869int i;
16870_ACEOF
16871if ac_fn_c_try_compile "$LINENO"
16872then :
16873  xorg_cv_cc_flag_unused_command_line_argument=yes
16874else $as_nop
16875  xorg_cv_cc_flag_unused_command_line_argument=no
16876fi
16877rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16878fi
16879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16880printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16881	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16882	CFLAGS="$xorg_testset_save_CFLAGS"
16883fi
16884
16885found="no"
16886
16887	if test $found = "no" ; then
16888		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16889			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16890		fi
16891
16892		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16893			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16894		fi
16895
16896		CFLAGS="$CFLAGS -Werror=init-self"
16897
16898		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16899printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16900		cacheid=xorg_cv_cc_flag__Werror_init_self
16901		if eval test \${$cacheid+y}
16902then :
16903  printf %s "(cached) " >&6
16904else $as_nop
16905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h.  */
16907int i;
16908int
16909main (void)
16910{
16911
16912  ;
16913  return 0;
16914}
16915_ACEOF
16916if ac_fn_c_try_link "$LINENO"
16917then :
16918  eval $cacheid=yes
16919else $as_nop
16920  eval $cacheid=no
16921fi
16922rm -f core conftest.err conftest.$ac_objext conftest.beam \
16923    conftest$ac_exeext conftest.$ac_ext
16924fi
16925
16926
16927		CFLAGS="$xorg_testset_save_CFLAGS"
16928
16929		eval supported=\$$cacheid
16930		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16931printf "%s\n" "$supported" >&6; }
16932		if test "$supported" = "yes" ; then
16933			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16934			found="yes"
16935		fi
16936	fi
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952xorg_testset_save_CFLAGS="$CFLAGS"
16953
16954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16956	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16957printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16958if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16959then :
16960  printf %s "(cached) " >&6
16961else $as_nop
16962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h.  */
16964int i;
16965_ACEOF
16966if ac_fn_c_try_compile "$LINENO"
16967then :
16968  xorg_cv_cc_flag_unknown_warning_option=yes
16969else $as_nop
16970  xorg_cv_cc_flag_unknown_warning_option=no
16971fi
16972rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16973fi
16974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16975printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16976	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16977	CFLAGS="$xorg_testset_save_CFLAGS"
16978fi
16979
16980if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16981	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16982		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16983	fi
16984	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16985	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16986printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16987if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16988then :
16989  printf %s "(cached) " >&6
16990else $as_nop
16991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992/* end confdefs.h.  */
16993int i;
16994_ACEOF
16995if ac_fn_c_try_compile "$LINENO"
16996then :
16997  xorg_cv_cc_flag_unused_command_line_argument=yes
16998else $as_nop
16999  xorg_cv_cc_flag_unused_command_line_argument=no
17000fi
17001rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17002fi
17003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17006	CFLAGS="$xorg_testset_save_CFLAGS"
17007fi
17008
17009found="no"
17010
17011	if test $found = "no" ; then
17012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17014		fi
17015
17016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17018		fi
17019
17020		CFLAGS="$CFLAGS -Werror=main"
17021
17022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
17023printf %s "checking if $CC supports -Werror=main... " >&6; }
17024		cacheid=xorg_cv_cc_flag__Werror_main
17025		if eval test \${$cacheid+y}
17026then :
17027  printf %s "(cached) " >&6
17028else $as_nop
17029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030/* end confdefs.h.  */
17031int i;
17032int
17033main (void)
17034{
17035
17036  ;
17037  return 0;
17038}
17039_ACEOF
17040if ac_fn_c_try_link "$LINENO"
17041then :
17042  eval $cacheid=yes
17043else $as_nop
17044  eval $cacheid=no
17045fi
17046rm -f core conftest.err conftest.$ac_objext conftest.beam \
17047    conftest$ac_exeext conftest.$ac_ext
17048fi
17049
17050
17051		CFLAGS="$xorg_testset_save_CFLAGS"
17052
17053		eval supported=\$$cacheid
17054		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17055printf "%s\n" "$supported" >&6; }
17056		if test "$supported" = "yes" ; then
17057			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
17058			found="yes"
17059		fi
17060	fi
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076xorg_testset_save_CFLAGS="$CFLAGS"
17077
17078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17081printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17082if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17083then :
17084  printf %s "(cached) " >&6
17085else $as_nop
17086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087/* end confdefs.h.  */
17088int i;
17089_ACEOF
17090if ac_fn_c_try_compile "$LINENO"
17091then :
17092  xorg_cv_cc_flag_unknown_warning_option=yes
17093else $as_nop
17094  xorg_cv_cc_flag_unknown_warning_option=no
17095fi
17096rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17097fi
17098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17101	CFLAGS="$xorg_testset_save_CFLAGS"
17102fi
17103
17104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17107	fi
17108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17112then :
17113  printf %s "(cached) " >&6
17114else $as_nop
17115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116/* end confdefs.h.  */
17117int i;
17118_ACEOF
17119if ac_fn_c_try_compile "$LINENO"
17120then :
17121  xorg_cv_cc_flag_unused_command_line_argument=yes
17122else $as_nop
17123  xorg_cv_cc_flag_unused_command_line_argument=no
17124fi
17125rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17126fi
17127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17130	CFLAGS="$xorg_testset_save_CFLAGS"
17131fi
17132
17133found="no"
17134
17135	if test $found = "no" ; then
17136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17138		fi
17139
17140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17142		fi
17143
17144		CFLAGS="$CFLAGS -Werror=missing-braces"
17145
17146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
17147printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
17148		cacheid=xorg_cv_cc_flag__Werror_missing_braces
17149		if eval test \${$cacheid+y}
17150then :
17151  printf %s "(cached) " >&6
17152else $as_nop
17153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154/* end confdefs.h.  */
17155int i;
17156int
17157main (void)
17158{
17159
17160  ;
17161  return 0;
17162}
17163_ACEOF
17164if ac_fn_c_try_link "$LINENO"
17165then :
17166  eval $cacheid=yes
17167else $as_nop
17168  eval $cacheid=no
17169fi
17170rm -f core conftest.err conftest.$ac_objext conftest.beam \
17171    conftest$ac_exeext conftest.$ac_ext
17172fi
17173
17174
17175		CFLAGS="$xorg_testset_save_CFLAGS"
17176
17177		eval supported=\$$cacheid
17178		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17179printf "%s\n" "$supported" >&6; }
17180		if test "$supported" = "yes" ; then
17181			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17182			found="yes"
17183		fi
17184	fi
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200xorg_testset_save_CFLAGS="$CFLAGS"
17201
17202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17204	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17205printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17206if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17207then :
17208  printf %s "(cached) " >&6
17209else $as_nop
17210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17211/* end confdefs.h.  */
17212int i;
17213_ACEOF
17214if ac_fn_c_try_compile "$LINENO"
17215then :
17216  xorg_cv_cc_flag_unknown_warning_option=yes
17217else $as_nop
17218  xorg_cv_cc_flag_unknown_warning_option=no
17219fi
17220rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17221fi
17222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17223printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17225	CFLAGS="$xorg_testset_save_CFLAGS"
17226fi
17227
17228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17231	fi
17232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17234printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17235if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17236then :
17237  printf %s "(cached) " >&6
17238else $as_nop
17239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240/* end confdefs.h.  */
17241int i;
17242_ACEOF
17243if ac_fn_c_try_compile "$LINENO"
17244then :
17245  xorg_cv_cc_flag_unused_command_line_argument=yes
17246else $as_nop
17247  xorg_cv_cc_flag_unused_command_line_argument=no
17248fi
17249rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17250fi
17251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17254	CFLAGS="$xorg_testset_save_CFLAGS"
17255fi
17256
17257found="no"
17258
17259	if test $found = "no" ; then
17260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17262		fi
17263
17264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17266		fi
17267
17268		CFLAGS="$CFLAGS -Werror=sequence-point"
17269
17270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17271printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17272		cacheid=xorg_cv_cc_flag__Werror_sequence_point
17273		if eval test \${$cacheid+y}
17274then :
17275  printf %s "(cached) " >&6
17276else $as_nop
17277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278/* end confdefs.h.  */
17279int i;
17280int
17281main (void)
17282{
17283
17284  ;
17285  return 0;
17286}
17287_ACEOF
17288if ac_fn_c_try_link "$LINENO"
17289then :
17290  eval $cacheid=yes
17291else $as_nop
17292  eval $cacheid=no
17293fi
17294rm -f core conftest.err conftest.$ac_objext conftest.beam \
17295    conftest$ac_exeext conftest.$ac_ext
17296fi
17297
17298
17299		CFLAGS="$xorg_testset_save_CFLAGS"
17300
17301		eval supported=\$$cacheid
17302		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17303printf "%s\n" "$supported" >&6; }
17304		if test "$supported" = "yes" ; then
17305			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17306			found="yes"
17307		fi
17308	fi
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324xorg_testset_save_CFLAGS="$CFLAGS"
17325
17326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17328	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17329printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17330if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17331then :
17332  printf %s "(cached) " >&6
17333else $as_nop
17334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17335/* end confdefs.h.  */
17336int i;
17337_ACEOF
17338if ac_fn_c_try_compile "$LINENO"
17339then :
17340  xorg_cv_cc_flag_unknown_warning_option=yes
17341else $as_nop
17342  xorg_cv_cc_flag_unknown_warning_option=no
17343fi
17344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17345fi
17346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17347printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17348	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17349	CFLAGS="$xorg_testset_save_CFLAGS"
17350fi
17351
17352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17353	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17354		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17355	fi
17356	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17358printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17359if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17360then :
17361  printf %s "(cached) " >&6
17362else $as_nop
17363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17364/* end confdefs.h.  */
17365int i;
17366_ACEOF
17367if ac_fn_c_try_compile "$LINENO"
17368then :
17369  xorg_cv_cc_flag_unused_command_line_argument=yes
17370else $as_nop
17371  xorg_cv_cc_flag_unused_command_line_argument=no
17372fi
17373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17374fi
17375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17376printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17378	CFLAGS="$xorg_testset_save_CFLAGS"
17379fi
17380
17381found="no"
17382
17383	if test $found = "no" ; then
17384		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17386		fi
17387
17388		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17390		fi
17391
17392		CFLAGS="$CFLAGS -Werror=return-type"
17393
17394		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17395printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17396		cacheid=xorg_cv_cc_flag__Werror_return_type
17397		if eval test \${$cacheid+y}
17398then :
17399  printf %s "(cached) " >&6
17400else $as_nop
17401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402/* end confdefs.h.  */
17403int i;
17404int
17405main (void)
17406{
17407
17408  ;
17409  return 0;
17410}
17411_ACEOF
17412if ac_fn_c_try_link "$LINENO"
17413then :
17414  eval $cacheid=yes
17415else $as_nop
17416  eval $cacheid=no
17417fi
17418rm -f core conftest.err conftest.$ac_objext conftest.beam \
17419    conftest$ac_exeext conftest.$ac_ext
17420fi
17421
17422
17423		CFLAGS="$xorg_testset_save_CFLAGS"
17424
17425		eval supported=\$$cacheid
17426		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17427printf "%s\n" "$supported" >&6; }
17428		if test "$supported" = "yes" ; then
17429			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17430			found="yes"
17431		fi
17432	fi
17433
17434	if test $found = "no" ; then
17435		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17437		fi
17438
17439		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17441		fi
17442
17443		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17444
17445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17446printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17447		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17448		if eval test \${$cacheid+y}
17449then :
17450  printf %s "(cached) " >&6
17451else $as_nop
17452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453/* end confdefs.h.  */
17454int i;
17455int
17456main (void)
17457{
17458
17459  ;
17460  return 0;
17461}
17462_ACEOF
17463if ac_fn_c_try_link "$LINENO"
17464then :
17465  eval $cacheid=yes
17466else $as_nop
17467  eval $cacheid=no
17468fi
17469rm -f core conftest.err conftest.$ac_objext conftest.beam \
17470    conftest$ac_exeext conftest.$ac_ext
17471fi
17472
17473
17474		CFLAGS="$xorg_testset_save_CFLAGS"
17475
17476		eval supported=\$$cacheid
17477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17478printf "%s\n" "$supported" >&6; }
17479		if test "$supported" = "yes" ; then
17480			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17481			found="yes"
17482		fi
17483	fi
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499xorg_testset_save_CFLAGS="$CFLAGS"
17500
17501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17503	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17504printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17505if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17506then :
17507  printf %s "(cached) " >&6
17508else $as_nop
17509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510/* end confdefs.h.  */
17511int i;
17512_ACEOF
17513if ac_fn_c_try_compile "$LINENO"
17514then :
17515  xorg_cv_cc_flag_unknown_warning_option=yes
17516else $as_nop
17517  xorg_cv_cc_flag_unknown_warning_option=no
17518fi
17519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17520fi
17521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17522printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17523	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17524	CFLAGS="$xorg_testset_save_CFLAGS"
17525fi
17526
17527if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17528	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17529		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17530	fi
17531	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17532	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17533printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17534if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17535then :
17536  printf %s "(cached) " >&6
17537else $as_nop
17538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17539/* end confdefs.h.  */
17540int i;
17541_ACEOF
17542if ac_fn_c_try_compile "$LINENO"
17543then :
17544  xorg_cv_cc_flag_unused_command_line_argument=yes
17545else $as_nop
17546  xorg_cv_cc_flag_unused_command_line_argument=no
17547fi
17548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17549fi
17550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17551printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17553	CFLAGS="$xorg_testset_save_CFLAGS"
17554fi
17555
17556found="no"
17557
17558	if test $found = "no" ; then
17559		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17561		fi
17562
17563		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17565		fi
17566
17567		CFLAGS="$CFLAGS -Werror=trigraphs"
17568
17569		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17570printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17571		cacheid=xorg_cv_cc_flag__Werror_trigraphs
17572		if eval test \${$cacheid+y}
17573then :
17574  printf %s "(cached) " >&6
17575else $as_nop
17576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577/* end confdefs.h.  */
17578int i;
17579int
17580main (void)
17581{
17582
17583  ;
17584  return 0;
17585}
17586_ACEOF
17587if ac_fn_c_try_link "$LINENO"
17588then :
17589  eval $cacheid=yes
17590else $as_nop
17591  eval $cacheid=no
17592fi
17593rm -f core conftest.err conftest.$ac_objext conftest.beam \
17594    conftest$ac_exeext conftest.$ac_ext
17595fi
17596
17597
17598		CFLAGS="$xorg_testset_save_CFLAGS"
17599
17600		eval supported=\$$cacheid
17601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17602printf "%s\n" "$supported" >&6; }
17603		if test "$supported" = "yes" ; then
17604			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17605			found="yes"
17606		fi
17607	fi
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623xorg_testset_save_CFLAGS="$CFLAGS"
17624
17625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17626	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17627	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17628printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17629if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17630then :
17631  printf %s "(cached) " >&6
17632else $as_nop
17633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634/* end confdefs.h.  */
17635int i;
17636_ACEOF
17637if ac_fn_c_try_compile "$LINENO"
17638then :
17639  xorg_cv_cc_flag_unknown_warning_option=yes
17640else $as_nop
17641  xorg_cv_cc_flag_unknown_warning_option=no
17642fi
17643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17644fi
17645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17646printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17647	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17648	CFLAGS="$xorg_testset_save_CFLAGS"
17649fi
17650
17651if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17652	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17653		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17654	fi
17655	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17656	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17657printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17658if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17659then :
17660  printf %s "(cached) " >&6
17661else $as_nop
17662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663/* end confdefs.h.  */
17664int i;
17665_ACEOF
17666if ac_fn_c_try_compile "$LINENO"
17667then :
17668  xorg_cv_cc_flag_unused_command_line_argument=yes
17669else $as_nop
17670  xorg_cv_cc_flag_unused_command_line_argument=no
17671fi
17672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17673fi
17674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17675printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17676	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17677	CFLAGS="$xorg_testset_save_CFLAGS"
17678fi
17679
17680found="no"
17681
17682	if test $found = "no" ; then
17683		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17684			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17685		fi
17686
17687		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17688			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17689		fi
17690
17691		CFLAGS="$CFLAGS -Werror=array-bounds"
17692
17693		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17694printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17695		cacheid=xorg_cv_cc_flag__Werror_array_bounds
17696		if eval test \${$cacheid+y}
17697then :
17698  printf %s "(cached) " >&6
17699else $as_nop
17700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17701/* end confdefs.h.  */
17702int i;
17703int
17704main (void)
17705{
17706
17707  ;
17708  return 0;
17709}
17710_ACEOF
17711if ac_fn_c_try_link "$LINENO"
17712then :
17713  eval $cacheid=yes
17714else $as_nop
17715  eval $cacheid=no
17716fi
17717rm -f core conftest.err conftest.$ac_objext conftest.beam \
17718    conftest$ac_exeext conftest.$ac_ext
17719fi
17720
17721
17722		CFLAGS="$xorg_testset_save_CFLAGS"
17723
17724		eval supported=\$$cacheid
17725		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17726printf "%s\n" "$supported" >&6; }
17727		if test "$supported" = "yes" ; then
17728			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17729			found="yes"
17730		fi
17731	fi
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747xorg_testset_save_CFLAGS="$CFLAGS"
17748
17749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17752printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17753if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17754then :
17755  printf %s "(cached) " >&6
17756else $as_nop
17757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758/* end confdefs.h.  */
17759int i;
17760_ACEOF
17761if ac_fn_c_try_compile "$LINENO"
17762then :
17763  xorg_cv_cc_flag_unknown_warning_option=yes
17764else $as_nop
17765  xorg_cv_cc_flag_unknown_warning_option=no
17766fi
17767rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17768fi
17769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17770printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17771	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17772	CFLAGS="$xorg_testset_save_CFLAGS"
17773fi
17774
17775if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17776	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17777		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17778	fi
17779	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17780	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17781printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17782if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17783then :
17784  printf %s "(cached) " >&6
17785else $as_nop
17786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787/* end confdefs.h.  */
17788int i;
17789_ACEOF
17790if ac_fn_c_try_compile "$LINENO"
17791then :
17792  xorg_cv_cc_flag_unused_command_line_argument=yes
17793else $as_nop
17794  xorg_cv_cc_flag_unused_command_line_argument=no
17795fi
17796rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17797fi
17798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17801	CFLAGS="$xorg_testset_save_CFLAGS"
17802fi
17803
17804found="no"
17805
17806	if test $found = "no" ; then
17807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17809		fi
17810
17811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17813		fi
17814
17815		CFLAGS="$CFLAGS -Werror=write-strings"
17816
17817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17818printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17819		cacheid=xorg_cv_cc_flag__Werror_write_strings
17820		if eval test \${$cacheid+y}
17821then :
17822  printf %s "(cached) " >&6
17823else $as_nop
17824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825/* end confdefs.h.  */
17826int i;
17827int
17828main (void)
17829{
17830
17831  ;
17832  return 0;
17833}
17834_ACEOF
17835if ac_fn_c_try_link "$LINENO"
17836then :
17837  eval $cacheid=yes
17838else $as_nop
17839  eval $cacheid=no
17840fi
17841rm -f core conftest.err conftest.$ac_objext conftest.beam \
17842    conftest$ac_exeext conftest.$ac_ext
17843fi
17844
17845
17846		CFLAGS="$xorg_testset_save_CFLAGS"
17847
17848		eval supported=\$$cacheid
17849		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17850printf "%s\n" "$supported" >&6; }
17851		if test "$supported" = "yes" ; then
17852			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17853			found="yes"
17854		fi
17855	fi
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871xorg_testset_save_CFLAGS="$CFLAGS"
17872
17873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17874	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17875	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17876printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17877if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17878then :
17879  printf %s "(cached) " >&6
17880else $as_nop
17881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17882/* end confdefs.h.  */
17883int i;
17884_ACEOF
17885if ac_fn_c_try_compile "$LINENO"
17886then :
17887  xorg_cv_cc_flag_unknown_warning_option=yes
17888else $as_nop
17889  xorg_cv_cc_flag_unknown_warning_option=no
17890fi
17891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17892fi
17893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17894printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17895	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17896	CFLAGS="$xorg_testset_save_CFLAGS"
17897fi
17898
17899if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17900	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17901		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17902	fi
17903	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17904	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17905printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17906if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17907then :
17908  printf %s "(cached) " >&6
17909else $as_nop
17910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911/* end confdefs.h.  */
17912int i;
17913_ACEOF
17914if ac_fn_c_try_compile "$LINENO"
17915then :
17916  xorg_cv_cc_flag_unused_command_line_argument=yes
17917else $as_nop
17918  xorg_cv_cc_flag_unused_command_line_argument=no
17919fi
17920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17921fi
17922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17923printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17924	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17925	CFLAGS="$xorg_testset_save_CFLAGS"
17926fi
17927
17928found="no"
17929
17930	if test $found = "no" ; then
17931		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17932			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17933		fi
17934
17935		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17936			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17937		fi
17938
17939		CFLAGS="$CFLAGS -Werror=address"
17940
17941		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17942printf %s "checking if $CC supports -Werror=address... " >&6; }
17943		cacheid=xorg_cv_cc_flag__Werror_address
17944		if eval test \${$cacheid+y}
17945then :
17946  printf %s "(cached) " >&6
17947else $as_nop
17948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949/* end confdefs.h.  */
17950int i;
17951int
17952main (void)
17953{
17954
17955  ;
17956  return 0;
17957}
17958_ACEOF
17959if ac_fn_c_try_link "$LINENO"
17960then :
17961  eval $cacheid=yes
17962else $as_nop
17963  eval $cacheid=no
17964fi
17965rm -f core conftest.err conftest.$ac_objext conftest.beam \
17966    conftest$ac_exeext conftest.$ac_ext
17967fi
17968
17969
17970		CFLAGS="$xorg_testset_save_CFLAGS"
17971
17972		eval supported=\$$cacheid
17973		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17974printf "%s\n" "$supported" >&6; }
17975		if test "$supported" = "yes" ; then
17976			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17977			found="yes"
17978		fi
17979	fi
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995xorg_testset_save_CFLAGS="$CFLAGS"
17996
17997if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17998	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17999	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18000printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18001if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18002then :
18003  printf %s "(cached) " >&6
18004else $as_nop
18005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h.  */
18007int i;
18008_ACEOF
18009if ac_fn_c_try_compile "$LINENO"
18010then :
18011  xorg_cv_cc_flag_unknown_warning_option=yes
18012else $as_nop
18013  xorg_cv_cc_flag_unknown_warning_option=no
18014fi
18015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18016fi
18017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18018printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18019	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18020	CFLAGS="$xorg_testset_save_CFLAGS"
18021fi
18022
18023if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18024	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18025		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18026	fi
18027	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18028	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18029printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18030if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18031then :
18032  printf %s "(cached) " >&6
18033else $as_nop
18034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035/* end confdefs.h.  */
18036int i;
18037_ACEOF
18038if ac_fn_c_try_compile "$LINENO"
18039then :
18040  xorg_cv_cc_flag_unused_command_line_argument=yes
18041else $as_nop
18042  xorg_cv_cc_flag_unused_command_line_argument=no
18043fi
18044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18045fi
18046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18049	CFLAGS="$xorg_testset_save_CFLAGS"
18050fi
18051
18052found="no"
18053
18054	if test $found = "no" ; then
18055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18057		fi
18058
18059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18061		fi
18062
18063		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
18064
18065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
18066printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
18067		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
18068		if eval test \${$cacheid+y}
18069then :
18070  printf %s "(cached) " >&6
18071else $as_nop
18072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18073/* end confdefs.h.  */
18074int i;
18075int
18076main (void)
18077{
18078
18079  ;
18080  return 0;
18081}
18082_ACEOF
18083if ac_fn_c_try_link "$LINENO"
18084then :
18085  eval $cacheid=yes
18086else $as_nop
18087  eval $cacheid=no
18088fi
18089rm -f core conftest.err conftest.$ac_objext conftest.beam \
18090    conftest$ac_exeext conftest.$ac_ext
18091fi
18092
18093
18094		CFLAGS="$xorg_testset_save_CFLAGS"
18095
18096		eval supported=\$$cacheid
18097		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18098printf "%s\n" "$supported" >&6; }
18099		if test "$supported" = "yes" ; then
18100			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
18101			found="yes"
18102		fi
18103	fi
18104
18105	if test $found = "no" ; then
18106		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18107			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18108		fi
18109
18110		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18111			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18112		fi
18113
18114		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18115
18116		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
18117printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
18118		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
18119		if eval test \${$cacheid+y}
18120then :
18121  printf %s "(cached) " >&6
18122else $as_nop
18123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18124/* end confdefs.h.  */
18125int i;
18126int
18127main (void)
18128{
18129
18130  ;
18131  return 0;
18132}
18133_ACEOF
18134if ac_fn_c_try_link "$LINENO"
18135then :
18136  eval $cacheid=yes
18137else $as_nop
18138  eval $cacheid=no
18139fi
18140rm -f core conftest.err conftest.$ac_objext conftest.beam \
18141    conftest$ac_exeext conftest.$ac_ext
18142fi
18143
18144
18145		CFLAGS="$xorg_testset_save_CFLAGS"
18146
18147		eval supported=\$$cacheid
18148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18149printf "%s\n" "$supported" >&6; }
18150		if test "$supported" = "yes" ; then
18151			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18152			found="yes"
18153		fi
18154	fi
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170xorg_testset_save_CFLAGS="$CFLAGS"
18171
18172if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18173	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18174	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18175printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18176if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18177then :
18178  printf %s "(cached) " >&6
18179else $as_nop
18180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h.  */
18182int i;
18183_ACEOF
18184if ac_fn_c_try_compile "$LINENO"
18185then :
18186  xorg_cv_cc_flag_unknown_warning_option=yes
18187else $as_nop
18188  xorg_cv_cc_flag_unknown_warning_option=no
18189fi
18190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18191fi
18192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18193printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18194	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18195	CFLAGS="$xorg_testset_save_CFLAGS"
18196fi
18197
18198if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18199	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18200		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18201	fi
18202	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18204printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18205if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18206then :
18207  printf %s "(cached) " >&6
18208else $as_nop
18209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210/* end confdefs.h.  */
18211int i;
18212_ACEOF
18213if ac_fn_c_try_compile "$LINENO"
18214then :
18215  xorg_cv_cc_flag_unused_command_line_argument=yes
18216else $as_nop
18217  xorg_cv_cc_flag_unused_command_line_argument=no
18218fi
18219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18220fi
18221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18222printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18223	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18224	CFLAGS="$xorg_testset_save_CFLAGS"
18225fi
18226
18227found="no"
18228
18229	if test $found = "no" ; then
18230		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18231			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18232		fi
18233
18234		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18235			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18236		fi
18237
18238		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18239
18240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18241printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18242		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18243		if eval test \${$cacheid+y}
18244then :
18245  printf %s "(cached) " >&6
18246else $as_nop
18247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248/* end confdefs.h.  */
18249int i;
18250int
18251main (void)
18252{
18253
18254  ;
18255  return 0;
18256}
18257_ACEOF
18258if ac_fn_c_try_link "$LINENO"
18259then :
18260  eval $cacheid=yes
18261else $as_nop
18262  eval $cacheid=no
18263fi
18264rm -f core conftest.err conftest.$ac_objext conftest.beam \
18265    conftest$ac_exeext conftest.$ac_ext
18266fi
18267
18268
18269		CFLAGS="$xorg_testset_save_CFLAGS"
18270
18271		eval supported=\$$cacheid
18272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18273printf "%s\n" "$supported" >&6; }
18274		if test "$supported" = "yes" ; then
18275			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18276			found="yes"
18277		fi
18278	fi
18279
18280 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18281else
18282{ 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
18283printf "%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;}
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297xorg_testset_save_CFLAGS="$CFLAGS"
18298
18299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18303if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18304then :
18305  printf %s "(cached) " >&6
18306else $as_nop
18307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18308/* end confdefs.h.  */
18309int i;
18310_ACEOF
18311if ac_fn_c_try_compile "$LINENO"
18312then :
18313  xorg_cv_cc_flag_unknown_warning_option=yes
18314else $as_nop
18315  xorg_cv_cc_flag_unknown_warning_option=no
18316fi
18317rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18318fi
18319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18320printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18321	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18322	CFLAGS="$xorg_testset_save_CFLAGS"
18323fi
18324
18325if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18326	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18327		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18328	fi
18329	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18331printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18332if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18333then :
18334  printf %s "(cached) " >&6
18335else $as_nop
18336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337/* end confdefs.h.  */
18338int i;
18339_ACEOF
18340if ac_fn_c_try_compile "$LINENO"
18341then :
18342  xorg_cv_cc_flag_unused_command_line_argument=yes
18343else $as_nop
18344  xorg_cv_cc_flag_unused_command_line_argument=no
18345fi
18346rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18347fi
18348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18349printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18351	CFLAGS="$xorg_testset_save_CFLAGS"
18352fi
18353
18354found="no"
18355
18356	if test $found = "no" ; then
18357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18359		fi
18360
18361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18363		fi
18364
18365		CFLAGS="$CFLAGS -Wimplicit"
18366
18367		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18368printf %s "checking if $CC supports -Wimplicit... " >&6; }
18369		cacheid=xorg_cv_cc_flag__Wimplicit
18370		if eval test \${$cacheid+y}
18371then :
18372  printf %s "(cached) " >&6
18373else $as_nop
18374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375/* end confdefs.h.  */
18376int i;
18377int
18378main (void)
18379{
18380
18381  ;
18382  return 0;
18383}
18384_ACEOF
18385if ac_fn_c_try_link "$LINENO"
18386then :
18387  eval $cacheid=yes
18388else $as_nop
18389  eval $cacheid=no
18390fi
18391rm -f core conftest.err conftest.$ac_objext conftest.beam \
18392    conftest$ac_exeext conftest.$ac_ext
18393fi
18394
18395
18396		CFLAGS="$xorg_testset_save_CFLAGS"
18397
18398		eval supported=\$$cacheid
18399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18400printf "%s\n" "$supported" >&6; }
18401		if test "$supported" = "yes" ; then
18402			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18403			found="yes"
18404		fi
18405	fi
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421xorg_testset_save_CFLAGS="$CFLAGS"
18422
18423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18427if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18428then :
18429  printf %s "(cached) " >&6
18430else $as_nop
18431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432/* end confdefs.h.  */
18433int i;
18434_ACEOF
18435if ac_fn_c_try_compile "$LINENO"
18436then :
18437  xorg_cv_cc_flag_unknown_warning_option=yes
18438else $as_nop
18439  xorg_cv_cc_flag_unknown_warning_option=no
18440fi
18441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18442fi
18443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18444printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18446	CFLAGS="$xorg_testset_save_CFLAGS"
18447fi
18448
18449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18452	fi
18453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18455printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18456if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18457then :
18458  printf %s "(cached) " >&6
18459else $as_nop
18460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461/* end confdefs.h.  */
18462int i;
18463_ACEOF
18464if ac_fn_c_try_compile "$LINENO"
18465then :
18466  xorg_cv_cc_flag_unused_command_line_argument=yes
18467else $as_nop
18468  xorg_cv_cc_flag_unused_command_line_argument=no
18469fi
18470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18471fi
18472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18473printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18475	CFLAGS="$xorg_testset_save_CFLAGS"
18476fi
18477
18478found="no"
18479
18480	if test $found = "no" ; then
18481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18483		fi
18484
18485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18487		fi
18488
18489		CFLAGS="$CFLAGS -Wnonnull"
18490
18491		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18492printf %s "checking if $CC supports -Wnonnull... " >&6; }
18493		cacheid=xorg_cv_cc_flag__Wnonnull
18494		if eval test \${$cacheid+y}
18495then :
18496  printf %s "(cached) " >&6
18497else $as_nop
18498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18499/* end confdefs.h.  */
18500int i;
18501int
18502main (void)
18503{
18504
18505  ;
18506  return 0;
18507}
18508_ACEOF
18509if ac_fn_c_try_link "$LINENO"
18510then :
18511  eval $cacheid=yes
18512else $as_nop
18513  eval $cacheid=no
18514fi
18515rm -f core conftest.err conftest.$ac_objext conftest.beam \
18516    conftest$ac_exeext conftest.$ac_ext
18517fi
18518
18519
18520		CFLAGS="$xorg_testset_save_CFLAGS"
18521
18522		eval supported=\$$cacheid
18523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18524printf "%s\n" "$supported" >&6; }
18525		if test "$supported" = "yes" ; then
18526			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18527			found="yes"
18528		fi
18529	fi
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545xorg_testset_save_CFLAGS="$CFLAGS"
18546
18547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18551if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18552then :
18553  printf %s "(cached) " >&6
18554else $as_nop
18555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18556/* end confdefs.h.  */
18557int i;
18558_ACEOF
18559if ac_fn_c_try_compile "$LINENO"
18560then :
18561  xorg_cv_cc_flag_unknown_warning_option=yes
18562else $as_nop
18563  xorg_cv_cc_flag_unknown_warning_option=no
18564fi
18565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18566fi
18567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18568printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18570	CFLAGS="$xorg_testset_save_CFLAGS"
18571fi
18572
18573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18576	fi
18577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18578	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18579printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18580if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18581then :
18582  printf %s "(cached) " >&6
18583else $as_nop
18584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585/* end confdefs.h.  */
18586int i;
18587_ACEOF
18588if ac_fn_c_try_compile "$LINENO"
18589then :
18590  xorg_cv_cc_flag_unused_command_line_argument=yes
18591else $as_nop
18592  xorg_cv_cc_flag_unused_command_line_argument=no
18593fi
18594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18595fi
18596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18597printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18599	CFLAGS="$xorg_testset_save_CFLAGS"
18600fi
18601
18602found="no"
18603
18604	if test $found = "no" ; then
18605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18607		fi
18608
18609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18611		fi
18612
18613		CFLAGS="$CFLAGS -Winit-self"
18614
18615		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18616printf %s "checking if $CC supports -Winit-self... " >&6; }
18617		cacheid=xorg_cv_cc_flag__Winit_self
18618		if eval test \${$cacheid+y}
18619then :
18620  printf %s "(cached) " >&6
18621else $as_nop
18622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18623/* end confdefs.h.  */
18624int i;
18625int
18626main (void)
18627{
18628
18629  ;
18630  return 0;
18631}
18632_ACEOF
18633if ac_fn_c_try_link "$LINENO"
18634then :
18635  eval $cacheid=yes
18636else $as_nop
18637  eval $cacheid=no
18638fi
18639rm -f core conftest.err conftest.$ac_objext conftest.beam \
18640    conftest$ac_exeext conftest.$ac_ext
18641fi
18642
18643
18644		CFLAGS="$xorg_testset_save_CFLAGS"
18645
18646		eval supported=\$$cacheid
18647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18648printf "%s\n" "$supported" >&6; }
18649		if test "$supported" = "yes" ; then
18650			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18651			found="yes"
18652		fi
18653	fi
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669xorg_testset_save_CFLAGS="$CFLAGS"
18670
18671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18675if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18676then :
18677  printf %s "(cached) " >&6
18678else $as_nop
18679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680/* end confdefs.h.  */
18681int i;
18682_ACEOF
18683if ac_fn_c_try_compile "$LINENO"
18684then :
18685  xorg_cv_cc_flag_unknown_warning_option=yes
18686else $as_nop
18687  xorg_cv_cc_flag_unknown_warning_option=no
18688fi
18689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18690fi
18691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18692printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18693	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18694	CFLAGS="$xorg_testset_save_CFLAGS"
18695fi
18696
18697if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18698	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18699		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18700	fi
18701	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18702	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18703printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18704if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18705then :
18706  printf %s "(cached) " >&6
18707else $as_nop
18708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18709/* end confdefs.h.  */
18710int i;
18711_ACEOF
18712if ac_fn_c_try_compile "$LINENO"
18713then :
18714  xorg_cv_cc_flag_unused_command_line_argument=yes
18715else $as_nop
18716  xorg_cv_cc_flag_unused_command_line_argument=no
18717fi
18718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18719fi
18720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18721printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18723	CFLAGS="$xorg_testset_save_CFLAGS"
18724fi
18725
18726found="no"
18727
18728	if test $found = "no" ; then
18729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18731		fi
18732
18733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18735		fi
18736
18737		CFLAGS="$CFLAGS -Wmain"
18738
18739		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18740printf %s "checking if $CC supports -Wmain... " >&6; }
18741		cacheid=xorg_cv_cc_flag__Wmain
18742		if eval test \${$cacheid+y}
18743then :
18744  printf %s "(cached) " >&6
18745else $as_nop
18746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747/* end confdefs.h.  */
18748int i;
18749int
18750main (void)
18751{
18752
18753  ;
18754  return 0;
18755}
18756_ACEOF
18757if ac_fn_c_try_link "$LINENO"
18758then :
18759  eval $cacheid=yes
18760else $as_nop
18761  eval $cacheid=no
18762fi
18763rm -f core conftest.err conftest.$ac_objext conftest.beam \
18764    conftest$ac_exeext conftest.$ac_ext
18765fi
18766
18767
18768		CFLAGS="$xorg_testset_save_CFLAGS"
18769
18770		eval supported=\$$cacheid
18771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18772printf "%s\n" "$supported" >&6; }
18773		if test "$supported" = "yes" ; then
18774			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18775			found="yes"
18776		fi
18777	fi
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793xorg_testset_save_CFLAGS="$CFLAGS"
18794
18795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18798printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18799if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18800then :
18801  printf %s "(cached) " >&6
18802else $as_nop
18803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18804/* end confdefs.h.  */
18805int i;
18806_ACEOF
18807if ac_fn_c_try_compile "$LINENO"
18808then :
18809  xorg_cv_cc_flag_unknown_warning_option=yes
18810else $as_nop
18811  xorg_cv_cc_flag_unknown_warning_option=no
18812fi
18813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18814fi
18815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18816printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18818	CFLAGS="$xorg_testset_save_CFLAGS"
18819fi
18820
18821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18824	fi
18825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18826	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18827printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18828if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18829then :
18830  printf %s "(cached) " >&6
18831else $as_nop
18832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18833/* end confdefs.h.  */
18834int i;
18835_ACEOF
18836if ac_fn_c_try_compile "$LINENO"
18837then :
18838  xorg_cv_cc_flag_unused_command_line_argument=yes
18839else $as_nop
18840  xorg_cv_cc_flag_unused_command_line_argument=no
18841fi
18842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18843fi
18844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18845printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18846	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18847	CFLAGS="$xorg_testset_save_CFLAGS"
18848fi
18849
18850found="no"
18851
18852	if test $found = "no" ; then
18853		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18854			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18855		fi
18856
18857		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18858			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18859		fi
18860
18861		CFLAGS="$CFLAGS -Wmissing-braces"
18862
18863		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18864printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18865		cacheid=xorg_cv_cc_flag__Wmissing_braces
18866		if eval test \${$cacheid+y}
18867then :
18868  printf %s "(cached) " >&6
18869else $as_nop
18870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h.  */
18872int i;
18873int
18874main (void)
18875{
18876
18877  ;
18878  return 0;
18879}
18880_ACEOF
18881if ac_fn_c_try_link "$LINENO"
18882then :
18883  eval $cacheid=yes
18884else $as_nop
18885  eval $cacheid=no
18886fi
18887rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888    conftest$ac_exeext conftest.$ac_ext
18889fi
18890
18891
18892		CFLAGS="$xorg_testset_save_CFLAGS"
18893
18894		eval supported=\$$cacheid
18895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18896printf "%s\n" "$supported" >&6; }
18897		if test "$supported" = "yes" ; then
18898			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18899			found="yes"
18900		fi
18901	fi
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917xorg_testset_save_CFLAGS="$CFLAGS"
18918
18919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18922printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18923if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18924then :
18925  printf %s "(cached) " >&6
18926else $as_nop
18927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928/* end confdefs.h.  */
18929int i;
18930_ACEOF
18931if ac_fn_c_try_compile "$LINENO"
18932then :
18933  xorg_cv_cc_flag_unknown_warning_option=yes
18934else $as_nop
18935  xorg_cv_cc_flag_unknown_warning_option=no
18936fi
18937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18938fi
18939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18940printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18942	CFLAGS="$xorg_testset_save_CFLAGS"
18943fi
18944
18945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18948	fi
18949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18950	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18951printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18952if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18953then :
18954  printf %s "(cached) " >&6
18955else $as_nop
18956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957/* end confdefs.h.  */
18958int i;
18959_ACEOF
18960if ac_fn_c_try_compile "$LINENO"
18961then :
18962  xorg_cv_cc_flag_unused_command_line_argument=yes
18963else $as_nop
18964  xorg_cv_cc_flag_unused_command_line_argument=no
18965fi
18966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18967fi
18968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18969printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18971	CFLAGS="$xorg_testset_save_CFLAGS"
18972fi
18973
18974found="no"
18975
18976	if test $found = "no" ; then
18977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18979		fi
18980
18981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18983		fi
18984
18985		CFLAGS="$CFLAGS -Wsequence-point"
18986
18987		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18988printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18989		cacheid=xorg_cv_cc_flag__Wsequence_point
18990		if eval test \${$cacheid+y}
18991then :
18992  printf %s "(cached) " >&6
18993else $as_nop
18994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995/* end confdefs.h.  */
18996int i;
18997int
18998main (void)
18999{
19000
19001  ;
19002  return 0;
19003}
19004_ACEOF
19005if ac_fn_c_try_link "$LINENO"
19006then :
19007  eval $cacheid=yes
19008else $as_nop
19009  eval $cacheid=no
19010fi
19011rm -f core conftest.err conftest.$ac_objext conftest.beam \
19012    conftest$ac_exeext conftest.$ac_ext
19013fi
19014
19015
19016		CFLAGS="$xorg_testset_save_CFLAGS"
19017
19018		eval supported=\$$cacheid
19019		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19020printf "%s\n" "$supported" >&6; }
19021		if test "$supported" = "yes" ; then
19022			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
19023			found="yes"
19024		fi
19025	fi
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041xorg_testset_save_CFLAGS="$CFLAGS"
19042
19043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19044	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19046printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19047if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19048then :
19049  printf %s "(cached) " >&6
19050else $as_nop
19051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052/* end confdefs.h.  */
19053int i;
19054_ACEOF
19055if ac_fn_c_try_compile "$LINENO"
19056then :
19057  xorg_cv_cc_flag_unknown_warning_option=yes
19058else $as_nop
19059  xorg_cv_cc_flag_unknown_warning_option=no
19060fi
19061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19062fi
19063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19064printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19065	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19066	CFLAGS="$xorg_testset_save_CFLAGS"
19067fi
19068
19069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19070	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19071		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19072	fi
19073	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19074	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19075printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19076if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19077then :
19078  printf %s "(cached) " >&6
19079else $as_nop
19080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081/* end confdefs.h.  */
19082int i;
19083_ACEOF
19084if ac_fn_c_try_compile "$LINENO"
19085then :
19086  xorg_cv_cc_flag_unused_command_line_argument=yes
19087else $as_nop
19088  xorg_cv_cc_flag_unused_command_line_argument=no
19089fi
19090rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19091fi
19092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19095	CFLAGS="$xorg_testset_save_CFLAGS"
19096fi
19097
19098found="no"
19099
19100	if test $found = "no" ; then
19101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19103		fi
19104
19105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19107		fi
19108
19109		CFLAGS="$CFLAGS -Wreturn-type"
19110
19111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19112printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19113		cacheid=xorg_cv_cc_flag__Wreturn_type
19114		if eval test \${$cacheid+y}
19115then :
19116  printf %s "(cached) " >&6
19117else $as_nop
19118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19119/* end confdefs.h.  */
19120int i;
19121int
19122main (void)
19123{
19124
19125  ;
19126  return 0;
19127}
19128_ACEOF
19129if ac_fn_c_try_link "$LINENO"
19130then :
19131  eval $cacheid=yes
19132else $as_nop
19133  eval $cacheid=no
19134fi
19135rm -f core conftest.err conftest.$ac_objext conftest.beam \
19136    conftest$ac_exeext conftest.$ac_ext
19137fi
19138
19139
19140		CFLAGS="$xorg_testset_save_CFLAGS"
19141
19142		eval supported=\$$cacheid
19143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19144printf "%s\n" "$supported" >&6; }
19145		if test "$supported" = "yes" ; then
19146			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19147			found="yes"
19148		fi
19149	fi
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165xorg_testset_save_CFLAGS="$CFLAGS"
19166
19167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19172then :
19173  printf %s "(cached) " >&6
19174else $as_nop
19175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176/* end confdefs.h.  */
19177int i;
19178_ACEOF
19179if ac_fn_c_try_compile "$LINENO"
19180then :
19181  xorg_cv_cc_flag_unknown_warning_option=yes
19182else $as_nop
19183  xorg_cv_cc_flag_unknown_warning_option=no
19184fi
19185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19186fi
19187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19190	CFLAGS="$xorg_testset_save_CFLAGS"
19191fi
19192
19193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19196	fi
19197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19200if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19201then :
19202  printf %s "(cached) " >&6
19203else $as_nop
19204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19205/* end confdefs.h.  */
19206int i;
19207_ACEOF
19208if ac_fn_c_try_compile "$LINENO"
19209then :
19210  xorg_cv_cc_flag_unused_command_line_argument=yes
19211else $as_nop
19212  xorg_cv_cc_flag_unused_command_line_argument=no
19213fi
19214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19215fi
19216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19219	CFLAGS="$xorg_testset_save_CFLAGS"
19220fi
19221
19222found="no"
19223
19224	if test $found = "no" ; then
19225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19227		fi
19228
19229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19231		fi
19232
19233		CFLAGS="$CFLAGS -Wtrigraphs"
19234
19235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19236printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19237		cacheid=xorg_cv_cc_flag__Wtrigraphs
19238		if eval test \${$cacheid+y}
19239then :
19240  printf %s "(cached) " >&6
19241else $as_nop
19242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19243/* end confdefs.h.  */
19244int i;
19245int
19246main (void)
19247{
19248
19249  ;
19250  return 0;
19251}
19252_ACEOF
19253if ac_fn_c_try_link "$LINENO"
19254then :
19255  eval $cacheid=yes
19256else $as_nop
19257  eval $cacheid=no
19258fi
19259rm -f core conftest.err conftest.$ac_objext conftest.beam \
19260    conftest$ac_exeext conftest.$ac_ext
19261fi
19262
19263
19264		CFLAGS="$xorg_testset_save_CFLAGS"
19265
19266		eval supported=\$$cacheid
19267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19268printf "%s\n" "$supported" >&6; }
19269		if test "$supported" = "yes" ; then
19270			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19271			found="yes"
19272		fi
19273	fi
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289xorg_testset_save_CFLAGS="$CFLAGS"
19290
19291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19295if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19296then :
19297  printf %s "(cached) " >&6
19298else $as_nop
19299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300/* end confdefs.h.  */
19301int i;
19302_ACEOF
19303if ac_fn_c_try_compile "$LINENO"
19304then :
19305  xorg_cv_cc_flag_unknown_warning_option=yes
19306else $as_nop
19307  xorg_cv_cc_flag_unknown_warning_option=no
19308fi
19309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19310fi
19311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19314	CFLAGS="$xorg_testset_save_CFLAGS"
19315fi
19316
19317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19320	fi
19321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19325then :
19326  printf %s "(cached) " >&6
19327else $as_nop
19328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19329/* end confdefs.h.  */
19330int i;
19331_ACEOF
19332if ac_fn_c_try_compile "$LINENO"
19333then :
19334  xorg_cv_cc_flag_unused_command_line_argument=yes
19335else $as_nop
19336  xorg_cv_cc_flag_unused_command_line_argument=no
19337fi
19338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19339fi
19340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19343	CFLAGS="$xorg_testset_save_CFLAGS"
19344fi
19345
19346found="no"
19347
19348	if test $found = "no" ; then
19349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19351		fi
19352
19353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19355		fi
19356
19357		CFLAGS="$CFLAGS -Warray-bounds"
19358
19359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19360printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19361		cacheid=xorg_cv_cc_flag__Warray_bounds
19362		if eval test \${$cacheid+y}
19363then :
19364  printf %s "(cached) " >&6
19365else $as_nop
19366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19367/* end confdefs.h.  */
19368int i;
19369int
19370main (void)
19371{
19372
19373  ;
19374  return 0;
19375}
19376_ACEOF
19377if ac_fn_c_try_link "$LINENO"
19378then :
19379  eval $cacheid=yes
19380else $as_nop
19381  eval $cacheid=no
19382fi
19383rm -f core conftest.err conftest.$ac_objext conftest.beam \
19384    conftest$ac_exeext conftest.$ac_ext
19385fi
19386
19387
19388		CFLAGS="$xorg_testset_save_CFLAGS"
19389
19390		eval supported=\$$cacheid
19391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19392printf "%s\n" "$supported" >&6; }
19393		if test "$supported" = "yes" ; then
19394			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19395			found="yes"
19396		fi
19397	fi
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413xorg_testset_save_CFLAGS="$CFLAGS"
19414
19415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19419if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19420then :
19421  printf %s "(cached) " >&6
19422else $as_nop
19423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424/* end confdefs.h.  */
19425int i;
19426_ACEOF
19427if ac_fn_c_try_compile "$LINENO"
19428then :
19429  xorg_cv_cc_flag_unknown_warning_option=yes
19430else $as_nop
19431  xorg_cv_cc_flag_unknown_warning_option=no
19432fi
19433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19434fi
19435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19438	CFLAGS="$xorg_testset_save_CFLAGS"
19439fi
19440
19441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19444	fi
19445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19448if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19449then :
19450  printf %s "(cached) " >&6
19451else $as_nop
19452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19453/* end confdefs.h.  */
19454int i;
19455_ACEOF
19456if ac_fn_c_try_compile "$LINENO"
19457then :
19458  xorg_cv_cc_flag_unused_command_line_argument=yes
19459else $as_nop
19460  xorg_cv_cc_flag_unused_command_line_argument=no
19461fi
19462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19463fi
19464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19467	CFLAGS="$xorg_testset_save_CFLAGS"
19468fi
19469
19470found="no"
19471
19472	if test $found = "no" ; then
19473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19475		fi
19476
19477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19479		fi
19480
19481		CFLAGS="$CFLAGS -Wwrite-strings"
19482
19483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19484printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19485		cacheid=xorg_cv_cc_flag__Wwrite_strings
19486		if eval test \${$cacheid+y}
19487then :
19488  printf %s "(cached) " >&6
19489else $as_nop
19490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19491/* end confdefs.h.  */
19492int i;
19493int
19494main (void)
19495{
19496
19497  ;
19498  return 0;
19499}
19500_ACEOF
19501if ac_fn_c_try_link "$LINENO"
19502then :
19503  eval $cacheid=yes
19504else $as_nop
19505  eval $cacheid=no
19506fi
19507rm -f core conftest.err conftest.$ac_objext conftest.beam \
19508    conftest$ac_exeext conftest.$ac_ext
19509fi
19510
19511
19512		CFLAGS="$xorg_testset_save_CFLAGS"
19513
19514		eval supported=\$$cacheid
19515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19516printf "%s\n" "$supported" >&6; }
19517		if test "$supported" = "yes" ; then
19518			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19519			found="yes"
19520		fi
19521	fi
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537xorg_testset_save_CFLAGS="$CFLAGS"
19538
19539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19543if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19544then :
19545  printf %s "(cached) " >&6
19546else $as_nop
19547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548/* end confdefs.h.  */
19549int i;
19550_ACEOF
19551if ac_fn_c_try_compile "$LINENO"
19552then :
19553  xorg_cv_cc_flag_unknown_warning_option=yes
19554else $as_nop
19555  xorg_cv_cc_flag_unknown_warning_option=no
19556fi
19557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19558fi
19559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19562	CFLAGS="$xorg_testset_save_CFLAGS"
19563fi
19564
19565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19568	fi
19569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19572if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19573then :
19574  printf %s "(cached) " >&6
19575else $as_nop
19576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19577/* end confdefs.h.  */
19578int i;
19579_ACEOF
19580if ac_fn_c_try_compile "$LINENO"
19581then :
19582  xorg_cv_cc_flag_unused_command_line_argument=yes
19583else $as_nop
19584  xorg_cv_cc_flag_unused_command_line_argument=no
19585fi
19586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19587fi
19588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19591	CFLAGS="$xorg_testset_save_CFLAGS"
19592fi
19593
19594found="no"
19595
19596	if test $found = "no" ; then
19597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19599		fi
19600
19601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19603		fi
19604
19605		CFLAGS="$CFLAGS -Waddress"
19606
19607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19608printf %s "checking if $CC supports -Waddress... " >&6; }
19609		cacheid=xorg_cv_cc_flag__Waddress
19610		if eval test \${$cacheid+y}
19611then :
19612  printf %s "(cached) " >&6
19613else $as_nop
19614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615/* end confdefs.h.  */
19616int i;
19617int
19618main (void)
19619{
19620
19621  ;
19622  return 0;
19623}
19624_ACEOF
19625if ac_fn_c_try_link "$LINENO"
19626then :
19627  eval $cacheid=yes
19628else $as_nop
19629  eval $cacheid=no
19630fi
19631rm -f core conftest.err conftest.$ac_objext conftest.beam \
19632    conftest$ac_exeext conftest.$ac_ext
19633fi
19634
19635
19636		CFLAGS="$xorg_testset_save_CFLAGS"
19637
19638		eval supported=\$$cacheid
19639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19640printf "%s\n" "$supported" >&6; }
19641		if test "$supported" = "yes" ; then
19642			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19643			found="yes"
19644		fi
19645	fi
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661xorg_testset_save_CFLAGS="$CFLAGS"
19662
19663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19667if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19668then :
19669  printf %s "(cached) " >&6
19670else $as_nop
19671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672/* end confdefs.h.  */
19673int i;
19674_ACEOF
19675if ac_fn_c_try_compile "$LINENO"
19676then :
19677  xorg_cv_cc_flag_unknown_warning_option=yes
19678else $as_nop
19679  xorg_cv_cc_flag_unknown_warning_option=no
19680fi
19681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19682fi
19683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19686	CFLAGS="$xorg_testset_save_CFLAGS"
19687fi
19688
19689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19692	fi
19693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19696if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19697then :
19698  printf %s "(cached) " >&6
19699else $as_nop
19700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19701/* end confdefs.h.  */
19702int i;
19703_ACEOF
19704if ac_fn_c_try_compile "$LINENO"
19705then :
19706  xorg_cv_cc_flag_unused_command_line_argument=yes
19707else $as_nop
19708  xorg_cv_cc_flag_unused_command_line_argument=no
19709fi
19710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19711fi
19712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19715	CFLAGS="$xorg_testset_save_CFLAGS"
19716fi
19717
19718found="no"
19719
19720	if test $found = "no" ; then
19721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19723		fi
19724
19725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19727		fi
19728
19729		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19730
19731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19732printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19733		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19734		if eval test \${$cacheid+y}
19735then :
19736  printf %s "(cached) " >&6
19737else $as_nop
19738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739/* end confdefs.h.  */
19740int i;
19741int
19742main (void)
19743{
19744
19745  ;
19746  return 0;
19747}
19748_ACEOF
19749if ac_fn_c_try_link "$LINENO"
19750then :
19751  eval $cacheid=yes
19752else $as_nop
19753  eval $cacheid=no
19754fi
19755rm -f core conftest.err conftest.$ac_objext conftest.beam \
19756    conftest$ac_exeext conftest.$ac_ext
19757fi
19758
19759
19760		CFLAGS="$xorg_testset_save_CFLAGS"
19761
19762		eval supported=\$$cacheid
19763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19764printf "%s\n" "$supported" >&6; }
19765		if test "$supported" = "yes" ; then
19766			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19767			found="yes"
19768		fi
19769	fi
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785xorg_testset_save_CFLAGS="$CFLAGS"
19786
19787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19789	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19790printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19791if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19792then :
19793  printf %s "(cached) " >&6
19794else $as_nop
19795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796/* end confdefs.h.  */
19797int i;
19798_ACEOF
19799if ac_fn_c_try_compile "$LINENO"
19800then :
19801  xorg_cv_cc_flag_unknown_warning_option=yes
19802else $as_nop
19803  xorg_cv_cc_flag_unknown_warning_option=no
19804fi
19805rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19806fi
19807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19810	CFLAGS="$xorg_testset_save_CFLAGS"
19811fi
19812
19813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19816	fi
19817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19820if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19821then :
19822  printf %s "(cached) " >&6
19823else $as_nop
19824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825/* end confdefs.h.  */
19826int i;
19827_ACEOF
19828if ac_fn_c_try_compile "$LINENO"
19829then :
19830  xorg_cv_cc_flag_unused_command_line_argument=yes
19831else $as_nop
19832  xorg_cv_cc_flag_unused_command_line_argument=no
19833fi
19834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19835fi
19836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19837printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19838	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19839	CFLAGS="$xorg_testset_save_CFLAGS"
19840fi
19841
19842found="no"
19843
19844	if test $found = "no" ; then
19845		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19846			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19847		fi
19848
19849		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19850			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19851		fi
19852
19853		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19854
19855		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19856printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19857		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19858		if eval test \${$cacheid+y}
19859then :
19860  printf %s "(cached) " >&6
19861else $as_nop
19862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863/* end confdefs.h.  */
19864int i;
19865int
19866main (void)
19867{
19868
19869  ;
19870  return 0;
19871}
19872_ACEOF
19873if ac_fn_c_try_link "$LINENO"
19874then :
19875  eval $cacheid=yes
19876else $as_nop
19877  eval $cacheid=no
19878fi
19879rm -f core conftest.err conftest.$ac_objext conftest.beam \
19880    conftest$ac_exeext conftest.$ac_ext
19881fi
19882
19883
19884		CFLAGS="$xorg_testset_save_CFLAGS"
19885
19886		eval supported=\$$cacheid
19887		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19888printf "%s\n" "$supported" >&6; }
19889		if test "$supported" = "yes" ; then
19890			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19891			found="yes"
19892		fi
19893	fi
19894
19895
19896fi
19897
19898
19899
19900
19901
19902
19903
19904		CWARNFLAGS="$BASE_CFLAGS"
19905		if  test "x$GCC" = xyes ; then
19906		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19907		fi
19908
19909
19910
19911
19912
19913
19914
19915
19916# Check whether --enable-strict-compilation was given.
19917if test ${enable_strict_compilation+y}
19918then :
19919  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19920else $as_nop
19921  STRICT_COMPILE=no
19922fi
19923
19924
19925
19926
19927
19928
19929STRICT_CFLAGS=""
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943xorg_testset_save_CFLAGS="$CFLAGS"
19944
19945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19946	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19947	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19948printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19949if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19950then :
19951  printf %s "(cached) " >&6
19952else $as_nop
19953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954/* end confdefs.h.  */
19955int i;
19956_ACEOF
19957if ac_fn_c_try_compile "$LINENO"
19958then :
19959  xorg_cv_cc_flag_unknown_warning_option=yes
19960else $as_nop
19961  xorg_cv_cc_flag_unknown_warning_option=no
19962fi
19963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19964fi
19965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19966printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19968	CFLAGS="$xorg_testset_save_CFLAGS"
19969fi
19970
19971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19974	fi
19975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19976	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19977printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19978if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19979then :
19980  printf %s "(cached) " >&6
19981else $as_nop
19982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983/* end confdefs.h.  */
19984int i;
19985_ACEOF
19986if ac_fn_c_try_compile "$LINENO"
19987then :
19988  xorg_cv_cc_flag_unused_command_line_argument=yes
19989else $as_nop
19990  xorg_cv_cc_flag_unused_command_line_argument=no
19991fi
19992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19993fi
19994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19995printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19997	CFLAGS="$xorg_testset_save_CFLAGS"
19998fi
19999
20000found="no"
20001
20002	if test $found = "no" ; then
20003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20005		fi
20006
20007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20009		fi
20010
20011		CFLAGS="$CFLAGS -pedantic"
20012
20013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
20014printf %s "checking if $CC supports -pedantic... " >&6; }
20015		cacheid=xorg_cv_cc_flag__pedantic
20016		if eval test \${$cacheid+y}
20017then :
20018  printf %s "(cached) " >&6
20019else $as_nop
20020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20021/* end confdefs.h.  */
20022int i;
20023int
20024main (void)
20025{
20026
20027  ;
20028  return 0;
20029}
20030_ACEOF
20031if ac_fn_c_try_link "$LINENO"
20032then :
20033  eval $cacheid=yes
20034else $as_nop
20035  eval $cacheid=no
20036fi
20037rm -f core conftest.err conftest.$ac_objext conftest.beam \
20038    conftest$ac_exeext conftest.$ac_ext
20039fi
20040
20041
20042		CFLAGS="$xorg_testset_save_CFLAGS"
20043
20044		eval supported=\$$cacheid
20045		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20046printf "%s\n" "$supported" >&6; }
20047		if test "$supported" = "yes" ; then
20048			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20049			found="yes"
20050		fi
20051	fi
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067xorg_testset_save_CFLAGS="$CFLAGS"
20068
20069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20071	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20072printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20073if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20074then :
20075  printf %s "(cached) " >&6
20076else $as_nop
20077  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078/* end confdefs.h.  */
20079int i;
20080_ACEOF
20081if ac_fn_c_try_compile "$LINENO"
20082then :
20083  xorg_cv_cc_flag_unknown_warning_option=yes
20084else $as_nop
20085  xorg_cv_cc_flag_unknown_warning_option=no
20086fi
20087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20088fi
20089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20090printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20092	CFLAGS="$xorg_testset_save_CFLAGS"
20093fi
20094
20095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20098	fi
20099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20101printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20102if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20103then :
20104  printf %s "(cached) " >&6
20105else $as_nop
20106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107/* end confdefs.h.  */
20108int i;
20109_ACEOF
20110if ac_fn_c_try_compile "$LINENO"
20111then :
20112  xorg_cv_cc_flag_unused_command_line_argument=yes
20113else $as_nop
20114  xorg_cv_cc_flag_unused_command_line_argument=no
20115fi
20116rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20117fi
20118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20119printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20121	CFLAGS="$xorg_testset_save_CFLAGS"
20122fi
20123
20124found="no"
20125
20126	if test $found = "no" ; then
20127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20129		fi
20130
20131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20133		fi
20134
20135		CFLAGS="$CFLAGS -Werror"
20136
20137		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20138printf %s "checking if $CC supports -Werror... " >&6; }
20139		cacheid=xorg_cv_cc_flag__Werror
20140		if eval test \${$cacheid+y}
20141then :
20142  printf %s "(cached) " >&6
20143else $as_nop
20144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145/* end confdefs.h.  */
20146int i;
20147int
20148main (void)
20149{
20150
20151  ;
20152  return 0;
20153}
20154_ACEOF
20155if ac_fn_c_try_link "$LINENO"
20156then :
20157  eval $cacheid=yes
20158else $as_nop
20159  eval $cacheid=no
20160fi
20161rm -f core conftest.err conftest.$ac_objext conftest.beam \
20162    conftest$ac_exeext conftest.$ac_ext
20163fi
20164
20165
20166		CFLAGS="$xorg_testset_save_CFLAGS"
20167
20168		eval supported=\$$cacheid
20169		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20170printf "%s\n" "$supported" >&6; }
20171		if test "$supported" = "yes" ; then
20172			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20173			found="yes"
20174		fi
20175	fi
20176
20177	if test $found = "no" ; then
20178		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20180		fi
20181
20182		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20184		fi
20185
20186		CFLAGS="$CFLAGS -errwarn"
20187
20188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20189printf %s "checking if $CC supports -errwarn... " >&6; }
20190		cacheid=xorg_cv_cc_flag__errwarn
20191		if eval test \${$cacheid+y}
20192then :
20193  printf %s "(cached) " >&6
20194else $as_nop
20195  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196/* end confdefs.h.  */
20197int i;
20198int
20199main (void)
20200{
20201
20202  ;
20203  return 0;
20204}
20205_ACEOF
20206if ac_fn_c_try_link "$LINENO"
20207then :
20208  eval $cacheid=yes
20209else $as_nop
20210  eval $cacheid=no
20211fi
20212rm -f core conftest.err conftest.$ac_objext conftest.beam \
20213    conftest$ac_exeext conftest.$ac_ext
20214fi
20215
20216
20217		CFLAGS="$xorg_testset_save_CFLAGS"
20218
20219		eval supported=\$$cacheid
20220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20221printf "%s\n" "$supported" >&6; }
20222		if test "$supported" = "yes" ; then
20223			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20224			found="yes"
20225		fi
20226	fi
20227
20228
20229
20230# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20231# activate it with -Werror, so we add it here explicitly.
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245xorg_testset_save_CFLAGS="$CFLAGS"
20246
20247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20249	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20250printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20251if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20252then :
20253  printf %s "(cached) " >&6
20254else $as_nop
20255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256/* end confdefs.h.  */
20257int i;
20258_ACEOF
20259if ac_fn_c_try_compile "$LINENO"
20260then :
20261  xorg_cv_cc_flag_unknown_warning_option=yes
20262else $as_nop
20263  xorg_cv_cc_flag_unknown_warning_option=no
20264fi
20265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20266fi
20267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20268printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20269	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20270	CFLAGS="$xorg_testset_save_CFLAGS"
20271fi
20272
20273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20274	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20275		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20276	fi
20277	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20278	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20279printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20280if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20281then :
20282  printf %s "(cached) " >&6
20283else $as_nop
20284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20285/* end confdefs.h.  */
20286int i;
20287_ACEOF
20288if ac_fn_c_try_compile "$LINENO"
20289then :
20290  xorg_cv_cc_flag_unused_command_line_argument=yes
20291else $as_nop
20292  xorg_cv_cc_flag_unused_command_line_argument=no
20293fi
20294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20295fi
20296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20297printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20299	CFLAGS="$xorg_testset_save_CFLAGS"
20300fi
20301
20302found="no"
20303
20304	if test $found = "no" ; then
20305		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20307		fi
20308
20309		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20311		fi
20312
20313		CFLAGS="$CFLAGS -Werror=attributes"
20314
20315		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20316printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20317		cacheid=xorg_cv_cc_flag__Werror_attributes
20318		if eval test \${$cacheid+y}
20319then :
20320  printf %s "(cached) " >&6
20321else $as_nop
20322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20323/* end confdefs.h.  */
20324int i;
20325int
20326main (void)
20327{
20328
20329  ;
20330  return 0;
20331}
20332_ACEOF
20333if ac_fn_c_try_link "$LINENO"
20334then :
20335  eval $cacheid=yes
20336else $as_nop
20337  eval $cacheid=no
20338fi
20339rm -f core conftest.err conftest.$ac_objext conftest.beam \
20340    conftest$ac_exeext conftest.$ac_ext
20341fi
20342
20343
20344		CFLAGS="$xorg_testset_save_CFLAGS"
20345
20346		eval supported=\$$cacheid
20347		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20348printf "%s\n" "$supported" >&6; }
20349		if test "$supported" = "yes" ; then
20350			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
20351			found="yes"
20352		fi
20353	fi
20354
20355
20356
20357if test "x$STRICT_COMPILE" = "xyes"; then
20358    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20359    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20360fi
20361
20362
20363
20364
20365
20366
20367
20368
20369cat >>confdefs.h <<_ACEOF
20370#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20371_ACEOF
20372
20373	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20374	if test "x$PVM" = "x"; then
20375		PVM="0"
20376	fi
20377
20378printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20379
20380	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20381	if test "x$PVP" = "x"; then
20382		PVP="0"
20383	fi
20384
20385printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20386
20387
20388
20389CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20390mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20391|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20392touch \$(top_srcdir)/ChangeLog; \
20393echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20394
20395
20396
20397
20398macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20399INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20400mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20401|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20402touch \$(top_srcdir)/INSTALL; \
20403echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20404
20405
20406
20407
20408
20409
20410case $host_os in
20411    solaris*)
20412        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20413        # check for a man page file found in later versions that use
20414        # traditional section numbers instead
20415        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20416printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20417if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20418then :
20419  printf %s "(cached) " >&6
20420else $as_nop
20421  test "$cross_compiling" = yes &&
20422  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20423if test -r "/usr/share/man/man7/attributes.7"; then
20424  ac_cv_file__usr_share_man_man7_attributes_7=yes
20425else
20426  ac_cv_file__usr_share_man_man7_attributes_7=no
20427fi
20428fi
20429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20430printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20431if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20432then :
20433  SYSV_MAN_SECTIONS=false
20434else $as_nop
20435  SYSV_MAN_SECTIONS=true
20436fi
20437
20438        ;;
20439    *) SYSV_MAN_SECTIONS=false ;;
20440esac
20441
20442if test x$APP_MAN_SUFFIX = x    ; then
20443    APP_MAN_SUFFIX=1
20444fi
20445if test x$APP_MAN_DIR = x    ; then
20446    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20447fi
20448
20449if test x$LIB_MAN_SUFFIX = x    ; then
20450    LIB_MAN_SUFFIX=3
20451fi
20452if test x$LIB_MAN_DIR = x    ; then
20453    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20454fi
20455
20456if test x$FILE_MAN_SUFFIX = x    ; then
20457    case $SYSV_MAN_SECTIONS in
20458	true)				FILE_MAN_SUFFIX=4  ;;
20459	*)				FILE_MAN_SUFFIX=5  ;;
20460    esac
20461fi
20462if test x$FILE_MAN_DIR = x    ; then
20463    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20464fi
20465
20466if test x$MISC_MAN_SUFFIX = x    ; then
20467    case $SYSV_MAN_SECTIONS in
20468	true)				MISC_MAN_SUFFIX=5  ;;
20469	*)				MISC_MAN_SUFFIX=7  ;;
20470    esac
20471fi
20472if test x$MISC_MAN_DIR = x    ; then
20473    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20474fi
20475
20476if test x$DRIVER_MAN_SUFFIX = x    ; then
20477    case $SYSV_MAN_SECTIONS in
20478	true)				DRIVER_MAN_SUFFIX=7  ;;
20479	*)				DRIVER_MAN_SUFFIX=4  ;;
20480    esac
20481fi
20482if test x$DRIVER_MAN_DIR = x    ; then
20483    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20484fi
20485
20486if test x$ADMIN_MAN_SUFFIX = x    ; then
20487    case $SYSV_MAN_SECTIONS in
20488	true)				ADMIN_MAN_SUFFIX=1m ;;
20489	*)				ADMIN_MAN_SUFFIX=8  ;;
20490    esac
20491fi
20492if test x$ADMIN_MAN_DIR = x    ; then
20493    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20494fi
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510XORG_MAN_PAGE="X Version 11"
20511
20512MAN_SUBSTS="\
20513	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20514	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20515	-e 's|__xservername__|Xorg|g' \
20516	-e 's|__xconfigfile__|xorg.conf|g' \
20517	-e 's|__projectroot__|\$(prefix)|g' \
20518	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
20519	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20520	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20521	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20522	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20523	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20524	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20525
20526
20527
20528# Check whether --enable-silent-rules was given.
20529if test ${enable_silent_rules+y}
20530then :
20531  enableval=$enable_silent_rules;
20532fi
20533
20534case $enable_silent_rules in # (((
20535  yes) AM_DEFAULT_VERBOSITY=0;;
20536   no) AM_DEFAULT_VERBOSITY=1;;
20537    *) AM_DEFAULT_VERBOSITY=0;;
20538esac
20539am_make=${MAKE-make}
20540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
20541printf %s "checking whether $am_make supports nested variables... " >&6; }
20542if test ${am_cv_make_support_nested_variables+y}
20543then :
20544  printf %s "(cached) " >&6
20545else $as_nop
20546  if printf "%s\n" 'TRUE=$(BAR$(V))
20547BAR0=false
20548BAR1=true
20549V=1
20550am__doit:
20551	@$(TRUE)
20552.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
20553  am_cv_make_support_nested_variables=yes
20554else
20555  am_cv_make_support_nested_variables=no
20556fi
20557fi
20558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
20559printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
20560if test $am_cv_make_support_nested_variables = yes; then
20561    AM_V='$(V)'
20562  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20563else
20564  AM_V=$AM_DEFAULT_VERBOSITY
20565  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20566fi
20567AM_BACKSLASH='\'
20568
20569
20570
20571
20572
20573# Check whether --enable-devel-docs was given.
20574if test ${enable_devel_docs+y}
20575then :
20576  enableval=$enable_devel_docs; build_devel_docs=$enableval
20577else $as_nop
20578  build_devel_docs=yes
20579fi
20580
20581
20582 if test x$build_devel_docs = xyes; then
20583  ENABLE_DEVEL_DOCS_TRUE=
20584  ENABLE_DEVEL_DOCS_FALSE='#'
20585else
20586  ENABLE_DEVEL_DOCS_TRUE='#'
20587  ENABLE_DEVEL_DOCS_FALSE=
20588fi
20589
20590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
20591printf %s "checking whether to build developer documentation... " >&6; }
20592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
20593printf "%s\n" "$build_devel_docs" >&6; }
20594
20595
20596
20597
20598
20599
20600# Check whether --with-doxygen was given.
20601if test ${with_doxygen+y}
20602then :
20603  withval=$with_doxygen; use_doxygen=$withval
20604else $as_nop
20605  use_doxygen=auto
20606fi
20607
20608
20609
20610if test "x$use_doxygen" = x"auto"; then
20611   # Extract the first word of "doxygen", so it can be a program name with args.
20612set dummy doxygen; ac_word=$2
20613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20614printf %s "checking for $ac_word... " >&6; }
20615if test ${ac_cv_path_DOXYGEN+y}
20616then :
20617  printf %s "(cached) " >&6
20618else $as_nop
20619  case $DOXYGEN in
20620  [\\/]* | ?:[\\/]*)
20621  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20622  ;;
20623  *)
20624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20625for as_dir in $PATH
20626do
20627  IFS=$as_save_IFS
20628  case $as_dir in #(((
20629    '') as_dir=./ ;;
20630    */) ;;
20631    *) as_dir=$as_dir/ ;;
20632  esac
20633    for ac_exec_ext in '' $ac_executable_extensions; do
20634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20635    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
20636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20637    break 2
20638  fi
20639done
20640  done
20641IFS=$as_save_IFS
20642
20643  ;;
20644esac
20645fi
20646DOXYGEN=$ac_cv_path_DOXYGEN
20647if test -n "$DOXYGEN"; then
20648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20649printf "%s\n" "$DOXYGEN" >&6; }
20650else
20651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20652printf "%s\n" "no" >&6; }
20653fi
20654
20655
20656   if test "x$DOXYGEN" = "x"; then
20657        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
20658printf "%s\n" "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
20659	have_doxygen=no
20660   else
20661        have_doxygen=yes
20662   fi
20663elif test "x$use_doxygen" = x"yes" ; then
20664   # Extract the first word of "doxygen", so it can be a program name with args.
20665set dummy doxygen; ac_word=$2
20666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20667printf %s "checking for $ac_word... " >&6; }
20668if test ${ac_cv_path_DOXYGEN+y}
20669then :
20670  printf %s "(cached) " >&6
20671else $as_nop
20672  case $DOXYGEN in
20673  [\\/]* | ?:[\\/]*)
20674  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20675  ;;
20676  *)
20677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20678for as_dir in $PATH
20679do
20680  IFS=$as_save_IFS
20681  case $as_dir in #(((
20682    '') as_dir=./ ;;
20683    */) ;;
20684    *) as_dir=$as_dir/ ;;
20685  esac
20686    for ac_exec_ext in '' $ac_executable_extensions; do
20687  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20688    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
20689    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20690    break 2
20691  fi
20692done
20693  done
20694IFS=$as_save_IFS
20695
20696  ;;
20697esac
20698fi
20699DOXYGEN=$ac_cv_path_DOXYGEN
20700if test -n "$DOXYGEN"; then
20701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20702printf "%s\n" "$DOXYGEN" >&6; }
20703else
20704  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20705printf "%s\n" "no" >&6; }
20706fi
20707
20708
20709   if test "x$DOXYGEN" = "x"; then
20710        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
20711   fi
20712   have_doxygen=yes
20713elif test "x$use_doxygen" = x"no" ; then
20714   if test "x$DOXYGEN" != "x"; then
20715      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
20716printf "%s\n" "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
20717   fi
20718   have_doxygen=no
20719else
20720   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
20721fi
20722
20723
20724HAVE_DOT=no
20725if test "x$have_doxygen" = "xyes"; then
20726  # Extract the first word of "dot", so it can be a program name with args.
20727set dummy dot; ac_word=$2
20728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20729printf %s "checking for $ac_word... " >&6; }
20730if test ${ac_cv_path_DOT+y}
20731then :
20732  printf %s "(cached) " >&6
20733else $as_nop
20734  case $DOT in
20735  [\\/]* | ?:[\\/]*)
20736  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
20737  ;;
20738  *)
20739  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20740for as_dir in $PATH
20741do
20742  IFS=$as_save_IFS
20743  case $as_dir in #(((
20744    '') as_dir=./ ;;
20745    */) ;;
20746    *) as_dir=$as_dir/ ;;
20747  esac
20748    for ac_exec_ext in '' $ac_executable_extensions; do
20749  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20750    ac_cv_path_DOT="$as_dir$ac_word$ac_exec_ext"
20751    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20752    break 2
20753  fi
20754done
20755  done
20756IFS=$as_save_IFS
20757
20758  ;;
20759esac
20760fi
20761DOT=$ac_cv_path_DOT
20762if test -n "$DOT"; then
20763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
20764printf "%s\n" "$DOT" >&6; }
20765else
20766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20767printf "%s\n" "no" >&6; }
20768fi
20769
20770
20771    if test "x$DOT" != "x"; then
20772      HAVE_DOT=yes
20773    fi
20774fi
20775
20776
20777 if test "$HAVE_DOT" = "yes"; then
20778  HAVE_DOT_TRUE=
20779  HAVE_DOT_FALSE='#'
20780else
20781  HAVE_DOT_TRUE='#'
20782  HAVE_DOT_FALSE=
20783fi
20784
20785 if test "$have_doxygen" = yes; then
20786  HAVE_DOXYGEN_TRUE=
20787  HAVE_DOXYGEN_FALSE='#'
20788else
20789  HAVE_DOXYGEN_TRUE='#'
20790  HAVE_DOXYGEN_FALSE=
20791fi
20792
20793
20794
20795# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
20796if test x"$HAVE_DOT" = xno; then
20797    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
20798printf "%s\n" "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
20799fi
20800
20801
20802pkg_failed=no
20803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.6" >&5
20804printf %s "checking for check >= 0.9.6... " >&6; }
20805
20806if test -n "$CHECK_CFLAGS"; then
20807    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
20808 elif test -n "$PKG_CONFIG"; then
20809    if test -n "$PKG_CONFIG" && \
20810    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.6\""; } >&5
20811  ($PKG_CONFIG --exists --print-errors "check >= 0.9.6") 2>&5
20812  ac_status=$?
20813  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20814  test $ac_status = 0; }; then
20815  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.6" 2>/dev/null`
20816		      test "x$?" != "x0" && pkg_failed=yes
20817else
20818  pkg_failed=yes
20819fi
20820 else
20821    pkg_failed=untried
20822fi
20823if test -n "$CHECK_LIBS"; then
20824    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
20825 elif test -n "$PKG_CONFIG"; then
20826    if test -n "$PKG_CONFIG" && \
20827    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.6\""; } >&5
20828  ($PKG_CONFIG --exists --print-errors "check >= 0.9.6") 2>&5
20829  ac_status=$?
20830  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20831  test $ac_status = 0; }; then
20832  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.6" 2>/dev/null`
20833		      test "x$?" != "x0" && pkg_failed=yes
20834else
20835  pkg_failed=yes
20836fi
20837 else
20838    pkg_failed=untried
20839fi
20840
20841
20842
20843if test $pkg_failed = yes; then
20844        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20845printf "%s\n" "no" >&6; }
20846
20847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20848        _pkg_short_errors_supported=yes
20849else
20850        _pkg_short_errors_supported=no
20851fi
20852        if test $_pkg_short_errors_supported = yes; then
20853                CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.6" 2>&1`
20854        else
20855                CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.6" 2>&1`
20856        fi
20857        # Put the nasty error message in config.log where it belongs
20858        echo "$CHECK_PKG_ERRORS" >&5
20859
20860        HAVE_CHECK=no
20861elif test $pkg_failed = untried; then
20862        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863printf "%s\n" "no" >&6; }
20864        HAVE_CHECK=no
20865else
20866        CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
20867        CHECK_LIBS=$pkg_cv_CHECK_LIBS
20868        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20869printf "%s\n" "yes" >&6; }
20870        HAVE_CHECK=yes
20871fi
20872 if test x$HAVE_CHECK = xyes; then
20873  HAVE_CHECK_TRUE=
20874  HAVE_CHECK_FALSE='#'
20875else
20876  HAVE_CHECK_TRUE='#'
20877  HAVE_CHECK_FALSE=
20878fi
20879
20880
20881XSLTPROC=no
20882HTML_CHECK_RESULT=no
20883if test x"$HAVE_CHECK" = xyes; then
20884        # Extract the first word of "xsltproc", so it can be a program name with args.
20885set dummy xsltproc; ac_word=$2
20886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20887printf %s "checking for $ac_word... " >&6; }
20888if test ${ac_cv_path_XSLTPROC+y}
20889then :
20890  printf %s "(cached) " >&6
20891else $as_nop
20892  case $XSLTPROC in
20893  [\\/]* | ?:[\\/]*)
20894  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
20895  ;;
20896  *)
20897  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20898for as_dir in $PATH
20899do
20900  IFS=$as_save_IFS
20901  case $as_dir in #(((
20902    '') as_dir=./ ;;
20903    */) ;;
20904    *) as_dir=$as_dir/ ;;
20905  esac
20906    for ac_exec_ext in '' $ac_executable_extensions; do
20907  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20908    ac_cv_path_XSLTPROC="$as_dir$ac_word$ac_exec_ext"
20909    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20910    break 2
20911  fi
20912done
20913  done
20914IFS=$as_save_IFS
20915
20916  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
20917  ;;
20918esac
20919fi
20920XSLTPROC=$ac_cv_path_XSLTPROC
20921if test -n "$XSLTPROC"; then
20922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
20923printf "%s\n" "$XSLTPROC" >&6; }
20924else
20925  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20926printf "%s\n" "no" >&6; }
20927fi
20928
20929
20930        if test x"$XSLTPROC" != xno; then
20931                HTML_CHECK_RESULT=yes
20932        fi
20933fi
20934
20935
20936# Checks for pkg-config packages
20937
20938pkg_failed=no
20939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xcb-proto >= 1.17.0" >&5
20940printf %s "checking for xcb-proto >= 1.17.0... " >&6; }
20941
20942if test -n "$XCBPROTO_CFLAGS"; then
20943    pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
20944 elif test -n "$PKG_CONFIG"; then
20945    if test -n "$PKG_CONFIG" && \
20946    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.17.0\""; } >&5
20947  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.17.0") 2>&5
20948  ac_status=$?
20949  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20950  test $ac_status = 0; }; then
20951  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.17.0" 2>/dev/null`
20952		      test "x$?" != "x0" && pkg_failed=yes
20953else
20954  pkg_failed=yes
20955fi
20956 else
20957    pkg_failed=untried
20958fi
20959if test -n "$XCBPROTO_LIBS"; then
20960    pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
20961 elif test -n "$PKG_CONFIG"; then
20962    if test -n "$PKG_CONFIG" && \
20963    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.17.0\""; } >&5
20964  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.17.0") 2>&5
20965  ac_status=$?
20966  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20967  test $ac_status = 0; }; then
20968  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.17.0" 2>/dev/null`
20969		      test "x$?" != "x0" && pkg_failed=yes
20970else
20971  pkg_failed=yes
20972fi
20973 else
20974    pkg_failed=untried
20975fi
20976
20977
20978
20979if test $pkg_failed = yes; then
20980        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981printf "%s\n" "no" >&6; }
20982
20983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20984        _pkg_short_errors_supported=yes
20985else
20986        _pkg_short_errors_supported=no
20987fi
20988        if test $_pkg_short_errors_supported = yes; then
20989                XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.17.0" 2>&1`
20990        else
20991                XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.17.0" 2>&1`
20992        fi
20993        # Put the nasty error message in config.log where it belongs
20994        echo "$XCBPROTO_PKG_ERRORS" >&5
20995
20996        as_fn_error $? "Package requirements (xcb-proto >= 1.17.0) were not met:
20997
20998$XCBPROTO_PKG_ERRORS
20999
21000Consider adjusting the PKG_CONFIG_PATH environment variable if you
21001installed software in a non-standard prefix.
21002
21003Alternatively, you may set the environment variables XCBPROTO_CFLAGS
21004and XCBPROTO_LIBS to avoid the need to call pkg-config.
21005See the pkg-config man page for more details." "$LINENO" 5
21006elif test $pkg_failed = untried; then
21007        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21008printf "%s\n" "no" >&6; }
21009        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21010printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21011as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21012is in your PATH or set the PKG_CONFIG environment variable to the full
21013path to pkg-config.
21014
21015Alternatively, you may set the environment variables XCBPROTO_CFLAGS
21016and XCBPROTO_LIBS to avoid the need to call pkg-config.
21017See the pkg-config man page for more details.
21018
21019To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21020See \`config.log' for more details" "$LINENO" 5; }
21021else
21022        XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
21023        XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
21024        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21025printf "%s\n" "yes" >&6; }
21026
21027fi
21028NEEDED="xau >= 0.99.2"
21029case $host_os in
21030linux*|darwin*|solaris*|dragonfly*|freebsd*|netbsd*) ;;
21031     *) NEEDED="$NEEDED pthread-stubs" ;;
21032esac
21033
21034pkg_failed=no
21035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $NEEDED" >&5
21036printf %s "checking for $NEEDED... " >&6; }
21037
21038if test -n "$NEEDED_CFLAGS"; then
21039    pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
21040 elif test -n "$PKG_CONFIG"; then
21041    if test -n "$PKG_CONFIG" && \
21042    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
21043  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
21044  ac_status=$?
21045  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21046  test $ac_status = 0; }; then
21047  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
21048		      test "x$?" != "x0" && pkg_failed=yes
21049else
21050  pkg_failed=yes
21051fi
21052 else
21053    pkg_failed=untried
21054fi
21055if test -n "$NEEDED_LIBS"; then
21056    pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
21057 elif test -n "$PKG_CONFIG"; then
21058    if test -n "$PKG_CONFIG" && \
21059    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
21060  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
21061  ac_status=$?
21062  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063  test $ac_status = 0; }; then
21064  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
21065		      test "x$?" != "x0" && pkg_failed=yes
21066else
21067  pkg_failed=yes
21068fi
21069 else
21070    pkg_failed=untried
21071fi
21072
21073
21074
21075if test $pkg_failed = yes; then
21076        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21077printf "%s\n" "no" >&6; }
21078
21079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21080        _pkg_short_errors_supported=yes
21081else
21082        _pkg_short_errors_supported=no
21083fi
21084        if test $_pkg_short_errors_supported = yes; then
21085                NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
21086        else
21087                NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
21088        fi
21089        # Put the nasty error message in config.log where it belongs
21090        echo "$NEEDED_PKG_ERRORS" >&5
21091
21092        as_fn_error $? "Package requirements ($NEEDED) were not met:
21093
21094$NEEDED_PKG_ERRORS
21095
21096Consider adjusting the PKG_CONFIG_PATH environment variable if you
21097installed software in a non-standard prefix.
21098
21099Alternatively, you may set the environment variables NEEDED_CFLAGS
21100and NEEDED_LIBS to avoid the need to call pkg-config.
21101See the pkg-config man page for more details." "$LINENO" 5
21102elif test $pkg_failed = untried; then
21103        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21104printf "%s\n" "no" >&6; }
21105        { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21106printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21107as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
21108is in your PATH or set the PKG_CONFIG environment variable to the full
21109path to pkg-config.
21110
21111Alternatively, you may set the environment variables NEEDED_CFLAGS
21112and NEEDED_LIBS to avoid the need to call pkg-config.
21113See the pkg-config man page for more details.
21114
21115To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21116See \`config.log' for more details" "$LINENO" 5; }
21117else
21118        NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
21119        NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
21120        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21121printf "%s\n" "yes" >&6; }
21122
21123fi
21124
21125have_xdmcp="no"
21126
21127pkg_failed=no
21128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xdmcp" >&5
21129printf %s "checking for xdmcp... " >&6; }
21130
21131if test -n "$XDMCP_CFLAGS"; then
21132    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
21133 elif test -n "$PKG_CONFIG"; then
21134    if test -n "$PKG_CONFIG" && \
21135    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
21136  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21137  ac_status=$?
21138  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21139  test $ac_status = 0; }; then
21140  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
21141		      test "x$?" != "x0" && pkg_failed=yes
21142else
21143  pkg_failed=yes
21144fi
21145 else
21146    pkg_failed=untried
21147fi
21148if test -n "$XDMCP_LIBS"; then
21149    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
21150 elif test -n "$PKG_CONFIG"; then
21151    if test -n "$PKG_CONFIG" && \
21152    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
21153  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
21154  ac_status=$?
21155  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21156  test $ac_status = 0; }; then
21157  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
21158		      test "x$?" != "x0" && pkg_failed=yes
21159else
21160  pkg_failed=yes
21161fi
21162 else
21163    pkg_failed=untried
21164fi
21165
21166
21167
21168if test $pkg_failed = yes; then
21169        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21170printf "%s\n" "no" >&6; }
21171
21172if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21173        _pkg_short_errors_supported=yes
21174else
21175        _pkg_short_errors_supported=no
21176fi
21177        if test $_pkg_short_errors_supported = yes; then
21178                XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
21179        else
21180                XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
21181        fi
21182        # Put the nasty error message in config.log where it belongs
21183        echo "$XDMCP_PKG_ERRORS" >&5
21184
21185        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21186printf "%s\n" "no" >&6; }
21187elif test $pkg_failed = untried; then
21188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21189printf "%s\n" "no" >&6; }
21190        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21191printf "%s\n" "no" >&6; }
21192else
21193        XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
21194        XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
21195        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21196printf "%s\n" "yes" >&6; }
21197        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
21198printf %s "checking for XdmcpWrap in -lXdmcp... " >&6; }
21199if test ${ac_cv_lib_Xdmcp_XdmcpWrap+y}
21200then :
21201  printf %s "(cached) " >&6
21202else $as_nop
21203  ac_check_lib_save_LIBS=$LIBS
21204LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
21205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21206/* end confdefs.h.  */
21207
21208/* Override any GCC internal prototype to avoid an error.
21209   Use char because int might match the return type of a GCC
21210   builtin and then its argument prototype would still apply.
21211   The 'extern "C"' is for builds by C++ compilers;
21212   although this is not generally supported in C code supporting it here
21213   has little cost and some practical benefit (sr 110532).  */
21214#ifdef __cplusplus
21215extern "C"
21216#endif
21217char XdmcpWrap (void);
21218int
21219main (void)
21220{
21221return XdmcpWrap ();
21222  ;
21223  return 0;
21224}
21225_ACEOF
21226if ac_fn_c_try_link "$LINENO"
21227then :
21228  ac_cv_lib_Xdmcp_XdmcpWrap=yes
21229else $as_nop
21230  ac_cv_lib_Xdmcp_XdmcpWrap=no
21231fi
21232rm -f core conftest.err conftest.$ac_objext conftest.beam \
21233    conftest$ac_exeext conftest.$ac_ext
21234LIBS=$ac_check_lib_save_LIBS
21235fi
21236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
21237printf "%s\n" "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
21238if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes
21239then :
21240
21241
21242printf "%s\n" "#define HASXDMAUTH 1" >>confdefs.h
21243
21244                NEEDED="$NEEDED xdmcp"
21245                have_xdmcp="yes"
21246
21247else $as_nop
21248
21249                XDMCP_CFLAGS=
21250                XDMCP_LIBS=
21251
21252fi
21253
21254fi
21255
21256
21257
21258# Find the xcb-proto protocol descriptions
21259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
21260printf %s "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
21261XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
21262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
21263printf "%s\n" "$XCBPROTO_XCBINCLUDEDIR" >&6; }
21264
21265
21266# Find the xcb-proto version
21267XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
21268
21269
21270# Find the xcbgen Python package
21271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
21272printf %s "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
21273XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
21274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
21275printf "%s\n" "$XCBPROTO_XCBPYTHONDIR" >&6; }
21276
21277
21278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
21279printf %s "checking for library containing getaddrinfo... " >&6; }
21280if test ${ac_cv_search_getaddrinfo+y}
21281then :
21282  printf %s "(cached) " >&6
21283else $as_nop
21284  ac_func_search_save_LIBS=$LIBS
21285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286/* end confdefs.h.  */
21287
21288/* Override any GCC internal prototype to avoid an error.
21289   Use char because int might match the return type of a GCC
21290   builtin and then its argument prototype would still apply.
21291   The 'extern "C"' is for builds by C++ compilers;
21292   although this is not generally supported in C code supporting it here
21293   has little cost and some practical benefit (sr 110532).  */
21294#ifdef __cplusplus
21295extern "C"
21296#endif
21297char getaddrinfo (void);
21298int
21299main (void)
21300{
21301return getaddrinfo ();
21302  ;
21303  return 0;
21304}
21305_ACEOF
21306for ac_lib in '' socket
21307do
21308  if test -z "$ac_lib"; then
21309    ac_res="none required"
21310  else
21311    ac_res=-l$ac_lib
21312    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21313  fi
21314  if ac_fn_c_try_link "$LINENO"
21315then :
21316  ac_cv_search_getaddrinfo=$ac_res
21317fi
21318rm -f core conftest.err conftest.$ac_objext conftest.beam \
21319    conftest$ac_exeext
21320  if test ${ac_cv_search_getaddrinfo+y}
21321then :
21322  break
21323fi
21324done
21325if test ${ac_cv_search_getaddrinfo+y}
21326then :
21327
21328else $as_nop
21329  ac_cv_search_getaddrinfo=no
21330fi
21331rm conftest.$ac_ext
21332LIBS=$ac_func_search_save_LIBS
21333fi
21334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
21335printf "%s\n" "$ac_cv_search_getaddrinfo" >&6; }
21336ac_res=$ac_cv_search_getaddrinfo
21337if test "$ac_res" != no
21338then :
21339  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21340
21341fi
21342
21343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
21344printf %s "checking for library containing connect... " >&6; }
21345if test ${ac_cv_search_connect+y}
21346then :
21347  printf %s "(cached) " >&6
21348else $as_nop
21349  ac_func_search_save_LIBS=$LIBS
21350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351/* end confdefs.h.  */
21352
21353/* Override any GCC internal prototype to avoid an error.
21354   Use char because int might match the return type of a GCC
21355   builtin and then its argument prototype would still apply.
21356   The 'extern "C"' is for builds by C++ compilers;
21357   although this is not generally supported in C code supporting it here
21358   has little cost and some practical benefit (sr 110532).  */
21359#ifdef __cplusplus
21360extern "C"
21361#endif
21362char connect (void);
21363int
21364main (void)
21365{
21366return connect ();
21367  ;
21368  return 0;
21369}
21370_ACEOF
21371for ac_lib in '' socket
21372do
21373  if test -z "$ac_lib"; then
21374    ac_res="none required"
21375  else
21376    ac_res=-l$ac_lib
21377    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21378  fi
21379  if ac_fn_c_try_link "$LINENO"
21380then :
21381  ac_cv_search_connect=$ac_res
21382fi
21383rm -f core conftest.err conftest.$ac_objext conftest.beam \
21384    conftest$ac_exeext
21385  if test ${ac_cv_search_connect+y}
21386then :
21387  break
21388fi
21389done
21390if test ${ac_cv_search_connect+y}
21391then :
21392
21393else $as_nop
21394  ac_cv_search_connect=no
21395fi
21396rm conftest.$ac_ext
21397LIBS=$ac_func_search_save_LIBS
21398fi
21399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
21400printf "%s\n" "$ac_cv_search_connect" >&6; }
21401ac_res=$ac_cv_search_connect
21402if test "$ac_res" != no
21403then :
21404  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21405
21406fi
21407
21408
21409# Find support for sending a message from a socket
21410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
21411printf %s "checking for library containing sendmsg... " >&6; }
21412if test ${ac_cv_search_sendmsg+y}
21413then :
21414  printf %s "(cached) " >&6
21415else $as_nop
21416  ac_func_search_save_LIBS=$LIBS
21417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21418/* end confdefs.h.  */
21419
21420/* Override any GCC internal prototype to avoid an error.
21421   Use char because int might match the return type of a GCC
21422   builtin and then its argument prototype would still apply.
21423   The 'extern "C"' is for builds by C++ compilers;
21424   although this is not generally supported in C code supporting it here
21425   has little cost and some practical benefit (sr 110532).  */
21426#ifdef __cplusplus
21427extern "C"
21428#endif
21429char sendmsg (void);
21430int
21431main (void)
21432{
21433return sendmsg ();
21434  ;
21435  return 0;
21436}
21437_ACEOF
21438for ac_lib in '' socket
21439do
21440  if test -z "$ac_lib"; then
21441    ac_res="none required"
21442  else
21443    ac_res=-l$ac_lib
21444    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21445  fi
21446  if ac_fn_c_try_link "$LINENO"
21447then :
21448  ac_cv_search_sendmsg=$ac_res
21449fi
21450rm -f core conftest.err conftest.$ac_objext conftest.beam \
21451    conftest$ac_exeext
21452  if test ${ac_cv_search_sendmsg+y}
21453then :
21454  break
21455fi
21456done
21457if test ${ac_cv_search_sendmsg+y}
21458then :
21459
21460else $as_nop
21461  ac_cv_search_sendmsg=no
21462fi
21463rm conftest.$ac_ext
21464LIBS=$ac_func_search_save_LIBS
21465fi
21466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
21467printf "%s\n" "$ac_cv_search_sendmsg" >&6; }
21468ac_res=$ac_cv_search_sendmsg
21469if test "$ac_res" != no
21470then :
21471  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21472  have_sendmsg="yes"
21473else $as_nop
21474  have_sendmsg="no"
21475fi
21476
21477
21478# XPG4v2/UNIX95 added msg_control - check to see if we need to define
21479# _XOPEN_SOURCE to get it (such as on Solaris)
21480ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21481$ac_includes_default
21482#include <sys/socket.h>
21483
21484"
21485if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21486then :
21487
21488fi
21489
21490# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21491if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21492    unset ac_cv_member_struct_msghdr_msg_control
21493    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21494printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21495    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21496#define _XOPEN_SOURCE 600
21497$ac_includes_default
21498#include <sys/socket.h>
21499
21500"
21501if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21502then :
21503
21504printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21505
21506
21507fi
21508
21509fi
21510# If that didn't work, fall back to XPG5/UNIX98 with C89
21511if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21512    unset ac_cv_member_struct_msghdr_msg_control
21513    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21514printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21515    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21516#define _XOPEN_SOURCE 500
21517$ac_includes_default
21518#include <sys/socket.h>
21519
21520"
21521if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21522then :
21523
21524printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21525
21526
21527else $as_nop
21528  have_sendmsg="no"
21529fi
21530
21531fi
21532
21533case x$have_sendmsg in
21534xyes)
21535
21536printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h
21537
21538        ;;
21539esac
21540
21541have_win32="no"
21542lt_enable_auto_import=""
21543case $host_os in
21544mingw*)
21545        have_win32="yes"
21546        lt_enable_auto_import="-Wl,--enable-auto-import"
21547        ;;
21548linux*)
21549
21550printf "%s\n" "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
21551
21552        ;;
21553esac
21554
21555
21556 if test "x${have_win32}" = "xyes"; then
21557  XCB_HAVE_WIN32_TRUE=
21558  XCB_HAVE_WIN32_FALSE='#'
21559else
21560  XCB_HAVE_WIN32_TRUE='#'
21561  XCB_HAVE_WIN32_FALSE=
21562fi
21563
21564
21565
21566# Check whether --with-queue-size was given.
21567if test ${with_queue_size+y}
21568then :
21569  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
21570else $as_nop
21571  xcb_queue_buffer_size=16384
21572fi
21573
21574
21575printf "%s\n" "#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size" >>confdefs.h
21576
21577
21578ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
21579                  #include <sys/un.h>
21580
21581"
21582if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes
21583then :
21584
21585printf "%s\n" "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
21586
21587fi
21588
21589
21590ac_fn_c_check_header_compile "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
21591if test "x$ac_cv_header_tsol_label_h" = xyes
21592then :
21593  printf "%s\n" "#define HAVE_TSOL_LABEL_H 1" >>confdefs.h
21594
21595fi
21596
21597ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
21598if test "x$ac_cv_func_is_system_labeled" = xyes
21599then :
21600  printf "%s\n" "#define HAVE_IS_SYSTEM_LABELED 1" >>confdefs.h
21601
21602fi
21603
21604
21605ac_fn_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
21606" "$ac_c_undeclared_builtin_options" "CFLAGS"
21607if test "x$ac_cv_have_decl_IOV_MAX" = xyes
21608then :
21609
21610else $as_nop
21611  ac_fn_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
21612" "$ac_c_undeclared_builtin_options" "CFLAGS"
21613if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes
21614then :
21615  printf "%s\n" "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
21616
21617else $as_nop
21618
21619printf "%s\n" "#define IOV_MAX 16" >>confdefs.h
21620
21621fi
21622fi
21623
21624xcbincludedir='${includedir}/xcb'
21625
21626
21627
21628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
21629printf %s "checking whether ${CC} supports symbol visibility... " >&6; }
21630
21631save_CFLAGS=${CFLAGS}
21632CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
21633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21634/* end confdefs.h.  */
21635
21636#pragma GCC visibility push(hidden)
21637extern void f(int);
21638#pragma GCC visibility pop
21639
21640int
21641main (void)
21642{
21643
21644
21645  ;
21646  return 0;
21647}
21648_ACEOF
21649if ac_fn_c_try_compile "$LINENO"
21650then :
21651
21652printf "%s\n" "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
21653
21654    :
21655    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21656printf "%s\n" "yes" >&6; }
21657else $as_nop
21658  :
21659    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660printf "%s\n" "no" >&6; }
21661fi
21662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21663
21664CFLAGS=${save_CFLAGS}
21665
21666
21667ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21668if test "x$ac_cv_func_getaddrinfo" = xyes
21669then :
21670
21671printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
21672
21673fi
21674
21675
21676case $host_os in
21677        # darwin through Snow Leopard has poll() but can't be used to poll character devices.
21678        darwin[789]*|darwin10*) ;;
21679        darwin*)
21680                _ac_xorg_macosx_version_min=""
21681                if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
21682                        _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
21683                else
21684                        _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
21685                fi
21686                case $_ac_xorg_macosx_version_min in
21687                        10.[0123456]|10.[0123456].*) ;;
21688                        *)
21689                                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
21690if test "x$ac_cv_func_poll" = xyes
21691then :
21692
21693printf "%s\n" "#define USE_POLL 1" >>confdefs.h
21694
21695fi
21696
21697                        ;;
21698                esac
21699                unset _ac_xorg_macosx_version_min
21700                ;;
21701        *)
21702                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
21703if test "x$ac_cv_func_poll" = xyes
21704then :
21705
21706printf "%s\n" "#define USE_POLL 1" >>confdefs.h
21707
21708fi
21709
21710        ;;
21711esac
21712
21713case $host_os in
21714        *mingw*)
21715                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21716printf %s "checking for main in -lws2_32... " >&6; }
21717if test ${ac_cv_lib_ws2_32_main+y}
21718then :
21719  printf %s "(cached) " >&6
21720else $as_nop
21721  ac_check_lib_save_LIBS=$LIBS
21722LIBS="-lws2_32  $LIBS"
21723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21724/* end confdefs.h.  */
21725
21726
21727int
21728main (void)
21729{
21730return main ();
21731  ;
21732  return 0;
21733}
21734_ACEOF
21735if ac_fn_c_try_link "$LINENO"
21736then :
21737  ac_cv_lib_ws2_32_main=yes
21738else $as_nop
21739  ac_cv_lib_ws2_32_main=no
21740fi
21741rm -f core conftest.err conftest.$ac_objext conftest.beam \
21742    conftest$ac_exeext conftest.$ac_ext
21743LIBS=$ac_check_lib_save_LIBS
21744fi
21745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21746printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21747if test "x$ac_cv_lib_ws2_32_main" = xyes
21748then :
21749  printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21750
21751  LIBS="-lws2_32 $LIBS"
21752
21753fi
21754
21755                ;;
21756        *)
21757                ;;
21758esac
21759
21760
21761# Check whether --enable-composite was given.
21762if test ${enable_composite+y}
21763then :
21764  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
21765else $as_nop
21766  BUILD_COMPOSITE=yes
21767fi
21768
21769
21770
21771 if test "x$BUILD_COMPOSITE" = "xyes"; then
21772  BUILD_COMPOSITE_TRUE=
21773  BUILD_COMPOSITE_FALSE='#'
21774else
21775  BUILD_COMPOSITE_TRUE='#'
21776  BUILD_COMPOSITE_FALSE=
21777fi
21778
21779
21780
21781# Check whether --enable-damage was given.
21782if test ${enable_damage+y}
21783then :
21784  enableval=$enable_damage; BUILD_DAMAGE=$enableval
21785else $as_nop
21786  BUILD_DAMAGE=yes
21787fi
21788
21789
21790
21791 if test "x$BUILD_DAMAGE" = "xyes"; then
21792  BUILD_DAMAGE_TRUE=
21793  BUILD_DAMAGE_FALSE='#'
21794else
21795  BUILD_DAMAGE_TRUE='#'
21796  BUILD_DAMAGE_FALSE=
21797fi
21798
21799
21800
21801# Check whether --enable-dbe was given.
21802if test ${enable_dbe+y}
21803then :
21804  enableval=$enable_dbe; BUILD_DBE=$enableval
21805else $as_nop
21806  BUILD_DBE=yes
21807fi
21808
21809
21810
21811 if test "x$BUILD_DBE" = "xyes"; then
21812  BUILD_DBE_TRUE=
21813  BUILD_DBE_FALSE='#'
21814else
21815  BUILD_DBE_TRUE='#'
21816  BUILD_DBE_FALSE=
21817fi
21818
21819
21820
21821# Check whether --enable-dpms was given.
21822if test ${enable_dpms+y}
21823then :
21824  enableval=$enable_dpms; BUILD_DPMS=$enableval
21825else $as_nop
21826  BUILD_DPMS=yes
21827fi
21828
21829
21830
21831 if test "x$BUILD_DPMS" = "xyes"; then
21832  BUILD_DPMS_TRUE=
21833  BUILD_DPMS_FALSE='#'
21834else
21835  BUILD_DPMS_TRUE='#'
21836  BUILD_DPMS_FALSE=
21837fi
21838
21839
21840
21841# Check whether --enable-dri2 was given.
21842if test ${enable_dri2+y}
21843then :
21844  enableval=$enable_dri2; BUILD_DRI2=$enableval
21845else $as_nop
21846  BUILD_DRI2=yes
21847fi
21848
21849
21850
21851 if test "x$BUILD_DRI2" = "xyes"; then
21852  BUILD_DRI2_TRUE=
21853  BUILD_DRI2_FALSE='#'
21854else
21855  BUILD_DRI2_TRUE='#'
21856  BUILD_DRI2_FALSE=
21857fi
21858
21859
21860
21861# Check whether --enable-dri3 was given.
21862if test ${enable_dri3+y}
21863then :
21864  enableval=$enable_dri3; BUILD_DRI3=$enableval
21865else $as_nop
21866  BUILD_DRI3=auto
21867fi
21868
21869
21870# This extension has a default value of "auto" and depends on the value of $have_sendmsg
21871if test "x$BUILD_DRI3" = "xauto" ; then
21872    BUILD_DRI3=$have_sendmsg
21873fi
21874if test "x$BUILD_DRI3" = "xyes" ; then
21875    if test "x$have_sendmsg" = "xno" ; then
21876      as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5
21877    fi
21878fi
21879
21880 if test "x$BUILD_DRI3" = "xyes"; then
21881  BUILD_DRI3_TRUE=
21882  BUILD_DRI3_FALSE='#'
21883else
21884  BUILD_DRI3_TRUE='#'
21885  BUILD_DRI3_FALSE=
21886fi
21887
21888
21889
21890# Check whether --enable-ge was given.
21891if test ${enable_ge+y}
21892then :
21893  enableval=$enable_ge; BUILD_GE=$enableval
21894else $as_nop
21895  BUILD_GE=no
21896fi
21897
21898
21899
21900 if test "x$BUILD_GE" = "xyes"; then
21901  BUILD_GE_TRUE=
21902  BUILD_GE_FALSE='#'
21903else
21904  BUILD_GE_TRUE='#'
21905  BUILD_GE_FALSE=
21906fi
21907
21908
21909
21910# Check whether --enable-glx was given.
21911if test ${enable_glx+y}
21912then :
21913  enableval=$enable_glx; BUILD_GLX=$enableval
21914else $as_nop
21915  BUILD_GLX=yes
21916fi
21917
21918
21919
21920 if test "x$BUILD_GLX" = "xyes"; then
21921  BUILD_GLX_TRUE=
21922  BUILD_GLX_FALSE='#'
21923else
21924  BUILD_GLX_TRUE='#'
21925  BUILD_GLX_FALSE=
21926fi
21927
21928
21929
21930# Check whether --enable-present was given.
21931if test ${enable_present+y}
21932then :
21933  enableval=$enable_present; BUILD_PRESENT=$enableval
21934else $as_nop
21935  BUILD_PRESENT=yes
21936fi
21937
21938
21939
21940 if test "x$BUILD_PRESENT" = "xyes"; then
21941  BUILD_PRESENT_TRUE=
21942  BUILD_PRESENT_FALSE='#'
21943else
21944  BUILD_PRESENT_TRUE='#'
21945  BUILD_PRESENT_FALSE=
21946fi
21947
21948
21949
21950# Check whether --enable-randr was given.
21951if test ${enable_randr+y}
21952then :
21953  enableval=$enable_randr; BUILD_RANDR=$enableval
21954else $as_nop
21955  BUILD_RANDR=yes
21956fi
21957
21958
21959
21960 if test "x$BUILD_RANDR" = "xyes"; then
21961  BUILD_RANDR_TRUE=
21962  BUILD_RANDR_FALSE='#'
21963else
21964  BUILD_RANDR_TRUE='#'
21965  BUILD_RANDR_FALSE=
21966fi
21967
21968
21969
21970# Check whether --enable-record was given.
21971if test ${enable_record+y}
21972then :
21973  enableval=$enable_record; BUILD_RECORD=$enableval
21974else $as_nop
21975  BUILD_RECORD=yes
21976fi
21977
21978
21979
21980 if test "x$BUILD_RECORD" = "xyes"; then
21981  BUILD_RECORD_TRUE=
21982  BUILD_RECORD_FALSE='#'
21983else
21984  BUILD_RECORD_TRUE='#'
21985  BUILD_RECORD_FALSE=
21986fi
21987
21988
21989
21990# Check whether --enable-render was given.
21991if test ${enable_render+y}
21992then :
21993  enableval=$enable_render; BUILD_RENDER=$enableval
21994else $as_nop
21995  BUILD_RENDER=yes
21996fi
21997
21998
21999
22000 if test "x$BUILD_RENDER" = "xyes"; then
22001  BUILD_RENDER_TRUE=
22002  BUILD_RENDER_FALSE='#'
22003else
22004  BUILD_RENDER_TRUE='#'
22005  BUILD_RENDER_FALSE=
22006fi
22007
22008
22009
22010# Check whether --enable-resource was given.
22011if test ${enable_resource+y}
22012then :
22013  enableval=$enable_resource; BUILD_RESOURCE=$enableval
22014else $as_nop
22015  BUILD_RESOURCE=yes
22016fi
22017
22018
22019
22020 if test "x$BUILD_RESOURCE" = "xyes"; then
22021  BUILD_RESOURCE_TRUE=
22022  BUILD_RESOURCE_FALSE='#'
22023else
22024  BUILD_RESOURCE_TRUE='#'
22025  BUILD_RESOURCE_FALSE=
22026fi
22027
22028
22029
22030# Check whether --enable-screensaver was given.
22031if test ${enable_screensaver+y}
22032then :
22033  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
22034else $as_nop
22035  BUILD_SCREENSAVER=yes
22036fi
22037
22038
22039
22040 if test "x$BUILD_SCREENSAVER" = "xyes"; then
22041  BUILD_SCREENSAVER_TRUE=
22042  BUILD_SCREENSAVER_FALSE='#'
22043else
22044  BUILD_SCREENSAVER_TRUE='#'
22045  BUILD_SCREENSAVER_FALSE=
22046fi
22047
22048
22049
22050# Check whether --enable-shape was given.
22051if test ${enable_shape+y}
22052then :
22053  enableval=$enable_shape; BUILD_SHAPE=$enableval
22054else $as_nop
22055  BUILD_SHAPE=yes
22056fi
22057
22058
22059
22060 if test "x$BUILD_SHAPE" = "xyes"; then
22061  BUILD_SHAPE_TRUE=
22062  BUILD_SHAPE_FALSE='#'
22063else
22064  BUILD_SHAPE_TRUE='#'
22065  BUILD_SHAPE_FALSE=
22066fi
22067
22068
22069
22070# Check whether --enable-shm was given.
22071if test ${enable_shm+y}
22072then :
22073  enableval=$enable_shm; BUILD_SHM=$enableval
22074else $as_nop
22075  BUILD_SHM=yes
22076fi
22077
22078
22079
22080 if test "x$BUILD_SHM" = "xyes"; then
22081  BUILD_SHM_TRUE=
22082  BUILD_SHM_FALSE='#'
22083else
22084  BUILD_SHM_TRUE='#'
22085  BUILD_SHM_FALSE=
22086fi
22087
22088
22089
22090# Check whether --enable-sync was given.
22091if test ${enable_sync+y}
22092then :
22093  enableval=$enable_sync; BUILD_SYNC=$enableval
22094else $as_nop
22095  BUILD_SYNC=yes
22096fi
22097
22098
22099
22100 if test "x$BUILD_SYNC" = "xyes"; then
22101  BUILD_SYNC_TRUE=
22102  BUILD_SYNC_FALSE='#'
22103else
22104  BUILD_SYNC_TRUE='#'
22105  BUILD_SYNC_FALSE=
22106fi
22107
22108
22109
22110# Check whether --enable-xevie was given.
22111if test ${enable_xevie+y}
22112then :
22113  enableval=$enable_xevie; BUILD_XEVIE=$enableval
22114else $as_nop
22115  BUILD_XEVIE=no
22116fi
22117
22118
22119
22120 if test "x$BUILD_XEVIE" = "xyes"; then
22121  BUILD_XEVIE_TRUE=
22122  BUILD_XEVIE_FALSE='#'
22123else
22124  BUILD_XEVIE_TRUE='#'
22125  BUILD_XEVIE_FALSE=
22126fi
22127
22128
22129
22130# Check whether --enable-xfixes was given.
22131if test ${enable_xfixes+y}
22132then :
22133  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
22134else $as_nop
22135  BUILD_XFIXES=yes
22136fi
22137
22138
22139
22140 if test "x$BUILD_XFIXES" = "xyes"; then
22141  BUILD_XFIXES_TRUE=
22142  BUILD_XFIXES_FALSE='#'
22143else
22144  BUILD_XFIXES_TRUE='#'
22145  BUILD_XFIXES_FALSE=
22146fi
22147
22148
22149
22150# Check whether --enable-xfree86-dri was given.
22151if test ${enable_xfree86_dri+y}
22152then :
22153  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
22154else $as_nop
22155  BUILD_XFREE86_DRI=yes
22156fi
22157
22158
22159
22160 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
22161  BUILD_XFREE86_DRI_TRUE=
22162  BUILD_XFREE86_DRI_FALSE='#'
22163else
22164  BUILD_XFREE86_DRI_TRUE='#'
22165  BUILD_XFREE86_DRI_FALSE=
22166fi
22167
22168
22169
22170# Check whether --enable-xinerama was given.
22171if test ${enable_xinerama+y}
22172then :
22173  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
22174else $as_nop
22175  BUILD_XINERAMA=yes
22176fi
22177
22178
22179
22180 if test "x$BUILD_XINERAMA" = "xyes"; then
22181  BUILD_XINERAMA_TRUE=
22182  BUILD_XINERAMA_FALSE='#'
22183else
22184  BUILD_XINERAMA_TRUE='#'
22185  BUILD_XINERAMA_FALSE=
22186fi
22187
22188
22189
22190# Check whether --enable-xinput was given.
22191if test ${enable_xinput+y}
22192then :
22193  enableval=$enable_xinput; BUILD_XINPUT=$enableval
22194else $as_nop
22195  BUILD_XINPUT=yes
22196fi
22197
22198
22199
22200 if test "x$BUILD_XINPUT" = "xyes"; then
22201  BUILD_XINPUT_TRUE=
22202  BUILD_XINPUT_FALSE='#'
22203else
22204  BUILD_XINPUT_TRUE='#'
22205  BUILD_XINPUT_FALSE=
22206fi
22207
22208
22209
22210# Check whether --enable-xkb was given.
22211if test ${enable_xkb+y}
22212then :
22213  enableval=$enable_xkb; BUILD_XKB=$enableval
22214else $as_nop
22215  BUILD_XKB=yes
22216fi
22217
22218
22219
22220 if test "x$BUILD_XKB" = "xyes"; then
22221  BUILD_XKB_TRUE=
22222  BUILD_XKB_FALSE='#'
22223else
22224  BUILD_XKB_TRUE='#'
22225  BUILD_XKB_FALSE=
22226fi
22227
22228
22229
22230# Check whether --enable-xprint was given.
22231if test ${enable_xprint+y}
22232then :
22233  enableval=$enable_xprint; BUILD_XPRINT=$enableval
22234else $as_nop
22235  BUILD_XPRINT=no
22236fi
22237
22238
22239
22240 if test "x$BUILD_XPRINT" = "xyes"; then
22241  BUILD_XPRINT_TRUE=
22242  BUILD_XPRINT_FALSE='#'
22243else
22244  BUILD_XPRINT_TRUE='#'
22245  BUILD_XPRINT_FALSE=
22246fi
22247
22248
22249
22250# Check whether --enable-selinux was given.
22251if test ${enable_selinux+y}
22252then :
22253  enableval=$enable_selinux; BUILD_SELINUX=$enableval
22254else $as_nop
22255  BUILD_SELINUX=no
22256fi
22257
22258
22259
22260 if test "x$BUILD_SELINUX" = "xyes"; then
22261  BUILD_SELINUX_TRUE=
22262  BUILD_SELINUX_FALSE='#'
22263else
22264  BUILD_SELINUX_TRUE='#'
22265  BUILD_SELINUX_FALSE=
22266fi
22267
22268
22269
22270# Check whether --enable-xtest was given.
22271if test ${enable_xtest+y}
22272then :
22273  enableval=$enable_xtest; BUILD_XTEST=$enableval
22274else $as_nop
22275  BUILD_XTEST=yes
22276fi
22277
22278
22279
22280 if test "x$BUILD_XTEST" = "xyes"; then
22281  BUILD_XTEST_TRUE=
22282  BUILD_XTEST_FALSE='#'
22283else
22284  BUILD_XTEST_TRUE='#'
22285  BUILD_XTEST_FALSE=
22286fi
22287
22288
22289
22290# Check whether --enable-xv was given.
22291if test ${enable_xv+y}
22292then :
22293  enableval=$enable_xv; BUILD_XV=$enableval
22294else $as_nop
22295  BUILD_XV=yes
22296fi
22297
22298
22299
22300 if test "x$BUILD_XV" = "xyes"; then
22301  BUILD_XV_TRUE=
22302  BUILD_XV_FALSE='#'
22303else
22304  BUILD_XV_TRUE='#'
22305  BUILD_XV_FALSE=
22306fi
22307
22308
22309
22310# Check whether --enable-xvmc was given.
22311if test ${enable_xvmc+y}
22312then :
22313  enableval=$enable_xvmc; BUILD_XVMC=$enableval
22314else $as_nop
22315  BUILD_XVMC=yes
22316fi
22317
22318
22319
22320 if test "x$BUILD_XVMC" = "xyes"; then
22321  BUILD_XVMC_TRUE=
22322  BUILD_XVMC_FALSE='#'
22323else
22324  BUILD_XVMC_TRUE='#'
22325  BUILD_XVMC_FALSE=
22326fi
22327
22328
22329
22330
22331# Check whether --with-serverside-support was given.
22332if test ${with_serverside_support+y}
22333then :
22334  withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval
22335else $as_nop
22336  XCB_SERVERSIDE_SUPPORT=no
22337fi
22338
22339
22340 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then
22341  XCB_SERVERSIDE_SUPPORT_TRUE=
22342  XCB_SERVERSIDE_SUPPORT_FALSE='#'
22343else
22344  XCB_SERVERSIDE_SUPPORT_TRUE='#'
22345  XCB_SERVERSIDE_SUPPORT_FALSE=
22346fi
22347
22348
22349ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
22350
22351
22352ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dbe.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-ge.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
22353
22354
22355ac_config_files="$ac_config_files doc/xcb.doxygen"
22356
22357
22358cat >confcache <<\_ACEOF
22359# This file is a shell script that caches the results of configure
22360# tests run on this system so they can be shared between configure
22361# scripts and configure runs, see configure's option --config-cache.
22362# It is not useful on other systems.  If it contains results you don't
22363# want to keep, you may remove or edit it.
22364#
22365# config.status only pays attention to the cache file if you give it
22366# the --recheck option to rerun configure.
22367#
22368# `ac_cv_env_foo' variables (set or unset) will be overridden when
22369# loading this file, other *unset* `ac_cv_foo' will be assigned the
22370# following values.
22371
22372_ACEOF
22373
22374# The following way of writing the cache mishandles newlines in values,
22375# but we know of no workaround that is simple, portable, and efficient.
22376# So, we kill variables containing newlines.
22377# Ultrix sh set writes to stderr and can't be redirected directly,
22378# and sets the high bit in the cache file unless we assign to the vars.
22379(
22380  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22381    eval ac_val=\$$ac_var
22382    case $ac_val in #(
22383    *${as_nl}*)
22384      case $ac_var in #(
22385      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22386printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22387      esac
22388      case $ac_var in #(
22389      _ | IFS | as_nl) ;; #(
22390      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22391      *) { eval $ac_var=; unset $ac_var;} ;;
22392      esac ;;
22393    esac
22394  done
22395
22396  (set) 2>&1 |
22397    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22398    *${as_nl}ac_space=\ *)
22399      # `set' does not quote correctly, so add quotes: double-quote
22400      # substitution turns \\\\ into \\, and sed turns \\ into \.
22401      sed -n \
22402	"s/'/'\\\\''/g;
22403	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22404      ;; #(
22405    *)
22406      # `set' quotes correctly as required by POSIX, so do not add quotes.
22407      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22408      ;;
22409    esac |
22410    sort
22411) |
22412  sed '
22413     /^ac_cv_env_/b end
22414     t clear
22415     :clear
22416     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22417     t end
22418     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22419     :end' >>confcache
22420if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22421  if test -w "$cache_file"; then
22422    if test "x$cache_file" != "x/dev/null"; then
22423      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22424printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22425      if test ! -f "$cache_file" || test -h "$cache_file"; then
22426	cat confcache >"$cache_file"
22427      else
22428        case $cache_file in #(
22429        */* | ?:*)
22430	  mv -f confcache "$cache_file"$$ &&
22431	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22432        *)
22433	  mv -f confcache "$cache_file" ;;
22434	esac
22435      fi
22436    fi
22437  else
22438    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22439printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22440  fi
22441fi
22442rm -f confcache
22443
22444test "x$prefix" = xNONE && prefix=$ac_default_prefix
22445# Let make expand exec_prefix.
22446test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22447
22448DEFS=-DHAVE_CONFIG_H
22449
22450ac_libobjs=
22451ac_ltlibobjs=
22452U=
22453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22454  # 1. Remove the extension, and $U if already installed.
22455  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22456  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22457  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22458  #    will be set to the directory where LIBOBJS objects are built.
22459  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22460  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22461done
22462LIBOBJS=$ac_libobjs
22463
22464LTLIBOBJS=$ac_ltlibobjs
22465
22466
22467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22468printf %s "checking that generated files are newer than configure... " >&6; }
22469   if test -n "$am_sleep_pid"; then
22470     # Hide warnings about reused PIDs.
22471     wait $am_sleep_pid 2>/dev/null
22472   fi
22473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22474printf "%s\n" "done" >&6; }
22475 if test -n "$EXEEXT"; then
22476  am__EXEEXT_TRUE=
22477  am__EXEEXT_FALSE='#'
22478else
22479  am__EXEEXT_TRUE='#'
22480  am__EXEEXT_FALSE=
22481fi
22482
22483if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22484  as_fn_error $? "conditional \"AMDEP\" was never defined.
22485Usually this means the macro was only invoked conditionally." "$LINENO" 5
22486fi
22487if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22488  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22489Usually this means the macro was only invoked conditionally." "$LINENO" 5
22490fi
22491if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
22492  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
22493Usually this means the macro was only invoked conditionally." "$LINENO" 5
22494fi
22495if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
22496  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
22497Usually this means the macro was only invoked conditionally." "$LINENO" 5
22498fi
22499if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
22500  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
22501Usually this means the macro was only invoked conditionally." "$LINENO" 5
22502fi
22503if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
22504  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
22505Usually this means the macro was only invoked conditionally." "$LINENO" 5
22506fi
22507if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
22508  as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
22509Usually this means the macro was only invoked conditionally." "$LINENO" 5
22510fi
22511if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
22512  as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
22513Usually this means the macro was only invoked conditionally." "$LINENO" 5
22514fi
22515if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
22516  as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
22517Usually this means the macro was only invoked conditionally." "$LINENO" 5
22518fi
22519if test -z "${BUILD_DBE_TRUE}" && test -z "${BUILD_DBE_FALSE}"; then
22520  as_fn_error $? "conditional \"BUILD_DBE\" was never defined.
22521Usually this means the macro was only invoked conditionally." "$LINENO" 5
22522fi
22523if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
22524  as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
22525Usually this means the macro was only invoked conditionally." "$LINENO" 5
22526fi
22527if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
22528  as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
22529Usually this means the macro was only invoked conditionally." "$LINENO" 5
22530fi
22531if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
22532  as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
22533Usually this means the macro was only invoked conditionally." "$LINENO" 5
22534fi
22535if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then
22536  as_fn_error $? "conditional \"BUILD_GE\" was never defined.
22537Usually this means the macro was only invoked conditionally." "$LINENO" 5
22538fi
22539if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
22540  as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
22541Usually this means the macro was only invoked conditionally." "$LINENO" 5
22542fi
22543if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
22544  as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
22545Usually this means the macro was only invoked conditionally." "$LINENO" 5
22546fi
22547if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
22548  as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
22549Usually this means the macro was only invoked conditionally." "$LINENO" 5
22550fi
22551if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
22552  as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
22553Usually this means the macro was only invoked conditionally." "$LINENO" 5
22554fi
22555if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
22556  as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
22557Usually this means the macro was only invoked conditionally." "$LINENO" 5
22558fi
22559if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
22560  as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
22561Usually this means the macro was only invoked conditionally." "$LINENO" 5
22562fi
22563if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
22564  as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
22565Usually this means the macro was only invoked conditionally." "$LINENO" 5
22566fi
22567if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
22568  as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
22569Usually this means the macro was only invoked conditionally." "$LINENO" 5
22570fi
22571if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
22572  as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
22573Usually this means the macro was only invoked conditionally." "$LINENO" 5
22574fi
22575if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
22576  as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
22577Usually this means the macro was only invoked conditionally." "$LINENO" 5
22578fi
22579if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
22580  as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
22581Usually this means the macro was only invoked conditionally." "$LINENO" 5
22582fi
22583if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
22584  as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
22585Usually this means the macro was only invoked conditionally." "$LINENO" 5
22586fi
22587if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
22588  as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
22589Usually this means the macro was only invoked conditionally." "$LINENO" 5
22590fi
22591if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
22592  as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
22593Usually this means the macro was only invoked conditionally." "$LINENO" 5
22594fi
22595if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
22596  as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
22597Usually this means the macro was only invoked conditionally." "$LINENO" 5
22598fi
22599if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
22600  as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
22601Usually this means the macro was only invoked conditionally." "$LINENO" 5
22602fi
22603if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
22604  as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
22605Usually this means the macro was only invoked conditionally." "$LINENO" 5
22606fi
22607if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
22608  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
22609Usually this means the macro was only invoked conditionally." "$LINENO" 5
22610fi
22611if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
22612  as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
22613Usually this means the macro was only invoked conditionally." "$LINENO" 5
22614fi
22615if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
22616  as_fn_error $? "conditional \"BUILD_XV\" was never defined.
22617Usually this means the macro was only invoked conditionally." "$LINENO" 5
22618fi
22619if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
22620  as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
22621Usually this means the macro was only invoked conditionally." "$LINENO" 5
22622fi
22623if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then
22624  as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined.
22625Usually this means the macro was only invoked conditionally." "$LINENO" 5
22626fi
22627
22628: "${CONFIG_STATUS=./config.status}"
22629ac_write_fail=0
22630ac_clean_files_save=$ac_clean_files
22631ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22633printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
22634as_write_fail=0
22635cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22636#! $SHELL
22637# Generated by $as_me.
22638# Run this file to recreate the current configuration.
22639# Compiler output produced by configure, useful for debugging
22640# configure, is in config.log if it exists.
22641
22642debug=false
22643ac_cs_recheck=false
22644ac_cs_silent=false
22645
22646SHELL=\${CONFIG_SHELL-$SHELL}
22647export SHELL
22648_ASEOF
22649cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22650## -------------------- ##
22651## M4sh Initialization. ##
22652## -------------------- ##
22653
22654# Be more Bourne compatible
22655DUALCASE=1; export DUALCASE # for MKS sh
22656as_nop=:
22657if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22658then :
22659  emulate sh
22660  NULLCMD=:
22661  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22662  # is contrary to our usage.  Disable this feature.
22663  alias -g '${1+"$@"}'='"$@"'
22664  setopt NO_GLOB_SUBST
22665else $as_nop
22666  case `(set -o) 2>/dev/null` in #(
22667  *posix*) :
22668    set -o posix ;; #(
22669  *) :
22670     ;;
22671esac
22672fi
22673
22674
22675
22676# Reset variables that may have inherited troublesome values from
22677# the environment.
22678
22679# IFS needs to be set, to space, tab, and newline, in precisely that order.
22680# (If _AS_PATH_WALK were called with IFS unset, it would have the
22681# side effect of setting IFS to empty, thus disabling word splitting.)
22682# Quoting is to prevent editors from complaining about space-tab.
22683as_nl='
22684'
22685export as_nl
22686IFS=" ""	$as_nl"
22687
22688PS1='$ '
22689PS2='> '
22690PS4='+ '
22691
22692# Ensure predictable behavior from utilities with locale-dependent output.
22693LC_ALL=C
22694export LC_ALL
22695LANGUAGE=C
22696export LANGUAGE
22697
22698# We cannot yet rely on "unset" to work, but we need these variables
22699# to be unset--not just set to an empty or harmless value--now, to
22700# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
22701# also avoids known problems related to "unset" and subshell syntax
22702# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
22703for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
22704do eval test \${$as_var+y} \
22705  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22706done
22707
22708# Ensure that fds 0, 1, and 2 are open.
22709if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
22710if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
22711if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
22712
22713# The user is always right.
22714if ${PATH_SEPARATOR+false} :; then
22715  PATH_SEPARATOR=:
22716  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22717    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22718      PATH_SEPARATOR=';'
22719  }
22720fi
22721
22722
22723# Find who we are.  Look in the path if we contain no directory separator.
22724as_myself=
22725case $0 in #((
22726  *[\\/]* ) as_myself=$0 ;;
22727  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22728for as_dir in $PATH
22729do
22730  IFS=$as_save_IFS
22731  case $as_dir in #(((
22732    '') as_dir=./ ;;
22733    */) ;;
22734    *) as_dir=$as_dir/ ;;
22735  esac
22736    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
22737  done
22738IFS=$as_save_IFS
22739
22740     ;;
22741esac
22742# We did not find ourselves, most probably we were run as `sh COMMAND'
22743# in which case we are not to be found in the path.
22744if test "x$as_myself" = x; then
22745  as_myself=$0
22746fi
22747if test ! -f "$as_myself"; then
22748  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22749  exit 1
22750fi
22751
22752
22753
22754# as_fn_error STATUS ERROR [LINENO LOG_FD]
22755# ----------------------------------------
22756# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22757# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22758# script with STATUS, using 1 if that was 0.
22759as_fn_error ()
22760{
22761  as_status=$1; test $as_status -eq 0 && as_status=1
22762  if test "$4"; then
22763    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22764    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22765  fi
22766  printf "%s\n" "$as_me: error: $2" >&2
22767  as_fn_exit $as_status
22768} # as_fn_error
22769
22770
22771
22772# as_fn_set_status STATUS
22773# -----------------------
22774# Set $? to STATUS, without forking.
22775as_fn_set_status ()
22776{
22777  return $1
22778} # as_fn_set_status
22779
22780# as_fn_exit STATUS
22781# -----------------
22782# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22783as_fn_exit ()
22784{
22785  set +e
22786  as_fn_set_status $1
22787  exit $1
22788} # as_fn_exit
22789
22790# as_fn_unset VAR
22791# ---------------
22792# Portably unset VAR.
22793as_fn_unset ()
22794{
22795  { eval $1=; unset $1;}
22796}
22797as_unset=as_fn_unset
22798
22799# as_fn_append VAR VALUE
22800# ----------------------
22801# Append the text in VALUE to the end of the definition contained in VAR. Take
22802# advantage of any shell optimizations that allow amortized linear growth over
22803# repeated appends, instead of the typical quadratic growth present in naive
22804# implementations.
22805if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
22806then :
22807  eval 'as_fn_append ()
22808  {
22809    eval $1+=\$2
22810  }'
22811else $as_nop
22812  as_fn_append ()
22813  {
22814    eval $1=\$$1\$2
22815  }
22816fi # as_fn_append
22817
22818# as_fn_arith ARG...
22819# ------------------
22820# Perform arithmetic evaluation on the ARGs, and store the result in the
22821# global $as_val. Take advantage of shells that can avoid forks. The arguments
22822# must be portable across $(()) and expr.
22823if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
22824then :
22825  eval 'as_fn_arith ()
22826  {
22827    as_val=$(( $* ))
22828  }'
22829else $as_nop
22830  as_fn_arith ()
22831  {
22832    as_val=`expr "$@" || test $? -eq 1`
22833  }
22834fi # as_fn_arith
22835
22836
22837if expr a : '\(a\)' >/dev/null 2>&1 &&
22838   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22839  as_expr=expr
22840else
22841  as_expr=false
22842fi
22843
22844if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22845  as_basename=basename
22846else
22847  as_basename=false
22848fi
22849
22850if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22851  as_dirname=dirname
22852else
22853  as_dirname=false
22854fi
22855
22856as_me=`$as_basename -- "$0" ||
22857$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22858	 X"$0" : 'X\(//\)$' \| \
22859	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22860printf "%s\n" X/"$0" |
22861    sed '/^.*\/\([^/][^/]*\)\/*$/{
22862	    s//\1/
22863	    q
22864	  }
22865	  /^X\/\(\/\/\)$/{
22866	    s//\1/
22867	    q
22868	  }
22869	  /^X\/\(\/\).*/{
22870	    s//\1/
22871	    q
22872	  }
22873	  s/.*/./; q'`
22874
22875# Avoid depending upon Character Ranges.
22876as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22877as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22878as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22879as_cr_digits='0123456789'
22880as_cr_alnum=$as_cr_Letters$as_cr_digits
22881
22882
22883# Determine whether it's possible to make 'echo' print without a newline.
22884# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
22885# for compatibility with existing Makefiles.
22886ECHO_C= ECHO_N= ECHO_T=
22887case `echo -n x` in #(((((
22888-n*)
22889  case `echo 'xy\c'` in
22890  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22891  xy)  ECHO_C='\c';;
22892  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22893       ECHO_T='	';;
22894  esac;;
22895*)
22896  ECHO_N='-n';;
22897esac
22898
22899# For backward compatibility with old third-party macros, we provide
22900# the shell variables $as_echo and $as_echo_n.  New code should use
22901# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
22902as_echo='printf %s\n'
22903as_echo_n='printf %s'
22904
22905rm -f conf$$ conf$$.exe conf$$.file
22906if test -d conf$$.dir; then
22907  rm -f conf$$.dir/conf$$.file
22908else
22909  rm -f conf$$.dir
22910  mkdir conf$$.dir 2>/dev/null
22911fi
22912if (echo >conf$$.file) 2>/dev/null; then
22913  if ln -s conf$$.file conf$$ 2>/dev/null; then
22914    as_ln_s='ln -s'
22915    # ... but there are two gotchas:
22916    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22917    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22918    # In both cases, we have to default to `cp -pR'.
22919    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22920      as_ln_s='cp -pR'
22921  elif ln conf$$.file conf$$ 2>/dev/null; then
22922    as_ln_s=ln
22923  else
22924    as_ln_s='cp -pR'
22925  fi
22926else
22927  as_ln_s='cp -pR'
22928fi
22929rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22930rmdir conf$$.dir 2>/dev/null
22931
22932
22933# as_fn_mkdir_p
22934# -------------
22935# Create "$as_dir" as a directory, including parents if necessary.
22936as_fn_mkdir_p ()
22937{
22938
22939  case $as_dir in #(
22940  -*) as_dir=./$as_dir;;
22941  esac
22942  test -d "$as_dir" || eval $as_mkdir_p || {
22943    as_dirs=
22944    while :; do
22945      case $as_dir in #(
22946      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22947      *) as_qdir=$as_dir;;
22948      esac
22949      as_dirs="'$as_qdir' $as_dirs"
22950      as_dir=`$as_dirname -- "$as_dir" ||
22951$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22952	 X"$as_dir" : 'X\(//\)[^/]' \| \
22953	 X"$as_dir" : 'X\(//\)$' \| \
22954	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22955printf "%s\n" X"$as_dir" |
22956    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22957	    s//\1/
22958	    q
22959	  }
22960	  /^X\(\/\/\)[^/].*/{
22961	    s//\1/
22962	    q
22963	  }
22964	  /^X\(\/\/\)$/{
22965	    s//\1/
22966	    q
22967	  }
22968	  /^X\(\/\).*/{
22969	    s//\1/
22970	    q
22971	  }
22972	  s/.*/./; q'`
22973      test -d "$as_dir" && break
22974    done
22975    test -z "$as_dirs" || eval "mkdir $as_dirs"
22976  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22977
22978
22979} # as_fn_mkdir_p
22980if mkdir -p . 2>/dev/null; then
22981  as_mkdir_p='mkdir -p "$as_dir"'
22982else
22983  test -d ./-p && rmdir ./-p
22984  as_mkdir_p=false
22985fi
22986
22987
22988# as_fn_executable_p FILE
22989# -----------------------
22990# Test if FILE is an executable regular file.
22991as_fn_executable_p ()
22992{
22993  test -f "$1" && test -x "$1"
22994} # as_fn_executable_p
22995as_test_x='test -x'
22996as_executable_p=as_fn_executable_p
22997
22998# Sed expression to map a string onto a valid CPP name.
22999as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23000
23001# Sed expression to map a string onto a valid variable name.
23002as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23003
23004
23005exec 6>&1
23006## ----------------------------------- ##
23007## Main body of $CONFIG_STATUS script. ##
23008## ----------------------------------- ##
23009_ASEOF
23010test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23011
23012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23013# Save the log message, to keep $0 and so on meaningful, and to
23014# report actual input values of CONFIG_FILES etc. instead of their
23015# values after options handling.
23016ac_log="
23017This file was extended by libxcb $as_me 1.17.0, which was
23018generated by GNU Autoconf 2.71.  Invocation command line was
23019
23020  CONFIG_FILES    = $CONFIG_FILES
23021  CONFIG_HEADERS  = $CONFIG_HEADERS
23022  CONFIG_LINKS    = $CONFIG_LINKS
23023  CONFIG_COMMANDS = $CONFIG_COMMANDS
23024  $ $0 $@
23025
23026on `(hostname || uname -n) 2>/dev/null | sed 1q`
23027"
23028
23029_ACEOF
23030
23031case $ac_config_files in *"
23032"*) set x $ac_config_files; shift; ac_config_files=$*;;
23033esac
23034
23035case $ac_config_headers in *"
23036"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23037esac
23038
23039
23040cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23041# Files that config.status was made for.
23042config_files="$ac_config_files"
23043config_headers="$ac_config_headers"
23044config_commands="$ac_config_commands"
23045
23046_ACEOF
23047
23048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23049ac_cs_usage="\
23050\`$as_me' instantiates files and other configuration actions
23051from templates according to the current configuration.  Unless the files
23052and actions are specified as TAGs, all are instantiated by default.
23053
23054Usage: $0 [OPTION]... [TAG]...
23055
23056  -h, --help       print this help, then exit
23057  -V, --version    print version number and configuration settings, then exit
23058      --config     print configuration, then exit
23059  -q, --quiet, --silent
23060                   do not print progress messages
23061  -d, --debug      don't remove temporary files
23062      --recheck    update $as_me by reconfiguring in the same conditions
23063      --file=FILE[:TEMPLATE]
23064                   instantiate the configuration file FILE
23065      --header=FILE[:TEMPLATE]
23066                   instantiate the configuration header FILE
23067
23068Configuration files:
23069$config_files
23070
23071Configuration headers:
23072$config_headers
23073
23074Configuration commands:
23075$config_commands
23076
23077Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues>."
23078
23079_ACEOF
23080ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23081ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23083ac_cs_config='$ac_cs_config_escaped'
23084ac_cs_version="\\
23085libxcb config.status 1.17.0
23086configured by $0, generated by GNU Autoconf 2.71,
23087  with options \\"\$ac_cs_config\\"
23088
23089Copyright (C) 2021 Free Software Foundation, Inc.
23090This config.status script is free software; the Free Software Foundation
23091gives unlimited permission to copy, distribute and modify it."
23092
23093ac_pwd='$ac_pwd'
23094srcdir='$srcdir'
23095INSTALL='$INSTALL'
23096MKDIR_P='$MKDIR_P'
23097AWK='$AWK'
23098test -n "\$AWK" || AWK=awk
23099_ACEOF
23100
23101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23102# The default lists apply if the user does not specify any file.
23103ac_need_defaults=:
23104while test $# != 0
23105do
23106  case $1 in
23107  --*=?*)
23108    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23109    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23110    ac_shift=:
23111    ;;
23112  --*=)
23113    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23114    ac_optarg=
23115    ac_shift=:
23116    ;;
23117  *)
23118    ac_option=$1
23119    ac_optarg=$2
23120    ac_shift=shift
23121    ;;
23122  esac
23123
23124  case $ac_option in
23125  # Handling of the options.
23126  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23127    ac_cs_recheck=: ;;
23128  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23129    printf "%s\n" "$ac_cs_version"; exit ;;
23130  --config | --confi | --conf | --con | --co | --c )
23131    printf "%s\n" "$ac_cs_config"; exit ;;
23132  --debug | --debu | --deb | --de | --d | -d )
23133    debug=: ;;
23134  --file | --fil | --fi | --f )
23135    $ac_shift
23136    case $ac_optarg in
23137    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23138    '') as_fn_error $? "missing file argument" ;;
23139    esac
23140    as_fn_append CONFIG_FILES " '$ac_optarg'"
23141    ac_need_defaults=false;;
23142  --header | --heade | --head | --hea )
23143    $ac_shift
23144    case $ac_optarg in
23145    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23146    esac
23147    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23148    ac_need_defaults=false;;
23149  --he | --h)
23150    # Conflict between --help and --header
23151    as_fn_error $? "ambiguous option: \`$1'
23152Try \`$0 --help' for more information.";;
23153  --help | --hel | -h )
23154    printf "%s\n" "$ac_cs_usage"; exit ;;
23155  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23156  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23157    ac_cs_silent=: ;;
23158
23159  # This is an error.
23160  -*) as_fn_error $? "unrecognized option: \`$1'
23161Try \`$0 --help' for more information." ;;
23162
23163  *) as_fn_append ac_config_targets " $1"
23164     ac_need_defaults=false ;;
23165
23166  esac
23167  shift
23168done
23169
23170ac_configure_extra_args=
23171
23172if $ac_cs_silent; then
23173  exec 6>/dev/null
23174  ac_configure_extra_args="$ac_configure_extra_args --silent"
23175fi
23176
23177_ACEOF
23178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23179if \$ac_cs_recheck; then
23180  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23181  shift
23182  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23183  CONFIG_SHELL='$SHELL'
23184  export CONFIG_SHELL
23185  exec "\$@"
23186fi
23187
23188_ACEOF
23189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23190exec 5>>config.log
23191{
23192  echo
23193  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23194## Running $as_me. ##
23195_ASBOX
23196  printf "%s\n" "$ac_log"
23197} >&5
23198
23199_ACEOF
23200cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23201#
23202# INIT-COMMANDS
23203#
23204AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23205
23206
23207# The HP-UX ksh and POSIX shell print the target directory to stdout
23208# if CDPATH is set.
23209(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23210
23211sed_quote_subst='$sed_quote_subst'
23212double_quote_subst='$double_quote_subst'
23213delay_variable_subst='$delay_variable_subst'
23214macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23215macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23216AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23217DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23218OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23219enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23220enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23221pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23222enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23223shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23224SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23225ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23226PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23227host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23228host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23229host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23230build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23231build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23232build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23233SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23234Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23235GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23236EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23237FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23238LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23239NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23240LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23241max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23242ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23243exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23244lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23245lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23246lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23247lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23248lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23249reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23250reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23251FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23252deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23253file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23254file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23255want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23256sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23257AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23258lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23259AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23260archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23261STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23262RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23263old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23264old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23265old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23266lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23267CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23268CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23269compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23270GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23271lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23272lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23273lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23274lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23275lt_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"`'
23276lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23277nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23278lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23279lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23280objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23281MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23282lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23283lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23284lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23285lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23286lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23287need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23288MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23289DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23290NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23291LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23292OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23293OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23294libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23295shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23296extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23297archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23298enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23299export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23300whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23301compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23302old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23303old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23304archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23305archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23306module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23307module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23308with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23309allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23310no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23311hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23312hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23313hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23314hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23315hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23316hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23317hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23318inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23319link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23320always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23321export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23322exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23323include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23324prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23325postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23326file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23327variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23328need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23329need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23330version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23331runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23332shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23333shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23334libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23335library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23336soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23337install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23338postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23339postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23340finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23341finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23342hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23343sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23344configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23345configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23346hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23347enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23348enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23349enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23350old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23351striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23352
23353LTCC='$LTCC'
23354LTCFLAGS='$LTCFLAGS'
23355compiler='$compiler_DEFAULT'
23356
23357# A function that is used when there is no print builtin or printf.
23358func_fallback_echo ()
23359{
23360  eval 'cat <<_LTECHO_EOF
23361\$1
23362_LTECHO_EOF'
23363}
23364
23365# Quote evaled strings.
23366for var in AS \
23367DLLTOOL \
23368OBJDUMP \
23369SHELL \
23370ECHO \
23371PATH_SEPARATOR \
23372SED \
23373GREP \
23374EGREP \
23375FGREP \
23376LD \
23377NM \
23378LN_S \
23379lt_SP2NL \
23380lt_NL2SP \
23381reload_flag \
23382FILECMD \
23383deplibs_check_method \
23384file_magic_cmd \
23385file_magic_glob \
23386want_nocaseglob \
23387sharedlib_from_linklib_cmd \
23388AR \
23389archiver_list_spec \
23390STRIP \
23391RANLIB \
23392CC \
23393CFLAGS \
23394compiler \
23395lt_cv_sys_global_symbol_pipe \
23396lt_cv_sys_global_symbol_to_cdecl \
23397lt_cv_sys_global_symbol_to_import \
23398lt_cv_sys_global_symbol_to_c_name_address \
23399lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23400lt_cv_nm_interface \
23401nm_file_list_spec \
23402lt_cv_truncate_bin \
23403lt_prog_compiler_no_builtin_flag \
23404lt_prog_compiler_pic \
23405lt_prog_compiler_wl \
23406lt_prog_compiler_static \
23407lt_cv_prog_compiler_c_o \
23408need_locks \
23409MANIFEST_TOOL \
23410DSYMUTIL \
23411NMEDIT \
23412LIPO \
23413OTOOL \
23414OTOOL64 \
23415shrext_cmds \
23416export_dynamic_flag_spec \
23417whole_archive_flag_spec \
23418compiler_needs_object \
23419with_gnu_ld \
23420allow_undefined_flag \
23421no_undefined_flag \
23422hardcode_libdir_flag_spec \
23423hardcode_libdir_separator \
23424exclude_expsyms \
23425include_expsyms \
23426file_list_spec \
23427variables_saved_for_relink \
23428libname_spec \
23429library_names_spec \
23430soname_spec \
23431install_override_mode \
23432finish_eval \
23433old_striplib \
23434striplib; do
23435    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23436    *[\\\\\\\`\\"\\\$]*)
23437      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23438      ;;
23439    *)
23440      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23441      ;;
23442    esac
23443done
23444
23445# Double-quote double-evaled strings.
23446for var in reload_cmds \
23447old_postinstall_cmds \
23448old_postuninstall_cmds \
23449old_archive_cmds \
23450extract_expsyms_cmds \
23451old_archive_from_new_cmds \
23452old_archive_from_expsyms_cmds \
23453archive_cmds \
23454archive_expsym_cmds \
23455module_cmds \
23456module_expsym_cmds \
23457export_symbols_cmds \
23458prelink_cmds \
23459postlink_cmds \
23460postinstall_cmds \
23461postuninstall_cmds \
23462finish_cmds \
23463sys_lib_search_path_spec \
23464configure_time_dlsearch_path \
23465configure_time_lt_sys_library_path; do
23466    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23467    *[\\\\\\\`\\"\\\$]*)
23468      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23469      ;;
23470    *)
23471      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23472      ;;
23473    esac
23474done
23475
23476ac_aux_dir='$ac_aux_dir'
23477
23478# See if we are running on zsh, and set the options that allow our
23479# commands through without removal of \ escapes INIT.
23480if test -n "\${ZSH_VERSION+set}"; then
23481   setopt NO_GLOB_SUBST
23482fi
23483
23484
23485    PACKAGE='$PACKAGE'
23486    VERSION='$VERSION'
23487    RM='$RM'
23488    ofile='$ofile'
23489
23490
23491
23492
23493_ACEOF
23494
23495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23496
23497# Handling of arguments.
23498for ac_config_target in $ac_config_targets
23499do
23500  case $ac_config_target in
23501    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
23502    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23503    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23504    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23505    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23506    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23507    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23508    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23509    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
23510    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
23511    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
23512    "xcb-dbe.pc") CONFIG_FILES="$CONFIG_FILES xcb-dbe.pc" ;;
23513    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
23514    "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
23515    "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
23516    "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;;
23517    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
23518    "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
23519    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
23520    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
23521    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
23522    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
23523    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
23524    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
23525    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
23526    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
23527    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
23528    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
23529    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
23530    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
23531    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
23532    "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
23533    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
23534    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
23535    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
23536    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
23537    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
23538    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
23539
23540  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23541  esac
23542done
23543
23544
23545# If the user did not use the arguments to specify the items to instantiate,
23546# then the envvar interface is used.  Set only those that are not.
23547# We use the long form for the default assignment because of an extremely
23548# bizarre bug on SunOS 4.1.3.
23549if $ac_need_defaults; then
23550  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23551  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23552  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23553fi
23554
23555# Have a temporary directory for convenience.  Make it in the build tree
23556# simply because there is no reason against having it here, and in addition,
23557# creating and moving files from /tmp can sometimes cause problems.
23558# Hook for its removal unless debugging.
23559# Note that there is a small window in which the directory will not be cleaned:
23560# after its creation but before its name has been assigned to `$tmp'.
23561$debug ||
23562{
23563  tmp= ac_tmp=
23564  trap 'exit_status=$?
23565  : "${ac_tmp:=$tmp}"
23566  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23567' 0
23568  trap 'as_fn_exit 1' 1 2 13 15
23569}
23570# Create a (secure) tmp directory for tmp files.
23571
23572{
23573  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23574  test -d "$tmp"
23575}  ||
23576{
23577  tmp=./conf$$-$RANDOM
23578  (umask 077 && mkdir "$tmp")
23579} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23580ac_tmp=$tmp
23581
23582# Set up the scripts for CONFIG_FILES section.
23583# No need to generate them if there are no CONFIG_FILES.
23584# This happens for instance with `./config.status config.h'.
23585if test -n "$CONFIG_FILES"; then
23586
23587
23588ac_cr=`echo X | tr X '\015'`
23589# On cygwin, bash can eat \r inside `` if the user requested igncr.
23590# But we know of no other shell where ac_cr would be empty at this
23591# point, so we can use a bashism as a fallback.
23592if test "x$ac_cr" = x; then
23593  eval ac_cr=\$\'\\r\'
23594fi
23595ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23596if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23597  ac_cs_awk_cr='\\r'
23598else
23599  ac_cs_awk_cr=$ac_cr
23600fi
23601
23602echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23603_ACEOF
23604
23605
23606{
23607  echo "cat >conf$$subs.awk <<_ACEOF" &&
23608  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23609  echo "_ACEOF"
23610} >conf$$subs.sh ||
23611  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23612ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23613ac_delim='%!_!# '
23614for ac_last_try in false false false false false :; do
23615  . ./conf$$subs.sh ||
23616    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23617
23618  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23619  if test $ac_delim_n = $ac_delim_num; then
23620    break
23621  elif $ac_last_try; then
23622    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23623  else
23624    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23625  fi
23626done
23627rm -f conf$$subs.sh
23628
23629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23630cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23631_ACEOF
23632sed -n '
23633h
23634s/^/S["/; s/!.*/"]=/
23635p
23636g
23637s/^[^!]*!//
23638:repl
23639t repl
23640s/'"$ac_delim"'$//
23641t delim
23642:nl
23643h
23644s/\(.\{148\}\)..*/\1/
23645t more1
23646s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23647p
23648n
23649b repl
23650:more1
23651s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23652p
23653g
23654s/.\{148\}//
23655t nl
23656:delim
23657h
23658s/\(.\{148\}\)..*/\1/
23659t more2
23660s/["\\]/\\&/g; s/^/"/; s/$/"/
23661p
23662b
23663:more2
23664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23665p
23666g
23667s/.\{148\}//
23668t delim
23669' <conf$$subs.awk | sed '
23670/^[^""]/{
23671  N
23672  s/\n//
23673}
23674' >>$CONFIG_STATUS || ac_write_fail=1
23675rm -f conf$$subs.awk
23676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23677_ACAWK
23678cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23679  for (key in S) S_is_set[key] = 1
23680  FS = ""
23681
23682}
23683{
23684  line = $ 0
23685  nfields = split(line, field, "@")
23686  substed = 0
23687  len = length(field[1])
23688  for (i = 2; i < nfields; i++) {
23689    key = field[i]
23690    keylen = length(key)
23691    if (S_is_set[key]) {
23692      value = S[key]
23693      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23694      len += length(value) + length(field[++i])
23695      substed = 1
23696    } else
23697      len += 1 + keylen
23698  }
23699
23700  print line
23701}
23702
23703_ACAWK
23704_ACEOF
23705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23706if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23707  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23708else
23709  cat
23710fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23711  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23712_ACEOF
23713
23714# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23715# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23716# trailing colons and then remove the whole line if VPATH becomes empty
23717# (actually we leave an empty line to preserve line numbers).
23718if test "x$srcdir" = x.; then
23719  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23720h
23721s///
23722s/^/:/
23723s/[	 ]*$/:/
23724s/:\$(srcdir):/:/g
23725s/:\${srcdir}:/:/g
23726s/:@srcdir@:/:/g
23727s/^:*//
23728s/:*$//
23729x
23730s/\(=[	 ]*\).*/\1/
23731G
23732s/\n//
23733s/^[^=]*=[	 ]*$//
23734}'
23735fi
23736
23737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23738fi # test -n "$CONFIG_FILES"
23739
23740# Set up the scripts for CONFIG_HEADERS section.
23741# No need to generate them if there are no CONFIG_HEADERS.
23742# This happens for instance with `./config.status Makefile'.
23743if test -n "$CONFIG_HEADERS"; then
23744cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23745BEGIN {
23746_ACEOF
23747
23748# Transform confdefs.h into an awk script `defines.awk', embedded as
23749# here-document in config.status, that substitutes the proper values into
23750# config.h.in to produce config.h.
23751
23752# Create a delimiter string that does not exist in confdefs.h, to ease
23753# handling of long lines.
23754ac_delim='%!_!# '
23755for ac_last_try in false false :; do
23756  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23757  if test -z "$ac_tt"; then
23758    break
23759  elif $ac_last_try; then
23760    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23761  else
23762    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23763  fi
23764done
23765
23766# For the awk script, D is an array of macro values keyed by name,
23767# likewise P contains macro parameters if any.  Preserve backslash
23768# newline sequences.
23769
23770ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23771sed -n '
23772s/.\{148\}/&'"$ac_delim"'/g
23773t rset
23774:rset
23775s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23776t def
23777d
23778:def
23779s/\\$//
23780t bsnl
23781s/["\\]/\\&/g
23782s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23783D["\1"]=" \3"/p
23784s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23785d
23786:bsnl
23787s/["\\]/\\&/g
23788s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23789D["\1"]=" \3\\\\\\n"\\/p
23790t cont
23791s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23792t cont
23793d
23794:cont
23795n
23796s/.\{148\}/&'"$ac_delim"'/g
23797t clear
23798:clear
23799s/\\$//
23800t bsnlc
23801s/["\\]/\\&/g; s/^/"/; s/$/"/p
23802d
23803:bsnlc
23804s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23805b cont
23806' <confdefs.h | sed '
23807s/'"$ac_delim"'/"\\\
23808"/g' >>$CONFIG_STATUS || ac_write_fail=1
23809
23810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23811  for (key in D) D_is_set[key] = 1
23812  FS = ""
23813}
23814/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23815  line = \$ 0
23816  split(line, arg, " ")
23817  if (arg[1] == "#") {
23818    defundef = arg[2]
23819    mac1 = arg[3]
23820  } else {
23821    defundef = substr(arg[1], 2)
23822    mac1 = arg[2]
23823  }
23824  split(mac1, mac2, "(") #)
23825  macro = mac2[1]
23826  prefix = substr(line, 1, index(line, defundef) - 1)
23827  if (D_is_set[macro]) {
23828    # Preserve the white space surrounding the "#".
23829    print prefix "define", macro P[macro] D[macro]
23830    next
23831  } else {
23832    # Replace #undef with comments.  This is necessary, for example,
23833    # in the case of _POSIX_SOURCE, which is predefined and required
23834    # on some systems where configure will not decide to define it.
23835    if (defundef == "undef") {
23836      print "/*", prefix defundef, macro, "*/"
23837      next
23838    }
23839  }
23840}
23841{ print }
23842_ACAWK
23843_ACEOF
23844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23845  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23846fi # test -n "$CONFIG_HEADERS"
23847
23848
23849eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23850shift
23851for ac_tag
23852do
23853  case $ac_tag in
23854  :[FHLC]) ac_mode=$ac_tag; continue;;
23855  esac
23856  case $ac_mode$ac_tag in
23857  :[FHL]*:*);;
23858  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23859  :[FH]-) ac_tag=-:-;;
23860  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23861  esac
23862  ac_save_IFS=$IFS
23863  IFS=:
23864  set x $ac_tag
23865  IFS=$ac_save_IFS
23866  shift
23867  ac_file=$1
23868  shift
23869
23870  case $ac_mode in
23871  :L) ac_source=$1;;
23872  :[FH])
23873    ac_file_inputs=
23874    for ac_f
23875    do
23876      case $ac_f in
23877      -) ac_f="$ac_tmp/stdin";;
23878      *) # Look for the file first in the build tree, then in the source tree
23879	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23880	 # because $ac_f cannot contain `:'.
23881	 test -f "$ac_f" ||
23882	   case $ac_f in
23883	   [\\/$]*) false;;
23884	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23885	   esac ||
23886	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23887      esac
23888      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23889      as_fn_append ac_file_inputs " '$ac_f'"
23890    done
23891
23892    # Let's still pretend it is `configure' which instantiates (i.e., don't
23893    # use $as_me), people would be surprised to read:
23894    #    /* config.h.  Generated by config.status.  */
23895    configure_input='Generated from '`
23896	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23897	`' by configure.'
23898    if test x"$ac_file" != x-; then
23899      configure_input="$ac_file.  $configure_input"
23900      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23901printf "%s\n" "$as_me: creating $ac_file" >&6;}
23902    fi
23903    # Neutralize special characters interpreted by sed in replacement strings.
23904    case $configure_input in #(
23905    *\&* | *\|* | *\\* )
23906       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
23907       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23908    *) ac_sed_conf_input=$configure_input;;
23909    esac
23910
23911    case $ac_tag in
23912    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23913      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23914    esac
23915    ;;
23916  esac
23917
23918  ac_dir=`$as_dirname -- "$ac_file" ||
23919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23920	 X"$ac_file" : 'X\(//\)[^/]' \| \
23921	 X"$ac_file" : 'X\(//\)$' \| \
23922	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23923printf "%s\n" X"$ac_file" |
23924    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23925	    s//\1/
23926	    q
23927	  }
23928	  /^X\(\/\/\)[^/].*/{
23929	    s//\1/
23930	    q
23931	  }
23932	  /^X\(\/\/\)$/{
23933	    s//\1/
23934	    q
23935	  }
23936	  /^X\(\/\).*/{
23937	    s//\1/
23938	    q
23939	  }
23940	  s/.*/./; q'`
23941  as_dir="$ac_dir"; as_fn_mkdir_p
23942  ac_builddir=.
23943
23944case "$ac_dir" in
23945.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23946*)
23947  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23948  # A ".." for each directory in $ac_dir_suffix.
23949  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23950  case $ac_top_builddir_sub in
23951  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23952  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23953  esac ;;
23954esac
23955ac_abs_top_builddir=$ac_pwd
23956ac_abs_builddir=$ac_pwd$ac_dir_suffix
23957# for backward compatibility:
23958ac_top_builddir=$ac_top_build_prefix
23959
23960case $srcdir in
23961  .)  # We are building in place.
23962    ac_srcdir=.
23963    ac_top_srcdir=$ac_top_builddir_sub
23964    ac_abs_top_srcdir=$ac_pwd ;;
23965  [\\/]* | ?:[\\/]* )  # Absolute name.
23966    ac_srcdir=$srcdir$ac_dir_suffix;
23967    ac_top_srcdir=$srcdir
23968    ac_abs_top_srcdir=$srcdir ;;
23969  *) # Relative name.
23970    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23971    ac_top_srcdir=$ac_top_build_prefix$srcdir
23972    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23973esac
23974ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23975
23976
23977  case $ac_mode in
23978  :F)
23979  #
23980  # CONFIG_FILE
23981  #
23982
23983  case $INSTALL in
23984  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23985  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23986  esac
23987  ac_MKDIR_P=$MKDIR_P
23988  case $MKDIR_P in
23989  [\\/$]* | ?:[\\/]* ) ;;
23990  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23991  esac
23992_ACEOF
23993
23994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23995# If the template does not know about datarootdir, expand it.
23996# FIXME: This hack should be removed a few years after 2.60.
23997ac_datarootdir_hack=; ac_datarootdir_seen=
23998ac_sed_dataroot='
23999/datarootdir/ {
24000  p
24001  q
24002}
24003/@datadir@/p
24004/@docdir@/p
24005/@infodir@/p
24006/@localedir@/p
24007/@mandir@/p'
24008case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24009*datarootdir*) ac_datarootdir_seen=yes;;
24010*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24012printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24013_ACEOF
24014cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24015  ac_datarootdir_hack='
24016  s&@datadir@&$datadir&g
24017  s&@docdir@&$docdir&g
24018  s&@infodir@&$infodir&g
24019  s&@localedir@&$localedir&g
24020  s&@mandir@&$mandir&g
24021  s&\\\${datarootdir}&$datarootdir&g' ;;
24022esac
24023_ACEOF
24024
24025# Neutralize VPATH when `$srcdir' = `.'.
24026# Shell code in configure.ac might set extrasub.
24027# FIXME: do we really want to maintain this feature?
24028cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24029ac_sed_extra="$ac_vpsub
24030$extrasub
24031_ACEOF
24032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24033:t
24034/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24035s|@configure_input@|$ac_sed_conf_input|;t t
24036s&@top_builddir@&$ac_top_builddir_sub&;t t
24037s&@top_build_prefix@&$ac_top_build_prefix&;t t
24038s&@srcdir@&$ac_srcdir&;t t
24039s&@abs_srcdir@&$ac_abs_srcdir&;t t
24040s&@top_srcdir@&$ac_top_srcdir&;t t
24041s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24042s&@builddir@&$ac_builddir&;t t
24043s&@abs_builddir@&$ac_abs_builddir&;t t
24044s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24045s&@INSTALL@&$ac_INSTALL&;t t
24046s&@MKDIR_P@&$ac_MKDIR_P&;t t
24047$ac_datarootdir_hack
24048"
24049eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24050  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24051
24052test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24053  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24054  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24055      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24057which seems to be undefined.  Please make sure it is defined" >&5
24058printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24059which seems to be undefined.  Please make sure it is defined" >&2;}
24060
24061  rm -f "$ac_tmp/stdin"
24062  case $ac_file in
24063  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24064  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24065  esac \
24066  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24067 ;;
24068  :H)
24069  #
24070  # CONFIG_HEADER
24071  #
24072  if test x"$ac_file" != x-; then
24073    {
24074      printf "%s\n" "/* $configure_input  */" >&1 \
24075      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24076    } >"$ac_tmp/config.h" \
24077      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24078    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24080printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24081    else
24082      rm -f "$ac_file"
24083      mv "$ac_tmp/config.h" "$ac_file" \
24084	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24085    fi
24086  else
24087    printf "%s\n" "/* $configure_input  */" >&1 \
24088      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24089      || as_fn_error $? "could not create -" "$LINENO" 5
24090  fi
24091# Compute "$ac_file"'s index in $config_headers.
24092_am_arg="$ac_file"
24093_am_stamp_count=1
24094for _am_header in $config_headers :; do
24095  case $_am_header in
24096    $_am_arg | $_am_arg:* )
24097      break ;;
24098    * )
24099      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24100  esac
24101done
24102echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24103$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24104	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24105	 X"$_am_arg" : 'X\(//\)$' \| \
24106	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24107printf "%s\n" X"$_am_arg" |
24108    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24109	    s//\1/
24110	    q
24111	  }
24112	  /^X\(\/\/\)[^/].*/{
24113	    s//\1/
24114	    q
24115	  }
24116	  /^X\(\/\/\)$/{
24117	    s//\1/
24118	    q
24119	  }
24120	  /^X\(\/\).*/{
24121	    s//\1/
24122	    q
24123	  }
24124	  s/.*/./; q'`/stamp-h$_am_stamp_count
24125 ;;
24126
24127  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24128printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24129 ;;
24130  esac
24131
24132
24133  case $ac_file$ac_mode in
24134    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24135  # Older Autoconf quotes --file arguments for eval, but not when files
24136  # are listed without --file.  Let's play safe and only enable the eval
24137  # if we detect the quoting.
24138  # TODO: see whether this extra hack can be removed once we start
24139  # requiring Autoconf 2.70 or later.
24140  case $CONFIG_FILES in #(
24141  *\'*) :
24142    eval set x "$CONFIG_FILES" ;; #(
24143  *) :
24144    set x $CONFIG_FILES ;; #(
24145  *) :
24146     ;;
24147esac
24148  shift
24149  # Used to flag and report bootstrapping failures.
24150  am_rc=0
24151  for am_mf
24152  do
24153    # Strip MF so we end up with the name of the file.
24154    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24155    # Check whether this is an Automake generated Makefile which includes
24156    # dependency-tracking related rules and includes.
24157    # Grep'ing the whole file directly is not great: AIX grep has a line
24158    # limit of 2048, but all sed's we know have understand at least 4000.
24159    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24160      || continue
24161    am_dirpart=`$as_dirname -- "$am_mf" ||
24162$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24163	 X"$am_mf" : 'X\(//\)[^/]' \| \
24164	 X"$am_mf" : 'X\(//\)$' \| \
24165	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24166printf "%s\n" X"$am_mf" |
24167    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24168	    s//\1/
24169	    q
24170	  }
24171	  /^X\(\/\/\)[^/].*/{
24172	    s//\1/
24173	    q
24174	  }
24175	  /^X\(\/\/\)$/{
24176	    s//\1/
24177	    q
24178	  }
24179	  /^X\(\/\).*/{
24180	    s//\1/
24181	    q
24182	  }
24183	  s/.*/./; q'`
24184    am_filepart=`$as_basename -- "$am_mf" ||
24185$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24186	 X"$am_mf" : 'X\(//\)$' \| \
24187	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24188printf "%s\n" X/"$am_mf" |
24189    sed '/^.*\/\([^/][^/]*\)\/*$/{
24190	    s//\1/
24191	    q
24192	  }
24193	  /^X\/\(\/\/\)$/{
24194	    s//\1/
24195	    q
24196	  }
24197	  /^X\/\(\/\).*/{
24198	    s//\1/
24199	    q
24200	  }
24201	  s/.*/./; q'`
24202    { echo "$as_me:$LINENO: cd "$am_dirpart" \
24203      && sed -e '/# am--include-marker/d' "$am_filepart" \
24204        | $MAKE -f - am--depfiles" >&5
24205   (cd "$am_dirpart" \
24206      && sed -e '/# am--include-marker/d' "$am_filepart" \
24207        | $MAKE -f - am--depfiles) >&5 2>&5
24208   ac_status=$?
24209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210   (exit $ac_status); } || am_rc=$?
24211  done
24212  if test $am_rc -ne 0; then
24213    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24214printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24215as_fn_error $? "Something went wrong bootstrapping makefile fragments
24216    for automatic dependency tracking.  If GNU make was not used, consider
24217    re-running the configure script with MAKE=\"gmake\" (or whatever is
24218    necessary).  You can also try re-running configure with the
24219    '--disable-dependency-tracking' option to at least be able to build
24220    the package (albeit without support for automatic dependency tracking).
24221See \`config.log' for more details" "$LINENO" 5; }
24222  fi
24223  { am_dirpart=; unset am_dirpart;}
24224  { am_filepart=; unset am_filepart;}
24225  { am_mf=; unset am_mf;}
24226  { am_rc=; unset am_rc;}
24227  rm -f conftest-deps.mk
24228}
24229 ;;
24230    "libtool":C)
24231
24232    # See if we are running on zsh, and set the options that allow our
24233    # commands through without removal of \ escapes.
24234    if test -n "${ZSH_VERSION+set}"; then
24235      setopt NO_GLOB_SUBST
24236    fi
24237
24238    cfgfile=${ofile}T
24239    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24240    $RM "$cfgfile"
24241
24242    cat <<_LT_EOF >> "$cfgfile"
24243#! $SHELL
24244# Generated automatically by $as_me ($PACKAGE) $VERSION
24245# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24246# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24247
24248# Provide generalized library-building support services.
24249# Written by Gordon Matzigkeit, 1996
24250
24251# Copyright (C) 2014 Free Software Foundation, Inc.
24252# This is free software; see the source for copying conditions.  There is NO
24253# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24254
24255# GNU Libtool is free software; you can redistribute it and/or modify
24256# it under the terms of the GNU General Public License as published by
24257# the Free Software Foundation; either version 2 of of the License, or
24258# (at your option) any later version.
24259#
24260# As a special exception to the GNU General Public License, if you
24261# distribute this file as part of a program or library that is built
24262# using GNU Libtool, you may include this file under the  same
24263# distribution terms that you use for the rest of that program.
24264#
24265# GNU Libtool is distributed in the hope that it will be useful, but
24266# WITHOUT ANY WARRANTY; without even the implied warranty of
24267# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24268# GNU General Public License for more details.
24269#
24270# You should have received a copy of the GNU General Public License
24271# along with this program.  If not, see <http://www.gnu.org/licenses/>.
24272
24273
24274# The names of the tagged configurations supported by this script.
24275available_tags=''
24276
24277# Configured defaults for sys_lib_dlsearch_path munging.
24278: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24279
24280# ### BEGIN LIBTOOL CONFIG
24281
24282# Which release of libtool.m4 was used?
24283macro_version=$macro_version
24284macro_revision=$macro_revision
24285
24286# Assembler program.
24287AS=$lt_AS
24288
24289# DLL creation program.
24290DLLTOOL=$lt_DLLTOOL
24291
24292# Object dumper program.
24293OBJDUMP=$lt_OBJDUMP
24294
24295# Whether or not to build shared libraries.
24296build_libtool_libs=$enable_shared
24297
24298# Whether or not to build static libraries.
24299build_old_libs=$enable_static
24300
24301# What type of objects to build.
24302pic_mode=$pic_mode
24303
24304# Whether or not to optimize for fast installation.
24305fast_install=$enable_fast_install
24306
24307# Shared archive member basename,for filename based shared library versioning on AIX.
24308shared_archive_member_spec=$shared_archive_member_spec
24309
24310# Shell to use when invoking shell scripts.
24311SHELL=$lt_SHELL
24312
24313# An echo program that protects backslashes.
24314ECHO=$lt_ECHO
24315
24316# The PATH separator for the build system.
24317PATH_SEPARATOR=$lt_PATH_SEPARATOR
24318
24319# The host system.
24320host_alias=$host_alias
24321host=$host
24322host_os=$host_os
24323
24324# The build system.
24325build_alias=$build_alias
24326build=$build
24327build_os=$build_os
24328
24329# A sed program that does not truncate output.
24330SED=$lt_SED
24331
24332# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24333Xsed="\$SED -e 1s/^X//"
24334
24335# A grep program that handles long lines.
24336GREP=$lt_GREP
24337
24338# An ERE matcher.
24339EGREP=$lt_EGREP
24340
24341# A literal string matcher.
24342FGREP=$lt_FGREP
24343
24344# A BSD- or MS-compatible name lister.
24345NM=$lt_NM
24346
24347# Whether we need soft or hard links.
24348LN_S=$lt_LN_S
24349
24350# What is the maximum length of a command?
24351max_cmd_len=$max_cmd_len
24352
24353# Object file suffix (normally "o").
24354objext=$ac_objext
24355
24356# Executable file suffix (normally "").
24357exeext=$exeext
24358
24359# whether the shell understands "unset".
24360lt_unset=$lt_unset
24361
24362# turn spaces into newlines.
24363SP2NL=$lt_lt_SP2NL
24364
24365# turn newlines into spaces.
24366NL2SP=$lt_lt_NL2SP
24367
24368# convert \$build file names to \$host format.
24369to_host_file_cmd=$lt_cv_to_host_file_cmd
24370
24371# convert \$build files to toolchain format.
24372to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24373
24374# A file(cmd) program that detects file types.
24375FILECMD=$lt_FILECMD
24376
24377# Method to check whether dependent libraries are shared objects.
24378deplibs_check_method=$lt_deplibs_check_method
24379
24380# Command to use when deplibs_check_method = "file_magic".
24381file_magic_cmd=$lt_file_magic_cmd
24382
24383# How to find potential files when deplibs_check_method = "file_magic".
24384file_magic_glob=$lt_file_magic_glob
24385
24386# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24387want_nocaseglob=$lt_want_nocaseglob
24388
24389# Command to associate shared and link libraries.
24390sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24391
24392# The archiver.
24393AR=$lt_AR
24394
24395# Flags to create an archive (by configure).
24396lt_ar_flags=$lt_ar_flags
24397
24398# Flags to create an archive.
24399AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24400
24401# How to feed a file listing to the archiver.
24402archiver_list_spec=$lt_archiver_list_spec
24403
24404# A symbol stripping program.
24405STRIP=$lt_STRIP
24406
24407# Commands used to install an old-style archive.
24408RANLIB=$lt_RANLIB
24409old_postinstall_cmds=$lt_old_postinstall_cmds
24410old_postuninstall_cmds=$lt_old_postuninstall_cmds
24411
24412# Whether to use a lock for old archive extraction.
24413lock_old_archive_extraction=$lock_old_archive_extraction
24414
24415# A C compiler.
24416LTCC=$lt_CC
24417
24418# LTCC compiler flags.
24419LTCFLAGS=$lt_CFLAGS
24420
24421# Take the output of nm and produce a listing of raw symbols and C names.
24422global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24423
24424# Transform the output of nm in a proper C declaration.
24425global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24426
24427# Transform the output of nm into a list of symbols to manually relocate.
24428global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24429
24430# Transform the output of nm in a C name address pair.
24431global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24432
24433# Transform the output of nm in a C name address pair when lib prefix is needed.
24434global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24435
24436# The name lister interface.
24437nm_interface=$lt_lt_cv_nm_interface
24438
24439# Specify filename containing input files for \$NM.
24440nm_file_list_spec=$lt_nm_file_list_spec
24441
24442# The root where to search for dependent libraries,and where our libraries should be installed.
24443lt_sysroot=$lt_sysroot
24444
24445# Command to truncate a binary pipe.
24446lt_truncate_bin=$lt_lt_cv_truncate_bin
24447
24448# The name of the directory that contains temporary libtool files.
24449objdir=$objdir
24450
24451# Used to examine libraries when file_magic_cmd begins with "file".
24452MAGIC_CMD=$MAGIC_CMD
24453
24454# Must we lock files when doing compilation?
24455need_locks=$lt_need_locks
24456
24457# Manifest tool.
24458MANIFEST_TOOL=$lt_MANIFEST_TOOL
24459
24460# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24461DSYMUTIL=$lt_DSYMUTIL
24462
24463# Tool to change global to local symbols on Mac OS X.
24464NMEDIT=$lt_NMEDIT
24465
24466# Tool to manipulate fat objects and archives on Mac OS X.
24467LIPO=$lt_LIPO
24468
24469# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24470OTOOL=$lt_OTOOL
24471
24472# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24473OTOOL64=$lt_OTOOL64
24474
24475# Old archive suffix (normally "a").
24476libext=$libext
24477
24478# Shared library suffix (normally ".so").
24479shrext_cmds=$lt_shrext_cmds
24480
24481# The commands to extract the exported symbol list from a shared archive.
24482extract_expsyms_cmds=$lt_extract_expsyms_cmds
24483
24484# Variables whose values should be saved in libtool wrapper scripts and
24485# restored at link time.
24486variables_saved_for_relink=$lt_variables_saved_for_relink
24487
24488# Do we need the "lib" prefix for modules?
24489need_lib_prefix=$need_lib_prefix
24490
24491# Do we need a version for libraries?
24492need_version=$need_version
24493
24494# Library versioning type.
24495version_type=$version_type
24496
24497# Shared library runtime path variable.
24498runpath_var=$runpath_var
24499
24500# Shared library path variable.
24501shlibpath_var=$shlibpath_var
24502
24503# Is shlibpath searched before the hard-coded library search path?
24504shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24505
24506# Format of library name prefix.
24507libname_spec=$lt_libname_spec
24508
24509# List of archive names.  First name is the real one, the rest are links.
24510# The last name is the one that the linker finds with -lNAME
24511library_names_spec=$lt_library_names_spec
24512
24513# The coded name of the library, if different from the real name.
24514soname_spec=$lt_soname_spec
24515
24516# Permission mode override for installation of shared libraries.
24517install_override_mode=$lt_install_override_mode
24518
24519# Command to use after installation of a shared archive.
24520postinstall_cmds=$lt_postinstall_cmds
24521
24522# Command to use after uninstallation of a shared archive.
24523postuninstall_cmds=$lt_postuninstall_cmds
24524
24525# Commands used to finish a libtool library installation in a directory.
24526finish_cmds=$lt_finish_cmds
24527
24528# As "finish_cmds", except a single script fragment to be evaled but
24529# not shown.
24530finish_eval=$lt_finish_eval
24531
24532# Whether we should hardcode library paths into libraries.
24533hardcode_into_libs=$hardcode_into_libs
24534
24535# Compile-time system search path for libraries.
24536sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24537
24538# Detected run-time system search path for libraries.
24539sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24540
24541# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24542configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24543
24544# Whether dlopen is supported.
24545dlopen_support=$enable_dlopen
24546
24547# Whether dlopen of programs is supported.
24548dlopen_self=$enable_dlopen_self
24549
24550# Whether dlopen of statically linked programs is supported.
24551dlopen_self_static=$enable_dlopen_self_static
24552
24553# Commands to strip libraries.
24554old_striplib=$lt_old_striplib
24555striplib=$lt_striplib
24556
24557
24558# The linker used to build libraries.
24559LD=$lt_LD
24560
24561# How to create reloadable object files.
24562reload_flag=$lt_reload_flag
24563reload_cmds=$lt_reload_cmds
24564
24565# Commands used to build an old-style archive.
24566old_archive_cmds=$lt_old_archive_cmds
24567
24568# A language specific compiler.
24569CC=$lt_compiler
24570
24571# Is the compiler the GNU compiler?
24572with_gcc=$GCC
24573
24574# Compiler flag to turn off builtin functions.
24575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24576
24577# Additional compiler flags for building library objects.
24578pic_flag=$lt_lt_prog_compiler_pic
24579
24580# How to pass a linker flag through the compiler.
24581wl=$lt_lt_prog_compiler_wl
24582
24583# Compiler flag to prevent dynamic linking.
24584link_static_flag=$lt_lt_prog_compiler_static
24585
24586# Does compiler simultaneously support -c and -o options?
24587compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24588
24589# Whether or not to add -lc for building shared libraries.
24590build_libtool_need_lc=$archive_cmds_need_lc
24591
24592# Whether or not to disallow shared libs when runtime libs are static.
24593allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24594
24595# Compiler flag to allow reflexive dlopens.
24596export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24597
24598# Compiler flag to generate shared objects directly from archives.
24599whole_archive_flag_spec=$lt_whole_archive_flag_spec
24600
24601# Whether the compiler copes with passing no objects directly.
24602compiler_needs_object=$lt_compiler_needs_object
24603
24604# Create an old-style archive from a shared archive.
24605old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24606
24607# Create a temporary old-style archive to link instead of a shared archive.
24608old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24609
24610# Commands used to build a shared archive.
24611archive_cmds=$lt_archive_cmds
24612archive_expsym_cmds=$lt_archive_expsym_cmds
24613
24614# Commands used to build a loadable module if different from building
24615# a shared archive.
24616module_cmds=$lt_module_cmds
24617module_expsym_cmds=$lt_module_expsym_cmds
24618
24619# Whether we are building with GNU ld or not.
24620with_gnu_ld=$lt_with_gnu_ld
24621
24622# Flag that allows shared libraries with undefined symbols to be built.
24623allow_undefined_flag=$lt_allow_undefined_flag
24624
24625# Flag that enforces no undefined symbols.
24626no_undefined_flag=$lt_no_undefined_flag
24627
24628# Flag to hardcode \$libdir into a binary during linking.
24629# This must work even if \$libdir does not exist
24630hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24631
24632# Whether we need a single "-rpath" flag with a separated argument.
24633hardcode_libdir_separator=$lt_hardcode_libdir_separator
24634
24635# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24636# DIR into the resulting binary.
24637hardcode_direct=$hardcode_direct
24638
24639# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24640# DIR into the resulting binary and the resulting library dependency is
24641# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24642# library is relocated.
24643hardcode_direct_absolute=$hardcode_direct_absolute
24644
24645# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24646# into the resulting binary.
24647hardcode_minus_L=$hardcode_minus_L
24648
24649# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24650# into the resulting binary.
24651hardcode_shlibpath_var=$hardcode_shlibpath_var
24652
24653# Set to "yes" if building a shared library automatically hardcodes DIR
24654# into the library and all subsequent libraries and executables linked
24655# against it.
24656hardcode_automatic=$hardcode_automatic
24657
24658# Set to yes if linker adds runtime paths of dependent libraries
24659# to runtime path list.
24660inherit_rpath=$inherit_rpath
24661
24662# Whether libtool must link a program against all its dependency libraries.
24663link_all_deplibs=$link_all_deplibs
24664
24665# Set to "yes" if exported symbols are required.
24666always_export_symbols=$always_export_symbols
24667
24668# The commands to list exported symbols.
24669export_symbols_cmds=$lt_export_symbols_cmds
24670
24671# Symbols that should not be listed in the preloaded symbols.
24672exclude_expsyms=$lt_exclude_expsyms
24673
24674# Symbols that must always be exported.
24675include_expsyms=$lt_include_expsyms
24676
24677# Commands necessary for linking programs (against libraries) with templates.
24678prelink_cmds=$lt_prelink_cmds
24679
24680# Commands necessary for finishing linking programs.
24681postlink_cmds=$lt_postlink_cmds
24682
24683# Specify filename containing input files.
24684file_list_spec=$lt_file_list_spec
24685
24686# How to hardcode a shared library path into an executable.
24687hardcode_action=$hardcode_action
24688
24689# ### END LIBTOOL CONFIG
24690
24691_LT_EOF
24692
24693    cat <<'_LT_EOF' >> "$cfgfile"
24694
24695# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24696
24697# func_munge_path_list VARIABLE PATH
24698# -----------------------------------
24699# VARIABLE is name of variable containing _space_ separated list of
24700# directories to be munged by the contents of PATH, which is string
24701# having a format:
24702# "DIR[:DIR]:"
24703#       string "DIR[ DIR]" will be prepended to VARIABLE
24704# ":DIR[:DIR]"
24705#       string "DIR[ DIR]" will be appended to VARIABLE
24706# "DIRP[:DIRP]::[DIRA:]DIRA"
24707#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24708#       "DIRA[ DIRA]" will be appended to VARIABLE
24709# "DIR[:DIR]"
24710#       VARIABLE will be replaced by "DIR[ DIR]"
24711func_munge_path_list ()
24712{
24713    case x$2 in
24714    x)
24715        ;;
24716    *:)
24717        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24718        ;;
24719    x:*)
24720        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24721        ;;
24722    *::*)
24723        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24724        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24725        ;;
24726    *)
24727        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24728        ;;
24729    esac
24730}
24731
24732
24733# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24734func_cc_basename ()
24735{
24736    for cc_temp in $*""; do
24737      case $cc_temp in
24738        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24739        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24740        \-*) ;;
24741        *) break;;
24742      esac
24743    done
24744    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24745}
24746
24747
24748# ### END FUNCTIONS SHARED WITH CONFIGURE
24749
24750_LT_EOF
24751
24752  case $host_os in
24753  aix3*)
24754    cat <<\_LT_EOF >> "$cfgfile"
24755# AIX sometimes has problems with the GCC collect2 program.  For some
24756# reason, if we set the COLLECT_NAMES environment variable, the problems
24757# vanish in a puff of smoke.
24758if test set != "${COLLECT_NAMES+set}"; then
24759  COLLECT_NAMES=
24760  export COLLECT_NAMES
24761fi
24762_LT_EOF
24763    ;;
24764  esac
24765
24766
24767
24768ltmain=$ac_aux_dir/ltmain.sh
24769
24770
24771  # We use sed instead of cat because bash on DJGPP gets confused if
24772  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24773  # text mode, it properly converts lines to CR/LF.  This bash problem
24774  # is reportedly fixed, but why not run on old versions too?
24775  $SED '$q' "$ltmain" >> "$cfgfile" \
24776     || (rm -f "$cfgfile"; exit 1)
24777
24778   mv -f "$cfgfile" "$ofile" ||
24779    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24780  chmod +x "$ofile"
24781
24782 ;;
24783
24784  esac
24785done # for ac_tag
24786
24787
24788as_fn_exit 0
24789_ACEOF
24790ac_clean_files=$ac_clean_files_save
24791
24792test $ac_write_fail = 0 ||
24793  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24794
24795
24796# configure is writing to config.log, and then calls config.status.
24797# config.status does its own redirection, appending to config.log.
24798# Unfortunately, on DOS this fails, as config.log is still kept open
24799# by configure, so config.status won't be able to write to it; its
24800# output is simply discarded.  So we exec the FD to /dev/null,
24801# effectively closing config.log, so it can be properly (re)opened and
24802# appended to by config.status.  When coming back to configure, we
24803# need to make the FD available again.
24804if test "$no_create" != yes; then
24805  ac_cs_success=:
24806  ac_config_status_args=
24807  test "$silent" = yes &&
24808    ac_config_status_args="$ac_config_status_args --quiet"
24809  exec 5>/dev/null
24810  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24811  exec 5>>config.log
24812  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24813  # would make configure fail if this is the last instruction.
24814  $ac_cs_success || as_fn_exit 1
24815fi
24816if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24818printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24819fi
24820
24821
24822
24823echo ""
24824echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
24825echo ""
24826echo "  Configuration"
24827echo "    XDM support.........: ${have_xdmcp}"
24828echo "    sendmsg fd passing..: ${have_sendmsg}"
24829echo "    Build unit tests....: ${HAVE_CHECK}"
24830echo "      with html results.: ${HTML_CHECK_RESULT}"
24831echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
24832echo ""
24833echo "  X11 extensions"
24834echo "    Composite...........: ${BUILD_COMPOSITE}"
24835echo "    Damage..............: ${BUILD_DAMAGE}"
24836echo "    Dbe.................: ${BUILD_DBE}"
24837echo "    Dpms................: ${BUILD_DPMS}"
24838echo "    Dri2................: ${BUILD_DRI2}"
24839echo "    Dri3................: ${BUILD_DRI3}"
24840echo "    GenericEvent........: ${BUILD_GE}"
24841echo "    Glx.................: ${BUILD_GLX}"
24842echo "    Randr...............: ${BUILD_RANDR}"
24843echo "    Record..............: ${BUILD_RECORD}"
24844echo "    Render..............: ${BUILD_RENDER}"
24845echo "    Resource............: ${BUILD_RESOURCE}"
24846echo "    Screensaver.........: ${BUILD_SCREENSAVER}"
24847echo "    selinux.............: ${BUILD_SELINUX}"
24848echo "    Shape...............: ${BUILD_SHAPE}"
24849echo "    Shm.................: ${BUILD_SHM}"
24850echo "    Sync................: ${BUILD_SYNC}"
24851echo "    Xevie...............: ${BUILD_XEVIE}"
24852echo "    Xfixes..............: ${BUILD_XFIXES}"
24853echo "    Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
24854echo "    xinerama............: ${BUILD_XINERAMA}"
24855echo "    xinput..............: ${BUILD_XINPUT}"
24856echo "    xkb.................: ${BUILD_XKB}"
24857echo "    xprint..............: ${BUILD_XPRINT}"
24858echo "    xtest...............: ${BUILD_XTEST}"
24859echo "    xv..................: ${BUILD_XV}"
24860echo "    xvmc................: ${BUILD_XVMC}"
24861echo ""
24862echo "  Used CFLAGS:"
24863echo "    CPPFLAGS............: ${CPPFLAGS}"
24864echo "    CFLAGS..............: ${CFLAGS}"
24865echo ""
24866echo "  Installation:"
24867echo "    Prefix..............: ${prefix}"
24868echo ""
24869
24870