configure revision 709d36bb
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libxcb 1.11.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xcb
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='libxcb'
593PACKAGE_TARNAME='libxcb'
594PACKAGE_VERSION='1.11.1'
595PACKAGE_STRING='libxcb 1.11.1'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xcb'
597PACKAGE_URL=''
598
599ac_unique_file="xcb.pc.in"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640LAUNCHD
641BUILD_XVMC_FALSE
642BUILD_XVMC_TRUE
643BUILD_XV_FALSE
644BUILD_XV_TRUE
645BUILD_XTEST_FALSE
646BUILD_XTEST_TRUE
647BUILD_SELINUX_FALSE
648BUILD_SELINUX_TRUE
649BUILD_XPRINT_FALSE
650BUILD_XPRINT_TRUE
651BUILD_XKB_FALSE
652BUILD_XKB_TRUE
653BUILD_XINPUT_FALSE
654BUILD_XINPUT_TRUE
655BUILD_XINERAMA_FALSE
656BUILD_XINERAMA_TRUE
657BUILD_XFREE86_DRI_FALSE
658BUILD_XFREE86_DRI_TRUE
659BUILD_XFIXES_FALSE
660BUILD_XFIXES_TRUE
661BUILD_XEVIE_FALSE
662BUILD_XEVIE_TRUE
663BUILD_SYNC_FALSE
664BUILD_SYNC_TRUE
665BUILD_SHM_FALSE
666BUILD_SHM_TRUE
667BUILD_SHAPE_FALSE
668BUILD_SHAPE_TRUE
669BUILD_SCREENSAVER_FALSE
670BUILD_SCREENSAVER_TRUE
671BUILD_RESOURCE_FALSE
672BUILD_RESOURCE_TRUE
673BUILD_RENDER_FALSE
674BUILD_RENDER_TRUE
675BUILD_RECORD_FALSE
676BUILD_RECORD_TRUE
677BUILD_RANDR_FALSE
678BUILD_RANDR_TRUE
679BUILD_PRESENT_FALSE
680BUILD_PRESENT_TRUE
681BUILD_GLX_FALSE
682BUILD_GLX_TRUE
683BUILD_DRI3_FALSE
684BUILD_DRI3_TRUE
685BUILD_DRI2_FALSE
686BUILD_DRI2_TRUE
687BUILD_DPMS_FALSE
688BUILD_DPMS_TRUE
689BUILD_DAMAGE_FALSE
690BUILD_DAMAGE_TRUE
691BUILD_COMPOSITE_FALSE
692BUILD_COMPOSITE_TRUE
693xcbincludedir
694XCB_HAVE_WIN32_FALSE
695XCB_HAVE_WIN32_TRUE
696lt_enable_auto_import
697XCBPROTO_XCBPYTHONDIR
698XCBPROTO_VERSION
699XCBPROTO_XCBINCLUDEDIR
700NEEDED
701XDMCP_LIBS
702XDMCP_CFLAGS
703NEEDED_LIBS
704NEEDED_CFLAGS
705XCBPROTO_LIBS
706XCBPROTO_CFLAGS
707HTML_CHECK_RESULT
708XSLTPROC
709HAVE_CHECK_FALSE
710HAVE_CHECK_TRUE
711CHECK_LIBS
712CHECK_CFLAGS
713HAVE_DOXYGEN_FALSE
714HAVE_DOXYGEN_TRUE
715HAVE_DOT_FALSE
716HAVE_DOT_TRUE
717HAVE_DOT
718DOT
719DOXYGEN
720ENABLE_DEVEL_DOCS_FALSE
721ENABLE_DEVEL_DOCS_TRUE
722MAN_SUBSTS
723XORG_MAN_PAGE
724ADMIN_MAN_DIR
725DRIVER_MAN_DIR
726MISC_MAN_DIR
727FILE_MAN_DIR
728LIB_MAN_DIR
729APP_MAN_DIR
730ADMIN_MAN_SUFFIX
731DRIVER_MAN_SUFFIX
732MISC_MAN_SUFFIX
733FILE_MAN_SUFFIX
734LIB_MAN_SUFFIX
735APP_MAN_SUFFIX
736INSTALL_CMD
737PKG_CONFIG_LIBDIR
738PKG_CONFIG_PATH
739PKG_CONFIG
740CHANGELOG_CMD
741STRICT_CFLAGS
742CWARNFLAGS
743BASE_CFLAGS
744OTOOL64
745OTOOL
746LIPO
747NMEDIT
748DSYMUTIL
749MANIFEST_TOOL
750RANLIB
751ac_ct_AR
752AR
753LN_S
754NM
755ac_ct_DUMPBIN
756DUMPBIN
757LD
758FGREP
759SED
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768LIBTOOL
769OBJDUMP
770DLLTOOL
771AS
772EGREP
773GREP
774CPP
775am__fastdepCC_FALSE
776am__fastdepCC_TRUE
777CCDEPMODE
778am__nodep
779AMDEPBACKSLASH
780AMDEP_FALSE
781AMDEP_TRUE
782am__quote
783am__include
784DEPDIR
785OBJEXT
786EXEEXT
787ac_ct_CC
788CPPFLAGS
789LDFLAGS
790CFLAGS
791CC
792pkgpyexecdir
793pyexecdir
794pkgpythondir
795pythondir
796PYTHON_PLATFORM
797PYTHON_EXEC_PREFIX
798PYTHON_PREFIX
799PYTHON_VERSION
800PYTHON
801AM_BACKSLASH
802AM_DEFAULT_VERBOSITY
803AM_DEFAULT_V
804AM_V
805am__untar
806am__tar
807AMTAR
808am__leading_dot
809SET_MAKE
810AWK
811mkdir_p
812MKDIR_P
813INSTALL_STRIP_PROGRAM
814STRIP
815install_sh
816MAKEINFO
817AUTOHEADER
818AUTOMAKE
819AUTOCONF
820ACLOCAL
821VERSION
822PACKAGE
823CYGPATH_W
824am__isrc
825INSTALL_DATA
826INSTALL_SCRIPT
827INSTALL_PROGRAM
828target_alias
829host_alias
830build_alias
831LIBS
832ECHO_T
833ECHO_N
834ECHO_C
835DEFS
836mandir
837localedir
838libdir
839psdir
840pdfdir
841dvidir
842htmldir
843infodir
844docdir
845oldincludedir
846includedir
847runstatedir
848localstatedir
849sharedstatedir
850sysconfdir
851datadir
852datarootdir
853libexecdir
854sbindir
855bindir
856program_transform_name
857prefix
858exec_prefix
859PACKAGE_URL
860PACKAGE_BUGREPORT
861PACKAGE_STRING
862PACKAGE_VERSION
863PACKAGE_TARNAME
864PACKAGE_NAME
865PATH_SEPARATOR
866SHELL'
867ac_subst_files=''
868ac_user_opts='
869enable_option_checking
870enable_silent_rules
871enable_dependency_tracking
872enable_shared
873enable_static
874with_pic
875enable_fast_install
876with_gnu_ld
877with_sysroot
878enable_libtool_lock
879enable_selective_werror
880enable_strict_compilation
881enable_devel_docs
882with_doxygen
883enable_sendfds
884with_queue_size
885enable_composite
886enable_damage
887enable_dpms
888enable_dri2
889enable_dri3
890enable_glx
891enable_present
892enable_randr
893enable_record
894enable_render
895enable_resource
896enable_screensaver
897enable_shape
898enable_shm
899enable_sync
900enable_xevie
901enable_xfixes
902enable_xfree86_dri
903enable_xinerama
904enable_xinput
905enable_xkb
906enable_xprint
907enable_selinux
908enable_xtest
909enable_xv
910enable_xvmc
911with_launchd
912'
913      ac_precious_vars='build_alias
914host_alias
915target_alias
916PYTHON
917CC
918CFLAGS
919LDFLAGS
920LIBS
921CPPFLAGS
922CPP
923PKG_CONFIG
924PKG_CONFIG_PATH
925PKG_CONFIG_LIBDIR
926DOXYGEN
927DOT
928CHECK_CFLAGS
929CHECK_LIBS
930XCBPROTO_CFLAGS
931XCBPROTO_LIBS
932NEEDED_CFLAGS
933NEEDED_LIBS
934XDMCP_CFLAGS
935XDMCP_LIBS'
936
937
938# Initialize some variables set by options.
939ac_init_help=
940ac_init_version=false
941ac_unrecognized_opts=
942ac_unrecognized_sep=
943# The variables have the same names as the options, with
944# dashes changed to underlines.
945cache_file=/dev/null
946exec_prefix=NONE
947no_create=
948no_recursion=
949prefix=NONE
950program_prefix=NONE
951program_suffix=NONE
952program_transform_name=s,x,x,
953silent=
954site=
955srcdir=
956verbose=
957x_includes=NONE
958x_libraries=NONE
959
960# Installation directory options.
961# These are left unexpanded so users can "make install exec_prefix=/foo"
962# and all the variables that are supposed to be based on exec_prefix
963# by default will actually change.
964# Use braces instead of parens because sh, perl, etc. also accept them.
965# (The list follows the same order as the GNU Coding Standards.)
966bindir='${exec_prefix}/bin'
967sbindir='${exec_prefix}/sbin'
968libexecdir='${exec_prefix}/libexec'
969datarootdir='${prefix}/share'
970datadir='${datarootdir}'
971sysconfdir='${prefix}/etc'
972sharedstatedir='${prefix}/com'
973localstatedir='${prefix}/var'
974runstatedir='${localstatedir}/run'
975includedir='${prefix}/include'
976oldincludedir='/usr/include'
977docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
978infodir='${datarootdir}/info'
979htmldir='${docdir}'
980dvidir='${docdir}'
981pdfdir='${docdir}'
982psdir='${docdir}'
983libdir='${exec_prefix}/lib'
984localedir='${datarootdir}/locale'
985mandir='${datarootdir}/man'
986
987ac_prev=
988ac_dashdash=
989for ac_option
990do
991  # If the previous option needs an argument, assign it.
992  if test -n "$ac_prev"; then
993    eval $ac_prev=\$ac_option
994    ac_prev=
995    continue
996  fi
997
998  case $ac_option in
999  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000  *=)   ac_optarg= ;;
1001  *)    ac_optarg=yes ;;
1002  esac
1003
1004  # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006  case $ac_dashdash$ac_option in
1007  --)
1008    ac_dashdash=yes ;;
1009
1010  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011    ac_prev=bindir ;;
1012  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013    bindir=$ac_optarg ;;
1014
1015  -build | --build | --buil | --bui | --bu)
1016    ac_prev=build_alias ;;
1017  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018    build_alias=$ac_optarg ;;
1019
1020  -cache-file | --cache-file | --cache-fil | --cache-fi \
1021  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022    ac_prev=cache_file ;;
1023  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025    cache_file=$ac_optarg ;;
1026
1027  --config-cache | -C)
1028    cache_file=config.cache ;;
1029
1030  -datadir | --datadir | --datadi | --datad)
1031    ac_prev=datadir ;;
1032  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033    datadir=$ac_optarg ;;
1034
1035  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036  | --dataroo | --dataro | --datar)
1037    ac_prev=datarootdir ;;
1038  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040    datarootdir=$ac_optarg ;;
1041
1042  -disable-* | --disable-*)
1043    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044    # Reject names that are not valid shell variable names.
1045    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046      as_fn_error $? "invalid feature name: $ac_useropt"
1047    ac_useropt_orig=$ac_useropt
1048    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049    case $ac_user_opts in
1050      *"
1051"enable_$ac_useropt"
1052"*) ;;
1053      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054	 ac_unrecognized_sep=', ';;
1055    esac
1056    eval enable_$ac_useropt=no ;;
1057
1058  -docdir | --docdir | --docdi | --doc | --do)
1059    ac_prev=docdir ;;
1060  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061    docdir=$ac_optarg ;;
1062
1063  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064    ac_prev=dvidir ;;
1065  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066    dvidir=$ac_optarg ;;
1067
1068  -enable-* | --enable-*)
1069    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070    # Reject names that are not valid shell variable names.
1071    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072      as_fn_error $? "invalid feature name: $ac_useropt"
1073    ac_useropt_orig=$ac_useropt
1074    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075    case $ac_user_opts in
1076      *"
1077"enable_$ac_useropt"
1078"*) ;;
1079      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080	 ac_unrecognized_sep=', ';;
1081    esac
1082    eval enable_$ac_useropt=\$ac_optarg ;;
1083
1084  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086  | --exec | --exe | --ex)
1087    ac_prev=exec_prefix ;;
1088  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090  | --exec=* | --exe=* | --ex=*)
1091    exec_prefix=$ac_optarg ;;
1092
1093  -gas | --gas | --ga | --g)
1094    # Obsolete; use --with-gas.
1095    with_gas=yes ;;
1096
1097  -help | --help | --hel | --he | -h)
1098    ac_init_help=long ;;
1099  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100    ac_init_help=recursive ;;
1101  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102    ac_init_help=short ;;
1103
1104  -host | --host | --hos | --ho)
1105    ac_prev=host_alias ;;
1106  -host=* | --host=* | --hos=* | --ho=*)
1107    host_alias=$ac_optarg ;;
1108
1109  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110    ac_prev=htmldir ;;
1111  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112  | --ht=*)
1113    htmldir=$ac_optarg ;;
1114
1115  -includedir | --includedir | --includedi | --included | --include \
1116  | --includ | --inclu | --incl | --inc)
1117    ac_prev=includedir ;;
1118  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119  | --includ=* | --inclu=* | --incl=* | --inc=*)
1120    includedir=$ac_optarg ;;
1121
1122  -infodir | --infodir | --infodi | --infod | --info | --inf)
1123    ac_prev=infodir ;;
1124  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125    infodir=$ac_optarg ;;
1126
1127  -libdir | --libdir | --libdi | --libd)
1128    ac_prev=libdir ;;
1129  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130    libdir=$ac_optarg ;;
1131
1132  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133  | --libexe | --libex | --libe)
1134    ac_prev=libexecdir ;;
1135  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136  | --libexe=* | --libex=* | --libe=*)
1137    libexecdir=$ac_optarg ;;
1138
1139  -localedir | --localedir | --localedi | --localed | --locale)
1140    ac_prev=localedir ;;
1141  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142    localedir=$ac_optarg ;;
1143
1144  -localstatedir | --localstatedir | --localstatedi | --localstated \
1145  | --localstate | --localstat | --localsta | --localst | --locals)
1146    ac_prev=localstatedir ;;
1147  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149    localstatedir=$ac_optarg ;;
1150
1151  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152    ac_prev=mandir ;;
1153  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154    mandir=$ac_optarg ;;
1155
1156  -nfp | --nfp | --nf)
1157    # Obsolete; use --without-fp.
1158    with_fp=no ;;
1159
1160  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161  | --no-cr | --no-c | -n)
1162    no_create=yes ;;
1163
1164  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166    no_recursion=yes ;;
1167
1168  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170  | --oldin | --oldi | --old | --ol | --o)
1171    ac_prev=oldincludedir ;;
1172  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175    oldincludedir=$ac_optarg ;;
1176
1177  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178    ac_prev=prefix ;;
1179  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180    prefix=$ac_optarg ;;
1181
1182  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183  | --program-pre | --program-pr | --program-p)
1184    ac_prev=program_prefix ;;
1185  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187    program_prefix=$ac_optarg ;;
1188
1189  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190  | --program-suf | --program-su | --program-s)
1191    ac_prev=program_suffix ;;
1192  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194    program_suffix=$ac_optarg ;;
1195
1196  -program-transform-name | --program-transform-name \
1197  | --program-transform-nam | --program-transform-na \
1198  | --program-transform-n | --program-transform- \
1199  | --program-transform | --program-transfor \
1200  | --program-transfo | --program-transf \
1201  | --program-trans | --program-tran \
1202  | --progr-tra | --program-tr | --program-t)
1203    ac_prev=program_transform_name ;;
1204  -program-transform-name=* | --program-transform-name=* \
1205  | --program-transform-nam=* | --program-transform-na=* \
1206  | --program-transform-n=* | --program-transform-=* \
1207  | --program-transform=* | --program-transfor=* \
1208  | --program-transfo=* | --program-transf=* \
1209  | --program-trans=* | --program-tran=* \
1210  | --progr-tra=* | --program-tr=* | --program-t=*)
1211    program_transform_name=$ac_optarg ;;
1212
1213  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214    ac_prev=pdfdir ;;
1215  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216    pdfdir=$ac_optarg ;;
1217
1218  -psdir | --psdir | --psdi | --psd | --ps)
1219    ac_prev=psdir ;;
1220  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221    psdir=$ac_optarg ;;
1222
1223  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224  | -silent | --silent | --silen | --sile | --sil)
1225    silent=yes ;;
1226
1227  -runstatedir | --runstatedir | --runstatedi | --runstated \
1228  | --runstate | --runstat | --runsta | --runst | --runs \
1229  | --run | --ru | --r)
1230    ac_prev=runstatedir ;;
1231  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1232  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1233  | --run=* | --ru=* | --r=*)
1234    runstatedir=$ac_optarg ;;
1235
1236  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237    ac_prev=sbindir ;;
1238  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239  | --sbi=* | --sb=*)
1240    sbindir=$ac_optarg ;;
1241
1242  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244  | --sharedst | --shareds | --shared | --share | --shar \
1245  | --sha | --sh)
1246    ac_prev=sharedstatedir ;;
1247  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250  | --sha=* | --sh=*)
1251    sharedstatedir=$ac_optarg ;;
1252
1253  -site | --site | --sit)
1254    ac_prev=site ;;
1255  -site=* | --site=* | --sit=*)
1256    site=$ac_optarg ;;
1257
1258  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259    ac_prev=srcdir ;;
1260  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261    srcdir=$ac_optarg ;;
1262
1263  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264  | --syscon | --sysco | --sysc | --sys | --sy)
1265    ac_prev=sysconfdir ;;
1266  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268    sysconfdir=$ac_optarg ;;
1269
1270  -target | --target | --targe | --targ | --tar | --ta | --t)
1271    ac_prev=target_alias ;;
1272  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273    target_alias=$ac_optarg ;;
1274
1275  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276    verbose=yes ;;
1277
1278  -version | --version | --versio | --versi | --vers | -V)
1279    ac_init_version=: ;;
1280
1281  -with-* | --with-*)
1282    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283    # Reject names that are not valid shell variable names.
1284    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285      as_fn_error $? "invalid package name: $ac_useropt"
1286    ac_useropt_orig=$ac_useropt
1287    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288    case $ac_user_opts in
1289      *"
1290"with_$ac_useropt"
1291"*) ;;
1292      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293	 ac_unrecognized_sep=', ';;
1294    esac
1295    eval with_$ac_useropt=\$ac_optarg ;;
1296
1297  -without-* | --without-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      as_fn_error $? "invalid package name: $ac_useropt"
1302    ac_useropt_orig=$ac_useropt
1303    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304    case $ac_user_opts in
1305      *"
1306"with_$ac_useropt"
1307"*) ;;
1308      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1309	 ac_unrecognized_sep=', ';;
1310    esac
1311    eval with_$ac_useropt=no ;;
1312
1313  --x)
1314    # Obsolete; use --with-x.
1315    with_x=yes ;;
1316
1317  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318  | --x-incl | --x-inc | --x-in | --x-i)
1319    ac_prev=x_includes ;;
1320  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322    x_includes=$ac_optarg ;;
1323
1324  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326    ac_prev=x_libraries ;;
1327  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329    x_libraries=$ac_optarg ;;
1330
1331  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1332Try \`$0 --help' for more information"
1333    ;;
1334
1335  *=*)
1336    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1337    # Reject names that are not valid shell variable names.
1338    case $ac_envvar in #(
1339      '' | [0-9]* | *[!_$as_cr_alnum]* )
1340      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1341    esac
1342    eval $ac_envvar=\$ac_optarg
1343    export $ac_envvar ;;
1344
1345  *)
1346    # FIXME: should be removed in autoconf 3.0.
1347    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1351    ;;
1352
1353  esac
1354done
1355
1356if test -n "$ac_prev"; then
1357  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358  as_fn_error $? "missing argument to $ac_option"
1359fi
1360
1361if test -n "$ac_unrecognized_opts"; then
1362  case $enable_option_checking in
1363    no) ;;
1364    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1365    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366  esac
1367fi
1368
1369# Check all directory arguments for consistency.
1370for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1371		datadir sysconfdir sharedstatedir localstatedir includedir \
1372		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1373		libdir localedir mandir runstatedir
1374do
1375  eval ac_val=\$$ac_var
1376  # Remove trailing slashes.
1377  case $ac_val in
1378    */ )
1379      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1380      eval $ac_var=\$ac_val;;
1381  esac
1382  # Be sure to have absolute directory names.
1383  case $ac_val in
1384    [\\/$]* | ?:[\\/]* )  continue;;
1385    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1386  esac
1387  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1388done
1389
1390# There might be people who depend on the old broken behavior: `$host'
1391# used to hold the argument of --host etc.
1392# FIXME: To remove some day.
1393build=$build_alias
1394host=$host_alias
1395target=$target_alias
1396
1397# FIXME: To remove some day.
1398if test "x$host_alias" != x; then
1399  if test "x$build_alias" = x; then
1400    cross_compiling=maybe
1401  elif test "x$build_alias" != "x$host_alias"; then
1402    cross_compiling=yes
1403  fi
1404fi
1405
1406ac_tool_prefix=
1407test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409test "$silent" = yes && exec 6>/dev/null
1410
1411
1412ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413ac_ls_di=`ls -di .` &&
1414ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415  as_fn_error $? "working directory cannot be determined"
1416test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1417  as_fn_error $? "pwd does not report name of working directory"
1418
1419
1420# Find the source files, if location was not specified.
1421if test -z "$srcdir"; then
1422  ac_srcdir_defaulted=yes
1423  # Try the directory containing this script, then the parent directory.
1424  ac_confdir=`$as_dirname -- "$as_myself" ||
1425$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1426	 X"$as_myself" : 'X\(//\)[^/]' \| \
1427	 X"$as_myself" : 'X\(//\)$' \| \
1428	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1429$as_echo X"$as_myself" |
1430    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431	    s//\1/
1432	    q
1433	  }
1434	  /^X\(\/\/\)[^/].*/{
1435	    s//\1/
1436	    q
1437	  }
1438	  /^X\(\/\/\)$/{
1439	    s//\1/
1440	    q
1441	  }
1442	  /^X\(\/\).*/{
1443	    s//\1/
1444	    q
1445	  }
1446	  s/.*/./; q'`
1447  srcdir=$ac_confdir
1448  if test ! -r "$srcdir/$ac_unique_file"; then
1449    srcdir=..
1450  fi
1451else
1452  ac_srcdir_defaulted=no
1453fi
1454if test ! -r "$srcdir/$ac_unique_file"; then
1455  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1456  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1457fi
1458ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459ac_abs_confdir=`(
1460	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1461	pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464  srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474  eval ac_env_${ac_var}_value=\$${ac_var}
1475  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
1478
1479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483  # Omit some internal or obsolete options to make the list less imposing.
1484  # This message is too long to be a string in the A/UX 3.1 sh.
1485  cat <<_ACEOF
1486\`configure' configures libxcb 1.11.1 to adapt to many kinds of systems.
1487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE.  See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496  -h, --help              display this help and exit
1497      --help=short        display options specific to this package
1498      --help=recursive    display the short help of all the included packages
1499  -V, --version           display version information and exit
1500  -q, --quiet, --silent   do not print \`checking ...' messages
1501      --cache-file=FILE   cache test results in FILE [disabled]
1502  -C, --config-cache      alias for \`--cache-file=config.cache'
1503  -n, --no-create         do not create output files
1504      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1505
1506Installation directories:
1507  --prefix=PREFIX         install architecture-independent files in PREFIX
1508                          [$ac_default_prefix]
1509  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1510                          [PREFIX]
1511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
1520  --bindir=DIR            user executables [EPREFIX/bin]
1521  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1522  --libexecdir=DIR        program executables [EPREFIX/libexec]
1523  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1524  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1525  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1526  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1527  --libdir=DIR            object code libraries [EPREFIX/lib]
1528  --includedir=DIR        C header files [PREFIX/include]
1529  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1530  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1531  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1532  --infodir=DIR           info documentation [DATAROOTDIR/info]
1533  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1534  --mandir=DIR            man documentation [DATAROOTDIR/man]
1535  --docdir=DIR            documentation root [DATAROOTDIR/doc/libxcb]
1536  --htmldir=DIR           html documentation [DOCDIR]
1537  --dvidir=DIR            dvi documentation [DOCDIR]
1538  --pdfdir=DIR            pdf documentation [DOCDIR]
1539  --psdir=DIR             ps documentation [DOCDIR]
1540_ACEOF
1541
1542  cat <<\_ACEOF
1543
1544Program names:
1545  --program-prefix=PREFIX            prepend PREFIX to installed program names
1546  --program-suffix=SUFFIX            append SUFFIX to installed program names
1547  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1548
1549System types:
1550  --build=BUILD     configure for building on BUILD [guessed]
1551  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1552_ACEOF
1553fi
1554
1555if test -n "$ac_init_help"; then
1556  case $ac_init_help in
1557     short | recursive ) echo "Configuration of libxcb 1.11.1:";;
1558   esac
1559  cat <<\_ACEOF
1560
1561Optional Features:
1562  --disable-option-checking  ignore unrecognized --enable/--with options
1563  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1564  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1565  --enable-silent-rules   less verbose build output (undo: "make V=1")
1566  --disable-silent-rules  verbose build output (undo: "make V=0")
1567  --enable-dependency-tracking
1568                          do not reject slow dependency extractors
1569  --disable-dependency-tracking
1570                          speeds up one-time build
1571  --enable-shared[=PKGS]  build shared libraries [default=yes]
1572  --enable-static[=PKGS]  build static libraries [default=yes]
1573  --enable-fast-install[=PKGS]
1574                          optimize for fast installation [default=yes]
1575  --disable-libtool-lock  avoid locking (might break parallel builds)
1576  --disable-selective-werror
1577                          Turn off selective compiler errors. (default:
1578                          enabled)
1579  --enable-strict-compilation
1580                          Enable all warnings from compiler and make them
1581                          errors (default: disabled)
1582  --enable-devel-docs     Enable building the developer documentation
1583                          (default: yes)
1584  --disable-sendfds       Support FD passing (default: auto)
1585  --enable-composite      Build XCB Composite Extension (default: "yes")
1586  --enable-damage         Build XCB Damage Extension (default: "yes")
1587  --enable-dpms           Build XCB DPMS Extension (default: "yes")
1588  --enable-dri2           Build XCB DRI2 Extension (default: "yes")
1589  --enable-dri3           Build XCB DRI3 Extension (default: "$sendfds")
1590  --enable-glx            Build XCB GLX Extension (default: "yes")
1591  --enable-present        Build XCB Present Extension (default: "yes")
1592  --enable-randr          Build XCB RandR Extension (default: "yes")
1593  --enable-record         Build XCB Record Extension (default: "yes")
1594  --enable-render         Build XCB Render Extension (default: "yes")
1595  --enable-resource       Build XCB Resource Extension (default: "yes")
1596  --enable-screensaver    Build XCB Screensaver Extension (default: "yes")
1597  --enable-shape          Build XCB Shape Extension (default: "yes")
1598  --enable-shm            Build XCB Shm Extension (default: "yes")
1599  --enable-sync           Build XCB Sync Extension (default: "yes")
1600  --enable-xevie          Build XCB Xevie Extension (default: "yes")
1601  --enable-xfixes         Build XCB XFixes Extension (default: "yes")
1602  --enable-xfree86-dri    Build XCB XFree86-DRI Extension (default: "yes")
1603  --enable-xinerama       Build XCB Xinerama Extension (default: "yes")
1604  --enable-xinput         Build XCB XInput Extension (default: "no")
1605  --enable-xkb            Build XCB XKB Extension (default: "yes")
1606  --enable-xprint         Build XCB Xprint Extension (default: "yes")
1607  --enable-selinux        Build XCB SELinux Extension (default: "no")
1608  --enable-xtest          Build XCB XTest Extension (default: "yes")
1609  --enable-xv             Build XCB Xv Extension (default: "yes")
1610  --enable-xvmc           Build XCB XvMC Extension (default: "yes")
1611
1612Optional Packages:
1613  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1614  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1615  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1616                          both]
1617  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1618  --with-sysroot=DIR Search for dependent libraries within DIR
1619                        (or the compiler's sysroot if not specified).
1620  --with-doxygen          Use doxygen to regenerate documentation (default:
1621                          auto)
1622  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
1623  --with-launchd          Build with support for Apple's launchd (default:
1624                          auto)
1625
1626Some influential environment variables:
1627  PYTHON      the Python interpreter
1628  CC          C compiler command
1629  CFLAGS      C compiler flags
1630  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1631              nonstandard directory <lib dir>
1632  LIBS        libraries to pass to the linker, e.g. -l<library>
1633  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1634              you have headers in a nonstandard directory <include dir>
1635  CPP         C preprocessor
1636  PKG_CONFIG  path to pkg-config utility
1637  PKG_CONFIG_PATH
1638              directories to add to pkg-config's search path
1639  PKG_CONFIG_LIBDIR
1640              path overriding pkg-config's built-in search path
1641  DOXYGEN     Path to doxygen command
1642  DOT         Path to the dot graphics utility
1643  CHECK_CFLAGS
1644              C compiler flags for CHECK, overriding pkg-config
1645  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
1646  XCBPROTO_CFLAGS
1647              C compiler flags for XCBPROTO, overriding pkg-config
1648  XCBPROTO_LIBS
1649              linker flags for XCBPROTO, overriding pkg-config
1650  NEEDED_CFLAGS
1651              C compiler flags for NEEDED, overriding pkg-config
1652  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
1653  XDMCP_CFLAGS
1654              C compiler flags for XDMCP, overriding pkg-config
1655  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1656
1657Use these variables to override the choices made by `configure' or to help
1658it to find libraries and programs with nonstandard names/locations.
1659
1660Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>.
1661_ACEOF
1662ac_status=$?
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666  # If there are subdirs, report their specific --help.
1667  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1668    test -d "$ac_dir" ||
1669      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670      continue
1671    ac_builddir=.
1672
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
1676  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1677  # A ".." for each directory in $ac_dir_suffix.
1678  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1679  case $ac_top_builddir_sub in
1680  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682  esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
1688
1689case $srcdir in
1690  .)  # We are building in place.
1691    ac_srcdir=.
1692    ac_top_srcdir=$ac_top_builddir_sub
1693    ac_abs_top_srcdir=$ac_pwd ;;
1694  [\\/]* | ?:[\\/]* )  # Absolute name.
1695    ac_srcdir=$srcdir$ac_dir_suffix;
1696    ac_top_srcdir=$srcdir
1697    ac_abs_top_srcdir=$srcdir ;;
1698  *) # Relative name.
1699    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700    ac_top_srcdir=$ac_top_build_prefix$srcdir
1701    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702esac
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705    cd "$ac_dir" || { ac_status=$?; continue; }
1706    # Check for guested configure.
1707    if test -f "$ac_srcdir/configure.gnu"; then
1708      echo &&
1709      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710    elif test -f "$ac_srcdir/configure"; then
1711      echo &&
1712      $SHELL "$ac_srcdir/configure" --help=recursive
1713    else
1714      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715    fi || ac_status=$?
1716    cd "$ac_pwd" || { ac_status=$?; break; }
1717  done
1718fi
1719
1720test -n "$ac_init_help" && exit $ac_status
1721if $ac_init_version; then
1722  cat <<\_ACEOF
1723libxcb configure 1.11.1
1724generated by GNU Autoconf 2.69
1725
1726Copyright (C) 2012 Free Software Foundation, Inc.
1727This configure script is free software; the Free Software Foundation
1728gives unlimited permission to copy, distribute and modify it.
1729_ACEOF
1730  exit
1731fi
1732
1733## ------------------------ ##
1734## Autoconf initialization. ##
1735## ------------------------ ##
1736
1737# ac_fn_c_try_compile LINENO
1738# --------------------------
1739# Try to compile conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_compile ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  rm -f conftest.$ac_objext
1744  if { { ac_try="$ac_compile"
1745case "(($ac_try" in
1746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747  *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751  (eval "$ac_compile") 2>conftest.err
1752  ac_status=$?
1753  if test -s conftest.err; then
1754    grep -v '^ *+' conftest.err >conftest.er1
1755    cat conftest.er1 >&5
1756    mv -f conftest.er1 conftest.err
1757  fi
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; } && {
1760	 test -z "$ac_c_werror_flag" ||
1761	 test ! -s conftest.err
1762       } && test -s conftest.$ac_objext; then :
1763  ac_retval=0
1764else
1765  $as_echo "$as_me: failed program was:" >&5
1766sed 's/^/| /' conftest.$ac_ext >&5
1767
1768	ac_retval=1
1769fi
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771  as_fn_set_status $ac_retval
1772
1773} # ac_fn_c_try_compile
1774
1775# ac_fn_c_try_cpp LINENO
1776# ----------------------
1777# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_cpp ()
1779{
1780  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781  if { { ac_try="$ac_cpp conftest.$ac_ext"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1789  ac_status=$?
1790  if test -s conftest.err; then
1791    grep -v '^ *+' conftest.err >conftest.er1
1792    cat conftest.er1 >&5
1793    mv -f conftest.er1 conftest.err
1794  fi
1795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796  test $ac_status = 0; } > conftest.i && {
1797	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1798	 test ! -s conftest.err
1799       }; then :
1800  ac_retval=0
1801else
1802  $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805    ac_retval=1
1806fi
1807  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808  as_fn_set_status $ac_retval
1809
1810} # ac_fn_c_try_cpp
1811
1812# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1813# -------------------------------------------------------
1814# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1815# the include files in INCLUDES and setting the cache variable VAR
1816# accordingly.
1817ac_fn_c_check_header_mongrel ()
1818{
1819  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820  if eval \${$3+:} false; then :
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825fi
1826eval ac_res=\$$3
1827	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829else
1830  # Is the header compilable?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1832$as_echo_n "checking $2 usability... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h.  */
1835$4
1836#include <$2>
1837_ACEOF
1838if ac_fn_c_try_compile "$LINENO"; then :
1839  ac_header_compiler=yes
1840else
1841  ac_header_compiler=no
1842fi
1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1845$as_echo "$ac_header_compiler" >&6; }
1846
1847# Is the header present?
1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1849$as_echo_n "checking $2 presence... " >&6; }
1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851/* end confdefs.h.  */
1852#include <$2>
1853_ACEOF
1854if ac_fn_c_try_cpp "$LINENO"; then :
1855  ac_header_preproc=yes
1856else
1857  ac_header_preproc=no
1858fi
1859rm -f conftest.err conftest.i conftest.$ac_ext
1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1861$as_echo "$ac_header_preproc" >&6; }
1862
1863# So?  What about this header?
1864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1865  yes:no: )
1866    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1867$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1868    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870    ;;
1871  no:yes:* )
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1873$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1875$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1876    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1877$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1879$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1882( $as_echo "## --------------------------------------------------------------------- ##
1883## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xcb ##
1884## --------------------------------------------------------------------- ##"
1885     ) | sed "s/^/$as_me: WARNING:     /" >&2
1886    ;;
1887esac
1888  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889$as_echo_n "checking for $2... " >&6; }
1890if eval \${$3+:} false; then :
1891  $as_echo_n "(cached) " >&6
1892else
1893  eval "$3=\$ac_header_compiler"
1894fi
1895eval ac_res=\$$3
1896	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897$as_echo "$ac_res" >&6; }
1898fi
1899  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901} # ac_fn_c_check_header_mongrel
1902
1903# ac_fn_c_try_run LINENO
1904# ----------------------
1905# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906# that executables *can* be run.
1907ac_fn_c_try_run ()
1908{
1909  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910  if { { ac_try="$ac_link"
1911case "(($ac_try" in
1912  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913  *) ac_try_echo=$ac_try;;
1914esac
1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916$as_echo "$ac_try_echo"; } >&5
1917  (eval "$ac_link") 2>&5
1918  ac_status=$?
1919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921  { { case "(($ac_try" in
1922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923  *) ac_try_echo=$ac_try;;
1924esac
1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926$as_echo "$ac_try_echo"; } >&5
1927  (eval "$ac_try") 2>&5
1928  ac_status=$?
1929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930  test $ac_status = 0; }; }; then :
1931  ac_retval=0
1932else
1933  $as_echo "$as_me: program exited with status $ac_status" >&5
1934       $as_echo "$as_me: failed program was:" >&5
1935sed 's/^/| /' conftest.$ac_ext >&5
1936
1937       ac_retval=$ac_status
1938fi
1939  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941  as_fn_set_status $ac_retval
1942
1943} # ac_fn_c_try_run
1944
1945# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1946# -------------------------------------------------------
1947# Tests whether HEADER exists and can be compiled using the include files in
1948# INCLUDES, setting the cache variable VAR accordingly.
1949ac_fn_c_check_header_compile ()
1950{
1951  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953$as_echo_n "checking for $2... " >&6; }
1954if eval \${$3+:} false; then :
1955  $as_echo_n "(cached) " >&6
1956else
1957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958/* end confdefs.h.  */
1959$4
1960#include <$2>
1961_ACEOF
1962if ac_fn_c_try_compile "$LINENO"; then :
1963  eval "$3=yes"
1964else
1965  eval "$3=no"
1966fi
1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968fi
1969eval ac_res=\$$3
1970	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971$as_echo "$ac_res" >&6; }
1972  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974} # ac_fn_c_check_header_compile
1975
1976# ac_fn_c_try_link LINENO
1977# -----------------------
1978# Try to link conftest.$ac_ext, and return whether this succeeded.
1979ac_fn_c_try_link ()
1980{
1981  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982  rm -f conftest.$ac_objext conftest$ac_exeext
1983  if { { ac_try="$ac_link"
1984case "(($ac_try" in
1985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986  *) ac_try_echo=$ac_try;;
1987esac
1988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989$as_echo "$ac_try_echo"; } >&5
1990  (eval "$ac_link") 2>conftest.err
1991  ac_status=$?
1992  if test -s conftest.err; then
1993    grep -v '^ *+' conftest.err >conftest.er1
1994    cat conftest.er1 >&5
1995    mv -f conftest.er1 conftest.err
1996  fi
1997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998  test $ac_status = 0; } && {
1999	 test -z "$ac_c_werror_flag" ||
2000	 test ! -s conftest.err
2001       } && test -s conftest$ac_exeext && {
2002	 test "$cross_compiling" = yes ||
2003	 test -x conftest$ac_exeext
2004       }; then :
2005  ac_retval=0
2006else
2007  $as_echo "$as_me: failed program was:" >&5
2008sed 's/^/| /' conftest.$ac_ext >&5
2009
2010	ac_retval=1
2011fi
2012  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014  # interfere with the next link command; also delete a directory that is
2015  # left behind by Apple's compiler.  We do this before executing the actions.
2016  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018  as_fn_set_status $ac_retval
2019
2020} # ac_fn_c_try_link
2021
2022# ac_fn_c_check_func LINENO FUNC VAR
2023# ----------------------------------
2024# Tests whether FUNC exists, setting the cache variable VAR accordingly
2025ac_fn_c_check_func ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029$as_echo_n "checking for $2... " >&6; }
2030if eval \${$3+:} false; then :
2031  $as_echo_n "(cached) " >&6
2032else
2033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h.  */
2035/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2037#define $2 innocuous_$2
2038
2039/* System header to define __stub macros and hopefully few prototypes,
2040    which can conflict with char $2 (); below.
2041    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042    <limits.h> exists even on freestanding compilers.  */
2043
2044#ifdef __STDC__
2045# include <limits.h>
2046#else
2047# include <assert.h>
2048#endif
2049
2050#undef $2
2051
2052/* Override any GCC internal prototype to avoid an error.
2053   Use char because int might match the return type of a GCC
2054   builtin and then its argument prototype would still apply.  */
2055#ifdef __cplusplus
2056extern "C"
2057#endif
2058char $2 ();
2059/* The GNU C library defines this for functions which it implements
2060    to always fail with ENOSYS.  Some functions are actually named
2061    something starting with __ and the normal name is an alias.  */
2062#if defined __stub_$2 || defined __stub___$2
2063choke me
2064#endif
2065
2066int
2067main ()
2068{
2069return $2 ();
2070  ;
2071  return 0;
2072}
2073_ACEOF
2074if ac_fn_c_try_link "$LINENO"; then :
2075  eval "$3=yes"
2076else
2077  eval "$3=no"
2078fi
2079rm -f core conftest.err conftest.$ac_objext \
2080    conftest$ac_exeext conftest.$ac_ext
2081fi
2082eval ac_res=\$$3
2083	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084$as_echo "$ac_res" >&6; }
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087} # ac_fn_c_check_func
2088
2089# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2090# ---------------------------------------------
2091# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2092# accordingly.
2093ac_fn_c_check_decl ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  as_decl_name=`echo $2|sed 's/ *(.*//'`
2097  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2098  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2099$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2100if eval \${$3+:} false; then :
2101  $as_echo_n "(cached) " >&6
2102else
2103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h.  */
2105$4
2106int
2107main ()
2108{
2109#ifndef $as_decl_name
2110#ifdef __cplusplus
2111  (void) $as_decl_use;
2112#else
2113  (void) $as_decl_name;
2114#endif
2115#endif
2116
2117  ;
2118  return 0;
2119}
2120_ACEOF
2121if ac_fn_c_try_compile "$LINENO"; then :
2122  eval "$3=yes"
2123else
2124  eval "$3=no"
2125fi
2126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127fi
2128eval ac_res=\$$3
2129	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130$as_echo "$ac_res" >&6; }
2131  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133} # ac_fn_c_check_decl
2134
2135# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2136# ----------------------------------------------------
2137# Tries to find if the field MEMBER exists in type AGGR, after including
2138# INCLUDES, setting cache variable VAR accordingly.
2139ac_fn_c_check_member ()
2140{
2141  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2143$as_echo_n "checking for $2.$3... " >&6; }
2144if eval \${$4+:} false; then :
2145  $as_echo_n "(cached) " >&6
2146else
2147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$5
2150int
2151main ()
2152{
2153static $2 ac_aggr;
2154if (ac_aggr.$3)
2155return 0;
2156  ;
2157  return 0;
2158}
2159_ACEOF
2160if ac_fn_c_try_compile "$LINENO"; then :
2161  eval "$4=yes"
2162else
2163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h.  */
2165$5
2166int
2167main ()
2168{
2169static $2 ac_aggr;
2170if (sizeof ac_aggr.$3)
2171return 0;
2172  ;
2173  return 0;
2174}
2175_ACEOF
2176if ac_fn_c_try_compile "$LINENO"; then :
2177  eval "$4=yes"
2178else
2179  eval "$4=no"
2180fi
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184fi
2185eval ac_res=\$$4
2186	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2187$as_echo "$ac_res" >&6; }
2188  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189
2190} # ac_fn_c_check_member
2191cat >config.log <<_ACEOF
2192This file contains any messages produced by compilers while
2193running configure, to aid debugging if configure makes a mistake.
2194
2195It was created by libxcb $as_me 1.11.1, which was
2196generated by GNU Autoconf 2.69.  Invocation command line was
2197
2198  $ $0 $@
2199
2200_ACEOF
2201exec 5>>config.log
2202{
2203cat <<_ASUNAME
2204## --------- ##
2205## Platform. ##
2206## --------- ##
2207
2208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2209uname -m = `(uname -m) 2>/dev/null || echo unknown`
2210uname -r = `(uname -r) 2>/dev/null || echo unknown`
2211uname -s = `(uname -s) 2>/dev/null || echo unknown`
2212uname -v = `(uname -v) 2>/dev/null || echo unknown`
2213
2214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2215/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2216
2217/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2218/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2220/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2221/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2222/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2223/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2224
2225_ASUNAME
2226
2227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228for as_dir in $PATH
2229do
2230  IFS=$as_save_IFS
2231  test -z "$as_dir" && as_dir=.
2232    $as_echo "PATH: $as_dir"
2233  done
2234IFS=$as_save_IFS
2235
2236} >&5
2237
2238cat >&5 <<_ACEOF
2239
2240
2241## ----------- ##
2242## Core tests. ##
2243## ----------- ##
2244
2245_ACEOF
2246
2247
2248# Keep a trace of the command line.
2249# Strip out --no-create and --no-recursion so they do not pile up.
2250# Strip out --silent because we don't want to record it for future runs.
2251# Also quote any args containing shell meta-characters.
2252# Make two passes to allow for proper duplicate-argument suppression.
2253ac_configure_args=
2254ac_configure_args0=
2255ac_configure_args1=
2256ac_must_keep_next=false
2257for ac_pass in 1 2
2258do
2259  for ac_arg
2260  do
2261    case $ac_arg in
2262    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2263    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2264    | -silent | --silent | --silen | --sile | --sil)
2265      continue ;;
2266    *\'*)
2267      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2268    esac
2269    case $ac_pass in
2270    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2271    2)
2272      as_fn_append ac_configure_args1 " '$ac_arg'"
2273      if test $ac_must_keep_next = true; then
2274	ac_must_keep_next=false # Got value, back to normal.
2275      else
2276	case $ac_arg in
2277	  *=* | --config-cache | -C | -disable-* | --disable-* \
2278	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2279	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2280	  | -with-* | --with-* | -without-* | --without-* | --x)
2281	    case "$ac_configure_args0 " in
2282	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2283	    esac
2284	    ;;
2285	  -* ) ac_must_keep_next=true ;;
2286	esac
2287      fi
2288      as_fn_append ac_configure_args " '$ac_arg'"
2289      ;;
2290    esac
2291  done
2292done
2293{ ac_configure_args0=; unset ac_configure_args0;}
2294{ ac_configure_args1=; unset ac_configure_args1;}
2295
2296# When interrupted or exit'd, cleanup temporary files, and complete
2297# config.log.  We remove comments because anyway the quotes in there
2298# would cause problems or look ugly.
2299# WARNING: Use '\'' to represent an apostrophe within the trap.
2300# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2301trap 'exit_status=$?
2302  # Save into config.log some information that might help in debugging.
2303  {
2304    echo
2305
2306    $as_echo "## ---------------- ##
2307## Cache variables. ##
2308## ---------------- ##"
2309    echo
2310    # The following way of writing the cache mishandles newlines in values,
2311(
2312  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313    eval ac_val=\$$ac_var
2314    case $ac_val in #(
2315    *${as_nl}*)
2316      case $ac_var in #(
2317      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319      esac
2320      case $ac_var in #(
2321      _ | IFS | as_nl) ;; #(
2322      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323      *) { eval $ac_var=; unset $ac_var;} ;;
2324      esac ;;
2325    esac
2326  done
2327  (set) 2>&1 |
2328    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329    *${as_nl}ac_space=\ *)
2330      sed -n \
2331	"s/'\''/'\''\\\\'\'''\''/g;
2332	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333      ;; #(
2334    *)
2335      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336      ;;
2337    esac |
2338    sort
2339)
2340    echo
2341
2342    $as_echo "## ----------------- ##
2343## Output variables. ##
2344## ----------------- ##"
2345    echo
2346    for ac_var in $ac_subst_vars
2347    do
2348      eval ac_val=\$$ac_var
2349      case $ac_val in
2350      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2351      esac
2352      $as_echo "$ac_var='\''$ac_val'\''"
2353    done | sort
2354    echo
2355
2356    if test -n "$ac_subst_files"; then
2357      $as_echo "## ------------------- ##
2358## File substitutions. ##
2359## ------------------- ##"
2360      echo
2361      for ac_var in $ac_subst_files
2362      do
2363	eval ac_val=\$$ac_var
2364	case $ac_val in
2365	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2366	esac
2367	$as_echo "$ac_var='\''$ac_val'\''"
2368      done | sort
2369      echo
2370    fi
2371
2372    if test -s confdefs.h; then
2373      $as_echo "## ----------- ##
2374## confdefs.h. ##
2375## ----------- ##"
2376      echo
2377      cat confdefs.h
2378      echo
2379    fi
2380    test "$ac_signal" != 0 &&
2381      $as_echo "$as_me: caught signal $ac_signal"
2382    $as_echo "$as_me: exit $exit_status"
2383  } >&5
2384  rm -f core *.core core.conftest.* &&
2385    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2386    exit $exit_status
2387' 0
2388for ac_signal in 1 2 13 15; do
2389  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2390done
2391ac_signal=0
2392
2393# confdefs.h avoids OS command line length limits that DEFS can exceed.
2394rm -f -r conftest* confdefs.h
2395
2396$as_echo "/* confdefs.h */" > confdefs.h
2397
2398# Predefined preprocessor variables.
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_NAME "$PACKAGE_NAME"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_VERSION "$PACKAGE_VERSION"
2410_ACEOF
2411
2412cat >>confdefs.h <<_ACEOF
2413#define PACKAGE_STRING "$PACKAGE_STRING"
2414_ACEOF
2415
2416cat >>confdefs.h <<_ACEOF
2417#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2418_ACEOF
2419
2420cat >>confdefs.h <<_ACEOF
2421#define PACKAGE_URL "$PACKAGE_URL"
2422_ACEOF
2423
2424
2425# Let the site file select an alternate cache file if it wants to.
2426# Prefer an explicitly selected file to automatically selected ones.
2427ac_site_file1=NONE
2428ac_site_file2=NONE
2429if test -n "$CONFIG_SITE"; then
2430  # We do not want a PATH search for config.site.
2431  case $CONFIG_SITE in #((
2432    -*)  ac_site_file1=./$CONFIG_SITE;;
2433    */*) ac_site_file1=$CONFIG_SITE;;
2434    *)   ac_site_file1=./$CONFIG_SITE;;
2435  esac
2436elif test "x$prefix" != xNONE; then
2437  ac_site_file1=$prefix/share/config.site
2438  ac_site_file2=$prefix/etc/config.site
2439else
2440  ac_site_file1=$ac_default_prefix/share/config.site
2441  ac_site_file2=$ac_default_prefix/etc/config.site
2442fi
2443for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2444do
2445  test "x$ac_site_file" = xNONE && continue
2446  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2447    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449    sed 's/^/| /' "$ac_site_file" >&5
2450    . "$ac_site_file" \
2451      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453as_fn_error $? "failed to load site script $ac_site_file
2454See \`config.log' for more details" "$LINENO" 5; }
2455  fi
2456done
2457
2458if test -r "$cache_file"; then
2459  # Some versions of bash will fail to source /dev/null (special files
2460  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2461  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2462    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2463$as_echo "$as_me: loading cache $cache_file" >&6;}
2464    case $cache_file in
2465      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2466      *)                      . "./$cache_file";;
2467    esac
2468  fi
2469else
2470  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2471$as_echo "$as_me: creating cache $cache_file" >&6;}
2472  >$cache_file
2473fi
2474
2475# Check that the precious variables saved in the cache have kept the same
2476# value.
2477ac_cache_corrupted=false
2478for ac_var in $ac_precious_vars; do
2479  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2480  eval ac_new_set=\$ac_env_${ac_var}_set
2481  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2482  eval ac_new_val=\$ac_env_${ac_var}_value
2483  case $ac_old_set,$ac_new_set in
2484    set,)
2485      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2486$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2487      ac_cache_corrupted=: ;;
2488    ,set)
2489      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2490$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2491      ac_cache_corrupted=: ;;
2492    ,);;
2493    *)
2494      if test "x$ac_old_val" != "x$ac_new_val"; then
2495	# differences in whitespace do not lead to failure.
2496	ac_old_val_w=`echo x $ac_old_val`
2497	ac_new_val_w=`echo x $ac_new_val`
2498	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2499	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2500$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2501	  ac_cache_corrupted=:
2502	else
2503	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2504$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2505	  eval $ac_var=\$ac_old_val
2506	fi
2507	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2508$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2509	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2510$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2511      fi;;
2512  esac
2513  # Pass precious variables to config.status.
2514  if test "$ac_new_set" = set; then
2515    case $ac_new_val in
2516    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2517    *) ac_arg=$ac_var=$ac_new_val ;;
2518    esac
2519    case " $ac_configure_args " in
2520      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2521      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2522    esac
2523  fi
2524done
2525if $ac_cache_corrupted; then
2526  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2529$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2530  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2531fi
2532## -------------------- ##
2533## Main body of script. ##
2534## -------------------- ##
2535
2536ac_ext=c
2537ac_cpp='$CPP $CPPFLAGS'
2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541
2542
2543ac_aux_dir=
2544for ac_dir in build-aux "$srcdir"/build-aux; do
2545  if test -f "$ac_dir/install-sh"; then
2546    ac_aux_dir=$ac_dir
2547    ac_install_sh="$ac_aux_dir/install-sh -c"
2548    break
2549  elif test -f "$ac_dir/install.sh"; then
2550    ac_aux_dir=$ac_dir
2551    ac_install_sh="$ac_aux_dir/install.sh -c"
2552    break
2553  elif test -f "$ac_dir/shtool"; then
2554    ac_aux_dir=$ac_dir
2555    ac_install_sh="$ac_aux_dir/shtool install -c"
2556    break
2557  fi
2558done
2559if test -z "$ac_aux_dir"; then
2560  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2561fi
2562
2563# These three variables are undocumented and unsupported,
2564# and are intended to be withdrawn in a future Autoconf release.
2565# They can cause serious problems if a builder's source tree is in a directory
2566# whose full name contains unusual characters.
2567ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2568ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2569ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2570
2571
2572
2573
2574ac_config_headers="$ac_config_headers src/config.h"
2575
2576
2577# Initialize Automake
2578am__api_version='1.15'
2579
2580# Find a good install program.  We prefer a C program (faster),
2581# so one script is as good as another.  But avoid the broken or
2582# incompatible versions:
2583# SysV /etc/install, /usr/sbin/install
2584# SunOS /usr/etc/install
2585# IRIX /sbin/install
2586# AIX /bin/install
2587# AmigaOS /C/install, which installs bootblocks on floppy discs
2588# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2589# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2590# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2591# OS/2's system install, which has a completely different semantic
2592# ./install, which can be erroneously created by make from ./install.sh.
2593# Reject install programs that cannot install multiple files.
2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2595$as_echo_n "checking for a BSD-compatible install... " >&6; }
2596if test -z "$INSTALL"; then
2597if ${ac_cv_path_install+:} false; then :
2598  $as_echo_n "(cached) " >&6
2599else
2600  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603  IFS=$as_save_IFS
2604  test -z "$as_dir" && as_dir=.
2605    # Account for people who put trailing slashes in PATH elements.
2606case $as_dir/ in #((
2607  ./ | .// | /[cC]/* | \
2608  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2609  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2610  /usr/ucb/* ) ;;
2611  *)
2612    # OSF1 and SCO ODT 3.0 have their own names for install.
2613    # Don't use installbsd from OSF since it installs stuff as root
2614    # by default.
2615    for ac_prog in ginstall scoinst install; do
2616      for ac_exec_ext in '' $ac_executable_extensions; do
2617	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2618	  if test $ac_prog = install &&
2619	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620	    # AIX install.  It has an incompatible calling convention.
2621	    :
2622	  elif test $ac_prog = install &&
2623	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2624	    # program-specific install script used by HP pwplus--don't use.
2625	    :
2626	  else
2627	    rm -rf conftest.one conftest.two conftest.dir
2628	    echo one > conftest.one
2629	    echo two > conftest.two
2630	    mkdir conftest.dir
2631	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2632	      test -s conftest.one && test -s conftest.two &&
2633	      test -s conftest.dir/conftest.one &&
2634	      test -s conftest.dir/conftest.two
2635	    then
2636	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2637	      break 3
2638	    fi
2639	  fi
2640	fi
2641      done
2642    done
2643    ;;
2644esac
2645
2646  done
2647IFS=$as_save_IFS
2648
2649rm -rf conftest.one conftest.two conftest.dir
2650
2651fi
2652  if test "${ac_cv_path_install+set}" = set; then
2653    INSTALL=$ac_cv_path_install
2654  else
2655    # As a last resort, use the slow shell script.  Don't cache a
2656    # value for INSTALL within a source directory, because that will
2657    # break other packages using the cache if that directory is
2658    # removed, or if the value is a relative name.
2659    INSTALL=$ac_install_sh
2660  fi
2661fi
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2663$as_echo "$INSTALL" >&6; }
2664
2665# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2666# It thinks the first close brace ends the variable substitution.
2667test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2668
2669test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2670
2671test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2674$as_echo_n "checking whether build environment is sane... " >&6; }
2675# Reject unsafe characters in $srcdir or the absolute working directory
2676# name.  Accept space and tab only in the latter.
2677am_lf='
2678'
2679case `pwd` in
2680  *[\\\"\#\$\&\'\`$am_lf]*)
2681    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2682esac
2683case $srcdir in
2684  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2685    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2686esac
2687
2688# Do 'set' in a subshell so we don't clobber the current shell's
2689# arguments.  Must try -L first in case configure is actually a
2690# symlink; some systems play weird games with the mod time of symlinks
2691# (eg FreeBSD returns the mod time of the symlink's containing
2692# directory).
2693if (
2694   am_has_slept=no
2695   for am_try in 1 2; do
2696     echo "timestamp, slept: $am_has_slept" > conftest.file
2697     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2698     if test "$*" = "X"; then
2699	# -L didn't work.
2700	set X `ls -t "$srcdir/configure" conftest.file`
2701     fi
2702     if test "$*" != "X $srcdir/configure conftest.file" \
2703	&& test "$*" != "X conftest.file $srcdir/configure"; then
2704
2705	# If neither matched, then we have a broken ls.  This can happen
2706	# if, for instance, CONFIG_SHELL is bash and it inherits a
2707	# broken ls alias from the environment.  This has actually
2708	# happened.  Such a system could not be considered "sane".
2709	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2710  alias in your environment" "$LINENO" 5
2711     fi
2712     if test "$2" = conftest.file || test $am_try -eq 2; then
2713       break
2714     fi
2715     # Just in case.
2716     sleep 1
2717     am_has_slept=yes
2718   done
2719   test "$2" = conftest.file
2720   )
2721then
2722   # Ok.
2723   :
2724else
2725   as_fn_error $? "newly created file is older than distributed files!
2726Check your system clock" "$LINENO" 5
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729$as_echo "yes" >&6; }
2730# If we didn't sleep, we still need to ensure time stamps of config.status and
2731# generated files are strictly newer.
2732am_sleep_pid=
2733if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2734  ( sleep 1 ) &
2735  am_sleep_pid=$!
2736fi
2737
2738rm -f conftest.file
2739
2740test "$program_prefix" != NONE &&
2741  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2742# Use a double $ so make ignores it.
2743test "$program_suffix" != NONE &&
2744  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2745# Double any \ or $.
2746# By default was `s,x,x', remove it if useless.
2747ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2748program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2749
2750# Expand $ac_aux_dir to an absolute path.
2751am_aux_dir=`cd "$ac_aux_dir" && pwd`
2752
2753if test x"${MISSING+set}" != xset; then
2754  case $am_aux_dir in
2755  *\ * | *\	*)
2756    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2757  *)
2758    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2759  esac
2760fi
2761# Use eval to expand $SHELL
2762if eval "$MISSING --is-lightweight"; then
2763  am_missing_run="$MISSING "
2764else
2765  am_missing_run=
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2767$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2768fi
2769
2770if test x"${install_sh+set}" != xset; then
2771  case $am_aux_dir in
2772  *\ * | *\	*)
2773    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2774  *)
2775    install_sh="\${SHELL} $am_aux_dir/install-sh"
2776  esac
2777fi
2778
2779# Installed binaries are usually stripped using 'strip' when the user
2780# run "make install-strip".  However 'strip' might not be the right
2781# tool to use in cross-compilation environments, therefore Automake
2782# will honor the 'STRIP' environment variable to overrule this program.
2783if test "$cross_compiling" != no; then
2784  if test -n "$ac_tool_prefix"; then
2785  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}strip; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if ${ac_cv_prog_STRIP+:} false; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$STRIP"; then
2793  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812STRIP=$ac_cv_prog_STRIP
2813if test -n "$STRIP"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2815$as_echo "$STRIP" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822fi
2823if test -z "$ac_cv_prog_STRIP"; then
2824  ac_ct_STRIP=$STRIP
2825  # Extract the first word of "strip", so it can be a program name with args.
2826set dummy strip; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$ac_ct_STRIP"; then
2833  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2834else
2835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836for as_dir in $PATH
2837do
2838  IFS=$as_save_IFS
2839  test -z "$as_dir" && as_dir=.
2840    for ac_exec_ext in '' $ac_executable_extensions; do
2841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2842    ac_cv_prog_ac_ct_STRIP="strip"
2843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844    break 2
2845  fi
2846done
2847  done
2848IFS=$as_save_IFS
2849
2850fi
2851fi
2852ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2853if test -n "$ac_ct_STRIP"; then
2854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2855$as_echo "$ac_ct_STRIP" >&6; }
2856else
2857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858$as_echo "no" >&6; }
2859fi
2860
2861  if test "x$ac_ct_STRIP" = x; then
2862    STRIP=":"
2863  else
2864    case $cross_compiling:$ac_tool_warned in
2865yes:)
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2868ac_tool_warned=yes ;;
2869esac
2870    STRIP=$ac_ct_STRIP
2871  fi
2872else
2873  STRIP="$ac_cv_prog_STRIP"
2874fi
2875
2876fi
2877INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2878
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2880$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2881if test -z "$MKDIR_P"; then
2882  if ${ac_cv_path_mkdir+:} false; then :
2883  $as_echo_n "(cached) " >&6
2884else
2885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2887do
2888  IFS=$as_save_IFS
2889  test -z "$as_dir" && as_dir=.
2890    for ac_prog in mkdir gmkdir; do
2891	 for ac_exec_ext in '' $ac_executable_extensions; do
2892	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2893	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2894	     'mkdir (GNU coreutils) '* | \
2895	     'mkdir (coreutils) '* | \
2896	     'mkdir (fileutils) '4.1*)
2897	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2898	       break 3;;
2899	   esac
2900	 done
2901       done
2902  done
2903IFS=$as_save_IFS
2904
2905fi
2906
2907  test -d ./--version && rmdir ./--version
2908  if test "${ac_cv_path_mkdir+set}" = set; then
2909    MKDIR_P="$ac_cv_path_mkdir -p"
2910  else
2911    # As a last resort, use the slow shell script.  Don't cache a
2912    # value for MKDIR_P within a source directory, because that will
2913    # break other packages using the cache if that directory is
2914    # removed, or if the value is a relative name.
2915    MKDIR_P="$ac_install_sh -d"
2916  fi
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2919$as_echo "$MKDIR_P" >&6; }
2920
2921for ac_prog in gawk mawk nawk awk
2922do
2923  # Extract the first word of "$ac_prog", so it can be a program name with args.
2924set dummy $ac_prog; ac_word=$2
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926$as_echo_n "checking for $ac_word... " >&6; }
2927if ${ac_cv_prog_AWK+:} false; then :
2928  $as_echo_n "(cached) " >&6
2929else
2930  if test -n "$AWK"; then
2931  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2932else
2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934for as_dir in $PATH
2935do
2936  IFS=$as_save_IFS
2937  test -z "$as_dir" && as_dir=.
2938    for ac_exec_ext in '' $ac_executable_extensions; do
2939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940    ac_cv_prog_AWK="$ac_prog"
2941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942    break 2
2943  fi
2944done
2945  done
2946IFS=$as_save_IFS
2947
2948fi
2949fi
2950AWK=$ac_cv_prog_AWK
2951if test -n "$AWK"; then
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2953$as_echo "$AWK" >&6; }
2954else
2955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960  test -n "$AWK" && break
2961done
2962
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2964$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2965set x ${MAKE-make}
2966ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2967if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  cat >conftest.make <<\_ACEOF
2971SHELL = /bin/sh
2972all:
2973	@echo '@@@%%%=$(MAKE)=@@@%%%'
2974_ACEOF
2975# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2976case `${MAKE-make} -f conftest.make 2>/dev/null` in
2977  *@@@%%%=?*=@@@%%%*)
2978    eval ac_cv_prog_make_${ac_make}_set=yes;;
2979  *)
2980    eval ac_cv_prog_make_${ac_make}_set=no;;
2981esac
2982rm -f conftest.make
2983fi
2984if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986$as_echo "yes" >&6; }
2987  SET_MAKE=
2988else
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
2991  SET_MAKE="MAKE=${MAKE-make}"
2992fi
2993
2994rm -rf .tst 2>/dev/null
2995mkdir .tst 2>/dev/null
2996if test -d .tst; then
2997  am__leading_dot=.
2998else
2999  am__leading_dot=_
3000fi
3001rmdir .tst 2>/dev/null
3002
3003# Check whether --enable-silent-rules was given.
3004if test "${enable_silent_rules+set}" = set; then :
3005  enableval=$enable_silent_rules;
3006fi
3007
3008case $enable_silent_rules in # (((
3009  yes) AM_DEFAULT_VERBOSITY=0;;
3010   no) AM_DEFAULT_VERBOSITY=1;;
3011    *) AM_DEFAULT_VERBOSITY=1;;
3012esac
3013am_make=${MAKE-make}
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3015$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3016if ${am_cv_make_support_nested_variables+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if $as_echo 'TRUE=$(BAR$(V))
3020BAR0=false
3021BAR1=true
3022V=1
3023am__doit:
3024	@$(TRUE)
3025.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3026  am_cv_make_support_nested_variables=yes
3027else
3028  am_cv_make_support_nested_variables=no
3029fi
3030fi
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3032$as_echo "$am_cv_make_support_nested_variables" >&6; }
3033if test $am_cv_make_support_nested_variables = yes; then
3034    AM_V='$(V)'
3035  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3036else
3037  AM_V=$AM_DEFAULT_VERBOSITY
3038  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3039fi
3040AM_BACKSLASH='\'
3041
3042if test "`cd $srcdir && pwd`" != "`pwd`"; then
3043  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3044  # is not polluted with repeated "-I."
3045  am__isrc=' -I$(srcdir)'
3046  # test to see if srcdir already configured
3047  if test -f $srcdir/config.status; then
3048    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3049  fi
3050fi
3051
3052# test whether we have cygpath
3053if test -z "$CYGPATH_W"; then
3054  if (cygpath --version) >/dev/null 2>/dev/null; then
3055    CYGPATH_W='cygpath -w'
3056  else
3057    CYGPATH_W=echo
3058  fi
3059fi
3060
3061
3062# Define the identity of the package.
3063 PACKAGE='libxcb'
3064 VERSION='1.11.1'
3065
3066
3067cat >>confdefs.h <<_ACEOF
3068#define PACKAGE "$PACKAGE"
3069_ACEOF
3070
3071
3072cat >>confdefs.h <<_ACEOF
3073#define VERSION "$VERSION"
3074_ACEOF
3075
3076# Some tools Automake needs.
3077
3078ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3079
3080
3081AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3082
3083
3084AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3085
3086
3087AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3088
3089
3090MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3091
3092# For better backward compatibility.  To be removed once Automake 1.9.x
3093# dies out for good.  For more background, see:
3094# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3095# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3096mkdir_p='$(MKDIR_P)'
3097
3098# We need awk for the "check" target (and possibly the TAP driver).  The
3099# system "awk" is bad on some platforms.
3100# Always define AMTAR for backward compatibility.  Yes, it's still used
3101# in the wild :-(  We should find a proper way to deprecate it ...
3102AMTAR='$${TAR-tar}'
3103
3104
3105# We'll loop over all known methods to create a tar archive until one works.
3106_am_tools='gnutar  pax cpio none'
3107
3108am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3109
3110
3111
3112
3113
3114
3115# POSIX will say in a future version that running "rm -f" with no argument
3116# is OK; and we want to be able to make that assumption in our Makefile
3117# recipes.  So use an aggressive probe to check that the usage we want is
3118# actually supported "in the wild" to an acceptable degree.
3119# See automake bug#10828.
3120# To make any issue more visible, cause the running configure to be aborted
3121# by default if the 'rm' program in use doesn't match our expectations; the
3122# user can still override this though.
3123if rm -f && rm -fr && rm -rf; then : OK; else
3124  cat >&2 <<'END'
3125Oops!
3126
3127Your 'rm' program seems unable to run without file operands specified
3128on the command line, even when the '-f' option is present.  This is contrary
3129to the behaviour of most rm programs out there, and not conforming with
3130the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3131
3132Please tell bug-automake@gnu.org about your system, including the value
3133of your $PATH and any error possibly output before this message.  This
3134can help us improve future automake versions.
3135
3136END
3137  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3138    echo 'Configuration will proceed anyway, since you have set the' >&2
3139    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3140    echo >&2
3141  else
3142    cat >&2 <<'END'
3143Aborting the configuration process, to ensure you take notice of the issue.
3144
3145You can download and install GNU coreutils to get an 'rm' implementation
3146that behaves properly: <http://www.gnu.org/software/coreutils/>.
3147
3148If you want to complete the configuration process using your problematic
3149'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3150to "yes", and re-run configure.
3151
3152END
3153    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3154  fi
3155fi
3156
3157
3158
3159
3160
3161
3162
3163        if test -n "$PYTHON"; then
3164      # If the user set $PYTHON, use it and don't search something else.
3165      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
3166$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
3167      prog="import sys
3168# split strings by '.' and convert to numeric.  Append some zeros
3169# because we need at least 4 digits for the hex conversion.
3170# map returns an iterator in Python 3.0 and a list in 2.x
3171minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3172minverhex = 0
3173# xrange is not present in Python 3.0 and range returns an iterator
3174for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3175sys.exit(sys.hexversion < minverhex)"
3176  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
3177   ($PYTHON -c "$prog") >&5 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }; then :
3181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183else
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
3187fi
3188      am_display_PYTHON=$PYTHON
3189    else
3190      # Otherwise, try each interpreter until we find one that satisfies
3191      # VERSION.
3192      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
3193$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
3194if ${am_cv_pathless_PYTHON+:} false; then :
3195  $as_echo_n "(cached) " >&6
3196else
3197
3198	for am_cv_pathless_PYTHON in python python2 python3 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
3199	  test "$am_cv_pathless_PYTHON" = none && break
3200	  prog="import sys
3201# split strings by '.' and convert to numeric.  Append some zeros
3202# because we need at least 4 digits for the hex conversion.
3203# map returns an iterator in Python 3.0 and a list in 2.x
3204minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
3205minverhex = 0
3206# xrange is not present in Python 3.0 and range returns an iterator
3207for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
3208sys.exit(sys.hexversion < minverhex)"
3209  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
3210   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; then :
3214  break
3215fi
3216	done
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
3219$as_echo "$am_cv_pathless_PYTHON" >&6; }
3220      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
3221      if test "$am_cv_pathless_PYTHON" = none; then
3222	PYTHON=:
3223      else
3224        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
3225set dummy $am_cv_pathless_PYTHON; ac_word=$2
3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227$as_echo_n "checking for $ac_word... " >&6; }
3228if ${ac_cv_path_PYTHON+:} false; then :
3229  $as_echo_n "(cached) " >&6
3230else
3231  case $PYTHON in
3232  [\\/]* | ?:[\\/]*)
3233  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3234  ;;
3235  *)
3236  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237for as_dir in $PATH
3238do
3239  IFS=$as_save_IFS
3240  test -z "$as_dir" && as_dir=.
3241    for ac_exec_ext in '' $ac_executable_extensions; do
3242  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3244    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245    break 2
3246  fi
3247done
3248  done
3249IFS=$as_save_IFS
3250
3251  ;;
3252esac
3253fi
3254PYTHON=$ac_cv_path_PYTHON
3255if test -n "$PYTHON"; then
3256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
3257$as_echo "$PYTHON" >&6; }
3258else
3259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261fi
3262
3263
3264      fi
3265      am_display_PYTHON=$am_cv_pathless_PYTHON
3266    fi
3267
3268
3269  if test "$PYTHON" = :; then
3270      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
3271  else
3272
3273
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
3275$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
3276if ${am_cv_python_version+:} false; then :
3277  $as_echo_n "(cached) " >&6
3278else
3279  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
3282$as_echo "$am_cv_python_version" >&6; }
3283  PYTHON_VERSION=$am_cv_python_version
3284
3285
3286
3287  PYTHON_PREFIX='${prefix}'
3288
3289  PYTHON_EXEC_PREFIX='${exec_prefix}'
3290
3291
3292
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
3294$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
3295if ${am_cv_python_platform+:} false; then :
3296  $as_echo_n "(cached) " >&6
3297else
3298  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
3299fi
3300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
3301$as_echo "$am_cv_python_platform" >&6; }
3302  PYTHON_PLATFORM=$am_cv_python_platform
3303
3304
3305  # Just factor out some code duplication.
3306  am_python_setup_sysconfig="\
3307import sys
3308# Prefer sysconfig over distutils.sysconfig, for better compatibility
3309# with python 3.x.  See automake bug#10227.
3310try:
3311    import sysconfig
3312except ImportError:
3313    can_use_sysconfig = 0
3314else:
3315    can_use_sysconfig = 1
3316# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
3317# <https://github.com/pypa/virtualenv/issues/118>
3318try:
3319    from platform import python_implementation
3320    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
3321        can_use_sysconfig = 0
3322except ImportError:
3323    pass"
3324
3325
3326            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
3327$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
3328if ${am_cv_python_pythondir+:} false; then :
3329  $as_echo_n "(cached) " >&6
3330else
3331  if test "x$prefix" = xNONE
3332     then
3333       am_py_prefix=$ac_default_prefix
3334     else
3335       am_py_prefix=$prefix
3336     fi
3337     am_cv_python_pythondir=`$PYTHON -c "
3338$am_python_setup_sysconfig
3339if can_use_sysconfig:
3340    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
3341else:
3342    from distutils import sysconfig
3343    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
3344sys.stdout.write(sitedir)"`
3345     case $am_cv_python_pythondir in
3346     $am_py_prefix*)
3347       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
3348       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
3349       ;;
3350     *)
3351       case $am_py_prefix in
3352         /usr|/System*) ;;
3353         *)
3354	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
3355	  ;;
3356       esac
3357       ;;
3358     esac
3359
3360fi
3361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
3362$as_echo "$am_cv_python_pythondir" >&6; }
3363  pythondir=$am_cv_python_pythondir
3364
3365
3366
3367  pkgpythondir=\${pythondir}/$PACKAGE
3368
3369
3370        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
3371$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
3372if ${am_cv_python_pyexecdir+:} false; then :
3373  $as_echo_n "(cached) " >&6
3374else
3375  if test "x$exec_prefix" = xNONE
3376     then
3377       am_py_exec_prefix=$am_py_prefix
3378     else
3379       am_py_exec_prefix=$exec_prefix
3380     fi
3381     am_cv_python_pyexecdir=`$PYTHON -c "
3382$am_python_setup_sysconfig
3383if can_use_sysconfig:
3384    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
3385else:
3386    from distutils import sysconfig
3387    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
3388sys.stdout.write(sitedir)"`
3389     case $am_cv_python_pyexecdir in
3390     $am_py_exec_prefix*)
3391       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
3392       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
3393       ;;
3394     *)
3395       case $am_py_exec_prefix in
3396         /usr|/System*) ;;
3397         *)
3398	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
3399	   ;;
3400       esac
3401       ;;
3402     esac
3403
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
3406$as_echo "$am_cv_python_pyexecdir" >&6; }
3407  pyexecdir=$am_cv_python_pyexecdir
3408
3409
3410
3411  pkgpyexecdir=\${pyexecdir}/$PACKAGE
3412
3413
3414
3415  fi
3416
3417
3418
3419# Set common system defines for POSIX extensions, such as _GNU_SOURCE
3420# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
3421# to avoid autoconf errors.
3422DEPDIR="${am__leading_dot}deps"
3423
3424ac_config_commands="$ac_config_commands depfiles"
3425
3426
3427am_make=${MAKE-make}
3428cat > confinc << 'END'
3429am__doit:
3430	@echo this is the am__doit target
3431.PHONY: am__doit
3432END
3433# If we don't find an include directive, just comment out the code.
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3435$as_echo_n "checking for style of include used by $am_make... " >&6; }
3436am__include="#"
3437am__quote=
3438_am_result=none
3439# First try GNU make style include.
3440echo "include confinc" > confmf
3441# Ignore all kinds of additional output from 'make'.
3442case `$am_make -s -f confmf 2> /dev/null` in #(
3443*the\ am__doit\ target*)
3444  am__include=include
3445  am__quote=
3446  _am_result=GNU
3447  ;;
3448esac
3449# Now try BSD make style include.
3450if test "$am__include" = "#"; then
3451   echo '.include "confinc"' > confmf
3452   case `$am_make -s -f confmf 2> /dev/null` in #(
3453   *the\ am__doit\ target*)
3454     am__include=.include
3455     am__quote="\""
3456     _am_result=BSD
3457     ;;
3458   esac
3459fi
3460
3461
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3463$as_echo "$_am_result" >&6; }
3464rm -f confinc confmf
3465
3466# Check whether --enable-dependency-tracking was given.
3467if test "${enable_dependency_tracking+set}" = set; then :
3468  enableval=$enable_dependency_tracking;
3469fi
3470
3471if test "x$enable_dependency_tracking" != xno; then
3472  am_depcomp="$ac_aux_dir/depcomp"
3473  AMDEPBACKSLASH='\'
3474  am__nodep='_no'
3475fi
3476 if test "x$enable_dependency_tracking" != xno; then
3477  AMDEP_TRUE=
3478  AMDEP_FALSE='#'
3479else
3480  AMDEP_TRUE='#'
3481  AMDEP_FALSE=
3482fi
3483
3484
3485ac_ext=c
3486ac_cpp='$CPP $CPPFLAGS'
3487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489ac_compiler_gnu=$ac_cv_c_compiler_gnu
3490if test -n "$ac_tool_prefix"; then
3491  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3492set dummy ${ac_tool_prefix}gcc; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; }
3495if ${ac_cv_prog_CC+:} false; then :
3496  $as_echo_n "(cached) " >&6
3497else
3498  if test -n "$CC"; then
3499  ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  test -z "$as_dir" && as_dir=.
3506    for ac_exec_ext in '' $ac_executable_extensions; do
3507  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510    break 2
3511  fi
3512done
3513  done
3514IFS=$as_save_IFS
3515
3516fi
3517fi
3518CC=$ac_cv_prog_CC
3519if test -n "$CC"; then
3520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521$as_echo "$CC" >&6; }
3522else
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524$as_echo "no" >&6; }
3525fi
3526
3527
3528fi
3529if test -z "$ac_cv_prog_CC"; then
3530  ac_ct_CC=$CC
3531  # Extract the first word of "gcc", so it can be a program name with args.
3532set dummy gcc; ac_word=$2
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534$as_echo_n "checking for $ac_word... " >&6; }
3535if ${ac_cv_prog_ac_ct_CC+:} false; then :
3536  $as_echo_n "(cached) " >&6
3537else
3538  if test -n "$ac_ct_CC"; then
3539  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3540else
3541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542for as_dir in $PATH
3543do
3544  IFS=$as_save_IFS
3545  test -z "$as_dir" && as_dir=.
3546    for ac_exec_ext in '' $ac_executable_extensions; do
3547  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548    ac_cv_prog_ac_ct_CC="gcc"
3549    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550    break 2
3551  fi
3552done
3553  done
3554IFS=$as_save_IFS
3555
3556fi
3557fi
3558ac_ct_CC=$ac_cv_prog_ac_ct_CC
3559if test -n "$ac_ct_CC"; then
3560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3561$as_echo "$ac_ct_CC" >&6; }
3562else
3563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564$as_echo "no" >&6; }
3565fi
3566
3567  if test "x$ac_ct_CC" = x; then
3568    CC=""
3569  else
3570    case $cross_compiling:$ac_tool_warned in
3571yes:)
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574ac_tool_warned=yes ;;
3575esac
3576    CC=$ac_ct_CC
3577  fi
3578else
3579  CC="$ac_cv_prog_CC"
3580fi
3581
3582if test -z "$CC"; then
3583          if test -n "$ac_tool_prefix"; then
3584    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3585set dummy ${ac_tool_prefix}cc; ac_word=$2
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587$as_echo_n "checking for $ac_word... " >&6; }
3588if ${ac_cv_prog_CC+:} false; then :
3589  $as_echo_n "(cached) " >&6
3590else
3591  if test -n "$CC"; then
3592  ac_cv_prog_CC="$CC" # Let the user override the test.
3593else
3594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595for as_dir in $PATH
3596do
3597  IFS=$as_save_IFS
3598  test -z "$as_dir" && as_dir=.
3599    for ac_exec_ext in '' $ac_executable_extensions; do
3600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601    ac_cv_prog_CC="${ac_tool_prefix}cc"
3602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603    break 2
3604  fi
3605done
3606  done
3607IFS=$as_save_IFS
3608
3609fi
3610fi
3611CC=$ac_cv_prog_CC
3612if test -n "$CC"; then
3613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3614$as_echo "$CC" >&6; }
3615else
3616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617$as_echo "no" >&6; }
3618fi
3619
3620
3621  fi
3622fi
3623if test -z "$CC"; then
3624  # Extract the first word of "cc", so it can be a program name with args.
3625set dummy cc; ac_word=$2
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627$as_echo_n "checking for $ac_word... " >&6; }
3628if ${ac_cv_prog_CC+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  if test -n "$CC"; then
3632  ac_cv_prog_CC="$CC" # Let the user override the test.
3633else
3634  ac_prog_rejected=no
3635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH
3637do
3638  IFS=$as_save_IFS
3639  test -z "$as_dir" && as_dir=.
3640    for ac_exec_ext in '' $ac_executable_extensions; do
3641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3643       ac_prog_rejected=yes
3644       continue
3645     fi
3646    ac_cv_prog_CC="cc"
3647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648    break 2
3649  fi
3650done
3651  done
3652IFS=$as_save_IFS
3653
3654if test $ac_prog_rejected = yes; then
3655  # We found a bogon in the path, so make sure we never use it.
3656  set dummy $ac_cv_prog_CC
3657  shift
3658  if test $# != 0; then
3659    # We chose a different compiler from the bogus one.
3660    # However, it has the same basename, so the bogon will be chosen
3661    # first if we set CC to just the basename; use the full file name.
3662    shift
3663    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3664  fi
3665fi
3666fi
3667fi
3668CC=$ac_cv_prog_CC
3669if test -n "$CC"; then
3670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671$as_echo "$CC" >&6; }
3672else
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678fi
3679if test -z "$CC"; then
3680  if test -n "$ac_tool_prefix"; then
3681  for ac_prog in cl.exe
3682  do
3683    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
3687if ${ac_cv_prog_CC+:} false; then :
3688  $as_echo_n "(cached) " >&6
3689else
3690  if test -n "$CC"; then
3691  ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698    for ac_exec_ext in '' $ac_executable_extensions; do
3699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702    break 2
3703  fi
3704done
3705  done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710CC=$ac_cv_prog_CC
3711if test -n "$CC"; then
3712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713$as_echo "$CC" >&6; }
3714else
3715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719
3720    test -n "$CC" && break
3721  done
3722fi
3723if test -z "$CC"; then
3724  ac_ct_CC=$CC
3725  for ac_prog in cl.exe
3726do
3727  # Extract the first word of "$ac_prog", so it can be a program name with args.
3728set dummy $ac_prog; ac_word=$2
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730$as_echo_n "checking for $ac_word... " >&6; }
3731if ${ac_cv_prog_ac_ct_CC+:} false; then :
3732  $as_echo_n "(cached) " >&6
3733else
3734  if test -n "$ac_ct_CC"; then
3735  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3736else
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740  IFS=$as_save_IFS
3741  test -z "$as_dir" && as_dir=.
3742    for ac_exec_ext in '' $ac_executable_extensions; do
3743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744    ac_cv_prog_ac_ct_CC="$ac_prog"
3745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746    break 2
3747  fi
3748done
3749  done
3750IFS=$as_save_IFS
3751
3752fi
3753fi
3754ac_ct_CC=$ac_cv_prog_ac_ct_CC
3755if test -n "$ac_ct_CC"; then
3756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3757$as_echo "$ac_ct_CC" >&6; }
3758else
3759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760$as_echo "no" >&6; }
3761fi
3762
3763
3764  test -n "$ac_ct_CC" && break
3765done
3766
3767  if test "x$ac_ct_CC" = x; then
3768    CC=""
3769  else
3770    case $cross_compiling:$ac_tool_warned in
3771yes:)
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774ac_tool_warned=yes ;;
3775esac
3776    CC=$ac_ct_CC
3777  fi
3778fi
3779
3780fi
3781
3782
3783test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error $? "no acceptable C compiler found in \$PATH
3786See \`config.log' for more details" "$LINENO" 5; }
3787
3788# Provide some information about the compiler.
3789$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3790set X $ac_compile
3791ac_compiler=$2
3792for ac_option in --version -v -V -qversion; do
3793  { { ac_try="$ac_compiler $ac_option >&5"
3794case "(($ac_try" in
3795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796  *) ac_try_echo=$ac_try;;
3797esac
3798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799$as_echo "$ac_try_echo"; } >&5
3800  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3801  ac_status=$?
3802  if test -s conftest.err; then
3803    sed '10a\
3804... rest of stderr output deleted ...
3805         10q' conftest.err >conftest.er1
3806    cat conftest.er1 >&5
3807  fi
3808  rm -f conftest.er1 conftest.err
3809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810  test $ac_status = 0; }
3811done
3812
3813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h.  */
3815
3816int
3817main ()
3818{
3819
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824ac_clean_files_save=$ac_clean_files
3825ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3826# Try to create an executable without -o first, disregard a.out.
3827# It will help us diagnose broken compilers, and finding out an intuition
3828# of exeext.
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3830$as_echo_n "checking whether the C compiler works... " >&6; }
3831ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3832
3833# The possible output files:
3834ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3835
3836ac_rmfiles=
3837for ac_file in $ac_files
3838do
3839  case $ac_file in
3840    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3841    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3842  esac
3843done
3844rm -f $ac_rmfiles
3845
3846if { { ac_try="$ac_link_default"
3847case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852$as_echo "$ac_try_echo"; } >&5
3853  (eval "$ac_link_default") 2>&5
3854  ac_status=$?
3855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856  test $ac_status = 0; }; then :
3857  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3858# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3859# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3860# so that the user can short-circuit this test for compilers unknown to
3861# Autoconf.
3862for ac_file in $ac_files ''
3863do
3864  test -f "$ac_file" || continue
3865  case $ac_file in
3866    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3867	;;
3868    [ab].out )
3869	# We found the default executable, but exeext='' is most
3870	# certainly right.
3871	break;;
3872    *.* )
3873	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3874	then :; else
3875	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3876	fi
3877	# We set ac_cv_exeext here because the later test for it is not
3878	# safe: cross compilers may not add the suffix if given an `-o'
3879	# argument, so we may need to know it at that point already.
3880	# Even if this section looks crufty: it has the advantage of
3881	# actually working.
3882	break;;
3883    * )
3884	break;;
3885  esac
3886done
3887test "$ac_cv_exeext" = no && ac_cv_exeext=
3888
3889else
3890  ac_file=''
3891fi
3892if test -z "$ac_file"; then :
3893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3894$as_echo "no" >&6; }
3895$as_echo "$as_me: failed program was:" >&5
3896sed 's/^/| /' conftest.$ac_ext >&5
3897
3898{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900as_fn_error 77 "C compiler cannot create executables
3901See \`config.log' for more details" "$LINENO" 5; }
3902else
3903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3904$as_echo "yes" >&6; }
3905fi
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3907$as_echo_n "checking for C compiler default output file name... " >&6; }
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3909$as_echo "$ac_file" >&6; }
3910ac_exeext=$ac_cv_exeext
3911
3912rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3913ac_clean_files=$ac_clean_files_save
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3915$as_echo_n "checking for suffix of executables... " >&6; }
3916if { { ac_try="$ac_link"
3917case "(($ac_try" in
3918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919  *) ac_try_echo=$ac_try;;
3920esac
3921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922$as_echo "$ac_try_echo"; } >&5
3923  (eval "$ac_link") 2>&5
3924  ac_status=$?
3925  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926  test $ac_status = 0; }; then :
3927  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3928# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3929# work properly (i.e., refer to `conftest.exe'), while it won't with
3930# `rm'.
3931for ac_file in conftest.exe conftest conftest.*; do
3932  test -f "$ac_file" || continue
3933  case $ac_file in
3934    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3936	  break;;
3937    * ) break;;
3938  esac
3939done
3940else
3941  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3944See \`config.log' for more details" "$LINENO" 5; }
3945fi
3946rm -f conftest conftest$ac_cv_exeext
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3948$as_echo "$ac_cv_exeext" >&6; }
3949
3950rm -f conftest.$ac_ext
3951EXEEXT=$ac_cv_exeext
3952ac_exeext=$EXEEXT
3953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h.  */
3955#include <stdio.h>
3956int
3957main ()
3958{
3959FILE *f = fopen ("conftest.out", "w");
3960 return ferror (f) || fclose (f) != 0;
3961
3962  ;
3963  return 0;
3964}
3965_ACEOF
3966ac_clean_files="$ac_clean_files conftest.out"
3967# Check that the compiler produces executables we can run.  If not, either
3968# the compiler is broken, or we cross compile.
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3970$as_echo_n "checking whether we are cross compiling... " >&6; }
3971if test "$cross_compiling" != yes; then
3972  { { ac_try="$ac_link"
3973case "(($ac_try" in
3974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975  *) ac_try_echo=$ac_try;;
3976esac
3977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3978$as_echo "$ac_try_echo"; } >&5
3979  (eval "$ac_link") 2>&5
3980  ac_status=$?
3981  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3982  test $ac_status = 0; }
3983  if { ac_try='./conftest$ac_cv_exeext'
3984  { { case "(($ac_try" in
3985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3986  *) ac_try_echo=$ac_try;;
3987esac
3988eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3989$as_echo "$ac_try_echo"; } >&5
3990  (eval "$ac_try") 2>&5
3991  ac_status=$?
3992  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3993  test $ac_status = 0; }; }; then
3994    cross_compiling=no
3995  else
3996    if test "$cross_compiling" = maybe; then
3997	cross_compiling=yes
3998    else
3999	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001as_fn_error $? "cannot run C compiled programs.
4002If you meant to cross compile, use \`--host'.
4003See \`config.log' for more details" "$LINENO" 5; }
4004    fi
4005  fi
4006fi
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4008$as_echo "$cross_compiling" >&6; }
4009
4010rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4011ac_clean_files=$ac_clean_files_save
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4013$as_echo_n "checking for suffix of object files... " >&6; }
4014if ${ac_cv_objext+:} false; then :
4015  $as_echo_n "(cached) " >&6
4016else
4017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019
4020int
4021main ()
4022{
4023
4024  ;
4025  return 0;
4026}
4027_ACEOF
4028rm -f conftest.o conftest.obj
4029if { { ac_try="$ac_compile"
4030case "(($ac_try" in
4031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032  *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035$as_echo "$ac_try_echo"; } >&5
4036  (eval "$ac_compile") 2>&5
4037  ac_status=$?
4038  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039  test $ac_status = 0; }; then :
4040  for ac_file in conftest.o conftest.obj conftest.*; do
4041  test -f "$ac_file" || continue;
4042  case $ac_file in
4043    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4044    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4045       break;;
4046  esac
4047done
4048else
4049  $as_echo "$as_me: failed program was:" >&5
4050sed 's/^/| /' conftest.$ac_ext >&5
4051
4052{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054as_fn_error $? "cannot compute suffix of object files: cannot compile
4055See \`config.log' for more details" "$LINENO" 5; }
4056fi
4057rm -f conftest.$ac_cv_objext conftest.$ac_ext
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4060$as_echo "$ac_cv_objext" >&6; }
4061OBJEXT=$ac_cv_objext
4062ac_objext=$OBJEXT
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4064$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4065if ${ac_cv_c_compiler_gnu+:} false; then :
4066  $as_echo_n "(cached) " >&6
4067else
4068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070
4071int
4072main ()
4073{
4074#ifndef __GNUC__
4075       choke me
4076#endif
4077
4078  ;
4079  return 0;
4080}
4081_ACEOF
4082if ac_fn_c_try_compile "$LINENO"; then :
4083  ac_compiler_gnu=yes
4084else
4085  ac_compiler_gnu=no
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089
4090fi
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4092$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4093if test $ac_compiler_gnu = yes; then
4094  GCC=yes
4095else
4096  GCC=
4097fi
4098ac_test_CFLAGS=${CFLAGS+set}
4099ac_save_CFLAGS=$CFLAGS
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4101$as_echo_n "checking whether $CC accepts -g... " >&6; }
4102if ${ac_cv_prog_cc_g+:} false; then :
4103  $as_echo_n "(cached) " >&6
4104else
4105  ac_save_c_werror_flag=$ac_c_werror_flag
4106   ac_c_werror_flag=yes
4107   ac_cv_prog_cc_g=no
4108   CFLAGS="-g"
4109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111
4112int
4113main ()
4114{
4115
4116  ;
4117  return 0;
4118}
4119_ACEOF
4120if ac_fn_c_try_compile "$LINENO"; then :
4121  ac_cv_prog_cc_g=yes
4122else
4123  CFLAGS=""
4124      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126
4127int
4128main ()
4129{
4130
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_compile "$LINENO"; then :
4136
4137else
4138  ac_c_werror_flag=$ac_save_c_werror_flag
4139	 CFLAGS="-g"
4140	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141/* end confdefs.h.  */
4142
4143int
4144main ()
4145{
4146
4147  ;
4148  return 0;
4149}
4150_ACEOF
4151if ac_fn_c_try_compile "$LINENO"; then :
4152  ac_cv_prog_cc_g=yes
4153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4155fi
4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159   ac_c_werror_flag=$ac_save_c_werror_flag
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4162$as_echo "$ac_cv_prog_cc_g" >&6; }
4163if test "$ac_test_CFLAGS" = set; then
4164  CFLAGS=$ac_save_CFLAGS
4165elif test $ac_cv_prog_cc_g = yes; then
4166  if test "$GCC" = yes; then
4167    CFLAGS="-g -O2"
4168  else
4169    CFLAGS="-g"
4170  fi
4171else
4172  if test "$GCC" = yes; then
4173    CFLAGS="-O2"
4174  else
4175    CFLAGS=
4176  fi
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4179$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4180if ${ac_cv_prog_cc_c89+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  ac_cv_prog_cc_c89=no
4184ac_save_CC=$CC
4185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h.  */
4187#include <stdarg.h>
4188#include <stdio.h>
4189struct stat;
4190/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4191struct buf { int x; };
4192FILE * (*rcsopen) (struct buf *, struct stat *, int);
4193static char *e (p, i)
4194     char **p;
4195     int i;
4196{
4197  return p[i];
4198}
4199static char *f (char * (*g) (char **, int), char **p, ...)
4200{
4201  char *s;
4202  va_list v;
4203  va_start (v,p);
4204  s = g (p, va_arg (v,int));
4205  va_end (v);
4206  return s;
4207}
4208
4209/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4210   function prototypes and stuff, but not '\xHH' hex character constants.
4211   These don't provoke an error unfortunately, instead are silently treated
4212   as 'x'.  The following induces an error, until -std is added to get
4213   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4214   array size at least.  It's necessary to write '\x00'==0 to get something
4215   that's true only with -std.  */
4216int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4217
4218/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4219   inside strings and character constants.  */
4220#define FOO(x) 'x'
4221int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4222
4223int test (int i, double x);
4224struct s1 {int (*f) (int a);};
4225struct s2 {int (*f) (double a);};
4226int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4227int argc;
4228char **argv;
4229int
4230main ()
4231{
4232return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4233  ;
4234  return 0;
4235}
4236_ACEOF
4237for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4238	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4239do
4240  CC="$ac_save_CC $ac_arg"
4241  if ac_fn_c_try_compile "$LINENO"; then :
4242  ac_cv_prog_cc_c89=$ac_arg
4243fi
4244rm -f core conftest.err conftest.$ac_objext
4245  test "x$ac_cv_prog_cc_c89" != "xno" && break
4246done
4247rm -f conftest.$ac_ext
4248CC=$ac_save_CC
4249
4250fi
4251# AC_CACHE_VAL
4252case "x$ac_cv_prog_cc_c89" in
4253  x)
4254    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255$as_echo "none needed" >&6; } ;;
4256  xno)
4257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258$as_echo "unsupported" >&6; } ;;
4259  *)
4260    CC="$CC $ac_cv_prog_cc_c89"
4261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4262$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4263esac
4264if test "x$ac_cv_prog_cc_c89" != xno; then :
4265
4266fi
4267
4268ac_ext=c
4269ac_cpp='$CPP $CPPFLAGS'
4270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272ac_compiler_gnu=$ac_cv_c_compiler_gnu
4273
4274ac_ext=c
4275ac_cpp='$CPP $CPPFLAGS'
4276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4280$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4281if ${am_cv_prog_cc_c_o+:} false; then :
4282  $as_echo_n "(cached) " >&6
4283else
4284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286
4287int
4288main ()
4289{
4290
4291  ;
4292  return 0;
4293}
4294_ACEOF
4295  # Make sure it works both with $CC and with simple cc.
4296  # Following AC_PROG_CC_C_O, we do the test twice because some
4297  # compilers refuse to overwrite an existing .o file with -o,
4298  # though they will create one.
4299  am_cv_prog_cc_c_o=yes
4300  for am_i in 1 2; do
4301    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4302   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4303   ac_status=$?
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } \
4306         && test -f conftest2.$ac_objext; then
4307      : OK
4308    else
4309      am_cv_prog_cc_c_o=no
4310      break
4311    fi
4312  done
4313  rm -f core conftest*
4314  unset am_i
4315fi
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4317$as_echo "$am_cv_prog_cc_c_o" >&6; }
4318if test "$am_cv_prog_cc_c_o" != yes; then
4319   # Losing compiler, so override with the script.
4320   # FIXME: It is wrong to rewrite CC.
4321   # But if we don't then we get into trouble of one sort or another.
4322   # A longer-term fix would be to have automake use am__CC in this case,
4323   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4324   CC="$am_aux_dir/compile $CC"
4325fi
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332
4333depcc="$CC"   am_compiler_list=
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4336$as_echo_n "checking dependency style of $depcc... " >&6; }
4337if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4341  # We make a subdir and do the tests there.  Otherwise we can end up
4342  # making bogus files that we don't know about and never remove.  For
4343  # instance it was reported that on HP-UX the gcc test will end up
4344  # making a dummy file named 'D' -- because '-MD' means "put the output
4345  # in D".
4346  rm -rf conftest.dir
4347  mkdir conftest.dir
4348  # Copy depcomp to subdir because otherwise we won't find it if we're
4349  # using a relative directory.
4350  cp "$am_depcomp" conftest.dir
4351  cd conftest.dir
4352  # We will build objects and dependencies in a subdirectory because
4353  # it helps to detect inapplicable dependency modes.  For instance
4354  # both Tru64's cc and ICC support -MD to output dependencies as a
4355  # side effect of compilation, but ICC will put the dependencies in
4356  # the current directory while Tru64 will put them in the object
4357  # directory.
4358  mkdir sub
4359
4360  am_cv_CC_dependencies_compiler_type=none
4361  if test "$am_compiler_list" = ""; then
4362     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4363  fi
4364  am__universal=false
4365  case " $depcc " in #(
4366     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4367     esac
4368
4369  for depmode in $am_compiler_list; do
4370    # Setup a source with many dependencies, because some compilers
4371    # like to wrap large dependency lists on column 80 (with \), and
4372    # we should not choose a depcomp mode which is confused by this.
4373    #
4374    # We need to recreate these files for each test, as the compiler may
4375    # overwrite some of them when testing with obscure command lines.
4376    # This happens at least with the AIX C compiler.
4377    : > sub/conftest.c
4378    for i in 1 2 3 4 5 6; do
4379      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4380      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4381      # Solaris 10 /bin/sh.
4382      echo '/* dummy */' > sub/conftst$i.h
4383    done
4384    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4385
4386    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4387    # mode.  It turns out that the SunPro C++ compiler does not properly
4388    # handle '-M -o', and we need to detect this.  Also, some Intel
4389    # versions had trouble with output in subdirs.
4390    am__obj=sub/conftest.${OBJEXT-o}
4391    am__minus_obj="-o $am__obj"
4392    case $depmode in
4393    gcc)
4394      # This depmode causes a compiler race in universal mode.
4395      test "$am__universal" = false || continue
4396      ;;
4397    nosideeffect)
4398      # After this tag, mechanisms are not by side-effect, so they'll
4399      # only be used when explicitly requested.
4400      if test "x$enable_dependency_tracking" = xyes; then
4401	continue
4402      else
4403	break
4404      fi
4405      ;;
4406    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4407      # This compiler won't grok '-c -o', but also, the minuso test has
4408      # not run yet.  These depmodes are late enough in the game, and
4409      # so weak that their functioning should not be impacted.
4410      am__obj=conftest.${OBJEXT-o}
4411      am__minus_obj=
4412      ;;
4413    none) break ;;
4414    esac
4415    if depmode=$depmode \
4416       source=sub/conftest.c object=$am__obj \
4417       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4418       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4419         >/dev/null 2>conftest.err &&
4420       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4421       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4422       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4423       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4424      # icc doesn't choke on unknown options, it will just issue warnings
4425      # or remarks (even with -Werror).  So we grep stderr for any message
4426      # that says an option was ignored or not supported.
4427      # When given -MP, icc 7.0 and 7.1 complain thusly:
4428      #   icc: Command line warning: ignoring option '-M'; no argument required
4429      # The diagnosis changed in icc 8.0:
4430      #   icc: Command line remark: option '-MP' not supported
4431      if (grep 'ignoring option' conftest.err ||
4432          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4433        am_cv_CC_dependencies_compiler_type=$depmode
4434        break
4435      fi
4436    fi
4437  done
4438
4439  cd ..
4440  rm -rf conftest.dir
4441else
4442  am_cv_CC_dependencies_compiler_type=none
4443fi
4444
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4447$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4448CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449
4450 if
4451  test "x$enable_dependency_tracking" != xno \
4452  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4453  am__fastdepCC_TRUE=
4454  am__fastdepCC_FALSE='#'
4455else
4456  am__fastdepCC_TRUE='#'
4457  am__fastdepCC_FALSE=
4458fi
4459
4460
4461
4462ac_ext=c
4463ac_cpp='$CPP $CPPFLAGS'
4464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466ac_compiler_gnu=$ac_cv_c_compiler_gnu
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4468$as_echo_n "checking how to run the C preprocessor... " >&6; }
4469# On Suns, sometimes $CPP names a directory.
4470if test -n "$CPP" && test -d "$CPP"; then
4471  CPP=
4472fi
4473if test -z "$CPP"; then
4474  if ${ac_cv_prog_CPP+:} false; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477      # Double quotes because CPP needs to be expanded
4478    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4479    do
4480      ac_preproc_ok=false
4481for ac_c_preproc_warn_flag in '' yes
4482do
4483  # Use a header file that comes with gcc, so configuring glibc
4484  # with a fresh cross-compiler works.
4485  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4486  # <limits.h> exists even on freestanding compilers.
4487  # On the NeXT, cc -E runs the code through the compiler's parser,
4488  # not just through cpp. "Syntax error" is here to catch this case.
4489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490/* end confdefs.h.  */
4491#ifdef __STDC__
4492# include <limits.h>
4493#else
4494# include <assert.h>
4495#endif
4496		     Syntax error
4497_ACEOF
4498if ac_fn_c_try_cpp "$LINENO"; then :
4499
4500else
4501  # Broken: fails on valid input.
4502continue
4503fi
4504rm -f conftest.err conftest.i conftest.$ac_ext
4505
4506  # OK, works on sane cases.  Now check whether nonexistent headers
4507  # can be detected and how.
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510#include <ac_nonexistent.h>
4511_ACEOF
4512if ac_fn_c_try_cpp "$LINENO"; then :
4513  # Broken: success on invalid input.
4514continue
4515else
4516  # Passes both tests.
4517ac_preproc_ok=:
4518break
4519fi
4520rm -f conftest.err conftest.i conftest.$ac_ext
4521
4522done
4523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4524rm -f conftest.i conftest.err conftest.$ac_ext
4525if $ac_preproc_ok; then :
4526  break
4527fi
4528
4529    done
4530    ac_cv_prog_CPP=$CPP
4531
4532fi
4533  CPP=$ac_cv_prog_CPP
4534else
4535  ac_cv_prog_CPP=$CPP
4536fi
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4538$as_echo "$CPP" >&6; }
4539ac_preproc_ok=false
4540for ac_c_preproc_warn_flag in '' yes
4541do
4542  # Use a header file that comes with gcc, so configuring glibc
4543  # with a fresh cross-compiler works.
4544  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4545  # <limits.h> exists even on freestanding compilers.
4546  # On the NeXT, cc -E runs the code through the compiler's parser,
4547  # not just through cpp. "Syntax error" is here to catch this case.
4548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550#ifdef __STDC__
4551# include <limits.h>
4552#else
4553# include <assert.h>
4554#endif
4555		     Syntax error
4556_ACEOF
4557if ac_fn_c_try_cpp "$LINENO"; then :
4558
4559else
4560  # Broken: fails on valid input.
4561continue
4562fi
4563rm -f conftest.err conftest.i conftest.$ac_ext
4564
4565  # OK, works on sane cases.  Now check whether nonexistent headers
4566  # can be detected and how.
4567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h.  */
4569#include <ac_nonexistent.h>
4570_ACEOF
4571if ac_fn_c_try_cpp "$LINENO"; then :
4572  # Broken: success on invalid input.
4573continue
4574else
4575  # Passes both tests.
4576ac_preproc_ok=:
4577break
4578fi
4579rm -f conftest.err conftest.i conftest.$ac_ext
4580
4581done
4582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4583rm -f conftest.i conftest.err conftest.$ac_ext
4584if $ac_preproc_ok; then :
4585
4586else
4587  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4589as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4590See \`config.log' for more details" "$LINENO" 5; }
4591fi
4592
4593ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4601$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4602if ${ac_cv_path_GREP+:} false; then :
4603  $as_echo_n "(cached) " >&6
4604else
4605  if test -z "$GREP"; then
4606  ac_path_GREP_found=false
4607  # Loop through the user's path and test for each of PROGNAME-LIST
4608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610do
4611  IFS=$as_save_IFS
4612  test -z "$as_dir" && as_dir=.
4613    for ac_prog in grep ggrep; do
4614    for ac_exec_ext in '' $ac_executable_extensions; do
4615      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4616      as_fn_executable_p "$ac_path_GREP" || continue
4617# Check for GNU ac_path_GREP and select it if it is found.
4618  # Check for GNU $ac_path_GREP
4619case `"$ac_path_GREP" --version 2>&1` in
4620*GNU*)
4621  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4622*)
4623  ac_count=0
4624  $as_echo_n 0123456789 >"conftest.in"
4625  while :
4626  do
4627    cat "conftest.in" "conftest.in" >"conftest.tmp"
4628    mv "conftest.tmp" "conftest.in"
4629    cp "conftest.in" "conftest.nl"
4630    $as_echo 'GREP' >> "conftest.nl"
4631    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4632    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4633    as_fn_arith $ac_count + 1 && ac_count=$as_val
4634    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4635      # Best one so far, save it but keep looking for a better one
4636      ac_cv_path_GREP="$ac_path_GREP"
4637      ac_path_GREP_max=$ac_count
4638    fi
4639    # 10*(2^10) chars as input seems more than enough
4640    test $ac_count -gt 10 && break
4641  done
4642  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4643esac
4644
4645      $ac_path_GREP_found && break 3
4646    done
4647  done
4648  done
4649IFS=$as_save_IFS
4650  if test -z "$ac_cv_path_GREP"; then
4651    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652  fi
4653else
4654  ac_cv_path_GREP=$GREP
4655fi
4656
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4659$as_echo "$ac_cv_path_GREP" >&6; }
4660 GREP="$ac_cv_path_GREP"
4661
4662
4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4664$as_echo_n "checking for egrep... " >&6; }
4665if ${ac_cv_path_EGREP+:} false; then :
4666  $as_echo_n "(cached) " >&6
4667else
4668  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4669   then ac_cv_path_EGREP="$GREP -E"
4670   else
4671     if test -z "$EGREP"; then
4672  ac_path_EGREP_found=false
4673  # Loop through the user's path and test for each of PROGNAME-LIST
4674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676do
4677  IFS=$as_save_IFS
4678  test -z "$as_dir" && as_dir=.
4679    for ac_prog in egrep; do
4680    for ac_exec_ext in '' $ac_executable_extensions; do
4681      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4682      as_fn_executable_p "$ac_path_EGREP" || continue
4683# Check for GNU ac_path_EGREP and select it if it is found.
4684  # Check for GNU $ac_path_EGREP
4685case `"$ac_path_EGREP" --version 2>&1` in
4686*GNU*)
4687  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4688*)
4689  ac_count=0
4690  $as_echo_n 0123456789 >"conftest.in"
4691  while :
4692  do
4693    cat "conftest.in" "conftest.in" >"conftest.tmp"
4694    mv "conftest.tmp" "conftest.in"
4695    cp "conftest.in" "conftest.nl"
4696    $as_echo 'EGREP' >> "conftest.nl"
4697    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4698    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4699    as_fn_arith $ac_count + 1 && ac_count=$as_val
4700    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4701      # Best one so far, save it but keep looking for a better one
4702      ac_cv_path_EGREP="$ac_path_EGREP"
4703      ac_path_EGREP_max=$ac_count
4704    fi
4705    # 10*(2^10) chars as input seems more than enough
4706    test $ac_count -gt 10 && break
4707  done
4708  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709esac
4710
4711      $ac_path_EGREP_found && break 3
4712    done
4713  done
4714  done
4715IFS=$as_save_IFS
4716  if test -z "$ac_cv_path_EGREP"; then
4717    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718  fi
4719else
4720  ac_cv_path_EGREP=$EGREP
4721fi
4722
4723   fi
4724fi
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4726$as_echo "$ac_cv_path_EGREP" >&6; }
4727 EGREP="$ac_cv_path_EGREP"
4728
4729
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4731$as_echo_n "checking for ANSI C header files... " >&6; }
4732if ${ac_cv_header_stdc+:} false; then :
4733  $as_echo_n "(cached) " >&6
4734else
4735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h.  */
4737#include <stdlib.h>
4738#include <stdarg.h>
4739#include <string.h>
4740#include <float.h>
4741
4742int
4743main ()
4744{
4745
4746  ;
4747  return 0;
4748}
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751  ac_cv_header_stdc=yes
4752else
4753  ac_cv_header_stdc=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756
4757if test $ac_cv_header_stdc = yes; then
4758  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761#include <string.h>
4762
4763_ACEOF
4764if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765  $EGREP "memchr" >/dev/null 2>&1; then :
4766
4767else
4768  ac_cv_header_stdc=no
4769fi
4770rm -f conftest*
4771
4772fi
4773
4774if test $ac_cv_header_stdc = yes; then
4775  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h.  */
4778#include <stdlib.h>
4779
4780_ACEOF
4781if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4782  $EGREP "free" >/dev/null 2>&1; then :
4783
4784else
4785  ac_cv_header_stdc=no
4786fi
4787rm -f conftest*
4788
4789fi
4790
4791if test $ac_cv_header_stdc = yes; then
4792  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4793  if test "$cross_compiling" = yes; then :
4794  :
4795else
4796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797/* end confdefs.h.  */
4798#include <ctype.h>
4799#include <stdlib.h>
4800#if ((' ' & 0x0FF) == 0x020)
4801# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4802# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4803#else
4804# define ISLOWER(c) \
4805		   (('a' <= (c) && (c) <= 'i') \
4806		     || ('j' <= (c) && (c) <= 'r') \
4807		     || ('s' <= (c) && (c) <= 'z'))
4808# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4809#endif
4810
4811#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4812int
4813main ()
4814{
4815  int i;
4816  for (i = 0; i < 256; i++)
4817    if (XOR (islower (i), ISLOWER (i))
4818	|| toupper (i) != TOUPPER (i))
4819      return 2;
4820  return 0;
4821}
4822_ACEOF
4823if ac_fn_c_try_run "$LINENO"; then :
4824
4825else
4826  ac_cv_header_stdc=no
4827fi
4828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4829  conftest.$ac_objext conftest.beam conftest.$ac_ext
4830fi
4831
4832fi
4833fi
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4835$as_echo "$ac_cv_header_stdc" >&6; }
4836if test $ac_cv_header_stdc = yes; then
4837
4838$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4839
4840fi
4841
4842# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4843for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4844		  inttypes.h stdint.h unistd.h
4845do :
4846  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4847ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4848"
4849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4850  cat >>confdefs.h <<_ACEOF
4851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4852_ACEOF
4853
4854fi
4855
4856done
4857
4858
4859
4860  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4861if test "x$ac_cv_header_minix_config_h" = xyes; then :
4862  MINIX=yes
4863else
4864  MINIX=
4865fi
4866
4867
4868  if test "$MINIX" = yes; then
4869
4870$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4871
4872
4873$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4874
4875
4876$as_echo "#define _MINIX 1" >>confdefs.h
4877
4878  fi
4879
4880
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4882$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4883if ${ac_cv_safe_to_define___extensions__+:} false; then :
4884  $as_echo_n "(cached) " >&6
4885else
4886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887/* end confdefs.h.  */
4888
4889#         define __EXTENSIONS__ 1
4890          $ac_includes_default
4891int
4892main ()
4893{
4894
4895  ;
4896  return 0;
4897}
4898_ACEOF
4899if ac_fn_c_try_compile "$LINENO"; then :
4900  ac_cv_safe_to_define___extensions__=yes
4901else
4902  ac_cv_safe_to_define___extensions__=no
4903fi
4904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905fi
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4907$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4908  test $ac_cv_safe_to_define___extensions__ = yes &&
4909    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4910
4911  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4912
4913  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4914
4915  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4916
4917  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4918
4919
4920
4921# Initialize libtool
4922
4923case `pwd` in
4924  *\ * | *\	*)
4925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4926$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4927esac
4928
4929
4930
4931macro_version='2.4.2'
4932macro_revision='1.3337'
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946ltmain="$ac_aux_dir/ltmain.sh"
4947
4948# Make sure we can run config.sub.
4949$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4950  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4951
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4953$as_echo_n "checking build system type... " >&6; }
4954if ${ac_cv_build+:} false; then :
4955  $as_echo_n "(cached) " >&6
4956else
4957  ac_build_alias=$build_alias
4958test "x$ac_build_alias" = x &&
4959  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4960test "x$ac_build_alias" = x &&
4961  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4962ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4963  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4964
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4967$as_echo "$ac_cv_build" >&6; }
4968case $ac_cv_build in
4969*-*-*) ;;
4970*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4971esac
4972build=$ac_cv_build
4973ac_save_IFS=$IFS; IFS='-'
4974set x $ac_cv_build
4975shift
4976build_cpu=$1
4977build_vendor=$2
4978shift; shift
4979# Remember, the first character of IFS is used to create $*,
4980# except with old shells:
4981build_os=$*
4982IFS=$ac_save_IFS
4983case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4984
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4987$as_echo_n "checking host system type... " >&6; }
4988if ${ac_cv_host+:} false; then :
4989  $as_echo_n "(cached) " >&6
4990else
4991  if test "x$host_alias" = x; then
4992  ac_cv_host=$ac_cv_build
4993else
4994  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4995    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4996fi
4997
4998fi
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5000$as_echo "$ac_cv_host" >&6; }
5001case $ac_cv_host in
5002*-*-*) ;;
5003*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5004esac
5005host=$ac_cv_host
5006ac_save_IFS=$IFS; IFS='-'
5007set x $ac_cv_host
5008shift
5009host_cpu=$1
5010host_vendor=$2
5011shift; shift
5012# Remember, the first character of IFS is used to create $*,
5013# except with old shells:
5014host_os=$*
5015IFS=$ac_save_IFS
5016case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5017
5018
5019# Backslashify metacharacters that are still active within
5020# double-quoted strings.
5021sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5022
5023# Same as above, but do not quote variable references.
5024double_quote_subst='s/\(["`\\]\)/\\\1/g'
5025
5026# Sed substitution to delay expansion of an escaped shell variable in a
5027# double_quote_subst'ed string.
5028delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5029
5030# Sed substitution to delay expansion of an escaped single quote.
5031delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5032
5033# Sed substitution to avoid accidental globbing in evaled expressions
5034no_glob_subst='s/\*/\\\*/g'
5035
5036ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5037ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5038ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5039
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5041$as_echo_n "checking how to print strings... " >&6; }
5042# Test print first, because it will be a builtin if present.
5043if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5044   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5045  ECHO='print -r --'
5046elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5047  ECHO='printf %s\n'
5048else
5049  # Use this function as a fallback that always works.
5050  func_fallback_echo ()
5051  {
5052    eval 'cat <<_LTECHO_EOF
5053$1
5054_LTECHO_EOF'
5055  }
5056  ECHO='func_fallback_echo'
5057fi
5058
5059# func_echo_all arg...
5060# Invoke $ECHO with all args, space-separated.
5061func_echo_all ()
5062{
5063    $ECHO ""
5064}
5065
5066case "$ECHO" in
5067  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5068$as_echo "printf" >&6; } ;;
5069  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5070$as_echo "print -r" >&6; } ;;
5071  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5072$as_echo "cat" >&6; } ;;
5073esac
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5089$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5090if ${ac_cv_path_SED+:} false; then :
5091  $as_echo_n "(cached) " >&6
5092else
5093            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5094     for ac_i in 1 2 3 4 5 6 7; do
5095       ac_script="$ac_script$as_nl$ac_script"
5096     done
5097     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5098     { ac_script=; unset ac_script;}
5099     if test -z "$SED"; then
5100  ac_path_SED_found=false
5101  # Loop through the user's path and test for each of PROGNAME-LIST
5102  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105  IFS=$as_save_IFS
5106  test -z "$as_dir" && as_dir=.
5107    for ac_prog in sed gsed; do
5108    for ac_exec_ext in '' $ac_executable_extensions; do
5109      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5110      as_fn_executable_p "$ac_path_SED" || continue
5111# Check for GNU ac_path_SED and select it if it is found.
5112  # Check for GNU $ac_path_SED
5113case `"$ac_path_SED" --version 2>&1` in
5114*GNU*)
5115  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5116*)
5117  ac_count=0
5118  $as_echo_n 0123456789 >"conftest.in"
5119  while :
5120  do
5121    cat "conftest.in" "conftest.in" >"conftest.tmp"
5122    mv "conftest.tmp" "conftest.in"
5123    cp "conftest.in" "conftest.nl"
5124    $as_echo '' >> "conftest.nl"
5125    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127    as_fn_arith $ac_count + 1 && ac_count=$as_val
5128    if test $ac_count -gt ${ac_path_SED_max-0}; then
5129      # Best one so far, save it but keep looking for a better one
5130      ac_cv_path_SED="$ac_path_SED"
5131      ac_path_SED_max=$ac_count
5132    fi
5133    # 10*(2^10) chars as input seems more than enough
5134    test $ac_count -gt 10 && break
5135  done
5136  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137esac
5138
5139      $ac_path_SED_found && break 3
5140    done
5141  done
5142  done
5143IFS=$as_save_IFS
5144  if test -z "$ac_cv_path_SED"; then
5145    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5146  fi
5147else
5148  ac_cv_path_SED=$SED
5149fi
5150
5151fi
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5153$as_echo "$ac_cv_path_SED" >&6; }
5154 SED="$ac_cv_path_SED"
5155  rm -f conftest.sed
5156
5157test -z "$SED" && SED=sed
5158Xsed="$SED -e 1s/^X//"
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5171$as_echo_n "checking for fgrep... " >&6; }
5172if ${ac_cv_path_FGREP+:} false; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5176   then ac_cv_path_FGREP="$GREP -F"
5177   else
5178     if test -z "$FGREP"; then
5179  ac_path_FGREP_found=false
5180  # Loop through the user's path and test for each of PROGNAME-LIST
5181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5183do
5184  IFS=$as_save_IFS
5185  test -z "$as_dir" && as_dir=.
5186    for ac_prog in fgrep; do
5187    for ac_exec_ext in '' $ac_executable_extensions; do
5188      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5189      as_fn_executable_p "$ac_path_FGREP" || continue
5190# Check for GNU ac_path_FGREP and select it if it is found.
5191  # Check for GNU $ac_path_FGREP
5192case `"$ac_path_FGREP" --version 2>&1` in
5193*GNU*)
5194  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5195*)
5196  ac_count=0
5197  $as_echo_n 0123456789 >"conftest.in"
5198  while :
5199  do
5200    cat "conftest.in" "conftest.in" >"conftest.tmp"
5201    mv "conftest.tmp" "conftest.in"
5202    cp "conftest.in" "conftest.nl"
5203    $as_echo 'FGREP' >> "conftest.nl"
5204    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206    as_fn_arith $ac_count + 1 && ac_count=$as_val
5207    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5208      # Best one so far, save it but keep looking for a better one
5209      ac_cv_path_FGREP="$ac_path_FGREP"
5210      ac_path_FGREP_max=$ac_count
5211    fi
5212    # 10*(2^10) chars as input seems more than enough
5213    test $ac_count -gt 10 && break
5214  done
5215  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216esac
5217
5218      $ac_path_FGREP_found && break 3
5219    done
5220  done
5221  done
5222IFS=$as_save_IFS
5223  if test -z "$ac_cv_path_FGREP"; then
5224    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5225  fi
5226else
5227  ac_cv_path_FGREP=$FGREP
5228fi
5229
5230   fi
5231fi
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5233$as_echo "$ac_cv_path_FGREP" >&6; }
5234 FGREP="$ac_cv_path_FGREP"
5235
5236
5237test -z "$GREP" && GREP=grep
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257# Check whether --with-gnu-ld was given.
5258if test "${with_gnu_ld+set}" = set; then :
5259  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5260else
5261  with_gnu_ld=no
5262fi
5263
5264ac_prog=ld
5265if test "$GCC" = yes; then
5266  # Check if gcc -print-prog-name=ld gives a path.
5267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5268$as_echo_n "checking for ld used by $CC... " >&6; }
5269  case $host in
5270  *-*-mingw*)
5271    # gcc leaves a trailing carriage return which upsets mingw
5272    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5273  *)
5274    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5275  esac
5276  case $ac_prog in
5277    # Accept absolute paths.
5278    [\\/]* | ?:[\\/]*)
5279      re_direlt='/[^/][^/]*/\.\./'
5280      # Canonicalize the pathname of ld
5281      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5282      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5283	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5284      done
5285      test -z "$LD" && LD="$ac_prog"
5286      ;;
5287  "")
5288    # If it fails, then pretend we aren't using GCC.
5289    ac_prog=ld
5290    ;;
5291  *)
5292    # If it is relative, then search for the first ld in PATH.
5293    with_gnu_ld=unknown
5294    ;;
5295  esac
5296elif test "$with_gnu_ld" = yes; then
5297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5298$as_echo_n "checking for GNU ld... " >&6; }
5299else
5300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5301$as_echo_n "checking for non-GNU ld... " >&6; }
5302fi
5303if ${lt_cv_path_LD+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -z "$LD"; then
5307  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5308  for ac_dir in $PATH; do
5309    IFS="$lt_save_ifs"
5310    test -z "$ac_dir" && ac_dir=.
5311    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5312      lt_cv_path_LD="$ac_dir/$ac_prog"
5313      # Check to see if the program is GNU ld.  I'd rather use --version,
5314      # but apparently some variants of GNU ld only accept -v.
5315      # Break only if it was the GNU/non-GNU ld that we prefer.
5316      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5317      *GNU* | *'with BFD'*)
5318	test "$with_gnu_ld" != no && break
5319	;;
5320      *)
5321	test "$with_gnu_ld" != yes && break
5322	;;
5323      esac
5324    fi
5325  done
5326  IFS="$lt_save_ifs"
5327else
5328  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5329fi
5330fi
5331
5332LD="$lt_cv_path_LD"
5333if test -n "$LD"; then
5334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5335$as_echo "$LD" >&6; }
5336else
5337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338$as_echo "no" >&6; }
5339fi
5340test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5342$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5343if ${lt_cv_prog_gnu_ld+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5347case `$LD -v 2>&1 </dev/null` in
5348*GNU* | *'with BFD'*)
5349  lt_cv_prog_gnu_ld=yes
5350  ;;
5351*)
5352  lt_cv_prog_gnu_ld=no
5353  ;;
5354esac
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5357$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5358with_gnu_ld=$lt_cv_prog_gnu_ld
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5369$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5370if ${lt_cv_path_NM+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  if test -n "$NM"; then
5374  # Let the user override the test.
5375  lt_cv_path_NM="$NM"
5376else
5377  lt_nm_to_check="${ac_tool_prefix}nm"
5378  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5379    lt_nm_to_check="$lt_nm_to_check nm"
5380  fi
5381  for lt_tmp_nm in $lt_nm_to_check; do
5382    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5383    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5384      IFS="$lt_save_ifs"
5385      test -z "$ac_dir" && ac_dir=.
5386      tmp_nm="$ac_dir/$lt_tmp_nm"
5387      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5388	# Check to see if the nm accepts a BSD-compat flag.
5389	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5390	#   nm: unknown option "B" ignored
5391	# Tru64's nm complains that /dev/null is an invalid object file
5392	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5393	*/dev/null* | *'Invalid file or object type'*)
5394	  lt_cv_path_NM="$tmp_nm -B"
5395	  break
5396	  ;;
5397	*)
5398	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5399	  */dev/null*)
5400	    lt_cv_path_NM="$tmp_nm -p"
5401	    break
5402	    ;;
5403	  *)
5404	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5405	    continue # so that we can try to find one that supports BSD flags
5406	    ;;
5407	  esac
5408	  ;;
5409	esac
5410      fi
5411    done
5412    IFS="$lt_save_ifs"
5413  done
5414  : ${lt_cv_path_NM=no}
5415fi
5416fi
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5418$as_echo "$lt_cv_path_NM" >&6; }
5419if test "$lt_cv_path_NM" != "no"; then
5420  NM="$lt_cv_path_NM"
5421else
5422  # Didn't find any BSD compatible name lister, look for dumpbin.
5423  if test -n "$DUMPBIN"; then :
5424    # Let the user override the test.
5425  else
5426    if test -n "$ac_tool_prefix"; then
5427  for ac_prog in dumpbin "link -dump"
5428  do
5429    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5430set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432$as_echo_n "checking for $ac_word... " >&6; }
5433if ${ac_cv_prog_DUMPBIN+:} false; then :
5434  $as_echo_n "(cached) " >&6
5435else
5436  if test -n "$DUMPBIN"; then
5437  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444    for ac_exec_ext in '' $ac_executable_extensions; do
5445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451  done
5452IFS=$as_save_IFS
5453
5454fi
5455fi
5456DUMPBIN=$ac_cv_prog_DUMPBIN
5457if test -n "$DUMPBIN"; then
5458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5459$as_echo "$DUMPBIN" >&6; }
5460else
5461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }
5463fi
5464
5465
5466    test -n "$DUMPBIN" && break
5467  done
5468fi
5469if test -z "$DUMPBIN"; then
5470  ac_ct_DUMPBIN=$DUMPBIN
5471  for ac_prog in dumpbin "link -dump"
5472do
5473  # Extract the first word of "$ac_prog", so it can be a program name with args.
5474set dummy $ac_prog; ac_word=$2
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5476$as_echo_n "checking for $ac_word... " >&6; }
5477if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5478  $as_echo_n "(cached) " >&6
5479else
5480  if test -n "$ac_ct_DUMPBIN"; then
5481  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5482else
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486  IFS=$as_save_IFS
5487  test -z "$as_dir" && as_dir=.
5488    for ac_exec_ext in '' $ac_executable_extensions; do
5489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492    break 2
5493  fi
5494done
5495  done
5496IFS=$as_save_IFS
5497
5498fi
5499fi
5500ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5501if test -n "$ac_ct_DUMPBIN"; then
5502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5503$as_echo "$ac_ct_DUMPBIN" >&6; }
5504else
5505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506$as_echo "no" >&6; }
5507fi
5508
5509
5510  test -n "$ac_ct_DUMPBIN" && break
5511done
5512
5513  if test "x$ac_ct_DUMPBIN" = x; then
5514    DUMPBIN=":"
5515  else
5516    case $cross_compiling:$ac_tool_warned in
5517yes:)
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5520ac_tool_warned=yes ;;
5521esac
5522    DUMPBIN=$ac_ct_DUMPBIN
5523  fi
5524fi
5525
5526    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5527    *COFF*)
5528      DUMPBIN="$DUMPBIN -symbols"
5529      ;;
5530    *)
5531      DUMPBIN=:
5532      ;;
5533    esac
5534  fi
5535
5536  if test "$DUMPBIN" != ":"; then
5537    NM="$DUMPBIN"
5538  fi
5539fi
5540test -z "$NM" && NM=nm
5541
5542
5543
5544
5545
5546
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5548$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5549if ${lt_cv_nm_interface+:} false; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552  lt_cv_nm_interface="BSD nm"
5553  echo "int some_variable = 0;" > conftest.$ac_ext
5554  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5555  (eval "$ac_compile" 2>conftest.err)
5556  cat conftest.err >&5
5557  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5558  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5559  cat conftest.err >&5
5560  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5561  cat conftest.out >&5
5562  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5563    lt_cv_nm_interface="MS dumpbin"
5564  fi
5565  rm -f conftest*
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5568$as_echo "$lt_cv_nm_interface" >&6; }
5569
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5571$as_echo_n "checking whether ln -s works... " >&6; }
5572LN_S=$as_ln_s
5573if test "$LN_S" = "ln -s"; then
5574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575$as_echo "yes" >&6; }
5576else
5577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5578$as_echo "no, using $LN_S" >&6; }
5579fi
5580
5581# find the maximum length of command line arguments
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5583$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5584if ${lt_cv_sys_max_cmd_len+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587    i=0
5588  teststring="ABCD"
5589
5590  case $build_os in
5591  msdosdjgpp*)
5592    # On DJGPP, this test can blow up pretty badly due to problems in libc
5593    # (any single argument exceeding 2000 bytes causes a buffer overrun
5594    # during glob expansion).  Even if it were fixed, the result of this
5595    # check would be larger than it should be.
5596    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5597    ;;
5598
5599  gnu*)
5600    # Under GNU Hurd, this test is not required because there is
5601    # no limit to the length of command line arguments.
5602    # Libtool will interpret -1 as no limit whatsoever
5603    lt_cv_sys_max_cmd_len=-1;
5604    ;;
5605
5606  cygwin* | mingw* | cegcc*)
5607    # On Win9x/ME, this test blows up -- it succeeds, but takes
5608    # about 5 minutes as the teststring grows exponentially.
5609    # Worse, since 9x/ME are not pre-emptively multitasking,
5610    # you end up with a "frozen" computer, even though with patience
5611    # the test eventually succeeds (with a max line length of 256k).
5612    # Instead, let's just punt: use the minimum linelength reported by
5613    # all of the supported platforms: 8192 (on NT/2K/XP).
5614    lt_cv_sys_max_cmd_len=8192;
5615    ;;
5616
5617  mint*)
5618    # On MiNT this can take a long time and run out of memory.
5619    lt_cv_sys_max_cmd_len=8192;
5620    ;;
5621
5622  amigaos*)
5623    # On AmigaOS with pdksh, this test takes hours, literally.
5624    # So we just punt and use a minimum line length of 8192.
5625    lt_cv_sys_max_cmd_len=8192;
5626    ;;
5627
5628  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5629    # This has been around since 386BSD, at least.  Likely further.
5630    if test -x /sbin/sysctl; then
5631      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5632    elif test -x /usr/sbin/sysctl; then
5633      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5634    else
5635      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5636    fi
5637    # And add a safety zone
5638    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5639    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5640    ;;
5641
5642  interix*)
5643    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5644    lt_cv_sys_max_cmd_len=196608
5645    ;;
5646
5647  os2*)
5648    # The test takes a long time on OS/2.
5649    lt_cv_sys_max_cmd_len=8192
5650    ;;
5651
5652  osf*)
5653    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5654    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5655    # nice to cause kernel panics so lets avoid the loop below.
5656    # First set a reasonable default.
5657    lt_cv_sys_max_cmd_len=16384
5658    #
5659    if test -x /sbin/sysconfig; then
5660      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5661        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5662      esac
5663    fi
5664    ;;
5665  sco3.2v5*)
5666    lt_cv_sys_max_cmd_len=102400
5667    ;;
5668  sysv5* | sco5v6* | sysv4.2uw2*)
5669    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5670    if test -n "$kargmax"; then
5671      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5672    else
5673      lt_cv_sys_max_cmd_len=32768
5674    fi
5675    ;;
5676  *)
5677    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5678    if test -n "$lt_cv_sys_max_cmd_len" && \
5679	test undefined != "$lt_cv_sys_max_cmd_len"; then
5680      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5681      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5682    else
5683      # Make teststring a little bigger before we do anything with it.
5684      # a 1K string should be a reasonable start.
5685      for i in 1 2 3 4 5 6 7 8 ; do
5686        teststring=$teststring$teststring
5687      done
5688      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5689      # If test is not a shell built-in, we'll probably end up computing a
5690      # maximum length that is only half of the actual maximum length, but
5691      # we can't tell.
5692      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5693	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5694	      test $i != 17 # 1/2 MB should be enough
5695      do
5696        i=`expr $i + 1`
5697        teststring=$teststring$teststring
5698      done
5699      # Only check the string length outside the loop.
5700      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5701      teststring=
5702      # Add a significant safety factor because C++ compilers can tack on
5703      # massive amounts of additional arguments before passing them to the
5704      # linker.  It appears as though 1/2 is a usable value.
5705      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5706    fi
5707    ;;
5708  esac
5709
5710fi
5711
5712if test -n $lt_cv_sys_max_cmd_len ; then
5713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5714$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5715else
5716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5717$as_echo "none" >&6; }
5718fi
5719max_cmd_len=$lt_cv_sys_max_cmd_len
5720
5721
5722
5723
5724
5725
5726: ${CP="cp -f"}
5727: ${MV="mv -f"}
5728: ${RM="rm -f"}
5729
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5731$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5732# Try some XSI features
5733xsi_shell=no
5734( _lt_dummy="a/b/c"
5735  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5736      = c,a/b,b/c, \
5737    && eval 'test $(( 1 + 1 )) -eq 2 \
5738    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5739  && xsi_shell=yes
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5741$as_echo "$xsi_shell" >&6; }
5742
5743
5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5745$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5746lt_shell_append=no
5747( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5748    >/dev/null 2>&1 \
5749  && lt_shell_append=yes
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5751$as_echo "$lt_shell_append" >&6; }
5752
5753
5754if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5755  lt_unset=unset
5756else
5757  lt_unset=false
5758fi
5759
5760
5761
5762
5763
5764# test EBCDIC or ASCII
5765case `echo X|tr X '\101'` in
5766 A) # ASCII based system
5767    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5768  lt_SP2NL='tr \040 \012'
5769  lt_NL2SP='tr \015\012 \040\040'
5770  ;;
5771 *) # EBCDIC based system
5772  lt_SP2NL='tr \100 \n'
5773  lt_NL2SP='tr \r\n \100\100'
5774  ;;
5775esac
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5786$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5787if ${lt_cv_to_host_file_cmd+:} false; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790  case $host in
5791  *-*-mingw* )
5792    case $build in
5793      *-*-mingw* ) # actually msys
5794        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5795        ;;
5796      *-*-cygwin* )
5797        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5798        ;;
5799      * ) # otherwise, assume *nix
5800        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5801        ;;
5802    esac
5803    ;;
5804  *-*-cygwin* )
5805    case $build in
5806      *-*-mingw* ) # actually msys
5807        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5808        ;;
5809      *-*-cygwin* )
5810        lt_cv_to_host_file_cmd=func_convert_file_noop
5811        ;;
5812      * ) # otherwise, assume *nix
5813        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5814        ;;
5815    esac
5816    ;;
5817  * ) # unhandled hosts (and "normal" native builds)
5818    lt_cv_to_host_file_cmd=func_convert_file_noop
5819    ;;
5820esac
5821
5822fi
5823
5824to_host_file_cmd=$lt_cv_to_host_file_cmd
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5826$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5827
5828
5829
5830
5831
5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5833$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5834if ${lt_cv_to_tool_file_cmd+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837  #assume ordinary cross tools, or native build.
5838lt_cv_to_tool_file_cmd=func_convert_file_noop
5839case $host in
5840  *-*-mingw* )
5841    case $build in
5842      *-*-mingw* ) # actually msys
5843        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5844        ;;
5845    esac
5846    ;;
5847esac
5848
5849fi
5850
5851to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5853$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5854
5855
5856
5857
5858
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5860$as_echo_n "checking for $LD option to reload object files... " >&6; }
5861if ${lt_cv_ld_reload_flag+:} false; then :
5862  $as_echo_n "(cached) " >&6
5863else
5864  lt_cv_ld_reload_flag='-r'
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5867$as_echo "$lt_cv_ld_reload_flag" >&6; }
5868reload_flag=$lt_cv_ld_reload_flag
5869case $reload_flag in
5870"" | " "*) ;;
5871*) reload_flag=" $reload_flag" ;;
5872esac
5873reload_cmds='$LD$reload_flag -o $output$reload_objs'
5874case $host_os in
5875  cygwin* | mingw* | pw32* | cegcc*)
5876    if test "$GCC" != yes; then
5877      reload_cmds=false
5878    fi
5879    ;;
5880  darwin*)
5881    if test "$GCC" = yes; then
5882      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5883    else
5884      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5885    fi
5886    ;;
5887esac
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897if test -n "$ac_tool_prefix"; then
5898  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5899set dummy ${ac_tool_prefix}objdump; ac_word=$2
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901$as_echo_n "checking for $ac_word... " >&6; }
5902if ${ac_cv_prog_OBJDUMP+:} false; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  if test -n "$OBJDUMP"; then
5906  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5907else
5908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909for as_dir in $PATH
5910do
5911  IFS=$as_save_IFS
5912  test -z "$as_dir" && as_dir=.
5913    for ac_exec_ext in '' $ac_executable_extensions; do
5914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5915    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917    break 2
5918  fi
5919done
5920  done
5921IFS=$as_save_IFS
5922
5923fi
5924fi
5925OBJDUMP=$ac_cv_prog_OBJDUMP
5926if test -n "$OBJDUMP"; then
5927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5928$as_echo "$OBJDUMP" >&6; }
5929else
5930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931$as_echo "no" >&6; }
5932fi
5933
5934
5935fi
5936if test -z "$ac_cv_prog_OBJDUMP"; then
5937  ac_ct_OBJDUMP=$OBJDUMP
5938  # Extract the first word of "objdump", so it can be a program name with args.
5939set dummy objdump; ac_word=$2
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5941$as_echo_n "checking for $ac_word... " >&6; }
5942if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5943  $as_echo_n "(cached) " >&6
5944else
5945  if test -n "$ac_ct_OBJDUMP"; then
5946  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5947else
5948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949for as_dir in $PATH
5950do
5951  IFS=$as_save_IFS
5952  test -z "$as_dir" && as_dir=.
5953    for ac_exec_ext in '' $ac_executable_extensions; do
5954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5955    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957    break 2
5958  fi
5959done
5960  done
5961IFS=$as_save_IFS
5962
5963fi
5964fi
5965ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5966if test -n "$ac_ct_OBJDUMP"; then
5967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5968$as_echo "$ac_ct_OBJDUMP" >&6; }
5969else
5970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5971$as_echo "no" >&6; }
5972fi
5973
5974  if test "x$ac_ct_OBJDUMP" = x; then
5975    OBJDUMP="false"
5976  else
5977    case $cross_compiling:$ac_tool_warned in
5978yes:)
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5981ac_tool_warned=yes ;;
5982esac
5983    OBJDUMP=$ac_ct_OBJDUMP
5984  fi
5985else
5986  OBJDUMP="$ac_cv_prog_OBJDUMP"
5987fi
5988
5989test -z "$OBJDUMP" && OBJDUMP=objdump
5990
5991
5992
5993
5994
5995
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5997$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5998if ${lt_cv_deplibs_check_method+:} false; then :
5999  $as_echo_n "(cached) " >&6
6000else
6001  lt_cv_file_magic_cmd='$MAGIC_CMD'
6002lt_cv_file_magic_test_file=
6003lt_cv_deplibs_check_method='unknown'
6004# Need to set the preceding variable on all platforms that support
6005# interlibrary dependencies.
6006# 'none' -- dependencies not supported.
6007# `unknown' -- same as none, but documents that we really don't know.
6008# 'pass_all' -- all dependencies passed with no checks.
6009# 'test_compile' -- check by making test program.
6010# 'file_magic [[regex]]' -- check by looking for files in library path
6011# which responds to the $file_magic_cmd with a given extended regex.
6012# If you have `file' or equivalent on your system and you're not sure
6013# whether `pass_all' will *always* work, you probably want this one.
6014
6015case $host_os in
6016aix[4-9]*)
6017  lt_cv_deplibs_check_method=pass_all
6018  ;;
6019
6020beos*)
6021  lt_cv_deplibs_check_method=pass_all
6022  ;;
6023
6024bsdi[45]*)
6025  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6026  lt_cv_file_magic_cmd='/usr/bin/file -L'
6027  lt_cv_file_magic_test_file=/shlib/libc.so
6028  ;;
6029
6030cygwin*)
6031  # func_win32_libid is a shell function defined in ltmain.sh
6032  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6033  lt_cv_file_magic_cmd='func_win32_libid'
6034  ;;
6035
6036mingw* | pw32*)
6037  # Base MSYS/MinGW do not provide the 'file' command needed by
6038  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6039  # unless we find 'file', for example because we are cross-compiling.
6040  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6041  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6042    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6043    lt_cv_file_magic_cmd='func_win32_libid'
6044  else
6045    # Keep this pattern in sync with the one in func_win32_libid.
6046    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6047    lt_cv_file_magic_cmd='$OBJDUMP -f'
6048  fi
6049  ;;
6050
6051cegcc*)
6052  # use the weaker test based on 'objdump'. See mingw*.
6053  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6054  lt_cv_file_magic_cmd='$OBJDUMP -f'
6055  ;;
6056
6057darwin* | rhapsody*)
6058  lt_cv_deplibs_check_method=pass_all
6059  ;;
6060
6061freebsd* | dragonfly*)
6062  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6063    case $host_cpu in
6064    i*86 )
6065      # Not sure whether the presence of OpenBSD here was a mistake.
6066      # Let's accept both of them until this is cleared up.
6067      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6068      lt_cv_file_magic_cmd=/usr/bin/file
6069      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6070      ;;
6071    esac
6072  else
6073    lt_cv_deplibs_check_method=pass_all
6074  fi
6075  ;;
6076
6077haiku*)
6078  lt_cv_deplibs_check_method=pass_all
6079  ;;
6080
6081hpux10.20* | hpux11*)
6082  lt_cv_file_magic_cmd=/usr/bin/file
6083  case $host_cpu in
6084  ia64*)
6085    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6086    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6087    ;;
6088  hppa*64*)
6089    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]'
6090    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6091    ;;
6092  *)
6093    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6094    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6095    ;;
6096  esac
6097  ;;
6098
6099interix[3-9]*)
6100  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6101  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6102  ;;
6103
6104irix5* | irix6* | nonstopux*)
6105  case $LD in
6106  *-32|*"-32 ") libmagic=32-bit;;
6107  *-n32|*"-n32 ") libmagic=N32;;
6108  *-64|*"-64 ") libmagic=64-bit;;
6109  *) libmagic=never-match;;
6110  esac
6111  lt_cv_deplibs_check_method=pass_all
6112  ;;
6113
6114# This must be glibc/ELF.
6115linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6116  lt_cv_deplibs_check_method=pass_all
6117  ;;
6118
6119netbsd* | netbsdelf*-gnu)
6120  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6121    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6122  else
6123    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6124  fi
6125  ;;
6126
6127newos6*)
6128  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6129  lt_cv_file_magic_cmd=/usr/bin/file
6130  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6131  ;;
6132
6133*nto* | *qnx*)
6134  lt_cv_deplibs_check_method=pass_all
6135  ;;
6136
6137openbsd*)
6138  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6140  else
6141    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6142  fi
6143  ;;
6144
6145osf3* | osf4* | osf5*)
6146  lt_cv_deplibs_check_method=pass_all
6147  ;;
6148
6149rdos*)
6150  lt_cv_deplibs_check_method=pass_all
6151  ;;
6152
6153solaris*)
6154  lt_cv_deplibs_check_method=pass_all
6155  ;;
6156
6157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6158  lt_cv_deplibs_check_method=pass_all
6159  ;;
6160
6161sysv4 | sysv4.3*)
6162  case $host_vendor in
6163  motorola)
6164    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]'
6165    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6166    ;;
6167  ncr)
6168    lt_cv_deplibs_check_method=pass_all
6169    ;;
6170  sequent)
6171    lt_cv_file_magic_cmd='/bin/file'
6172    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6173    ;;
6174  sni)
6175    lt_cv_file_magic_cmd='/bin/file'
6176    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6177    lt_cv_file_magic_test_file=/lib/libc.so
6178    ;;
6179  siemens)
6180    lt_cv_deplibs_check_method=pass_all
6181    ;;
6182  pc)
6183    lt_cv_deplibs_check_method=pass_all
6184    ;;
6185  esac
6186  ;;
6187
6188tpf*)
6189  lt_cv_deplibs_check_method=pass_all
6190  ;;
6191esac
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6195$as_echo "$lt_cv_deplibs_check_method" >&6; }
6196
6197file_magic_glob=
6198want_nocaseglob=no
6199if test "$build" = "$host"; then
6200  case $host_os in
6201  mingw* | pw32*)
6202    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6203      want_nocaseglob=yes
6204    else
6205      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6206    fi
6207    ;;
6208  esac
6209fi
6210
6211file_magic_cmd=$lt_cv_file_magic_cmd
6212deplibs_check_method=$lt_cv_deplibs_check_method
6213test -z "$deplibs_check_method" && deplibs_check_method=unknown
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236if test -n "$ac_tool_prefix"; then
6237  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6238set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240$as_echo_n "checking for $ac_word... " >&6; }
6241if ${ac_cv_prog_DLLTOOL+:} false; then :
6242  $as_echo_n "(cached) " >&6
6243else
6244  if test -n "$DLLTOOL"; then
6245  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6246else
6247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250  IFS=$as_save_IFS
6251  test -z "$as_dir" && as_dir=.
6252    for ac_exec_ext in '' $ac_executable_extensions; do
6253  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6255    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256    break 2
6257  fi
6258done
6259  done
6260IFS=$as_save_IFS
6261
6262fi
6263fi
6264DLLTOOL=$ac_cv_prog_DLLTOOL
6265if test -n "$DLLTOOL"; then
6266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6267$as_echo "$DLLTOOL" >&6; }
6268else
6269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270$as_echo "no" >&6; }
6271fi
6272
6273
6274fi
6275if test -z "$ac_cv_prog_DLLTOOL"; then
6276  ac_ct_DLLTOOL=$DLLTOOL
6277  # Extract the first word of "dlltool", so it can be a program name with args.
6278set dummy dlltool; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6282  $as_echo_n "(cached) " >&6
6283else
6284  if test -n "$ac_ct_DLLTOOL"; then
6285  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290  IFS=$as_save_IFS
6291  test -z "$as_dir" && as_dir=.
6292    for ac_exec_ext in '' $ac_executable_extensions; do
6293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296    break 2
6297  fi
6298done
6299  done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6305if test -n "$ac_ct_DLLTOOL"; then
6306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6307$as_echo "$ac_ct_DLLTOOL" >&6; }
6308else
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313  if test "x$ac_ct_DLLTOOL" = x; then
6314    DLLTOOL="false"
6315  else
6316    case $cross_compiling:$ac_tool_warned in
6317yes:)
6318{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320ac_tool_warned=yes ;;
6321esac
6322    DLLTOOL=$ac_ct_DLLTOOL
6323  fi
6324else
6325  DLLTOOL="$ac_cv_prog_DLLTOOL"
6326fi
6327
6328test -z "$DLLTOOL" && DLLTOOL=dlltool
6329
6330
6331
6332
6333
6334
6335
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6337$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6338if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6339  $as_echo_n "(cached) " >&6
6340else
6341  lt_cv_sharedlib_from_linklib_cmd='unknown'
6342
6343case $host_os in
6344cygwin* | mingw* | pw32* | cegcc*)
6345  # two different shell functions defined in ltmain.sh
6346  # decide which to use based on capabilities of $DLLTOOL
6347  case `$DLLTOOL --help 2>&1` in
6348  *--identify-strict*)
6349    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6350    ;;
6351  *)
6352    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6353    ;;
6354  esac
6355  ;;
6356*)
6357  # fallback: assume linklib IS sharedlib
6358  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6359  ;;
6360esac
6361
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6364$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6365sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6366test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6367
6368
6369
6370
6371
6372
6373
6374if test -n "$ac_tool_prefix"; then
6375  for ac_prog in ar
6376  do
6377    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if ${ac_cv_prog_AR+:} false; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  if test -n "$AR"; then
6385  ac_cv_prog_AR="$AR" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390  IFS=$as_save_IFS
6391  test -z "$as_dir" && as_dir=.
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396    break 2
6397  fi
6398done
6399  done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404AR=$ac_cv_prog_AR
6405if test -n "$AR"; then
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6407$as_echo "$AR" >&6; }
6408else
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414    test -n "$AR" && break
6415  done
6416fi
6417if test -z "$AR"; then
6418  ac_ct_AR=$AR
6419  for ac_prog in ar
6420do
6421  # Extract the first word of "$ac_prog", so it can be a program name with args.
6422set dummy $ac_prog; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_ac_ct_AR+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$ac_ct_AR"; then
6429  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_ac_ct_AR="$ac_prog"
6439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443  done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448ac_ct_AR=$ac_cv_prog_ac_ct_AR
6449if test -n "$ac_ct_AR"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6451$as_echo "$ac_ct_AR" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458  test -n "$ac_ct_AR" && break
6459done
6460
6461  if test "x$ac_ct_AR" = x; then
6462    AR="false"
6463  else
6464    case $cross_compiling:$ac_tool_warned in
6465yes:)
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468ac_tool_warned=yes ;;
6469esac
6470    AR=$ac_ct_AR
6471  fi
6472fi
6473
6474: ${AR=ar}
6475: ${AR_FLAGS=cru}
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6488$as_echo_n "checking for archiver @FILE support... " >&6; }
6489if ${lt_cv_ar_at_file+:} false; then :
6490  $as_echo_n "(cached) " >&6
6491else
6492  lt_cv_ar_at_file=no
6493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494/* end confdefs.h.  */
6495
6496int
6497main ()
6498{
6499
6500  ;
6501  return 0;
6502}
6503_ACEOF
6504if ac_fn_c_try_compile "$LINENO"; then :
6505  echo conftest.$ac_objext > conftest.lst
6506      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6507      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6508  (eval $lt_ar_try) 2>&5
6509  ac_status=$?
6510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6511  test $ac_status = 0; }
6512      if test "$ac_status" -eq 0; then
6513	# Ensure the archiver fails upon bogus file names.
6514	rm -f conftest.$ac_objext libconftest.a
6515	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6516  (eval $lt_ar_try) 2>&5
6517  ac_status=$?
6518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519  test $ac_status = 0; }
6520	if test "$ac_status" -ne 0; then
6521          lt_cv_ar_at_file=@
6522        fi
6523      fi
6524      rm -f conftest.* libconftest.a
6525
6526fi
6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528
6529fi
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6531$as_echo "$lt_cv_ar_at_file" >&6; }
6532
6533if test "x$lt_cv_ar_at_file" = xno; then
6534  archiver_list_spec=
6535else
6536  archiver_list_spec=$lt_cv_ar_at_file
6537fi
6538
6539
6540
6541
6542
6543
6544
6545if test -n "$ac_tool_prefix"; then
6546  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6547set dummy ${ac_tool_prefix}strip; ac_word=$2
6548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549$as_echo_n "checking for $ac_word... " >&6; }
6550if ${ac_cv_prog_STRIP+:} false; then :
6551  $as_echo_n "(cached) " >&6
6552else
6553  if test -n "$STRIP"; then
6554  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6555else
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH
6558do
6559  IFS=$as_save_IFS
6560  test -z "$as_dir" && as_dir=.
6561    for ac_exec_ext in '' $ac_executable_extensions; do
6562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6563    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565    break 2
6566  fi
6567done
6568  done
6569IFS=$as_save_IFS
6570
6571fi
6572fi
6573STRIP=$ac_cv_prog_STRIP
6574if test -n "$STRIP"; then
6575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6576$as_echo "$STRIP" >&6; }
6577else
6578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }
6580fi
6581
6582
6583fi
6584if test -z "$ac_cv_prog_STRIP"; then
6585  ac_ct_STRIP=$STRIP
6586  # Extract the first word of "strip", so it can be a program name with args.
6587set dummy strip; ac_word=$2
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589$as_echo_n "checking for $ac_word... " >&6; }
6590if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6591  $as_echo_n "(cached) " >&6
6592else
6593  if test -n "$ac_ct_STRIP"; then
6594  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6595else
6596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597for as_dir in $PATH
6598do
6599  IFS=$as_save_IFS
6600  test -z "$as_dir" && as_dir=.
6601    for ac_exec_ext in '' $ac_executable_extensions; do
6602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6603    ac_cv_prog_ac_ct_STRIP="strip"
6604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605    break 2
6606  fi
6607done
6608  done
6609IFS=$as_save_IFS
6610
6611fi
6612fi
6613ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6614if test -n "$ac_ct_STRIP"; then
6615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6616$as_echo "$ac_ct_STRIP" >&6; }
6617else
6618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619$as_echo "no" >&6; }
6620fi
6621
6622  if test "x$ac_ct_STRIP" = x; then
6623    STRIP=":"
6624  else
6625    case $cross_compiling:$ac_tool_warned in
6626yes:)
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629ac_tool_warned=yes ;;
6630esac
6631    STRIP=$ac_ct_STRIP
6632  fi
6633else
6634  STRIP="$ac_cv_prog_STRIP"
6635fi
6636
6637test -z "$STRIP" && STRIP=:
6638
6639
6640
6641
6642
6643
6644if test -n "$ac_tool_prefix"; then
6645  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6646set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if ${ac_cv_prog_RANLIB+:} false; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$RANLIB"; then
6653  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6662    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672RANLIB=$ac_cv_prog_RANLIB
6673if test -n "$RANLIB"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6675$as_echo "$RANLIB" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681
6682fi
6683if test -z "$ac_cv_prog_RANLIB"; then
6684  ac_ct_RANLIB=$RANLIB
6685  # Extract the first word of "ranlib", so it can be a program name with args.
6686set dummy ranlib; ac_word=$2
6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688$as_echo_n "checking for $ac_word... " >&6; }
6689if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  if test -n "$ac_ct_RANLIB"; then
6693  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6694else
6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6696for as_dir in $PATH
6697do
6698  IFS=$as_save_IFS
6699  test -z "$as_dir" && as_dir=.
6700    for ac_exec_ext in '' $ac_executable_extensions; do
6701  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6702    ac_cv_prog_ac_ct_RANLIB="ranlib"
6703    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6704    break 2
6705  fi
6706done
6707  done
6708IFS=$as_save_IFS
6709
6710fi
6711fi
6712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6713if test -n "$ac_ct_RANLIB"; then
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6715$as_echo "$ac_ct_RANLIB" >&6; }
6716else
6717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718$as_echo "no" >&6; }
6719fi
6720
6721  if test "x$ac_ct_RANLIB" = x; then
6722    RANLIB=":"
6723  else
6724    case $cross_compiling:$ac_tool_warned in
6725yes:)
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6728ac_tool_warned=yes ;;
6729esac
6730    RANLIB=$ac_ct_RANLIB
6731  fi
6732else
6733  RANLIB="$ac_cv_prog_RANLIB"
6734fi
6735
6736test -z "$RANLIB" && RANLIB=:
6737
6738
6739
6740
6741
6742
6743# Determine commands to create old-style static archives.
6744old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6745old_postinstall_cmds='chmod 644 $oldlib'
6746old_postuninstall_cmds=
6747
6748if test -n "$RANLIB"; then
6749  case $host_os in
6750  openbsd*)
6751    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6752    ;;
6753  *)
6754    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6755    ;;
6756  esac
6757  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6758fi
6759
6760case $host_os in
6761  darwin*)
6762    lock_old_archive_extraction=yes ;;
6763  *)
6764    lock_old_archive_extraction=no ;;
6765esac
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805# If no C compiler was specified, use CC.
6806LTCC=${LTCC-"$CC"}
6807
6808# If no C compiler flags were specified, use CFLAGS.
6809LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6810
6811# Allow CC to be a program name with arguments.
6812compiler=$CC
6813
6814
6815# Check for command to grab the raw symbol name followed by C symbol from nm.
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6817$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6818if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6819  $as_echo_n "(cached) " >&6
6820else
6821
6822# These are sane defaults that work on at least a few old systems.
6823# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6824
6825# Character class describing NM global symbol codes.
6826symcode='[BCDEGRST]'
6827
6828# Regexp to match symbols that can be accessed directly from C.
6829sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6830
6831# Define system-specific variables.
6832case $host_os in
6833aix*)
6834  symcode='[BCDT]'
6835  ;;
6836cygwin* | mingw* | pw32* | cegcc*)
6837  symcode='[ABCDGISTW]'
6838  ;;
6839hpux*)
6840  if test "$host_cpu" = ia64; then
6841    symcode='[ABCDEGRST]'
6842  fi
6843  ;;
6844irix* | nonstopux*)
6845  symcode='[BCDEGRST]'
6846  ;;
6847osf*)
6848  symcode='[BCDEGQRST]'
6849  ;;
6850solaris*)
6851  symcode='[BDRT]'
6852  ;;
6853sco3.2v5*)
6854  symcode='[DT]'
6855  ;;
6856sysv4.2uw2*)
6857  symcode='[DT]'
6858  ;;
6859sysv5* | sco5v6* | unixware* | OpenUNIX*)
6860  symcode='[ABDT]'
6861  ;;
6862sysv4)
6863  symcode='[DFNSTU]'
6864  ;;
6865esac
6866
6867# If we're using GNU nm, then use its standard symbol codes.
6868case `$NM -V 2>&1` in
6869*GNU* | *'with BFD'*)
6870  symcode='[ABCDGIRSTW]' ;;
6871esac
6872
6873# Transform an extracted symbol line into a proper C declaration.
6874# Some systems (esp. on ia64) link data and code symbols differently,
6875# so use this general approach.
6876lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6877
6878# Transform an extracted symbol line into symbol name and symbol address
6879lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6880lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6881
6882# Handle CRLF in mingw tool chain
6883opt_cr=
6884case $build_os in
6885mingw*)
6886  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6887  ;;
6888esac
6889
6890# Try without a prefix underscore, then with it.
6891for ac_symprfx in "" "_"; do
6892
6893  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6894  symxfrm="\\1 $ac_symprfx\\2 \\2"
6895
6896  # Write the raw and C identifiers.
6897  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6898    # Fake it for dumpbin and say T for any non-static function
6899    # and D for any global variable.
6900    # Also find C++ and __fastcall symbols from MSVC++,
6901    # which start with @ or ?.
6902    lt_cv_sys_global_symbol_pipe="$AWK '"\
6903"     {last_section=section; section=\$ 3};"\
6904"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6905"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6906"     \$ 0!~/External *\|/{next};"\
6907"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908"     {if(hide[section]) next};"\
6909"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6910"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6911"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6912"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6913"     ' prfx=^$ac_symprfx"
6914  else
6915    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916  fi
6917  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6918
6919  # Check to see that the pipe works correctly.
6920  pipe_works=no
6921
6922  rm -f conftest*
6923  cat > conftest.$ac_ext <<_LT_EOF
6924#ifdef __cplusplus
6925extern "C" {
6926#endif
6927char nm_test_var;
6928void nm_test_func(void);
6929void nm_test_func(void){}
6930#ifdef __cplusplus
6931}
6932#endif
6933int main(){nm_test_var='a';nm_test_func();return(0);}
6934_LT_EOF
6935
6936  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6937  (eval $ac_compile) 2>&5
6938  ac_status=$?
6939  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6940  test $ac_status = 0; }; then
6941    # Now try to grab the symbols.
6942    nlist=conftest.nm
6943    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6944  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6945  ac_status=$?
6946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6947  test $ac_status = 0; } && test -s "$nlist"; then
6948      # Try sorting and uniquifying the output.
6949      if sort "$nlist" | uniq > "$nlist"T; then
6950	mv -f "$nlist"T "$nlist"
6951      else
6952	rm -f "$nlist"T
6953      fi
6954
6955      # Make sure that we snagged all the symbols we need.
6956      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6957	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6958	  cat <<_LT_EOF > conftest.$ac_ext
6959/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6960#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6961/* DATA imports from DLLs on WIN32 con't be const, because runtime
6962   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6963# define LT_DLSYM_CONST
6964#elif defined(__osf__)
6965/* This system does not cope well with relocations in const data.  */
6966# define LT_DLSYM_CONST
6967#else
6968# define LT_DLSYM_CONST const
6969#endif
6970
6971#ifdef __cplusplus
6972extern "C" {
6973#endif
6974
6975_LT_EOF
6976	  # Now generate the symbol file.
6977	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6978
6979	  cat <<_LT_EOF >> conftest.$ac_ext
6980
6981/* The mapping between symbol names and symbols.  */
6982LT_DLSYM_CONST struct {
6983  const char *name;
6984  void       *address;
6985}
6986lt__PROGRAM__LTX_preloaded_symbols[] =
6987{
6988  { "@PROGRAM@", (void *) 0 },
6989_LT_EOF
6990	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6991	  cat <<\_LT_EOF >> conftest.$ac_ext
6992  {0, (void *) 0}
6993};
6994
6995/* This works around a problem in FreeBSD linker */
6996#ifdef FREEBSD_WORKAROUND
6997static const void *lt_preloaded_setup() {
6998  return lt__PROGRAM__LTX_preloaded_symbols;
6999}
7000#endif
7001
7002#ifdef __cplusplus
7003}
7004#endif
7005_LT_EOF
7006	  # Now try linking the two files.
7007	  mv conftest.$ac_objext conftstm.$ac_objext
7008	  lt_globsym_save_LIBS=$LIBS
7009	  lt_globsym_save_CFLAGS=$CFLAGS
7010	  LIBS="conftstm.$ac_objext"
7011	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7012	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7013  (eval $ac_link) 2>&5
7014  ac_status=$?
7015  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7017	    pipe_works=yes
7018	  fi
7019	  LIBS=$lt_globsym_save_LIBS
7020	  CFLAGS=$lt_globsym_save_CFLAGS
7021	else
7022	  echo "cannot find nm_test_func in $nlist" >&5
7023	fi
7024      else
7025	echo "cannot find nm_test_var in $nlist" >&5
7026      fi
7027    else
7028      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7029    fi
7030  else
7031    echo "$progname: failed program was:" >&5
7032    cat conftest.$ac_ext >&5
7033  fi
7034  rm -rf conftest* conftst*
7035
7036  # Do not use the global_symbol_pipe unless it works.
7037  if test "$pipe_works" = yes; then
7038    break
7039  else
7040    lt_cv_sys_global_symbol_pipe=
7041  fi
7042done
7043
7044fi
7045
7046if test -z "$lt_cv_sys_global_symbol_pipe"; then
7047  lt_cv_sys_global_symbol_to_cdecl=
7048fi
7049if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7051$as_echo "failed" >&6; }
7052else
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7054$as_echo "ok" >&6; }
7055fi
7056
7057# Response file support.
7058if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7059  nm_file_list_spec='@'
7060elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7061  nm_file_list_spec='@'
7062fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7091$as_echo_n "checking for sysroot... " >&6; }
7092
7093# Check whether --with-sysroot was given.
7094if test "${with_sysroot+set}" = set; then :
7095  withval=$with_sysroot;
7096else
7097  with_sysroot=no
7098fi
7099
7100
7101lt_sysroot=
7102case ${with_sysroot} in #(
7103 yes)
7104   if test "$GCC" = yes; then
7105     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7106   fi
7107   ;; #(
7108 /*)
7109   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7110   ;; #(
7111 no|'')
7112   ;; #(
7113 *)
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7115$as_echo "${with_sysroot}" >&6; }
7116   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7117   ;;
7118esac
7119
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7121$as_echo "${lt_sysroot:-no}" >&6; }
7122
7123
7124
7125
7126
7127# Check whether --enable-libtool-lock was given.
7128if test "${enable_libtool_lock+set}" = set; then :
7129  enableval=$enable_libtool_lock;
7130fi
7131
7132test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7133
7134# Some flags need to be propagated to the compiler or linker for good
7135# libtool support.
7136case $host in
7137ia64-*-hpux*)
7138  # Find out which ABI we are using.
7139  echo 'int i;' > conftest.$ac_ext
7140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141  (eval $ac_compile) 2>&5
7142  ac_status=$?
7143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144  test $ac_status = 0; }; then
7145    case `/usr/bin/file conftest.$ac_objext` in
7146      *ELF-32*)
7147	HPUX_IA64_MODE="32"
7148	;;
7149      *ELF-64*)
7150	HPUX_IA64_MODE="64"
7151	;;
7152    esac
7153  fi
7154  rm -rf conftest*
7155  ;;
7156*-*-irix6*)
7157  # Find out which ABI we are using.
7158  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7159  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7160  (eval $ac_compile) 2>&5
7161  ac_status=$?
7162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163  test $ac_status = 0; }; then
7164    if test "$lt_cv_prog_gnu_ld" = yes; then
7165      case `/usr/bin/file conftest.$ac_objext` in
7166	*32-bit*)
7167	  LD="${LD-ld} -melf32bsmip"
7168	  ;;
7169	*N32*)
7170	  LD="${LD-ld} -melf32bmipn32"
7171	  ;;
7172	*64-bit*)
7173	  LD="${LD-ld} -melf64bmip"
7174	;;
7175      esac
7176    else
7177      case `/usr/bin/file conftest.$ac_objext` in
7178	*32-bit*)
7179	  LD="${LD-ld} -32"
7180	  ;;
7181	*N32*)
7182	  LD="${LD-ld} -n32"
7183	  ;;
7184	*64-bit*)
7185	  LD="${LD-ld} -64"
7186	  ;;
7187      esac
7188    fi
7189  fi
7190  rm -rf conftest*
7191  ;;
7192
7193x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7194s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7195  # Find out which ABI we are using.
7196  echo 'int i;' > conftest.$ac_ext
7197  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7198  (eval $ac_compile) 2>&5
7199  ac_status=$?
7200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7201  test $ac_status = 0; }; then
7202    case `/usr/bin/file conftest.o` in
7203      *32-bit*)
7204	case $host in
7205	  x86_64-*kfreebsd*-gnu)
7206	    LD="${LD-ld} -m elf_i386_fbsd"
7207	    ;;
7208	  x86_64-*linux*)
7209	    case `/usr/bin/file conftest.o` in
7210	      *x86-64*)
7211		LD="${LD-ld} -m elf32_x86_64"
7212		;;
7213	      *)
7214		LD="${LD-ld} -m elf_i386"
7215		;;
7216	    esac
7217	    ;;
7218	  powerpc64le-*)
7219	    LD="${LD-ld} -m elf32lppclinux"
7220	    ;;
7221	  powerpc64-*)
7222	    LD="${LD-ld} -m elf32ppclinux"
7223	    ;;
7224	  s390x-*linux*)
7225	    LD="${LD-ld} -m elf_s390"
7226	    ;;
7227	  sparc64-*linux*)
7228	    LD="${LD-ld} -m elf32_sparc"
7229	    ;;
7230	esac
7231	;;
7232      *64-bit*)
7233	case $host in
7234	  x86_64-*kfreebsd*-gnu)
7235	    LD="${LD-ld} -m elf_x86_64_fbsd"
7236	    ;;
7237	  x86_64-*linux*)
7238	    LD="${LD-ld} -m elf_x86_64"
7239	    ;;
7240	  powerpcle-*)
7241	    LD="${LD-ld} -m elf64lppc"
7242	    ;;
7243	  powerpc-*)
7244	    LD="${LD-ld} -m elf64ppc"
7245	    ;;
7246	  s390*-*linux*|s390*-*tpf*)
7247	    LD="${LD-ld} -m elf64_s390"
7248	    ;;
7249	  sparc*-*linux*)
7250	    LD="${LD-ld} -m elf64_sparc"
7251	    ;;
7252	esac
7253	;;
7254    esac
7255  fi
7256  rm -rf conftest*
7257  ;;
7258
7259*-*-sco3.2v5*)
7260  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7261  SAVE_CFLAGS="$CFLAGS"
7262  CFLAGS="$CFLAGS -belf"
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7264$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7265if ${lt_cv_cc_needs_belf+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  ac_ext=c
7269ac_cpp='$CPP $CPPFLAGS'
7270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272ac_compiler_gnu=$ac_cv_c_compiler_gnu
7273
7274     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276
7277int
7278main ()
7279{
7280
7281  ;
7282  return 0;
7283}
7284_ACEOF
7285if ac_fn_c_try_link "$LINENO"; then :
7286  lt_cv_cc_needs_belf=yes
7287else
7288  lt_cv_cc_needs_belf=no
7289fi
7290rm -f core conftest.err conftest.$ac_objext \
7291    conftest$ac_exeext conftest.$ac_ext
7292     ac_ext=c
7293ac_cpp='$CPP $CPPFLAGS'
7294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7300$as_echo "$lt_cv_cc_needs_belf" >&6; }
7301  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7302    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7303    CFLAGS="$SAVE_CFLAGS"
7304  fi
7305  ;;
7306*-*solaris*)
7307  # Find out which ABI we are using.
7308  echo 'int i;' > conftest.$ac_ext
7309  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7310  (eval $ac_compile) 2>&5
7311  ac_status=$?
7312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7313  test $ac_status = 0; }; then
7314    case `/usr/bin/file conftest.o` in
7315    *64-bit*)
7316      case $lt_cv_prog_gnu_ld in
7317      yes*)
7318        case $host in
7319        i?86-*-solaris*)
7320          LD="${LD-ld} -m elf_x86_64"
7321          ;;
7322        sparc*-*-solaris*)
7323          LD="${LD-ld} -m elf64_sparc"
7324          ;;
7325        esac
7326        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7327        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7328          LD="${LD-ld}_sol2"
7329        fi
7330        ;;
7331      *)
7332	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7333	  LD="${LD-ld} -64"
7334	fi
7335	;;
7336      esac
7337      ;;
7338    esac
7339  fi
7340  rm -rf conftest*
7341  ;;
7342esac
7343
7344need_locks="$enable_libtool_lock"
7345
7346if test -n "$ac_tool_prefix"; then
7347  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7348set dummy ${ac_tool_prefix}mt; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  if test -n "$MANIFEST_TOOL"; then
7355  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360  IFS=$as_save_IFS
7361  test -z "$as_dir" && as_dir=.
7362    for ac_exec_ext in '' $ac_executable_extensions; do
7363  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366    break 2
7367  fi
7368done
7369  done
7370IFS=$as_save_IFS
7371
7372fi
7373fi
7374MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7375if test -n "$MANIFEST_TOOL"; then
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7377$as_echo "$MANIFEST_TOOL" >&6; }
7378else
7379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
7381fi
7382
7383
7384fi
7385if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7386  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7387  # Extract the first word of "mt", so it can be a program name with args.
7388set dummy mt; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7392  $as_echo_n "(cached) " >&6
7393else
7394  if test -n "$ac_ct_MANIFEST_TOOL"; then
7395  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400  IFS=$as_save_IFS
7401  test -z "$as_dir" && as_dir=.
7402    for ac_exec_ext in '' $ac_executable_extensions; do
7403  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7405    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406    break 2
7407  fi
7408done
7409  done
7410IFS=$as_save_IFS
7411
7412fi
7413fi
7414ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7415if test -n "$ac_ct_MANIFEST_TOOL"; then
7416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7417$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7418else
7419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
7422
7423  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7424    MANIFEST_TOOL=":"
7425  else
7426    case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430ac_tool_warned=yes ;;
7431esac
7432    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7433  fi
7434else
7435  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7436fi
7437
7438test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7440$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7441if ${lt_cv_path_mainfest_tool+:} false; then :
7442  $as_echo_n "(cached) " >&6
7443else
7444  lt_cv_path_mainfest_tool=no
7445  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7446  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7447  cat conftest.err >&5
7448  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7449    lt_cv_path_mainfest_tool=yes
7450  fi
7451  rm -f conftest*
7452fi
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7454$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7455if test "x$lt_cv_path_mainfest_tool" != xyes; then
7456  MANIFEST_TOOL=:
7457fi
7458
7459
7460
7461
7462
7463
7464  case $host_os in
7465    rhapsody* | darwin*)
7466    if test -n "$ac_tool_prefix"; then
7467  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7468set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470$as_echo_n "checking for $ac_word... " >&6; }
7471if ${ac_cv_prog_DSYMUTIL+:} false; then :
7472  $as_echo_n "(cached) " >&6
7473else
7474  if test -n "$DSYMUTIL"; then
7475  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7476else
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480  IFS=$as_save_IFS
7481  test -z "$as_dir" && as_dir=.
7482    for ac_exec_ext in '' $ac_executable_extensions; do
7483  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7485    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486    break 2
7487  fi
7488done
7489  done
7490IFS=$as_save_IFS
7491
7492fi
7493fi
7494DSYMUTIL=$ac_cv_prog_DSYMUTIL
7495if test -n "$DSYMUTIL"; then
7496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7497$as_echo "$DSYMUTIL" >&6; }
7498else
7499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
7501fi
7502
7503
7504fi
7505if test -z "$ac_cv_prog_DSYMUTIL"; then
7506  ac_ct_DSYMUTIL=$DSYMUTIL
7507  # Extract the first word of "dsymutil", so it can be a program name with args.
7508set dummy dsymutil; ac_word=$2
7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510$as_echo_n "checking for $ac_word... " >&6; }
7511if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  if test -n "$ac_ct_DSYMUTIL"; then
7515  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7516else
7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518for as_dir in $PATH
7519do
7520  IFS=$as_save_IFS
7521  test -z "$as_dir" && as_dir=.
7522    for ac_exec_ext in '' $ac_executable_extensions; do
7523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526    break 2
7527  fi
7528done
7529  done
7530IFS=$as_save_IFS
7531
7532fi
7533fi
7534ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7535if test -n "$ac_ct_DSYMUTIL"; then
7536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7537$as_echo "$ac_ct_DSYMUTIL" >&6; }
7538else
7539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
7541fi
7542
7543  if test "x$ac_ct_DSYMUTIL" = x; then
7544    DSYMUTIL=":"
7545  else
7546    case $cross_compiling:$ac_tool_warned in
7547yes:)
7548{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7549$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7550ac_tool_warned=yes ;;
7551esac
7552    DSYMUTIL=$ac_ct_DSYMUTIL
7553  fi
7554else
7555  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7556fi
7557
7558    if test -n "$ac_tool_prefix"; then
7559  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7560set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562$as_echo_n "checking for $ac_word... " >&6; }
7563if ${ac_cv_prog_NMEDIT+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  if test -n "$NMEDIT"; then
7567  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7568else
7569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572  IFS=$as_save_IFS
7573  test -z "$as_dir" && as_dir=.
7574    for ac_exec_ext in '' $ac_executable_extensions; do
7575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7576    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578    break 2
7579  fi
7580done
7581  done
7582IFS=$as_save_IFS
7583
7584fi
7585fi
7586NMEDIT=$ac_cv_prog_NMEDIT
7587if test -n "$NMEDIT"; then
7588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7589$as_echo "$NMEDIT" >&6; }
7590else
7591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
7593fi
7594
7595
7596fi
7597if test -z "$ac_cv_prog_NMEDIT"; then
7598  ac_ct_NMEDIT=$NMEDIT
7599  # Extract the first word of "nmedit", so it can be a program name with args.
7600set dummy nmedit; ac_word=$2
7601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602$as_echo_n "checking for $ac_word... " >&6; }
7603if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  if test -n "$ac_ct_NMEDIT"; then
7607  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612  IFS=$as_save_IFS
7613  test -z "$as_dir" && as_dir=.
7614    for ac_exec_ext in '' $ac_executable_extensions; do
7615  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618    break 2
7619  fi
7620done
7621  done
7622IFS=$as_save_IFS
7623
7624fi
7625fi
7626ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7627if test -n "$ac_ct_NMEDIT"; then
7628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7629$as_echo "$ac_ct_NMEDIT" >&6; }
7630else
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632$as_echo "no" >&6; }
7633fi
7634
7635  if test "x$ac_ct_NMEDIT" = x; then
7636    NMEDIT=":"
7637  else
7638    case $cross_compiling:$ac_tool_warned in
7639yes:)
7640{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642ac_tool_warned=yes ;;
7643esac
7644    NMEDIT=$ac_ct_NMEDIT
7645  fi
7646else
7647  NMEDIT="$ac_cv_prog_NMEDIT"
7648fi
7649
7650    if test -n "$ac_tool_prefix"; then
7651  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7652set dummy ${ac_tool_prefix}lipo; ac_word=$2
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654$as_echo_n "checking for $ac_word... " >&6; }
7655if ${ac_cv_prog_LIPO+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658  if test -n "$LIPO"; then
7659  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7660else
7661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662for as_dir in $PATH
7663do
7664  IFS=$as_save_IFS
7665  test -z "$as_dir" && as_dir=.
7666    for ac_exec_ext in '' $ac_executable_extensions; do
7667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7670    break 2
7671  fi
7672done
7673  done
7674IFS=$as_save_IFS
7675
7676fi
7677fi
7678LIPO=$ac_cv_prog_LIPO
7679if test -n "$LIPO"; then
7680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7681$as_echo "$LIPO" >&6; }
7682else
7683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684$as_echo "no" >&6; }
7685fi
7686
7687
7688fi
7689if test -z "$ac_cv_prog_LIPO"; then
7690  ac_ct_LIPO=$LIPO
7691  # Extract the first word of "lipo", so it can be a program name with args.
7692set dummy lipo; ac_word=$2
7693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694$as_echo_n "checking for $ac_word... " >&6; }
7695if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7696  $as_echo_n "(cached) " >&6
7697else
7698  if test -n "$ac_ct_LIPO"; then
7699  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7700else
7701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704  IFS=$as_save_IFS
7705  test -z "$as_dir" && as_dir=.
7706    for ac_exec_ext in '' $ac_executable_extensions; do
7707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708    ac_cv_prog_ac_ct_LIPO="lipo"
7709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710    break 2
7711  fi
7712done
7713  done
7714IFS=$as_save_IFS
7715
7716fi
7717fi
7718ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7719if test -n "$ac_ct_LIPO"; then
7720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7721$as_echo "$ac_ct_LIPO" >&6; }
7722else
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
7725fi
7726
7727  if test "x$ac_ct_LIPO" = x; then
7728    LIPO=":"
7729  else
7730    case $cross_compiling:$ac_tool_warned in
7731yes:)
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7734ac_tool_warned=yes ;;
7735esac
7736    LIPO=$ac_ct_LIPO
7737  fi
7738else
7739  LIPO="$ac_cv_prog_LIPO"
7740fi
7741
7742    if test -n "$ac_tool_prefix"; then
7743  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7744set dummy ${ac_tool_prefix}otool; ac_word=$2
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if ${ac_cv_prog_OTOOL+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  if test -n "$OTOOL"; then
7751  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756  IFS=$as_save_IFS
7757  test -z "$as_dir" && as_dir=.
7758    for ac_exec_ext in '' $ac_executable_extensions; do
7759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762    break 2
7763  fi
7764done
7765  done
7766IFS=$as_save_IFS
7767
7768fi
7769fi
7770OTOOL=$ac_cv_prog_OTOOL
7771if test -n "$OTOOL"; then
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7773$as_echo "$OTOOL" >&6; }
7774else
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777fi
7778
7779
7780fi
7781if test -z "$ac_cv_prog_OTOOL"; then
7782  ac_ct_OTOOL=$OTOOL
7783  # Extract the first word of "otool", so it can be a program name with args.
7784set dummy otool; ac_word=$2
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  if test -n "$ac_ct_OTOOL"; then
7791  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7792else
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796  IFS=$as_save_IFS
7797  test -z "$as_dir" && as_dir=.
7798    for ac_exec_ext in '' $ac_executable_extensions; do
7799  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7800    ac_cv_prog_ac_ct_OTOOL="otool"
7801    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802    break 2
7803  fi
7804done
7805  done
7806IFS=$as_save_IFS
7807
7808fi
7809fi
7810ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7811if test -n "$ac_ct_OTOOL"; then
7812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7813$as_echo "$ac_ct_OTOOL" >&6; }
7814else
7815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
7817fi
7818
7819  if test "x$ac_ct_OTOOL" = x; then
7820    OTOOL=":"
7821  else
7822    case $cross_compiling:$ac_tool_warned in
7823yes:)
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7826ac_tool_warned=yes ;;
7827esac
7828    OTOOL=$ac_ct_OTOOL
7829  fi
7830else
7831  OTOOL="$ac_cv_prog_OTOOL"
7832fi
7833
7834    if test -n "$ac_tool_prefix"; then
7835  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7836set dummy ${ac_tool_prefix}otool64; ac_word=$2
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838$as_echo_n "checking for $ac_word... " >&6; }
7839if ${ac_cv_prog_OTOOL64+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842  if test -n "$OTOOL64"; then
7843  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7844else
7845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846for as_dir in $PATH
7847do
7848  IFS=$as_save_IFS
7849  test -z "$as_dir" && as_dir=.
7850    for ac_exec_ext in '' $ac_executable_extensions; do
7851  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854    break 2
7855  fi
7856done
7857  done
7858IFS=$as_save_IFS
7859
7860fi
7861fi
7862OTOOL64=$ac_cv_prog_OTOOL64
7863if test -n "$OTOOL64"; then
7864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7865$as_echo "$OTOOL64" >&6; }
7866else
7867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868$as_echo "no" >&6; }
7869fi
7870
7871
7872fi
7873if test -z "$ac_cv_prog_OTOOL64"; then
7874  ac_ct_OTOOL64=$OTOOL64
7875  # Extract the first word of "otool64", so it can be a program name with args.
7876set dummy otool64; ac_word=$2
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878$as_echo_n "checking for $ac_word... " >&6; }
7879if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7880  $as_echo_n "(cached) " >&6
7881else
7882  if test -n "$ac_ct_OTOOL64"; then
7883  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7884else
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888  IFS=$as_save_IFS
7889  test -z "$as_dir" && as_dir=.
7890    for ac_exec_ext in '' $ac_executable_extensions; do
7891  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7892    ac_cv_prog_ac_ct_OTOOL64="otool64"
7893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894    break 2
7895  fi
7896done
7897  done
7898IFS=$as_save_IFS
7899
7900fi
7901fi
7902ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7903if test -n "$ac_ct_OTOOL64"; then
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7905$as_echo "$ac_ct_OTOOL64" >&6; }
7906else
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911  if test "x$ac_ct_OTOOL64" = x; then
7912    OTOOL64=":"
7913  else
7914    case $cross_compiling:$ac_tool_warned in
7915yes:)
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918ac_tool_warned=yes ;;
7919esac
7920    OTOOL64=$ac_ct_OTOOL64
7921  fi
7922else
7923  OTOOL64="$ac_cv_prog_OTOOL64"
7924fi
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7953$as_echo_n "checking for -single_module linker flag... " >&6; }
7954if ${lt_cv_apple_cc_single_mod+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  lt_cv_apple_cc_single_mod=no
7958      if test -z "${LT_MULTI_MODULE}"; then
7959	# By default we will add the -single_module flag. You can override
7960	# by either setting the environment variable LT_MULTI_MODULE
7961	# non-empty at configure time, or by adding -multi_module to the
7962	# link flags.
7963	rm -rf libconftest.dylib*
7964	echo "int foo(void){return 1;}" > conftest.c
7965	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7966-dynamiclib -Wl,-single_module conftest.c" >&5
7967	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7968	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7969        _lt_result=$?
7970	# If there is a non-empty error log, and "single_module"
7971	# appears in it, assume the flag caused a linker warning
7972        if test -s conftest.err && $GREP single_module conftest.err; then
7973	  cat conftest.err >&5
7974	# Otherwise, if the output was created with a 0 exit code from
7975	# the compiler, it worked.
7976	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7977	  lt_cv_apple_cc_single_mod=yes
7978	else
7979	  cat conftest.err >&5
7980	fi
7981	rm -rf libconftest.dylib*
7982	rm -f conftest.*
7983      fi
7984fi
7985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7986$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7987
7988    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7989$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7990if ${lt_cv_ld_exported_symbols_list+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  lt_cv_ld_exported_symbols_list=no
7994      save_LDFLAGS=$LDFLAGS
7995      echo "_main" > conftest.sym
7996      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998/* end confdefs.h.  */
7999
8000int
8001main ()
8002{
8003
8004  ;
8005  return 0;
8006}
8007_ACEOF
8008if ac_fn_c_try_link "$LINENO"; then :
8009  lt_cv_ld_exported_symbols_list=yes
8010else
8011  lt_cv_ld_exported_symbols_list=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext \
8014    conftest$ac_exeext conftest.$ac_ext
8015	LDFLAGS="$save_LDFLAGS"
8016
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8019$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8020
8021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8022$as_echo_n "checking for -force_load linker flag... " >&6; }
8023if ${lt_cv_ld_force_load+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  lt_cv_ld_force_load=no
8027      cat > conftest.c << _LT_EOF
8028int forced_loaded() { return 2;}
8029_LT_EOF
8030      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8031      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8032      echo "$AR cru libconftest.a conftest.o" >&5
8033      $AR cru libconftest.a conftest.o 2>&5
8034      echo "$RANLIB libconftest.a" >&5
8035      $RANLIB libconftest.a 2>&5
8036      cat > conftest.c << _LT_EOF
8037int main() { return 0;}
8038_LT_EOF
8039      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8040      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8041      _lt_result=$?
8042      if test -s conftest.err && $GREP force_load conftest.err; then
8043	cat conftest.err >&5
8044      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8045	lt_cv_ld_force_load=yes
8046      else
8047	cat conftest.err >&5
8048      fi
8049        rm -f conftest.err libconftest.a conftest conftest.c
8050        rm -rf conftest.dSYM
8051
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8054$as_echo "$lt_cv_ld_force_load" >&6; }
8055    case $host_os in
8056    rhapsody* | darwin1.[012])
8057      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8058    darwin1.*)
8059      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8060    darwin*) # darwin 5.x on
8061      # if running on 10.5 or later, the deployment target defaults
8062      # to the OS version, if on x86, and 10.4, the deployment
8063      # target defaults to 10.4. Don't you love it?
8064      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8065	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8066	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8067	10.[012]*)
8068	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8069	10.*)
8070	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8071      esac
8072    ;;
8073  esac
8074    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8075      _lt_dar_single_mod='$single_module'
8076    fi
8077    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8078      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8079    else
8080      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8081    fi
8082    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8083      _lt_dsymutil='~$DSYMUTIL $lib || :'
8084    else
8085      _lt_dsymutil=
8086    fi
8087    ;;
8088  esac
8089
8090for ac_header in dlfcn.h
8091do :
8092  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8093"
8094if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8095  cat >>confdefs.h <<_ACEOF
8096#define HAVE_DLFCN_H 1
8097_ACEOF
8098
8099fi
8100
8101done
8102
8103
8104
8105
8106
8107# Set options
8108enable_win32_dll=yes
8109
8110case $host in
8111*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8112  if test -n "$ac_tool_prefix"; then
8113  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8114set dummy ${ac_tool_prefix}as; ac_word=$2
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if ${ac_cv_prog_AS+:} false; then :
8118  $as_echo_n "(cached) " >&6
8119else
8120  if test -n "$AS"; then
8121  ac_cv_prog_AS="$AS" # Let the user override the test.
8122else
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126  IFS=$as_save_IFS
8127  test -z "$as_dir" && as_dir=.
8128    for ac_exec_ext in '' $ac_executable_extensions; do
8129  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130    ac_cv_prog_AS="${ac_tool_prefix}as"
8131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132    break 2
8133  fi
8134done
8135  done
8136IFS=$as_save_IFS
8137
8138fi
8139fi
8140AS=$ac_cv_prog_AS
8141if test -n "$AS"; then
8142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8143$as_echo "$AS" >&6; }
8144else
8145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
8147fi
8148
8149
8150fi
8151if test -z "$ac_cv_prog_AS"; then
8152  ac_ct_AS=$AS
8153  # Extract the first word of "as", so it can be a program name with args.
8154set dummy as; ac_word=$2
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if ${ac_cv_prog_ac_ct_AS+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  if test -n "$ac_ct_AS"; then
8161  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166  IFS=$as_save_IFS
8167  test -z "$as_dir" && as_dir=.
8168    for ac_exec_ext in '' $ac_executable_extensions; do
8169  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8170    ac_cv_prog_ac_ct_AS="as"
8171    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172    break 2
8173  fi
8174done
8175  done
8176IFS=$as_save_IFS
8177
8178fi
8179fi
8180ac_ct_AS=$ac_cv_prog_ac_ct_AS
8181if test -n "$ac_ct_AS"; then
8182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8183$as_echo "$ac_ct_AS" >&6; }
8184else
8185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
8187fi
8188
8189  if test "x$ac_ct_AS" = x; then
8190    AS="false"
8191  else
8192    case $cross_compiling:$ac_tool_warned in
8193yes:)
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8196ac_tool_warned=yes ;;
8197esac
8198    AS=$ac_ct_AS
8199  fi
8200else
8201  AS="$ac_cv_prog_AS"
8202fi
8203
8204  if test -n "$ac_tool_prefix"; then
8205  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8206set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208$as_echo_n "checking for $ac_word... " >&6; }
8209if ${ac_cv_prog_DLLTOOL+:} false; then :
8210  $as_echo_n "(cached) " >&6
8211else
8212  if test -n "$DLLTOOL"; then
8213  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8214else
8215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216for as_dir in $PATH
8217do
8218  IFS=$as_save_IFS
8219  test -z "$as_dir" && as_dir=.
8220    for ac_exec_ext in '' $ac_executable_extensions; do
8221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8222    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224    break 2
8225  fi
8226done
8227  done
8228IFS=$as_save_IFS
8229
8230fi
8231fi
8232DLLTOOL=$ac_cv_prog_DLLTOOL
8233if test -n "$DLLTOOL"; then
8234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8235$as_echo "$DLLTOOL" >&6; }
8236else
8237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238$as_echo "no" >&6; }
8239fi
8240
8241
8242fi
8243if test -z "$ac_cv_prog_DLLTOOL"; then
8244  ac_ct_DLLTOOL=$DLLTOOL
8245  # Extract the first word of "dlltool", so it can be a program name with args.
8246set dummy dlltool; ac_word=$2
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248$as_echo_n "checking for $ac_word... " >&6; }
8249if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8250  $as_echo_n "(cached) " >&6
8251else
8252  if test -n "$ac_ct_DLLTOOL"; then
8253  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8254else
8255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256for as_dir in $PATH
8257do
8258  IFS=$as_save_IFS
8259  test -z "$as_dir" && as_dir=.
8260    for ac_exec_ext in '' $ac_executable_extensions; do
8261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8262    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264    break 2
8265  fi
8266done
8267  done
8268IFS=$as_save_IFS
8269
8270fi
8271fi
8272ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8273if test -n "$ac_ct_DLLTOOL"; then
8274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8275$as_echo "$ac_ct_DLLTOOL" >&6; }
8276else
8277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278$as_echo "no" >&6; }
8279fi
8280
8281  if test "x$ac_ct_DLLTOOL" = x; then
8282    DLLTOOL="false"
8283  else
8284    case $cross_compiling:$ac_tool_warned in
8285yes:)
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8288ac_tool_warned=yes ;;
8289esac
8290    DLLTOOL=$ac_ct_DLLTOOL
8291  fi
8292else
8293  DLLTOOL="$ac_cv_prog_DLLTOOL"
8294fi
8295
8296  if test -n "$ac_tool_prefix"; then
8297  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8298set dummy ${ac_tool_prefix}objdump; ac_word=$2
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300$as_echo_n "checking for $ac_word... " >&6; }
8301if ${ac_cv_prog_OBJDUMP+:} false; then :
8302  $as_echo_n "(cached) " >&6
8303else
8304  if test -n "$OBJDUMP"; then
8305  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8306else
8307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308for as_dir in $PATH
8309do
8310  IFS=$as_save_IFS
8311  test -z "$as_dir" && as_dir=.
8312    for ac_exec_ext in '' $ac_executable_extensions; do
8313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8314    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8316    break 2
8317  fi
8318done
8319  done
8320IFS=$as_save_IFS
8321
8322fi
8323fi
8324OBJDUMP=$ac_cv_prog_OBJDUMP
8325if test -n "$OBJDUMP"; then
8326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8327$as_echo "$OBJDUMP" >&6; }
8328else
8329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331fi
8332
8333
8334fi
8335if test -z "$ac_cv_prog_OBJDUMP"; then
8336  ac_ct_OBJDUMP=$OBJDUMP
8337  # Extract the first word of "objdump", so it can be a program name with args.
8338set dummy objdump; ac_word=$2
8339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340$as_echo_n "checking for $ac_word... " >&6; }
8341if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8342  $as_echo_n "(cached) " >&6
8343else
8344  if test -n "$ac_ct_OBJDUMP"; then
8345  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8346else
8347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8348for as_dir in $PATH
8349do
8350  IFS=$as_save_IFS
8351  test -z "$as_dir" && as_dir=.
8352    for ac_exec_ext in '' $ac_executable_extensions; do
8353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8354    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356    break 2
8357  fi
8358done
8359  done
8360IFS=$as_save_IFS
8361
8362fi
8363fi
8364ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8365if test -n "$ac_ct_OBJDUMP"; then
8366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8367$as_echo "$ac_ct_OBJDUMP" >&6; }
8368else
8369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370$as_echo "no" >&6; }
8371fi
8372
8373  if test "x$ac_ct_OBJDUMP" = x; then
8374    OBJDUMP="false"
8375  else
8376    case $cross_compiling:$ac_tool_warned in
8377yes:)
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8380ac_tool_warned=yes ;;
8381esac
8382    OBJDUMP=$ac_ct_OBJDUMP
8383  fi
8384else
8385  OBJDUMP="$ac_cv_prog_OBJDUMP"
8386fi
8387
8388  ;;
8389esac
8390
8391test -z "$AS" && AS=as
8392
8393
8394
8395
8396
8397test -z "$DLLTOOL" && DLLTOOL=dlltool
8398
8399
8400
8401
8402
8403test -z "$OBJDUMP" && OBJDUMP=objdump
8404
8405
8406
8407
8408
8409
8410
8411        enable_dlopen=no
8412
8413
8414
8415            # Check whether --enable-shared was given.
8416if test "${enable_shared+set}" = set; then :
8417  enableval=$enable_shared; p=${PACKAGE-default}
8418    case $enableval in
8419    yes) enable_shared=yes ;;
8420    no) enable_shared=no ;;
8421    *)
8422      enable_shared=no
8423      # Look at the argument we got.  We use all the common list separators.
8424      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8425      for pkg in $enableval; do
8426	IFS="$lt_save_ifs"
8427	if test "X$pkg" = "X$p"; then
8428	  enable_shared=yes
8429	fi
8430      done
8431      IFS="$lt_save_ifs"
8432      ;;
8433    esac
8434else
8435  enable_shared=yes
8436fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446  # Check whether --enable-static was given.
8447if test "${enable_static+set}" = set; then :
8448  enableval=$enable_static; p=${PACKAGE-default}
8449    case $enableval in
8450    yes) enable_static=yes ;;
8451    no) enable_static=no ;;
8452    *)
8453     enable_static=no
8454      # Look at the argument we got.  We use all the common list separators.
8455      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456      for pkg in $enableval; do
8457	IFS="$lt_save_ifs"
8458	if test "X$pkg" = "X$p"; then
8459	  enable_static=yes
8460	fi
8461      done
8462      IFS="$lt_save_ifs"
8463      ;;
8464    esac
8465else
8466  enable_static=yes
8467fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478# Check whether --with-pic was given.
8479if test "${with_pic+set}" = set; then :
8480  withval=$with_pic; lt_p=${PACKAGE-default}
8481    case $withval in
8482    yes|no) pic_mode=$withval ;;
8483    *)
8484      pic_mode=default
8485      # Look at the argument we got.  We use all the common list separators.
8486      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487      for lt_pkg in $withval; do
8488	IFS="$lt_save_ifs"
8489	if test "X$lt_pkg" = "X$lt_p"; then
8490	  pic_mode=yes
8491	fi
8492      done
8493      IFS="$lt_save_ifs"
8494      ;;
8495    esac
8496else
8497  pic_mode=default
8498fi
8499
8500
8501test -z "$pic_mode" && pic_mode=default
8502
8503
8504
8505
8506
8507
8508
8509  # Check whether --enable-fast-install was given.
8510if test "${enable_fast_install+set}" = set; then :
8511  enableval=$enable_fast_install; p=${PACKAGE-default}
8512    case $enableval in
8513    yes) enable_fast_install=yes ;;
8514    no) enable_fast_install=no ;;
8515    *)
8516      enable_fast_install=no
8517      # Look at the argument we got.  We use all the common list separators.
8518      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8519      for pkg in $enableval; do
8520	IFS="$lt_save_ifs"
8521	if test "X$pkg" = "X$p"; then
8522	  enable_fast_install=yes
8523	fi
8524      done
8525      IFS="$lt_save_ifs"
8526      ;;
8527    esac
8528else
8529  enable_fast_install=yes
8530fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542# This can be used to rebuild libtool when needed
8543LIBTOOL_DEPS="$ltmain"
8544
8545# Always use our own libtool.
8546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577test -z "$LN_S" && LN_S="ln -s"
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592if test -n "${ZSH_VERSION+set}" ; then
8593   setopt NO_GLOB_SUBST
8594fi
8595
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8597$as_echo_n "checking for objdir... " >&6; }
8598if ${lt_cv_objdir+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  rm -f .libs 2>/dev/null
8602mkdir .libs 2>/dev/null
8603if test -d .libs; then
8604  lt_cv_objdir=.libs
8605else
8606  # MS-DOS does not allow filenames that begin with a dot.
8607  lt_cv_objdir=_libs
8608fi
8609rmdir .libs 2>/dev/null
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8612$as_echo "$lt_cv_objdir" >&6; }
8613objdir=$lt_cv_objdir
8614
8615
8616
8617
8618
8619cat >>confdefs.h <<_ACEOF
8620#define LT_OBJDIR "$lt_cv_objdir/"
8621_ACEOF
8622
8623
8624
8625
8626case $host_os in
8627aix3*)
8628  # AIX sometimes has problems with the GCC collect2 program.  For some
8629  # reason, if we set the COLLECT_NAMES environment variable, the problems
8630  # vanish in a puff of smoke.
8631  if test "X${COLLECT_NAMES+set}" != Xset; then
8632    COLLECT_NAMES=
8633    export COLLECT_NAMES
8634  fi
8635  ;;
8636esac
8637
8638# Global variables:
8639ofile=libtool
8640can_build_shared=yes
8641
8642# All known linkers require a `.a' archive for static linking (except MSVC,
8643# which needs '.lib').
8644libext=a
8645
8646with_gnu_ld="$lt_cv_prog_gnu_ld"
8647
8648old_CC="$CC"
8649old_CFLAGS="$CFLAGS"
8650
8651# Set sane defaults for various variables
8652test -z "$CC" && CC=cc
8653test -z "$LTCC" && LTCC=$CC
8654test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8655test -z "$LD" && LD=ld
8656test -z "$ac_objext" && ac_objext=o
8657
8658for cc_temp in $compiler""; do
8659  case $cc_temp in
8660    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8661    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8662    \-*) ;;
8663    *) break;;
8664  esac
8665done
8666cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667
8668
8669# Only perform the check for file, if the check method requires it
8670test -z "$MAGIC_CMD" && MAGIC_CMD=file
8671case $deplibs_check_method in
8672file_magic*)
8673  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8675$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8676if ${lt_cv_path_MAGIC_CMD+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  case $MAGIC_CMD in
8680[\\/*] |  ?:[\\/]*)
8681  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682  ;;
8683*)
8684  lt_save_MAGIC_CMD="$MAGIC_CMD"
8685  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8686  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8687  for ac_dir in $ac_dummy; do
8688    IFS="$lt_save_ifs"
8689    test -z "$ac_dir" && ac_dir=.
8690    if test -f $ac_dir/${ac_tool_prefix}file; then
8691      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8692      if test -n "$file_magic_test_file"; then
8693	case $deplibs_check_method in
8694	"file_magic "*)
8695	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8696	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8698	    $EGREP "$file_magic_regex" > /dev/null; then
8699	    :
8700	  else
8701	    cat <<_LT_EOF 1>&2
8702
8703*** Warning: the command libtool uses to detect shared libraries,
8704*** $file_magic_cmd, produces output that libtool cannot recognize.
8705*** The result is that libtool may fail to recognize shared libraries
8706*** as such.  This will affect the creation of libtool libraries that
8707*** depend on shared libraries, but programs linked with such libtool
8708*** libraries will work regardless of this problem.  Nevertheless, you
8709*** may want to report the problem to your system manager and/or to
8710*** bug-libtool@gnu.org
8711
8712_LT_EOF
8713	  fi ;;
8714	esac
8715      fi
8716      break
8717    fi
8718  done
8719  IFS="$lt_save_ifs"
8720  MAGIC_CMD="$lt_save_MAGIC_CMD"
8721  ;;
8722esac
8723fi
8724
8725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726if test -n "$MAGIC_CMD"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8728$as_echo "$MAGIC_CMD" >&6; }
8729else
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
8732fi
8733
8734
8735
8736
8737
8738if test -z "$lt_cv_path_MAGIC_CMD"; then
8739  if test -n "$ac_tool_prefix"; then
8740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8741$as_echo_n "checking for file... " >&6; }
8742if ${lt_cv_path_MAGIC_CMD+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  case $MAGIC_CMD in
8746[\\/*] |  ?:[\\/]*)
8747  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8748  ;;
8749*)
8750  lt_save_MAGIC_CMD="$MAGIC_CMD"
8751  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8752  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8753  for ac_dir in $ac_dummy; do
8754    IFS="$lt_save_ifs"
8755    test -z "$ac_dir" && ac_dir=.
8756    if test -f $ac_dir/file; then
8757      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8758      if test -n "$file_magic_test_file"; then
8759	case $deplibs_check_method in
8760	"file_magic "*)
8761	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8762	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8763	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8764	    $EGREP "$file_magic_regex" > /dev/null; then
8765	    :
8766	  else
8767	    cat <<_LT_EOF 1>&2
8768
8769*** Warning: the command libtool uses to detect shared libraries,
8770*** $file_magic_cmd, produces output that libtool cannot recognize.
8771*** The result is that libtool may fail to recognize shared libraries
8772*** as such.  This will affect the creation of libtool libraries that
8773*** depend on shared libraries, but programs linked with such libtool
8774*** libraries will work regardless of this problem.  Nevertheless, you
8775*** may want to report the problem to your system manager and/or to
8776*** bug-libtool@gnu.org
8777
8778_LT_EOF
8779	  fi ;;
8780	esac
8781      fi
8782      break
8783    fi
8784  done
8785  IFS="$lt_save_ifs"
8786  MAGIC_CMD="$lt_save_MAGIC_CMD"
8787  ;;
8788esac
8789fi
8790
8791MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8792if test -n "$MAGIC_CMD"; then
8793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8794$as_echo "$MAGIC_CMD" >&6; }
8795else
8796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
8798fi
8799
8800
8801  else
8802    MAGIC_CMD=:
8803  fi
8804fi
8805
8806  fi
8807  ;;
8808esac
8809
8810# Use C for the default configuration in the libtool script
8811
8812lt_save_CC="$CC"
8813ac_ext=c
8814ac_cpp='$CPP $CPPFLAGS'
8815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819
8820# Source file extension for C test sources.
8821ac_ext=c
8822
8823# Object file extension for compiled C test sources.
8824objext=o
8825objext=$objext
8826
8827# Code to be used in simple compile tests
8828lt_simple_compile_test_code="int some_variable = 0;"
8829
8830# Code to be used in simple link tests
8831lt_simple_link_test_code='int main(){return(0);}'
8832
8833
8834
8835
8836
8837
8838
8839# If no C compiler was specified, use CC.
8840LTCC=${LTCC-"$CC"}
8841
8842# If no C compiler flags were specified, use CFLAGS.
8843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8844
8845# Allow CC to be a program name with arguments.
8846compiler=$CC
8847
8848# Save the default compiler, since it gets overwritten when the other
8849# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8850compiler_DEFAULT=$CC
8851
8852# save warnings/boilerplate of simple test code
8853ac_outfile=conftest.$ac_objext
8854echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8855eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8856_lt_compiler_boilerplate=`cat conftest.err`
8857$RM conftest*
8858
8859ac_outfile=conftest.$ac_objext
8860echo "$lt_simple_link_test_code" >conftest.$ac_ext
8861eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862_lt_linker_boilerplate=`cat conftest.err`
8863$RM -r conftest*
8864
8865
8866## CAVEAT EMPTOR:
8867## There is no encapsulation within the following macros, do not change
8868## the running order or otherwise move them around unless you know exactly
8869## what you are doing...
8870if test -n "$compiler"; then
8871
8872lt_prog_compiler_no_builtin_flag=
8873
8874if test "$GCC" = yes; then
8875  case $cc_basename in
8876  nvcc*)
8877    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8878  *)
8879    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8880  esac
8881
8882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8883$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8884if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  lt_cv_prog_compiler_rtti_exceptions=no
8888   ac_outfile=conftest.$ac_objext
8889   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890   lt_compiler_flag="-fno-rtti -fno-exceptions"
8891   # Insert the option either (1) after the last *FLAGS variable, or
8892   # (2) before a word containing "conftest.", or (3) at the end.
8893   # Note that $ac_compile itself does not contain backslashes and begins
8894   # with a dollar sign (not a hyphen), so the echo should work correctly.
8895   # The option is referenced via a variable to avoid confusing sed.
8896   lt_compile=`echo "$ac_compile" | $SED \
8897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8899   -e 's:$: $lt_compiler_flag:'`
8900   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8901   (eval "$lt_compile" 2>conftest.err)
8902   ac_status=$?
8903   cat conftest.err >&5
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   if (exit $ac_status) && test -s "$ac_outfile"; then
8906     # The compiler can only warn and ignore the option if not recognized
8907     # So say no if there are warnings other than the usual output.
8908     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8909     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8911       lt_cv_prog_compiler_rtti_exceptions=yes
8912     fi
8913   fi
8914   $RM conftest*
8915
8916fi
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8918$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8919
8920if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8921    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8922else
8923    :
8924fi
8925
8926fi
8927
8928
8929
8930
8931
8932
8933  lt_prog_compiler_wl=
8934lt_prog_compiler_pic=
8935lt_prog_compiler_static=
8936
8937
8938  if test "$GCC" = yes; then
8939    lt_prog_compiler_wl='-Wl,'
8940    lt_prog_compiler_static='-static'
8941
8942    case $host_os in
8943      aix*)
8944      # All AIX code is PIC.
8945      if test "$host_cpu" = ia64; then
8946	# AIX 5 now supports IA64 processor
8947	lt_prog_compiler_static='-Bstatic'
8948      fi
8949      ;;
8950
8951    amigaos*)
8952      case $host_cpu in
8953      powerpc)
8954            # see comment about AmigaOS4 .so support
8955            lt_prog_compiler_pic='-fPIC'
8956        ;;
8957      m68k)
8958            # FIXME: we need at least 68020 code to build shared libraries, but
8959            # adding the `-m68020' flag to GCC prevents building anything better,
8960            # like `-m68040'.
8961            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8962        ;;
8963      esac
8964      ;;
8965
8966    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8967      # PIC is the default for these OSes.
8968      ;;
8969
8970    mingw* | cygwin* | pw32* | os2* | cegcc*)
8971      # This hack is so that the source file can tell whether it is being
8972      # built for inclusion in a dll (and should export symbols for example).
8973      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8974      # (--disable-auto-import) libraries
8975      lt_prog_compiler_pic='-DDLL_EXPORT'
8976      ;;
8977
8978    darwin* | rhapsody*)
8979      # PIC is the default on this platform
8980      # Common symbols not allowed in MH_DYLIB files
8981      lt_prog_compiler_pic='-fno-common'
8982      ;;
8983
8984    haiku*)
8985      # PIC is the default for Haiku.
8986      # The "-static" flag exists, but is broken.
8987      lt_prog_compiler_static=
8988      ;;
8989
8990    hpux*)
8991      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8992      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8993      # sets the default TLS model and affects inlining.
8994      case $host_cpu in
8995      hppa*64*)
8996	# +Z the default
8997	;;
8998      *)
8999	lt_prog_compiler_pic='-fPIC'
9000	;;
9001      esac
9002      ;;
9003
9004    interix[3-9]*)
9005      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9006      # Instead, we relocate shared libraries at runtime.
9007      ;;
9008
9009    msdosdjgpp*)
9010      # Just because we use GCC doesn't mean we suddenly get shared libraries
9011      # on systems that don't support them.
9012      lt_prog_compiler_can_build_shared=no
9013      enable_shared=no
9014      ;;
9015
9016    *nto* | *qnx*)
9017      # QNX uses GNU C++, but need to define -shared option too, otherwise
9018      # it will coredump.
9019      lt_prog_compiler_pic='-fPIC -shared'
9020      ;;
9021
9022    sysv4*MP*)
9023      if test -d /usr/nec; then
9024	lt_prog_compiler_pic=-Kconform_pic
9025      fi
9026      ;;
9027
9028    *)
9029      lt_prog_compiler_pic='-fPIC'
9030      ;;
9031    esac
9032
9033    case $cc_basename in
9034    nvcc*) # Cuda Compiler Driver 2.2
9035      lt_prog_compiler_wl='-Xlinker '
9036      if test -n "$lt_prog_compiler_pic"; then
9037        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9038      fi
9039      ;;
9040    esac
9041  else
9042    # PORTME Check for flag to pass linker flags through the system compiler.
9043    case $host_os in
9044    aix*)
9045      lt_prog_compiler_wl='-Wl,'
9046      if test "$host_cpu" = ia64; then
9047	# AIX 5 now supports IA64 processor
9048	lt_prog_compiler_static='-Bstatic'
9049      else
9050	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9051      fi
9052      ;;
9053
9054    mingw* | cygwin* | pw32* | os2* | cegcc*)
9055      # This hack is so that the source file can tell whether it is being
9056      # built for inclusion in a dll (and should export symbols for example).
9057      lt_prog_compiler_pic='-DDLL_EXPORT'
9058      ;;
9059
9060    hpux9* | hpux10* | hpux11*)
9061      lt_prog_compiler_wl='-Wl,'
9062      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9063      # not for PA HP-UX.
9064      case $host_cpu in
9065      hppa*64*|ia64*)
9066	# +Z the default
9067	;;
9068      *)
9069	lt_prog_compiler_pic='+Z'
9070	;;
9071      esac
9072      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9073      lt_prog_compiler_static='${wl}-a ${wl}archive'
9074      ;;
9075
9076    irix5* | irix6* | nonstopux*)
9077      lt_prog_compiler_wl='-Wl,'
9078      # PIC (with -KPIC) is the default.
9079      lt_prog_compiler_static='-non_shared'
9080      ;;
9081
9082    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9083      case $cc_basename in
9084      # old Intel for x86_64 which still supported -KPIC.
9085      ecc*)
9086	lt_prog_compiler_wl='-Wl,'
9087	lt_prog_compiler_pic='-KPIC'
9088	lt_prog_compiler_static='-static'
9089        ;;
9090      # icc used to be incompatible with GCC.
9091      # ICC 10 doesn't accept -KPIC any more.
9092      icc* | ifort*)
9093	lt_prog_compiler_wl='-Wl,'
9094	lt_prog_compiler_pic='-fPIC'
9095	lt_prog_compiler_static='-static'
9096        ;;
9097      # Lahey Fortran 8.1.
9098      lf95*)
9099	lt_prog_compiler_wl='-Wl,'
9100	lt_prog_compiler_pic='--shared'
9101	lt_prog_compiler_static='--static'
9102	;;
9103      nagfor*)
9104	# NAG Fortran compiler
9105	lt_prog_compiler_wl='-Wl,-Wl,,'
9106	lt_prog_compiler_pic='-PIC'
9107	lt_prog_compiler_static='-Bstatic'
9108	;;
9109      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9110        # Portland Group compilers (*not* the Pentium gcc compiler,
9111	# which looks to be a dead project)
9112	lt_prog_compiler_wl='-Wl,'
9113	lt_prog_compiler_pic='-fpic'
9114	lt_prog_compiler_static='-Bstatic'
9115        ;;
9116      ccc*)
9117        lt_prog_compiler_wl='-Wl,'
9118        # All Alpha code is PIC.
9119        lt_prog_compiler_static='-non_shared'
9120        ;;
9121      xl* | bgxl* | bgf* | mpixl*)
9122	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9123	lt_prog_compiler_wl='-Wl,'
9124	lt_prog_compiler_pic='-qpic'
9125	lt_prog_compiler_static='-qstaticlink'
9126	;;
9127      *)
9128	case `$CC -V 2>&1 | sed 5q` in
9129	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9130	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9131	  lt_prog_compiler_pic='-KPIC'
9132	  lt_prog_compiler_static='-Bstatic'
9133	  lt_prog_compiler_wl=''
9134	  ;;
9135	*Sun\ F* | *Sun*Fortran*)
9136	  lt_prog_compiler_pic='-KPIC'
9137	  lt_prog_compiler_static='-Bstatic'
9138	  lt_prog_compiler_wl='-Qoption ld '
9139	  ;;
9140	*Sun\ C*)
9141	  # Sun C 5.9
9142	  lt_prog_compiler_pic='-KPIC'
9143	  lt_prog_compiler_static='-Bstatic'
9144	  lt_prog_compiler_wl='-Wl,'
9145	  ;;
9146        *Intel*\ [CF]*Compiler*)
9147	  lt_prog_compiler_wl='-Wl,'
9148	  lt_prog_compiler_pic='-fPIC'
9149	  lt_prog_compiler_static='-static'
9150	  ;;
9151	*Portland\ Group*)
9152	  lt_prog_compiler_wl='-Wl,'
9153	  lt_prog_compiler_pic='-fpic'
9154	  lt_prog_compiler_static='-Bstatic'
9155	  ;;
9156	esac
9157	;;
9158      esac
9159      ;;
9160
9161    newsos6)
9162      lt_prog_compiler_pic='-KPIC'
9163      lt_prog_compiler_static='-Bstatic'
9164      ;;
9165
9166    *nto* | *qnx*)
9167      # QNX uses GNU C++, but need to define -shared option too, otherwise
9168      # it will coredump.
9169      lt_prog_compiler_pic='-fPIC -shared'
9170      ;;
9171
9172    osf3* | osf4* | osf5*)
9173      lt_prog_compiler_wl='-Wl,'
9174      # All OSF/1 code is PIC.
9175      lt_prog_compiler_static='-non_shared'
9176      ;;
9177
9178    rdos*)
9179      lt_prog_compiler_static='-non_shared'
9180      ;;
9181
9182    solaris*)
9183      lt_prog_compiler_pic='-KPIC'
9184      lt_prog_compiler_static='-Bstatic'
9185      case $cc_basename in
9186      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9187	lt_prog_compiler_wl='-Qoption ld ';;
9188      *)
9189	lt_prog_compiler_wl='-Wl,';;
9190      esac
9191      ;;
9192
9193    sunos4*)
9194      lt_prog_compiler_wl='-Qoption ld '
9195      lt_prog_compiler_pic='-PIC'
9196      lt_prog_compiler_static='-Bstatic'
9197      ;;
9198
9199    sysv4 | sysv4.2uw2* | sysv4.3*)
9200      lt_prog_compiler_wl='-Wl,'
9201      lt_prog_compiler_pic='-KPIC'
9202      lt_prog_compiler_static='-Bstatic'
9203      ;;
9204
9205    sysv4*MP*)
9206      if test -d /usr/nec ;then
9207	lt_prog_compiler_pic='-Kconform_pic'
9208	lt_prog_compiler_static='-Bstatic'
9209      fi
9210      ;;
9211
9212    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9213      lt_prog_compiler_wl='-Wl,'
9214      lt_prog_compiler_pic='-KPIC'
9215      lt_prog_compiler_static='-Bstatic'
9216      ;;
9217
9218    unicos*)
9219      lt_prog_compiler_wl='-Wl,'
9220      lt_prog_compiler_can_build_shared=no
9221      ;;
9222
9223    uts4*)
9224      lt_prog_compiler_pic='-pic'
9225      lt_prog_compiler_static='-Bstatic'
9226      ;;
9227
9228    *)
9229      lt_prog_compiler_can_build_shared=no
9230      ;;
9231    esac
9232  fi
9233
9234case $host_os in
9235  # For platforms which do not support PIC, -DPIC is meaningless:
9236  *djgpp*)
9237    lt_prog_compiler_pic=
9238    ;;
9239  *)
9240    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9241    ;;
9242esac
9243
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9245$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9246if ${lt_cv_prog_compiler_pic+:} false; then :
9247  $as_echo_n "(cached) " >&6
9248else
9249  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9250fi
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9252$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9253lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9254
9255#
9256# Check to make sure the PIC flag actually works.
9257#
9258if test -n "$lt_prog_compiler_pic"; then
9259  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9260$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9261if ${lt_cv_prog_compiler_pic_works+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  lt_cv_prog_compiler_pic_works=no
9265   ac_outfile=conftest.$ac_objext
9266   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9267   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9268   # Insert the option either (1) after the last *FLAGS variable, or
9269   # (2) before a word containing "conftest.", or (3) at the end.
9270   # Note that $ac_compile itself does not contain backslashes and begins
9271   # with a dollar sign (not a hyphen), so the echo should work correctly.
9272   # The option is referenced via a variable to avoid confusing sed.
9273   lt_compile=`echo "$ac_compile" | $SED \
9274   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9275   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9276   -e 's:$: $lt_compiler_flag:'`
9277   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9278   (eval "$lt_compile" 2>conftest.err)
9279   ac_status=$?
9280   cat conftest.err >&5
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   if (exit $ac_status) && test -s "$ac_outfile"; then
9283     # The compiler can only warn and ignore the option if not recognized
9284     # So say no if there are warnings other than the usual output.
9285     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9286     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9287     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9288       lt_cv_prog_compiler_pic_works=yes
9289     fi
9290   fi
9291   $RM conftest*
9292
9293fi
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9295$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9296
9297if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9298    case $lt_prog_compiler_pic in
9299     "" | " "*) ;;
9300     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9301     esac
9302else
9303    lt_prog_compiler_pic=
9304     lt_prog_compiler_can_build_shared=no
9305fi
9306
9307fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319#
9320# Check to make sure the static flag actually works.
9321#
9322wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9324$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9325if ${lt_cv_prog_compiler_static_works+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  lt_cv_prog_compiler_static_works=no
9329   save_LDFLAGS="$LDFLAGS"
9330   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9331   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9332   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9333     # The linker can only warn and ignore the option if not recognized
9334     # So say no if there are warnings
9335     if test -s conftest.err; then
9336       # Append any errors to the config.log.
9337       cat conftest.err 1>&5
9338       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9339       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9340       if diff conftest.exp conftest.er2 >/dev/null; then
9341         lt_cv_prog_compiler_static_works=yes
9342       fi
9343     else
9344       lt_cv_prog_compiler_static_works=yes
9345     fi
9346   fi
9347   $RM -r conftest*
9348   LDFLAGS="$save_LDFLAGS"
9349
9350fi
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9352$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9353
9354if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9355    :
9356else
9357    lt_prog_compiler_static=
9358fi
9359
9360
9361
9362
9363
9364
9365
9366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9367$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9368if ${lt_cv_prog_compiler_c_o+:} false; then :
9369  $as_echo_n "(cached) " >&6
9370else
9371  lt_cv_prog_compiler_c_o=no
9372   $RM -r conftest 2>/dev/null
9373   mkdir conftest
9374   cd conftest
9375   mkdir out
9376   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9377
9378   lt_compiler_flag="-o out/conftest2.$ac_objext"
9379   # Insert the option either (1) after the last *FLAGS variable, or
9380   # (2) before a word containing "conftest.", or (3) at the end.
9381   # Note that $ac_compile itself does not contain backslashes and begins
9382   # with a dollar sign (not a hyphen), so the echo should work correctly.
9383   lt_compile=`echo "$ac_compile" | $SED \
9384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9386   -e 's:$: $lt_compiler_flag:'`
9387   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9388   (eval "$lt_compile" 2>out/conftest.err)
9389   ac_status=$?
9390   cat out/conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9393   then
9394     # The compiler can only warn and ignore the option if not recognized
9395     # So say no if there are warnings
9396     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9397     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9398     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9399       lt_cv_prog_compiler_c_o=yes
9400     fi
9401   fi
9402   chmod u+w . 2>&5
9403   $RM conftest*
9404   # SGI C++ compiler will create directory out/ii_files/ for
9405   # template instantiation
9406   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9407   $RM out/* && rmdir out
9408   cd ..
9409   $RM -r conftest
9410   $RM conftest*
9411
9412fi
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9414$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9415
9416
9417
9418
9419
9420
9421  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9423if ${lt_cv_prog_compiler_c_o+:} false; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  lt_cv_prog_compiler_c_o=no
9427   $RM -r conftest 2>/dev/null
9428   mkdir conftest
9429   cd conftest
9430   mkdir out
9431   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9432
9433   lt_compiler_flag="-o out/conftest2.$ac_objext"
9434   # Insert the option either (1) after the last *FLAGS variable, or
9435   # (2) before a word containing "conftest.", or (3) at the end.
9436   # Note that $ac_compile itself does not contain backslashes and begins
9437   # with a dollar sign (not a hyphen), so the echo should work correctly.
9438   lt_compile=`echo "$ac_compile" | $SED \
9439   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441   -e 's:$: $lt_compiler_flag:'`
9442   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443   (eval "$lt_compile" 2>out/conftest.err)
9444   ac_status=$?
9445   cat out/conftest.err >&5
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448   then
9449     # The compiler can only warn and ignore the option if not recognized
9450     # So say no if there are warnings
9451     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454       lt_cv_prog_compiler_c_o=yes
9455     fi
9456   fi
9457   chmod u+w . 2>&5
9458   $RM conftest*
9459   # SGI C++ compiler will create directory out/ii_files/ for
9460   # template instantiation
9461   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462   $RM out/* && rmdir out
9463   cd ..
9464   $RM -r conftest
9465   $RM conftest*
9466
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9470
9471
9472
9473
9474hard_links="nottested"
9475if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9476  # do not overwrite the value of need_locks provided by the user
9477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9478$as_echo_n "checking if we can lock with hard links... " >&6; }
9479  hard_links=yes
9480  $RM conftest*
9481  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9482  touch conftest.a
9483  ln conftest.a conftest.b 2>&5 || hard_links=no
9484  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9486$as_echo "$hard_links" >&6; }
9487  if test "$hard_links" = no; then
9488    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9489$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9490    need_locks=warn
9491  fi
9492else
9493  need_locks=no
9494fi
9495
9496
9497
9498
9499
9500
9501  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9502$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9503
9504  runpath_var=
9505  allow_undefined_flag=
9506  always_export_symbols=no
9507  archive_cmds=
9508  archive_expsym_cmds=
9509  compiler_needs_object=no
9510  enable_shared_with_static_runtimes=no
9511  export_dynamic_flag_spec=
9512  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9513  hardcode_automatic=no
9514  hardcode_direct=no
9515  hardcode_direct_absolute=no
9516  hardcode_libdir_flag_spec=
9517  hardcode_libdir_separator=
9518  hardcode_minus_L=no
9519  hardcode_shlibpath_var=unsupported
9520  inherit_rpath=no
9521  link_all_deplibs=unknown
9522  module_cmds=
9523  module_expsym_cmds=
9524  old_archive_from_new_cmds=
9525  old_archive_from_expsyms_cmds=
9526  thread_safe_flag_spec=
9527  whole_archive_flag_spec=
9528  # include_expsyms should be a list of space-separated symbols to be *always*
9529  # included in the symbol list
9530  include_expsyms=
9531  # exclude_expsyms can be an extended regexp of symbols to exclude
9532  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9533  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9534  # as well as any symbol that contains `d'.
9535  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9536  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9537  # platforms (ab)use it in PIC code, but their linkers get confused if
9538  # the symbol is explicitly referenced.  Since portable code cannot
9539  # rely on this symbol name, it's probably fine to never include it in
9540  # preloaded symbol tables.
9541  # Exclude shared library initialization/finalization symbols.
9542  extract_expsyms_cmds=
9543
9544  case $host_os in
9545  cygwin* | mingw* | pw32* | cegcc*)
9546    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9547    # When not using gcc, we currently assume that we are using
9548    # Microsoft Visual C++.
9549    if test "$GCC" != yes; then
9550      with_gnu_ld=no
9551    fi
9552    ;;
9553  interix*)
9554    # we just hope/assume this is gcc and not c89 (= MSVC++)
9555    with_gnu_ld=yes
9556    ;;
9557  openbsd*)
9558    with_gnu_ld=no
9559    ;;
9560  linux* | k*bsd*-gnu | gnu*)
9561    link_all_deplibs=no
9562    ;;
9563  esac
9564
9565  ld_shlibs=yes
9566
9567  # On some targets, GNU ld is compatible enough with the native linker
9568  # that we're better off using the native interface for both.
9569  lt_use_gnu_ld_interface=no
9570  if test "$with_gnu_ld" = yes; then
9571    case $host_os in
9572      aix*)
9573	# The AIX port of GNU ld has always aspired to compatibility
9574	# with the native linker.  However, as the warning in the GNU ld
9575	# block says, versions before 2.19.5* couldn't really create working
9576	# shared libraries, regardless of the interface used.
9577	case `$LD -v 2>&1` in
9578	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9579	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9580	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9581	  *)
9582	    lt_use_gnu_ld_interface=yes
9583	    ;;
9584	esac
9585	;;
9586      *)
9587	lt_use_gnu_ld_interface=yes
9588	;;
9589    esac
9590  fi
9591
9592  if test "$lt_use_gnu_ld_interface" = yes; then
9593    # If archive_cmds runs LD, not CC, wlarc should be empty
9594    wlarc='${wl}'
9595
9596    # Set some defaults for GNU ld with shared library support. These
9597    # are reset later if shared libraries are not supported. Putting them
9598    # here allows them to be overridden if necessary.
9599    runpath_var=LD_RUN_PATH
9600    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601    export_dynamic_flag_spec='${wl}--export-dynamic'
9602    # ancient GNU ld didn't support --whole-archive et. al.
9603    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9604      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9605    else
9606      whole_archive_flag_spec=
9607    fi
9608    supports_anon_versioning=no
9609    case `$LD -v 2>&1` in
9610      *GNU\ gold*) supports_anon_versioning=yes ;;
9611      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9612      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9613      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9614      *\ 2.11.*) ;; # other 2.11 versions
9615      *) supports_anon_versioning=yes ;;
9616    esac
9617
9618    # See if GNU ld supports shared libraries.
9619    case $host_os in
9620    aix[3-9]*)
9621      # On AIX/PPC, the GNU linker is very broken
9622      if test "$host_cpu" != ia64; then
9623	ld_shlibs=no
9624	cat <<_LT_EOF 1>&2
9625
9626*** Warning: the GNU linker, at least up to release 2.19, is reported
9627*** to be unable to reliably create shared libraries on AIX.
9628*** Therefore, libtool is disabling shared libraries support.  If you
9629*** really care for shared libraries, you may want to install binutils
9630*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9631*** You will then need to restart the configuration process.
9632
9633_LT_EOF
9634      fi
9635      ;;
9636
9637    amigaos*)
9638      case $host_cpu in
9639      powerpc)
9640            # see comment about AmigaOS4 .so support
9641            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642            archive_expsym_cmds=''
9643        ;;
9644      m68k)
9645            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)'
9646            hardcode_libdir_flag_spec='-L$libdir'
9647            hardcode_minus_L=yes
9648        ;;
9649      esac
9650      ;;
9651
9652    beos*)
9653      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654	allow_undefined_flag=unsupported
9655	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9656	# support --undefined.  This deserves some investigation.  FIXME
9657	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9658      else
9659	ld_shlibs=no
9660      fi
9661      ;;
9662
9663    cygwin* | mingw* | pw32* | cegcc*)
9664      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9665      # as there is no search path for DLLs.
9666      hardcode_libdir_flag_spec='-L$libdir'
9667      export_dynamic_flag_spec='${wl}--export-all-symbols'
9668      allow_undefined_flag=unsupported
9669      always_export_symbols=no
9670      enable_shared_with_static_runtimes=yes
9671      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'
9672      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9673
9674      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9675        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9676	# If the export-symbols file already is a .def file (1st line
9677	# is EXPORTS), use it as is; otherwise, prepend...
9678	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9679	  cp $export_symbols $output_objdir/$soname.def;
9680	else
9681	  echo EXPORTS > $output_objdir/$soname.def;
9682	  cat $export_symbols >> $output_objdir/$soname.def;
9683	fi~
9684	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9685      else
9686	ld_shlibs=no
9687      fi
9688      ;;
9689
9690    haiku*)
9691      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9692      link_all_deplibs=yes
9693      ;;
9694
9695    interix[3-9]*)
9696      hardcode_direct=no
9697      hardcode_shlibpath_var=no
9698      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9699      export_dynamic_flag_spec='${wl}-E'
9700      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9701      # Instead, shared libraries are loaded at an image base (0x10000000 by
9702      # default) and relocated if they conflict, which is a slow very memory
9703      # consuming and fragmenting process.  To avoid this, we pick a random,
9704      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9705      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9706      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9707      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'
9708      ;;
9709
9710    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9711      tmp_diet=no
9712      if test "$host_os" = linux-dietlibc; then
9713	case $cc_basename in
9714	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9715	esac
9716      fi
9717      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9718	 && test "$tmp_diet" = no
9719      then
9720	tmp_addflag=' $pic_flag'
9721	tmp_sharedflag='-shared'
9722	case $cc_basename,$host_cpu in
9723        pgcc*)				# Portland Group C compiler
9724	  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'
9725	  tmp_addflag=' $pic_flag'
9726	  ;;
9727	pgf77* | pgf90* | pgf95* | pgfortran*)
9728					# Portland Group f77 and f90 compilers
9729	  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'
9730	  tmp_addflag=' $pic_flag -Mnomain' ;;
9731	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9732	  tmp_addflag=' -i_dynamic' ;;
9733	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9734	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9735	ifc* | ifort*)			# Intel Fortran compiler
9736	  tmp_addflag=' -nofor_main' ;;
9737	lf95*)				# Lahey Fortran 8.1
9738	  whole_archive_flag_spec=
9739	  tmp_sharedflag='--shared' ;;
9740	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9741	  tmp_sharedflag='-qmkshrobj'
9742	  tmp_addflag= ;;
9743	nvcc*)	# Cuda Compiler Driver 2.2
9744	  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'
9745	  compiler_needs_object=yes
9746	  ;;
9747	esac
9748	case `$CC -V 2>&1 | sed 5q` in
9749	*Sun\ C*)			# Sun C 5.9
9750	  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'
9751	  compiler_needs_object=yes
9752	  tmp_sharedflag='-G' ;;
9753	*Sun\ F*)			# Sun Fortran 8.3
9754	  tmp_sharedflag='-G' ;;
9755	esac
9756	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9757
9758        if test "x$supports_anon_versioning" = xyes; then
9759          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9760	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9761	    echo "local: *; };" >> $output_objdir/$libname.ver~
9762	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9763        fi
9764
9765	case $cc_basename in
9766	xlf* | bgf* | bgxlf* | mpixlf*)
9767	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9768	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9769	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9770	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9771	  if test "x$supports_anon_versioning" = xyes; then
9772	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9773	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9774	      echo "local: *; };" >> $output_objdir/$libname.ver~
9775	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9776	  fi
9777	  ;;
9778	esac
9779      else
9780        ld_shlibs=no
9781      fi
9782      ;;
9783
9784    netbsd* | netbsdelf*-gnu)
9785      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9786	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9787	wlarc=
9788      else
9789	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791      fi
9792      ;;
9793
9794    solaris*)
9795      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9796	ld_shlibs=no
9797	cat <<_LT_EOF 1>&2
9798
9799*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9800*** create shared libraries on Solaris systems.  Therefore, libtool
9801*** is disabling shared libraries support.  We urge you to upgrade GNU
9802*** binutils to release 2.9.1 or newer.  Another option is to modify
9803*** your PATH or compiler configuration so that the native linker is
9804*** used, and then restart.
9805
9806_LT_EOF
9807      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9808	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9809	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9810      else
9811	ld_shlibs=no
9812      fi
9813      ;;
9814
9815    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9816      case `$LD -v 2>&1` in
9817        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9818	ld_shlibs=no
9819	cat <<_LT_EOF 1>&2
9820
9821*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9822*** reliably create shared libraries on SCO systems.  Therefore, libtool
9823*** is disabling shared libraries support.  We urge you to upgrade GNU
9824*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9825*** your PATH or compiler configuration so that the native linker is
9826*** used, and then restart.
9827
9828_LT_EOF
9829	;;
9830	*)
9831	  # For security reasons, it is highly recommended that you always
9832	  # use absolute paths for naming shared libraries, and exclude the
9833	  # DT_RUNPATH tag from executables and libraries.  But doing so
9834	  # requires that you compile everything twice, which is a pain.
9835	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9836	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9837	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9838	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9839	  else
9840	    ld_shlibs=no
9841	  fi
9842	;;
9843      esac
9844      ;;
9845
9846    sunos4*)
9847      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9848      wlarc=
9849      hardcode_direct=yes
9850      hardcode_shlibpath_var=no
9851      ;;
9852
9853    *)
9854      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9855	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9857      else
9858	ld_shlibs=no
9859      fi
9860      ;;
9861    esac
9862
9863    if test "$ld_shlibs" = no; then
9864      runpath_var=
9865      hardcode_libdir_flag_spec=
9866      export_dynamic_flag_spec=
9867      whole_archive_flag_spec=
9868    fi
9869  else
9870    # PORTME fill in a description of your system's linker (not GNU ld)
9871    case $host_os in
9872    aix3*)
9873      allow_undefined_flag=unsupported
9874      always_export_symbols=yes
9875      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'
9876      # Note: this linker hardcodes the directories in LIBPATH if there
9877      # are no directories specified by -L.
9878      hardcode_minus_L=yes
9879      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9880	# Neither direct hardcoding nor static linking is supported with a
9881	# broken collect2.
9882	hardcode_direct=unsupported
9883      fi
9884      ;;
9885
9886    aix[4-9]*)
9887      if test "$host_cpu" = ia64; then
9888	# On IA64, the linker does run time linking by default, so we don't
9889	# have to do anything special.
9890	aix_use_runtimelinking=no
9891	exp_sym_flag='-Bexport'
9892	no_entry_flag=""
9893      else
9894	# If we're using GNU nm, then we don't want the "-C" option.
9895	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9896	# Also, AIX nm treats weak defined symbols like other global
9897	# defined symbols, whereas GNU nm marks them as "W".
9898	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9899	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9900	else
9901	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9902	fi
9903	aix_use_runtimelinking=no
9904
9905	# Test if we are trying to use run time linking or normal
9906	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9907	# need to do runtime linking.
9908	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9909	  for ld_flag in $LDFLAGS; do
9910	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9911	    aix_use_runtimelinking=yes
9912	    break
9913	  fi
9914	  done
9915	  ;;
9916	esac
9917
9918	exp_sym_flag='-bexport'
9919	no_entry_flag='-bnoentry'
9920      fi
9921
9922      # When large executables or shared objects are built, AIX ld can
9923      # have problems creating the table of contents.  If linking a library
9924      # or program results in "error TOC overflow" add -mminimal-toc to
9925      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9926      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9927
9928      archive_cmds=''
9929      hardcode_direct=yes
9930      hardcode_direct_absolute=yes
9931      hardcode_libdir_separator=':'
9932      link_all_deplibs=yes
9933      file_list_spec='${wl}-f,'
9934
9935      if test "$GCC" = yes; then
9936	case $host_os in aix4.[012]|aix4.[012].*)
9937	# We only want to do this on AIX 4.2 and lower, the check
9938	# below for broken collect2 doesn't work under 4.3+
9939	  collect2name=`${CC} -print-prog-name=collect2`
9940	  if test -f "$collect2name" &&
9941	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9942	  then
9943	  # We have reworked collect2
9944	  :
9945	  else
9946	  # We have old collect2
9947	  hardcode_direct=unsupported
9948	  # It fails to find uninstalled libraries when the uninstalled
9949	  # path is not listed in the libpath.  Setting hardcode_minus_L
9950	  # to unsupported forces relinking
9951	  hardcode_minus_L=yes
9952	  hardcode_libdir_flag_spec='-L$libdir'
9953	  hardcode_libdir_separator=
9954	  fi
9955	  ;;
9956	esac
9957	shared_flag='-shared'
9958	if test "$aix_use_runtimelinking" = yes; then
9959	  shared_flag="$shared_flag "'${wl}-G'
9960	fi
9961	link_all_deplibs=no
9962      else
9963	# not using gcc
9964	if test "$host_cpu" = ia64; then
9965	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9966	# chokes on -Wl,-G. The following line is correct:
9967	  shared_flag='-G'
9968	else
9969	  if test "$aix_use_runtimelinking" = yes; then
9970	    shared_flag='${wl}-G'
9971	  else
9972	    shared_flag='${wl}-bM:SRE'
9973	  fi
9974	fi
9975      fi
9976
9977      export_dynamic_flag_spec='${wl}-bexpall'
9978      # It seems that -bexpall does not export symbols beginning with
9979      # underscore (_), so it is better to generate a list of symbols to export.
9980      always_export_symbols=yes
9981      if test "$aix_use_runtimelinking" = yes; then
9982	# Warning - without using the other runtime loading flags (-brtl),
9983	# -berok will link without error, but may produce a broken library.
9984	allow_undefined_flag='-berok'
9985        # Determine the default libpath from the value encoded in an
9986        # empty executable.
9987        if test "${lt_cv_aix_libpath+set}" = set; then
9988  aix_libpath=$lt_cv_aix_libpath
9989else
9990  if ${lt_cv_aix_libpath_+:} false; then :
9991  $as_echo_n "(cached) " >&6
9992else
9993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9994/* end confdefs.h.  */
9995
9996int
9997main ()
9998{
9999
10000  ;
10001  return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005
10006  lt_aix_libpath_sed='
10007      /Import File Strings/,/^$/ {
10008	  /^0/ {
10009	      s/^0  *\([^ ]*\) *$/\1/
10010	      p
10011	  }
10012      }'
10013  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10014  # Check for a 64-bit object if we didn't find anything.
10015  if test -z "$lt_cv_aix_libpath_"; then
10016    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10017  fi
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020    conftest$ac_exeext conftest.$ac_ext
10021  if test -z "$lt_cv_aix_libpath_"; then
10022    lt_cv_aix_libpath_="/usr/lib:/lib"
10023  fi
10024
10025fi
10026
10027  aix_libpath=$lt_cv_aix_libpath_
10028fi
10029
10030        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10031        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10032      else
10033	if test "$host_cpu" = ia64; then
10034	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10035	  allow_undefined_flag="-z nodefs"
10036	  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"
10037	else
10038	 # Determine the default libpath from the value encoded in an
10039	 # empty executable.
10040	 if test "${lt_cv_aix_libpath+set}" = set; then
10041  aix_libpath=$lt_cv_aix_libpath
10042else
10043  if ${lt_cv_aix_libpath_+:} false; then :
10044  $as_echo_n "(cached) " >&6
10045else
10046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047/* end confdefs.h.  */
10048
10049int
10050main ()
10051{
10052
10053  ;
10054  return 0;
10055}
10056_ACEOF
10057if ac_fn_c_try_link "$LINENO"; then :
10058
10059  lt_aix_libpath_sed='
10060      /Import File Strings/,/^$/ {
10061	  /^0/ {
10062	      s/^0  *\([^ ]*\) *$/\1/
10063	      p
10064	  }
10065      }'
10066  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10067  # Check for a 64-bit object if we didn't find anything.
10068  if test -z "$lt_cv_aix_libpath_"; then
10069    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10070  fi
10071fi
10072rm -f core conftest.err conftest.$ac_objext \
10073    conftest$ac_exeext conftest.$ac_ext
10074  if test -z "$lt_cv_aix_libpath_"; then
10075    lt_cv_aix_libpath_="/usr/lib:/lib"
10076  fi
10077
10078fi
10079
10080  aix_libpath=$lt_cv_aix_libpath_
10081fi
10082
10083	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10084	  # Warning - without using the other run time loading flags,
10085	  # -berok will link without error, but may produce a broken library.
10086	  no_undefined_flag=' ${wl}-bernotok'
10087	  allow_undefined_flag=' ${wl}-berok'
10088	  if test "$with_gnu_ld" = yes; then
10089	    # We only use this code for GNU lds that support --whole-archive.
10090	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10091	  else
10092	    # Exported symbols can be pulled into shared objects from archives
10093	    whole_archive_flag_spec='$convenience'
10094	  fi
10095	  archive_cmds_need_lc=yes
10096	  # This is similar to how AIX traditionally builds its shared libraries.
10097	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10098	fi
10099      fi
10100      ;;
10101
10102    amigaos*)
10103      case $host_cpu in
10104      powerpc)
10105            # see comment about AmigaOS4 .so support
10106            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10107            archive_expsym_cmds=''
10108        ;;
10109      m68k)
10110            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)'
10111            hardcode_libdir_flag_spec='-L$libdir'
10112            hardcode_minus_L=yes
10113        ;;
10114      esac
10115      ;;
10116
10117    bsdi[45]*)
10118      export_dynamic_flag_spec=-rdynamic
10119      ;;
10120
10121    cygwin* | mingw* | pw32* | cegcc*)
10122      # When not using gcc, we currently assume that we are using
10123      # Microsoft Visual C++.
10124      # hardcode_libdir_flag_spec is actually meaningless, as there is
10125      # no search path for DLLs.
10126      case $cc_basename in
10127      cl*)
10128	# Native MSVC
10129	hardcode_libdir_flag_spec=' '
10130	allow_undefined_flag=unsupported
10131	always_export_symbols=yes
10132	file_list_spec='@'
10133	# Tell ltmain to make .lib files, not .a files.
10134	libext=lib
10135	# Tell ltmain to make .dll files, not .so files.
10136	shrext_cmds=".dll"
10137	# FIXME: Setting linknames here is a bad hack.
10138	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10139	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10141	  else
10142	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10143	  fi~
10144	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10145	  linknames='
10146	# The linker will not automatically build a static lib if we build a DLL.
10147	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10148	enable_shared_with_static_runtimes=yes
10149	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10150	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10151	# Don't use ranlib
10152	old_postinstall_cmds='chmod 644 $oldlib'
10153	postlink_cmds='lt_outputfile="@OUTPUT@"~
10154	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10155	  case $lt_outputfile in
10156	    *.exe|*.EXE) ;;
10157	    *)
10158	      lt_outputfile="$lt_outputfile.exe"
10159	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10160	      ;;
10161	  esac~
10162	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10163	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10164	    $RM "$lt_outputfile.manifest";
10165	  fi'
10166	;;
10167      *)
10168	# Assume MSVC wrapper
10169	hardcode_libdir_flag_spec=' '
10170	allow_undefined_flag=unsupported
10171	# Tell ltmain to make .lib files, not .a files.
10172	libext=lib
10173	# Tell ltmain to make .dll files, not .so files.
10174	shrext_cmds=".dll"
10175	# FIXME: Setting linknames here is a bad hack.
10176	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10177	# The linker will automatically build a .lib file if we build a DLL.
10178	old_archive_from_new_cmds='true'
10179	# FIXME: Should let the user specify the lib program.
10180	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10181	enable_shared_with_static_runtimes=yes
10182	;;
10183      esac
10184      ;;
10185
10186    darwin* | rhapsody*)
10187
10188
10189  archive_cmds_need_lc=no
10190  hardcode_direct=no
10191  hardcode_automatic=yes
10192  hardcode_shlibpath_var=unsupported
10193  if test "$lt_cv_ld_force_load" = "yes"; then
10194    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\"`'
10195
10196  else
10197    whole_archive_flag_spec=''
10198  fi
10199  link_all_deplibs=yes
10200  allow_undefined_flag="$_lt_dar_allow_undefined"
10201  case $cc_basename in
10202     ifort*) _lt_dar_can_shared=yes ;;
10203     *) _lt_dar_can_shared=$GCC ;;
10204  esac
10205  if test "$_lt_dar_can_shared" = "yes"; then
10206    output_verbose_link_cmd=func_echo_all
10207    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10208    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10209    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}"
10210    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}"
10211
10212  else
10213  ld_shlibs=no
10214  fi
10215
10216      ;;
10217
10218    dgux*)
10219      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220      hardcode_libdir_flag_spec='-L$libdir'
10221      hardcode_shlibpath_var=no
10222      ;;
10223
10224    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10225    # support.  Future versions do this automatically, but an explicit c++rt0.o
10226    # does not break anything, and helps significantly (at the cost of a little
10227    # extra space).
10228    freebsd2.2*)
10229      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10230      hardcode_libdir_flag_spec='-R$libdir'
10231      hardcode_direct=yes
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10236    freebsd2.*)
10237      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238      hardcode_direct=yes
10239      hardcode_minus_L=yes
10240      hardcode_shlibpath_var=no
10241      ;;
10242
10243    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10244    freebsd* | dragonfly*)
10245      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10246      hardcode_libdir_flag_spec='-R$libdir'
10247      hardcode_direct=yes
10248      hardcode_shlibpath_var=no
10249      ;;
10250
10251    hpux9*)
10252      if test "$GCC" = yes; then
10253	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10254      else
10255	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10256      fi
10257      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10258      hardcode_libdir_separator=:
10259      hardcode_direct=yes
10260
10261      # hardcode_minus_L: Not really in the search PATH,
10262      # but as the default location of the library.
10263      hardcode_minus_L=yes
10264      export_dynamic_flag_spec='${wl}-E'
10265      ;;
10266
10267    hpux10*)
10268      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10269	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10270      else
10271	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10272      fi
10273      if test "$with_gnu_ld" = no; then
10274	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10275	hardcode_libdir_separator=:
10276	hardcode_direct=yes
10277	hardcode_direct_absolute=yes
10278	export_dynamic_flag_spec='${wl}-E'
10279	# hardcode_minus_L: Not really in the search PATH,
10280	# but as the default location of the library.
10281	hardcode_minus_L=yes
10282      fi
10283      ;;
10284
10285    hpux11*)
10286      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10287	case $host_cpu in
10288	hppa*64*)
10289	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10290	  ;;
10291	ia64*)
10292	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10293	  ;;
10294	*)
10295	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10296	  ;;
10297	esac
10298      else
10299	case $host_cpu in
10300	hppa*64*)
10301	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10302	  ;;
10303	ia64*)
10304	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10305	  ;;
10306	*)
10307
10308	  # Older versions of the 11.00 compiler do not understand -b yet
10309	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10310	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10311$as_echo_n "checking if $CC understands -b... " >&6; }
10312if ${lt_cv_prog_compiler__b+:} false; then :
10313  $as_echo_n "(cached) " >&6
10314else
10315  lt_cv_prog_compiler__b=no
10316   save_LDFLAGS="$LDFLAGS"
10317   LDFLAGS="$LDFLAGS -b"
10318   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10319   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10320     # The linker can only warn and ignore the option if not recognized
10321     # So say no if there are warnings
10322     if test -s conftest.err; then
10323       # Append any errors to the config.log.
10324       cat conftest.err 1>&5
10325       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10326       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10327       if diff conftest.exp conftest.er2 >/dev/null; then
10328         lt_cv_prog_compiler__b=yes
10329       fi
10330     else
10331       lt_cv_prog_compiler__b=yes
10332     fi
10333   fi
10334   $RM -r conftest*
10335   LDFLAGS="$save_LDFLAGS"
10336
10337fi
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10339$as_echo "$lt_cv_prog_compiler__b" >&6; }
10340
10341if test x"$lt_cv_prog_compiler__b" = xyes; then
10342    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10343else
10344    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10345fi
10346
10347	  ;;
10348	esac
10349      fi
10350      if test "$with_gnu_ld" = no; then
10351	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10352	hardcode_libdir_separator=:
10353
10354	case $host_cpu in
10355	hppa*64*|ia64*)
10356	  hardcode_direct=no
10357	  hardcode_shlibpath_var=no
10358	  ;;
10359	*)
10360	  hardcode_direct=yes
10361	  hardcode_direct_absolute=yes
10362	  export_dynamic_flag_spec='${wl}-E'
10363
10364	  # hardcode_minus_L: Not really in the search PATH,
10365	  # but as the default location of the library.
10366	  hardcode_minus_L=yes
10367	  ;;
10368	esac
10369      fi
10370      ;;
10371
10372    irix5* | irix6* | nonstopux*)
10373      if test "$GCC" = yes; then
10374	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'
10375	# Try to use the -exported_symbol ld option, if it does not
10376	# work, assume that -exports_file does not work either and
10377	# implicitly export all symbols.
10378	# This should be the same for all languages, so no per-tag cache variable.
10379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10380$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10381if ${lt_cv_irix_exported_symbol+:} false; then :
10382  $as_echo_n "(cached) " >&6
10383else
10384  save_LDFLAGS="$LDFLAGS"
10385	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10386	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int foo (void) { return 0; }
10389_ACEOF
10390if ac_fn_c_try_link "$LINENO"; then :
10391  lt_cv_irix_exported_symbol=yes
10392else
10393  lt_cv_irix_exported_symbol=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext \
10396    conftest$ac_exeext conftest.$ac_ext
10397           LDFLAGS="$save_LDFLAGS"
10398fi
10399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10400$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10401	if test "$lt_cv_irix_exported_symbol" = yes; then
10402          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'
10403	fi
10404      else
10405	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'
10406	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'
10407      fi
10408      archive_cmds_need_lc='no'
10409      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10410      hardcode_libdir_separator=:
10411      inherit_rpath=yes
10412      link_all_deplibs=yes
10413      ;;
10414
10415    netbsd* | netbsdelf*-gnu)
10416      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10417	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10418      else
10419	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10420      fi
10421      hardcode_libdir_flag_spec='-R$libdir'
10422      hardcode_direct=yes
10423      hardcode_shlibpath_var=no
10424      ;;
10425
10426    newsos6)
10427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428      hardcode_direct=yes
10429      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10430      hardcode_libdir_separator=:
10431      hardcode_shlibpath_var=no
10432      ;;
10433
10434    *nto* | *qnx*)
10435      ;;
10436
10437    openbsd*)
10438      if test -f /usr/libexec/ld.so; then
10439	hardcode_direct=yes
10440	hardcode_shlibpath_var=no
10441	hardcode_direct_absolute=yes
10442	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10443	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10444	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10445	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10446	  export_dynamic_flag_spec='${wl}-E'
10447	else
10448	  case $host_os in
10449	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10450	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10451	     hardcode_libdir_flag_spec='-R$libdir'
10452	     ;;
10453	   *)
10454	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10455	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10456	     ;;
10457	  esac
10458	fi
10459      else
10460	ld_shlibs=no
10461      fi
10462      ;;
10463
10464    os2*)
10465      hardcode_libdir_flag_spec='-L$libdir'
10466      hardcode_minus_L=yes
10467      allow_undefined_flag=unsupported
10468      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10469      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10470      ;;
10471
10472    osf3*)
10473      if test "$GCC" = yes; then
10474	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10475	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'
10476      else
10477	allow_undefined_flag=' -expect_unresolved \*'
10478	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'
10479      fi
10480      archive_cmds_need_lc='no'
10481      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10482      hardcode_libdir_separator=:
10483      ;;
10484
10485    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10486      if test "$GCC" = yes; then
10487	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10488	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'
10489	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10490      else
10491	allow_undefined_flag=' -expect_unresolved \*'
10492	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'
10493	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~
10494	$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'
10495
10496	# Both c and cxx compiler support -rpath directly
10497	hardcode_libdir_flag_spec='-rpath $libdir'
10498      fi
10499      archive_cmds_need_lc='no'
10500      hardcode_libdir_separator=:
10501      ;;
10502
10503    solaris*)
10504      no_undefined_flag=' -z defs'
10505      if test "$GCC" = yes; then
10506	wlarc='${wl}'
10507	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10508	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10509	  $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'
10510      else
10511	case `$CC -V 2>&1` in
10512	*"Compilers 5.0"*)
10513	  wlarc=''
10514	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10515	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10516	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10517	  ;;
10518	*)
10519	  wlarc='${wl}'
10520	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10521	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10522	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10523	  ;;
10524	esac
10525      fi
10526      hardcode_libdir_flag_spec='-R$libdir'
10527      hardcode_shlibpath_var=no
10528      case $host_os in
10529      solaris2.[0-5] | solaris2.[0-5].*) ;;
10530      *)
10531	# The compiler driver will combine and reorder linker options,
10532	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10533	# but is careful enough not to reorder.
10534	# Supported since Solaris 2.6 (maybe 2.5.1?)
10535	if test "$GCC" = yes; then
10536	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10537	else
10538	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10539	fi
10540	;;
10541      esac
10542      link_all_deplibs=yes
10543      ;;
10544
10545    sunos4*)
10546      if test "x$host_vendor" = xsequent; then
10547	# Use $CC to link under sequent, because it throws in some extra .o
10548	# files that make .init and .fini sections work.
10549	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10550      else
10551	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10552      fi
10553      hardcode_libdir_flag_spec='-L$libdir'
10554      hardcode_direct=yes
10555      hardcode_minus_L=yes
10556      hardcode_shlibpath_var=no
10557      ;;
10558
10559    sysv4)
10560      case $host_vendor in
10561	sni)
10562	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10563	  hardcode_direct=yes # is this really true???
10564	;;
10565	siemens)
10566	  ## LD is ld it makes a PLAMLIB
10567	  ## CC just makes a GrossModule.
10568	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10569	  reload_cmds='$CC -r -o $output$reload_objs'
10570	  hardcode_direct=no
10571        ;;
10572	motorola)
10573	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10575	;;
10576      esac
10577      runpath_var='LD_RUN_PATH'
10578      hardcode_shlibpath_var=no
10579      ;;
10580
10581    sysv4.3*)
10582      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583      hardcode_shlibpath_var=no
10584      export_dynamic_flag_spec='-Bexport'
10585      ;;
10586
10587    sysv4*MP*)
10588      if test -d /usr/nec; then
10589	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10590	hardcode_shlibpath_var=no
10591	runpath_var=LD_RUN_PATH
10592	hardcode_runpath_var=yes
10593	ld_shlibs=yes
10594      fi
10595      ;;
10596
10597    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10598      no_undefined_flag='${wl}-z,text'
10599      archive_cmds_need_lc=no
10600      hardcode_shlibpath_var=no
10601      runpath_var='LD_RUN_PATH'
10602
10603      if test "$GCC" = yes; then
10604	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606      else
10607	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609      fi
10610      ;;
10611
10612    sysv5* | sco3.2v5* | sco5v6*)
10613      # Note: We can NOT use -z defs as we might desire, because we do not
10614      # link with -lc, and that would cause any symbols used from libc to
10615      # always be unresolved, which means just about no library would
10616      # ever link correctly.  If we're not using GNU ld we use -z text
10617      # though, which does catch some bad symbols but isn't as heavy-handed
10618      # as -z defs.
10619      no_undefined_flag='${wl}-z,text'
10620      allow_undefined_flag='${wl}-z,nodefs'
10621      archive_cmds_need_lc=no
10622      hardcode_shlibpath_var=no
10623      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10624      hardcode_libdir_separator=':'
10625      link_all_deplibs=yes
10626      export_dynamic_flag_spec='${wl}-Bexport'
10627      runpath_var='LD_RUN_PATH'
10628
10629      if test "$GCC" = yes; then
10630	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10631	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10632      else
10633	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10634	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10635      fi
10636      ;;
10637
10638    uts4*)
10639      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10640      hardcode_libdir_flag_spec='-L$libdir'
10641      hardcode_shlibpath_var=no
10642      ;;
10643
10644    *)
10645      ld_shlibs=no
10646      ;;
10647    esac
10648
10649    if test x$host_vendor = xsni; then
10650      case $host in
10651      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10652	export_dynamic_flag_spec='${wl}-Blargedynsym'
10653	;;
10654      esac
10655    fi
10656  fi
10657
10658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10659$as_echo "$ld_shlibs" >&6; }
10660test "$ld_shlibs" = no && can_build_shared=no
10661
10662with_gnu_ld=$with_gnu_ld
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678#
10679# Do we need to explicitly link libc?
10680#
10681case "x$archive_cmds_need_lc" in
10682x|xyes)
10683  # Assume -lc should be added
10684  archive_cmds_need_lc=yes
10685
10686  if test "$enable_shared" = yes && test "$GCC" = yes; then
10687    case $archive_cmds in
10688    *'~'*)
10689      # FIXME: we may have to deal with multi-command sequences.
10690      ;;
10691    '$CC '*)
10692      # Test whether the compiler implicitly links with -lc since on some
10693      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10694      # to ld, don't add -lc before -lgcc.
10695      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10696$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10697if ${lt_cv_archive_cmds_need_lc+:} false; then :
10698  $as_echo_n "(cached) " >&6
10699else
10700  $RM conftest*
10701	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10702
10703	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10704  (eval $ac_compile) 2>&5
10705  ac_status=$?
10706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10707  test $ac_status = 0; } 2>conftest.err; then
10708	  soname=conftest
10709	  lib=conftest
10710	  libobjs=conftest.$ac_objext
10711	  deplibs=
10712	  wl=$lt_prog_compiler_wl
10713	  pic_flag=$lt_prog_compiler_pic
10714	  compiler_flags=-v
10715	  linker_flags=-v
10716	  verstring=
10717	  output_objdir=.
10718	  libname=conftest
10719	  lt_save_allow_undefined_flag=$allow_undefined_flag
10720	  allow_undefined_flag=
10721	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10722  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10723  ac_status=$?
10724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725  test $ac_status = 0; }
10726	  then
10727	    lt_cv_archive_cmds_need_lc=no
10728	  else
10729	    lt_cv_archive_cmds_need_lc=yes
10730	  fi
10731	  allow_undefined_flag=$lt_save_allow_undefined_flag
10732	else
10733	  cat conftest.err 1>&5
10734	fi
10735	$RM conftest*
10736
10737fi
10738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10739$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10740      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10741      ;;
10742    esac
10743  fi
10744  ;;
10745esac
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10899$as_echo_n "checking dynamic linker characteristics... " >&6; }
10900
10901if test "$GCC" = yes; then
10902  case $host_os in
10903    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10904    *) lt_awk_arg="/^libraries:/" ;;
10905  esac
10906  case $host_os in
10907    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10908    *) lt_sed_strip_eq="s,=/,/,g" ;;
10909  esac
10910  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10911  case $lt_search_path_spec in
10912  *\;*)
10913    # if the path contains ";" then we assume it to be the separator
10914    # otherwise default to the standard path separator (i.e. ":") - it is
10915    # assumed that no part of a normal pathname contains ";" but that should
10916    # okay in the real world where ";" in dirpaths is itself problematic.
10917    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10918    ;;
10919  *)
10920    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10921    ;;
10922  esac
10923  # Ok, now we have the path, separated by spaces, we can step through it
10924  # and add multilib dir if necessary.
10925  lt_tmp_lt_search_path_spec=
10926  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10927  for lt_sys_path in $lt_search_path_spec; do
10928    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10929      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10930    else
10931      test -d "$lt_sys_path" && \
10932	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10933    fi
10934  done
10935  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10936BEGIN {RS=" "; FS="/|\n";} {
10937  lt_foo="";
10938  lt_count=0;
10939  for (lt_i = NF; lt_i > 0; lt_i--) {
10940    if ($lt_i != "" && $lt_i != ".") {
10941      if ($lt_i == "..") {
10942        lt_count++;
10943      } else {
10944        if (lt_count == 0) {
10945          lt_foo="/" $lt_i lt_foo;
10946        } else {
10947          lt_count--;
10948        }
10949      }
10950    }
10951  }
10952  if (lt_foo != "") { lt_freq[lt_foo]++; }
10953  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10954}'`
10955  # AWK program above erroneously prepends '/' to C:/dos/paths
10956  # for these hosts.
10957  case $host_os in
10958    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10959      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10960  esac
10961  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10962else
10963  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10964fi
10965library_names_spec=
10966libname_spec='lib$name'
10967soname_spec=
10968shrext_cmds=".so"
10969postinstall_cmds=
10970postuninstall_cmds=
10971finish_cmds=
10972finish_eval=
10973shlibpath_var=
10974shlibpath_overrides_runpath=unknown
10975version_type=none
10976dynamic_linker="$host_os ld.so"
10977sys_lib_dlsearch_path_spec="/lib /usr/lib"
10978need_lib_prefix=unknown
10979hardcode_into_libs=no
10980
10981# when you set need_version to no, make sure it does not cause -set_version
10982# flags to be left without arguments
10983need_version=unknown
10984
10985case $host_os in
10986aix3*)
10987  version_type=linux # correct to gnu/linux during the next big refactor
10988  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10989  shlibpath_var=LIBPATH
10990
10991  # AIX 3 has no versioning support, so we append a major version to the name.
10992  soname_spec='${libname}${release}${shared_ext}$major'
10993  ;;
10994
10995aix[4-9]*)
10996  version_type=linux # correct to gnu/linux during the next big refactor
10997  need_lib_prefix=no
10998  need_version=no
10999  hardcode_into_libs=yes
11000  if test "$host_cpu" = ia64; then
11001    # AIX 5 supports IA64
11002    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11003    shlibpath_var=LD_LIBRARY_PATH
11004  else
11005    # With GCC up to 2.95.x, collect2 would create an import file
11006    # for dependence libraries.  The import file would start with
11007    # the line `#! .'.  This would cause the generated library to
11008    # depend on `.', always an invalid library.  This was fixed in
11009    # development snapshots of GCC prior to 3.0.
11010    case $host_os in
11011      aix4 | aix4.[01] | aix4.[01].*)
11012      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11013	   echo ' yes '
11014	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11015	:
11016      else
11017	can_build_shared=no
11018      fi
11019      ;;
11020    esac
11021    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11022    # soname into executable. Probably we can add versioning support to
11023    # collect2, so additional links can be useful in future.
11024    if test "$aix_use_runtimelinking" = yes; then
11025      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11026      # instead of lib<name>.a to let people know that these are not
11027      # typical AIX shared libraries.
11028      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029    else
11030      # We preserve .a as extension for shared libraries through AIX4.2
11031      # and later when we are not doing run time linking.
11032      library_names_spec='${libname}${release}.a $libname.a'
11033      soname_spec='${libname}${release}${shared_ext}$major'
11034    fi
11035    shlibpath_var=LIBPATH
11036  fi
11037  ;;
11038
11039amigaos*)
11040  case $host_cpu in
11041  powerpc)
11042    # Since July 2007 AmigaOS4 officially supports .so libraries.
11043    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11044    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045    ;;
11046  m68k)
11047    library_names_spec='$libname.ixlibrary $libname.a'
11048    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11049    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11050    ;;
11051  esac
11052  ;;
11053
11054beos*)
11055  library_names_spec='${libname}${shared_ext}'
11056  dynamic_linker="$host_os ld.so"
11057  shlibpath_var=LIBRARY_PATH
11058  ;;
11059
11060bsdi[45]*)
11061  version_type=linux # correct to gnu/linux during the next big refactor
11062  need_version=no
11063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11064  soname_spec='${libname}${release}${shared_ext}$major'
11065  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11066  shlibpath_var=LD_LIBRARY_PATH
11067  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11068  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11069  # the default ld.so.conf also contains /usr/contrib/lib and
11070  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11071  # libtool to hard-code these into programs
11072  ;;
11073
11074cygwin* | mingw* | pw32* | cegcc*)
11075  version_type=windows
11076  shrext_cmds=".dll"
11077  need_version=no
11078  need_lib_prefix=no
11079
11080  case $GCC,$cc_basename in
11081  yes,*)
11082    # gcc
11083    library_names_spec='$libname.dll.a'
11084    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11085    postinstall_cmds='base_file=`basename \${file}`~
11086      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11087      dldir=$destdir/`dirname \$dlpath`~
11088      test -d \$dldir || mkdir -p \$dldir~
11089      $install_prog $dir/$dlname \$dldir/$dlname~
11090      chmod a+x \$dldir/$dlname~
11091      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11092        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11093      fi'
11094    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11095      dlpath=$dir/\$dldll~
11096       $RM \$dlpath'
11097    shlibpath_overrides_runpath=yes
11098
11099    case $host_os in
11100    cygwin*)
11101      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11102      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11103
11104      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11105      ;;
11106    mingw* | cegcc*)
11107      # MinGW DLLs use traditional 'lib' prefix
11108      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11109      ;;
11110    pw32*)
11111      # pw32 DLLs use 'pw' prefix rather than 'lib'
11112      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11113      ;;
11114    esac
11115    dynamic_linker='Win32 ld.exe'
11116    ;;
11117
11118  *,cl*)
11119    # Native MSVC
11120    libname_spec='$name'
11121    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11122    library_names_spec='${libname}.dll.lib'
11123
11124    case $build_os in
11125    mingw*)
11126      sys_lib_search_path_spec=
11127      lt_save_ifs=$IFS
11128      IFS=';'
11129      for lt_path in $LIB
11130      do
11131        IFS=$lt_save_ifs
11132        # Let DOS variable expansion print the short 8.3 style file name.
11133        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11134        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11135      done
11136      IFS=$lt_save_ifs
11137      # Convert to MSYS style.
11138      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11139      ;;
11140    cygwin*)
11141      # Convert to unix form, then to dos form, then back to unix form
11142      # but this time dos style (no spaces!) so that the unix form looks
11143      # like /cygdrive/c/PROGRA~1:/cygdr...
11144      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11145      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11146      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11147      ;;
11148    *)
11149      sys_lib_search_path_spec="$LIB"
11150      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11151        # It is most probably a Windows format PATH.
11152        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11153      else
11154        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11155      fi
11156      # FIXME: find the short name or the path components, as spaces are
11157      # common. (e.g. "Program Files" -> "PROGRA~1")
11158      ;;
11159    esac
11160
11161    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11162    postinstall_cmds='base_file=`basename \${file}`~
11163      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11164      dldir=$destdir/`dirname \$dlpath`~
11165      test -d \$dldir || mkdir -p \$dldir~
11166      $install_prog $dir/$dlname \$dldir/$dlname'
11167    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11168      dlpath=$dir/\$dldll~
11169       $RM \$dlpath'
11170    shlibpath_overrides_runpath=yes
11171    dynamic_linker='Win32 link.exe'
11172    ;;
11173
11174  *)
11175    # Assume MSVC wrapper
11176    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11177    dynamic_linker='Win32 ld.exe'
11178    ;;
11179  esac
11180  # FIXME: first we should search . and the directory the executable is in
11181  shlibpath_var=PATH
11182  ;;
11183
11184darwin* | rhapsody*)
11185  dynamic_linker="$host_os dyld"
11186  version_type=darwin
11187  need_lib_prefix=no
11188  need_version=no
11189  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11190  soname_spec='${libname}${release}${major}$shared_ext'
11191  shlibpath_overrides_runpath=yes
11192  shlibpath_var=DYLD_LIBRARY_PATH
11193  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11194
11195  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11196  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11197  ;;
11198
11199dgux*)
11200  version_type=linux # correct to gnu/linux during the next big refactor
11201  need_lib_prefix=no
11202  need_version=no
11203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11204  soname_spec='${libname}${release}${shared_ext}$major'
11205  shlibpath_var=LD_LIBRARY_PATH
11206  ;;
11207
11208freebsd* | dragonfly*)
11209  # DragonFly does not have aout.  When/if they implement a new
11210  # versioning mechanism, adjust this.
11211  if test -x /usr/bin/objformat; then
11212    objformat=`/usr/bin/objformat`
11213  else
11214    case $host_os in
11215    freebsd[23].*) objformat=aout ;;
11216    *) objformat=elf ;;
11217    esac
11218  fi
11219  version_type=freebsd-$objformat
11220  case $version_type in
11221    freebsd-elf*)
11222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223      need_version=no
11224      need_lib_prefix=no
11225      ;;
11226    freebsd-*)
11227      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11228      need_version=yes
11229      ;;
11230  esac
11231  shlibpath_var=LD_LIBRARY_PATH
11232  case $host_os in
11233  freebsd2.*)
11234    shlibpath_overrides_runpath=yes
11235    ;;
11236  freebsd3.[01]* | freebsdelf3.[01]*)
11237    shlibpath_overrides_runpath=yes
11238    hardcode_into_libs=yes
11239    ;;
11240  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11241  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11242    shlibpath_overrides_runpath=no
11243    hardcode_into_libs=yes
11244    ;;
11245  *) # from 4.6 on, and DragonFly
11246    shlibpath_overrides_runpath=yes
11247    hardcode_into_libs=yes
11248    ;;
11249  esac
11250  ;;
11251
11252haiku*)
11253  version_type=linux # correct to gnu/linux during the next big refactor
11254  need_lib_prefix=no
11255  need_version=no
11256  dynamic_linker="$host_os runtime_loader"
11257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11258  soname_spec='${libname}${release}${shared_ext}$major'
11259  shlibpath_var=LIBRARY_PATH
11260  shlibpath_overrides_runpath=yes
11261  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11262  hardcode_into_libs=yes
11263  ;;
11264
11265hpux9* | hpux10* | hpux11*)
11266  # Give a soname corresponding to the major version so that dld.sl refuses to
11267  # link against other versions.
11268  version_type=sunos
11269  need_lib_prefix=no
11270  need_version=no
11271  case $host_cpu in
11272  ia64*)
11273    shrext_cmds='.so'
11274    hardcode_into_libs=yes
11275    dynamic_linker="$host_os dld.so"
11276    shlibpath_var=LD_LIBRARY_PATH
11277    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11278    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279    soname_spec='${libname}${release}${shared_ext}$major'
11280    if test "X$HPUX_IA64_MODE" = X32; then
11281      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11282    else
11283      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11284    fi
11285    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11286    ;;
11287  hppa*64*)
11288    shrext_cmds='.sl'
11289    hardcode_into_libs=yes
11290    dynamic_linker="$host_os dld.sl"
11291    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11292    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11294    soname_spec='${libname}${release}${shared_ext}$major'
11295    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11296    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11297    ;;
11298  *)
11299    shrext_cmds='.sl'
11300    dynamic_linker="$host_os dld.sl"
11301    shlibpath_var=SHLIB_PATH
11302    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304    soname_spec='${libname}${release}${shared_ext}$major'
11305    ;;
11306  esac
11307  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11308  postinstall_cmds='chmod 555 $lib'
11309  # or fails outright, so override atomically:
11310  install_override_mode=555
11311  ;;
11312
11313interix[3-9]*)
11314  version_type=linux # correct to gnu/linux during the next big refactor
11315  need_lib_prefix=no
11316  need_version=no
11317  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11318  soname_spec='${libname}${release}${shared_ext}$major'
11319  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11320  shlibpath_var=LD_LIBRARY_PATH
11321  shlibpath_overrides_runpath=no
11322  hardcode_into_libs=yes
11323  ;;
11324
11325irix5* | irix6* | nonstopux*)
11326  case $host_os in
11327    nonstopux*) version_type=nonstopux ;;
11328    *)
11329	if test "$lt_cv_prog_gnu_ld" = yes; then
11330		version_type=linux # correct to gnu/linux during the next big refactor
11331	else
11332		version_type=irix
11333	fi ;;
11334  esac
11335  need_lib_prefix=no
11336  need_version=no
11337  soname_spec='${libname}${release}${shared_ext}$major'
11338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11339  case $host_os in
11340  irix5* | nonstopux*)
11341    libsuff= shlibsuff=
11342    ;;
11343  *)
11344    case $LD in # libtool.m4 will add one of these switches to LD
11345    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11346      libsuff= shlibsuff= libmagic=32-bit;;
11347    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11348      libsuff=32 shlibsuff=N32 libmagic=N32;;
11349    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11350      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11351    *) libsuff= shlibsuff= libmagic=never-match;;
11352    esac
11353    ;;
11354  esac
11355  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11356  shlibpath_overrides_runpath=no
11357  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11358  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11359  hardcode_into_libs=yes
11360  ;;
11361
11362# No shared lib support for Linux oldld, aout, or coff.
11363linux*oldld* | linux*aout* | linux*coff*)
11364  dynamic_linker=no
11365  ;;
11366
11367# This must be glibc/ELF.
11368linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11369  version_type=linux # correct to gnu/linux during the next big refactor
11370  need_lib_prefix=no
11371  need_version=no
11372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373  soname_spec='${libname}${release}${shared_ext}$major'
11374  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11375  shlibpath_var=LD_LIBRARY_PATH
11376  shlibpath_overrides_runpath=no
11377
11378  # Some binutils ld are patched to set DT_RUNPATH
11379  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  lt_cv_shlibpath_overrides_runpath=no
11383    save_LDFLAGS=$LDFLAGS
11384    save_libdir=$libdir
11385    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11386	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11387    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388/* end confdefs.h.  */
11389
11390int
11391main ()
11392{
11393
11394  ;
11395  return 0;
11396}
11397_ACEOF
11398if ac_fn_c_try_link "$LINENO"; then :
11399  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11400  lt_cv_shlibpath_overrides_runpath=yes
11401fi
11402fi
11403rm -f core conftest.err conftest.$ac_objext \
11404    conftest$ac_exeext conftest.$ac_ext
11405    LDFLAGS=$save_LDFLAGS
11406    libdir=$save_libdir
11407
11408fi
11409
11410  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11411
11412  # This implies no fast_install, which is unacceptable.
11413  # Some rework will be needed to allow for fast_install
11414  # before this can be enabled.
11415  hardcode_into_libs=yes
11416
11417  # Append ld.so.conf contents to the search path
11418  if test -f /etc/ld.so.conf; then
11419    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' ' '`
11420    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11421  fi
11422
11423  # We used to test for /lib/ld.so.1 and disable shared libraries on
11424  # powerpc, because MkLinux only supported shared libraries with the
11425  # GNU dynamic linker.  Since this was broken with cross compilers,
11426  # most powerpc-linux boxes support dynamic linking these days and
11427  # people can always --disable-shared, the test was removed, and we
11428  # assume the GNU/Linux dynamic linker is in use.
11429  dynamic_linker='GNU/Linux ld.so'
11430  ;;
11431
11432netbsdelf*-gnu)
11433  version_type=linux
11434  need_lib_prefix=no
11435  need_version=no
11436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11437  soname_spec='${libname}${release}${shared_ext}$major'
11438  shlibpath_var=LD_LIBRARY_PATH
11439  shlibpath_overrides_runpath=no
11440  hardcode_into_libs=yes
11441  dynamic_linker='NetBSD ld.elf_so'
11442  ;;
11443
11444netbsd*)
11445  version_type=sunos
11446  need_lib_prefix=no
11447  need_version=no
11448  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11450    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11451    dynamic_linker='NetBSD (a.out) ld.so'
11452  else
11453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11454    soname_spec='${libname}${release}${shared_ext}$major'
11455    dynamic_linker='NetBSD ld.elf_so'
11456  fi
11457  shlibpath_var=LD_LIBRARY_PATH
11458  shlibpath_overrides_runpath=yes
11459  hardcode_into_libs=yes
11460  ;;
11461
11462newsos6)
11463  version_type=linux # correct to gnu/linux during the next big refactor
11464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465  shlibpath_var=LD_LIBRARY_PATH
11466  shlibpath_overrides_runpath=yes
11467  ;;
11468
11469*nto* | *qnx*)
11470  version_type=qnx
11471  need_lib_prefix=no
11472  need_version=no
11473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11474  soname_spec='${libname}${release}${shared_ext}$major'
11475  shlibpath_var=LD_LIBRARY_PATH
11476  shlibpath_overrides_runpath=no
11477  hardcode_into_libs=yes
11478  dynamic_linker='ldqnx.so'
11479  ;;
11480
11481openbsd*)
11482  version_type=sunos
11483  sys_lib_dlsearch_path_spec="/usr/lib"
11484  need_lib_prefix=no
11485  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11486  case $host_os in
11487    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11488    *)				need_version=no  ;;
11489  esac
11490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11491  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11492  shlibpath_var=LD_LIBRARY_PATH
11493  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11494    case $host_os in
11495      openbsd2.[89] | openbsd2.[89].*)
11496	shlibpath_overrides_runpath=no
11497	;;
11498      *)
11499	shlibpath_overrides_runpath=yes
11500	;;
11501      esac
11502  else
11503    shlibpath_overrides_runpath=yes
11504  fi
11505  ;;
11506
11507os2*)
11508  libname_spec='$name'
11509  shrext_cmds=".dll"
11510  need_lib_prefix=no
11511  library_names_spec='$libname${shared_ext} $libname.a'
11512  dynamic_linker='OS/2 ld.exe'
11513  shlibpath_var=LIBPATH
11514  ;;
11515
11516osf3* | osf4* | osf5*)
11517  version_type=osf
11518  need_lib_prefix=no
11519  need_version=no
11520  soname_spec='${libname}${release}${shared_ext}$major'
11521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522  shlibpath_var=LD_LIBRARY_PATH
11523  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11524  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11525  ;;
11526
11527rdos*)
11528  dynamic_linker=no
11529  ;;
11530
11531solaris*)
11532  version_type=linux # correct to gnu/linux during the next big refactor
11533  need_lib_prefix=no
11534  need_version=no
11535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536  soname_spec='${libname}${release}${shared_ext}$major'
11537  shlibpath_var=LD_LIBRARY_PATH
11538  shlibpath_overrides_runpath=yes
11539  hardcode_into_libs=yes
11540  # ldd complains unless libraries are executable
11541  postinstall_cmds='chmod +x $lib'
11542  ;;
11543
11544sunos4*)
11545  version_type=sunos
11546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11547  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11548  shlibpath_var=LD_LIBRARY_PATH
11549  shlibpath_overrides_runpath=yes
11550  if test "$with_gnu_ld" = yes; then
11551    need_lib_prefix=no
11552  fi
11553  need_version=yes
11554  ;;
11555
11556sysv4 | sysv4.3*)
11557  version_type=linux # correct to gnu/linux during the next big refactor
11558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559  soname_spec='${libname}${release}${shared_ext}$major'
11560  shlibpath_var=LD_LIBRARY_PATH
11561  case $host_vendor in
11562    sni)
11563      shlibpath_overrides_runpath=no
11564      need_lib_prefix=no
11565      runpath_var=LD_RUN_PATH
11566      ;;
11567    siemens)
11568      need_lib_prefix=no
11569      ;;
11570    motorola)
11571      need_lib_prefix=no
11572      need_version=no
11573      shlibpath_overrides_runpath=no
11574      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11575      ;;
11576  esac
11577  ;;
11578
11579sysv4*MP*)
11580  if test -d /usr/nec ;then
11581    version_type=linux # correct to gnu/linux during the next big refactor
11582    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11583    soname_spec='$libname${shared_ext}.$major'
11584    shlibpath_var=LD_LIBRARY_PATH
11585  fi
11586  ;;
11587
11588sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11589  version_type=freebsd-elf
11590  need_lib_prefix=no
11591  need_version=no
11592  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11593  soname_spec='${libname}${release}${shared_ext}$major'
11594  shlibpath_var=LD_LIBRARY_PATH
11595  shlibpath_overrides_runpath=yes
11596  hardcode_into_libs=yes
11597  if test "$with_gnu_ld" = yes; then
11598    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11599  else
11600    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11601    case $host_os in
11602      sco3.2v5*)
11603        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11604	;;
11605    esac
11606  fi
11607  sys_lib_dlsearch_path_spec='/usr/lib'
11608  ;;
11609
11610tpf*)
11611  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11612  version_type=linux # correct to gnu/linux during the next big refactor
11613  need_lib_prefix=no
11614  need_version=no
11615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616  shlibpath_var=LD_LIBRARY_PATH
11617  shlibpath_overrides_runpath=no
11618  hardcode_into_libs=yes
11619  ;;
11620
11621uts4*)
11622  version_type=linux # correct to gnu/linux during the next big refactor
11623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11624  soname_spec='${libname}${release}${shared_ext}$major'
11625  shlibpath_var=LD_LIBRARY_PATH
11626  ;;
11627
11628*)
11629  dynamic_linker=no
11630  ;;
11631esac
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11633$as_echo "$dynamic_linker" >&6; }
11634test "$dynamic_linker" = no && can_build_shared=no
11635
11636variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11637if test "$GCC" = yes; then
11638  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11639fi
11640
11641if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11642  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11643fi
11644if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11645  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11646fi
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11740$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11741hardcode_action=
11742if test -n "$hardcode_libdir_flag_spec" ||
11743   test -n "$runpath_var" ||
11744   test "X$hardcode_automatic" = "Xyes" ; then
11745
11746  # We can hardcode non-existent directories.
11747  if test "$hardcode_direct" != no &&
11748     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11749     # have to relink, otherwise we might link with an installed library
11750     # when we should be linking with a yet-to-be-installed one
11751     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11752     test "$hardcode_minus_L" != no; then
11753    # Linking always hardcodes the temporary library directory.
11754    hardcode_action=relink
11755  else
11756    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11757    hardcode_action=immediate
11758  fi
11759else
11760  # We cannot hardcode anything, or else we can only hardcode existing
11761  # directories.
11762  hardcode_action=unsupported
11763fi
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11765$as_echo "$hardcode_action" >&6; }
11766
11767if test "$hardcode_action" = relink ||
11768   test "$inherit_rpath" = yes; then
11769  # Fast installation is not supported
11770  enable_fast_install=no
11771elif test "$shlibpath_overrides_runpath" = yes ||
11772     test "$enable_shared" = no; then
11773  # Fast installation is not necessary
11774  enable_fast_install=needless
11775fi
11776
11777
11778
11779
11780
11781
11782  if test "x$enable_dlopen" != xyes; then
11783  enable_dlopen=unknown
11784  enable_dlopen_self=unknown
11785  enable_dlopen_self_static=unknown
11786else
11787  lt_cv_dlopen=no
11788  lt_cv_dlopen_libs=
11789
11790  case $host_os in
11791  beos*)
11792    lt_cv_dlopen="load_add_on"
11793    lt_cv_dlopen_libs=
11794    lt_cv_dlopen_self=yes
11795    ;;
11796
11797  mingw* | pw32* | cegcc*)
11798    lt_cv_dlopen="LoadLibrary"
11799    lt_cv_dlopen_libs=
11800    ;;
11801
11802  cygwin*)
11803    lt_cv_dlopen="dlopen"
11804    lt_cv_dlopen_libs=
11805    ;;
11806
11807  darwin*)
11808  # if libdl is installed we need to link against it
11809    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11810$as_echo_n "checking for dlopen in -ldl... " >&6; }
11811if ${ac_cv_lib_dl_dlopen+:} false; then :
11812  $as_echo_n "(cached) " >&6
11813else
11814  ac_check_lib_save_LIBS=$LIBS
11815LIBS="-ldl  $LIBS"
11816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817/* end confdefs.h.  */
11818
11819/* Override any GCC internal prototype to avoid an error.
11820   Use char because int might match the return type of a GCC
11821   builtin and then its argument prototype would still apply.  */
11822#ifdef __cplusplus
11823extern "C"
11824#endif
11825char dlopen ();
11826int
11827main ()
11828{
11829return dlopen ();
11830  ;
11831  return 0;
11832}
11833_ACEOF
11834if ac_fn_c_try_link "$LINENO"; then :
11835  ac_cv_lib_dl_dlopen=yes
11836else
11837  ac_cv_lib_dl_dlopen=no
11838fi
11839rm -f core conftest.err conftest.$ac_objext \
11840    conftest$ac_exeext conftest.$ac_ext
11841LIBS=$ac_check_lib_save_LIBS
11842fi
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11844$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11845if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11846  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11847else
11848
11849    lt_cv_dlopen="dyld"
11850    lt_cv_dlopen_libs=
11851    lt_cv_dlopen_self=yes
11852
11853fi
11854
11855    ;;
11856
11857  *)
11858    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11859if test "x$ac_cv_func_shl_load" = xyes; then :
11860  lt_cv_dlopen="shl_load"
11861else
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11863$as_echo_n "checking for shl_load in -ldld... " >&6; }
11864if ${ac_cv_lib_dld_shl_load+:} false; then :
11865  $as_echo_n "(cached) " >&6
11866else
11867  ac_check_lib_save_LIBS=$LIBS
11868LIBS="-ldld  $LIBS"
11869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870/* end confdefs.h.  */
11871
11872/* Override any GCC internal prototype to avoid an error.
11873   Use char because int might match the return type of a GCC
11874   builtin and then its argument prototype would still apply.  */
11875#ifdef __cplusplus
11876extern "C"
11877#endif
11878char shl_load ();
11879int
11880main ()
11881{
11882return shl_load ();
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_link "$LINENO"; then :
11888  ac_cv_lib_dld_shl_load=yes
11889else
11890  ac_cv_lib_dld_shl_load=no
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894LIBS=$ac_check_lib_save_LIBS
11895fi
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11897$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11898if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11899  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11900else
11901  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11902if test "x$ac_cv_func_dlopen" = xyes; then :
11903  lt_cv_dlopen="dlopen"
11904else
11905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11906$as_echo_n "checking for dlopen in -ldl... " >&6; }
11907if ${ac_cv_lib_dl_dlopen+:} false; then :
11908  $as_echo_n "(cached) " >&6
11909else
11910  ac_check_lib_save_LIBS=$LIBS
11911LIBS="-ldl  $LIBS"
11912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913/* end confdefs.h.  */
11914
11915/* Override any GCC internal prototype to avoid an error.
11916   Use char because int might match the return type of a GCC
11917   builtin and then its argument prototype would still apply.  */
11918#ifdef __cplusplus
11919extern "C"
11920#endif
11921char dlopen ();
11922int
11923main ()
11924{
11925return dlopen ();
11926  ;
11927  return 0;
11928}
11929_ACEOF
11930if ac_fn_c_try_link "$LINENO"; then :
11931  ac_cv_lib_dl_dlopen=yes
11932else
11933  ac_cv_lib_dl_dlopen=no
11934fi
11935rm -f core conftest.err conftest.$ac_objext \
11936    conftest$ac_exeext conftest.$ac_ext
11937LIBS=$ac_check_lib_save_LIBS
11938fi
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11940$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11941if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11942  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11943else
11944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11945$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11946if ${ac_cv_lib_svld_dlopen+:} false; then :
11947  $as_echo_n "(cached) " >&6
11948else
11949  ac_check_lib_save_LIBS=$LIBS
11950LIBS="-lsvld  $LIBS"
11951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952/* end confdefs.h.  */
11953
11954/* Override any GCC internal prototype to avoid an error.
11955   Use char because int might match the return type of a GCC
11956   builtin and then its argument prototype would still apply.  */
11957#ifdef __cplusplus
11958extern "C"
11959#endif
11960char dlopen ();
11961int
11962main ()
11963{
11964return dlopen ();
11965  ;
11966  return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_link "$LINENO"; then :
11970  ac_cv_lib_svld_dlopen=yes
11971else
11972  ac_cv_lib_svld_dlopen=no
11973fi
11974rm -f core conftest.err conftest.$ac_objext \
11975    conftest$ac_exeext conftest.$ac_ext
11976LIBS=$ac_check_lib_save_LIBS
11977fi
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11979$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11980if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11981  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11982else
11983  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11984$as_echo_n "checking for dld_link in -ldld... " >&6; }
11985if ${ac_cv_lib_dld_dld_link+:} false; then :
11986  $as_echo_n "(cached) " >&6
11987else
11988  ac_check_lib_save_LIBS=$LIBS
11989LIBS="-ldld  $LIBS"
11990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991/* end confdefs.h.  */
11992
11993/* Override any GCC internal prototype to avoid an error.
11994   Use char because int might match the return type of a GCC
11995   builtin and then its argument prototype would still apply.  */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999char dld_link ();
12000int
12001main ()
12002{
12003return dld_link ();
12004  ;
12005  return 0;
12006}
12007_ACEOF
12008if ac_fn_c_try_link "$LINENO"; then :
12009  ac_cv_lib_dld_dld_link=yes
12010else
12011  ac_cv_lib_dld_dld_link=no
12012fi
12013rm -f core conftest.err conftest.$ac_objext \
12014    conftest$ac_exeext conftest.$ac_ext
12015LIBS=$ac_check_lib_save_LIBS
12016fi
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12018$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12019if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12020  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12021fi
12022
12023
12024fi
12025
12026
12027fi
12028
12029
12030fi
12031
12032
12033fi
12034
12035
12036fi
12037
12038    ;;
12039  esac
12040
12041  if test "x$lt_cv_dlopen" != xno; then
12042    enable_dlopen=yes
12043  else
12044    enable_dlopen=no
12045  fi
12046
12047  case $lt_cv_dlopen in
12048  dlopen)
12049    save_CPPFLAGS="$CPPFLAGS"
12050    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12051
12052    save_LDFLAGS="$LDFLAGS"
12053    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12054
12055    save_LIBS="$LIBS"
12056    LIBS="$lt_cv_dlopen_libs $LIBS"
12057
12058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12059$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12060if ${lt_cv_dlopen_self+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063  	  if test "$cross_compiling" = yes; then :
12064  lt_cv_dlopen_self=cross
12065else
12066  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12067  lt_status=$lt_dlunknown
12068  cat > conftest.$ac_ext <<_LT_EOF
12069#line $LINENO "configure"
12070#include "confdefs.h"
12071
12072#if HAVE_DLFCN_H
12073#include <dlfcn.h>
12074#endif
12075
12076#include <stdio.h>
12077
12078#ifdef RTLD_GLOBAL
12079#  define LT_DLGLOBAL		RTLD_GLOBAL
12080#else
12081#  ifdef DL_GLOBAL
12082#    define LT_DLGLOBAL		DL_GLOBAL
12083#  else
12084#    define LT_DLGLOBAL		0
12085#  endif
12086#endif
12087
12088/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12089   find out it does not work in some platform. */
12090#ifndef LT_DLLAZY_OR_NOW
12091#  ifdef RTLD_LAZY
12092#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12093#  else
12094#    ifdef DL_LAZY
12095#      define LT_DLLAZY_OR_NOW		DL_LAZY
12096#    else
12097#      ifdef RTLD_NOW
12098#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12099#      else
12100#        ifdef DL_NOW
12101#          define LT_DLLAZY_OR_NOW	DL_NOW
12102#        else
12103#          define LT_DLLAZY_OR_NOW	0
12104#        endif
12105#      endif
12106#    endif
12107#  endif
12108#endif
12109
12110/* When -fvisbility=hidden is used, assume the code has been annotated
12111   correspondingly for the symbols needed.  */
12112#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12113int fnord () __attribute__((visibility("default")));
12114#endif
12115
12116int fnord () { return 42; }
12117int main ()
12118{
12119  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12120  int status = $lt_dlunknown;
12121
12122  if (self)
12123    {
12124      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12125      else
12126        {
12127	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12128          else puts (dlerror ());
12129	}
12130      /* dlclose (self); */
12131    }
12132  else
12133    puts (dlerror ());
12134
12135  return status;
12136}
12137_LT_EOF
12138  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12139  (eval $ac_link) 2>&5
12140  ac_status=$?
12141  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12142  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12143    (./conftest; exit; ) >&5 2>/dev/null
12144    lt_status=$?
12145    case x$lt_status in
12146      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12147      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12148      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12149    esac
12150  else :
12151    # compilation failed
12152    lt_cv_dlopen_self=no
12153  fi
12154fi
12155rm -fr conftest*
12156
12157
12158fi
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12160$as_echo "$lt_cv_dlopen_self" >&6; }
12161
12162    if test "x$lt_cv_dlopen_self" = xyes; then
12163      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12164      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12165$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12166if ${lt_cv_dlopen_self_static+:} false; then :
12167  $as_echo_n "(cached) " >&6
12168else
12169  	  if test "$cross_compiling" = yes; then :
12170  lt_cv_dlopen_self_static=cross
12171else
12172  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12173  lt_status=$lt_dlunknown
12174  cat > conftest.$ac_ext <<_LT_EOF
12175#line $LINENO "configure"
12176#include "confdefs.h"
12177
12178#if HAVE_DLFCN_H
12179#include <dlfcn.h>
12180#endif
12181
12182#include <stdio.h>
12183
12184#ifdef RTLD_GLOBAL
12185#  define LT_DLGLOBAL		RTLD_GLOBAL
12186#else
12187#  ifdef DL_GLOBAL
12188#    define LT_DLGLOBAL		DL_GLOBAL
12189#  else
12190#    define LT_DLGLOBAL		0
12191#  endif
12192#endif
12193
12194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12195   find out it does not work in some platform. */
12196#ifndef LT_DLLAZY_OR_NOW
12197#  ifdef RTLD_LAZY
12198#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12199#  else
12200#    ifdef DL_LAZY
12201#      define LT_DLLAZY_OR_NOW		DL_LAZY
12202#    else
12203#      ifdef RTLD_NOW
12204#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12205#      else
12206#        ifdef DL_NOW
12207#          define LT_DLLAZY_OR_NOW	DL_NOW
12208#        else
12209#          define LT_DLLAZY_OR_NOW	0
12210#        endif
12211#      endif
12212#    endif
12213#  endif
12214#endif
12215
12216/* When -fvisbility=hidden is used, assume the code has been annotated
12217   correspondingly for the symbols needed.  */
12218#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12219int fnord () __attribute__((visibility("default")));
12220#endif
12221
12222int fnord () { return 42; }
12223int main ()
12224{
12225  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12226  int status = $lt_dlunknown;
12227
12228  if (self)
12229    {
12230      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12231      else
12232        {
12233	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12234          else puts (dlerror ());
12235	}
12236      /* dlclose (self); */
12237    }
12238  else
12239    puts (dlerror ());
12240
12241  return status;
12242}
12243_LT_EOF
12244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12245  (eval $ac_link) 2>&5
12246  ac_status=$?
12247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12249    (./conftest; exit; ) >&5 2>/dev/null
12250    lt_status=$?
12251    case x$lt_status in
12252      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12253      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12254      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12255    esac
12256  else :
12257    # compilation failed
12258    lt_cv_dlopen_self_static=no
12259  fi
12260fi
12261rm -fr conftest*
12262
12263
12264fi
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12266$as_echo "$lt_cv_dlopen_self_static" >&6; }
12267    fi
12268
12269    CPPFLAGS="$save_CPPFLAGS"
12270    LDFLAGS="$save_LDFLAGS"
12271    LIBS="$save_LIBS"
12272    ;;
12273  esac
12274
12275  case $lt_cv_dlopen_self in
12276  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12277  *) enable_dlopen_self=unknown ;;
12278  esac
12279
12280  case $lt_cv_dlopen_self_static in
12281  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12282  *) enable_dlopen_self_static=unknown ;;
12283  esac
12284fi
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302striplib=
12303old_striplib=
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12305$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12306if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12307  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12308  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310$as_echo "yes" >&6; }
12311else
12312# FIXME - insert some real tests, host_os isn't really good enough
12313  case $host_os in
12314  darwin*)
12315    if test -n "$STRIP" ; then
12316      striplib="$STRIP -x"
12317      old_striplib="$STRIP -S"
12318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319$as_echo "yes" >&6; }
12320    else
12321      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
12323    fi
12324    ;;
12325  *)
12326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12327$as_echo "no" >&6; }
12328    ;;
12329  esac
12330fi
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343  # Report which library types will actually be built
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12345$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12347$as_echo "$can_build_shared" >&6; }
12348
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12350$as_echo_n "checking whether to build shared libraries... " >&6; }
12351  test "$can_build_shared" = "no" && enable_shared=no
12352
12353  # On AIX, shared libraries and static libraries use the same namespace, and
12354  # are all built from PIC.
12355  case $host_os in
12356  aix3*)
12357    test "$enable_shared" = yes && enable_static=no
12358    if test -n "$RANLIB"; then
12359      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12360      postinstall_cmds='$RANLIB $lib'
12361    fi
12362    ;;
12363
12364  aix[4-9]*)
12365    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12366      test "$enable_shared" = yes && enable_static=no
12367    fi
12368    ;;
12369  esac
12370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12371$as_echo "$enable_shared" >&6; }
12372
12373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12374$as_echo_n "checking whether to build static libraries... " >&6; }
12375  # Make sure either enable_shared or enable_static is yes.
12376  test "$enable_shared" = yes || enable_static=yes
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12378$as_echo "$enable_static" >&6; }
12379
12380
12381
12382
12383fi
12384ac_ext=c
12385ac_cpp='$CPP $CPPFLAGS'
12386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12388ac_compiler_gnu=$ac_cv_c_compiler_gnu
12389
12390CC="$lt_save_CC"
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406        ac_config_commands="$ac_config_commands libtool"
12407
12408
12409
12410
12411# Only expand once:
12412
12413
12414
12415# Require xorg-macros minimum of 1.18 - Initial version
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12428$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12429if ${ac_cv_prog_cc_c99+:} false; then :
12430  $as_echo_n "(cached) " >&6
12431else
12432  ac_cv_prog_cc_c99=no
12433ac_save_CC=$CC
12434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12435/* end confdefs.h.  */
12436#include <stdarg.h>
12437#include <stdbool.h>
12438#include <stdlib.h>
12439#include <wchar.h>
12440#include <stdio.h>
12441
12442// Check varargs macros.  These examples are taken from C99 6.10.3.5.
12443#define debug(...) fprintf (stderr, __VA_ARGS__)
12444#define showlist(...) puts (#__VA_ARGS__)
12445#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12446static void
12447test_varargs_macros (void)
12448{
12449  int x = 1234;
12450  int y = 5678;
12451  debug ("Flag");
12452  debug ("X = %d\n", x);
12453  showlist (The first, second, and third items.);
12454  report (x>y, "x is %d but y is %d", x, y);
12455}
12456
12457// Check long long types.
12458#define BIG64 18446744073709551615ull
12459#define BIG32 4294967295ul
12460#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12461#if !BIG_OK
12462  your preprocessor is broken;
12463#endif
12464#if BIG_OK
12465#else
12466  your preprocessor is broken;
12467#endif
12468static long long int bignum = -9223372036854775807LL;
12469static unsigned long long int ubignum = BIG64;
12470
12471struct incomplete_array
12472{
12473  int datasize;
12474  double data[];
12475};
12476
12477struct named_init {
12478  int number;
12479  const wchar_t *name;
12480  double average;
12481};
12482
12483typedef const char *ccp;
12484
12485static inline int
12486test_restrict (ccp restrict text)
12487{
12488  // See if C++-style comments work.
12489  // Iterate through items via the restricted pointer.
12490  // Also check for declarations in for loops.
12491  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12492    continue;
12493  return 0;
12494}
12495
12496// Check varargs and va_copy.
12497static void
12498test_varargs (const char *format, ...)
12499{
12500  va_list args;
12501  va_start (args, format);
12502  va_list args_copy;
12503  va_copy (args_copy, args);
12504
12505  const char *str;
12506  int number;
12507  float fnumber;
12508
12509  while (*format)
12510    {
12511      switch (*format++)
12512	{
12513	case 's': // string
12514	  str = va_arg (args_copy, const char *);
12515	  break;
12516	case 'd': // int
12517	  number = va_arg (args_copy, int);
12518	  break;
12519	case 'f': // float
12520	  fnumber = va_arg (args_copy, double);
12521	  break;
12522	default:
12523	  break;
12524	}
12525    }
12526  va_end (args_copy);
12527  va_end (args);
12528}
12529
12530int
12531main ()
12532{
12533
12534  // Check bool.
12535  _Bool success = false;
12536
12537  // Check restrict.
12538  if (test_restrict ("String literal") == 0)
12539    success = true;
12540  char *restrict newvar = "Another string";
12541
12542  // Check varargs.
12543  test_varargs ("s, d' f .", "string", 65, 34.234);
12544  test_varargs_macros ();
12545
12546  // Check flexible array members.
12547  struct incomplete_array *ia =
12548    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12549  ia->datasize = 10;
12550  for (int i = 0; i < ia->datasize; ++i)
12551    ia->data[i] = i * 1.234;
12552
12553  // Check named initializers.
12554  struct named_init ni = {
12555    .number = 34,
12556    .name = L"Test wide string",
12557    .average = 543.34343,
12558  };
12559
12560  ni.number = 58;
12561
12562  int dynamic_array[ni.number];
12563  dynamic_array[ni.number - 1] = 543;
12564
12565  // work around unused variable warnings
12566  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12567	  || dynamic_array[ni.number - 1] != 543);
12568
12569  ;
12570  return 0;
12571}
12572_ACEOF
12573for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12574do
12575  CC="$ac_save_CC $ac_arg"
12576  if ac_fn_c_try_compile "$LINENO"; then :
12577  ac_cv_prog_cc_c99=$ac_arg
12578fi
12579rm -f core conftest.err conftest.$ac_objext
12580  test "x$ac_cv_prog_cc_c99" != "xno" && break
12581done
12582rm -f conftest.$ac_ext
12583CC=$ac_save_CC
12584
12585fi
12586# AC_CACHE_VAL
12587case "x$ac_cv_prog_cc_c99" in
12588  x)
12589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12590$as_echo "none needed" >&6; } ;;
12591  xno)
12592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12593$as_echo "unsupported" >&6; } ;;
12594  *)
12595    CC="$CC $ac_cv_prog_cc_c99"
12596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12597$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12598esac
12599if test "x$ac_cv_prog_cc_c99" != xno; then :
12600
12601fi
12602
12603
12604
12605
12606
12607
12608ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12609if test "x$ac_cv_have_decl___clang__" = xyes; then :
12610  CLANGCC="yes"
12611else
12612  CLANGCC="no"
12613fi
12614
12615ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12616if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12617  INTELCC="yes"
12618else
12619  INTELCC="no"
12620fi
12621
12622ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12623if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12624  SUNCC="yes"
12625else
12626  SUNCC="no"
12627fi
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12638	if test -n "$ac_tool_prefix"; then
12639  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12640set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642$as_echo_n "checking for $ac_word... " >&6; }
12643if ${ac_cv_path_PKG_CONFIG+:} false; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  case $PKG_CONFIG in
12647  [\\/]* | ?:[\\/]*)
12648  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12649  ;;
12650  *)
12651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12652for as_dir in $PATH
12653do
12654  IFS=$as_save_IFS
12655  test -z "$as_dir" && as_dir=.
12656    for ac_exec_ext in '' $ac_executable_extensions; do
12657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12658    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12660    break 2
12661  fi
12662done
12663  done
12664IFS=$as_save_IFS
12665
12666  ;;
12667esac
12668fi
12669PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12670if test -n "$PKG_CONFIG"; then
12671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12672$as_echo "$PKG_CONFIG" >&6; }
12673else
12674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
12676fi
12677
12678
12679fi
12680if test -z "$ac_cv_path_PKG_CONFIG"; then
12681  ac_pt_PKG_CONFIG=$PKG_CONFIG
12682  # Extract the first word of "pkg-config", so it can be a program name with args.
12683set dummy pkg-config; ac_word=$2
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685$as_echo_n "checking for $ac_word... " >&6; }
12686if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  case $ac_pt_PKG_CONFIG in
12690  [\\/]* | ?:[\\/]*)
12691  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12692  ;;
12693  *)
12694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695for as_dir in $PATH
12696do
12697  IFS=$as_save_IFS
12698  test -z "$as_dir" && as_dir=.
12699    for ac_exec_ext in '' $ac_executable_extensions; do
12700  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12701    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12703    break 2
12704  fi
12705done
12706  done
12707IFS=$as_save_IFS
12708
12709  ;;
12710esac
12711fi
12712ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12713if test -n "$ac_pt_PKG_CONFIG"; then
12714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12715$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12716else
12717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
12719fi
12720
12721  if test "x$ac_pt_PKG_CONFIG" = x; then
12722    PKG_CONFIG=""
12723  else
12724    case $cross_compiling:$ac_tool_warned in
12725yes:)
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12728ac_tool_warned=yes ;;
12729esac
12730    PKG_CONFIG=$ac_pt_PKG_CONFIG
12731  fi
12732else
12733  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12734fi
12735
12736fi
12737if test -n "$PKG_CONFIG"; then
12738	_pkg_min_version=0.9.0
12739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12740$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12741	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12742		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12743$as_echo "yes" >&6; }
12744	else
12745		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747		PKG_CONFIG=""
12748	fi
12749fi
12750
12751
12752
12753
12754
12755# Check whether --enable-selective-werror was given.
12756if test "${enable_selective_werror+set}" = set; then :
12757  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12758else
12759  SELECTIVE_WERROR=yes
12760fi
12761
12762
12763
12764
12765
12766# -v is too short to test reliably with XORG_TESTSET_CFLAG
12767if test "x$SUNCC" = "xyes"; then
12768    BASE_CFLAGS="-v"
12769else
12770    BASE_CFLAGS=""
12771fi
12772
12773# This chunk of warnings were those that existed in the legacy CWARNFLAGS
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787xorg_testset_save_CFLAGS="$CFLAGS"
12788
12789if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12790	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12791	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12792$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12793if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12794  $as_echo_n "(cached) " >&6
12795else
12796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h.  */
12798int i;
12799_ACEOF
12800if ac_fn_c_try_compile "$LINENO"; then :
12801  xorg_cv_cc_flag_unknown_warning_option=yes
12802else
12803  xorg_cv_cc_flag_unknown_warning_option=no
12804fi
12805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806fi
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12808$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12810	CFLAGS="$xorg_testset_save_CFLAGS"
12811fi
12812
12813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12816	fi
12817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12818	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12819$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12820if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12821  $as_echo_n "(cached) " >&6
12822else
12823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824/* end confdefs.h.  */
12825int i;
12826_ACEOF
12827if ac_fn_c_try_compile "$LINENO"; then :
12828  xorg_cv_cc_flag_unused_command_line_argument=yes
12829else
12830  xorg_cv_cc_flag_unused_command_line_argument=no
12831fi
12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833fi
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12835$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12836	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12837	CFLAGS="$xorg_testset_save_CFLAGS"
12838fi
12839
12840found="no"
12841
12842	if test $found = "no" ; then
12843		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12844			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12845		fi
12846
12847		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12848			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12849		fi
12850
12851		CFLAGS="$CFLAGS -Wall"
12852
12853		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12854$as_echo_n "checking if $CC supports -Wall... " >&6; }
12855		cacheid=xorg_cv_cc_flag__Wall
12856		if eval \${$cacheid+:} false; then :
12857  $as_echo_n "(cached) " >&6
12858else
12859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861int i;
12862int
12863main ()
12864{
12865
12866  ;
12867  return 0;
12868}
12869_ACEOF
12870if ac_fn_c_try_link "$LINENO"; then :
12871  eval $cacheid=yes
12872else
12873  eval $cacheid=no
12874fi
12875rm -f core conftest.err conftest.$ac_objext \
12876    conftest$ac_exeext conftest.$ac_ext
12877fi
12878
12879
12880		CFLAGS="$xorg_testset_save_CFLAGS"
12881
12882		eval supported=\$$cacheid
12883		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12884$as_echo "$supported" >&6; }
12885		if test "$supported" = "yes" ; then
12886			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12887			found="yes"
12888		fi
12889	fi
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905xorg_testset_save_CFLAGS="$CFLAGS"
12906
12907if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12908	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12909	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12910$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12911if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12912  $as_echo_n "(cached) " >&6
12913else
12914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915/* end confdefs.h.  */
12916int i;
12917_ACEOF
12918if ac_fn_c_try_compile "$LINENO"; then :
12919  xorg_cv_cc_flag_unknown_warning_option=yes
12920else
12921  xorg_cv_cc_flag_unknown_warning_option=no
12922fi
12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924fi
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12926$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12928	CFLAGS="$xorg_testset_save_CFLAGS"
12929fi
12930
12931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12934	fi
12935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12936	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12937$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12938if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12939  $as_echo_n "(cached) " >&6
12940else
12941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942/* end confdefs.h.  */
12943int i;
12944_ACEOF
12945if ac_fn_c_try_compile "$LINENO"; then :
12946  xorg_cv_cc_flag_unused_command_line_argument=yes
12947else
12948  xorg_cv_cc_flag_unused_command_line_argument=no
12949fi
12950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951fi
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12953$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12954	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12955	CFLAGS="$xorg_testset_save_CFLAGS"
12956fi
12957
12958found="no"
12959
12960	if test $found = "no" ; then
12961		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12962			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12963		fi
12964
12965		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12966			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12967		fi
12968
12969		CFLAGS="$CFLAGS -Wpointer-arith"
12970
12971		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12972$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12973		cacheid=xorg_cv_cc_flag__Wpointer_arith
12974		if eval \${$cacheid+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12978/* end confdefs.h.  */
12979int i;
12980int
12981main ()
12982{
12983
12984  ;
12985  return 0;
12986}
12987_ACEOF
12988if ac_fn_c_try_link "$LINENO"; then :
12989  eval $cacheid=yes
12990else
12991  eval $cacheid=no
12992fi
12993rm -f core conftest.err conftest.$ac_objext \
12994    conftest$ac_exeext conftest.$ac_ext
12995fi
12996
12997
12998		CFLAGS="$xorg_testset_save_CFLAGS"
12999
13000		eval supported=\$$cacheid
13001		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13002$as_echo "$supported" >&6; }
13003		if test "$supported" = "yes" ; then
13004			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13005			found="yes"
13006		fi
13007	fi
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023xorg_testset_save_CFLAGS="$CFLAGS"
13024
13025if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13026	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13027	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13028$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13029if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13030  $as_echo_n "(cached) " >&6
13031else
13032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h.  */
13034int i;
13035_ACEOF
13036if ac_fn_c_try_compile "$LINENO"; then :
13037  xorg_cv_cc_flag_unknown_warning_option=yes
13038else
13039  xorg_cv_cc_flag_unknown_warning_option=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13044$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13045	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13046	CFLAGS="$xorg_testset_save_CFLAGS"
13047fi
13048
13049if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13050	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13051		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13052	fi
13053	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13054	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13055$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13056if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h.  */
13061int i;
13062_ACEOF
13063if ac_fn_c_try_compile "$LINENO"; then :
13064  xorg_cv_cc_flag_unused_command_line_argument=yes
13065else
13066  xorg_cv_cc_flag_unused_command_line_argument=no
13067fi
13068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13069fi
13070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13071$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13073	CFLAGS="$xorg_testset_save_CFLAGS"
13074fi
13075
13076found="no"
13077
13078	if test $found = "no" ; then
13079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13081		fi
13082
13083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13085		fi
13086
13087		CFLAGS="$CFLAGS -Wmissing-declarations"
13088
13089		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13090$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
13091		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13092		if eval \${$cacheid+:} false; then :
13093  $as_echo_n "(cached) " >&6
13094else
13095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097int i;
13098int
13099main ()
13100{
13101
13102  ;
13103  return 0;
13104}
13105_ACEOF
13106if ac_fn_c_try_link "$LINENO"; then :
13107  eval $cacheid=yes
13108else
13109  eval $cacheid=no
13110fi
13111rm -f core conftest.err conftest.$ac_objext \
13112    conftest$ac_exeext conftest.$ac_ext
13113fi
13114
13115
13116		CFLAGS="$xorg_testset_save_CFLAGS"
13117
13118		eval supported=\$$cacheid
13119		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13120$as_echo "$supported" >&6; }
13121		if test "$supported" = "yes" ; then
13122			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13123			found="yes"
13124		fi
13125	fi
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141xorg_testset_save_CFLAGS="$CFLAGS"
13142
13143if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13144	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13145	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13146$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13147if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13148  $as_echo_n "(cached) " >&6
13149else
13150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151/* end confdefs.h.  */
13152int i;
13153_ACEOF
13154if ac_fn_c_try_compile "$LINENO"; then :
13155  xorg_cv_cc_flag_unknown_warning_option=yes
13156else
13157  xorg_cv_cc_flag_unknown_warning_option=no
13158fi
13159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13162$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13163	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13164	CFLAGS="$xorg_testset_save_CFLAGS"
13165fi
13166
13167if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13168	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13169		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13170	fi
13171	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13172	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13173$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13174if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13175  $as_echo_n "(cached) " >&6
13176else
13177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h.  */
13179int i;
13180_ACEOF
13181if ac_fn_c_try_compile "$LINENO"; then :
13182  xorg_cv_cc_flag_unused_command_line_argument=yes
13183else
13184  xorg_cv_cc_flag_unused_command_line_argument=no
13185fi
13186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187fi
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13189$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13191	CFLAGS="$xorg_testset_save_CFLAGS"
13192fi
13193
13194found="no"
13195
13196	if test $found = "no" ; then
13197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13199		fi
13200
13201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13203		fi
13204
13205		CFLAGS="$CFLAGS -Wformat=2"
13206
13207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13208$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
13209		cacheid=xorg_cv_cc_flag__Wformat_2
13210		if eval \${$cacheid+:} false; then :
13211  $as_echo_n "(cached) " >&6
13212else
13213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214/* end confdefs.h.  */
13215int i;
13216int
13217main ()
13218{
13219
13220  ;
13221  return 0;
13222}
13223_ACEOF
13224if ac_fn_c_try_link "$LINENO"; then :
13225  eval $cacheid=yes
13226else
13227  eval $cacheid=no
13228fi
13229rm -f core conftest.err conftest.$ac_objext \
13230    conftest$ac_exeext conftest.$ac_ext
13231fi
13232
13233
13234		CFLAGS="$xorg_testset_save_CFLAGS"
13235
13236		eval supported=\$$cacheid
13237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13238$as_echo "$supported" >&6; }
13239		if test "$supported" = "yes" ; then
13240			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13241			found="yes"
13242		fi
13243	fi
13244
13245	if test $found = "no" ; then
13246		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13247			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248		fi
13249
13250		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13251			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13252		fi
13253
13254		CFLAGS="$CFLAGS -Wformat"
13255
13256		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13257$as_echo_n "checking if $CC supports -Wformat... " >&6; }
13258		cacheid=xorg_cv_cc_flag__Wformat
13259		if eval \${$cacheid+:} false; then :
13260  $as_echo_n "(cached) " >&6
13261else
13262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263/* end confdefs.h.  */
13264int i;
13265int
13266main ()
13267{
13268
13269  ;
13270  return 0;
13271}
13272_ACEOF
13273if ac_fn_c_try_link "$LINENO"; then :
13274  eval $cacheid=yes
13275else
13276  eval $cacheid=no
13277fi
13278rm -f core conftest.err conftest.$ac_objext \
13279    conftest$ac_exeext conftest.$ac_ext
13280fi
13281
13282
13283		CFLAGS="$xorg_testset_save_CFLAGS"
13284
13285		eval supported=\$$cacheid
13286		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13287$as_echo "$supported" >&6; }
13288		if test "$supported" = "yes" ; then
13289			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13290			found="yes"
13291		fi
13292	fi
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310xorg_testset_save_CFLAGS="$CFLAGS"
13311
13312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320/* end confdefs.h.  */
13321int i;
13322_ACEOF
13323if ac_fn_c_try_compile "$LINENO"; then :
13324  xorg_cv_cc_flag_unknown_warning_option=yes
13325else
13326  xorg_cv_cc_flag_unknown_warning_option=no
13327fi
13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329fi
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13333	CFLAGS="$xorg_testset_save_CFLAGS"
13334fi
13335
13336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13339	fi
13340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13344  $as_echo_n "(cached) " >&6
13345else
13346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347/* end confdefs.h.  */
13348int i;
13349_ACEOF
13350if ac_fn_c_try_compile "$LINENO"; then :
13351  xorg_cv_cc_flag_unused_command_line_argument=yes
13352else
13353  xorg_cv_cc_flag_unused_command_line_argument=no
13354fi
13355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13356fi
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13360	CFLAGS="$xorg_testset_save_CFLAGS"
13361fi
13362
13363found="no"
13364
13365	if test $found = "no" ; then
13366		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13368		fi
13369
13370		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13372		fi
13373
13374		CFLAGS="$CFLAGS -Wstrict-prototypes"
13375
13376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13377$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
13378		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13379		if eval \${$cacheid+:} false; then :
13380  $as_echo_n "(cached) " >&6
13381else
13382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h.  */
13384int i;
13385int
13386main ()
13387{
13388
13389  ;
13390  return 0;
13391}
13392_ACEOF
13393if ac_fn_c_try_link "$LINENO"; then :
13394  eval $cacheid=yes
13395else
13396  eval $cacheid=no
13397fi
13398rm -f core conftest.err conftest.$ac_objext \
13399    conftest$ac_exeext conftest.$ac_ext
13400fi
13401
13402
13403		CFLAGS="$xorg_testset_save_CFLAGS"
13404
13405		eval supported=\$$cacheid
13406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13407$as_echo "$supported" >&6; }
13408		if test "$supported" = "yes" ; then
13409			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13410			found="yes"
13411		fi
13412	fi
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428xorg_testset_save_CFLAGS="$CFLAGS"
13429
13430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13435  $as_echo_n "(cached) " >&6
13436else
13437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438/* end confdefs.h.  */
13439int i;
13440_ACEOF
13441if ac_fn_c_try_compile "$LINENO"; then :
13442  xorg_cv_cc_flag_unknown_warning_option=yes
13443else
13444  xorg_cv_cc_flag_unknown_warning_option=no
13445fi
13446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13447fi
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13451	CFLAGS="$xorg_testset_save_CFLAGS"
13452fi
13453
13454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13457	fi
13458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13462  $as_echo_n "(cached) " >&6
13463else
13464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465/* end confdefs.h.  */
13466int i;
13467_ACEOF
13468if ac_fn_c_try_compile "$LINENO"; then :
13469  xorg_cv_cc_flag_unused_command_line_argument=yes
13470else
13471  xorg_cv_cc_flag_unused_command_line_argument=no
13472fi
13473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474fi
13475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13478	CFLAGS="$xorg_testset_save_CFLAGS"
13479fi
13480
13481found="no"
13482
13483	if test $found = "no" ; then
13484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13486		fi
13487
13488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13490		fi
13491
13492		CFLAGS="$CFLAGS -Wmissing-prototypes"
13493
13494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13495$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
13496		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13497		if eval \${$cacheid+:} false; then :
13498  $as_echo_n "(cached) " >&6
13499else
13500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501/* end confdefs.h.  */
13502int i;
13503int
13504main ()
13505{
13506
13507  ;
13508  return 0;
13509}
13510_ACEOF
13511if ac_fn_c_try_link "$LINENO"; then :
13512  eval $cacheid=yes
13513else
13514  eval $cacheid=no
13515fi
13516rm -f core conftest.err conftest.$ac_objext \
13517    conftest$ac_exeext conftest.$ac_ext
13518fi
13519
13520
13521		CFLAGS="$xorg_testset_save_CFLAGS"
13522
13523		eval supported=\$$cacheid
13524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13525$as_echo "$supported" >&6; }
13526		if test "$supported" = "yes" ; then
13527			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13528			found="yes"
13529		fi
13530	fi
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546xorg_testset_save_CFLAGS="$CFLAGS"
13547
13548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13553  $as_echo_n "(cached) " >&6
13554else
13555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557int i;
13558_ACEOF
13559if ac_fn_c_try_compile "$LINENO"; then :
13560  xorg_cv_cc_flag_unknown_warning_option=yes
13561else
13562  xorg_cv_cc_flag_unknown_warning_option=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565fi
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13569	CFLAGS="$xorg_testset_save_CFLAGS"
13570fi
13571
13572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13575	fi
13576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13580  $as_echo_n "(cached) " >&6
13581else
13582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583/* end confdefs.h.  */
13584int i;
13585_ACEOF
13586if ac_fn_c_try_compile "$LINENO"; then :
13587  xorg_cv_cc_flag_unused_command_line_argument=yes
13588else
13589  xorg_cv_cc_flag_unused_command_line_argument=no
13590fi
13591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592fi
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13596	CFLAGS="$xorg_testset_save_CFLAGS"
13597fi
13598
13599found="no"
13600
13601	if test $found = "no" ; then
13602		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13604		fi
13605
13606		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13608		fi
13609
13610		CFLAGS="$CFLAGS -Wnested-externs"
13611
13612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13613$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13614		cacheid=xorg_cv_cc_flag__Wnested_externs
13615		if eval \${$cacheid+:} false; then :
13616  $as_echo_n "(cached) " >&6
13617else
13618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619/* end confdefs.h.  */
13620int i;
13621int
13622main ()
13623{
13624
13625  ;
13626  return 0;
13627}
13628_ACEOF
13629if ac_fn_c_try_link "$LINENO"; then :
13630  eval $cacheid=yes
13631else
13632  eval $cacheid=no
13633fi
13634rm -f core conftest.err conftest.$ac_objext \
13635    conftest$ac_exeext conftest.$ac_ext
13636fi
13637
13638
13639		CFLAGS="$xorg_testset_save_CFLAGS"
13640
13641		eval supported=\$$cacheid
13642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13643$as_echo "$supported" >&6; }
13644		if test "$supported" = "yes" ; then
13645			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13646			found="yes"
13647		fi
13648	fi
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664xorg_testset_save_CFLAGS="$CFLAGS"
13665
13666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13671  $as_echo_n "(cached) " >&6
13672else
13673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13674/* end confdefs.h.  */
13675int i;
13676_ACEOF
13677if ac_fn_c_try_compile "$LINENO"; then :
13678  xorg_cv_cc_flag_unknown_warning_option=yes
13679else
13680  xorg_cv_cc_flag_unknown_warning_option=no
13681fi
13682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13687	CFLAGS="$xorg_testset_save_CFLAGS"
13688fi
13689
13690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13693	fi
13694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13698  $as_echo_n "(cached) " >&6
13699else
13700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701/* end confdefs.h.  */
13702int i;
13703_ACEOF
13704if ac_fn_c_try_compile "$LINENO"; then :
13705  xorg_cv_cc_flag_unused_command_line_argument=yes
13706else
13707  xorg_cv_cc_flag_unused_command_line_argument=no
13708fi
13709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710fi
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13714	CFLAGS="$xorg_testset_save_CFLAGS"
13715fi
13716
13717found="no"
13718
13719	if test $found = "no" ; then
13720		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13722		fi
13723
13724		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13726		fi
13727
13728		CFLAGS="$CFLAGS -Wbad-function-cast"
13729
13730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13731$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13732		cacheid=xorg_cv_cc_flag__Wbad_function_cast
13733		if eval \${$cacheid+:} false; then :
13734  $as_echo_n "(cached) " >&6
13735else
13736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737/* end confdefs.h.  */
13738int i;
13739int
13740main ()
13741{
13742
13743  ;
13744  return 0;
13745}
13746_ACEOF
13747if ac_fn_c_try_link "$LINENO"; then :
13748  eval $cacheid=yes
13749else
13750  eval $cacheid=no
13751fi
13752rm -f core conftest.err conftest.$ac_objext \
13753    conftest$ac_exeext conftest.$ac_ext
13754fi
13755
13756
13757		CFLAGS="$xorg_testset_save_CFLAGS"
13758
13759		eval supported=\$$cacheid
13760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13761$as_echo "$supported" >&6; }
13762		if test "$supported" = "yes" ; then
13763			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13764			found="yes"
13765		fi
13766	fi
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782xorg_testset_save_CFLAGS="$CFLAGS"
13783
13784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13789  $as_echo_n "(cached) " >&6
13790else
13791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792/* end confdefs.h.  */
13793int i;
13794_ACEOF
13795if ac_fn_c_try_compile "$LINENO"; then :
13796  xorg_cv_cc_flag_unknown_warning_option=yes
13797else
13798  xorg_cv_cc_flag_unknown_warning_option=no
13799fi
13800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801fi
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13805	CFLAGS="$xorg_testset_save_CFLAGS"
13806fi
13807
13808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13811	fi
13812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13816  $as_echo_n "(cached) " >&6
13817else
13818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819/* end confdefs.h.  */
13820int i;
13821_ACEOF
13822if ac_fn_c_try_compile "$LINENO"; then :
13823  xorg_cv_cc_flag_unused_command_line_argument=yes
13824else
13825  xorg_cv_cc_flag_unused_command_line_argument=no
13826fi
13827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13828fi
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13832	CFLAGS="$xorg_testset_save_CFLAGS"
13833fi
13834
13835found="no"
13836
13837	if test $found = "no" ; then
13838		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13840		fi
13841
13842		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13844		fi
13845
13846		CFLAGS="$CFLAGS -Wold-style-definition"
13847
13848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13849$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13850		cacheid=xorg_cv_cc_flag__Wold_style_definition
13851		if eval \${$cacheid+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855/* end confdefs.h.  */
13856int i;
13857int
13858main ()
13859{
13860
13861  ;
13862  return 0;
13863}
13864_ACEOF
13865if ac_fn_c_try_link "$LINENO"; then :
13866  eval $cacheid=yes
13867else
13868  eval $cacheid=no
13869fi
13870rm -f core conftest.err conftest.$ac_objext \
13871    conftest$ac_exeext conftest.$ac_ext
13872fi
13873
13874
13875		CFLAGS="$xorg_testset_save_CFLAGS"
13876
13877		eval supported=\$$cacheid
13878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13879$as_echo "$supported" >&6; }
13880		if test "$supported" = "yes" ; then
13881			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13882			found="yes"
13883		fi
13884	fi
13885
13886	if test $found = "no" ; then
13887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13889		fi
13890
13891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13893		fi
13894
13895		CFLAGS="$CFLAGS -fd"
13896
13897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13898$as_echo_n "checking if $CC supports -fd... " >&6; }
13899		cacheid=xorg_cv_cc_flag__fd
13900		if eval \${$cacheid+:} false; then :
13901  $as_echo_n "(cached) " >&6
13902else
13903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904/* end confdefs.h.  */
13905int i;
13906int
13907main ()
13908{
13909
13910  ;
13911  return 0;
13912}
13913_ACEOF
13914if ac_fn_c_try_link "$LINENO"; then :
13915  eval $cacheid=yes
13916else
13917  eval $cacheid=no
13918fi
13919rm -f core conftest.err conftest.$ac_objext \
13920    conftest$ac_exeext conftest.$ac_ext
13921fi
13922
13923
13924		CFLAGS="$xorg_testset_save_CFLAGS"
13925
13926		eval supported=\$$cacheid
13927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13928$as_echo "$supported" >&6; }
13929		if test "$supported" = "yes" ; then
13930			BASE_CFLAGS="$BASE_CFLAGS -fd"
13931			found="yes"
13932		fi
13933	fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949xorg_testset_save_CFLAGS="$CFLAGS"
13950
13951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13956  $as_echo_n "(cached) " >&6
13957else
13958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959/* end confdefs.h.  */
13960int i;
13961_ACEOF
13962if ac_fn_c_try_compile "$LINENO"; then :
13963  xorg_cv_cc_flag_unknown_warning_option=yes
13964else
13965  xorg_cv_cc_flag_unknown_warning_option=no
13966fi
13967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968fi
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13972	CFLAGS="$xorg_testset_save_CFLAGS"
13973fi
13974
13975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13978	fi
13979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13983  $as_echo_n "(cached) " >&6
13984else
13985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13986/* end confdefs.h.  */
13987int i;
13988_ACEOF
13989if ac_fn_c_try_compile "$LINENO"; then :
13990  xorg_cv_cc_flag_unused_command_line_argument=yes
13991else
13992  xorg_cv_cc_flag_unused_command_line_argument=no
13993fi
13994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13995fi
13996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13999	CFLAGS="$xorg_testset_save_CFLAGS"
14000fi
14001
14002found="no"
14003
14004	if test $found = "no" ; then
14005		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14007		fi
14008
14009		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14011		fi
14012
14013		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14014
14015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14016$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14017		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14018		if eval \${$cacheid+:} false; then :
14019  $as_echo_n "(cached) " >&6
14020else
14021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022/* end confdefs.h.  */
14023int i;
14024int
14025main ()
14026{
14027
14028  ;
14029  return 0;
14030}
14031_ACEOF
14032if ac_fn_c_try_link "$LINENO"; then :
14033  eval $cacheid=yes
14034else
14035  eval $cacheid=no
14036fi
14037rm -f core conftest.err conftest.$ac_objext \
14038    conftest$ac_exeext conftest.$ac_ext
14039fi
14040
14041
14042		CFLAGS="$xorg_testset_save_CFLAGS"
14043
14044		eval supported=\$$cacheid
14045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14046$as_echo "$supported" >&6; }
14047		if test "$supported" = "yes" ; then
14048			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14049			found="yes"
14050		fi
14051	fi
14052
14053
14054
14055
14056
14057# This chunk adds additional warnings that could catch undesired effects.
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071xorg_testset_save_CFLAGS="$CFLAGS"
14072
14073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14078  $as_echo_n "(cached) " >&6
14079else
14080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081/* end confdefs.h.  */
14082int i;
14083_ACEOF
14084if ac_fn_c_try_compile "$LINENO"; then :
14085  xorg_cv_cc_flag_unknown_warning_option=yes
14086else
14087  xorg_cv_cc_flag_unknown_warning_option=no
14088fi
14089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090fi
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14094	CFLAGS="$xorg_testset_save_CFLAGS"
14095fi
14096
14097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14100	fi
14101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14105  $as_echo_n "(cached) " >&6
14106else
14107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108/* end confdefs.h.  */
14109int i;
14110_ACEOF
14111if ac_fn_c_try_compile "$LINENO"; then :
14112  xorg_cv_cc_flag_unused_command_line_argument=yes
14113else
14114  xorg_cv_cc_flag_unused_command_line_argument=no
14115fi
14116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117fi
14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14121	CFLAGS="$xorg_testset_save_CFLAGS"
14122fi
14123
14124found="no"
14125
14126	if test $found = "no" ; then
14127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129		fi
14130
14131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14133		fi
14134
14135		CFLAGS="$CFLAGS -Wunused"
14136
14137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14138$as_echo_n "checking if $CC supports -Wunused... " >&6; }
14139		cacheid=xorg_cv_cc_flag__Wunused
14140		if eval \${$cacheid+:} false; then :
14141  $as_echo_n "(cached) " >&6
14142else
14143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144/* end confdefs.h.  */
14145int i;
14146int
14147main ()
14148{
14149
14150  ;
14151  return 0;
14152}
14153_ACEOF
14154if ac_fn_c_try_link "$LINENO"; then :
14155  eval $cacheid=yes
14156else
14157  eval $cacheid=no
14158fi
14159rm -f core conftest.err conftest.$ac_objext \
14160    conftest$ac_exeext conftest.$ac_ext
14161fi
14162
14163
14164		CFLAGS="$xorg_testset_save_CFLAGS"
14165
14166		eval supported=\$$cacheid
14167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14168$as_echo "$supported" >&6; }
14169		if test "$supported" = "yes" ; then
14170			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14171			found="yes"
14172		fi
14173	fi
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189xorg_testset_save_CFLAGS="$CFLAGS"
14190
14191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14196  $as_echo_n "(cached) " >&6
14197else
14198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199/* end confdefs.h.  */
14200int i;
14201_ACEOF
14202if ac_fn_c_try_compile "$LINENO"; then :
14203  xorg_cv_cc_flag_unknown_warning_option=yes
14204else
14205  xorg_cv_cc_flag_unknown_warning_option=no
14206fi
14207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208fi
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14212	CFLAGS="$xorg_testset_save_CFLAGS"
14213fi
14214
14215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218	fi
14219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14223  $as_echo_n "(cached) " >&6
14224else
14225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226/* end confdefs.h.  */
14227int i;
14228_ACEOF
14229if ac_fn_c_try_compile "$LINENO"; then :
14230  xorg_cv_cc_flag_unused_command_line_argument=yes
14231else
14232  xorg_cv_cc_flag_unused_command_line_argument=no
14233fi
14234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235fi
14236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14239	CFLAGS="$xorg_testset_save_CFLAGS"
14240fi
14241
14242found="no"
14243
14244	if test $found = "no" ; then
14245		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247		fi
14248
14249		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251		fi
14252
14253		CFLAGS="$CFLAGS -Wuninitialized"
14254
14255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14256$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
14257		cacheid=xorg_cv_cc_flag__Wuninitialized
14258		if eval \${$cacheid+:} false; then :
14259  $as_echo_n "(cached) " >&6
14260else
14261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262/* end confdefs.h.  */
14263int i;
14264int
14265main ()
14266{
14267
14268  ;
14269  return 0;
14270}
14271_ACEOF
14272if ac_fn_c_try_link "$LINENO"; then :
14273  eval $cacheid=yes
14274else
14275  eval $cacheid=no
14276fi
14277rm -f core conftest.err conftest.$ac_objext \
14278    conftest$ac_exeext conftest.$ac_ext
14279fi
14280
14281
14282		CFLAGS="$xorg_testset_save_CFLAGS"
14283
14284		eval supported=\$$cacheid
14285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14286$as_echo "$supported" >&6; }
14287		if test "$supported" = "yes" ; then
14288			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14289			found="yes"
14290		fi
14291	fi
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307xorg_testset_save_CFLAGS="$CFLAGS"
14308
14309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14314  $as_echo_n "(cached) " >&6
14315else
14316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317/* end confdefs.h.  */
14318int i;
14319_ACEOF
14320if ac_fn_c_try_compile "$LINENO"; then :
14321  xorg_cv_cc_flag_unknown_warning_option=yes
14322else
14323  xorg_cv_cc_flag_unknown_warning_option=no
14324fi
14325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326fi
14327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14330	CFLAGS="$xorg_testset_save_CFLAGS"
14331fi
14332
14333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14336	fi
14337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14341  $as_echo_n "(cached) " >&6
14342else
14343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344/* end confdefs.h.  */
14345int i;
14346_ACEOF
14347if ac_fn_c_try_compile "$LINENO"; then :
14348  xorg_cv_cc_flag_unused_command_line_argument=yes
14349else
14350  xorg_cv_cc_flag_unused_command_line_argument=no
14351fi
14352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353fi
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14357	CFLAGS="$xorg_testset_save_CFLAGS"
14358fi
14359
14360found="no"
14361
14362	if test $found = "no" ; then
14363		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14365		fi
14366
14367		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14369		fi
14370
14371		CFLAGS="$CFLAGS -Wshadow"
14372
14373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14374$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
14375		cacheid=xorg_cv_cc_flag__Wshadow
14376		if eval \${$cacheid+:} false; then :
14377  $as_echo_n "(cached) " >&6
14378else
14379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380/* end confdefs.h.  */
14381int i;
14382int
14383main ()
14384{
14385
14386  ;
14387  return 0;
14388}
14389_ACEOF
14390if ac_fn_c_try_link "$LINENO"; then :
14391  eval $cacheid=yes
14392else
14393  eval $cacheid=no
14394fi
14395rm -f core conftest.err conftest.$ac_objext \
14396    conftest$ac_exeext conftest.$ac_ext
14397fi
14398
14399
14400		CFLAGS="$xorg_testset_save_CFLAGS"
14401
14402		eval supported=\$$cacheid
14403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14404$as_echo "$supported" >&6; }
14405		if test "$supported" = "yes" ; then
14406			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14432  $as_echo_n "(cached) " >&6
14433else
14434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h.  */
14436int i;
14437_ACEOF
14438if ac_fn_c_try_compile "$LINENO"; then :
14439  xorg_cv_cc_flag_unknown_warning_option=yes
14440else
14441  xorg_cv_cc_flag_unknown_warning_option=no
14442fi
14443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14444fi
14445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14448	CFLAGS="$xorg_testset_save_CFLAGS"
14449fi
14450
14451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14454	fi
14455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14459  $as_echo_n "(cached) " >&6
14460else
14461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462/* end confdefs.h.  */
14463int i;
14464_ACEOF
14465if ac_fn_c_try_compile "$LINENO"; then :
14466  xorg_cv_cc_flag_unused_command_line_argument=yes
14467else
14468  xorg_cv_cc_flag_unused_command_line_argument=no
14469fi
14470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471fi
14472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14475	CFLAGS="$xorg_testset_save_CFLAGS"
14476fi
14477
14478found="no"
14479
14480	if test $found = "no" ; then
14481		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14483		fi
14484
14485		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14487		fi
14488
14489		CFLAGS="$CFLAGS -Wmissing-noreturn"
14490
14491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14492$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
14493		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14494		if eval \${$cacheid+:} false; then :
14495  $as_echo_n "(cached) " >&6
14496else
14497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498/* end confdefs.h.  */
14499int i;
14500int
14501main ()
14502{
14503
14504  ;
14505  return 0;
14506}
14507_ACEOF
14508if ac_fn_c_try_link "$LINENO"; then :
14509  eval $cacheid=yes
14510else
14511  eval $cacheid=no
14512fi
14513rm -f core conftest.err conftest.$ac_objext \
14514    conftest$ac_exeext conftest.$ac_ext
14515fi
14516
14517
14518		CFLAGS="$xorg_testset_save_CFLAGS"
14519
14520		eval supported=\$$cacheid
14521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14522$as_echo "$supported" >&6; }
14523		if test "$supported" = "yes" ; then
14524			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14525			found="yes"
14526		fi
14527	fi
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543xorg_testset_save_CFLAGS="$CFLAGS"
14544
14545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14546	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14547	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14550  $as_echo_n "(cached) " >&6
14551else
14552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553/* end confdefs.h.  */
14554int i;
14555_ACEOF
14556if ac_fn_c_try_compile "$LINENO"; then :
14557  xorg_cv_cc_flag_unknown_warning_option=yes
14558else
14559  xorg_cv_cc_flag_unknown_warning_option=no
14560fi
14561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14562fi
14563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14566	CFLAGS="$xorg_testset_save_CFLAGS"
14567fi
14568
14569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14572	fi
14573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14577  $as_echo_n "(cached) " >&6
14578else
14579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581int i;
14582_ACEOF
14583if ac_fn_c_try_compile "$LINENO"; then :
14584  xorg_cv_cc_flag_unused_command_line_argument=yes
14585else
14586  xorg_cv_cc_flag_unused_command_line_argument=no
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589fi
14590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14592	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14593	CFLAGS="$xorg_testset_save_CFLAGS"
14594fi
14595
14596found="no"
14597
14598	if test $found = "no" ; then
14599		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14600			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14601		fi
14602
14603		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14604			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14605		fi
14606
14607		CFLAGS="$CFLAGS -Wmissing-format-attribute"
14608
14609		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14610$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14611		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14612		if eval \${$cacheid+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616/* end confdefs.h.  */
14617int i;
14618int
14619main ()
14620{
14621
14622  ;
14623  return 0;
14624}
14625_ACEOF
14626if ac_fn_c_try_link "$LINENO"; then :
14627  eval $cacheid=yes
14628else
14629  eval $cacheid=no
14630fi
14631rm -f core conftest.err conftest.$ac_objext \
14632    conftest$ac_exeext conftest.$ac_ext
14633fi
14634
14635
14636		CFLAGS="$xorg_testset_save_CFLAGS"
14637
14638		eval supported=\$$cacheid
14639		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14640$as_echo "$supported" >&6; }
14641		if test "$supported" = "yes" ; then
14642			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14643			found="yes"
14644		fi
14645	fi
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661xorg_testset_save_CFLAGS="$CFLAGS"
14662
14663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14668  $as_echo_n "(cached) " >&6
14669else
14670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672int i;
14673_ACEOF
14674if ac_fn_c_try_compile "$LINENO"; then :
14675  xorg_cv_cc_flag_unknown_warning_option=yes
14676else
14677  xorg_cv_cc_flag_unknown_warning_option=no
14678fi
14679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14680fi
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14683	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14684	CFLAGS="$xorg_testset_save_CFLAGS"
14685fi
14686
14687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14688	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14689		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14690	fi
14691	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14695  $as_echo_n "(cached) " >&6
14696else
14697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698/* end confdefs.h.  */
14699int i;
14700_ACEOF
14701if ac_fn_c_try_compile "$LINENO"; then :
14702  xorg_cv_cc_flag_unused_command_line_argument=yes
14703else
14704  xorg_cv_cc_flag_unused_command_line_argument=no
14705fi
14706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707fi
14708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14711	CFLAGS="$xorg_testset_save_CFLAGS"
14712fi
14713
14714found="no"
14715
14716	if test $found = "no" ; then
14717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14719		fi
14720
14721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14723		fi
14724
14725		CFLAGS="$CFLAGS -Wredundant-decls"
14726
14727		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14728$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14729		cacheid=xorg_cv_cc_flag__Wredundant_decls
14730		if eval \${$cacheid+:} false; then :
14731  $as_echo_n "(cached) " >&6
14732else
14733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734/* end confdefs.h.  */
14735int i;
14736int
14737main ()
14738{
14739
14740  ;
14741  return 0;
14742}
14743_ACEOF
14744if ac_fn_c_try_link "$LINENO"; then :
14745  eval $cacheid=yes
14746else
14747  eval $cacheid=no
14748fi
14749rm -f core conftest.err conftest.$ac_objext \
14750    conftest$ac_exeext conftest.$ac_ext
14751fi
14752
14753
14754		CFLAGS="$xorg_testset_save_CFLAGS"
14755
14756		eval supported=\$$cacheid
14757		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14758$as_echo "$supported" >&6; }
14759		if test "$supported" = "yes" ; then
14760			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14761			found="yes"
14762		fi
14763	fi
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779xorg_testset_save_CFLAGS="$CFLAGS"
14780
14781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14782	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14783	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14786  $as_echo_n "(cached) " >&6
14787else
14788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789/* end confdefs.h.  */
14790int i;
14791_ACEOF
14792if ac_fn_c_try_compile "$LINENO"; then :
14793  xorg_cv_cc_flag_unknown_warning_option=yes
14794else
14795  xorg_cv_cc_flag_unknown_warning_option=no
14796fi
14797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798fi
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14801	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14802	CFLAGS="$xorg_testset_save_CFLAGS"
14803fi
14804
14805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14806	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14807		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14808	fi
14809	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14813  $as_echo_n "(cached) " >&6
14814else
14815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h.  */
14817int i;
14818_ACEOF
14819if ac_fn_c_try_compile "$LINENO"; then :
14820  xorg_cv_cc_flag_unused_command_line_argument=yes
14821else
14822  xorg_cv_cc_flag_unused_command_line_argument=no
14823fi
14824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825fi
14826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14828	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14829	CFLAGS="$xorg_testset_save_CFLAGS"
14830fi
14831
14832found="no"
14833
14834	if test $found = "no" ; then
14835		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14836			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14837		fi
14838
14839		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14840			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14841		fi
14842
14843		CFLAGS="$CFLAGS -Wlogical-op"
14844
14845		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14846$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14847		cacheid=xorg_cv_cc_flag__Wlogical_op
14848		if eval \${$cacheid+:} false; then :
14849  $as_echo_n "(cached) " >&6
14850else
14851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852/* end confdefs.h.  */
14853int i;
14854int
14855main ()
14856{
14857
14858  ;
14859  return 0;
14860}
14861_ACEOF
14862if ac_fn_c_try_link "$LINENO"; then :
14863  eval $cacheid=yes
14864else
14865  eval $cacheid=no
14866fi
14867rm -f core conftest.err conftest.$ac_objext \
14868    conftest$ac_exeext conftest.$ac_ext
14869fi
14870
14871
14872		CFLAGS="$xorg_testset_save_CFLAGS"
14873
14874		eval supported=\$$cacheid
14875		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14876$as_echo "$supported" >&6; }
14877		if test "$supported" = "yes" ; then
14878			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14879			found="yes"
14880		fi
14881	fi
14882
14883
14884
14885# These are currently disabled because they are noisy.  They will be enabled
14886# in the future once the codebase is sufficiently modernized to silence
14887# them.  For now, I don't want them to drown out the other warnings.
14888# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14889# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14890# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14891
14892# Turn some warnings into errors, so we don't accidently get successful builds
14893# when there are problems that should be fixed.
14894
14895if test "x$SELECTIVE_WERROR" = "xyes" ; then
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909xorg_testset_save_CFLAGS="$CFLAGS"
14910
14911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14914$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14915if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14916  $as_echo_n "(cached) " >&6
14917else
14918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919/* end confdefs.h.  */
14920int i;
14921_ACEOF
14922if ac_fn_c_try_compile "$LINENO"; then :
14923  xorg_cv_cc_flag_unknown_warning_option=yes
14924else
14925  xorg_cv_cc_flag_unknown_warning_option=no
14926fi
14927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14928fi
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14930$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14932	CFLAGS="$xorg_testset_save_CFLAGS"
14933fi
14934
14935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14938	fi
14939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14941$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14942if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14943  $as_echo_n "(cached) " >&6
14944else
14945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14946/* end confdefs.h.  */
14947int i;
14948_ACEOF
14949if ac_fn_c_try_compile "$LINENO"; then :
14950  xorg_cv_cc_flag_unused_command_line_argument=yes
14951else
14952  xorg_cv_cc_flag_unused_command_line_argument=no
14953fi
14954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955fi
14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14957$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14959	CFLAGS="$xorg_testset_save_CFLAGS"
14960fi
14961
14962found="no"
14963
14964	if test $found = "no" ; then
14965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14967		fi
14968
14969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14971		fi
14972
14973		CFLAGS="$CFLAGS -Werror=implicit"
14974
14975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14976$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14977		cacheid=xorg_cv_cc_flag__Werror_implicit
14978		if eval \${$cacheid+:} false; then :
14979  $as_echo_n "(cached) " >&6
14980else
14981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14982/* end confdefs.h.  */
14983int i;
14984int
14985main ()
14986{
14987
14988  ;
14989  return 0;
14990}
14991_ACEOF
14992if ac_fn_c_try_link "$LINENO"; then :
14993  eval $cacheid=yes
14994else
14995  eval $cacheid=no
14996fi
14997rm -f core conftest.err conftest.$ac_objext \
14998    conftest$ac_exeext conftest.$ac_ext
14999fi
15000
15001
15002		CFLAGS="$xorg_testset_save_CFLAGS"
15003
15004		eval supported=\$$cacheid
15005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15006$as_echo "$supported" >&6; }
15007		if test "$supported" = "yes" ; then
15008			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15009			found="yes"
15010		fi
15011	fi
15012
15013	if test $found = "no" ; then
15014		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016		fi
15017
15018		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15019			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15020		fi
15021
15022		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15023
15024		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
15025$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15026		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15027		if eval \${$cacheid+:} false; then :
15028  $as_echo_n "(cached) " >&6
15029else
15030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031/* end confdefs.h.  */
15032int i;
15033int
15034main ()
15035{
15036
15037  ;
15038  return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_link "$LINENO"; then :
15042  eval $cacheid=yes
15043else
15044  eval $cacheid=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext \
15047    conftest$ac_exeext conftest.$ac_ext
15048fi
15049
15050
15051		CFLAGS="$xorg_testset_save_CFLAGS"
15052
15053		eval supported=\$$cacheid
15054		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15055$as_echo "$supported" >&6; }
15056		if test "$supported" = "yes" ; then
15057			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15058			found="yes"
15059		fi
15060	fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076xorg_testset_save_CFLAGS="$CFLAGS"
15077
15078if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15079	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15081$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15082if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15083  $as_echo_n "(cached) " >&6
15084else
15085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086/* end confdefs.h.  */
15087int i;
15088_ACEOF
15089if ac_fn_c_try_compile "$LINENO"; then :
15090  xorg_cv_cc_flag_unknown_warning_option=yes
15091else
15092  xorg_cv_cc_flag_unknown_warning_option=no
15093fi
15094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15097$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15099	CFLAGS="$xorg_testset_save_CFLAGS"
15100fi
15101
15102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105	fi
15106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15108$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15109if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15110  $as_echo_n "(cached) " >&6
15111else
15112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113/* end confdefs.h.  */
15114int i;
15115_ACEOF
15116if ac_fn_c_try_compile "$LINENO"; then :
15117  xorg_cv_cc_flag_unused_command_line_argument=yes
15118else
15119  xorg_cv_cc_flag_unused_command_line_argument=no
15120fi
15121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122fi
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15124$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15125	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15126	CFLAGS="$xorg_testset_save_CFLAGS"
15127fi
15128
15129found="no"
15130
15131	if test $found = "no" ; then
15132		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15133			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134		fi
15135
15136		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15137			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15138		fi
15139
15140		CFLAGS="$CFLAGS -Werror=nonnull"
15141
15142		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15143$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
15144		cacheid=xorg_cv_cc_flag__Werror_nonnull
15145		if eval \${$cacheid+:} false; then :
15146  $as_echo_n "(cached) " >&6
15147else
15148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149/* end confdefs.h.  */
15150int i;
15151int
15152main ()
15153{
15154
15155  ;
15156  return 0;
15157}
15158_ACEOF
15159if ac_fn_c_try_link "$LINENO"; then :
15160  eval $cacheid=yes
15161else
15162  eval $cacheid=no
15163fi
15164rm -f core conftest.err conftest.$ac_objext \
15165    conftest$ac_exeext conftest.$ac_ext
15166fi
15167
15168
15169		CFLAGS="$xorg_testset_save_CFLAGS"
15170
15171		eval supported=\$$cacheid
15172		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15173$as_echo "$supported" >&6; }
15174		if test "$supported" = "yes" ; then
15175			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15176			found="yes"
15177		fi
15178	fi
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194xorg_testset_save_CFLAGS="$CFLAGS"
15195
15196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15198	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15199$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15200if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15201  $as_echo_n "(cached) " >&6
15202else
15203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204/* end confdefs.h.  */
15205int i;
15206_ACEOF
15207if ac_fn_c_try_compile "$LINENO"; then :
15208  xorg_cv_cc_flag_unknown_warning_option=yes
15209else
15210  xorg_cv_cc_flag_unknown_warning_option=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213fi
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15215$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15216	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15217	CFLAGS="$xorg_testset_save_CFLAGS"
15218fi
15219
15220if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15221	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15222		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15223	fi
15224	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15226$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15227if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15228  $as_echo_n "(cached) " >&6
15229else
15230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231/* end confdefs.h.  */
15232int i;
15233_ACEOF
15234if ac_fn_c_try_compile "$LINENO"; then :
15235  xorg_cv_cc_flag_unused_command_line_argument=yes
15236else
15237  xorg_cv_cc_flag_unused_command_line_argument=no
15238fi
15239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240fi
15241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15242$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15243	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15244	CFLAGS="$xorg_testset_save_CFLAGS"
15245fi
15246
15247found="no"
15248
15249	if test $found = "no" ; then
15250		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15251			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15252		fi
15253
15254		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15255			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15256		fi
15257
15258		CFLAGS="$CFLAGS -Werror=init-self"
15259
15260		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15261$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
15262		cacheid=xorg_cv_cc_flag__Werror_init_self
15263		if eval \${$cacheid+:} false; then :
15264  $as_echo_n "(cached) " >&6
15265else
15266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15267/* end confdefs.h.  */
15268int i;
15269int
15270main ()
15271{
15272
15273  ;
15274  return 0;
15275}
15276_ACEOF
15277if ac_fn_c_try_link "$LINENO"; then :
15278  eval $cacheid=yes
15279else
15280  eval $cacheid=no
15281fi
15282rm -f core conftest.err conftest.$ac_objext \
15283    conftest$ac_exeext conftest.$ac_ext
15284fi
15285
15286
15287		CFLAGS="$xorg_testset_save_CFLAGS"
15288
15289		eval supported=\$$cacheid
15290		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15291$as_echo "$supported" >&6; }
15292		if test "$supported" = "yes" ; then
15293			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15294			found="yes"
15295		fi
15296	fi
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312xorg_testset_save_CFLAGS="$CFLAGS"
15313
15314if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15315	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15316	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15317$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15318if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15319  $as_echo_n "(cached) " >&6
15320else
15321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15322/* end confdefs.h.  */
15323int i;
15324_ACEOF
15325if ac_fn_c_try_compile "$LINENO"; then :
15326  xorg_cv_cc_flag_unknown_warning_option=yes
15327else
15328  xorg_cv_cc_flag_unknown_warning_option=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15333$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15334	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15335	CFLAGS="$xorg_testset_save_CFLAGS"
15336fi
15337
15338if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15339	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15340		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15341	fi
15342	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15344$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15345if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15346  $as_echo_n "(cached) " >&6
15347else
15348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349/* end confdefs.h.  */
15350int i;
15351_ACEOF
15352if ac_fn_c_try_compile "$LINENO"; then :
15353  xorg_cv_cc_flag_unused_command_line_argument=yes
15354else
15355  xorg_cv_cc_flag_unused_command_line_argument=no
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358fi
15359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15360$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15361	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15362	CFLAGS="$xorg_testset_save_CFLAGS"
15363fi
15364
15365found="no"
15366
15367	if test $found = "no" ; then
15368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15370		fi
15371
15372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15374		fi
15375
15376		CFLAGS="$CFLAGS -Werror=main"
15377
15378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15379$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
15380		cacheid=xorg_cv_cc_flag__Werror_main
15381		if eval \${$cacheid+:} false; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15385/* end confdefs.h.  */
15386int i;
15387int
15388main ()
15389{
15390
15391  ;
15392  return 0;
15393}
15394_ACEOF
15395if ac_fn_c_try_link "$LINENO"; then :
15396  eval $cacheid=yes
15397else
15398  eval $cacheid=no
15399fi
15400rm -f core conftest.err conftest.$ac_objext \
15401    conftest$ac_exeext conftest.$ac_ext
15402fi
15403
15404
15405		CFLAGS="$xorg_testset_save_CFLAGS"
15406
15407		eval supported=\$$cacheid
15408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15409$as_echo "$supported" >&6; }
15410		if test "$supported" = "yes" ; then
15411			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15412			found="yes"
15413		fi
15414	fi
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430xorg_testset_save_CFLAGS="$CFLAGS"
15431
15432if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15433	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15434	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15435$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15436if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15437  $as_echo_n "(cached) " >&6
15438else
15439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440/* end confdefs.h.  */
15441int i;
15442_ACEOF
15443if ac_fn_c_try_compile "$LINENO"; then :
15444  xorg_cv_cc_flag_unknown_warning_option=yes
15445else
15446  xorg_cv_cc_flag_unknown_warning_option=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15449fi
15450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15451$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15452	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15453	CFLAGS="$xorg_testset_save_CFLAGS"
15454fi
15455
15456if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15457	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15458		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15459	fi
15460	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15462$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15463if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15464  $as_echo_n "(cached) " >&6
15465else
15466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15467/* end confdefs.h.  */
15468int i;
15469_ACEOF
15470if ac_fn_c_try_compile "$LINENO"; then :
15471  xorg_cv_cc_flag_unused_command_line_argument=yes
15472else
15473  xorg_cv_cc_flag_unused_command_line_argument=no
15474fi
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476fi
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15478$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15480	CFLAGS="$xorg_testset_save_CFLAGS"
15481fi
15482
15483found="no"
15484
15485	if test $found = "no" ; then
15486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488		fi
15489
15490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15492		fi
15493
15494		CFLAGS="$CFLAGS -Werror=missing-braces"
15495
15496		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15497$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
15498		cacheid=xorg_cv_cc_flag__Werror_missing_braces
15499		if eval \${$cacheid+:} false; then :
15500  $as_echo_n "(cached) " >&6
15501else
15502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15503/* end confdefs.h.  */
15504int i;
15505int
15506main ()
15507{
15508
15509  ;
15510  return 0;
15511}
15512_ACEOF
15513if ac_fn_c_try_link "$LINENO"; then :
15514  eval $cacheid=yes
15515else
15516  eval $cacheid=no
15517fi
15518rm -f core conftest.err conftest.$ac_objext \
15519    conftest$ac_exeext conftest.$ac_ext
15520fi
15521
15522
15523		CFLAGS="$xorg_testset_save_CFLAGS"
15524
15525		eval supported=\$$cacheid
15526		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15527$as_echo "$supported" >&6; }
15528		if test "$supported" = "yes" ; then
15529			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15530			found="yes"
15531		fi
15532	fi
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548xorg_testset_save_CFLAGS="$CFLAGS"
15549
15550if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15551	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15553$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15554if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15555  $as_echo_n "(cached) " >&6
15556else
15557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15558/* end confdefs.h.  */
15559int i;
15560_ACEOF
15561if ac_fn_c_try_compile "$LINENO"; then :
15562  xorg_cv_cc_flag_unknown_warning_option=yes
15563else
15564  xorg_cv_cc_flag_unknown_warning_option=no
15565fi
15566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567fi
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15569$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15570	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15571	CFLAGS="$xorg_testset_save_CFLAGS"
15572fi
15573
15574if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15575	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15576		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15577	fi
15578	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15580$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15581if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15582  $as_echo_n "(cached) " >&6
15583else
15584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585/* end confdefs.h.  */
15586int i;
15587_ACEOF
15588if ac_fn_c_try_compile "$LINENO"; then :
15589  xorg_cv_cc_flag_unused_command_line_argument=yes
15590else
15591  xorg_cv_cc_flag_unused_command_line_argument=no
15592fi
15593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15596$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15598	CFLAGS="$xorg_testset_save_CFLAGS"
15599fi
15600
15601found="no"
15602
15603	if test $found = "no" ; then
15604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606		fi
15607
15608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610		fi
15611
15612		CFLAGS="$CFLAGS -Werror=sequence-point"
15613
15614		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15615$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15616		cacheid=xorg_cv_cc_flag__Werror_sequence_point
15617		if eval \${$cacheid+:} false; then :
15618  $as_echo_n "(cached) " >&6
15619else
15620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621/* end confdefs.h.  */
15622int i;
15623int
15624main ()
15625{
15626
15627  ;
15628  return 0;
15629}
15630_ACEOF
15631if ac_fn_c_try_link "$LINENO"; then :
15632  eval $cacheid=yes
15633else
15634  eval $cacheid=no
15635fi
15636rm -f core conftest.err conftest.$ac_objext \
15637    conftest$ac_exeext conftest.$ac_ext
15638fi
15639
15640
15641		CFLAGS="$xorg_testset_save_CFLAGS"
15642
15643		eval supported=\$$cacheid
15644		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15645$as_echo "$supported" >&6; }
15646		if test "$supported" = "yes" ; then
15647			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15648			found="yes"
15649		fi
15650	fi
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666xorg_testset_save_CFLAGS="$CFLAGS"
15667
15668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15673  $as_echo_n "(cached) " >&6
15674else
15675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676/* end confdefs.h.  */
15677int i;
15678_ACEOF
15679if ac_fn_c_try_compile "$LINENO"; then :
15680  xorg_cv_cc_flag_unknown_warning_option=yes
15681else
15682  xorg_cv_cc_flag_unknown_warning_option=no
15683fi
15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685fi
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15689	CFLAGS="$xorg_testset_save_CFLAGS"
15690fi
15691
15692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695	fi
15696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15700  $as_echo_n "(cached) " >&6
15701else
15702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703/* end confdefs.h.  */
15704int i;
15705_ACEOF
15706if ac_fn_c_try_compile "$LINENO"; then :
15707  xorg_cv_cc_flag_unused_command_line_argument=yes
15708else
15709  xorg_cv_cc_flag_unused_command_line_argument=no
15710fi
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712fi
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15716	CFLAGS="$xorg_testset_save_CFLAGS"
15717fi
15718
15719found="no"
15720
15721	if test $found = "no" ; then
15722		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724		fi
15725
15726		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15728		fi
15729
15730		CFLAGS="$CFLAGS -Werror=return-type"
15731
15732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15733$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15734		cacheid=xorg_cv_cc_flag__Werror_return_type
15735		if eval \${$cacheid+:} false; then :
15736  $as_echo_n "(cached) " >&6
15737else
15738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739/* end confdefs.h.  */
15740int i;
15741int
15742main ()
15743{
15744
15745  ;
15746  return 0;
15747}
15748_ACEOF
15749if ac_fn_c_try_link "$LINENO"; then :
15750  eval $cacheid=yes
15751else
15752  eval $cacheid=no
15753fi
15754rm -f core conftest.err conftest.$ac_objext \
15755    conftest$ac_exeext conftest.$ac_ext
15756fi
15757
15758
15759		CFLAGS="$xorg_testset_save_CFLAGS"
15760
15761		eval supported=\$$cacheid
15762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15763$as_echo "$supported" >&6; }
15764		if test "$supported" = "yes" ; then
15765			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15766			found="yes"
15767		fi
15768	fi
15769
15770	if test $found = "no" ; then
15771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15773		fi
15774
15775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15777		fi
15778
15779		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15780
15781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15782$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15783		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15784		if eval \${$cacheid+:} false; then :
15785  $as_echo_n "(cached) " >&6
15786else
15787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789int i;
15790int
15791main ()
15792{
15793
15794  ;
15795  return 0;
15796}
15797_ACEOF
15798if ac_fn_c_try_link "$LINENO"; then :
15799  eval $cacheid=yes
15800else
15801  eval $cacheid=no
15802fi
15803rm -f core conftest.err conftest.$ac_objext \
15804    conftest$ac_exeext conftest.$ac_ext
15805fi
15806
15807
15808		CFLAGS="$xorg_testset_save_CFLAGS"
15809
15810		eval supported=\$$cacheid
15811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15812$as_echo "$supported" >&6; }
15813		if test "$supported" = "yes" ; then
15814			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15815			found="yes"
15816		fi
15817	fi
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833xorg_testset_save_CFLAGS="$CFLAGS"
15834
15835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15840  $as_echo_n "(cached) " >&6
15841else
15842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843/* end confdefs.h.  */
15844int i;
15845_ACEOF
15846if ac_fn_c_try_compile "$LINENO"; then :
15847  xorg_cv_cc_flag_unknown_warning_option=yes
15848else
15849  xorg_cv_cc_flag_unknown_warning_option=no
15850fi
15851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15852fi
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15856	CFLAGS="$xorg_testset_save_CFLAGS"
15857fi
15858
15859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15862	fi
15863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15867  $as_echo_n "(cached) " >&6
15868else
15869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870/* end confdefs.h.  */
15871int i;
15872_ACEOF
15873if ac_fn_c_try_compile "$LINENO"; then :
15874  xorg_cv_cc_flag_unused_command_line_argument=yes
15875else
15876  xorg_cv_cc_flag_unused_command_line_argument=no
15877fi
15878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15879fi
15880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15883	CFLAGS="$xorg_testset_save_CFLAGS"
15884fi
15885
15886found="no"
15887
15888	if test $found = "no" ; then
15889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15891		fi
15892
15893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15895		fi
15896
15897		CFLAGS="$CFLAGS -Werror=trigraphs"
15898
15899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15900$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15901		cacheid=xorg_cv_cc_flag__Werror_trigraphs
15902		if eval \${$cacheid+:} false; then :
15903  $as_echo_n "(cached) " >&6
15904else
15905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h.  */
15907int i;
15908int
15909main ()
15910{
15911
15912  ;
15913  return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_link "$LINENO"; then :
15917  eval $cacheid=yes
15918else
15919  eval $cacheid=no
15920fi
15921rm -f core conftest.err conftest.$ac_objext \
15922    conftest$ac_exeext conftest.$ac_ext
15923fi
15924
15925
15926		CFLAGS="$xorg_testset_save_CFLAGS"
15927
15928		eval supported=\$$cacheid
15929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15930$as_echo "$supported" >&6; }
15931		if test "$supported" = "yes" ; then
15932			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15933			found="yes"
15934		fi
15935	fi
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951xorg_testset_save_CFLAGS="$CFLAGS"
15952
15953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15958  $as_echo_n "(cached) " >&6
15959else
15960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961/* end confdefs.h.  */
15962int i;
15963_ACEOF
15964if ac_fn_c_try_compile "$LINENO"; then :
15965  xorg_cv_cc_flag_unknown_warning_option=yes
15966else
15967  xorg_cv_cc_flag_unknown_warning_option=no
15968fi
15969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15970fi
15971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15974	CFLAGS="$xorg_testset_save_CFLAGS"
15975fi
15976
15977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15980	fi
15981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15985  $as_echo_n "(cached) " >&6
15986else
15987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988/* end confdefs.h.  */
15989int i;
15990_ACEOF
15991if ac_fn_c_try_compile "$LINENO"; then :
15992  xorg_cv_cc_flag_unused_command_line_argument=yes
15993else
15994  xorg_cv_cc_flag_unused_command_line_argument=no
15995fi
15996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15997fi
15998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16001	CFLAGS="$xorg_testset_save_CFLAGS"
16002fi
16003
16004found="no"
16005
16006	if test $found = "no" ; then
16007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16009		fi
16010
16011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16013		fi
16014
16015		CFLAGS="$CFLAGS -Werror=array-bounds"
16016
16017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16018$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
16019		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16020		if eval \${$cacheid+:} false; then :
16021  $as_echo_n "(cached) " >&6
16022else
16023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024/* end confdefs.h.  */
16025int i;
16026int
16027main ()
16028{
16029
16030  ;
16031  return 0;
16032}
16033_ACEOF
16034if ac_fn_c_try_link "$LINENO"; then :
16035  eval $cacheid=yes
16036else
16037  eval $cacheid=no
16038fi
16039rm -f core conftest.err conftest.$ac_objext \
16040    conftest$ac_exeext conftest.$ac_ext
16041fi
16042
16043
16044		CFLAGS="$xorg_testset_save_CFLAGS"
16045
16046		eval supported=\$$cacheid
16047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16048$as_echo "$supported" >&6; }
16049		if test "$supported" = "yes" ; then
16050			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16051			found="yes"
16052		fi
16053	fi
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069xorg_testset_save_CFLAGS="$CFLAGS"
16070
16071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16076  $as_echo_n "(cached) " >&6
16077else
16078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16079/* end confdefs.h.  */
16080int i;
16081_ACEOF
16082if ac_fn_c_try_compile "$LINENO"; then :
16083  xorg_cv_cc_flag_unknown_warning_option=yes
16084else
16085  xorg_cv_cc_flag_unknown_warning_option=no
16086fi
16087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088fi
16089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16092	CFLAGS="$xorg_testset_save_CFLAGS"
16093fi
16094
16095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16098	fi
16099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16103  $as_echo_n "(cached) " >&6
16104else
16105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h.  */
16107int i;
16108_ACEOF
16109if ac_fn_c_try_compile "$LINENO"; then :
16110  xorg_cv_cc_flag_unused_command_line_argument=yes
16111else
16112  xorg_cv_cc_flag_unused_command_line_argument=no
16113fi
16114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16115fi
16116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16119	CFLAGS="$xorg_testset_save_CFLAGS"
16120fi
16121
16122found="no"
16123
16124	if test $found = "no" ; then
16125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16127		fi
16128
16129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131		fi
16132
16133		CFLAGS="$CFLAGS -Werror=write-strings"
16134
16135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16136$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
16137		cacheid=xorg_cv_cc_flag__Werror_write_strings
16138		if eval \${$cacheid+:} false; then :
16139  $as_echo_n "(cached) " >&6
16140else
16141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142/* end confdefs.h.  */
16143int i;
16144int
16145main ()
16146{
16147
16148  ;
16149  return 0;
16150}
16151_ACEOF
16152if ac_fn_c_try_link "$LINENO"; then :
16153  eval $cacheid=yes
16154else
16155  eval $cacheid=no
16156fi
16157rm -f core conftest.err conftest.$ac_objext \
16158    conftest$ac_exeext conftest.$ac_ext
16159fi
16160
16161
16162		CFLAGS="$xorg_testset_save_CFLAGS"
16163
16164		eval supported=\$$cacheid
16165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16166$as_echo "$supported" >&6; }
16167		if test "$supported" = "yes" ; then
16168			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16169			found="yes"
16170		fi
16171	fi
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187xorg_testset_save_CFLAGS="$CFLAGS"
16188
16189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16194  $as_echo_n "(cached) " >&6
16195else
16196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16197/* end confdefs.h.  */
16198int i;
16199_ACEOF
16200if ac_fn_c_try_compile "$LINENO"; then :
16201  xorg_cv_cc_flag_unknown_warning_option=yes
16202else
16203  xorg_cv_cc_flag_unknown_warning_option=no
16204fi
16205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16206fi
16207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16210	CFLAGS="$xorg_testset_save_CFLAGS"
16211fi
16212
16213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16216	fi
16217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16221  $as_echo_n "(cached) " >&6
16222else
16223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h.  */
16225int i;
16226_ACEOF
16227if ac_fn_c_try_compile "$LINENO"; then :
16228  xorg_cv_cc_flag_unused_command_line_argument=yes
16229else
16230  xorg_cv_cc_flag_unused_command_line_argument=no
16231fi
16232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233fi
16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16237	CFLAGS="$xorg_testset_save_CFLAGS"
16238fi
16239
16240found="no"
16241
16242	if test $found = "no" ; then
16243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16245		fi
16246
16247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16249		fi
16250
16251		CFLAGS="$CFLAGS -Werror=address"
16252
16253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16254$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
16255		cacheid=xorg_cv_cc_flag__Werror_address
16256		if eval \${$cacheid+:} false; then :
16257  $as_echo_n "(cached) " >&6
16258else
16259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16260/* end confdefs.h.  */
16261int i;
16262int
16263main ()
16264{
16265
16266  ;
16267  return 0;
16268}
16269_ACEOF
16270if ac_fn_c_try_link "$LINENO"; then :
16271  eval $cacheid=yes
16272else
16273  eval $cacheid=no
16274fi
16275rm -f core conftest.err conftest.$ac_objext \
16276    conftest$ac_exeext conftest.$ac_ext
16277fi
16278
16279
16280		CFLAGS="$xorg_testset_save_CFLAGS"
16281
16282		eval supported=\$$cacheid
16283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16284$as_echo "$supported" >&6; }
16285		if test "$supported" = "yes" ; then
16286			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16287			found="yes"
16288		fi
16289	fi
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305xorg_testset_save_CFLAGS="$CFLAGS"
16306
16307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16312  $as_echo_n "(cached) " >&6
16313else
16314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16315/* end confdefs.h.  */
16316int i;
16317_ACEOF
16318if ac_fn_c_try_compile "$LINENO"; then :
16319  xorg_cv_cc_flag_unknown_warning_option=yes
16320else
16321  xorg_cv_cc_flag_unknown_warning_option=no
16322fi
16323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324fi
16325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16328	CFLAGS="$xorg_testset_save_CFLAGS"
16329fi
16330
16331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16334	fi
16335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16339  $as_echo_n "(cached) " >&6
16340else
16341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343int i;
16344_ACEOF
16345if ac_fn_c_try_compile "$LINENO"; then :
16346  xorg_cv_cc_flag_unused_command_line_argument=yes
16347else
16348  xorg_cv_cc_flag_unused_command_line_argument=no
16349fi
16350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16351fi
16352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16355	CFLAGS="$xorg_testset_save_CFLAGS"
16356fi
16357
16358found="no"
16359
16360	if test $found = "no" ; then
16361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16363		fi
16364
16365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16367		fi
16368
16369		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16370
16371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16372$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16373		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16374		if eval \${$cacheid+:} false; then :
16375  $as_echo_n "(cached) " >&6
16376else
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379int i;
16380int
16381main ()
16382{
16383
16384  ;
16385  return 0;
16386}
16387_ACEOF
16388if ac_fn_c_try_link "$LINENO"; then :
16389  eval $cacheid=yes
16390else
16391  eval $cacheid=no
16392fi
16393rm -f core conftest.err conftest.$ac_objext \
16394    conftest$ac_exeext conftest.$ac_ext
16395fi
16396
16397
16398		CFLAGS="$xorg_testset_save_CFLAGS"
16399
16400		eval supported=\$$cacheid
16401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16402$as_echo "$supported" >&6; }
16403		if test "$supported" = "yes" ; then
16404			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16405			found="yes"
16406		fi
16407	fi
16408
16409	if test $found = "no" ; then
16410		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16412		fi
16413
16414		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16416		fi
16417
16418		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16419
16420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16421$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16422		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16423		if eval \${$cacheid+:} false; then :
16424  $as_echo_n "(cached) " >&6
16425else
16426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427/* end confdefs.h.  */
16428int i;
16429int
16430main ()
16431{
16432
16433  ;
16434  return 0;
16435}
16436_ACEOF
16437if ac_fn_c_try_link "$LINENO"; then :
16438  eval $cacheid=yes
16439else
16440  eval $cacheid=no
16441fi
16442rm -f core conftest.err conftest.$ac_objext \
16443    conftest$ac_exeext conftest.$ac_ext
16444fi
16445
16446
16447		CFLAGS="$xorg_testset_save_CFLAGS"
16448
16449		eval supported=\$$cacheid
16450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16451$as_echo "$supported" >&6; }
16452		if test "$supported" = "yes" ; then
16453			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16454			found="yes"
16455		fi
16456	fi
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472xorg_testset_save_CFLAGS="$CFLAGS"
16473
16474if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16475	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16477$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16478if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16479  $as_echo_n "(cached) " >&6
16480else
16481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482/* end confdefs.h.  */
16483int i;
16484_ACEOF
16485if ac_fn_c_try_compile "$LINENO"; then :
16486  xorg_cv_cc_flag_unknown_warning_option=yes
16487else
16488  xorg_cv_cc_flag_unknown_warning_option=no
16489fi
16490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491fi
16492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16493$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16494	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16495	CFLAGS="$xorg_testset_save_CFLAGS"
16496fi
16497
16498if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16499	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16500		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16501	fi
16502	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16504$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16505if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16506  $as_echo_n "(cached) " >&6
16507else
16508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509/* end confdefs.h.  */
16510int i;
16511_ACEOF
16512if ac_fn_c_try_compile "$LINENO"; then :
16513  xorg_cv_cc_flag_unused_command_line_argument=yes
16514else
16515  xorg_cv_cc_flag_unused_command_line_argument=no
16516fi
16517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518fi
16519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16520$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16521	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16522	CFLAGS="$xorg_testset_save_CFLAGS"
16523fi
16524
16525found="no"
16526
16527	if test $found = "no" ; then
16528		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16529			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16530		fi
16531
16532		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16533			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16534		fi
16535
16536		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16537
16538		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16539$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16540		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16541		if eval \${$cacheid+:} false; then :
16542  $as_echo_n "(cached) " >&6
16543else
16544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545/* end confdefs.h.  */
16546int i;
16547int
16548main ()
16549{
16550
16551  ;
16552  return 0;
16553}
16554_ACEOF
16555if ac_fn_c_try_link "$LINENO"; then :
16556  eval $cacheid=yes
16557else
16558  eval $cacheid=no
16559fi
16560rm -f core conftest.err conftest.$ac_objext \
16561    conftest$ac_exeext conftest.$ac_ext
16562fi
16563
16564
16565		CFLAGS="$xorg_testset_save_CFLAGS"
16566
16567		eval supported=\$$cacheid
16568		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16569$as_echo "$supported" >&6; }
16570		if test "$supported" = "yes" ; then
16571			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16572			found="yes"
16573		fi
16574	fi
16575
16576 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16577else
16578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
16579$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors.  This should not be necessary.  Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593xorg_testset_save_CFLAGS="$CFLAGS"
16594
16595if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16596	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16598$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16599if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16600  $as_echo_n "(cached) " >&6
16601else
16602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h.  */
16604int i;
16605_ACEOF
16606if ac_fn_c_try_compile "$LINENO"; then :
16607  xorg_cv_cc_flag_unknown_warning_option=yes
16608else
16609  xorg_cv_cc_flag_unknown_warning_option=no
16610fi
16611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612fi
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16614$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16615	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16616	CFLAGS="$xorg_testset_save_CFLAGS"
16617fi
16618
16619if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16620	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16621		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16622	fi
16623	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16625$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16626if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16627  $as_echo_n "(cached) " >&6
16628else
16629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630/* end confdefs.h.  */
16631int i;
16632_ACEOF
16633if ac_fn_c_try_compile "$LINENO"; then :
16634  xorg_cv_cc_flag_unused_command_line_argument=yes
16635else
16636  xorg_cv_cc_flag_unused_command_line_argument=no
16637fi
16638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639fi
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16641$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16642	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16643	CFLAGS="$xorg_testset_save_CFLAGS"
16644fi
16645
16646found="no"
16647
16648	if test $found = "no" ; then
16649		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16650			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16651		fi
16652
16653		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16654			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16655		fi
16656
16657		CFLAGS="$CFLAGS -Wimplicit"
16658
16659		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16660$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16661		cacheid=xorg_cv_cc_flag__Wimplicit
16662		if eval \${$cacheid+:} false; then :
16663  $as_echo_n "(cached) " >&6
16664else
16665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666/* end confdefs.h.  */
16667int i;
16668int
16669main ()
16670{
16671
16672  ;
16673  return 0;
16674}
16675_ACEOF
16676if ac_fn_c_try_link "$LINENO"; then :
16677  eval $cacheid=yes
16678else
16679  eval $cacheid=no
16680fi
16681rm -f core conftest.err conftest.$ac_objext \
16682    conftest$ac_exeext conftest.$ac_ext
16683fi
16684
16685
16686		CFLAGS="$xorg_testset_save_CFLAGS"
16687
16688		eval supported=\$$cacheid
16689		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16690$as_echo "$supported" >&6; }
16691		if test "$supported" = "yes" ; then
16692			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16693			found="yes"
16694		fi
16695	fi
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711xorg_testset_save_CFLAGS="$CFLAGS"
16712
16713if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16714	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16716$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16717if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16718  $as_echo_n "(cached) " >&6
16719else
16720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721/* end confdefs.h.  */
16722int i;
16723_ACEOF
16724if ac_fn_c_try_compile "$LINENO"; then :
16725  xorg_cv_cc_flag_unknown_warning_option=yes
16726else
16727  xorg_cv_cc_flag_unknown_warning_option=no
16728fi
16729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730fi
16731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16732$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16733	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16734	CFLAGS="$xorg_testset_save_CFLAGS"
16735fi
16736
16737if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16738	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16739		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740	fi
16741	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16743$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16744if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16745  $as_echo_n "(cached) " >&6
16746else
16747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748/* end confdefs.h.  */
16749int i;
16750_ACEOF
16751if ac_fn_c_try_compile "$LINENO"; then :
16752  xorg_cv_cc_flag_unused_command_line_argument=yes
16753else
16754  xorg_cv_cc_flag_unused_command_line_argument=no
16755fi
16756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757fi
16758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16759$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16761	CFLAGS="$xorg_testset_save_CFLAGS"
16762fi
16763
16764found="no"
16765
16766	if test $found = "no" ; then
16767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16769		fi
16770
16771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773		fi
16774
16775		CFLAGS="$CFLAGS -Wnonnull"
16776
16777		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16778$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16779		cacheid=xorg_cv_cc_flag__Wnonnull
16780		if eval \${$cacheid+:} false; then :
16781  $as_echo_n "(cached) " >&6
16782else
16783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784/* end confdefs.h.  */
16785int i;
16786int
16787main ()
16788{
16789
16790  ;
16791  return 0;
16792}
16793_ACEOF
16794if ac_fn_c_try_link "$LINENO"; then :
16795  eval $cacheid=yes
16796else
16797  eval $cacheid=no
16798fi
16799rm -f core conftest.err conftest.$ac_objext \
16800    conftest$ac_exeext conftest.$ac_ext
16801fi
16802
16803
16804		CFLAGS="$xorg_testset_save_CFLAGS"
16805
16806		eval supported=\$$cacheid
16807		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16808$as_echo "$supported" >&6; }
16809		if test "$supported" = "yes" ; then
16810			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16811			found="yes"
16812		fi
16813	fi
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829xorg_testset_save_CFLAGS="$CFLAGS"
16830
16831if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16832	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16834$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16835if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16836  $as_echo_n "(cached) " >&6
16837else
16838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h.  */
16840int i;
16841_ACEOF
16842if ac_fn_c_try_compile "$LINENO"; then :
16843  xorg_cv_cc_flag_unknown_warning_option=yes
16844else
16845  xorg_cv_cc_flag_unknown_warning_option=no
16846fi
16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848fi
16849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16850$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16852	CFLAGS="$xorg_testset_save_CFLAGS"
16853fi
16854
16855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858	fi
16859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16861$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16862if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16863  $as_echo_n "(cached) " >&6
16864else
16865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866/* end confdefs.h.  */
16867int i;
16868_ACEOF
16869if ac_fn_c_try_compile "$LINENO"; then :
16870  xorg_cv_cc_flag_unused_command_line_argument=yes
16871else
16872  xorg_cv_cc_flag_unused_command_line_argument=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875fi
16876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16877$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16878	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16879	CFLAGS="$xorg_testset_save_CFLAGS"
16880fi
16881
16882found="no"
16883
16884	if test $found = "no" ; then
16885		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16886			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16887		fi
16888
16889		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16890			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891		fi
16892
16893		CFLAGS="$CFLAGS -Winit-self"
16894
16895		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16896$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16897		cacheid=xorg_cv_cc_flag__Winit_self
16898		if eval \${$cacheid+:} false; then :
16899  $as_echo_n "(cached) " >&6
16900else
16901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902/* end confdefs.h.  */
16903int i;
16904int
16905main ()
16906{
16907
16908  ;
16909  return 0;
16910}
16911_ACEOF
16912if ac_fn_c_try_link "$LINENO"; then :
16913  eval $cacheid=yes
16914else
16915  eval $cacheid=no
16916fi
16917rm -f core conftest.err conftest.$ac_objext \
16918    conftest$ac_exeext conftest.$ac_ext
16919fi
16920
16921
16922		CFLAGS="$xorg_testset_save_CFLAGS"
16923
16924		eval supported=\$$cacheid
16925		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16926$as_echo "$supported" >&6; }
16927		if test "$supported" = "yes" ; then
16928			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16929			found="yes"
16930		fi
16931	fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16950	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16952$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16953if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16954  $as_echo_n "(cached) " >&6
16955else
16956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957/* end confdefs.h.  */
16958int i;
16959_ACEOF
16960if ac_fn_c_try_compile "$LINENO"; then :
16961  xorg_cv_cc_flag_unknown_warning_option=yes
16962else
16963  xorg_cv_cc_flag_unknown_warning_option=no
16964fi
16965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966fi
16967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16968$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16969	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16970	CFLAGS="$xorg_testset_save_CFLAGS"
16971fi
16972
16973if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16974	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976	fi
16977	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16979$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16980if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16981  $as_echo_n "(cached) " >&6
16982else
16983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984/* end confdefs.h.  */
16985int i;
16986_ACEOF
16987if ac_fn_c_try_compile "$LINENO"; then :
16988  xorg_cv_cc_flag_unused_command_line_argument=yes
16989else
16990  xorg_cv_cc_flag_unused_command_line_argument=no
16991fi
16992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993fi
16994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16995$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16996	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16997	CFLAGS="$xorg_testset_save_CFLAGS"
16998fi
16999
17000found="no"
17001
17002	if test $found = "no" ; then
17003		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005		fi
17006
17007		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17008			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17009		fi
17010
17011		CFLAGS="$CFLAGS -Wmain"
17012
17013		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17014$as_echo_n "checking if $CC supports -Wmain... " >&6; }
17015		cacheid=xorg_cv_cc_flag__Wmain
17016		if eval \${$cacheid+:} false; then :
17017  $as_echo_n "(cached) " >&6
17018else
17019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020/* end confdefs.h.  */
17021int i;
17022int
17023main ()
17024{
17025
17026  ;
17027  return 0;
17028}
17029_ACEOF
17030if ac_fn_c_try_link "$LINENO"; then :
17031  eval $cacheid=yes
17032else
17033  eval $cacheid=no
17034fi
17035rm -f core conftest.err conftest.$ac_objext \
17036    conftest$ac_exeext conftest.$ac_ext
17037fi
17038
17039
17040		CFLAGS="$xorg_testset_save_CFLAGS"
17041
17042		eval supported=\$$cacheid
17043		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044$as_echo "$supported" >&6; }
17045		if test "$supported" = "yes" ; then
17046			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17047			found="yes"
17048		fi
17049	fi
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065xorg_testset_save_CFLAGS="$CFLAGS"
17066
17067if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17068	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17070$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17071if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17072  $as_echo_n "(cached) " >&6
17073else
17074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h.  */
17076int i;
17077_ACEOF
17078if ac_fn_c_try_compile "$LINENO"; then :
17079  xorg_cv_cc_flag_unknown_warning_option=yes
17080else
17081  xorg_cv_cc_flag_unknown_warning_option=no
17082fi
17083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084fi
17085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17086$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17087	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17088	CFLAGS="$xorg_testset_save_CFLAGS"
17089fi
17090
17091if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17092	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094	fi
17095	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17097$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17098if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17099  $as_echo_n "(cached) " >&6
17100else
17101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102/* end confdefs.h.  */
17103int i;
17104_ACEOF
17105if ac_fn_c_try_compile "$LINENO"; then :
17106  xorg_cv_cc_flag_unused_command_line_argument=yes
17107else
17108  xorg_cv_cc_flag_unused_command_line_argument=no
17109fi
17110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111fi
17112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17113$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17114	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17115	CFLAGS="$xorg_testset_save_CFLAGS"
17116fi
17117
17118found="no"
17119
17120	if test $found = "no" ; then
17121		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123		fi
17124
17125		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17126			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127		fi
17128
17129		CFLAGS="$CFLAGS -Wmissing-braces"
17130
17131		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17132$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
17133		cacheid=xorg_cv_cc_flag__Wmissing_braces
17134		if eval \${$cacheid+:} false; then :
17135  $as_echo_n "(cached) " >&6
17136else
17137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139int i;
17140int
17141main ()
17142{
17143
17144  ;
17145  return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_link "$LINENO"; then :
17149  eval $cacheid=yes
17150else
17151  eval $cacheid=no
17152fi
17153rm -f core conftest.err conftest.$ac_objext \
17154    conftest$ac_exeext conftest.$ac_ext
17155fi
17156
17157
17158		CFLAGS="$xorg_testset_save_CFLAGS"
17159
17160		eval supported=\$$cacheid
17161		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17162$as_echo "$supported" >&6; }
17163		if test "$supported" = "yes" ; then
17164			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17165			found="yes"
17166		fi
17167	fi
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183xorg_testset_save_CFLAGS="$CFLAGS"
17184
17185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17188$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17189if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17190  $as_echo_n "(cached) " >&6
17191else
17192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h.  */
17194int i;
17195_ACEOF
17196if ac_fn_c_try_compile "$LINENO"; then :
17197  xorg_cv_cc_flag_unknown_warning_option=yes
17198else
17199  xorg_cv_cc_flag_unknown_warning_option=no
17200fi
17201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202fi
17203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206	CFLAGS="$xorg_testset_save_CFLAGS"
17207fi
17208
17209if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212	fi
17213	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17217  $as_echo_n "(cached) " >&6
17218else
17219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220/* end confdefs.h.  */
17221int i;
17222_ACEOF
17223if ac_fn_c_try_compile "$LINENO"; then :
17224  xorg_cv_cc_flag_unused_command_line_argument=yes
17225else
17226  xorg_cv_cc_flag_unused_command_line_argument=no
17227fi
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229fi
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17231$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17232	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17233	CFLAGS="$xorg_testset_save_CFLAGS"
17234fi
17235
17236found="no"
17237
17238	if test $found = "no" ; then
17239		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241		fi
17242
17243		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17244			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245		fi
17246
17247		CFLAGS="$CFLAGS -Wsequence-point"
17248
17249		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17250$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
17251		cacheid=xorg_cv_cc_flag__Wsequence_point
17252		if eval \${$cacheid+:} false; then :
17253  $as_echo_n "(cached) " >&6
17254else
17255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256/* end confdefs.h.  */
17257int i;
17258int
17259main ()
17260{
17261
17262  ;
17263  return 0;
17264}
17265_ACEOF
17266if ac_fn_c_try_link "$LINENO"; then :
17267  eval $cacheid=yes
17268else
17269  eval $cacheid=no
17270fi
17271rm -f core conftest.err conftest.$ac_objext \
17272    conftest$ac_exeext conftest.$ac_ext
17273fi
17274
17275
17276		CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278		eval supported=\$$cacheid
17279		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280$as_echo "$supported" >&6; }
17281		if test "$supported" = "yes" ; then
17282			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17283			found="yes"
17284		fi
17285	fi
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301xorg_testset_save_CFLAGS="$CFLAGS"
17302
17303if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17304	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17306$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17307if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17308  $as_echo_n "(cached) " >&6
17309else
17310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311/* end confdefs.h.  */
17312int i;
17313_ACEOF
17314if ac_fn_c_try_compile "$LINENO"; then :
17315  xorg_cv_cc_flag_unknown_warning_option=yes
17316else
17317  xorg_cv_cc_flag_unknown_warning_option=no
17318fi
17319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320fi
17321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17322$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17324	CFLAGS="$xorg_testset_save_CFLAGS"
17325fi
17326
17327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330	fi
17331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17333$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17334if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17335  $as_echo_n "(cached) " >&6
17336else
17337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339int i;
17340_ACEOF
17341if ac_fn_c_try_compile "$LINENO"; then :
17342  xorg_cv_cc_flag_unused_command_line_argument=yes
17343else
17344  xorg_cv_cc_flag_unused_command_line_argument=no
17345fi
17346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347fi
17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17349$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17350	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17351	CFLAGS="$xorg_testset_save_CFLAGS"
17352fi
17353
17354found="no"
17355
17356	if test $found = "no" ; then
17357		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359		fi
17360
17361		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17362			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363		fi
17364
17365		CFLAGS="$CFLAGS -Wreturn-type"
17366
17367		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17368$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
17369		cacheid=xorg_cv_cc_flag__Wreturn_type
17370		if eval \${$cacheid+:} false; then :
17371  $as_echo_n "(cached) " >&6
17372else
17373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374/* end confdefs.h.  */
17375int i;
17376int
17377main ()
17378{
17379
17380  ;
17381  return 0;
17382}
17383_ACEOF
17384if ac_fn_c_try_link "$LINENO"; then :
17385  eval $cacheid=yes
17386else
17387  eval $cacheid=no
17388fi
17389rm -f core conftest.err conftest.$ac_objext \
17390    conftest$ac_exeext conftest.$ac_ext
17391fi
17392
17393
17394		CFLAGS="$xorg_testset_save_CFLAGS"
17395
17396		eval supported=\$$cacheid
17397		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17398$as_echo "$supported" >&6; }
17399		if test "$supported" = "yes" ; then
17400			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17401			found="yes"
17402		fi
17403	fi
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419xorg_testset_save_CFLAGS="$CFLAGS"
17420
17421if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17422	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17424$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17425if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17426  $as_echo_n "(cached) " >&6
17427else
17428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429/* end confdefs.h.  */
17430int i;
17431_ACEOF
17432if ac_fn_c_try_compile "$LINENO"; then :
17433  xorg_cv_cc_flag_unknown_warning_option=yes
17434else
17435  xorg_cv_cc_flag_unknown_warning_option=no
17436fi
17437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438fi
17439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17440$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17442	CFLAGS="$xorg_testset_save_CFLAGS"
17443fi
17444
17445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448	fi
17449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17451$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17452if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17453  $as_echo_n "(cached) " >&6
17454else
17455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456/* end confdefs.h.  */
17457int i;
17458_ACEOF
17459if ac_fn_c_try_compile "$LINENO"; then :
17460  xorg_cv_cc_flag_unused_command_line_argument=yes
17461else
17462  xorg_cv_cc_flag_unused_command_line_argument=no
17463fi
17464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465fi
17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17467$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17468	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17469	CFLAGS="$xorg_testset_save_CFLAGS"
17470fi
17471
17472found="no"
17473
17474	if test $found = "no" ; then
17475		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477		fi
17478
17479		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17480			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17481		fi
17482
17483		CFLAGS="$CFLAGS -Wtrigraphs"
17484
17485		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
17486$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
17487		cacheid=xorg_cv_cc_flag__Wtrigraphs
17488		if eval \${$cacheid+:} false; then :
17489  $as_echo_n "(cached) " >&6
17490else
17491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492/* end confdefs.h.  */
17493int i;
17494int
17495main ()
17496{
17497
17498  ;
17499  return 0;
17500}
17501_ACEOF
17502if ac_fn_c_try_link "$LINENO"; then :
17503  eval $cacheid=yes
17504else
17505  eval $cacheid=no
17506fi
17507rm -f core conftest.err conftest.$ac_objext \
17508    conftest$ac_exeext conftest.$ac_ext
17509fi
17510
17511
17512		CFLAGS="$xorg_testset_save_CFLAGS"
17513
17514		eval supported=\$$cacheid
17515		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17516$as_echo "$supported" >&6; }
17517		if test "$supported" = "yes" ; then
17518			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
17519			found="yes"
17520		fi
17521	fi
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537xorg_testset_save_CFLAGS="$CFLAGS"
17538
17539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17541	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17542$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17543if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17544  $as_echo_n "(cached) " >&6
17545else
17546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547/* end confdefs.h.  */
17548int i;
17549_ACEOF
17550if ac_fn_c_try_compile "$LINENO"; then :
17551  xorg_cv_cc_flag_unknown_warning_option=yes
17552else
17553  xorg_cv_cc_flag_unknown_warning_option=no
17554fi
17555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17556fi
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17558$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17559	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17560	CFLAGS="$xorg_testset_save_CFLAGS"
17561fi
17562
17563if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17564	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17565		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17566	fi
17567	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17569$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17570if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17571  $as_echo_n "(cached) " >&6
17572else
17573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574/* end confdefs.h.  */
17575int i;
17576_ACEOF
17577if ac_fn_c_try_compile "$LINENO"; then :
17578  xorg_cv_cc_flag_unused_command_line_argument=yes
17579else
17580  xorg_cv_cc_flag_unused_command_line_argument=no
17581fi
17582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583fi
17584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17585$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17587	CFLAGS="$xorg_testset_save_CFLAGS"
17588fi
17589
17590found="no"
17591
17592	if test $found = "no" ; then
17593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17595		fi
17596
17597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17599		fi
17600
17601		CFLAGS="$CFLAGS -Warray-bounds"
17602
17603		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17604$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17605		cacheid=xorg_cv_cc_flag__Warray_bounds
17606		if eval \${$cacheid+:} false; then :
17607  $as_echo_n "(cached) " >&6
17608else
17609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17610/* end confdefs.h.  */
17611int i;
17612int
17613main ()
17614{
17615
17616  ;
17617  return 0;
17618}
17619_ACEOF
17620if ac_fn_c_try_link "$LINENO"; then :
17621  eval $cacheid=yes
17622else
17623  eval $cacheid=no
17624fi
17625rm -f core conftest.err conftest.$ac_objext \
17626    conftest$ac_exeext conftest.$ac_ext
17627fi
17628
17629
17630		CFLAGS="$xorg_testset_save_CFLAGS"
17631
17632		eval supported=\$$cacheid
17633		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17634$as_echo "$supported" >&6; }
17635		if test "$supported" = "yes" ; then
17636			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17637			found="yes"
17638		fi
17639	fi
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655xorg_testset_save_CFLAGS="$CFLAGS"
17656
17657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17658	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17659	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17662  $as_echo_n "(cached) " >&6
17663else
17664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665/* end confdefs.h.  */
17666int i;
17667_ACEOF
17668if ac_fn_c_try_compile "$LINENO"; then :
17669  xorg_cv_cc_flag_unknown_warning_option=yes
17670else
17671  xorg_cv_cc_flag_unknown_warning_option=no
17672fi
17673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17674fi
17675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17677	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17678	CFLAGS="$xorg_testset_save_CFLAGS"
17679fi
17680
17681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17682	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17683		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17684	fi
17685	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17689  $as_echo_n "(cached) " >&6
17690else
17691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692/* end confdefs.h.  */
17693int i;
17694_ACEOF
17695if ac_fn_c_try_compile "$LINENO"; then :
17696  xorg_cv_cc_flag_unused_command_line_argument=yes
17697else
17698  xorg_cv_cc_flag_unused_command_line_argument=no
17699fi
17700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17701fi
17702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17705	CFLAGS="$xorg_testset_save_CFLAGS"
17706fi
17707
17708found="no"
17709
17710	if test $found = "no" ; then
17711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17713		fi
17714
17715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17717		fi
17718
17719		CFLAGS="$CFLAGS -Wwrite-strings"
17720
17721		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17722$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17723		cacheid=xorg_cv_cc_flag__Wwrite_strings
17724		if eval \${$cacheid+:} false; then :
17725  $as_echo_n "(cached) " >&6
17726else
17727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728/* end confdefs.h.  */
17729int i;
17730int
17731main ()
17732{
17733
17734  ;
17735  return 0;
17736}
17737_ACEOF
17738if ac_fn_c_try_link "$LINENO"; then :
17739  eval $cacheid=yes
17740else
17741  eval $cacheid=no
17742fi
17743rm -f core conftest.err conftest.$ac_objext \
17744    conftest$ac_exeext conftest.$ac_ext
17745fi
17746
17747
17748		CFLAGS="$xorg_testset_save_CFLAGS"
17749
17750		eval supported=\$$cacheid
17751		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17752$as_echo "$supported" >&6; }
17753		if test "$supported" = "yes" ; then
17754			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17755			found="yes"
17756		fi
17757	fi
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773xorg_testset_save_CFLAGS="$CFLAGS"
17774
17775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17776	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17777	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17780  $as_echo_n "(cached) " >&6
17781else
17782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783/* end confdefs.h.  */
17784int i;
17785_ACEOF
17786if ac_fn_c_try_compile "$LINENO"; then :
17787  xorg_cv_cc_flag_unknown_warning_option=yes
17788else
17789  xorg_cv_cc_flag_unknown_warning_option=no
17790fi
17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792fi
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17796	CFLAGS="$xorg_testset_save_CFLAGS"
17797fi
17798
17799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17802	fi
17803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17807  $as_echo_n "(cached) " >&6
17808else
17809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h.  */
17811int i;
17812_ACEOF
17813if ac_fn_c_try_compile "$LINENO"; then :
17814  xorg_cv_cc_flag_unused_command_line_argument=yes
17815else
17816  xorg_cv_cc_flag_unused_command_line_argument=no
17817fi
17818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819fi
17820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17823	CFLAGS="$xorg_testset_save_CFLAGS"
17824fi
17825
17826found="no"
17827
17828	if test $found = "no" ; then
17829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17831		fi
17832
17833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835		fi
17836
17837		CFLAGS="$CFLAGS -Waddress"
17838
17839		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17840$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17841		cacheid=xorg_cv_cc_flag__Waddress
17842		if eval \${$cacheid+:} false; then :
17843  $as_echo_n "(cached) " >&6
17844else
17845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846/* end confdefs.h.  */
17847int i;
17848int
17849main ()
17850{
17851
17852  ;
17853  return 0;
17854}
17855_ACEOF
17856if ac_fn_c_try_link "$LINENO"; then :
17857  eval $cacheid=yes
17858else
17859  eval $cacheid=no
17860fi
17861rm -f core conftest.err conftest.$ac_objext \
17862    conftest$ac_exeext conftest.$ac_ext
17863fi
17864
17865
17866		CFLAGS="$xorg_testset_save_CFLAGS"
17867
17868		eval supported=\$$cacheid
17869		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17870$as_echo "$supported" >&6; }
17871		if test "$supported" = "yes" ; then
17872			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17873			found="yes"
17874		fi
17875	fi
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891xorg_testset_save_CFLAGS="$CFLAGS"
17892
17893if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17894	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17895	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17896$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17897if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17898  $as_echo_n "(cached) " >&6
17899else
17900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901/* end confdefs.h.  */
17902int i;
17903_ACEOF
17904if ac_fn_c_try_compile "$LINENO"; then :
17905  xorg_cv_cc_flag_unknown_warning_option=yes
17906else
17907  xorg_cv_cc_flag_unknown_warning_option=no
17908fi
17909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17910fi
17911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17912$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17913	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17914	CFLAGS="$xorg_testset_save_CFLAGS"
17915fi
17916
17917if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17918	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17919		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17920	fi
17921	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17923$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17924if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17925  $as_echo_n "(cached) " >&6
17926else
17927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928/* end confdefs.h.  */
17929int i;
17930_ACEOF
17931if ac_fn_c_try_compile "$LINENO"; then :
17932  xorg_cv_cc_flag_unused_command_line_argument=yes
17933else
17934  xorg_cv_cc_flag_unused_command_line_argument=no
17935fi
17936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937fi
17938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17939$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17940	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17941	CFLAGS="$xorg_testset_save_CFLAGS"
17942fi
17943
17944found="no"
17945
17946	if test $found = "no" ; then
17947		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17948			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17949		fi
17950
17951		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17952			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17953		fi
17954
17955		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17956
17957		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17958$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17959		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17960		if eval \${$cacheid+:} false; then :
17961  $as_echo_n "(cached) " >&6
17962else
17963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17964/* end confdefs.h.  */
17965int i;
17966int
17967main ()
17968{
17969
17970  ;
17971  return 0;
17972}
17973_ACEOF
17974if ac_fn_c_try_link "$LINENO"; then :
17975  eval $cacheid=yes
17976else
17977  eval $cacheid=no
17978fi
17979rm -f core conftest.err conftest.$ac_objext \
17980    conftest$ac_exeext conftest.$ac_ext
17981fi
17982
17983
17984		CFLAGS="$xorg_testset_save_CFLAGS"
17985
17986		eval supported=\$$cacheid
17987		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17988$as_echo "$supported" >&6; }
17989		if test "$supported" = "yes" ; then
17990			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17991			found="yes"
17992		fi
17993	fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009xorg_testset_save_CFLAGS="$CFLAGS"
18010
18011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18016  $as_echo_n "(cached) " >&6
18017else
18018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h.  */
18020int i;
18021_ACEOF
18022if ac_fn_c_try_compile "$LINENO"; then :
18023  xorg_cv_cc_flag_unknown_warning_option=yes
18024else
18025  xorg_cv_cc_flag_unknown_warning_option=no
18026fi
18027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028fi
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18032	CFLAGS="$xorg_testset_save_CFLAGS"
18033fi
18034
18035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18038	fi
18039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18043  $as_echo_n "(cached) " >&6
18044else
18045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046/* end confdefs.h.  */
18047int i;
18048_ACEOF
18049if ac_fn_c_try_compile "$LINENO"; then :
18050  xorg_cv_cc_flag_unused_command_line_argument=yes
18051else
18052  xorg_cv_cc_flag_unused_command_line_argument=no
18053fi
18054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055fi
18056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18059	CFLAGS="$xorg_testset_save_CFLAGS"
18060fi
18061
18062found="no"
18063
18064	if test $found = "no" ; then
18065		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18067		fi
18068
18069		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18071		fi
18072
18073		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18074
18075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18076$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18077		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18078		if eval \${$cacheid+:} false; then :
18079  $as_echo_n "(cached) " >&6
18080else
18081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18082/* end confdefs.h.  */
18083int i;
18084int
18085main ()
18086{
18087
18088  ;
18089  return 0;
18090}
18091_ACEOF
18092if ac_fn_c_try_link "$LINENO"; then :
18093  eval $cacheid=yes
18094else
18095  eval $cacheid=no
18096fi
18097rm -f core conftest.err conftest.$ac_objext \
18098    conftest$ac_exeext conftest.$ac_ext
18099fi
18100
18101
18102		CFLAGS="$xorg_testset_save_CFLAGS"
18103
18104		eval supported=\$$cacheid
18105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18106$as_echo "$supported" >&6; }
18107		if test "$supported" = "yes" ; then
18108			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18109			found="yes"
18110		fi
18111	fi
18112
18113
18114fi
18115
18116
18117
18118
18119
18120
18121
18122		CWARNFLAGS="$BASE_CFLAGS"
18123		if  test "x$GCC" = xyes ; then
18124		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18125		fi
18126
18127
18128
18129
18130
18131
18132
18133
18134# Check whether --enable-strict-compilation was given.
18135if test "${enable_strict_compilation+set}" = set; then :
18136  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18137else
18138  STRICT_COMPILE=no
18139fi
18140
18141
18142
18143
18144
18145
18146STRICT_CFLAGS=""
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160xorg_testset_save_CFLAGS="$CFLAGS"
18161
18162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18163	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18167  $as_echo_n "(cached) " >&6
18168else
18169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170/* end confdefs.h.  */
18171int i;
18172_ACEOF
18173if ac_fn_c_try_compile "$LINENO"; then :
18174  xorg_cv_cc_flag_unknown_warning_option=yes
18175else
18176  xorg_cv_cc_flag_unknown_warning_option=no
18177fi
18178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179fi
18180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18183	CFLAGS="$xorg_testset_save_CFLAGS"
18184fi
18185
18186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18189	fi
18190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18194  $as_echo_n "(cached) " >&6
18195else
18196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197/* end confdefs.h.  */
18198int i;
18199_ACEOF
18200if ac_fn_c_try_compile "$LINENO"; then :
18201  xorg_cv_cc_flag_unused_command_line_argument=yes
18202else
18203  xorg_cv_cc_flag_unused_command_line_argument=no
18204fi
18205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206fi
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18209	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18210	CFLAGS="$xorg_testset_save_CFLAGS"
18211fi
18212
18213found="no"
18214
18215	if test $found = "no" ; then
18216		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18218		fi
18219
18220		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18222		fi
18223
18224		CFLAGS="$CFLAGS -pedantic"
18225
18226		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18227$as_echo_n "checking if $CC supports -pedantic... " >&6; }
18228		cacheid=xorg_cv_cc_flag__pedantic
18229		if eval \${$cacheid+:} false; then :
18230  $as_echo_n "(cached) " >&6
18231else
18232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233/* end confdefs.h.  */
18234int i;
18235int
18236main ()
18237{
18238
18239  ;
18240  return 0;
18241}
18242_ACEOF
18243if ac_fn_c_try_link "$LINENO"; then :
18244  eval $cacheid=yes
18245else
18246  eval $cacheid=no
18247fi
18248rm -f core conftest.err conftest.$ac_objext \
18249    conftest$ac_exeext conftest.$ac_ext
18250fi
18251
18252
18253		CFLAGS="$xorg_testset_save_CFLAGS"
18254
18255		eval supported=\$$cacheid
18256		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18257$as_echo "$supported" >&6; }
18258		if test "$supported" = "yes" ; then
18259			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18260			found="yes"
18261		fi
18262	fi
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278xorg_testset_save_CFLAGS="$CFLAGS"
18279
18280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18285  $as_echo_n "(cached) " >&6
18286else
18287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18288/* end confdefs.h.  */
18289int i;
18290_ACEOF
18291if ac_fn_c_try_compile "$LINENO"; then :
18292  xorg_cv_cc_flag_unknown_warning_option=yes
18293else
18294  xorg_cv_cc_flag_unknown_warning_option=no
18295fi
18296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18297fi
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18301	CFLAGS="$xorg_testset_save_CFLAGS"
18302fi
18303
18304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18307	fi
18308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18312  $as_echo_n "(cached) " >&6
18313else
18314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18315/* end confdefs.h.  */
18316int i;
18317_ACEOF
18318if ac_fn_c_try_compile "$LINENO"; then :
18319  xorg_cv_cc_flag_unused_command_line_argument=yes
18320else
18321  xorg_cv_cc_flag_unused_command_line_argument=no
18322fi
18323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18324fi
18325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18328	CFLAGS="$xorg_testset_save_CFLAGS"
18329fi
18330
18331found="no"
18332
18333	if test $found = "no" ; then
18334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336		fi
18337
18338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18340		fi
18341
18342		CFLAGS="$CFLAGS -Werror"
18343
18344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18345$as_echo_n "checking if $CC supports -Werror... " >&6; }
18346		cacheid=xorg_cv_cc_flag__Werror
18347		if eval \${$cacheid+:} false; then :
18348  $as_echo_n "(cached) " >&6
18349else
18350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18351/* end confdefs.h.  */
18352int i;
18353int
18354main ()
18355{
18356
18357  ;
18358  return 0;
18359}
18360_ACEOF
18361if ac_fn_c_try_link "$LINENO"; then :
18362  eval $cacheid=yes
18363else
18364  eval $cacheid=no
18365fi
18366rm -f core conftest.err conftest.$ac_objext \
18367    conftest$ac_exeext conftest.$ac_ext
18368fi
18369
18370
18371		CFLAGS="$xorg_testset_save_CFLAGS"
18372
18373		eval supported=\$$cacheid
18374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18375$as_echo "$supported" >&6; }
18376		if test "$supported" = "yes" ; then
18377			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
18378			found="yes"
18379		fi
18380	fi
18381
18382	if test $found = "no" ; then
18383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18385		fi
18386
18387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18389		fi
18390
18391		CFLAGS="$CFLAGS -errwarn"
18392
18393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
18394$as_echo_n "checking if $CC supports -errwarn... " >&6; }
18395		cacheid=xorg_cv_cc_flag__errwarn
18396		if eval \${$cacheid+:} false; then :
18397  $as_echo_n "(cached) " >&6
18398else
18399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400/* end confdefs.h.  */
18401int i;
18402int
18403main ()
18404{
18405
18406  ;
18407  return 0;
18408}
18409_ACEOF
18410if ac_fn_c_try_link "$LINENO"; then :
18411  eval $cacheid=yes
18412else
18413  eval $cacheid=no
18414fi
18415rm -f core conftest.err conftest.$ac_objext \
18416    conftest$ac_exeext conftest.$ac_ext
18417fi
18418
18419
18420		CFLAGS="$xorg_testset_save_CFLAGS"
18421
18422		eval supported=\$$cacheid
18423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18424$as_echo "$supported" >&6; }
18425		if test "$supported" = "yes" ; then
18426			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
18427			found="yes"
18428		fi
18429	fi
18430
18431
18432
18433# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
18434# activate it with -Werror, so we add it here explicitly.
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448xorg_testset_save_CFLAGS="$CFLAGS"
18449
18450if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18451	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18453$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18454if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
18455  $as_echo_n "(cached) " >&6
18456else
18457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18458/* end confdefs.h.  */
18459int i;
18460_ACEOF
18461if ac_fn_c_try_compile "$LINENO"; then :
18462  xorg_cv_cc_flag_unknown_warning_option=yes
18463else
18464  xorg_cv_cc_flag_unknown_warning_option=no
18465fi
18466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467fi
18468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18469$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18471	CFLAGS="$xorg_testset_save_CFLAGS"
18472fi
18473
18474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18477	fi
18478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18480$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18481if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
18482  $as_echo_n "(cached) " >&6
18483else
18484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18485/* end confdefs.h.  */
18486int i;
18487_ACEOF
18488if ac_fn_c_try_compile "$LINENO"; then :
18489  xorg_cv_cc_flag_unused_command_line_argument=yes
18490else
18491  xorg_cv_cc_flag_unused_command_line_argument=no
18492fi
18493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494fi
18495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18496$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18497	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18498	CFLAGS="$xorg_testset_save_CFLAGS"
18499fi
18500
18501found="no"
18502
18503	if test $found = "no" ; then
18504		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18505			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18506		fi
18507
18508		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18509			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18510		fi
18511
18512		CFLAGS="$CFLAGS -Werror=attributes"
18513
18514		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
18515$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
18516		cacheid=xorg_cv_cc_flag__Werror_attributes
18517		if eval \${$cacheid+:} false; then :
18518  $as_echo_n "(cached) " >&6
18519else
18520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18521/* end confdefs.h.  */
18522int i;
18523int
18524main ()
18525{
18526
18527  ;
18528  return 0;
18529}
18530_ACEOF
18531if ac_fn_c_try_link "$LINENO"; then :
18532  eval $cacheid=yes
18533else
18534  eval $cacheid=no
18535fi
18536rm -f core conftest.err conftest.$ac_objext \
18537    conftest$ac_exeext conftest.$ac_ext
18538fi
18539
18540
18541		CFLAGS="$xorg_testset_save_CFLAGS"
18542
18543		eval supported=\$$cacheid
18544		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18545$as_echo "$supported" >&6; }
18546		if test "$supported" = "yes" ; then
18547			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18548			found="yes"
18549		fi
18550	fi
18551
18552
18553
18554if test "x$STRICT_COMPILE" = "xyes"; then
18555    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18556    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18557fi
18558
18559
18560
18561
18562
18563
18564cat >>confdefs.h <<_ACEOF
18565#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18566_ACEOF
18567
18568	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18569	if test "x$PVM" = "x"; then
18570		PVM="0"
18571	fi
18572
18573cat >>confdefs.h <<_ACEOF
18574#define PACKAGE_VERSION_MINOR $PVM
18575_ACEOF
18576
18577	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18578	if test "x$PVP" = "x"; then
18579		PVP="0"
18580	fi
18581
18582cat >>confdefs.h <<_ACEOF
18583#define PACKAGE_VERSION_PATCHLEVEL $PVP
18584_ACEOF
18585
18586
18587
18588CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18589mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18590|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18591echo 'git directory not found: installing possibly empty changelog.' >&2)"
18592
18593
18594
18595
18596macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18597INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18598mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18599|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18600echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18601
18602
18603
18604
18605
18606
18607if test x$APP_MAN_SUFFIX = x    ; then
18608    APP_MAN_SUFFIX=1
18609fi
18610if test x$APP_MAN_DIR = x    ; then
18611    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18612fi
18613
18614if test x$LIB_MAN_SUFFIX = x    ; then
18615    LIB_MAN_SUFFIX=3
18616fi
18617if test x$LIB_MAN_DIR = x    ; then
18618    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18619fi
18620
18621if test x$FILE_MAN_SUFFIX = x    ; then
18622    case $host_os in
18623	solaris*)	FILE_MAN_SUFFIX=4  ;;
18624	*)		FILE_MAN_SUFFIX=5  ;;
18625    esac
18626fi
18627if test x$FILE_MAN_DIR = x    ; then
18628    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18629fi
18630
18631if test x$MISC_MAN_SUFFIX = x    ; then
18632    case $host_os in
18633	solaris*)	MISC_MAN_SUFFIX=5  ;;
18634	*)		MISC_MAN_SUFFIX=7  ;;
18635    esac
18636fi
18637if test x$MISC_MAN_DIR = x    ; then
18638    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18639fi
18640
18641if test x$DRIVER_MAN_SUFFIX = x    ; then
18642    case $host_os in
18643	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
18644	*)		DRIVER_MAN_SUFFIX=4  ;;
18645    esac
18646fi
18647if test x$DRIVER_MAN_DIR = x    ; then
18648    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18649fi
18650
18651if test x$ADMIN_MAN_SUFFIX = x    ; then
18652    case $host_os in
18653	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
18654	*)		ADMIN_MAN_SUFFIX=8  ;;
18655    esac
18656fi
18657if test x$ADMIN_MAN_DIR = x    ; then
18658    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18659fi
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675XORG_MAN_PAGE="X Version 11"
18676
18677MAN_SUBSTS="\
18678	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18679	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18680	-e 's|__xservername__|Xorg|g' \
18681	-e 's|__xconfigfile__|xorg.conf|g' \
18682	-e 's|__projectroot__|\$(prefix)|g' \
18683	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
18684	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18685	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18686	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18687	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18688	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18689	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18690
18691
18692
18693# Check whether --enable-silent-rules was given.
18694if test "${enable_silent_rules+set}" = set; then :
18695  enableval=$enable_silent_rules;
18696fi
18697
18698case $enable_silent_rules in # (((
18699  yes) AM_DEFAULT_VERBOSITY=0;;
18700   no) AM_DEFAULT_VERBOSITY=1;;
18701    *) AM_DEFAULT_VERBOSITY=0;;
18702esac
18703am_make=${MAKE-make}
18704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18705$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18706if ${am_cv_make_support_nested_variables+:} false; then :
18707  $as_echo_n "(cached) " >&6
18708else
18709  if $as_echo 'TRUE=$(BAR$(V))
18710BAR0=false
18711BAR1=true
18712V=1
18713am__doit:
18714	@$(TRUE)
18715.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18716  am_cv_make_support_nested_variables=yes
18717else
18718  am_cv_make_support_nested_variables=no
18719fi
18720fi
18721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18722$as_echo "$am_cv_make_support_nested_variables" >&6; }
18723if test $am_cv_make_support_nested_variables = yes; then
18724    AM_V='$(V)'
18725  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18726else
18727  AM_V=$AM_DEFAULT_VERBOSITY
18728  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18729fi
18730AM_BACKSLASH='\'
18731
18732
18733
18734
18735# Check whether --enable-devel-docs was given.
18736if test "${enable_devel_docs+set}" = set; then :
18737  enableval=$enable_devel_docs; build_devel_docs=$enableval
18738else
18739  build_devel_docs=yes
18740fi
18741
18742
18743 if test x$build_devel_docs = xyes; then
18744  ENABLE_DEVEL_DOCS_TRUE=
18745  ENABLE_DEVEL_DOCS_FALSE='#'
18746else
18747  ENABLE_DEVEL_DOCS_TRUE='#'
18748  ENABLE_DEVEL_DOCS_FALSE=
18749fi
18750
18751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18752$as_echo_n "checking whether to build developer documentation... " >&6; }
18753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18754$as_echo "$build_devel_docs" >&6; }
18755
18756
18757
18758
18759
18760
18761# Check whether --with-doxygen was given.
18762if test "${with_doxygen+set}" = set; then :
18763  withval=$with_doxygen; use_doxygen=$withval
18764else
18765  use_doxygen=auto
18766fi
18767
18768
18769
18770if test "x$use_doxygen" = x"auto"; then
18771   # Extract the first word of "doxygen", so it can be a program name with args.
18772set dummy doxygen; ac_word=$2
18773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18774$as_echo_n "checking for $ac_word... " >&6; }
18775if ${ac_cv_path_DOXYGEN+:} false; then :
18776  $as_echo_n "(cached) " >&6
18777else
18778  case $DOXYGEN in
18779  [\\/]* | ?:[\\/]*)
18780  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18781  ;;
18782  *)
18783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18784for as_dir in $PATH
18785do
18786  IFS=$as_save_IFS
18787  test -z "$as_dir" && as_dir=.
18788    for ac_exec_ext in '' $ac_executable_extensions; do
18789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18790    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18792    break 2
18793  fi
18794done
18795  done
18796IFS=$as_save_IFS
18797
18798  ;;
18799esac
18800fi
18801DOXYGEN=$ac_cv_path_DOXYGEN
18802if test -n "$DOXYGEN"; then
18803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18804$as_echo "$DOXYGEN" >&6; }
18805else
18806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807$as_echo "no" >&6; }
18808fi
18809
18810
18811   if test "x$DOXYGEN" = "x"; then
18812        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5
18813$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;}
18814	have_doxygen=no
18815   else
18816        have_doxygen=yes
18817   fi
18818elif test "x$use_doxygen" = x"yes" ; then
18819   # Extract the first word of "doxygen", so it can be a program name with args.
18820set dummy doxygen; ac_word=$2
18821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18822$as_echo_n "checking for $ac_word... " >&6; }
18823if ${ac_cv_path_DOXYGEN+:} false; then :
18824  $as_echo_n "(cached) " >&6
18825else
18826  case $DOXYGEN in
18827  [\\/]* | ?:[\\/]*)
18828  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
18829  ;;
18830  *)
18831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18832for as_dir in $PATH
18833do
18834  IFS=$as_save_IFS
18835  test -z "$as_dir" && as_dir=.
18836    for ac_exec_ext in '' $ac_executable_extensions; do
18837  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18838    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
18839    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18840    break 2
18841  fi
18842done
18843  done
18844IFS=$as_save_IFS
18845
18846  ;;
18847esac
18848fi
18849DOXYGEN=$ac_cv_path_DOXYGEN
18850if test -n "$DOXYGEN"; then
18851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
18852$as_echo "$DOXYGEN" >&6; }
18853else
18854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18855$as_echo "no" >&6; }
18856fi
18857
18858
18859   if test "x$DOXYGEN" = "x"; then
18860        as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5
18861   fi
18862   have_doxygen=yes
18863elif test "x$use_doxygen" = x"no" ; then
18864   if test "x$DOXYGEN" != "x"; then
18865      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5
18866$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;}
18867   fi
18868   have_doxygen=no
18869else
18870   as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5
18871fi
18872
18873
18874HAVE_DOT=no
18875if test "x$have_doxygen" = "xyes"; then
18876  # Extract the first word of "dot", so it can be a program name with args.
18877set dummy dot; ac_word=$2
18878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18879$as_echo_n "checking for $ac_word... " >&6; }
18880if ${ac_cv_path_DOT+:} false; then :
18881  $as_echo_n "(cached) " >&6
18882else
18883  case $DOT in
18884  [\\/]* | ?:[\\/]*)
18885  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18886  ;;
18887  *)
18888  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18889for as_dir in $PATH
18890do
18891  IFS=$as_save_IFS
18892  test -z "$as_dir" && as_dir=.
18893    for ac_exec_ext in '' $ac_executable_extensions; do
18894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18895    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18897    break 2
18898  fi
18899done
18900  done
18901IFS=$as_save_IFS
18902
18903  ;;
18904esac
18905fi
18906DOT=$ac_cv_path_DOT
18907if test -n "$DOT"; then
18908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
18909$as_echo "$DOT" >&6; }
18910else
18911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18912$as_echo "no" >&6; }
18913fi
18914
18915
18916    if test "x$DOT" != "x"; then
18917      HAVE_DOT=yes
18918    fi
18919fi
18920
18921
18922 if test "$HAVE_DOT" = "yes"; then
18923  HAVE_DOT_TRUE=
18924  HAVE_DOT_FALSE='#'
18925else
18926  HAVE_DOT_TRUE='#'
18927  HAVE_DOT_FALSE=
18928fi
18929
18930 if test "$have_doxygen" = yes; then
18931  HAVE_DOXYGEN_TRUE=
18932  HAVE_DOXYGEN_FALSE='#'
18933else
18934  HAVE_DOXYGEN_TRUE='#'
18935  HAVE_DOXYGEN_FALSE=
18936fi
18937
18938
18939
18940# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual
18941if test x"$HAVE_DOT" = xno; then
18942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5
18943$as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;}
18944fi
18945
18946
18947pkg_failed=no
18948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
18949$as_echo_n "checking for CHECK... " >&6; }
18950
18951if test -n "$CHECK_CFLAGS"; then
18952    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
18953 elif test -n "$PKG_CONFIG"; then
18954    if test -n "$PKG_CONFIG" && \
18955    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18956  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18957  ac_status=$?
18958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18959  test $ac_status = 0; }; then
18960  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
18961		      test "x$?" != "x0" && pkg_failed=yes
18962else
18963  pkg_failed=yes
18964fi
18965 else
18966    pkg_failed=untried
18967fi
18968if test -n "$CHECK_LIBS"; then
18969    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
18970 elif test -n "$PKG_CONFIG"; then
18971    if test -n "$PKG_CONFIG" && \
18972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
18973  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
18974  ac_status=$?
18975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18976  test $ac_status = 0; }; then
18977  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
18978		      test "x$?" != "x0" && pkg_failed=yes
18979else
18980  pkg_failed=yes
18981fi
18982 else
18983    pkg_failed=untried
18984fi
18985
18986
18987
18988if test $pkg_failed = yes; then
18989   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990$as_echo "no" >&6; }
18991
18992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18993        _pkg_short_errors_supported=yes
18994else
18995        _pkg_short_errors_supported=no
18996fi
18997        if test $_pkg_short_errors_supported = yes; then
18998	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
18999        else
19000	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
19001        fi
19002	# Put the nasty error message in config.log where it belongs
19003	echo "$CHECK_PKG_ERRORS" >&5
19004
19005	HAVE_CHECK=no
19006elif test $pkg_failed = untried; then
19007     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008$as_echo "no" >&6; }
19009	HAVE_CHECK=no
19010else
19011	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
19012	CHECK_LIBS=$pkg_cv_CHECK_LIBS
19013        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19014$as_echo "yes" >&6; }
19015	HAVE_CHECK=yes
19016fi
19017 if test x$HAVE_CHECK = xyes; then
19018  HAVE_CHECK_TRUE=
19019  HAVE_CHECK_FALSE='#'
19020else
19021  HAVE_CHECK_TRUE='#'
19022  HAVE_CHECK_FALSE=
19023fi
19024
19025
19026XSLTPROC=no
19027HTML_CHECK_RESULT=no
19028if test x"$HAVE_CHECK" = xyes; then
19029        # Extract the first word of "xsltproc", so it can be a program name with args.
19030set dummy xsltproc; ac_word=$2
19031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19032$as_echo_n "checking for $ac_word... " >&6; }
19033if ${ac_cv_path_XSLTPROC+:} false; then :
19034  $as_echo_n "(cached) " >&6
19035else
19036  case $XSLTPROC in
19037  [\\/]* | ?:[\\/]*)
19038  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19039  ;;
19040  *)
19041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19042for as_dir in $PATH
19043do
19044  IFS=$as_save_IFS
19045  test -z "$as_dir" && as_dir=.
19046    for ac_exec_ext in '' $ac_executable_extensions; do
19047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19048    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19050    break 2
19051  fi
19052done
19053  done
19054IFS=$as_save_IFS
19055
19056  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
19057  ;;
19058esac
19059fi
19060XSLTPROC=$ac_cv_path_XSLTPROC
19061if test -n "$XSLTPROC"; then
19062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
19063$as_echo "$XSLTPROC" >&6; }
19064else
19065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066$as_echo "no" >&6; }
19067fi
19068
19069
19070        if test x"$XSLTPROC" != xno; then
19071                HTML_CHECK_RESULT=yes
19072        fi
19073fi
19074
19075
19076# Checks for pkg-config packages
19077
19078pkg_failed=no
19079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5
19080$as_echo_n "checking for XCBPROTO... " >&6; }
19081
19082if test -n "$XCBPROTO_CFLAGS"; then
19083    pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
19084 elif test -n "$PKG_CONFIG"; then
19085    if test -n "$PKG_CONFIG" && \
19086    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5
19087  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5
19088  ac_status=$?
19089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19090  test $ac_status = 0; }; then
19091  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.11" 2>/dev/null`
19092		      test "x$?" != "x0" && pkg_failed=yes
19093else
19094  pkg_failed=yes
19095fi
19096 else
19097    pkg_failed=untried
19098fi
19099if test -n "$XCBPROTO_LIBS"; then
19100    pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
19101 elif test -n "$PKG_CONFIG"; then
19102    if test -n "$PKG_CONFIG" && \
19103    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.11\""; } >&5
19104  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.11") 2>&5
19105  ac_status=$?
19106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19107  test $ac_status = 0; }; then
19108  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.11" 2>/dev/null`
19109		      test "x$?" != "x0" && pkg_failed=yes
19110else
19111  pkg_failed=yes
19112fi
19113 else
19114    pkg_failed=untried
19115fi
19116
19117
19118
19119if test $pkg_failed = yes; then
19120   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19121$as_echo "no" >&6; }
19122
19123if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19124        _pkg_short_errors_supported=yes
19125else
19126        _pkg_short_errors_supported=no
19127fi
19128        if test $_pkg_short_errors_supported = yes; then
19129	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1`
19130        else
19131	        XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.11" 2>&1`
19132        fi
19133	# Put the nasty error message in config.log where it belongs
19134	echo "$XCBPROTO_PKG_ERRORS" >&5
19135
19136	as_fn_error $? "Package requirements (xcb-proto >= 1.11) were not met:
19137
19138$XCBPROTO_PKG_ERRORS
19139
19140Consider adjusting the PKG_CONFIG_PATH environment variable if you
19141installed software in a non-standard prefix.
19142
19143Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19144and XCBPROTO_LIBS to avoid the need to call pkg-config.
19145See the pkg-config man page for more details." "$LINENO" 5
19146elif test $pkg_failed = untried; then
19147     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148$as_echo "no" >&6; }
19149	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19151as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19152is in your PATH or set the PKG_CONFIG environment variable to the full
19153path to pkg-config.
19154
19155Alternatively, you may set the environment variables XCBPROTO_CFLAGS
19156and XCBPROTO_LIBS to avoid the need to call pkg-config.
19157See the pkg-config man page for more details.
19158
19159To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19160See \`config.log' for more details" "$LINENO" 5; }
19161else
19162	XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
19163	XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
19164        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165$as_echo "yes" >&6; }
19166
19167fi
19168NEEDED="pthread-stubs xau >= 0.99.2"
19169
19170pkg_failed=no
19171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5
19172$as_echo_n "checking for NEEDED... " >&6; }
19173
19174if test -n "$NEEDED_CFLAGS"; then
19175    pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
19176 elif test -n "$PKG_CONFIG"; then
19177    if test -n "$PKG_CONFIG" && \
19178    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19179  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19180  ac_status=$?
19181  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19182  test $ac_status = 0; }; then
19183  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
19184		      test "x$?" != "x0" && pkg_failed=yes
19185else
19186  pkg_failed=yes
19187fi
19188 else
19189    pkg_failed=untried
19190fi
19191if test -n "$NEEDED_LIBS"; then
19192    pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
19193 elif test -n "$PKG_CONFIG"; then
19194    if test -n "$PKG_CONFIG" && \
19195    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5
19196  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
19197  ac_status=$?
19198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19199  test $ac_status = 0; }; then
19200  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
19201		      test "x$?" != "x0" && pkg_failed=yes
19202else
19203  pkg_failed=yes
19204fi
19205 else
19206    pkg_failed=untried
19207fi
19208
19209
19210
19211if test $pkg_failed = yes; then
19212   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19213$as_echo "no" >&6; }
19214
19215if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19216        _pkg_short_errors_supported=yes
19217else
19218        _pkg_short_errors_supported=no
19219fi
19220        if test $_pkg_short_errors_supported = yes; then
19221	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1`
19222        else
19223	        NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1`
19224        fi
19225	# Put the nasty error message in config.log where it belongs
19226	echo "$NEEDED_PKG_ERRORS" >&5
19227
19228	as_fn_error $? "Package requirements ($NEEDED) were not met:
19229
19230$NEEDED_PKG_ERRORS
19231
19232Consider adjusting the PKG_CONFIG_PATH environment variable if you
19233installed software in a non-standard prefix.
19234
19235Alternatively, you may set the environment variables NEEDED_CFLAGS
19236and NEEDED_LIBS to avoid the need to call pkg-config.
19237See the pkg-config man page for more details." "$LINENO" 5
19238elif test $pkg_failed = untried; then
19239     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240$as_echo "no" >&6; }
19241	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19243as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19244is in your PATH or set the PKG_CONFIG environment variable to the full
19245path to pkg-config.
19246
19247Alternatively, you may set the environment variables NEEDED_CFLAGS
19248and NEEDED_LIBS to avoid the need to call pkg-config.
19249See the pkg-config man page for more details.
19250
19251To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19252See \`config.log' for more details" "$LINENO" 5; }
19253else
19254	NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
19255	NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
19256        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19257$as_echo "yes" >&6; }
19258
19259fi
19260
19261have_xdmcp="no"
19262
19263pkg_failed=no
19264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5
19265$as_echo_n "checking for XDMCP... " >&6; }
19266
19267if test -n "$XDMCP_CFLAGS"; then
19268    pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
19269 elif test -n "$PKG_CONFIG"; then
19270    if test -n "$PKG_CONFIG" && \
19271    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19272  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19273  ac_status=$?
19274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19275  test $ac_status = 0; }; then
19276  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
19277		      test "x$?" != "x0" && pkg_failed=yes
19278else
19279  pkg_failed=yes
19280fi
19281 else
19282    pkg_failed=untried
19283fi
19284if test -n "$XDMCP_LIBS"; then
19285    pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
19286 elif test -n "$PKG_CONFIG"; then
19287    if test -n "$PKG_CONFIG" && \
19288    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5
19289  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
19290  ac_status=$?
19291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19292  test $ac_status = 0; }; then
19293  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
19294		      test "x$?" != "x0" && pkg_failed=yes
19295else
19296  pkg_failed=yes
19297fi
19298 else
19299    pkg_failed=untried
19300fi
19301
19302
19303
19304if test $pkg_failed = yes; then
19305   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19306$as_echo "no" >&6; }
19307
19308if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19309        _pkg_short_errors_supported=yes
19310else
19311        _pkg_short_errors_supported=no
19312fi
19313        if test $_pkg_short_errors_supported = yes; then
19314	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1`
19315        else
19316	        XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1`
19317        fi
19318	# Put the nasty error message in config.log where it belongs
19319	echo "$XDMCP_PKG_ERRORS" >&5
19320
19321	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322$as_echo "no" >&6; }
19323elif test $pkg_failed = untried; then
19324     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19325$as_echo "no" >&6; }
19326	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19327$as_echo "no" >&6; }
19328else
19329	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19330	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332$as_echo "yes" >&6; }
19333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5
19334$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; }
19335if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then :
19336  $as_echo_n "(cached) " >&6
19337else
19338  ac_check_lib_save_LIBS=$LIBS
19339LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
19340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341/* end confdefs.h.  */
19342
19343/* Override any GCC internal prototype to avoid an error.
19344   Use char because int might match the return type of a GCC
19345   builtin and then its argument prototype would still apply.  */
19346#ifdef __cplusplus
19347extern "C"
19348#endif
19349char XdmcpWrap ();
19350int
19351main ()
19352{
19353return XdmcpWrap ();
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358if ac_fn_c_try_link "$LINENO"; then :
19359  ac_cv_lib_Xdmcp_XdmcpWrap=yes
19360else
19361  ac_cv_lib_Xdmcp_XdmcpWrap=no
19362fi
19363rm -f core conftest.err conftest.$ac_objext \
19364    conftest$ac_exeext conftest.$ac_ext
19365LIBS=$ac_check_lib_save_LIBS
19366fi
19367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
19368$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
19369if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then :
19370
19371
19372$as_echo "#define HASXDMAUTH 1" >>confdefs.h
19373
19374                NEEDED="$NEEDED xdmcp"
19375                have_xdmcp="yes"
19376
19377else
19378
19379                XDMCP_CFLAGS=
19380                XDMCP_LIBS=
19381
19382fi
19383
19384fi
19385
19386
19387
19388# Find the xcb-proto protocol descriptions
19389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5
19390$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; }
19391XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
19392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5
19393$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; }
19394
19395
19396# Find the xcb-proto version
19397XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto`
19398
19399
19400# Find the xcbgen Python package
19401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5
19402$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; }
19403XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
19404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5
19405$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; }
19406
19407
19408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19409$as_echo_n "checking for ANSI C header files... " >&6; }
19410if ${ac_cv_header_stdc+:} false; then :
19411  $as_echo_n "(cached) " >&6
19412else
19413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414/* end confdefs.h.  */
19415#include <stdlib.h>
19416#include <stdarg.h>
19417#include <string.h>
19418#include <float.h>
19419
19420int
19421main ()
19422{
19423
19424  ;
19425  return 0;
19426}
19427_ACEOF
19428if ac_fn_c_try_compile "$LINENO"; then :
19429  ac_cv_header_stdc=yes
19430else
19431  ac_cv_header_stdc=no
19432fi
19433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434
19435if test $ac_cv_header_stdc = yes; then
19436  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19438/* end confdefs.h.  */
19439#include <string.h>
19440
19441_ACEOF
19442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19443  $EGREP "memchr" >/dev/null 2>&1; then :
19444
19445else
19446  ac_cv_header_stdc=no
19447fi
19448rm -f conftest*
19449
19450fi
19451
19452if test $ac_cv_header_stdc = yes; then
19453  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455/* end confdefs.h.  */
19456#include <stdlib.h>
19457
19458_ACEOF
19459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19460  $EGREP "free" >/dev/null 2>&1; then :
19461
19462else
19463  ac_cv_header_stdc=no
19464fi
19465rm -f conftest*
19466
19467fi
19468
19469if test $ac_cv_header_stdc = yes; then
19470  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19471  if test "$cross_compiling" = yes; then :
19472  :
19473else
19474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475/* end confdefs.h.  */
19476#include <ctype.h>
19477#include <stdlib.h>
19478#if ((' ' & 0x0FF) == 0x020)
19479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19481#else
19482# define ISLOWER(c) \
19483		   (('a' <= (c) && (c) <= 'i') \
19484		     || ('j' <= (c) && (c) <= 'r') \
19485		     || ('s' <= (c) && (c) <= 'z'))
19486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19487#endif
19488
19489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19490int
19491main ()
19492{
19493  int i;
19494  for (i = 0; i < 256; i++)
19495    if (XOR (islower (i), ISLOWER (i))
19496	|| toupper (i) != TOUPPER (i))
19497      return 2;
19498  return 0;
19499}
19500_ACEOF
19501if ac_fn_c_try_run "$LINENO"; then :
19502
19503else
19504  ac_cv_header_stdc=no
19505fi
19506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19507  conftest.$ac_objext conftest.beam conftest.$ac_ext
19508fi
19509
19510fi
19511fi
19512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19513$as_echo "$ac_cv_header_stdc" >&6; }
19514if test $ac_cv_header_stdc = yes; then
19515
19516$as_echo "#define STDC_HEADERS 1" >>confdefs.h
19517
19518fi
19519
19520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
19521$as_echo_n "checking for library containing getaddrinfo... " >&6; }
19522if ${ac_cv_search_getaddrinfo+:} false; then :
19523  $as_echo_n "(cached) " >&6
19524else
19525  ac_func_search_save_LIBS=$LIBS
19526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19527/* end confdefs.h.  */
19528
19529/* Override any GCC internal prototype to avoid an error.
19530   Use char because int might match the return type of a GCC
19531   builtin and then its argument prototype would still apply.  */
19532#ifdef __cplusplus
19533extern "C"
19534#endif
19535char getaddrinfo ();
19536int
19537main ()
19538{
19539return getaddrinfo ();
19540  ;
19541  return 0;
19542}
19543_ACEOF
19544for ac_lib in '' socket; do
19545  if test -z "$ac_lib"; then
19546    ac_res="none required"
19547  else
19548    ac_res=-l$ac_lib
19549    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19550  fi
19551  if ac_fn_c_try_link "$LINENO"; then :
19552  ac_cv_search_getaddrinfo=$ac_res
19553fi
19554rm -f core conftest.err conftest.$ac_objext \
19555    conftest$ac_exeext
19556  if ${ac_cv_search_getaddrinfo+:} false; then :
19557  break
19558fi
19559done
19560if ${ac_cv_search_getaddrinfo+:} false; then :
19561
19562else
19563  ac_cv_search_getaddrinfo=no
19564fi
19565rm conftest.$ac_ext
19566LIBS=$ac_func_search_save_LIBS
19567fi
19568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
19569$as_echo "$ac_cv_search_getaddrinfo" >&6; }
19570ac_res=$ac_cv_search_getaddrinfo
19571if test "$ac_res" != no; then :
19572  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19573
19574fi
19575
19576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
19577$as_echo_n "checking for library containing connect... " >&6; }
19578if ${ac_cv_search_connect+:} false; then :
19579  $as_echo_n "(cached) " >&6
19580else
19581  ac_func_search_save_LIBS=$LIBS
19582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583/* end confdefs.h.  */
19584
19585/* Override any GCC internal prototype to avoid an error.
19586   Use char because int might match the return type of a GCC
19587   builtin and then its argument prototype would still apply.  */
19588#ifdef __cplusplus
19589extern "C"
19590#endif
19591char connect ();
19592int
19593main ()
19594{
19595return connect ();
19596  ;
19597  return 0;
19598}
19599_ACEOF
19600for ac_lib in '' socket; do
19601  if test -z "$ac_lib"; then
19602    ac_res="none required"
19603  else
19604    ac_res=-l$ac_lib
19605    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19606  fi
19607  if ac_fn_c_try_link "$LINENO"; then :
19608  ac_cv_search_connect=$ac_res
19609fi
19610rm -f core conftest.err conftest.$ac_objext \
19611    conftest$ac_exeext
19612  if ${ac_cv_search_connect+:} false; then :
19613  break
19614fi
19615done
19616if ${ac_cv_search_connect+:} false; then :
19617
19618else
19619  ac_cv_search_connect=no
19620fi
19621rm conftest.$ac_ext
19622LIBS=$ac_func_search_save_LIBS
19623fi
19624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
19625$as_echo "$ac_cv_search_connect" >&6; }
19626ac_res=$ac_cv_search_connect
19627if test "$ac_res" != no; then :
19628  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19629
19630fi
19631
19632
19633# Check whether --enable-sendfds was given.
19634if test "${enable_sendfds+set}" = set; then :
19635  enableval=$enable_sendfds; sendfds=$enableval
19636else
19637  sendfds=auto
19638fi
19639
19640
19641case x$sendfds in
19642xauto)
19643        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
19644$as_echo_n "checking for library containing sendmsg... " >&6; }
19645if ${ac_cv_search_sendmsg+:} false; then :
19646  $as_echo_n "(cached) " >&6
19647else
19648  ac_func_search_save_LIBS=$LIBS
19649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650/* end confdefs.h.  */
19651
19652/* Override any GCC internal prototype to avoid an error.
19653   Use char because int might match the return type of a GCC
19654   builtin and then its argument prototype would still apply.  */
19655#ifdef __cplusplus
19656extern "C"
19657#endif
19658char sendmsg ();
19659int
19660main ()
19661{
19662return sendmsg ();
19663  ;
19664  return 0;
19665}
19666_ACEOF
19667for ac_lib in '' socket; do
19668  if test -z "$ac_lib"; then
19669    ac_res="none required"
19670  else
19671    ac_res=-l$ac_lib
19672    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19673  fi
19674  if ac_fn_c_try_link "$LINENO"; then :
19675  ac_cv_search_sendmsg=$ac_res
19676fi
19677rm -f core conftest.err conftest.$ac_objext \
19678    conftest$ac_exeext
19679  if ${ac_cv_search_sendmsg+:} false; then :
19680  break
19681fi
19682done
19683if ${ac_cv_search_sendmsg+:} false; then :
19684
19685else
19686  ac_cv_search_sendmsg=no
19687fi
19688rm conftest.$ac_ext
19689LIBS=$ac_func_search_save_LIBS
19690fi
19691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
19692$as_echo "$ac_cv_search_sendmsg" >&6; }
19693ac_res=$ac_cv_search_sendmsg
19694if test "$ac_res" != no; then :
19695  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19696  sendfds="yes"
19697else
19698  sendfds="no"
19699fi
19700
19701        ;;
19702esac
19703
19704# XPG4v2/UNIX95 added msg_control - check to see if we need to define
19705# _XOPEN_SOURCE to get it (such as on Solaris)
19706ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19707$ac_includes_default
19708#include <sys/socket.h>
19709
19710"
19711if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19712
19713fi
19714
19715# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19716if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19717    unset ac_cv_member_struct_msghdr_msg_control
19718    { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19719$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19720    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19721#define _XOPEN_SOURCE 600
19722$ac_includes_default
19723#include <sys/socket.h>
19724
19725"
19726if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19727
19728$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19729
19730
19731fi
19732
19733fi
19734# If that didn't work, fall back to XPG5/UNIX98 with C89
19735if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19736    unset ac_cv_member_struct_msghdr_msg_control
19737    { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19738$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19739    ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19740#define _XOPEN_SOURCE 500
19741$ac_includes_default
19742#include <sys/socket.h>
19743
19744"
19745if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19746
19747$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19748
19749
19750else
19751  sendfds="no"
19752fi
19753
19754fi
19755
19756case x$sendfds in
19757xyes)
19758
19759$as_echo "#define HAVE_SENDMSG 1" >>confdefs.h
19760
19761        ;;
19762esac
19763
19764have_win32="no"
19765lt_enable_auto_import=""
19766case $host_os in
19767mingw*)
19768        have_win32="yes"
19769        lt_enable_auto_import="-Wl,--enable-auto-import"
19770        ;;
19771linux*)
19772
19773$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h
19774
19775        ;;
19776esac
19777
19778
19779 if test "x${have_win32}" = "xyes"; then
19780  XCB_HAVE_WIN32_TRUE=
19781  XCB_HAVE_WIN32_FALSE='#'
19782else
19783  XCB_HAVE_WIN32_TRUE='#'
19784  XCB_HAVE_WIN32_FALSE=
19785fi
19786
19787
19788
19789# Check whether --with-queue-size was given.
19790if test "${with_queue_size+set}" = set; then :
19791  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
19792else
19793  xcb_queue_buffer_size=16384
19794fi
19795
19796
19797cat >>confdefs.h <<_ACEOF
19798#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
19799_ACEOF
19800
19801
19802ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h>
19803                  #include <sys/un.h>
19804
19805"
19806if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
19807
19808$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h
19809
19810fi
19811
19812
19813for ac_header in tsol/label.h
19814do :
19815  ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default"
19816if test "x$ac_cv_header_tsol_label_h" = xyes; then :
19817  cat >>confdefs.h <<_ACEOF
19818#define HAVE_TSOL_LABEL_H 1
19819_ACEOF
19820
19821fi
19822
19823done
19824
19825for ac_func in is_system_labeled
19826do :
19827  ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled"
19828if test "x$ac_cv_func_is_system_labeled" = xyes; then :
19829  cat >>confdefs.h <<_ACEOF
19830#define HAVE_IS_SYSTEM_LABELED 1
19831_ACEOF
19832
19833fi
19834done
19835
19836
19837ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h>
19838"
19839if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then :
19840
19841else
19842  ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h>
19843"
19844if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then :
19845  $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h
19846
19847else
19848
19849$as_echo "#define IOV_MAX 16" >>confdefs.h
19850
19851fi
19852
19853fi
19854
19855
19856xcbincludedir='${includedir}/xcb'
19857
19858
19859
19860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5
19861$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; }
19862
19863save_CFLAGS=${CFLAGS}
19864CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
19865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866/* end confdefs.h.  */
19867
19868#pragma GCC visibility push(hidden)
19869extern void f(int);
19870#pragma GCC visibility pop
19871
19872int
19873main ()
19874{
19875
19876
19877  ;
19878  return 0;
19879}
19880_ACEOF
19881if ac_fn_c_try_compile "$LINENO"; then :
19882
19883$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h
19884
19885    :
19886    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19887$as_echo "yes" >&6; }
19888else
19889  :
19890    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19891$as_echo "no" >&6; }
19892fi
19893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894
19895CFLAGS=${save_CFLAGS}
19896
19897
19898ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19899if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19900
19901$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
19902
19903fi
19904
19905
19906case $host_os in
19907        # darwin through Snow Leopard has poll() but can't be used to poll character devices.
19908        darwin[789]*|darwin10*) ;;
19909        darwin*)
19910                _ac_xorg_macosx_version_min=""
19911                if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then
19912                        _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'`
19913                else
19914                        _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET
19915                fi
19916                case $_ac_xorg_macosx_version_min in
19917                        10.[0123456]|10.[0123456].*) ;;
19918                        *)
19919                                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19920if test "x$ac_cv_func_poll" = xyes; then :
19921
19922$as_echo "#define USE_POLL 1" >>confdefs.h
19923
19924fi
19925
19926                        ;;
19927                esac
19928                unset _ac_xorg_macosx_version_min
19929                ;;
19930        *)
19931                ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19932if test "x$ac_cv_func_poll" = xyes; then :
19933
19934$as_echo "#define USE_POLL 1" >>confdefs.h
19935
19936fi
19937
19938        ;;
19939esac
19940
19941
19942
19943# Check whether --enable-composite was given.
19944if test "${enable_composite+set}" = set; then :
19945  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
19946else
19947  BUILD_COMPOSITE="yes"
19948fi
19949
19950
19951 if test "x$BUILD_COMPOSITE" = "xyes"; then
19952  BUILD_COMPOSITE_TRUE=
19953  BUILD_COMPOSITE_FALSE='#'
19954else
19955  BUILD_COMPOSITE_TRUE='#'
19956  BUILD_COMPOSITE_FALSE=
19957fi
19958
19959
19960
19961
19962# Check whether --enable-damage was given.
19963if test "${enable_damage+set}" = set; then :
19964  enableval=$enable_damage; BUILD_DAMAGE=$enableval
19965else
19966  BUILD_DAMAGE="yes"
19967fi
19968
19969
19970 if test "x$BUILD_DAMAGE" = "xyes"; then
19971  BUILD_DAMAGE_TRUE=
19972  BUILD_DAMAGE_FALSE='#'
19973else
19974  BUILD_DAMAGE_TRUE='#'
19975  BUILD_DAMAGE_FALSE=
19976fi
19977
19978
19979
19980
19981# Check whether --enable-dpms was given.
19982if test "${enable_dpms+set}" = set; then :
19983  enableval=$enable_dpms; BUILD_DPMS=$enableval
19984else
19985  BUILD_DPMS="yes"
19986fi
19987
19988
19989 if test "x$BUILD_DPMS" = "xyes"; then
19990  BUILD_DPMS_TRUE=
19991  BUILD_DPMS_FALSE='#'
19992else
19993  BUILD_DPMS_TRUE='#'
19994  BUILD_DPMS_FALSE=
19995fi
19996
19997
19998
19999
20000# Check whether --enable-dri2 was given.
20001if test "${enable_dri2+set}" = set; then :
20002  enableval=$enable_dri2; BUILD_DRI2=$enableval
20003else
20004  BUILD_DRI2="yes"
20005fi
20006
20007
20008 if test "x$BUILD_DRI2" = "xyes"; then
20009  BUILD_DRI2_TRUE=
20010  BUILD_DRI2_FALSE='#'
20011else
20012  BUILD_DRI2_TRUE='#'
20013  BUILD_DRI2_FALSE=
20014fi
20015
20016
20017
20018
20019# Check whether --enable-dri3 was given.
20020if test "${enable_dri3+set}" = set; then :
20021  enableval=$enable_dri3; BUILD_DRI3=$enableval
20022else
20023  BUILD_DRI3="$sendfds"
20024fi
20025
20026
20027 if test "x$BUILD_DRI3" = "xyes"; then
20028  BUILD_DRI3_TRUE=
20029  BUILD_DRI3_FALSE='#'
20030else
20031  BUILD_DRI3_TRUE='#'
20032  BUILD_DRI3_FALSE=
20033fi
20034
20035
20036
20037
20038# Check whether --enable-glx was given.
20039if test "${enable_glx+set}" = set; then :
20040  enableval=$enable_glx; BUILD_GLX=$enableval
20041else
20042  BUILD_GLX="yes"
20043fi
20044
20045
20046 if test "x$BUILD_GLX" = "xyes"; then
20047  BUILD_GLX_TRUE=
20048  BUILD_GLX_FALSE='#'
20049else
20050  BUILD_GLX_TRUE='#'
20051  BUILD_GLX_FALSE=
20052fi
20053
20054
20055
20056
20057# Check whether --enable-present was given.
20058if test "${enable_present+set}" = set; then :
20059  enableval=$enable_present; BUILD_PRESENT=$enableval
20060else
20061  BUILD_PRESENT="yes"
20062fi
20063
20064
20065 if test "x$BUILD_PRESENT" = "xyes"; then
20066  BUILD_PRESENT_TRUE=
20067  BUILD_PRESENT_FALSE='#'
20068else
20069  BUILD_PRESENT_TRUE='#'
20070  BUILD_PRESENT_FALSE=
20071fi
20072
20073
20074
20075
20076# Check whether --enable-randr was given.
20077if test "${enable_randr+set}" = set; then :
20078  enableval=$enable_randr; BUILD_RANDR=$enableval
20079else
20080  BUILD_RANDR="yes"
20081fi
20082
20083
20084 if test "x$BUILD_RANDR" = "xyes"; then
20085  BUILD_RANDR_TRUE=
20086  BUILD_RANDR_FALSE='#'
20087else
20088  BUILD_RANDR_TRUE='#'
20089  BUILD_RANDR_FALSE=
20090fi
20091
20092
20093
20094
20095# Check whether --enable-record was given.
20096if test "${enable_record+set}" = set; then :
20097  enableval=$enable_record; BUILD_RECORD=$enableval
20098else
20099  BUILD_RECORD="yes"
20100fi
20101
20102
20103 if test "x$BUILD_RECORD" = "xyes"; then
20104  BUILD_RECORD_TRUE=
20105  BUILD_RECORD_FALSE='#'
20106else
20107  BUILD_RECORD_TRUE='#'
20108  BUILD_RECORD_FALSE=
20109fi
20110
20111
20112
20113
20114# Check whether --enable-render was given.
20115if test "${enable_render+set}" = set; then :
20116  enableval=$enable_render; BUILD_RENDER=$enableval
20117else
20118  BUILD_RENDER="yes"
20119fi
20120
20121
20122 if test "x$BUILD_RENDER" = "xyes"; then
20123  BUILD_RENDER_TRUE=
20124  BUILD_RENDER_FALSE='#'
20125else
20126  BUILD_RENDER_TRUE='#'
20127  BUILD_RENDER_FALSE=
20128fi
20129
20130
20131
20132
20133# Check whether --enable-resource was given.
20134if test "${enable_resource+set}" = set; then :
20135  enableval=$enable_resource; BUILD_RESOURCE=$enableval
20136else
20137  BUILD_RESOURCE="yes"
20138fi
20139
20140
20141 if test "x$BUILD_RESOURCE" = "xyes"; then
20142  BUILD_RESOURCE_TRUE=
20143  BUILD_RESOURCE_FALSE='#'
20144else
20145  BUILD_RESOURCE_TRUE='#'
20146  BUILD_RESOURCE_FALSE=
20147fi
20148
20149
20150
20151
20152# Check whether --enable-screensaver was given.
20153if test "${enable_screensaver+set}" = set; then :
20154  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
20155else
20156  BUILD_SCREENSAVER="yes"
20157fi
20158
20159
20160 if test "x$BUILD_SCREENSAVER" = "xyes"; then
20161  BUILD_SCREENSAVER_TRUE=
20162  BUILD_SCREENSAVER_FALSE='#'
20163else
20164  BUILD_SCREENSAVER_TRUE='#'
20165  BUILD_SCREENSAVER_FALSE=
20166fi
20167
20168
20169
20170
20171# Check whether --enable-shape was given.
20172if test "${enable_shape+set}" = set; then :
20173  enableval=$enable_shape; BUILD_SHAPE=$enableval
20174else
20175  BUILD_SHAPE="yes"
20176fi
20177
20178
20179 if test "x$BUILD_SHAPE" = "xyes"; then
20180  BUILD_SHAPE_TRUE=
20181  BUILD_SHAPE_FALSE='#'
20182else
20183  BUILD_SHAPE_TRUE='#'
20184  BUILD_SHAPE_FALSE=
20185fi
20186
20187
20188
20189
20190# Check whether --enable-shm was given.
20191if test "${enable_shm+set}" = set; then :
20192  enableval=$enable_shm; BUILD_SHM=$enableval
20193else
20194  BUILD_SHM="yes"
20195fi
20196
20197
20198 if test "x$BUILD_SHM" = "xyes"; then
20199  BUILD_SHM_TRUE=
20200  BUILD_SHM_FALSE='#'
20201else
20202  BUILD_SHM_TRUE='#'
20203  BUILD_SHM_FALSE=
20204fi
20205
20206
20207
20208
20209# Check whether --enable-sync was given.
20210if test "${enable_sync+set}" = set; then :
20211  enableval=$enable_sync; BUILD_SYNC=$enableval
20212else
20213  BUILD_SYNC="yes"
20214fi
20215
20216
20217 if test "x$BUILD_SYNC" = "xyes"; then
20218  BUILD_SYNC_TRUE=
20219  BUILD_SYNC_FALSE='#'
20220else
20221  BUILD_SYNC_TRUE='#'
20222  BUILD_SYNC_FALSE=
20223fi
20224
20225
20226
20227
20228# Check whether --enable-xevie was given.
20229if test "${enable_xevie+set}" = set; then :
20230  enableval=$enable_xevie; BUILD_XEVIE=$enableval
20231else
20232  BUILD_XEVIE="yes"
20233fi
20234
20235
20236 if test "x$BUILD_XEVIE" = "xyes"; then
20237  BUILD_XEVIE_TRUE=
20238  BUILD_XEVIE_FALSE='#'
20239else
20240  BUILD_XEVIE_TRUE='#'
20241  BUILD_XEVIE_FALSE=
20242fi
20243
20244
20245
20246
20247# Check whether --enable-xfixes was given.
20248if test "${enable_xfixes+set}" = set; then :
20249  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
20250else
20251  BUILD_XFIXES="yes"
20252fi
20253
20254
20255 if test "x$BUILD_XFIXES" = "xyes"; then
20256  BUILD_XFIXES_TRUE=
20257  BUILD_XFIXES_FALSE='#'
20258else
20259  BUILD_XFIXES_TRUE='#'
20260  BUILD_XFIXES_FALSE=
20261fi
20262
20263
20264
20265
20266# Check whether --enable-xfree86-dri was given.
20267if test "${enable_xfree86_dri+set}" = set; then :
20268  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
20269else
20270  BUILD_XFREE86_DRI="yes"
20271fi
20272
20273
20274 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
20275  BUILD_XFREE86_DRI_TRUE=
20276  BUILD_XFREE86_DRI_FALSE='#'
20277else
20278  BUILD_XFREE86_DRI_TRUE='#'
20279  BUILD_XFREE86_DRI_FALSE=
20280fi
20281
20282
20283
20284
20285# Check whether --enable-xinerama was given.
20286if test "${enable_xinerama+set}" = set; then :
20287  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
20288else
20289  BUILD_XINERAMA="yes"
20290fi
20291
20292
20293 if test "x$BUILD_XINERAMA" = "xyes"; then
20294  BUILD_XINERAMA_TRUE=
20295  BUILD_XINERAMA_FALSE='#'
20296else
20297  BUILD_XINERAMA_TRUE='#'
20298  BUILD_XINERAMA_FALSE=
20299fi
20300
20301
20302
20303
20304# Check whether --enable-xinput was given.
20305if test "${enable_xinput+set}" = set; then :
20306  enableval=$enable_xinput; BUILD_XINPUT=$enableval
20307else
20308  BUILD_XINPUT="no"
20309fi
20310
20311
20312 if test "x$BUILD_XINPUT" = "xyes"; then
20313  BUILD_XINPUT_TRUE=
20314  BUILD_XINPUT_FALSE='#'
20315else
20316  BUILD_XINPUT_TRUE='#'
20317  BUILD_XINPUT_FALSE=
20318fi
20319
20320
20321
20322
20323# Check whether --enable-xkb was given.
20324if test "${enable_xkb+set}" = set; then :
20325  enableval=$enable_xkb; BUILD_XKB=$enableval
20326else
20327  BUILD_XKB="yes"
20328fi
20329
20330
20331 if test "x$BUILD_XKB" = "xyes"; then
20332  BUILD_XKB_TRUE=
20333  BUILD_XKB_FALSE='#'
20334else
20335  BUILD_XKB_TRUE='#'
20336  BUILD_XKB_FALSE=
20337fi
20338
20339
20340
20341
20342# Check whether --enable-xprint was given.
20343if test "${enable_xprint+set}" = set; then :
20344  enableval=$enable_xprint; BUILD_XPRINT=$enableval
20345else
20346  BUILD_XPRINT="yes"
20347fi
20348
20349
20350 if test "x$BUILD_XPRINT" = "xyes"; then
20351  BUILD_XPRINT_TRUE=
20352  BUILD_XPRINT_FALSE='#'
20353else
20354  BUILD_XPRINT_TRUE='#'
20355  BUILD_XPRINT_FALSE=
20356fi
20357
20358
20359
20360
20361# Check whether --enable-selinux was given.
20362if test "${enable_selinux+set}" = set; then :
20363  enableval=$enable_selinux; BUILD_SELINUX=$enableval
20364else
20365  BUILD_SELINUX="no"
20366fi
20367
20368
20369 if test "x$BUILD_SELINUX" = "xyes"; then
20370  BUILD_SELINUX_TRUE=
20371  BUILD_SELINUX_FALSE='#'
20372else
20373  BUILD_SELINUX_TRUE='#'
20374  BUILD_SELINUX_FALSE=
20375fi
20376
20377
20378
20379
20380# Check whether --enable-xtest was given.
20381if test "${enable_xtest+set}" = set; then :
20382  enableval=$enable_xtest; BUILD_XTEST=$enableval
20383else
20384  BUILD_XTEST="yes"
20385fi
20386
20387
20388 if test "x$BUILD_XTEST" = "xyes"; then
20389  BUILD_XTEST_TRUE=
20390  BUILD_XTEST_FALSE='#'
20391else
20392  BUILD_XTEST_TRUE='#'
20393  BUILD_XTEST_FALSE=
20394fi
20395
20396
20397
20398
20399# Check whether --enable-xv was given.
20400if test "${enable_xv+set}" = set; then :
20401  enableval=$enable_xv; BUILD_XV=$enableval
20402else
20403  BUILD_XV="yes"
20404fi
20405
20406
20407 if test "x$BUILD_XV" = "xyes"; then
20408  BUILD_XV_TRUE=
20409  BUILD_XV_FALSE='#'
20410else
20411  BUILD_XV_TRUE='#'
20412  BUILD_XV_FALSE=
20413fi
20414
20415
20416
20417
20418# Check whether --enable-xvmc was given.
20419if test "${enable_xvmc+set}" = set; then :
20420  enableval=$enable_xvmc; BUILD_XVMC=$enableval
20421else
20422  BUILD_XVMC="yes"
20423fi
20424
20425
20426 if test "x$BUILD_XVMC" = "xyes"; then
20427  BUILD_XVMC_TRUE=
20428  BUILD_XVMC_FALSE='#'
20429else
20430  BUILD_XVMC_TRUE='#'
20431  BUILD_XVMC_FALSE=
20432fi
20433
20434
20435
20436
20437# Check whether --with-launchd was given.
20438if test "${with_launchd+set}" = set; then :
20439  withval=$with_launchd; LAUNCHD=$withval
20440else
20441  LAUNCHD=auto
20442fi
20443
20444if test "x$LAUNCHD" = xauto; then
20445        unset LAUNCHD
20446        # Extract the first word of "launchd", so it can be a program name with args.
20447set dummy launchd; ac_word=$2
20448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20449$as_echo_n "checking for $ac_word... " >&6; }
20450if ${ac_cv_prog_LAUNCHD+:} false; then :
20451  $as_echo_n "(cached) " >&6
20452else
20453  if test -n "$LAUNCHD"; then
20454  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
20455else
20456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20457for as_dir in $PATH$PATH_SEPARATOR/sbin
20458do
20459  IFS=$as_save_IFS
20460  test -z "$as_dir" && as_dir=.
20461    for ac_exec_ext in '' $ac_executable_extensions; do
20462  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20463    ac_cv_prog_LAUNCHD="yes"
20464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20465    break 2
20466  fi
20467done
20468  done
20469IFS=$as_save_IFS
20470
20471  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
20472fi
20473fi
20474LAUNCHD=$ac_cv_prog_LAUNCHD
20475if test -n "$LAUNCHD"; then
20476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
20477$as_echo "$LAUNCHD" >&6; }
20478else
20479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20480$as_echo "no" >&6; }
20481fi
20482
20483
20484fi
20485
20486if test "x$LAUNCHD" = xyes ; then
20487
20488$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
20489
20490fi
20491
20492ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile"
20493
20494
20495ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.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"
20496
20497
20498ac_config_files="$ac_config_files doc/xcb.doxygen"
20499
20500
20501cat >confcache <<\_ACEOF
20502# This file is a shell script that caches the results of configure
20503# tests run on this system so they can be shared between configure
20504# scripts and configure runs, see configure's option --config-cache.
20505# It is not useful on other systems.  If it contains results you don't
20506# want to keep, you may remove or edit it.
20507#
20508# config.status only pays attention to the cache file if you give it
20509# the --recheck option to rerun configure.
20510#
20511# `ac_cv_env_foo' variables (set or unset) will be overridden when
20512# loading this file, other *unset* `ac_cv_foo' will be assigned the
20513# following values.
20514
20515_ACEOF
20516
20517# The following way of writing the cache mishandles newlines in values,
20518# but we know of no workaround that is simple, portable, and efficient.
20519# So, we kill variables containing newlines.
20520# Ultrix sh set writes to stderr and can't be redirected directly,
20521# and sets the high bit in the cache file unless we assign to the vars.
20522(
20523  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20524    eval ac_val=\$$ac_var
20525    case $ac_val in #(
20526    *${as_nl}*)
20527      case $ac_var in #(
20528      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20529$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20530      esac
20531      case $ac_var in #(
20532      _ | IFS | as_nl) ;; #(
20533      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20534      *) { eval $ac_var=; unset $ac_var;} ;;
20535      esac ;;
20536    esac
20537  done
20538
20539  (set) 2>&1 |
20540    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20541    *${as_nl}ac_space=\ *)
20542      # `set' does not quote correctly, so add quotes: double-quote
20543      # substitution turns \\\\ into \\, and sed turns \\ into \.
20544      sed -n \
20545	"s/'/'\\\\''/g;
20546	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20547      ;; #(
20548    *)
20549      # `set' quotes correctly as required by POSIX, so do not add quotes.
20550      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20551      ;;
20552    esac |
20553    sort
20554) |
20555  sed '
20556     /^ac_cv_env_/b end
20557     t clear
20558     :clear
20559     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20560     t end
20561     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20562     :end' >>confcache
20563if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20564  if test -w "$cache_file"; then
20565    if test "x$cache_file" != "x/dev/null"; then
20566      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20567$as_echo "$as_me: updating cache $cache_file" >&6;}
20568      if test ! -f "$cache_file" || test -h "$cache_file"; then
20569	cat confcache >"$cache_file"
20570      else
20571        case $cache_file in #(
20572        */* | ?:*)
20573	  mv -f confcache "$cache_file"$$ &&
20574	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20575        *)
20576	  mv -f confcache "$cache_file" ;;
20577	esac
20578      fi
20579    fi
20580  else
20581    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20582$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20583  fi
20584fi
20585rm -f confcache
20586
20587test "x$prefix" = xNONE && prefix=$ac_default_prefix
20588# Let make expand exec_prefix.
20589test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20590
20591DEFS=-DHAVE_CONFIG_H
20592
20593ac_libobjs=
20594ac_ltlibobjs=
20595U=
20596for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20597  # 1. Remove the extension, and $U if already installed.
20598  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20599  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20600  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20601  #    will be set to the directory where LIBOBJS objects are built.
20602  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20603  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20604done
20605LIBOBJS=$ac_libobjs
20606
20607LTLIBOBJS=$ac_ltlibobjs
20608
20609
20610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20611$as_echo_n "checking that generated files are newer than configure... " >&6; }
20612   if test -n "$am_sleep_pid"; then
20613     # Hide warnings about reused PIDs.
20614     wait $am_sleep_pid 2>/dev/null
20615   fi
20616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20617$as_echo "done" >&6; }
20618 if test -n "$EXEEXT"; then
20619  am__EXEEXT_TRUE=
20620  am__EXEEXT_FALSE='#'
20621else
20622  am__EXEEXT_TRUE='#'
20623  am__EXEEXT_FALSE=
20624fi
20625
20626if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20627  as_fn_error $? "conditional \"AMDEP\" was never defined.
20628Usually this means the macro was only invoked conditionally." "$LINENO" 5
20629fi
20630if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20631  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20632Usually this means the macro was only invoked conditionally." "$LINENO" 5
20633fi
20634if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
20635  as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
20636Usually this means the macro was only invoked conditionally." "$LINENO" 5
20637fi
20638if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then
20639  as_fn_error $? "conditional \"HAVE_DOT\" was never defined.
20640Usually this means the macro was only invoked conditionally." "$LINENO" 5
20641fi
20642if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
20643  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
20644Usually this means the macro was only invoked conditionally." "$LINENO" 5
20645fi
20646if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
20647  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
20648Usually this means the macro was only invoked conditionally." "$LINENO" 5
20649fi
20650if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then
20651  as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined.
20652Usually this means the macro was only invoked conditionally." "$LINENO" 5
20653fi
20654if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
20655  as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined.
20656Usually this means the macro was only invoked conditionally." "$LINENO" 5
20657fi
20658if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
20659  as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined.
20660Usually this means the macro was only invoked conditionally." "$LINENO" 5
20661fi
20662if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
20663  as_fn_error $? "conditional \"BUILD_DPMS\" was never defined.
20664Usually this means the macro was only invoked conditionally." "$LINENO" 5
20665fi
20666if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then
20667  as_fn_error $? "conditional \"BUILD_DRI2\" was never defined.
20668Usually this means the macro was only invoked conditionally." "$LINENO" 5
20669fi
20670if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then
20671  as_fn_error $? "conditional \"BUILD_DRI3\" was never defined.
20672Usually this means the macro was only invoked conditionally." "$LINENO" 5
20673fi
20674if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
20675  as_fn_error $? "conditional \"BUILD_GLX\" was never defined.
20676Usually this means the macro was only invoked conditionally." "$LINENO" 5
20677fi
20678if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then
20679  as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined.
20680Usually this means the macro was only invoked conditionally." "$LINENO" 5
20681fi
20682if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
20683  as_fn_error $? "conditional \"BUILD_RANDR\" was never defined.
20684Usually this means the macro was only invoked conditionally." "$LINENO" 5
20685fi
20686if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
20687  as_fn_error $? "conditional \"BUILD_RECORD\" was never defined.
20688Usually this means the macro was only invoked conditionally." "$LINENO" 5
20689fi
20690if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
20691  as_fn_error $? "conditional \"BUILD_RENDER\" was never defined.
20692Usually this means the macro was only invoked conditionally." "$LINENO" 5
20693fi
20694if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
20695  as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined.
20696Usually this means the macro was only invoked conditionally." "$LINENO" 5
20697fi
20698if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
20699  as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined.
20700Usually this means the macro was only invoked conditionally." "$LINENO" 5
20701fi
20702if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
20703  as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined.
20704Usually this means the macro was only invoked conditionally." "$LINENO" 5
20705fi
20706if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
20707  as_fn_error $? "conditional \"BUILD_SHM\" was never defined.
20708Usually this means the macro was only invoked conditionally." "$LINENO" 5
20709fi
20710if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
20711  as_fn_error $? "conditional \"BUILD_SYNC\" was never defined.
20712Usually this means the macro was only invoked conditionally." "$LINENO" 5
20713fi
20714if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
20715  as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined.
20716Usually this means the macro was only invoked conditionally." "$LINENO" 5
20717fi
20718if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
20719  as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined.
20720Usually this means the macro was only invoked conditionally." "$LINENO" 5
20721fi
20722if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
20723  as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined.
20724Usually this means the macro was only invoked conditionally." "$LINENO" 5
20725fi
20726if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
20727  as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined.
20728Usually this means the macro was only invoked conditionally." "$LINENO" 5
20729fi
20730if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
20731  as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined.
20732Usually this means the macro was only invoked conditionally." "$LINENO" 5
20733fi
20734if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then
20735  as_fn_error $? "conditional \"BUILD_XKB\" was never defined.
20736Usually this means the macro was only invoked conditionally." "$LINENO" 5
20737fi
20738if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
20739  as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined.
20740Usually this means the macro was only invoked conditionally." "$LINENO" 5
20741fi
20742if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
20743  as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined.
20744Usually this means the macro was only invoked conditionally." "$LINENO" 5
20745fi
20746if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
20747  as_fn_error $? "conditional \"BUILD_XTEST\" was never defined.
20748Usually this means the macro was only invoked conditionally." "$LINENO" 5
20749fi
20750if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
20751  as_fn_error $? "conditional \"BUILD_XV\" was never defined.
20752Usually this means the macro was only invoked conditionally." "$LINENO" 5
20753fi
20754if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
20755  as_fn_error $? "conditional \"BUILD_XVMC\" was never defined.
20756Usually this means the macro was only invoked conditionally." "$LINENO" 5
20757fi
20758
20759: "${CONFIG_STATUS=./config.status}"
20760ac_write_fail=0
20761ac_clean_files_save=$ac_clean_files
20762ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20763{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20764$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20765as_write_fail=0
20766cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20767#! $SHELL
20768# Generated by $as_me.
20769# Run this file to recreate the current configuration.
20770# Compiler output produced by configure, useful for debugging
20771# configure, is in config.log if it exists.
20772
20773debug=false
20774ac_cs_recheck=false
20775ac_cs_silent=false
20776
20777SHELL=\${CONFIG_SHELL-$SHELL}
20778export SHELL
20779_ASEOF
20780cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20781## -------------------- ##
20782## M4sh Initialization. ##
20783## -------------------- ##
20784
20785# Be more Bourne compatible
20786DUALCASE=1; export DUALCASE # for MKS sh
20787if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20788  emulate sh
20789  NULLCMD=:
20790  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20791  # is contrary to our usage.  Disable this feature.
20792  alias -g '${1+"$@"}'='"$@"'
20793  setopt NO_GLOB_SUBST
20794else
20795  case `(set -o) 2>/dev/null` in #(
20796  *posix*) :
20797    set -o posix ;; #(
20798  *) :
20799     ;;
20800esac
20801fi
20802
20803
20804as_nl='
20805'
20806export as_nl
20807# Printing a long string crashes Solaris 7 /usr/bin/printf.
20808as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20810as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20811# Prefer a ksh shell builtin over an external printf program on Solaris,
20812# but without wasting forks for bash or zsh.
20813if test -z "$BASH_VERSION$ZSH_VERSION" \
20814    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20815  as_echo='print -r --'
20816  as_echo_n='print -rn --'
20817elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20818  as_echo='printf %s\n'
20819  as_echo_n='printf %s'
20820else
20821  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20822    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20823    as_echo_n='/usr/ucb/echo -n'
20824  else
20825    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20826    as_echo_n_body='eval
20827      arg=$1;
20828      case $arg in #(
20829      *"$as_nl"*)
20830	expr "X$arg" : "X\\(.*\\)$as_nl";
20831	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20832      esac;
20833      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20834    '
20835    export as_echo_n_body
20836    as_echo_n='sh -c $as_echo_n_body as_echo'
20837  fi
20838  export as_echo_body
20839  as_echo='sh -c $as_echo_body as_echo'
20840fi
20841
20842# The user is always right.
20843if test "${PATH_SEPARATOR+set}" != set; then
20844  PATH_SEPARATOR=:
20845  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20846    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20847      PATH_SEPARATOR=';'
20848  }
20849fi
20850
20851
20852# IFS
20853# We need space, tab and new line, in precisely that order.  Quoting is
20854# there to prevent editors from complaining about space-tab.
20855# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20856# splitting by setting IFS to empty value.)
20857IFS=" ""	$as_nl"
20858
20859# Find who we are.  Look in the path if we contain no directory separator.
20860as_myself=
20861case $0 in #((
20862  *[\\/]* ) as_myself=$0 ;;
20863  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20864for as_dir in $PATH
20865do
20866  IFS=$as_save_IFS
20867  test -z "$as_dir" && as_dir=.
20868    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20869  done
20870IFS=$as_save_IFS
20871
20872     ;;
20873esac
20874# We did not find ourselves, most probably we were run as `sh COMMAND'
20875# in which case we are not to be found in the path.
20876if test "x$as_myself" = x; then
20877  as_myself=$0
20878fi
20879if test ! -f "$as_myself"; then
20880  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20881  exit 1
20882fi
20883
20884# Unset variables that we do not need and which cause bugs (e.g. in
20885# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20886# suppresses any "Segmentation fault" message there.  '((' could
20887# trigger a bug in pdksh 5.2.14.
20888for as_var in BASH_ENV ENV MAIL MAILPATH
20889do eval test x\${$as_var+set} = xset \
20890  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20891done
20892PS1='$ '
20893PS2='> '
20894PS4='+ '
20895
20896# NLS nuisances.
20897LC_ALL=C
20898export LC_ALL
20899LANGUAGE=C
20900export LANGUAGE
20901
20902# CDPATH.
20903(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20904
20905
20906# as_fn_error STATUS ERROR [LINENO LOG_FD]
20907# ----------------------------------------
20908# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20909# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20910# script with STATUS, using 1 if that was 0.
20911as_fn_error ()
20912{
20913  as_status=$1; test $as_status -eq 0 && as_status=1
20914  if test "$4"; then
20915    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20916    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20917  fi
20918  $as_echo "$as_me: error: $2" >&2
20919  as_fn_exit $as_status
20920} # as_fn_error
20921
20922
20923# as_fn_set_status STATUS
20924# -----------------------
20925# Set $? to STATUS, without forking.
20926as_fn_set_status ()
20927{
20928  return $1
20929} # as_fn_set_status
20930
20931# as_fn_exit STATUS
20932# -----------------
20933# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20934as_fn_exit ()
20935{
20936  set +e
20937  as_fn_set_status $1
20938  exit $1
20939} # as_fn_exit
20940
20941# as_fn_unset VAR
20942# ---------------
20943# Portably unset VAR.
20944as_fn_unset ()
20945{
20946  { eval $1=; unset $1;}
20947}
20948as_unset=as_fn_unset
20949# as_fn_append VAR VALUE
20950# ----------------------
20951# Append the text in VALUE to the end of the definition contained in VAR. Take
20952# advantage of any shell optimizations that allow amortized linear growth over
20953# repeated appends, instead of the typical quadratic growth present in naive
20954# implementations.
20955if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20956  eval 'as_fn_append ()
20957  {
20958    eval $1+=\$2
20959  }'
20960else
20961  as_fn_append ()
20962  {
20963    eval $1=\$$1\$2
20964  }
20965fi # as_fn_append
20966
20967# as_fn_arith ARG...
20968# ------------------
20969# Perform arithmetic evaluation on the ARGs, and store the result in the
20970# global $as_val. Take advantage of shells that can avoid forks. The arguments
20971# must be portable across $(()) and expr.
20972if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20973  eval 'as_fn_arith ()
20974  {
20975    as_val=$(( $* ))
20976  }'
20977else
20978  as_fn_arith ()
20979  {
20980    as_val=`expr "$@" || test $? -eq 1`
20981  }
20982fi # as_fn_arith
20983
20984
20985if expr a : '\(a\)' >/dev/null 2>&1 &&
20986   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20987  as_expr=expr
20988else
20989  as_expr=false
20990fi
20991
20992if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20993  as_basename=basename
20994else
20995  as_basename=false
20996fi
20997
20998if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20999  as_dirname=dirname
21000else
21001  as_dirname=false
21002fi
21003
21004as_me=`$as_basename -- "$0" ||
21005$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21006	 X"$0" : 'X\(//\)$' \| \
21007	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21008$as_echo X/"$0" |
21009    sed '/^.*\/\([^/][^/]*\)\/*$/{
21010	    s//\1/
21011	    q
21012	  }
21013	  /^X\/\(\/\/\)$/{
21014	    s//\1/
21015	    q
21016	  }
21017	  /^X\/\(\/\).*/{
21018	    s//\1/
21019	    q
21020	  }
21021	  s/.*/./; q'`
21022
21023# Avoid depending upon Character Ranges.
21024as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21025as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21026as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21027as_cr_digits='0123456789'
21028as_cr_alnum=$as_cr_Letters$as_cr_digits
21029
21030ECHO_C= ECHO_N= ECHO_T=
21031case `echo -n x` in #(((((
21032-n*)
21033  case `echo 'xy\c'` in
21034  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21035  xy)  ECHO_C='\c';;
21036  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21037       ECHO_T='	';;
21038  esac;;
21039*)
21040  ECHO_N='-n';;
21041esac
21042
21043rm -f conf$$ conf$$.exe conf$$.file
21044if test -d conf$$.dir; then
21045  rm -f conf$$.dir/conf$$.file
21046else
21047  rm -f conf$$.dir
21048  mkdir conf$$.dir 2>/dev/null
21049fi
21050if (echo >conf$$.file) 2>/dev/null; then
21051  if ln -s conf$$.file conf$$ 2>/dev/null; then
21052    as_ln_s='ln -s'
21053    # ... but there are two gotchas:
21054    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21055    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21056    # In both cases, we have to default to `cp -pR'.
21057    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21058      as_ln_s='cp -pR'
21059  elif ln conf$$.file conf$$ 2>/dev/null; then
21060    as_ln_s=ln
21061  else
21062    as_ln_s='cp -pR'
21063  fi
21064else
21065  as_ln_s='cp -pR'
21066fi
21067rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21068rmdir conf$$.dir 2>/dev/null
21069
21070
21071# as_fn_mkdir_p
21072# -------------
21073# Create "$as_dir" as a directory, including parents if necessary.
21074as_fn_mkdir_p ()
21075{
21076
21077  case $as_dir in #(
21078  -*) as_dir=./$as_dir;;
21079  esac
21080  test -d "$as_dir" || eval $as_mkdir_p || {
21081    as_dirs=
21082    while :; do
21083      case $as_dir in #(
21084      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21085      *) as_qdir=$as_dir;;
21086      esac
21087      as_dirs="'$as_qdir' $as_dirs"
21088      as_dir=`$as_dirname -- "$as_dir" ||
21089$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21090	 X"$as_dir" : 'X\(//\)[^/]' \| \
21091	 X"$as_dir" : 'X\(//\)$' \| \
21092	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21093$as_echo X"$as_dir" |
21094    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21095	    s//\1/
21096	    q
21097	  }
21098	  /^X\(\/\/\)[^/].*/{
21099	    s//\1/
21100	    q
21101	  }
21102	  /^X\(\/\/\)$/{
21103	    s//\1/
21104	    q
21105	  }
21106	  /^X\(\/\).*/{
21107	    s//\1/
21108	    q
21109	  }
21110	  s/.*/./; q'`
21111      test -d "$as_dir" && break
21112    done
21113    test -z "$as_dirs" || eval "mkdir $as_dirs"
21114  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21115
21116
21117} # as_fn_mkdir_p
21118if mkdir -p . 2>/dev/null; then
21119  as_mkdir_p='mkdir -p "$as_dir"'
21120else
21121  test -d ./-p && rmdir ./-p
21122  as_mkdir_p=false
21123fi
21124
21125
21126# as_fn_executable_p FILE
21127# -----------------------
21128# Test if FILE is an executable regular file.
21129as_fn_executable_p ()
21130{
21131  test -f "$1" && test -x "$1"
21132} # as_fn_executable_p
21133as_test_x='test -x'
21134as_executable_p=as_fn_executable_p
21135
21136# Sed expression to map a string onto a valid CPP name.
21137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21138
21139# Sed expression to map a string onto a valid variable name.
21140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21141
21142
21143exec 6>&1
21144## ----------------------------------- ##
21145## Main body of $CONFIG_STATUS script. ##
21146## ----------------------------------- ##
21147_ASEOF
21148test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21149
21150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151# Save the log message, to keep $0 and so on meaningful, and to
21152# report actual input values of CONFIG_FILES etc. instead of their
21153# values after options handling.
21154ac_log="
21155This file was extended by libxcb $as_me 1.11.1, which was
21156generated by GNU Autoconf 2.69.  Invocation command line was
21157
21158  CONFIG_FILES    = $CONFIG_FILES
21159  CONFIG_HEADERS  = $CONFIG_HEADERS
21160  CONFIG_LINKS    = $CONFIG_LINKS
21161  CONFIG_COMMANDS = $CONFIG_COMMANDS
21162  $ $0 $@
21163
21164on `(hostname || uname -n) 2>/dev/null | sed 1q`
21165"
21166
21167_ACEOF
21168
21169case $ac_config_files in *"
21170"*) set x $ac_config_files; shift; ac_config_files=$*;;
21171esac
21172
21173case $ac_config_headers in *"
21174"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21175esac
21176
21177
21178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21179# Files that config.status was made for.
21180config_files="$ac_config_files"
21181config_headers="$ac_config_headers"
21182config_commands="$ac_config_commands"
21183
21184_ACEOF
21185
21186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21187ac_cs_usage="\
21188\`$as_me' instantiates files and other configuration actions
21189from templates according to the current configuration.  Unless the files
21190and actions are specified as TAGs, all are instantiated by default.
21191
21192Usage: $0 [OPTION]... [TAG]...
21193
21194  -h, --help       print this help, then exit
21195  -V, --version    print version number and configuration settings, then exit
21196      --config     print configuration, then exit
21197  -q, --quiet, --silent
21198                   do not print progress messages
21199  -d, --debug      don't remove temporary files
21200      --recheck    update $as_me by reconfiguring in the same conditions
21201      --file=FILE[:TEMPLATE]
21202                   instantiate the configuration file FILE
21203      --header=FILE[:TEMPLATE]
21204                   instantiate the configuration header FILE
21205
21206Configuration files:
21207$config_files
21208
21209Configuration headers:
21210$config_headers
21211
21212Configuration commands:
21213$config_commands
21214
21215Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xcb>."
21216
21217_ACEOF
21218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21220ac_cs_version="\\
21221libxcb config.status 1.11.1
21222configured by $0, generated by GNU Autoconf 2.69,
21223  with options \\"\$ac_cs_config\\"
21224
21225Copyright (C) 2012 Free Software Foundation, Inc.
21226This config.status script is free software; the Free Software Foundation
21227gives unlimited permission to copy, distribute and modify it."
21228
21229ac_pwd='$ac_pwd'
21230srcdir='$srcdir'
21231INSTALL='$INSTALL'
21232MKDIR_P='$MKDIR_P'
21233AWK='$AWK'
21234test -n "\$AWK" || AWK=awk
21235_ACEOF
21236
21237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21238# The default lists apply if the user does not specify any file.
21239ac_need_defaults=:
21240while test $# != 0
21241do
21242  case $1 in
21243  --*=?*)
21244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21245    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21246    ac_shift=:
21247    ;;
21248  --*=)
21249    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21250    ac_optarg=
21251    ac_shift=:
21252    ;;
21253  *)
21254    ac_option=$1
21255    ac_optarg=$2
21256    ac_shift=shift
21257    ;;
21258  esac
21259
21260  case $ac_option in
21261  # Handling of the options.
21262  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21263    ac_cs_recheck=: ;;
21264  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21265    $as_echo "$ac_cs_version"; exit ;;
21266  --config | --confi | --conf | --con | --co | --c )
21267    $as_echo "$ac_cs_config"; exit ;;
21268  --debug | --debu | --deb | --de | --d | -d )
21269    debug=: ;;
21270  --file | --fil | --fi | --f )
21271    $ac_shift
21272    case $ac_optarg in
21273    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21274    '') as_fn_error $? "missing file argument" ;;
21275    esac
21276    as_fn_append CONFIG_FILES " '$ac_optarg'"
21277    ac_need_defaults=false;;
21278  --header | --heade | --head | --hea )
21279    $ac_shift
21280    case $ac_optarg in
21281    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21282    esac
21283    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21284    ac_need_defaults=false;;
21285  --he | --h)
21286    # Conflict between --help and --header
21287    as_fn_error $? "ambiguous option: \`$1'
21288Try \`$0 --help' for more information.";;
21289  --help | --hel | -h )
21290    $as_echo "$ac_cs_usage"; exit ;;
21291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21292  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21293    ac_cs_silent=: ;;
21294
21295  # This is an error.
21296  -*) as_fn_error $? "unrecognized option: \`$1'
21297Try \`$0 --help' for more information." ;;
21298
21299  *) as_fn_append ac_config_targets " $1"
21300     ac_need_defaults=false ;;
21301
21302  esac
21303  shift
21304done
21305
21306ac_configure_extra_args=
21307
21308if $ac_cs_silent; then
21309  exec 6>/dev/null
21310  ac_configure_extra_args="$ac_configure_extra_args --silent"
21311fi
21312
21313_ACEOF
21314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21315if \$ac_cs_recheck; then
21316  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21317  shift
21318  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21319  CONFIG_SHELL='$SHELL'
21320  export CONFIG_SHELL
21321  exec "\$@"
21322fi
21323
21324_ACEOF
21325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21326exec 5>>config.log
21327{
21328  echo
21329  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21330## Running $as_me. ##
21331_ASBOX
21332  $as_echo "$ac_log"
21333} >&5
21334
21335_ACEOF
21336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21337#
21338# INIT-COMMANDS
21339#
21340AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21341
21342
21343# The HP-UX ksh and POSIX shell print the target directory to stdout
21344# if CDPATH is set.
21345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21346
21347sed_quote_subst='$sed_quote_subst'
21348double_quote_subst='$double_quote_subst'
21349delay_variable_subst='$delay_variable_subst'
21350macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21351macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21352AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
21353DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21354OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21355enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21356enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21357pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21358enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21359SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21360ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21361PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21362host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21363host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21364host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21365build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21366build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21367build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21368SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21369Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21370GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21371EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21372FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21373LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21374NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21375LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21376max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21377ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21378exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21379lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21380lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21381lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21382lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21383lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21384reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21385reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21386deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21387file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21388file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21389want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21390sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21391AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21392AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21393archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21394STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21395RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21396old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21397old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21398old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21399lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21400CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21401CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21402compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21403GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21404lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21405lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21406lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21407lt_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"`'
21408nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21409lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21410objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21411MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21412lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21413lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21414lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21415lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21416lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21417need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21418MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21419DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21420NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21421LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21422OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21423OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21424libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21425shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21426extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21427archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21428enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21429export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21430whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21431compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21432old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21433old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21434archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21435archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21436module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21437module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21438with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21439allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21440no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21441hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21442hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21443hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21444hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21445hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21446hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21447hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21448inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21449link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21450always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21451export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21452exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21453include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21454prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21455postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21456file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21457variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21458need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21459need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21460version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21461runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21462shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21463shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21464libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21465library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21466soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21467install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21468postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21469postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21470finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21471finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21472hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21473sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21474sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21475hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21476enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21477enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21478enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21479old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21480striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21481
21482LTCC='$LTCC'
21483LTCFLAGS='$LTCFLAGS'
21484compiler='$compiler_DEFAULT'
21485
21486# A function that is used when there is no print builtin or printf.
21487func_fallback_echo ()
21488{
21489  eval 'cat <<_LTECHO_EOF
21490\$1
21491_LTECHO_EOF'
21492}
21493
21494# Quote evaled strings.
21495for var in AS \
21496DLLTOOL \
21497OBJDUMP \
21498SHELL \
21499ECHO \
21500PATH_SEPARATOR \
21501SED \
21502GREP \
21503EGREP \
21504FGREP \
21505LD \
21506NM \
21507LN_S \
21508lt_SP2NL \
21509lt_NL2SP \
21510reload_flag \
21511deplibs_check_method \
21512file_magic_cmd \
21513file_magic_glob \
21514want_nocaseglob \
21515sharedlib_from_linklib_cmd \
21516AR \
21517AR_FLAGS \
21518archiver_list_spec \
21519STRIP \
21520RANLIB \
21521CC \
21522CFLAGS \
21523compiler \
21524lt_cv_sys_global_symbol_pipe \
21525lt_cv_sys_global_symbol_to_cdecl \
21526lt_cv_sys_global_symbol_to_c_name_address \
21527lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21528nm_file_list_spec \
21529lt_prog_compiler_no_builtin_flag \
21530lt_prog_compiler_pic \
21531lt_prog_compiler_wl \
21532lt_prog_compiler_static \
21533lt_cv_prog_compiler_c_o \
21534need_locks \
21535MANIFEST_TOOL \
21536DSYMUTIL \
21537NMEDIT \
21538LIPO \
21539OTOOL \
21540OTOOL64 \
21541shrext_cmds \
21542export_dynamic_flag_spec \
21543whole_archive_flag_spec \
21544compiler_needs_object \
21545with_gnu_ld \
21546allow_undefined_flag \
21547no_undefined_flag \
21548hardcode_libdir_flag_spec \
21549hardcode_libdir_separator \
21550exclude_expsyms \
21551include_expsyms \
21552file_list_spec \
21553variables_saved_for_relink \
21554libname_spec \
21555library_names_spec \
21556soname_spec \
21557install_override_mode \
21558finish_eval \
21559old_striplib \
21560striplib; do
21561    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21562    *[\\\\\\\`\\"\\\$]*)
21563      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21564      ;;
21565    *)
21566      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21567      ;;
21568    esac
21569done
21570
21571# Double-quote double-evaled strings.
21572for var in reload_cmds \
21573old_postinstall_cmds \
21574old_postuninstall_cmds \
21575old_archive_cmds \
21576extract_expsyms_cmds \
21577old_archive_from_new_cmds \
21578old_archive_from_expsyms_cmds \
21579archive_cmds \
21580archive_expsym_cmds \
21581module_cmds \
21582module_expsym_cmds \
21583export_symbols_cmds \
21584prelink_cmds \
21585postlink_cmds \
21586postinstall_cmds \
21587postuninstall_cmds \
21588finish_cmds \
21589sys_lib_search_path_spec \
21590sys_lib_dlsearch_path_spec; do
21591    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21592    *[\\\\\\\`\\"\\\$]*)
21593      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21594      ;;
21595    *)
21596      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21597      ;;
21598    esac
21599done
21600
21601ac_aux_dir='$ac_aux_dir'
21602xsi_shell='$xsi_shell'
21603lt_shell_append='$lt_shell_append'
21604
21605# See if we are running on zsh, and set the options which allow our
21606# commands through without removal of \ escapes INIT.
21607if test -n "\${ZSH_VERSION+set}" ; then
21608   setopt NO_GLOB_SUBST
21609fi
21610
21611
21612    PACKAGE='$PACKAGE'
21613    VERSION='$VERSION'
21614    TIMESTAMP='$TIMESTAMP'
21615    RM='$RM'
21616    ofile='$ofile'
21617
21618
21619
21620
21621_ACEOF
21622
21623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21624
21625# Handling of arguments.
21626for ac_config_target in $ac_config_targets
21627do
21628  case $ac_config_target in
21629    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
21630    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21631    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21632    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21633    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21634    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21635    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21636    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21637    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
21638    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
21639    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
21640    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
21641    "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;;
21642    "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;;
21643    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
21644    "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;;
21645    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
21646    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
21647    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
21648    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
21649    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
21650    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
21651    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
21652    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
21653    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
21654    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
21655    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
21656    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
21657    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
21658    "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;;
21659    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
21660    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
21661    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
21662    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
21663    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
21664    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
21665
21666  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21667  esac
21668done
21669
21670
21671# If the user did not use the arguments to specify the items to instantiate,
21672# then the envvar interface is used.  Set only those that are not.
21673# We use the long form for the default assignment because of an extremely
21674# bizarre bug on SunOS 4.1.3.
21675if $ac_need_defaults; then
21676  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21677  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21678  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21679fi
21680
21681# Have a temporary directory for convenience.  Make it in the build tree
21682# simply because there is no reason against having it here, and in addition,
21683# creating and moving files from /tmp can sometimes cause problems.
21684# Hook for its removal unless debugging.
21685# Note that there is a small window in which the directory will not be cleaned:
21686# after its creation but before its name has been assigned to `$tmp'.
21687$debug ||
21688{
21689  tmp= ac_tmp=
21690  trap 'exit_status=$?
21691  : "${ac_tmp:=$tmp}"
21692  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21693' 0
21694  trap 'as_fn_exit 1' 1 2 13 15
21695}
21696# Create a (secure) tmp directory for tmp files.
21697
21698{
21699  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21700  test -d "$tmp"
21701}  ||
21702{
21703  tmp=./conf$$-$RANDOM
21704  (umask 077 && mkdir "$tmp")
21705} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21706ac_tmp=$tmp
21707
21708# Set up the scripts for CONFIG_FILES section.
21709# No need to generate them if there are no CONFIG_FILES.
21710# This happens for instance with `./config.status config.h'.
21711if test -n "$CONFIG_FILES"; then
21712
21713
21714ac_cr=`echo X | tr X '\015'`
21715# On cygwin, bash can eat \r inside `` if the user requested igncr.
21716# But we know of no other shell where ac_cr would be empty at this
21717# point, so we can use a bashism as a fallback.
21718if test "x$ac_cr" = x; then
21719  eval ac_cr=\$\'\\r\'
21720fi
21721ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21722if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21723  ac_cs_awk_cr='\\r'
21724else
21725  ac_cs_awk_cr=$ac_cr
21726fi
21727
21728echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21729_ACEOF
21730
21731
21732{
21733  echo "cat >conf$$subs.awk <<_ACEOF" &&
21734  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21735  echo "_ACEOF"
21736} >conf$$subs.sh ||
21737  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21738ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21739ac_delim='%!_!# '
21740for ac_last_try in false false false false false :; do
21741  . ./conf$$subs.sh ||
21742    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21743
21744  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21745  if test $ac_delim_n = $ac_delim_num; then
21746    break
21747  elif $ac_last_try; then
21748    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21749  else
21750    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21751  fi
21752done
21753rm -f conf$$subs.sh
21754
21755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21756cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21757_ACEOF
21758sed -n '
21759h
21760s/^/S["/; s/!.*/"]=/
21761p
21762g
21763s/^[^!]*!//
21764:repl
21765t repl
21766s/'"$ac_delim"'$//
21767t delim
21768:nl
21769h
21770s/\(.\{148\}\)..*/\1/
21771t more1
21772s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21773p
21774n
21775b repl
21776:more1
21777s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21778p
21779g
21780s/.\{148\}//
21781t nl
21782:delim
21783h
21784s/\(.\{148\}\)..*/\1/
21785t more2
21786s/["\\]/\\&/g; s/^/"/; s/$/"/
21787p
21788b
21789:more2
21790s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21791p
21792g
21793s/.\{148\}//
21794t delim
21795' <conf$$subs.awk | sed '
21796/^[^""]/{
21797  N
21798  s/\n//
21799}
21800' >>$CONFIG_STATUS || ac_write_fail=1
21801rm -f conf$$subs.awk
21802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21803_ACAWK
21804cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21805  for (key in S) S_is_set[key] = 1
21806  FS = ""
21807
21808}
21809{
21810  line = $ 0
21811  nfields = split(line, field, "@")
21812  substed = 0
21813  len = length(field[1])
21814  for (i = 2; i < nfields; i++) {
21815    key = field[i]
21816    keylen = length(key)
21817    if (S_is_set[key]) {
21818      value = S[key]
21819      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21820      len += length(value) + length(field[++i])
21821      substed = 1
21822    } else
21823      len += 1 + keylen
21824  }
21825
21826  print line
21827}
21828
21829_ACAWK
21830_ACEOF
21831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21832if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21833  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21834else
21835  cat
21836fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21837  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21838_ACEOF
21839
21840# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21841# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21842# trailing colons and then remove the whole line if VPATH becomes empty
21843# (actually we leave an empty line to preserve line numbers).
21844if test "x$srcdir" = x.; then
21845  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21846h
21847s///
21848s/^/:/
21849s/[	 ]*$/:/
21850s/:\$(srcdir):/:/g
21851s/:\${srcdir}:/:/g
21852s/:@srcdir@:/:/g
21853s/^:*//
21854s/:*$//
21855x
21856s/\(=[	 ]*\).*/\1/
21857G
21858s/\n//
21859s/^[^=]*=[	 ]*$//
21860}'
21861fi
21862
21863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21864fi # test -n "$CONFIG_FILES"
21865
21866# Set up the scripts for CONFIG_HEADERS section.
21867# No need to generate them if there are no CONFIG_HEADERS.
21868# This happens for instance with `./config.status Makefile'.
21869if test -n "$CONFIG_HEADERS"; then
21870cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21871BEGIN {
21872_ACEOF
21873
21874# Transform confdefs.h into an awk script `defines.awk', embedded as
21875# here-document in config.status, that substitutes the proper values into
21876# config.h.in to produce config.h.
21877
21878# Create a delimiter string that does not exist in confdefs.h, to ease
21879# handling of long lines.
21880ac_delim='%!_!# '
21881for ac_last_try in false false :; do
21882  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21883  if test -z "$ac_tt"; then
21884    break
21885  elif $ac_last_try; then
21886    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21887  else
21888    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21889  fi
21890done
21891
21892# For the awk script, D is an array of macro values keyed by name,
21893# likewise P contains macro parameters if any.  Preserve backslash
21894# newline sequences.
21895
21896ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21897sed -n '
21898s/.\{148\}/&'"$ac_delim"'/g
21899t rset
21900:rset
21901s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21902t def
21903d
21904:def
21905s/\\$//
21906t bsnl
21907s/["\\]/\\&/g
21908s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21909D["\1"]=" \3"/p
21910s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21911d
21912:bsnl
21913s/["\\]/\\&/g
21914s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21915D["\1"]=" \3\\\\\\n"\\/p
21916t cont
21917s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21918t cont
21919d
21920:cont
21921n
21922s/.\{148\}/&'"$ac_delim"'/g
21923t clear
21924:clear
21925s/\\$//
21926t bsnlc
21927s/["\\]/\\&/g; s/^/"/; s/$/"/p
21928d
21929:bsnlc
21930s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21931b cont
21932' <confdefs.h | sed '
21933s/'"$ac_delim"'/"\\\
21934"/g' >>$CONFIG_STATUS || ac_write_fail=1
21935
21936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21937  for (key in D) D_is_set[key] = 1
21938  FS = ""
21939}
21940/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21941  line = \$ 0
21942  split(line, arg, " ")
21943  if (arg[1] == "#") {
21944    defundef = arg[2]
21945    mac1 = arg[3]
21946  } else {
21947    defundef = substr(arg[1], 2)
21948    mac1 = arg[2]
21949  }
21950  split(mac1, mac2, "(") #)
21951  macro = mac2[1]
21952  prefix = substr(line, 1, index(line, defundef) - 1)
21953  if (D_is_set[macro]) {
21954    # Preserve the white space surrounding the "#".
21955    print prefix "define", macro P[macro] D[macro]
21956    next
21957  } else {
21958    # Replace #undef with comments.  This is necessary, for example,
21959    # in the case of _POSIX_SOURCE, which is predefined and required
21960    # on some systems where configure will not decide to define it.
21961    if (defundef == "undef") {
21962      print "/*", prefix defundef, macro, "*/"
21963      next
21964    }
21965  }
21966}
21967{ print }
21968_ACAWK
21969_ACEOF
21970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21971  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21972fi # test -n "$CONFIG_HEADERS"
21973
21974
21975eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21976shift
21977for ac_tag
21978do
21979  case $ac_tag in
21980  :[FHLC]) ac_mode=$ac_tag; continue;;
21981  esac
21982  case $ac_mode$ac_tag in
21983  :[FHL]*:*);;
21984  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21985  :[FH]-) ac_tag=-:-;;
21986  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21987  esac
21988  ac_save_IFS=$IFS
21989  IFS=:
21990  set x $ac_tag
21991  IFS=$ac_save_IFS
21992  shift
21993  ac_file=$1
21994  shift
21995
21996  case $ac_mode in
21997  :L) ac_source=$1;;
21998  :[FH])
21999    ac_file_inputs=
22000    for ac_f
22001    do
22002      case $ac_f in
22003      -) ac_f="$ac_tmp/stdin";;
22004      *) # Look for the file first in the build tree, then in the source tree
22005	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22006	 # because $ac_f cannot contain `:'.
22007	 test -f "$ac_f" ||
22008	   case $ac_f in
22009	   [\\/$]*) false;;
22010	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22011	   esac ||
22012	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22013      esac
22014      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22015      as_fn_append ac_file_inputs " '$ac_f'"
22016    done
22017
22018    # Let's still pretend it is `configure' which instantiates (i.e., don't
22019    # use $as_me), people would be surprised to read:
22020    #    /* config.h.  Generated by config.status.  */
22021    configure_input='Generated from '`
22022	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22023	`' by configure.'
22024    if test x"$ac_file" != x-; then
22025      configure_input="$ac_file.  $configure_input"
22026      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22027$as_echo "$as_me: creating $ac_file" >&6;}
22028    fi
22029    # Neutralize special characters interpreted by sed in replacement strings.
22030    case $configure_input in #(
22031    *\&* | *\|* | *\\* )
22032       ac_sed_conf_input=`$as_echo "$configure_input" |
22033       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22034    *) ac_sed_conf_input=$configure_input;;
22035    esac
22036
22037    case $ac_tag in
22038    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22039      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22040    esac
22041    ;;
22042  esac
22043
22044  ac_dir=`$as_dirname -- "$ac_file" ||
22045$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22046	 X"$ac_file" : 'X\(//\)[^/]' \| \
22047	 X"$ac_file" : 'X\(//\)$' \| \
22048	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22049$as_echo X"$ac_file" |
22050    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22051	    s//\1/
22052	    q
22053	  }
22054	  /^X\(\/\/\)[^/].*/{
22055	    s//\1/
22056	    q
22057	  }
22058	  /^X\(\/\/\)$/{
22059	    s//\1/
22060	    q
22061	  }
22062	  /^X\(\/\).*/{
22063	    s//\1/
22064	    q
22065	  }
22066	  s/.*/./; q'`
22067  as_dir="$ac_dir"; as_fn_mkdir_p
22068  ac_builddir=.
22069
22070case "$ac_dir" in
22071.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22072*)
22073  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22074  # A ".." for each directory in $ac_dir_suffix.
22075  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22076  case $ac_top_builddir_sub in
22077  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22078  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22079  esac ;;
22080esac
22081ac_abs_top_builddir=$ac_pwd
22082ac_abs_builddir=$ac_pwd$ac_dir_suffix
22083# for backward compatibility:
22084ac_top_builddir=$ac_top_build_prefix
22085
22086case $srcdir in
22087  .)  # We are building in place.
22088    ac_srcdir=.
22089    ac_top_srcdir=$ac_top_builddir_sub
22090    ac_abs_top_srcdir=$ac_pwd ;;
22091  [\\/]* | ?:[\\/]* )  # Absolute name.
22092    ac_srcdir=$srcdir$ac_dir_suffix;
22093    ac_top_srcdir=$srcdir
22094    ac_abs_top_srcdir=$srcdir ;;
22095  *) # Relative name.
22096    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22097    ac_top_srcdir=$ac_top_build_prefix$srcdir
22098    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22099esac
22100ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22101
22102
22103  case $ac_mode in
22104  :F)
22105  #
22106  # CONFIG_FILE
22107  #
22108
22109  case $INSTALL in
22110  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22111  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22112  esac
22113  ac_MKDIR_P=$MKDIR_P
22114  case $MKDIR_P in
22115  [\\/$]* | ?:[\\/]* ) ;;
22116  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22117  esac
22118_ACEOF
22119
22120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22121# If the template does not know about datarootdir, expand it.
22122# FIXME: This hack should be removed a few years after 2.60.
22123ac_datarootdir_hack=; ac_datarootdir_seen=
22124ac_sed_dataroot='
22125/datarootdir/ {
22126  p
22127  q
22128}
22129/@datadir@/p
22130/@docdir@/p
22131/@infodir@/p
22132/@localedir@/p
22133/@mandir@/p'
22134case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22135*datarootdir*) ac_datarootdir_seen=yes;;
22136*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22137  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22138$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22139_ACEOF
22140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22141  ac_datarootdir_hack='
22142  s&@datadir@&$datadir&g
22143  s&@docdir@&$docdir&g
22144  s&@infodir@&$infodir&g
22145  s&@localedir@&$localedir&g
22146  s&@mandir@&$mandir&g
22147  s&\\\${datarootdir}&$datarootdir&g' ;;
22148esac
22149_ACEOF
22150
22151# Neutralize VPATH when `$srcdir' = `.'.
22152# Shell code in configure.ac might set extrasub.
22153# FIXME: do we really want to maintain this feature?
22154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22155ac_sed_extra="$ac_vpsub
22156$extrasub
22157_ACEOF
22158cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22159:t
22160/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22161s|@configure_input@|$ac_sed_conf_input|;t t
22162s&@top_builddir@&$ac_top_builddir_sub&;t t
22163s&@top_build_prefix@&$ac_top_build_prefix&;t t
22164s&@srcdir@&$ac_srcdir&;t t
22165s&@abs_srcdir@&$ac_abs_srcdir&;t t
22166s&@top_srcdir@&$ac_top_srcdir&;t t
22167s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22168s&@builddir@&$ac_builddir&;t t
22169s&@abs_builddir@&$ac_abs_builddir&;t t
22170s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22171s&@INSTALL@&$ac_INSTALL&;t t
22172s&@MKDIR_P@&$ac_MKDIR_P&;t t
22173$ac_datarootdir_hack
22174"
22175eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22176  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22177
22178test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22179  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22180  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22181      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22182  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22183which seems to be undefined.  Please make sure it is defined" >&5
22184$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22185which seems to be undefined.  Please make sure it is defined" >&2;}
22186
22187  rm -f "$ac_tmp/stdin"
22188  case $ac_file in
22189  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22190  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22191  esac \
22192  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22193 ;;
22194  :H)
22195  #
22196  # CONFIG_HEADER
22197  #
22198  if test x"$ac_file" != x-; then
22199    {
22200      $as_echo "/* $configure_input  */" \
22201      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22202    } >"$ac_tmp/config.h" \
22203      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22204    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22205      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22206$as_echo "$as_me: $ac_file is unchanged" >&6;}
22207    else
22208      rm -f "$ac_file"
22209      mv "$ac_tmp/config.h" "$ac_file" \
22210	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22211    fi
22212  else
22213    $as_echo "/* $configure_input  */" \
22214      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22215      || as_fn_error $? "could not create -" "$LINENO" 5
22216  fi
22217# Compute "$ac_file"'s index in $config_headers.
22218_am_arg="$ac_file"
22219_am_stamp_count=1
22220for _am_header in $config_headers :; do
22221  case $_am_header in
22222    $_am_arg | $_am_arg:* )
22223      break ;;
22224    * )
22225      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22226  esac
22227done
22228echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22229$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22230	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22231	 X"$_am_arg" : 'X\(//\)$' \| \
22232	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22233$as_echo X"$_am_arg" |
22234    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22235	    s//\1/
22236	    q
22237	  }
22238	  /^X\(\/\/\)[^/].*/{
22239	    s//\1/
22240	    q
22241	  }
22242	  /^X\(\/\/\)$/{
22243	    s//\1/
22244	    q
22245	  }
22246	  /^X\(\/\).*/{
22247	    s//\1/
22248	    q
22249	  }
22250	  s/.*/./; q'`/stamp-h$_am_stamp_count
22251 ;;
22252
22253  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22254$as_echo "$as_me: executing $ac_file commands" >&6;}
22255 ;;
22256  esac
22257
22258
22259  case $ac_file$ac_mode in
22260    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22261  # Older Autoconf quotes --file arguments for eval, but not when files
22262  # are listed without --file.  Let's play safe and only enable the eval
22263  # if we detect the quoting.
22264  case $CONFIG_FILES in
22265  *\'*) eval set x "$CONFIG_FILES" ;;
22266  *)   set x $CONFIG_FILES ;;
22267  esac
22268  shift
22269  for mf
22270  do
22271    # Strip MF so we end up with the name of the file.
22272    mf=`echo "$mf" | sed -e 's/:.*$//'`
22273    # Check whether this is an Automake generated Makefile or not.
22274    # We used to match only the files named 'Makefile.in', but
22275    # some people rename them; so instead we look at the file content.
22276    # Grep'ing the first line is not enough: some people post-process
22277    # each Makefile.in and add a new line on top of each file to say so.
22278    # Grep'ing the whole file is not good either: AIX grep has a line
22279    # limit of 2048, but all sed's we know have understand at least 4000.
22280    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22281      dirpart=`$as_dirname -- "$mf" ||
22282$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283	 X"$mf" : 'X\(//\)[^/]' \| \
22284	 X"$mf" : 'X\(//\)$' \| \
22285	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22286$as_echo X"$mf" |
22287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288	    s//\1/
22289	    q
22290	  }
22291	  /^X\(\/\/\)[^/].*/{
22292	    s//\1/
22293	    q
22294	  }
22295	  /^X\(\/\/\)$/{
22296	    s//\1/
22297	    q
22298	  }
22299	  /^X\(\/\).*/{
22300	    s//\1/
22301	    q
22302	  }
22303	  s/.*/./; q'`
22304    else
22305      continue
22306    fi
22307    # Extract the definition of DEPDIR, am__include, and am__quote
22308    # from the Makefile without running 'make'.
22309    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22310    test -z "$DEPDIR" && continue
22311    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22312    test -z "$am__include" && continue
22313    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22314    # Find all dependency output files, they are included files with
22315    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22316    # simplest approach to changing $(DEPDIR) to its actual value in the
22317    # expansion.
22318    for file in `sed -n "
22319      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22320	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22321      # Make sure the directory exists.
22322      test -f "$dirpart/$file" && continue
22323      fdir=`$as_dirname -- "$file" ||
22324$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22325	 X"$file" : 'X\(//\)[^/]' \| \
22326	 X"$file" : 'X\(//\)$' \| \
22327	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22328$as_echo X"$file" |
22329    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22330	    s//\1/
22331	    q
22332	  }
22333	  /^X\(\/\/\)[^/].*/{
22334	    s//\1/
22335	    q
22336	  }
22337	  /^X\(\/\/\)$/{
22338	    s//\1/
22339	    q
22340	  }
22341	  /^X\(\/\).*/{
22342	    s//\1/
22343	    q
22344	  }
22345	  s/.*/./; q'`
22346      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22347      # echo "creating $dirpart/$file"
22348      echo '# dummy' > "$dirpart/$file"
22349    done
22350  done
22351}
22352 ;;
22353    "libtool":C)
22354
22355    # See if we are running on zsh, and set the options which allow our
22356    # commands through without removal of \ escapes.
22357    if test -n "${ZSH_VERSION+set}" ; then
22358      setopt NO_GLOB_SUBST
22359    fi
22360
22361    cfgfile="${ofile}T"
22362    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22363    $RM "$cfgfile"
22364
22365    cat <<_LT_EOF >> "$cfgfile"
22366#! $SHELL
22367
22368# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22369# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22370# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22371# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22372#
22373#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22374#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
22375#                 Foundation, Inc.
22376#   Written by Gordon Matzigkeit, 1996
22377#
22378#   This file is part of GNU Libtool.
22379#
22380# GNU Libtool is free software; you can redistribute it and/or
22381# modify it under the terms of the GNU General Public License as
22382# published by the Free Software Foundation; either version 2 of
22383# the License, or (at your option) any later version.
22384#
22385# As a special exception to the GNU General Public License,
22386# if you distribute this file as part of a program or library that
22387# is built using GNU Libtool, you may include this file under the
22388# same distribution terms that you use for the rest of that program.
22389#
22390# GNU Libtool is distributed in the hope that it will be useful,
22391# but WITHOUT ANY WARRANTY; without even the implied warranty of
22392# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22393# GNU General Public License for more details.
22394#
22395# You should have received a copy of the GNU General Public License
22396# along with GNU Libtool; see the file COPYING.  If not, a copy
22397# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22398# obtained by writing to the Free Software Foundation, Inc.,
22399# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22400
22401
22402# The names of the tagged configurations supported by this script.
22403available_tags=""
22404
22405# ### BEGIN LIBTOOL CONFIG
22406
22407# Which release of libtool.m4 was used?
22408macro_version=$macro_version
22409macro_revision=$macro_revision
22410
22411# Assembler program.
22412AS=$lt_AS
22413
22414# DLL creation program.
22415DLLTOOL=$lt_DLLTOOL
22416
22417# Object dumper program.
22418OBJDUMP=$lt_OBJDUMP
22419
22420# Whether or not to build shared libraries.
22421build_libtool_libs=$enable_shared
22422
22423# Whether or not to build static libraries.
22424build_old_libs=$enable_static
22425
22426# What type of objects to build.
22427pic_mode=$pic_mode
22428
22429# Whether or not to optimize for fast installation.
22430fast_install=$enable_fast_install
22431
22432# Shell to use when invoking shell scripts.
22433SHELL=$lt_SHELL
22434
22435# An echo program that protects backslashes.
22436ECHO=$lt_ECHO
22437
22438# The PATH separator for the build system.
22439PATH_SEPARATOR=$lt_PATH_SEPARATOR
22440
22441# The host system.
22442host_alias=$host_alias
22443host=$host
22444host_os=$host_os
22445
22446# The build system.
22447build_alias=$build_alias
22448build=$build
22449build_os=$build_os
22450
22451# A sed program that does not truncate output.
22452SED=$lt_SED
22453
22454# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22455Xsed="\$SED -e 1s/^X//"
22456
22457# A grep program that handles long lines.
22458GREP=$lt_GREP
22459
22460# An ERE matcher.
22461EGREP=$lt_EGREP
22462
22463# A literal string matcher.
22464FGREP=$lt_FGREP
22465
22466# A BSD- or MS-compatible name lister.
22467NM=$lt_NM
22468
22469# Whether we need soft or hard links.
22470LN_S=$lt_LN_S
22471
22472# What is the maximum length of a command?
22473max_cmd_len=$max_cmd_len
22474
22475# Object file suffix (normally "o").
22476objext=$ac_objext
22477
22478# Executable file suffix (normally "").
22479exeext=$exeext
22480
22481# whether the shell understands "unset".
22482lt_unset=$lt_unset
22483
22484# turn spaces into newlines.
22485SP2NL=$lt_lt_SP2NL
22486
22487# turn newlines into spaces.
22488NL2SP=$lt_lt_NL2SP
22489
22490# convert \$build file names to \$host format.
22491to_host_file_cmd=$lt_cv_to_host_file_cmd
22492
22493# convert \$build files to toolchain format.
22494to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22495
22496# Method to check whether dependent libraries are shared objects.
22497deplibs_check_method=$lt_deplibs_check_method
22498
22499# Command to use when deplibs_check_method = "file_magic".
22500file_magic_cmd=$lt_file_magic_cmd
22501
22502# How to find potential files when deplibs_check_method = "file_magic".
22503file_magic_glob=$lt_file_magic_glob
22504
22505# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22506want_nocaseglob=$lt_want_nocaseglob
22507
22508# Command to associate shared and link libraries.
22509sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22510
22511# The archiver.
22512AR=$lt_AR
22513
22514# Flags to create an archive.
22515AR_FLAGS=$lt_AR_FLAGS
22516
22517# How to feed a file listing to the archiver.
22518archiver_list_spec=$lt_archiver_list_spec
22519
22520# A symbol stripping program.
22521STRIP=$lt_STRIP
22522
22523# Commands used to install an old-style archive.
22524RANLIB=$lt_RANLIB
22525old_postinstall_cmds=$lt_old_postinstall_cmds
22526old_postuninstall_cmds=$lt_old_postuninstall_cmds
22527
22528# Whether to use a lock for old archive extraction.
22529lock_old_archive_extraction=$lock_old_archive_extraction
22530
22531# A C compiler.
22532LTCC=$lt_CC
22533
22534# LTCC compiler flags.
22535LTCFLAGS=$lt_CFLAGS
22536
22537# Take the output of nm and produce a listing of raw symbols and C names.
22538global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22539
22540# Transform the output of nm in a proper C declaration.
22541global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22542
22543# Transform the output of nm in a C name address pair.
22544global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22545
22546# Transform the output of nm in a C name address pair when lib prefix is needed.
22547global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22548
22549# Specify filename containing input files for \$NM.
22550nm_file_list_spec=$lt_nm_file_list_spec
22551
22552# The root where to search for dependent libraries,and in which our libraries should be installed.
22553lt_sysroot=$lt_sysroot
22554
22555# The name of the directory that contains temporary libtool files.
22556objdir=$objdir
22557
22558# Used to examine libraries when file_magic_cmd begins with "file".
22559MAGIC_CMD=$MAGIC_CMD
22560
22561# Must we lock files when doing compilation?
22562need_locks=$lt_need_locks
22563
22564# Manifest tool.
22565MANIFEST_TOOL=$lt_MANIFEST_TOOL
22566
22567# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22568DSYMUTIL=$lt_DSYMUTIL
22569
22570# Tool to change global to local symbols on Mac OS X.
22571NMEDIT=$lt_NMEDIT
22572
22573# Tool to manipulate fat objects and archives on Mac OS X.
22574LIPO=$lt_LIPO
22575
22576# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22577OTOOL=$lt_OTOOL
22578
22579# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22580OTOOL64=$lt_OTOOL64
22581
22582# Old archive suffix (normally "a").
22583libext=$libext
22584
22585# Shared library suffix (normally ".so").
22586shrext_cmds=$lt_shrext_cmds
22587
22588# The commands to extract the exported symbol list from a shared archive.
22589extract_expsyms_cmds=$lt_extract_expsyms_cmds
22590
22591# Variables whose values should be saved in libtool wrapper scripts and
22592# restored at link time.
22593variables_saved_for_relink=$lt_variables_saved_for_relink
22594
22595# Do we need the "lib" prefix for modules?
22596need_lib_prefix=$need_lib_prefix
22597
22598# Do we need a version for libraries?
22599need_version=$need_version
22600
22601# Library versioning type.
22602version_type=$version_type
22603
22604# Shared library runtime path variable.
22605runpath_var=$runpath_var
22606
22607# Shared library path variable.
22608shlibpath_var=$shlibpath_var
22609
22610# Is shlibpath searched before the hard-coded library search path?
22611shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22612
22613# Format of library name prefix.
22614libname_spec=$lt_libname_spec
22615
22616# List of archive names.  First name is the real one, the rest are links.
22617# The last name is the one that the linker finds with -lNAME
22618library_names_spec=$lt_library_names_spec
22619
22620# The coded name of the library, if different from the real name.
22621soname_spec=$lt_soname_spec
22622
22623# Permission mode override for installation of shared libraries.
22624install_override_mode=$lt_install_override_mode
22625
22626# Command to use after installation of a shared archive.
22627postinstall_cmds=$lt_postinstall_cmds
22628
22629# Command to use after uninstallation of a shared archive.
22630postuninstall_cmds=$lt_postuninstall_cmds
22631
22632# Commands used to finish a libtool library installation in a directory.
22633finish_cmds=$lt_finish_cmds
22634
22635# As "finish_cmds", except a single script fragment to be evaled but
22636# not shown.
22637finish_eval=$lt_finish_eval
22638
22639# Whether we should hardcode library paths into libraries.
22640hardcode_into_libs=$hardcode_into_libs
22641
22642# Compile-time system search path for libraries.
22643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22644
22645# Run-time system search path for libraries.
22646sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22647
22648# Whether dlopen is supported.
22649dlopen_support=$enable_dlopen
22650
22651# Whether dlopen of programs is supported.
22652dlopen_self=$enable_dlopen_self
22653
22654# Whether dlopen of statically linked programs is supported.
22655dlopen_self_static=$enable_dlopen_self_static
22656
22657# Commands to strip libraries.
22658old_striplib=$lt_old_striplib
22659striplib=$lt_striplib
22660
22661
22662# The linker used to build libraries.
22663LD=$lt_LD
22664
22665# How to create reloadable object files.
22666reload_flag=$lt_reload_flag
22667reload_cmds=$lt_reload_cmds
22668
22669# Commands used to build an old-style archive.
22670old_archive_cmds=$lt_old_archive_cmds
22671
22672# A language specific compiler.
22673CC=$lt_compiler
22674
22675# Is the compiler the GNU compiler?
22676with_gcc=$GCC
22677
22678# Compiler flag to turn off builtin functions.
22679no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22680
22681# Additional compiler flags for building library objects.
22682pic_flag=$lt_lt_prog_compiler_pic
22683
22684# How to pass a linker flag through the compiler.
22685wl=$lt_lt_prog_compiler_wl
22686
22687# Compiler flag to prevent dynamic linking.
22688link_static_flag=$lt_lt_prog_compiler_static
22689
22690# Does compiler simultaneously support -c and -o options?
22691compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22692
22693# Whether or not to add -lc for building shared libraries.
22694build_libtool_need_lc=$archive_cmds_need_lc
22695
22696# Whether or not to disallow shared libs when runtime libs are static.
22697allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22698
22699# Compiler flag to allow reflexive dlopens.
22700export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22701
22702# Compiler flag to generate shared objects directly from archives.
22703whole_archive_flag_spec=$lt_whole_archive_flag_spec
22704
22705# Whether the compiler copes with passing no objects directly.
22706compiler_needs_object=$lt_compiler_needs_object
22707
22708# Create an old-style archive from a shared archive.
22709old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22710
22711# Create a temporary old-style archive to link instead of a shared archive.
22712old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22713
22714# Commands used to build a shared archive.
22715archive_cmds=$lt_archive_cmds
22716archive_expsym_cmds=$lt_archive_expsym_cmds
22717
22718# Commands used to build a loadable module if different from building
22719# a shared archive.
22720module_cmds=$lt_module_cmds
22721module_expsym_cmds=$lt_module_expsym_cmds
22722
22723# Whether we are building with GNU ld or not.
22724with_gnu_ld=$lt_with_gnu_ld
22725
22726# Flag that allows shared libraries with undefined symbols to be built.
22727allow_undefined_flag=$lt_allow_undefined_flag
22728
22729# Flag that enforces no undefined symbols.
22730no_undefined_flag=$lt_no_undefined_flag
22731
22732# Flag to hardcode \$libdir into a binary during linking.
22733# This must work even if \$libdir does not exist
22734hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22735
22736# Whether we need a single "-rpath" flag with a separated argument.
22737hardcode_libdir_separator=$lt_hardcode_libdir_separator
22738
22739# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22740# DIR into the resulting binary.
22741hardcode_direct=$hardcode_direct
22742
22743# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22744# DIR into the resulting binary and the resulting library dependency is
22745# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22746# library is relocated.
22747hardcode_direct_absolute=$hardcode_direct_absolute
22748
22749# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22750# into the resulting binary.
22751hardcode_minus_L=$hardcode_minus_L
22752
22753# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22754# into the resulting binary.
22755hardcode_shlibpath_var=$hardcode_shlibpath_var
22756
22757# Set to "yes" if building a shared library automatically hardcodes DIR
22758# into the library and all subsequent libraries and executables linked
22759# against it.
22760hardcode_automatic=$hardcode_automatic
22761
22762# Set to yes if linker adds runtime paths of dependent libraries
22763# to runtime path list.
22764inherit_rpath=$inherit_rpath
22765
22766# Whether libtool must link a program against all its dependency libraries.
22767link_all_deplibs=$link_all_deplibs
22768
22769# Set to "yes" if exported symbols are required.
22770always_export_symbols=$always_export_symbols
22771
22772# The commands to list exported symbols.
22773export_symbols_cmds=$lt_export_symbols_cmds
22774
22775# Symbols that should not be listed in the preloaded symbols.
22776exclude_expsyms=$lt_exclude_expsyms
22777
22778# Symbols that must always be exported.
22779include_expsyms=$lt_include_expsyms
22780
22781# Commands necessary for linking programs (against libraries) with templates.
22782prelink_cmds=$lt_prelink_cmds
22783
22784# Commands necessary for finishing linking programs.
22785postlink_cmds=$lt_postlink_cmds
22786
22787# Specify filename containing input files.
22788file_list_spec=$lt_file_list_spec
22789
22790# How to hardcode a shared library path into an executable.
22791hardcode_action=$hardcode_action
22792
22793# ### END LIBTOOL CONFIG
22794
22795_LT_EOF
22796
22797  case $host_os in
22798  aix3*)
22799    cat <<\_LT_EOF >> "$cfgfile"
22800# AIX sometimes has problems with the GCC collect2 program.  For some
22801# reason, if we set the COLLECT_NAMES environment variable, the problems
22802# vanish in a puff of smoke.
22803if test "X${COLLECT_NAMES+set}" != Xset; then
22804  COLLECT_NAMES=
22805  export COLLECT_NAMES
22806fi
22807_LT_EOF
22808    ;;
22809  esac
22810
22811
22812ltmain="$ac_aux_dir/ltmain.sh"
22813
22814
22815  # We use sed instead of cat because bash on DJGPP gets confused if
22816  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22817  # text mode, it properly converts lines to CR/LF.  This bash problem
22818  # is reportedly fixed, but why not run on old versions too?
22819  sed '$q' "$ltmain" >> "$cfgfile" \
22820     || (rm -f "$cfgfile"; exit 1)
22821
22822  if test x"$xsi_shell" = xyes; then
22823  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22824func_dirname ()\
22825{\
22826\    case ${1} in\
22827\      */*) func_dirname_result="${1%/*}${2}" ;;\
22828\      *  ) func_dirname_result="${3}" ;;\
22829\    esac\
22830} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22831  && mv -f "$cfgfile.tmp" "$cfgfile" \
22832    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22833test 0 -eq $? || _lt_function_replace_fail=:
22834
22835
22836  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22837func_basename ()\
22838{\
22839\    func_basename_result="${1##*/}"\
22840} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22841  && mv -f "$cfgfile.tmp" "$cfgfile" \
22842    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22843test 0 -eq $? || _lt_function_replace_fail=:
22844
22845
22846  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22847func_dirname_and_basename ()\
22848{\
22849\    case ${1} in\
22850\      */*) func_dirname_result="${1%/*}${2}" ;;\
22851\      *  ) func_dirname_result="${3}" ;;\
22852\    esac\
22853\    func_basename_result="${1##*/}"\
22854} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22855  && mv -f "$cfgfile.tmp" "$cfgfile" \
22856    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22857test 0 -eq $? || _lt_function_replace_fail=:
22858
22859
22860  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22861func_stripname ()\
22862{\
22863\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22864\    # positional parameters, so assign one to ordinary parameter first.\
22865\    func_stripname_result=${3}\
22866\    func_stripname_result=${func_stripname_result#"${1}"}\
22867\    func_stripname_result=${func_stripname_result%"${2}"}\
22868} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22869  && mv -f "$cfgfile.tmp" "$cfgfile" \
22870    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22871test 0 -eq $? || _lt_function_replace_fail=:
22872
22873
22874  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22875func_split_long_opt ()\
22876{\
22877\    func_split_long_opt_name=${1%%=*}\
22878\    func_split_long_opt_arg=${1#*=}\
22879} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22880  && mv -f "$cfgfile.tmp" "$cfgfile" \
22881    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22882test 0 -eq $? || _lt_function_replace_fail=:
22883
22884
22885  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22886func_split_short_opt ()\
22887{\
22888\    func_split_short_opt_arg=${1#??}\
22889\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22890} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22891  && mv -f "$cfgfile.tmp" "$cfgfile" \
22892    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22893test 0 -eq $? || _lt_function_replace_fail=:
22894
22895
22896  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22897func_lo2o ()\
22898{\
22899\    case ${1} in\
22900\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22901\      *)    func_lo2o_result=${1} ;;\
22902\    esac\
22903} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22904  && mv -f "$cfgfile.tmp" "$cfgfile" \
22905    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22906test 0 -eq $? || _lt_function_replace_fail=:
22907
22908
22909  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22910func_xform ()\
22911{\
22912    func_xform_result=${1%.*}.lo\
22913} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22914  && mv -f "$cfgfile.tmp" "$cfgfile" \
22915    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22916test 0 -eq $? || _lt_function_replace_fail=:
22917
22918
22919  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22920func_arith ()\
22921{\
22922    func_arith_result=$(( $* ))\
22923} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22924  && mv -f "$cfgfile.tmp" "$cfgfile" \
22925    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22926test 0 -eq $? || _lt_function_replace_fail=:
22927
22928
22929  sed -e '/^func_len ()$/,/^} # func_len /c\
22930func_len ()\
22931{\
22932    func_len_result=${#1}\
22933} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22934  && mv -f "$cfgfile.tmp" "$cfgfile" \
22935    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22936test 0 -eq $? || _lt_function_replace_fail=:
22937
22938fi
22939
22940if test x"$lt_shell_append" = xyes; then
22941  sed -e '/^func_append ()$/,/^} # func_append /c\
22942func_append ()\
22943{\
22944    eval "${1}+=\\${2}"\
22945} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22946  && mv -f "$cfgfile.tmp" "$cfgfile" \
22947    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22948test 0 -eq $? || _lt_function_replace_fail=:
22949
22950
22951  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22952func_append_quoted ()\
22953{\
22954\    func_quote_for_eval "${2}"\
22955\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22956} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22957  && mv -f "$cfgfile.tmp" "$cfgfile" \
22958    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22959test 0 -eq $? || _lt_function_replace_fail=:
22960
22961
22962  # Save a `func_append' function call where possible by direct use of '+='
22963  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22964    && mv -f "$cfgfile.tmp" "$cfgfile" \
22965      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22966  test 0 -eq $? || _lt_function_replace_fail=:
22967else
22968  # Save a `func_append' function call even when '+=' is not available
22969  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22970    && mv -f "$cfgfile.tmp" "$cfgfile" \
22971      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22972  test 0 -eq $? || _lt_function_replace_fail=:
22973fi
22974
22975if test x"$_lt_function_replace_fail" = x":"; then
22976  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22977$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22978fi
22979
22980
22981   mv -f "$cfgfile" "$ofile" ||
22982    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22983  chmod +x "$ofile"
22984
22985 ;;
22986
22987  esac
22988done # for ac_tag
22989
22990
22991as_fn_exit 0
22992_ACEOF
22993ac_clean_files=$ac_clean_files_save
22994
22995test $ac_write_fail = 0 ||
22996  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22997
22998
22999# configure is writing to config.log, and then calls config.status.
23000# config.status does its own redirection, appending to config.log.
23001# Unfortunately, on DOS this fails, as config.log is still kept open
23002# by configure, so config.status won't be able to write to it; its
23003# output is simply discarded.  So we exec the FD to /dev/null,
23004# effectively closing config.log, so it can be properly (re)opened and
23005# appended to by config.status.  When coming back to configure, we
23006# need to make the FD available again.
23007if test "$no_create" != yes; then
23008  ac_cs_success=:
23009  ac_config_status_args=
23010  test "$silent" = yes &&
23011    ac_config_status_args="$ac_config_status_args --quiet"
23012  exec 5>/dev/null
23013  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23014  exec 5>>config.log
23015  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23016  # would make configure fail if this is the last instruction.
23017  $ac_cs_success || as_fn_exit 1
23018fi
23019if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23020  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23021$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23022fi
23023
23024
23025
23026echo ""
23027echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
23028echo ""
23029echo "  Configuration"
23030echo "    XDM support.........: ${have_xdmcp}"
23031echo "    sendmsg fd passing..: ${sendfds}"
23032echo "    Build unit tests....: ${HAVE_CHECK}"
23033echo "      with html results.: ${HTML_CHECK_RESULT}"
23034echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
23035echo ""
23036echo "  X11 extensions"
23037echo "    Composite...........: ${BUILD_COMPOSITE}"
23038echo "    Damage..............: ${BUILD_DAMAGE}"
23039echo "    Dpms................: ${BUILD_DPMS}"
23040echo "    Dri2................: ${BUILD_DRI2}"
23041echo "    Dri3................: ${BUILD_DRI3}"
23042echo "    Glx.................: ${BUILD_GLX}"
23043echo "    Randr...............: ${BUILD_RANDR}"
23044echo "    Record..............: ${BUILD_RECORD}"
23045echo "    Render..............: ${BUILD_RENDER}"
23046echo "    Resource............: ${BUILD_RESOURCE}"
23047echo "    Screensaver.........: ${BUILD_SCREENSAVER}"
23048echo "    selinux.............: ${BUILD_SELINUX}"
23049echo "    Shape...............: ${BUILD_SHAPE}"
23050echo "    Shm.................: ${BUILD_SHM}"
23051echo "    Sync................: ${BUILD_SYNC}"
23052echo "    Xevie...............: ${BUILD_XEVIE}"
23053echo "    Xfixes..............: ${BUILD_XFIXES}"
23054echo "    Xfree86-dri.........: ${BUILD_XFREE86_DRI}"
23055echo "    xinerama............: ${BUILD_XINERAMA}"
23056echo "    xinput..............: ${BUILD_XINPUT}"
23057echo "    xkb.................: ${BUILD_XKB}"
23058echo "    xprint..............: ${BUILD_XPRINT}"
23059echo "    xtest...............: ${BUILD_XTEST}"
23060echo "    xv..................: ${BUILD_XV}"
23061echo "    xvmc................: ${BUILD_XVMC}"
23062echo ""
23063echo "  Used CFLAGS:"
23064echo "    CPPFLAGS............: ${CPPFLAGS}"
23065echo "    CFLAGS..............: ${CFLAGS}"
23066echo "    Warning CFLAGS......: ${BASE_CFLAGS}"
23067echo ""
23068echo "  Installation:"
23069echo "    Prefix..............: ${prefix}"
23070echo ""
23071