configure revision 03b705cf
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-intel 2.21.15.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
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=xorg
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='xf86-video-intel'
593PACKAGE_TARNAME='xf86-video-intel'
594PACKAGE_VERSION='2.21.15'
595PACKAGE_STRING='xf86-video-intel 2.21.15'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
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
640moduledir
641DRIVER_NAME
642VALGRIND_FALSE
643VALGRIND_TRUE
644VALGRIND_LIBS
645VALGRIND_CFLAGS
646FULL_DEBUG_FALSE
647FULL_DEBUG_TRUE
648DEBUG_FALSE
649DEBUG_TRUE
650UMS_ONLY_FALSE
651UMS_ONLY_TRUE
652KMS_ONLY_FALSE
653KMS_ONLY_TRUE
654XVMC_FALSE
655XVMC_TRUE
656XCB_LIBS
657XCB_CFLAGS
658XVMCLIB_LIBS
659XVMCLIB_CFLAGS
660DRI2_FALSE
661DRI2_TRUE
662DRI_DRIVER_PATH
663DRI2_LIBS
664DRI2_CFLAGS
665DRI1_FALSE
666DRI1_TRUE
667DRI1_LIBS
668DRI1_CFLAGS
669CLOCK_GETTIME_LIBS
670PCIACCESS_LIBS
671PCIACCESS_CFLAGS
672DRM_LIBS
673DRM_CFLAGS
674USE_WT_FALSE
675USE_WT_TRUE
676USE_ASYNC_SWAP_FALSE
677USE_ASYNC_SWAP_TRUE
678USE_USERPTR_FALSE
679USE_USERPTR_TRUE
680USE_CREATE2_FALSE
681USE_CREATE2_TRUE
682DGA_FALSE
683DGA_TRUE
684XAA_FALSE
685XAA_TRUE
686XORG_LIBS
687XORG_CFLAGS
688LIBGLAMOR_EGL_LIBS
689LIBGLAMOR_EGL_CFLAGS
690LIBGLAMOR_LIBS
691LIBGLAMOR_CFLAGS
692GLAMOR_FALSE
693GLAMOR_TRUE
694UXA_FALSE
695UXA_TRUE
696DRMINTEL_LIBS
697DRMINTEL_CFLAGS
698SNA_FALSE
699SNA_TRUE
700HAVE_X11_FALSE
701HAVE_X11_TRUE
702X11_LIBS
703X11_CFLAGS
704UDEV_LIBS
705UDEV_CFLAGS
706HAVE_GEN4ASM_FALSE
707HAVE_GEN4ASM_TRUE
708INTEL_GEN4ASM
709GEN4ASM_LIBS
710GEN4ASM_CFLAGS
711HAVE_DOT_GIT_FALSE
712HAVE_DOT_GIT_TRUE
713OTOOL64
714OTOOL
715LIPO
716NMEDIT
717DSYMUTIL
718MANIFEST_TOOL
719RANLIB
720ac_ct_AR
721AR
722DLLTOOL
723OBJDUMP
724LN_S
725NM
726ac_ct_DUMPBIN
727DUMPBIN
728LD
729FGREP
730LIBTOOL
731NOWARNFLAGS
732MAN_SUBSTS
733XORG_MAN_PAGE
734ADMIN_MAN_DIR
735DRIVER_MAN_DIR
736MISC_MAN_DIR
737FILE_MAN_DIR
738LIB_MAN_DIR
739APP_MAN_DIR
740ADMIN_MAN_SUFFIX
741DRIVER_MAN_SUFFIX
742MISC_MAN_SUFFIX
743FILE_MAN_SUFFIX
744LIB_MAN_SUFFIX
745APP_MAN_SUFFIX
746SED
747host_os
748host_vendor
749host_cpu
750host
751build_os
752build_vendor
753build_cpu
754build
755INSTALL_CMD
756PKG_CONFIG_LIBDIR
757PKG_CONFIG_PATH
758PKG_CONFIG
759CHANGELOG_CMD
760STRICT_CFLAGS
761CWARNFLAGS
762BASE_CFLAGS
763EGREP
764GREP
765CPP
766am__fastdepCC_FALSE
767am__fastdepCC_TRUE
768CCDEPMODE
769am__nodep
770AMDEPBACKSLASH
771AMDEP_FALSE
772AMDEP_TRUE
773am__quote
774am__include
775DEPDIR
776OBJEXT
777EXEEXT
778ac_ct_CC
779CPPFLAGS
780LDFLAGS
781CFLAGS
782CC
783AM_BACKSLASH
784AM_DEFAULT_VERBOSITY
785AM_DEFAULT_V
786AM_V
787am__untar
788am__tar
789AMTAR
790am__leading_dot
791SET_MAKE
792AWK
793mkdir_p
794MKDIR_P
795INSTALL_STRIP_PROGRAM
796STRIP
797install_sh
798MAKEINFO
799AUTOHEADER
800AUTOMAKE
801AUTOCONF
802ACLOCAL
803VERSION
804PACKAGE
805CYGPATH_W
806am__isrc
807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810target_alias
811host_alias
812build_alias
813LIBS
814ECHO_T
815ECHO_N
816ECHO_C
817DEFS
818mandir
819localedir
820libdir
821psdir
822pdfdir
823dvidir
824htmldir
825infodir
826docdir
827oldincludedir
828includedir
829localstatedir
830sharedstatedir
831sysconfdir
832datadir
833datarootdir
834libexecdir
835sbindir
836bindir
837program_transform_name
838prefix
839exec_prefix
840PACKAGE_URL
841PACKAGE_BUGREPORT
842PACKAGE_STRING
843PACKAGE_VERSION
844PACKAGE_TARNAME
845PACKAGE_NAME
846PATH_SEPARATOR
847SHELL'
848ac_subst_files=''
849ac_user_opts='
850enable_option_checking
851enable_silent_rules
852enable_dependency_tracking
853enable_selective_werror
854enable_strict_compilation
855enable_static
856enable_shared
857with_pic
858enable_fast_install
859with_gnu_ld
860with_sysroot
861enable_libtool_lock
862enable_largefile
863with_builderstring
864enable_gen4asm
865enable_udev
866with_xorg_module_dir
867enable_dri
868enable_xvmc
869enable_kms_only
870enable_ums_only
871enable_sna
872enable_uxa
873enable_glamor
874enable_xaa
875enable_dga
876with_default_accel
877enable_create2
878enable_userptr
879enable_async_swap
880enable_wt
881enable_debug
882enable_valgrind
883'
884      ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CPP
893PKG_CONFIG
894PKG_CONFIG_PATH
895PKG_CONFIG_LIBDIR
896GEN4ASM_CFLAGS
897GEN4ASM_LIBS
898UDEV_CFLAGS
899UDEV_LIBS
900X11_CFLAGS
901X11_LIBS
902DRMINTEL_CFLAGS
903DRMINTEL_LIBS
904LIBGLAMOR_CFLAGS
905LIBGLAMOR_LIBS
906LIBGLAMOR_EGL_CFLAGS
907LIBGLAMOR_EGL_LIBS
908XORG_CFLAGS
909XORG_LIBS
910DRM_CFLAGS
911DRM_LIBS
912PCIACCESS_CFLAGS
913PCIACCESS_LIBS
914DRI1_CFLAGS
915DRI1_LIBS
916DRI2_CFLAGS
917DRI2_LIBS
918XVMCLIB_CFLAGS
919XVMCLIB_LIBS
920XCB_CFLAGS
921XCB_LIBS
922VALGRIND_CFLAGS
923VALGRIND_LIBS'
924
925
926# Initialize some variables set by options.
927ac_init_help=
928ac_init_version=false
929ac_unrecognized_opts=
930ac_unrecognized_sep=
931# The variables have the same names as the options, with
932# dashes changed to underlines.
933cache_file=/dev/null
934exec_prefix=NONE
935no_create=
936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
944verbose=
945x_includes=NONE
946x_libraries=NONE
947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
953# (The list follows the same order as the GNU Coding Standards.)
954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
962includedir='${prefix}/include'
963oldincludedir='/usr/include'
964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
973
974ac_prev=
975ac_dashdash=
976for ac_option
977do
978  # If the previous option needs an argument, assign it.
979  if test -n "$ac_prev"; then
980    eval $ac_prev=\$ac_option
981    ac_prev=
982    continue
983  fi
984
985  case $ac_option in
986  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987  *=)   ac_optarg= ;;
988  *)    ac_optarg=yes ;;
989  esac
990
991  # Accept the important Cygnus configure options, so we can diagnose typos.
992
993  case $ac_dashdash$ac_option in
994  --)
995    ac_dashdash=yes ;;
996
997  -bindir | --bindir | --bindi | --bind | --bin | --bi)
998    ac_prev=bindir ;;
999  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1000    bindir=$ac_optarg ;;
1001
1002  -build | --build | --buil | --bui | --bu)
1003    ac_prev=build_alias ;;
1004  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1005    build_alias=$ac_optarg ;;
1006
1007  -cache-file | --cache-file | --cache-fil | --cache-fi \
1008  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009    ac_prev=cache_file ;;
1010  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1012    cache_file=$ac_optarg ;;
1013
1014  --config-cache | -C)
1015    cache_file=config.cache ;;
1016
1017  -datadir | --datadir | --datadi | --datad)
1018    ac_prev=datadir ;;
1019  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1020    datadir=$ac_optarg ;;
1021
1022  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023  | --dataroo | --dataro | --datar)
1024    ac_prev=datarootdir ;;
1025  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027    datarootdir=$ac_optarg ;;
1028
1029  -disable-* | --disable-*)
1030    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1031    # Reject names that are not valid shell variable names.
1032    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033      as_fn_error $? "invalid feature name: $ac_useropt"
1034    ac_useropt_orig=$ac_useropt
1035    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036    case $ac_user_opts in
1037      *"
1038"enable_$ac_useropt"
1039"*) ;;
1040      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041	 ac_unrecognized_sep=', ';;
1042    esac
1043    eval enable_$ac_useropt=no ;;
1044
1045  -docdir | --docdir | --docdi | --doc | --do)
1046    ac_prev=docdir ;;
1047  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048    docdir=$ac_optarg ;;
1049
1050  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051    ac_prev=dvidir ;;
1052  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053    dvidir=$ac_optarg ;;
1054
1055  -enable-* | --enable-*)
1056    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1057    # Reject names that are not valid shell variable names.
1058    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059      as_fn_error $? "invalid feature name: $ac_useropt"
1060    ac_useropt_orig=$ac_useropt
1061    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062    case $ac_user_opts in
1063      *"
1064"enable_$ac_useropt"
1065"*) ;;
1066      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067	 ac_unrecognized_sep=', ';;
1068    esac
1069    eval enable_$ac_useropt=\$ac_optarg ;;
1070
1071  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073  | --exec | --exe | --ex)
1074    ac_prev=exec_prefix ;;
1075  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077  | --exec=* | --exe=* | --ex=*)
1078    exec_prefix=$ac_optarg ;;
1079
1080  -gas | --gas | --ga | --g)
1081    # Obsolete; use --with-gas.
1082    with_gas=yes ;;
1083
1084  -help | --help | --hel | --he | -h)
1085    ac_init_help=long ;;
1086  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087    ac_init_help=recursive ;;
1088  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089    ac_init_help=short ;;
1090
1091  -host | --host | --hos | --ho)
1092    ac_prev=host_alias ;;
1093  -host=* | --host=* | --hos=* | --ho=*)
1094    host_alias=$ac_optarg ;;
1095
1096  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097    ac_prev=htmldir ;;
1098  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099  | --ht=*)
1100    htmldir=$ac_optarg ;;
1101
1102  -includedir | --includedir | --includedi | --included | --include \
1103  | --includ | --inclu | --incl | --inc)
1104    ac_prev=includedir ;;
1105  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106  | --includ=* | --inclu=* | --incl=* | --inc=*)
1107    includedir=$ac_optarg ;;
1108
1109  -infodir | --infodir | --infodi | --infod | --info | --inf)
1110    ac_prev=infodir ;;
1111  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1112    infodir=$ac_optarg ;;
1113
1114  -libdir | --libdir | --libdi | --libd)
1115    ac_prev=libdir ;;
1116  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1117    libdir=$ac_optarg ;;
1118
1119  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120  | --libexe | --libex | --libe)
1121    ac_prev=libexecdir ;;
1122  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123  | --libexe=* | --libex=* | --libe=*)
1124    libexecdir=$ac_optarg ;;
1125
1126  -localedir | --localedir | --localedi | --localed | --locale)
1127    ac_prev=localedir ;;
1128  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129    localedir=$ac_optarg ;;
1130
1131  -localstatedir | --localstatedir | --localstatedi | --localstated \
1132  | --localstate | --localstat | --localsta | --localst | --locals)
1133    ac_prev=localstatedir ;;
1134  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1135  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1136    localstatedir=$ac_optarg ;;
1137
1138  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139    ac_prev=mandir ;;
1140  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1141    mandir=$ac_optarg ;;
1142
1143  -nfp | --nfp | --nf)
1144    # Obsolete; use --without-fp.
1145    with_fp=no ;;
1146
1147  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1148  | --no-cr | --no-c | -n)
1149    no_create=yes ;;
1150
1151  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153    no_recursion=yes ;;
1154
1155  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157  | --oldin | --oldi | --old | --ol | --o)
1158    ac_prev=oldincludedir ;;
1159  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1162    oldincludedir=$ac_optarg ;;
1163
1164  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165    ac_prev=prefix ;;
1166  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1167    prefix=$ac_optarg ;;
1168
1169  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170  | --program-pre | --program-pr | --program-p)
1171    ac_prev=program_prefix ;;
1172  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1174    program_prefix=$ac_optarg ;;
1175
1176  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177  | --program-suf | --program-su | --program-s)
1178    ac_prev=program_suffix ;;
1179  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1181    program_suffix=$ac_optarg ;;
1182
1183  -program-transform-name | --program-transform-name \
1184  | --program-transform-nam | --program-transform-na \
1185  | --program-transform-n | --program-transform- \
1186  | --program-transform | --program-transfor \
1187  | --program-transfo | --program-transf \
1188  | --program-trans | --program-tran \
1189  | --progr-tra | --program-tr | --program-t)
1190    ac_prev=program_transform_name ;;
1191  -program-transform-name=* | --program-transform-name=* \
1192  | --program-transform-nam=* | --program-transform-na=* \
1193  | --program-transform-n=* | --program-transform-=* \
1194  | --program-transform=* | --program-transfor=* \
1195  | --program-transfo=* | --program-transf=* \
1196  | --program-trans=* | --program-tran=* \
1197  | --progr-tra=* | --program-tr=* | --program-t=*)
1198    program_transform_name=$ac_optarg ;;
1199
1200  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201    ac_prev=pdfdir ;;
1202  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203    pdfdir=$ac_optarg ;;
1204
1205  -psdir | --psdir | --psdi | --psd | --ps)
1206    ac_prev=psdir ;;
1207  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208    psdir=$ac_optarg ;;
1209
1210  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211  | -silent | --silent | --silen | --sile | --sil)
1212    silent=yes ;;
1213
1214  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215    ac_prev=sbindir ;;
1216  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217  | --sbi=* | --sb=*)
1218    sbindir=$ac_optarg ;;
1219
1220  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222  | --sharedst | --shareds | --shared | --share | --shar \
1223  | --sha | --sh)
1224    ac_prev=sharedstatedir ;;
1225  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228  | --sha=* | --sh=*)
1229    sharedstatedir=$ac_optarg ;;
1230
1231  -site | --site | --sit)
1232    ac_prev=site ;;
1233  -site=* | --site=* | --sit=*)
1234    site=$ac_optarg ;;
1235
1236  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237    ac_prev=srcdir ;;
1238  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1239    srcdir=$ac_optarg ;;
1240
1241  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242  | --syscon | --sysco | --sysc | --sys | --sy)
1243    ac_prev=sysconfdir ;;
1244  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1246    sysconfdir=$ac_optarg ;;
1247
1248  -target | --target | --targe | --targ | --tar | --ta | --t)
1249    ac_prev=target_alias ;;
1250  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1251    target_alias=$ac_optarg ;;
1252
1253  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254    verbose=yes ;;
1255
1256  -version | --version | --versio | --versi | --vers | -V)
1257    ac_init_version=: ;;
1258
1259  -with-* | --with-*)
1260    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263      as_fn_error $? "invalid package name: $ac_useropt"
1264    ac_useropt_orig=$ac_useropt
1265    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266    case $ac_user_opts in
1267      *"
1268"with_$ac_useropt"
1269"*) ;;
1270      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271	 ac_unrecognized_sep=', ';;
1272    esac
1273    eval with_$ac_useropt=\$ac_optarg ;;
1274
1275  -without-* | --without-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      as_fn_error $? "invalid package name: $ac_useropt"
1280    ac_useropt_orig=$ac_useropt
1281    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282    case $ac_user_opts in
1283      *"
1284"with_$ac_useropt"
1285"*) ;;
1286      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287	 ac_unrecognized_sep=', ';;
1288    esac
1289    eval with_$ac_useropt=no ;;
1290
1291  --x)
1292    # Obsolete; use --with-x.
1293    with_x=yes ;;
1294
1295  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296  | --x-incl | --x-inc | --x-in | --x-i)
1297    ac_prev=x_includes ;;
1298  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300    x_includes=$ac_optarg ;;
1301
1302  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304    ac_prev=x_libraries ;;
1305  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307    x_libraries=$ac_optarg ;;
1308
1309  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310Try \`$0 --help' for more information"
1311    ;;
1312
1313  *=*)
1314    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315    # Reject names that are not valid shell variable names.
1316    case $ac_envvar in #(
1317      '' | [0-9]* | *[!_$as_cr_alnum]* )
1318      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319    esac
1320    eval $ac_envvar=\$ac_optarg
1321    export $ac_envvar ;;
1322
1323  *)
1324    # FIXME: should be removed in autoconf 3.0.
1325    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329    ;;
1330
1331  esac
1332done
1333
1334if test -n "$ac_prev"; then
1335  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336  as_fn_error $? "missing argument to $ac_option"
1337fi
1338
1339if test -n "$ac_unrecognized_opts"; then
1340  case $enable_option_checking in
1341    no) ;;
1342    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1344  esac
1345fi
1346
1347# Check all directory arguments for consistency.
1348for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349		datadir sysconfdir sharedstatedir localstatedir includedir \
1350		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351		libdir localedir mandir
1352do
1353  eval ac_val=\$$ac_var
1354  # Remove trailing slashes.
1355  case $ac_val in
1356    */ )
1357      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358      eval $ac_var=\$ac_val;;
1359  esac
1360  # Be sure to have absolute directory names.
1361  case $ac_val in
1362    [\\/$]* | ?:[\\/]* )  continue;;
1363    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364  esac
1365  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1366done
1367
1368# There might be people who depend on the old broken behavior: `$host'
1369# used to hold the argument of --host etc.
1370# FIXME: To remove some day.
1371build=$build_alias
1372host=$host_alias
1373target=$target_alias
1374
1375# FIXME: To remove some day.
1376if test "x$host_alias" != x; then
1377  if test "x$build_alias" = x; then
1378    cross_compiling=maybe
1379  elif test "x$build_alias" != "x$host_alias"; then
1380    cross_compiling=yes
1381  fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
1388
1389
1390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393  as_fn_error $? "working directory cannot be determined"
1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395  as_fn_error $? "pwd does not report name of working directory"
1396
1397
1398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400  ac_srcdir_defaulted=yes
1401  # Try the directory containing this script, then the parent directory.
1402  ac_confdir=`$as_dirname -- "$as_myself" ||
1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404	 X"$as_myself" : 'X\(//\)[^/]' \| \
1405	 X"$as_myself" : 'X\(//\)$' \| \
1406	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407$as_echo X"$as_myself" |
1408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)[^/].*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\/\)$/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\).*/{
1421	    s//\1/
1422	    q
1423	  }
1424	  s/.*/./; q'`
1425  srcdir=$ac_confdir
1426  if test ! -r "$srcdir/$ac_unique_file"; then
1427    srcdir=..
1428  fi
1429else
1430  ac_srcdir_defaulted=no
1431fi
1432if test ! -r "$srcdir/$ac_unique_file"; then
1433  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1435fi
1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439	pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442  srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452  eval ac_env_${ac_var}_value=\$${ac_var}
1453  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461  # Omit some internal or obsolete options to make the list less imposing.
1462  # This message is too long to be a string in the A/UX 3.1 sh.
1463  cat <<_ACEOF
1464\`configure' configures xf86-video-intel 2.21.15 to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE.  See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474  -h, --help              display this help and exit
1475      --help=short        display options specific to this package
1476      --help=recursive    display the short help of all the included packages
1477  -V, --version           display version information and exit
1478  -q, --quiet, --silent   do not print \`checking ...' messages
1479      --cache-file=FILE   cache test results in FILE [disabled]
1480  -C, --config-cache      alias for \`--cache-file=config.cache'
1481  -n, --no-create         do not create output files
1482      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1483
1484Installation directories:
1485  --prefix=PREFIX         install architecture-independent files in PREFIX
1486                          [$ac_default_prefix]
1487  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1488                          [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498  --bindir=DIR            user executables [EPREFIX/bin]
1499  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1500  --libexecdir=DIR        program executables [EPREFIX/libexec]
1501  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1502  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1503  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1504  --libdir=DIR            object code libraries [EPREFIX/lib]
1505  --includedir=DIR        C header files [PREFIX/include]
1506  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1507  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1508  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1509  --infodir=DIR           info documentation [DATAROOTDIR/info]
1510  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1511  --mandir=DIR            man documentation [DATAROOTDIR/man]
1512  --docdir=DIR            documentation root
1513                          [DATAROOTDIR/doc/xf86-video-intel]
1514  --htmldir=DIR           html documentation [DOCDIR]
1515  --dvidir=DIR            dvi documentation [DOCDIR]
1516  --pdfdir=DIR            pdf documentation [DOCDIR]
1517  --psdir=DIR             ps documentation [DOCDIR]
1518_ACEOF
1519
1520  cat <<\_ACEOF
1521
1522Program names:
1523  --program-prefix=PREFIX            prepend PREFIX to installed program names
1524  --program-suffix=SUFFIX            append SUFFIX to installed program names
1525  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1526
1527System types:
1528  --build=BUILD     configure for building on BUILD [guessed]
1529  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1530_ACEOF
1531fi
1532
1533if test -n "$ac_init_help"; then
1534  case $ac_init_help in
1535     short | recursive ) echo "Configuration of xf86-video-intel 2.21.15:";;
1536   esac
1537  cat <<\_ACEOF
1538
1539Optional Features:
1540  --disable-option-checking  ignore unrecognized --enable/--with options
1541  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1542  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1543  --enable-silent-rules   less verbose build output (undo: "make V=1")
1544  --disable-silent-rules  verbose build output (undo: "make V=0")
1545  --enable-dependency-tracking
1546                          do not reject slow dependency extractors
1547  --disable-dependency-tracking
1548                          speeds up one-time build
1549  --disable-selective-werror
1550                          Turn off selective compiler errors. (default:
1551                          enabled)
1552  --enable-strict-compilation
1553                          Enable all warnings from compiler and make them
1554                          errors (default: disabled)
1555  --enable-static[=PKGS]  build static libraries [default=no]
1556  --enable-shared[=PKGS]  build shared libraries [default=yes]
1557  --enable-fast-install[=PKGS]
1558                          optimize for fast installation [default=yes]
1559  --disable-libtool-lock  avoid locking (might break parallel builds)
1560  --disable-largefile     omit support for large files
1561  --enable-gen4asm        Enable rebuilding the gen4 assembly files
1562                          [default=no]
1563  --disable-udev          Disable udev-based monitor hotplug detection
1564                          [default=auto]
1565  --disable-dri           Disable DRI support [[default=auto]]
1566  --disable-xvmc          Disable XvMC support [[default=yes]]
1567  --enable-kms-only       Assume KMS support [[default=no]]
1568  --enable-ums-only       Assume only UMS (no KMS) support [[default=no]]
1569  --enable-sna            Enable SandyBridge's New Acceleration (SNA)
1570                          [default=auto]
1571  --enable-uxa            Enable Unified Acceleration Architecture (UXA)
1572                          [default=yes]
1573  --enable-glamor         Enable glamor, a new GL-based acceleration
1574                          [default=no]
1575  --enable-xaa            Enable legacy X Acceleration Architecture (XAA) for
1576                          i810 chipsets [default=auto]
1577  --enable-dga            Enable legacy Direct Graphics Access (DGA) for i810
1578                          chipsets [default=auto]
1579  --enable-create2        Enable use of create2 ioctl (experimental)
1580                          [default=no]
1581  --enable-userptr        Enable use of userptr (experimental) [default=no]
1582  --enable-async-swap     Enable use of asynchronous swaps (experimental)
1583                          [default=no]
1584  --enable-wt             Enable use of WT caching (experimental) [default=no]
1585  --enable-debug          Enables internal debugging [default=no]
1586  --enable-valgrind       Enables valgrindified ioctls for debugging
1587                          [default=no]
1588
1589Optional Packages:
1590  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1591  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1592  --with-pic              try to use only PIC/non-PIC objects [default=use
1593                          both]
1594  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1595  --with-sysroot=DIR Search for dependent libraries within DIR
1596                        (or the compiler's sysroot if not specified).
1597  --with-builderstring=BUILDERSTRING
1598                          Additional builder string (default: use git
1599                          describe)
1600  --with-xorg-module-dir=DIR
1601                          Default xorg module directory
1602                          [[default=$libdir/xorg/modules]]
1603  --with-default-accel    Select the default acceleration method [default=uxa
1604                          if enabled, otherwise sna]
1605
1606Some influential environment variables:
1607  CC          C compiler command
1608  CFLAGS      C compiler flags
1609  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1610              nonstandard directory <lib dir>
1611  LIBS        libraries to pass to the linker, e.g. -l<library>
1612  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1613              you have headers in a nonstandard directory <include dir>
1614  CPP         C preprocessor
1615  PKG_CONFIG  path to pkg-config utility
1616  PKG_CONFIG_PATH
1617              directories to add to pkg-config's search path
1618  PKG_CONFIG_LIBDIR
1619              path overriding pkg-config's built-in search path
1620  GEN4ASM_CFLAGS
1621              C compiler flags for GEN4ASM, overriding pkg-config
1622  GEN4ASM_LIBS
1623              linker flags for GEN4ASM, overriding pkg-config
1624  UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1625  UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1626  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1627  X11_LIBS    linker flags for X11, overriding pkg-config
1628  DRMINTEL_CFLAGS
1629              C compiler flags for DRMINTEL, overriding pkg-config
1630  DRMINTEL_LIBS
1631              linker flags for DRMINTEL, overriding pkg-config
1632  LIBGLAMOR_CFLAGS
1633              C compiler flags for LIBGLAMOR, overriding pkg-config
1634  LIBGLAMOR_LIBS
1635              linker flags for LIBGLAMOR, overriding pkg-config
1636  LIBGLAMOR_EGL_CFLAGS
1637              C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1638  LIBGLAMOR_EGL_LIBS
1639              linker flags for LIBGLAMOR_EGL, overriding pkg-config
1640  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1641  XORG_LIBS   linker flags for XORG, overriding pkg-config
1642  DRM_CFLAGS  C compiler flags for DRM, overriding pkg-config
1643  DRM_LIBS    linker flags for DRM, overriding pkg-config
1644  PCIACCESS_CFLAGS
1645              C compiler flags for PCIACCESS, overriding pkg-config
1646  PCIACCESS_LIBS
1647              linker flags for PCIACCESS, overriding pkg-config
1648  DRI1_CFLAGS C compiler flags for DRI1, overriding pkg-config
1649  DRI1_LIBS   linker flags for DRI1, overriding pkg-config
1650  DRI2_CFLAGS C compiler flags for DRI2, overriding pkg-config
1651  DRI2_LIBS   linker flags for DRI2, overriding pkg-config
1652  XVMCLIB_CFLAGS
1653              C compiler flags for XVMCLIB, overriding pkg-config
1654  XVMCLIB_LIBS
1655              linker flags for XVMCLIB, overriding pkg-config
1656  XCB_CFLAGS  C compiler flags for XCB, overriding pkg-config
1657  XCB_LIBS    linker flags for XCB, overriding pkg-config
1658  VALGRIND_CFLAGS
1659              C compiler flags for VALGRIND, overriding pkg-config
1660  VALGRIND_LIBS
1661              linker flags for VALGRIND, overriding pkg-config
1662
1663Use these variables to override the choices made by `configure' or to help
1664it to find libraries and programs with nonstandard names/locations.
1665
1666Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1667_ACEOF
1668ac_status=$?
1669fi
1670
1671if test "$ac_init_help" = "recursive"; then
1672  # If there are subdirs, report their specific --help.
1673  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1674    test -d "$ac_dir" ||
1675      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1676      continue
1677    ac_builddir=.
1678
1679case "$ac_dir" in
1680.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681*)
1682  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1683  # A ".." for each directory in $ac_dir_suffix.
1684  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1685  case $ac_top_builddir_sub in
1686  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1687  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1688  esac ;;
1689esac
1690ac_abs_top_builddir=$ac_pwd
1691ac_abs_builddir=$ac_pwd$ac_dir_suffix
1692# for backward compatibility:
1693ac_top_builddir=$ac_top_build_prefix
1694
1695case $srcdir in
1696  .)  # We are building in place.
1697    ac_srcdir=.
1698    ac_top_srcdir=$ac_top_builddir_sub
1699    ac_abs_top_srcdir=$ac_pwd ;;
1700  [\\/]* | ?:[\\/]* )  # Absolute name.
1701    ac_srcdir=$srcdir$ac_dir_suffix;
1702    ac_top_srcdir=$srcdir
1703    ac_abs_top_srcdir=$srcdir ;;
1704  *) # Relative name.
1705    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1706    ac_top_srcdir=$ac_top_build_prefix$srcdir
1707    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1708esac
1709ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1710
1711    cd "$ac_dir" || { ac_status=$?; continue; }
1712    # Check for guested configure.
1713    if test -f "$ac_srcdir/configure.gnu"; then
1714      echo &&
1715      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1716    elif test -f "$ac_srcdir/configure"; then
1717      echo &&
1718      $SHELL "$ac_srcdir/configure" --help=recursive
1719    else
1720      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1721    fi || ac_status=$?
1722    cd "$ac_pwd" || { ac_status=$?; break; }
1723  done
1724fi
1725
1726test -n "$ac_init_help" && exit $ac_status
1727if $ac_init_version; then
1728  cat <<\_ACEOF
1729xf86-video-intel configure 2.21.15
1730generated by GNU Autoconf 2.69
1731
1732Copyright (C) 2012 Free Software Foundation, Inc.
1733This configure script is free software; the Free Software Foundation
1734gives unlimited permission to copy, distribute and modify it.
1735_ACEOF
1736  exit
1737fi
1738
1739## ------------------------ ##
1740## Autoconf initialization. ##
1741## ------------------------ ##
1742
1743# ac_fn_c_try_compile LINENO
1744# --------------------------
1745# Try to compile conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_compile ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  rm -f conftest.$ac_objext
1750  if { { ac_try="$ac_compile"
1751case "(($ac_try" in
1752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753  *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757  (eval "$ac_compile") 2>conftest.err
1758  ac_status=$?
1759  if test -s conftest.err; then
1760    grep -v '^ *+' conftest.err >conftest.er1
1761    cat conftest.er1 >&5
1762    mv -f conftest.er1 conftest.err
1763  fi
1764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765  test $ac_status = 0; } && {
1766	 test -z "$ac_c_werror_flag" ||
1767	 test ! -s conftest.err
1768       } && test -s conftest.$ac_objext; then :
1769  ac_retval=0
1770else
1771  $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774	ac_retval=1
1775fi
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777  as_fn_set_status $ac_retval
1778
1779} # ac_fn_c_try_compile
1780
1781# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1782# ---------------------------------------------
1783# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1784# accordingly.
1785ac_fn_c_check_decl ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  as_decl_name=`echo $2|sed 's/ *(.*//'`
1789  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1791$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1792if eval \${$3+:} false; then :
1793  $as_echo_n "(cached) " >&6
1794else
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797$4
1798int
1799main ()
1800{
1801#ifndef $as_decl_name
1802#ifdef __cplusplus
1803  (void) $as_decl_use;
1804#else
1805  (void) $as_decl_name;
1806#endif
1807#endif
1808
1809  ;
1810  return 0;
1811}
1812_ACEOF
1813if ac_fn_c_try_compile "$LINENO"; then :
1814  eval "$3=yes"
1815else
1816  eval "$3=no"
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824
1825} # ac_fn_c_check_decl
1826
1827# ac_fn_c_try_cpp LINENO
1828# ----------------------
1829# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830ac_fn_c_try_cpp ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  if { { ac_try="$ac_cpp conftest.$ac_ext"
1834case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841  ac_status=$?
1842  if test -s conftest.err; then
1843    grep -v '^ *+' conftest.err >conftest.er1
1844    cat conftest.er1 >&5
1845    mv -f conftest.er1 conftest.err
1846  fi
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; } > conftest.i && {
1849	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850	 test ! -s conftest.err
1851       }; then :
1852  ac_retval=0
1853else
1854  $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857    ac_retval=1
1858fi
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860  as_fn_set_status $ac_retval
1861
1862} # ac_fn_c_try_cpp
1863
1864# ac_fn_c_try_run LINENO
1865# ----------------------
1866# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867# that executables *can* be run.
1868ac_fn_c_try_run ()
1869{
1870  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871  if { { ac_try="$ac_link"
1872case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_link") 2>&5
1879  ac_status=$?
1880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882  { { case "(($ac_try" in
1883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884  *) ac_try_echo=$ac_try;;
1885esac
1886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887$as_echo "$ac_try_echo"; } >&5
1888  (eval "$ac_try") 2>&5
1889  ac_status=$?
1890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891  test $ac_status = 0; }; }; then :
1892  ac_retval=0
1893else
1894  $as_echo "$as_me: program exited with status $ac_status" >&5
1895       $as_echo "$as_me: failed program was:" >&5
1896sed 's/^/| /' conftest.$ac_ext >&5
1897
1898       ac_retval=$ac_status
1899fi
1900  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902  as_fn_set_status $ac_retval
1903
1904} # ac_fn_c_try_run
1905
1906# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1907# -------------------------------------------------------
1908# Tests whether HEADER exists and can be compiled using the include files in
1909# INCLUDES, setting the cache variable VAR accordingly.
1910ac_fn_c_check_header_compile ()
1911{
1912  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917else
1918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h.  */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924  eval "$3=yes"
1925else
1926  eval "$3=no"
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934
1935} # ac_fn_c_check_header_compile
1936
1937# ac_fn_c_try_link LINENO
1938# -----------------------
1939# Try to link conftest.$ac_ext, and return whether this succeeded.
1940ac_fn_c_try_link ()
1941{
1942  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943  rm -f conftest.$ac_objext conftest$ac_exeext
1944  if { { ac_try="$ac_link"
1945case "(($ac_try" in
1946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947  *) ac_try_echo=$ac_try;;
1948esac
1949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950$as_echo "$ac_try_echo"; } >&5
1951  (eval "$ac_link") 2>conftest.err
1952  ac_status=$?
1953  if test -s conftest.err; then
1954    grep -v '^ *+' conftest.err >conftest.er1
1955    cat conftest.er1 >&5
1956    mv -f conftest.er1 conftest.err
1957  fi
1958  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959  test $ac_status = 0; } && {
1960	 test -z "$ac_c_werror_flag" ||
1961	 test ! -s conftest.err
1962       } && test -s conftest$ac_exeext && {
1963	 test "$cross_compiling" = yes ||
1964	 test -x conftest$ac_exeext
1965       }; then :
1966  ac_retval=0
1967else
1968  $as_echo "$as_me: failed program was:" >&5
1969sed 's/^/| /' conftest.$ac_ext >&5
1970
1971	ac_retval=1
1972fi
1973  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1974  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1975  # interfere with the next link command; also delete a directory that is
1976  # left behind by Apple's compiler.  We do this before executing the actions.
1977  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1978  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979  as_fn_set_status $ac_retval
1980
1981} # ac_fn_c_try_link
1982
1983# ac_fn_c_check_func LINENO FUNC VAR
1984# ----------------------------------
1985# Tests whether FUNC exists, setting the cache variable VAR accordingly
1986ac_fn_c_check_func ()
1987{
1988  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992  $as_echo_n "(cached) " >&6
1993else
1994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h.  */
1996/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1997   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1998#define $2 innocuous_$2
1999
2000/* System header to define __stub macros and hopefully few prototypes,
2001    which can conflict with char $2 (); below.
2002    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2003    <limits.h> exists even on freestanding compilers.  */
2004
2005#ifdef __STDC__
2006# include <limits.h>
2007#else
2008# include <assert.h>
2009#endif
2010
2011#undef $2
2012
2013/* Override any GCC internal prototype to avoid an error.
2014   Use char because int might match the return type of a GCC
2015   builtin and then its argument prototype would still apply.  */
2016#ifdef __cplusplus
2017extern "C"
2018#endif
2019char $2 ();
2020/* The GNU C library defines this for functions which it implements
2021    to always fail with ENOSYS.  Some functions are actually named
2022    something starting with __ and the normal name is an alias.  */
2023#if defined __stub_$2 || defined __stub___$2
2024choke me
2025#endif
2026
2027int
2028main ()
2029{
2030return $2 ();
2031  ;
2032  return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_link "$LINENO"; then :
2036  eval "$3=yes"
2037else
2038  eval "$3=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext \
2041    conftest$ac_exeext conftest.$ac_ext
2042fi
2043eval ac_res=\$$3
2044	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
2046  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047
2048} # ac_fn_c_check_func
2049
2050# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2051# -------------------------------------------------------
2052# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2053# the include files in INCLUDES and setting the cache variable VAR
2054# accordingly.
2055ac_fn_c_check_header_mongrel ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  if eval \${$3+:} false; then :
2059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
2061if eval \${$3+:} false; then :
2062  $as_echo_n "(cached) " >&6
2063fi
2064eval ac_res=\$$3
2065	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067else
2068  # Is the header compilable?
2069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2070$as_echo_n "checking $2 usability... " >&6; }
2071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074#include <$2>
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077  ac_header_compiler=yes
2078else
2079  ac_header_compiler=no
2080fi
2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2083$as_echo "$ac_header_compiler" >&6; }
2084
2085# Is the header present?
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2087$as_echo_n "checking $2 presence... " >&6; }
2088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h.  */
2090#include <$2>
2091_ACEOF
2092if ac_fn_c_try_cpp "$LINENO"; then :
2093  ac_header_preproc=yes
2094else
2095  ac_header_preproc=no
2096fi
2097rm -f conftest.err conftest.i conftest.$ac_ext
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2099$as_echo "$ac_header_preproc" >&6; }
2100
2101# So?  What about this header?
2102case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2103  yes:no: )
2104    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2105$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2106    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2107$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2108    ;;
2109  no:yes:* )
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2111$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2113$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2115$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2117$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2120( $as_echo "## ---------------------------------------------------------------------- ##
2121## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2122## ---------------------------------------------------------------------- ##"
2123     ) | sed "s/^/$as_me: WARNING:     /" >&2
2124    ;;
2125esac
2126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127$as_echo_n "checking for $2... " >&6; }
2128if eval \${$3+:} false; then :
2129  $as_echo_n "(cached) " >&6
2130else
2131  eval "$3=\$ac_header_compiler"
2132fi
2133eval ac_res=\$$3
2134	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135$as_echo "$ac_res" >&6; }
2136fi
2137  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139} # ac_fn_c_check_header_mongrel
2140cat >config.log <<_ACEOF
2141This file contains any messages produced by compilers while
2142running configure, to aid debugging if configure makes a mistake.
2143
2144It was created by xf86-video-intel $as_me 2.21.15, which was
2145generated by GNU Autoconf 2.69.  Invocation command line was
2146
2147  $ $0 $@
2148
2149_ACEOF
2150exec 5>>config.log
2151{
2152cat <<_ASUNAME
2153## --------- ##
2154## Platform. ##
2155## --------- ##
2156
2157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2158uname -m = `(uname -m) 2>/dev/null || echo unknown`
2159uname -r = `(uname -r) 2>/dev/null || echo unknown`
2160uname -s = `(uname -s) 2>/dev/null || echo unknown`
2161uname -v = `(uname -v) 2>/dev/null || echo unknown`
2162
2163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2164/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2165
2166/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2167/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2169/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2170/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2171/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2172/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2173
2174_ASUNAME
2175
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179  IFS=$as_save_IFS
2180  test -z "$as_dir" && as_dir=.
2181    $as_echo "PATH: $as_dir"
2182  done
2183IFS=$as_save_IFS
2184
2185} >&5
2186
2187cat >&5 <<_ACEOF
2188
2189
2190## ----------- ##
2191## Core tests. ##
2192## ----------- ##
2193
2194_ACEOF
2195
2196
2197# Keep a trace of the command line.
2198# Strip out --no-create and --no-recursion so they do not pile up.
2199# Strip out --silent because we don't want to record it for future runs.
2200# Also quote any args containing shell meta-characters.
2201# Make two passes to allow for proper duplicate-argument suppression.
2202ac_configure_args=
2203ac_configure_args0=
2204ac_configure_args1=
2205ac_must_keep_next=false
2206for ac_pass in 1 2
2207do
2208  for ac_arg
2209  do
2210    case $ac_arg in
2211    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2212    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2213    | -silent | --silent | --silen | --sile | --sil)
2214      continue ;;
2215    *\'*)
2216      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2217    esac
2218    case $ac_pass in
2219    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2220    2)
2221      as_fn_append ac_configure_args1 " '$ac_arg'"
2222      if test $ac_must_keep_next = true; then
2223	ac_must_keep_next=false # Got value, back to normal.
2224      else
2225	case $ac_arg in
2226	  *=* | --config-cache | -C | -disable-* | --disable-* \
2227	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2228	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2229	  | -with-* | --with-* | -without-* | --without-* | --x)
2230	    case "$ac_configure_args0 " in
2231	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2232	    esac
2233	    ;;
2234	  -* ) ac_must_keep_next=true ;;
2235	esac
2236      fi
2237      as_fn_append ac_configure_args " '$ac_arg'"
2238      ;;
2239    esac
2240  done
2241done
2242{ ac_configure_args0=; unset ac_configure_args0;}
2243{ ac_configure_args1=; unset ac_configure_args1;}
2244
2245# When interrupted or exit'd, cleanup temporary files, and complete
2246# config.log.  We remove comments because anyway the quotes in there
2247# would cause problems or look ugly.
2248# WARNING: Use '\'' to represent an apostrophe within the trap.
2249# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2250trap 'exit_status=$?
2251  # Save into config.log some information that might help in debugging.
2252  {
2253    echo
2254
2255    $as_echo "## ---------------- ##
2256## Cache variables. ##
2257## ---------------- ##"
2258    echo
2259    # The following way of writing the cache mishandles newlines in values,
2260(
2261  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2262    eval ac_val=\$$ac_var
2263    case $ac_val in #(
2264    *${as_nl}*)
2265      case $ac_var in #(
2266      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2267$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2268      esac
2269      case $ac_var in #(
2270      _ | IFS | as_nl) ;; #(
2271      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2272      *) { eval $ac_var=; unset $ac_var;} ;;
2273      esac ;;
2274    esac
2275  done
2276  (set) 2>&1 |
2277    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2278    *${as_nl}ac_space=\ *)
2279      sed -n \
2280	"s/'\''/'\''\\\\'\'''\''/g;
2281	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2282      ;; #(
2283    *)
2284      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285      ;;
2286    esac |
2287    sort
2288)
2289    echo
2290
2291    $as_echo "## ----------------- ##
2292## Output variables. ##
2293## ----------------- ##"
2294    echo
2295    for ac_var in $ac_subst_vars
2296    do
2297      eval ac_val=\$$ac_var
2298      case $ac_val in
2299      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2300      esac
2301      $as_echo "$ac_var='\''$ac_val'\''"
2302    done | sort
2303    echo
2304
2305    if test -n "$ac_subst_files"; then
2306      $as_echo "## ------------------- ##
2307## File substitutions. ##
2308## ------------------- ##"
2309      echo
2310      for ac_var in $ac_subst_files
2311      do
2312	eval ac_val=\$$ac_var
2313	case $ac_val in
2314	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2315	esac
2316	$as_echo "$ac_var='\''$ac_val'\''"
2317      done | sort
2318      echo
2319    fi
2320
2321    if test -s confdefs.h; then
2322      $as_echo "## ----------- ##
2323## confdefs.h. ##
2324## ----------- ##"
2325      echo
2326      cat confdefs.h
2327      echo
2328    fi
2329    test "$ac_signal" != 0 &&
2330      $as_echo "$as_me: caught signal $ac_signal"
2331    $as_echo "$as_me: exit $exit_status"
2332  } >&5
2333  rm -f core *.core core.conftest.* &&
2334    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2335    exit $exit_status
2336' 0
2337for ac_signal in 1 2 13 15; do
2338  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2339done
2340ac_signal=0
2341
2342# confdefs.h avoids OS command line length limits that DEFS can exceed.
2343rm -f -r conftest* confdefs.h
2344
2345$as_echo "/* confdefs.h */" > confdefs.h
2346
2347# Predefined preprocessor variables.
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_NAME "$PACKAGE_NAME"
2351_ACEOF
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2355_ACEOF
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_VERSION "$PACKAGE_VERSION"
2359_ACEOF
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_STRING "$PACKAGE_STRING"
2363_ACEOF
2364
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2367_ACEOF
2368
2369cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_URL "$PACKAGE_URL"
2371_ACEOF
2372
2373
2374# Let the site file select an alternate cache file if it wants to.
2375# Prefer an explicitly selected file to automatically selected ones.
2376ac_site_file1=NONE
2377ac_site_file2=NONE
2378if test -n "$CONFIG_SITE"; then
2379  # We do not want a PATH search for config.site.
2380  case $CONFIG_SITE in #((
2381    -*)  ac_site_file1=./$CONFIG_SITE;;
2382    */*) ac_site_file1=$CONFIG_SITE;;
2383    *)   ac_site_file1=./$CONFIG_SITE;;
2384  esac
2385elif test "x$prefix" != xNONE; then
2386  ac_site_file1=$prefix/share/config.site
2387  ac_site_file2=$prefix/etc/config.site
2388else
2389  ac_site_file1=$ac_default_prefix/share/config.site
2390  ac_site_file2=$ac_default_prefix/etc/config.site
2391fi
2392for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2393do
2394  test "x$ac_site_file" = xNONE && continue
2395  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2396    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2397$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2398    sed 's/^/| /' "$ac_site_file" >&5
2399    . "$ac_site_file" \
2400      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402as_fn_error $? "failed to load site script $ac_site_file
2403See \`config.log' for more details" "$LINENO" 5; }
2404  fi
2405done
2406
2407if test -r "$cache_file"; then
2408  # Some versions of bash will fail to source /dev/null (special files
2409  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2410  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2411    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2412$as_echo "$as_me: loading cache $cache_file" >&6;}
2413    case $cache_file in
2414      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2415      *)                      . "./$cache_file";;
2416    esac
2417  fi
2418else
2419  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2420$as_echo "$as_me: creating cache $cache_file" >&6;}
2421  >$cache_file
2422fi
2423
2424# Check that the precious variables saved in the cache have kept the same
2425# value.
2426ac_cache_corrupted=false
2427for ac_var in $ac_precious_vars; do
2428  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2429  eval ac_new_set=\$ac_env_${ac_var}_set
2430  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2431  eval ac_new_val=\$ac_env_${ac_var}_value
2432  case $ac_old_set,$ac_new_set in
2433    set,)
2434      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2435$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2436      ac_cache_corrupted=: ;;
2437    ,set)
2438      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2439$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2440      ac_cache_corrupted=: ;;
2441    ,);;
2442    *)
2443      if test "x$ac_old_val" != "x$ac_new_val"; then
2444	# differences in whitespace do not lead to failure.
2445	ac_old_val_w=`echo x $ac_old_val`
2446	ac_new_val_w=`echo x $ac_new_val`
2447	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2448	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2449$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2450	  ac_cache_corrupted=:
2451	else
2452	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2453$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2454	  eval $ac_var=\$ac_old_val
2455	fi
2456	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2457$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2458	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2459$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2460      fi;;
2461  esac
2462  # Pass precious variables to config.status.
2463  if test "$ac_new_set" = set; then
2464    case $ac_new_val in
2465    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2466    *) ac_arg=$ac_var=$ac_new_val ;;
2467    esac
2468    case " $ac_configure_args " in
2469      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2470      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2471    esac
2472  fi
2473done
2474if $ac_cache_corrupted; then
2475  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2477  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2478$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2479  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2480fi
2481## -------------------- ##
2482## Main body of script. ##
2483## -------------------- ##
2484
2485ac_ext=c
2486ac_cpp='$CPP $CPPFLAGS'
2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2489ac_compiler_gnu=$ac_cv_c_compiler_gnu
2490
2491
2492
2493ac_config_headers="$ac_config_headers config.h"
2494
2495
2496ac_aux_dir=
2497for ac_dir in . "$srcdir"/.; do
2498  if test -f "$ac_dir/install-sh"; then
2499    ac_aux_dir=$ac_dir
2500    ac_install_sh="$ac_aux_dir/install-sh -c"
2501    break
2502  elif test -f "$ac_dir/install.sh"; then
2503    ac_aux_dir=$ac_dir
2504    ac_install_sh="$ac_aux_dir/install.sh -c"
2505    break
2506  elif test -f "$ac_dir/shtool"; then
2507    ac_aux_dir=$ac_dir
2508    ac_install_sh="$ac_aux_dir/shtool install -c"
2509    break
2510  fi
2511done
2512if test -z "$ac_aux_dir"; then
2513  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2514fi
2515
2516# These three variables are undocumented and unsupported,
2517# and are intended to be withdrawn in a future Autoconf release.
2518# They can cause serious problems if a builder's source tree is in a directory
2519# whose full name contains unusual characters.
2520ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2521ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2522ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2523
2524
2525
2526# Initialize Automake
2527am__api_version='1.13'
2528
2529# Find a good install program.  We prefer a C program (faster),
2530# so one script is as good as another.  But avoid the broken or
2531# incompatible versions:
2532# SysV /etc/install, /usr/sbin/install
2533# SunOS /usr/etc/install
2534# IRIX /sbin/install
2535# AIX /bin/install
2536# AmigaOS /C/install, which installs bootblocks on floppy discs
2537# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2538# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2539# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2540# OS/2's system install, which has a completely different semantic
2541# ./install, which can be erroneously created by make from ./install.sh.
2542# Reject install programs that cannot install multiple files.
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2544$as_echo_n "checking for a BSD-compatible install... " >&6; }
2545if test -z "$INSTALL"; then
2546if ${ac_cv_path_install+:} false; then :
2547  $as_echo_n "(cached) " >&6
2548else
2549  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550for as_dir in $PATH
2551do
2552  IFS=$as_save_IFS
2553  test -z "$as_dir" && as_dir=.
2554    # Account for people who put trailing slashes in PATH elements.
2555case $as_dir/ in #((
2556  ./ | .// | /[cC]/* | \
2557  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2558  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2559  /usr/ucb/* ) ;;
2560  *)
2561    # OSF1 and SCO ODT 3.0 have their own names for install.
2562    # Don't use installbsd from OSF since it installs stuff as root
2563    # by default.
2564    for ac_prog in ginstall scoinst install; do
2565      for ac_exec_ext in '' $ac_executable_extensions; do
2566	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2567	  if test $ac_prog = install &&
2568	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569	    # AIX install.  It has an incompatible calling convention.
2570	    :
2571	  elif test $ac_prog = install &&
2572	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2573	    # program-specific install script used by HP pwplus--don't use.
2574	    :
2575	  else
2576	    rm -rf conftest.one conftest.two conftest.dir
2577	    echo one > conftest.one
2578	    echo two > conftest.two
2579	    mkdir conftest.dir
2580	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2581	      test -s conftest.one && test -s conftest.two &&
2582	      test -s conftest.dir/conftest.one &&
2583	      test -s conftest.dir/conftest.two
2584	    then
2585	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2586	      break 3
2587	    fi
2588	  fi
2589	fi
2590      done
2591    done
2592    ;;
2593esac
2594
2595  done
2596IFS=$as_save_IFS
2597
2598rm -rf conftest.one conftest.two conftest.dir
2599
2600fi
2601  if test "${ac_cv_path_install+set}" = set; then
2602    INSTALL=$ac_cv_path_install
2603  else
2604    # As a last resort, use the slow shell script.  Don't cache a
2605    # value for INSTALL within a source directory, because that will
2606    # break other packages using the cache if that directory is
2607    # removed, or if the value is a relative name.
2608    INSTALL=$ac_install_sh
2609  fi
2610fi
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2612$as_echo "$INSTALL" >&6; }
2613
2614# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2615# It thinks the first close brace ends the variable substitution.
2616test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2617
2618test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2619
2620test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2623$as_echo_n "checking whether build environment is sane... " >&6; }
2624# Reject unsafe characters in $srcdir or the absolute working directory
2625# name.  Accept space and tab only in the latter.
2626am_lf='
2627'
2628case `pwd` in
2629  *[\\\"\#\$\&\'\`$am_lf]*)
2630    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2631esac
2632case $srcdir in
2633  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2634    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2635esac
2636
2637# Do 'set' in a subshell so we don't clobber the current shell's
2638# arguments.  Must try -L first in case configure is actually a
2639# symlink; some systems play weird games with the mod time of symlinks
2640# (eg FreeBSD returns the mod time of the symlink's containing
2641# directory).
2642if (
2643   am_has_slept=no
2644   for am_try in 1 2; do
2645     echo "timestamp, slept: $am_has_slept" > conftest.file
2646     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2647     if test "$*" = "X"; then
2648	# -L didn't work.
2649	set X `ls -t "$srcdir/configure" conftest.file`
2650     fi
2651     if test "$*" != "X $srcdir/configure conftest.file" \
2652	&& test "$*" != "X conftest.file $srcdir/configure"; then
2653
2654	# If neither matched, then we have a broken ls.  This can happen
2655	# if, for instance, CONFIG_SHELL is bash and it inherits a
2656	# broken ls alias from the environment.  This has actually
2657	# happened.  Such a system could not be considered "sane".
2658	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2659  alias in your environment" "$LINENO" 5
2660     fi
2661     if test "$2" = conftest.file || test $am_try -eq 2; then
2662       break
2663     fi
2664     # Just in case.
2665     sleep 1
2666     am_has_slept=yes
2667   done
2668   test "$2" = conftest.file
2669   )
2670then
2671   # Ok.
2672   :
2673else
2674   as_fn_error $? "newly created file is older than distributed files!
2675Check your system clock" "$LINENO" 5
2676fi
2677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678$as_echo "yes" >&6; }
2679# If we didn't sleep, we still need to ensure time stamps of config.status and
2680# generated files are strictly newer.
2681am_sleep_pid=
2682if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2683  ( sleep 1 ) &
2684  am_sleep_pid=$!
2685fi
2686
2687rm -f conftest.file
2688
2689test "$program_prefix" != NONE &&
2690  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2691# Use a double $ so make ignores it.
2692test "$program_suffix" != NONE &&
2693  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2694# Double any \ or $.
2695# By default was `s,x,x', remove it if useless.
2696ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2697program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2698
2699# expand $ac_aux_dir to an absolute path
2700am_aux_dir=`cd $ac_aux_dir && pwd`
2701
2702if test x"${MISSING+set}" != xset; then
2703  case $am_aux_dir in
2704  *\ * | *\	*)
2705    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2706  *)
2707    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2708  esac
2709fi
2710# Use eval to expand $SHELL
2711if eval "$MISSING --is-lightweight"; then
2712  am_missing_run="$MISSING "
2713else
2714  am_missing_run=
2715  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2716$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2717fi
2718
2719if test x"${install_sh}" != xset; then
2720  case $am_aux_dir in
2721  *\ * | *\	*)
2722    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2723  *)
2724    install_sh="\${SHELL} $am_aux_dir/install-sh"
2725  esac
2726fi
2727
2728# Installed binaries are usually stripped using 'strip' when the user
2729# run "make install-strip".  However 'strip' might not be the right
2730# tool to use in cross-compilation environments, therefore Automake
2731# will honor the 'STRIP' environment variable to overrule this program.
2732if test "$cross_compiling" != no; then
2733  if test -n "$ac_tool_prefix"; then
2734  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2735set dummy ${ac_tool_prefix}strip; ac_word=$2
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
2738if ${ac_cv_prog_STRIP+:} false; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test -n "$STRIP"; then
2742  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    for ac_exec_ext in '' $ac_executable_extensions; do
2750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756  done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
2761STRIP=$ac_cv_prog_STRIP
2762if test -n "$STRIP"; then
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2764$as_echo "$STRIP" >&6; }
2765else
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
2770
2771fi
2772if test -z "$ac_cv_prog_STRIP"; then
2773  ac_ct_STRIP=$STRIP
2774  # Extract the first word of "strip", so it can be a program name with args.
2775set dummy strip; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  if test -n "$ac_ct_STRIP"; then
2782  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787  IFS=$as_save_IFS
2788  test -z "$as_dir" && as_dir=.
2789    for ac_exec_ext in '' $ac_executable_extensions; do
2790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791    ac_cv_prog_ac_ct_STRIP="strip"
2792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793    break 2
2794  fi
2795done
2796  done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2802if test -n "$ac_ct_STRIP"; then
2803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2804$as_echo "$ac_ct_STRIP" >&6; }
2805else
2806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810  if test "x$ac_ct_STRIP" = x; then
2811    STRIP=":"
2812  else
2813    case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2817ac_tool_warned=yes ;;
2818esac
2819    STRIP=$ac_ct_STRIP
2820  fi
2821else
2822  STRIP="$ac_cv_prog_STRIP"
2823fi
2824
2825fi
2826INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2827
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2829$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2830if test -z "$MKDIR_P"; then
2831  if ${ac_cv_path_mkdir+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    for ac_prog in mkdir gmkdir; do
2840	 for ac_exec_ext in '' $ac_executable_extensions; do
2841	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2842	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2843	     'mkdir (GNU coreutils) '* | \
2844	     'mkdir (coreutils) '* | \
2845	     'mkdir (fileutils) '4.1*)
2846	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2847	       break 3;;
2848	   esac
2849	 done
2850       done
2851  done
2852IFS=$as_save_IFS
2853
2854fi
2855
2856  test -d ./--version && rmdir ./--version
2857  if test "${ac_cv_path_mkdir+set}" = set; then
2858    MKDIR_P="$ac_cv_path_mkdir -p"
2859  else
2860    # As a last resort, use the slow shell script.  Don't cache a
2861    # value for MKDIR_P within a source directory, because that will
2862    # break other packages using the cache if that directory is
2863    # removed, or if the value is a relative name.
2864    MKDIR_P="$ac_install_sh -d"
2865  fi
2866fi
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2868$as_echo "$MKDIR_P" >&6; }
2869
2870for ac_prog in gawk mawk nawk awk
2871do
2872  # Extract the first word of "$ac_prog", so it can be a program name with args.
2873set dummy $ac_prog; ac_word=$2
2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875$as_echo_n "checking for $ac_word... " >&6; }
2876if ${ac_cv_prog_AWK+:} false; then :
2877  $as_echo_n "(cached) " >&6
2878else
2879  if test -n "$AWK"; then
2880  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2881else
2882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883for as_dir in $PATH
2884do
2885  IFS=$as_save_IFS
2886  test -z "$as_dir" && as_dir=.
2887    for ac_exec_ext in '' $ac_executable_extensions; do
2888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2889    ac_cv_prog_AWK="$ac_prog"
2890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2891    break 2
2892  fi
2893done
2894  done
2895IFS=$as_save_IFS
2896
2897fi
2898fi
2899AWK=$ac_cv_prog_AWK
2900if test -n "$AWK"; then
2901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2902$as_echo "$AWK" >&6; }
2903else
2904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905$as_echo "no" >&6; }
2906fi
2907
2908
2909  test -n "$AWK" && break
2910done
2911
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2913$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2914set x ${MAKE-make}
2915ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2916if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2917  $as_echo_n "(cached) " >&6
2918else
2919  cat >conftest.make <<\_ACEOF
2920SHELL = /bin/sh
2921all:
2922	@echo '@@@%%%=$(MAKE)=@@@%%%'
2923_ACEOF
2924# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2925case `${MAKE-make} -f conftest.make 2>/dev/null` in
2926  *@@@%%%=?*=@@@%%%*)
2927    eval ac_cv_prog_make_${ac_make}_set=yes;;
2928  *)
2929    eval ac_cv_prog_make_${ac_make}_set=no;;
2930esac
2931rm -f conftest.make
2932fi
2933if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2935$as_echo "yes" >&6; }
2936  SET_MAKE=
2937else
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939$as_echo "no" >&6; }
2940  SET_MAKE="MAKE=${MAKE-make}"
2941fi
2942
2943rm -rf .tst 2>/dev/null
2944mkdir .tst 2>/dev/null
2945if test -d .tst; then
2946  am__leading_dot=.
2947else
2948  am__leading_dot=_
2949fi
2950rmdir .tst 2>/dev/null
2951
2952# Check whether --enable-silent-rules was given.
2953if test "${enable_silent_rules+set}" = set; then :
2954  enableval=$enable_silent_rules;
2955fi
2956
2957case $enable_silent_rules in # (((
2958  yes) AM_DEFAULT_VERBOSITY=0;;
2959   no) AM_DEFAULT_VERBOSITY=1;;
2960    *) AM_DEFAULT_VERBOSITY=1;;
2961esac
2962am_make=${MAKE-make}
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2964$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2965if ${am_cv_make_support_nested_variables+:} false; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  if $as_echo 'TRUE=$(BAR$(V))
2969BAR0=false
2970BAR1=true
2971V=1
2972am__doit:
2973	@$(TRUE)
2974.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2975  am_cv_make_support_nested_variables=yes
2976else
2977  am_cv_make_support_nested_variables=no
2978fi
2979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2981$as_echo "$am_cv_make_support_nested_variables" >&6; }
2982if test $am_cv_make_support_nested_variables = yes; then
2983    AM_V='$(V)'
2984  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2985else
2986  AM_V=$AM_DEFAULT_VERBOSITY
2987  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2988fi
2989AM_BACKSLASH='\'
2990
2991if test "`cd $srcdir && pwd`" != "`pwd`"; then
2992  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2993  # is not polluted with repeated "-I."
2994  am__isrc=' -I$(srcdir)'
2995  # test to see if srcdir already configured
2996  if test -f $srcdir/config.status; then
2997    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2998  fi
2999fi
3000
3001# test whether we have cygpath
3002if test -z "$CYGPATH_W"; then
3003  if (cygpath --version) >/dev/null 2>/dev/null; then
3004    CYGPATH_W='cygpath -w'
3005  else
3006    CYGPATH_W=echo
3007  fi
3008fi
3009
3010
3011# Define the identity of the package.
3012 PACKAGE='xf86-video-intel'
3013 VERSION='2.21.15'
3014
3015
3016cat >>confdefs.h <<_ACEOF
3017#define PACKAGE "$PACKAGE"
3018_ACEOF
3019
3020
3021cat >>confdefs.h <<_ACEOF
3022#define VERSION "$VERSION"
3023_ACEOF
3024
3025# Some tools Automake needs.
3026
3027ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3028
3029
3030AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3031
3032
3033AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3034
3035
3036AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3037
3038
3039MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3040
3041# For better backward compatibility.  To be removed once Automake 1.9.x
3042# dies out for good.  For more background, see:
3043# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3044# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3045mkdir_p='$(MKDIR_P)'
3046
3047# We need awk for the "check" target.  The system "awk" is bad on
3048# some platforms.
3049# Always define AMTAR for backward compatibility.  Yes, it's still used
3050# in the wild :-(  We should find a proper way to deprecate it ...
3051AMTAR='$${TAR-tar}'
3052
3053
3054# We'll loop over all known methods to create a tar archive until one works.
3055_am_tools='gnutar  pax cpio none'
3056
3057am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3058
3059
3060
3061
3062
3063
3064
3065# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078DEPDIR="${am__leading_dot}deps"
3079
3080ac_config_commands="$ac_config_commands depfiles"
3081
3082
3083am_make=${MAKE-make}
3084cat > confinc << 'END'
3085am__doit:
3086	@echo this is the am__doit target
3087.PHONY: am__doit
3088END
3089# If we don't find an include directive, just comment out the code.
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3091$as_echo_n "checking for style of include used by $am_make... " >&6; }
3092am__include="#"
3093am__quote=
3094_am_result=none
3095# First try GNU make style include.
3096echo "include confinc" > confmf
3097# Ignore all kinds of additional output from 'make'.
3098case `$am_make -s -f confmf 2> /dev/null` in #(
3099*the\ am__doit\ target*)
3100  am__include=include
3101  am__quote=
3102  _am_result=GNU
3103  ;;
3104esac
3105# Now try BSD make style include.
3106if test "$am__include" = "#"; then
3107   echo '.include "confinc"' > confmf
3108   case `$am_make -s -f confmf 2> /dev/null` in #(
3109   *the\ am__doit\ target*)
3110     am__include=.include
3111     am__quote="\""
3112     _am_result=BSD
3113     ;;
3114   esac
3115fi
3116
3117
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3119$as_echo "$_am_result" >&6; }
3120rm -f confinc confmf
3121
3122# Check whether --enable-dependency-tracking was given.
3123if test "${enable_dependency_tracking+set}" = set; then :
3124  enableval=$enable_dependency_tracking;
3125fi
3126
3127if test "x$enable_dependency_tracking" != xno; then
3128  am_depcomp="$ac_aux_dir/depcomp"
3129  AMDEPBACKSLASH='\'
3130  am__nodep='_no'
3131fi
3132 if test "x$enable_dependency_tracking" != xno; then
3133  AMDEP_TRUE=
3134  AMDEP_FALSE='#'
3135else
3136  AMDEP_TRUE='#'
3137  AMDEP_FALSE=
3138fi
3139
3140
3141ac_ext=c
3142ac_cpp='$CPP $CPPFLAGS'
3143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146if test -n "$ac_tool_prefix"; then
3147  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3148set dummy ${ac_tool_prefix}gcc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_CC+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184fi
3185if test -z "$ac_cv_prog_CC"; then
3186  ac_ct_CC=$CC
3187  # Extract the first word of "gcc", so it can be a program name with args.
3188set dummy gcc; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_ac_ct_CC+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$ac_ct_CC"; then
3195  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3196else
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200  IFS=$as_save_IFS
3201  test -z "$as_dir" && as_dir=.
3202    for ac_exec_ext in '' $ac_executable_extensions; do
3203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204    ac_cv_prog_ac_ct_CC="gcc"
3205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209  done
3210IFS=$as_save_IFS
3211
3212fi
3213fi
3214ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215if test -n "$ac_ct_CC"; then
3216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217$as_echo "$ac_ct_CC" >&6; }
3218else
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221fi
3222
3223  if test "x$ac_ct_CC" = x; then
3224    CC=""
3225  else
3226    case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
3231esac
3232    CC=$ac_ct_CC
3233  fi
3234else
3235  CC="$ac_cv_prog_CC"
3236fi
3237
3238if test -z "$CC"; then
3239          if test -n "$ac_tool_prefix"; then
3240    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3241set dummy ${ac_tool_prefix}cc; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if ${ac_cv_prog_CC+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if test -n "$CC"; then
3248  ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257    ac_cv_prog_CC="${ac_tool_prefix}cc"
3258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270$as_echo "$CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277  fi
3278fi
3279if test -z "$CC"; then
3280  # Extract the first word of "cc", so it can be a program name with args.
3281set dummy cc; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_CC+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test -n "$CC"; then
3288  ac_cv_prog_CC="$CC" # Let the user override the test.
3289else
3290  ac_prog_rejected=no
3291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292for as_dir in $PATH
3293do
3294  IFS=$as_save_IFS
3295  test -z "$as_dir" && as_dir=.
3296    for ac_exec_ext in '' $ac_executable_extensions; do
3297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3299       ac_prog_rejected=yes
3300       continue
3301     fi
3302    ac_cv_prog_CC="cc"
3303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307  done
3308IFS=$as_save_IFS
3309
3310if test $ac_prog_rejected = yes; then
3311  # We found a bogon in the path, so make sure we never use it.
3312  set dummy $ac_cv_prog_CC
3313  shift
3314  if test $# != 0; then
3315    # We chose a different compiler from the bogus one.
3316    # However, it has the same basename, so the bogon will be chosen
3317    # first if we set CC to just the basename; use the full file name.
3318    shift
3319    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3320  fi
3321fi
3322fi
3323fi
3324CC=$ac_cv_prog_CC
3325if test -n "$CC"; then
3326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3327$as_echo "$CC" >&6; }
3328else
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330$as_echo "no" >&6; }
3331fi
3332
3333
3334fi
3335if test -z "$CC"; then
3336  if test -n "$ac_tool_prefix"; then
3337  for ac_prog in cl.exe
3338  do
3339    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342$as_echo_n "checking for $ac_word... " >&6; }
3343if ${ac_cv_prog_CC+:} false; then :
3344  $as_echo_n "(cached) " >&6
3345else
3346  if test -n "$CC"; then
3347  ac_cv_prog_CC="$CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354    for ac_exec_ext in '' $ac_executable_extensions; do
3355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358    break 2
3359  fi
3360done
3361  done
3362IFS=$as_save_IFS
3363
3364fi
3365fi
3366CC=$ac_cv_prog_CC
3367if test -n "$CC"; then
3368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3369$as_echo "$CC" >&6; }
3370else
3371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372$as_echo "no" >&6; }
3373fi
3374
3375
3376    test -n "$CC" && break
3377  done
3378fi
3379if test -z "$CC"; then
3380  ac_ct_CC=$CC
3381  for ac_prog in cl.exe
3382do
3383  # Extract the first word of "$ac_prog", so it can be a program name with args.
3384set dummy $ac_prog; ac_word=$2
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386$as_echo_n "checking for $ac_word... " >&6; }
3387if ${ac_cv_prog_ac_ct_CC+:} false; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  if test -n "$ac_ct_CC"; then
3391  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396  IFS=$as_save_IFS
3397  test -z "$as_dir" && as_dir=.
3398    for ac_exec_ext in '' $ac_executable_extensions; do
3399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400    ac_cv_prog_ac_ct_CC="$ac_prog"
3401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402    break 2
3403  fi
3404done
3405  done
3406IFS=$as_save_IFS
3407
3408fi
3409fi
3410ac_ct_CC=$ac_cv_prog_ac_ct_CC
3411if test -n "$ac_ct_CC"; then
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3413$as_echo "$ac_ct_CC" >&6; }
3414else
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417fi
3418
3419
3420  test -n "$ac_ct_CC" && break
3421done
3422
3423  if test "x$ac_ct_CC" = x; then
3424    CC=""
3425  else
3426    case $cross_compiling:$ac_tool_warned in
3427yes:)
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3430ac_tool_warned=yes ;;
3431esac
3432    CC=$ac_ct_CC
3433  fi
3434fi
3435
3436fi
3437
3438
3439test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441as_fn_error $? "no acceptable C compiler found in \$PATH
3442See \`config.log' for more details" "$LINENO" 5; }
3443
3444# Provide some information about the compiler.
3445$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3446set X $ac_compile
3447ac_compiler=$2
3448for ac_option in --version -v -V -qversion; do
3449  { { ac_try="$ac_compiler $ac_option >&5"
3450case "(($ac_try" in
3451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452  *) ac_try_echo=$ac_try;;
3453esac
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
3456  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3457  ac_status=$?
3458  if test -s conftest.err; then
3459    sed '10a\
3460... rest of stderr output deleted ...
3461         10q' conftest.err >conftest.er1
3462    cat conftest.er1 >&5
3463  fi
3464  rm -f conftest.er1 conftest.err
3465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466  test $ac_status = 0; }
3467done
3468
3469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480ac_clean_files_save=$ac_clean_files
3481ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3482# Try to create an executable without -o first, disregard a.out.
3483# It will help us diagnose broken compilers, and finding out an intuition
3484# of exeext.
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3486$as_echo_n "checking whether the C compiler works... " >&6; }
3487ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3488
3489# The possible output files:
3490ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3491
3492ac_rmfiles=
3493for ac_file in $ac_files
3494do
3495  case $ac_file in
3496    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3497    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3498  esac
3499done
3500rm -f $ac_rmfiles
3501
3502if { { ac_try="$ac_link_default"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508$as_echo "$ac_try_echo"; } >&5
3509  (eval "$ac_link_default") 2>&5
3510  ac_status=$?
3511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512  test $ac_status = 0; }; then :
3513  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3514# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3515# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3516# so that the user can short-circuit this test for compilers unknown to
3517# Autoconf.
3518for ac_file in $ac_files ''
3519do
3520  test -f "$ac_file" || continue
3521  case $ac_file in
3522    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3523	;;
3524    [ab].out )
3525	# We found the default executable, but exeext='' is most
3526	# certainly right.
3527	break;;
3528    *.* )
3529	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3530	then :; else
3531	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532	fi
3533	# We set ac_cv_exeext here because the later test for it is not
3534	# safe: cross compilers may not add the suffix if given an `-o'
3535	# argument, so we may need to know it at that point already.
3536	# Even if this section looks crufty: it has the advantage of
3537	# actually working.
3538	break;;
3539    * )
3540	break;;
3541  esac
3542done
3543test "$ac_cv_exeext" = no && ac_cv_exeext=
3544
3545else
3546  ac_file=''
3547fi
3548if test -z "$ac_file"; then :
3549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550$as_echo "no" >&6; }
3551$as_echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error 77 "C compiler cannot create executables
3557See \`config.log' for more details" "$LINENO" 5; }
3558else
3559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560$as_echo "yes" >&6; }
3561fi
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3563$as_echo_n "checking for C compiler default output file name... " >&6; }
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3565$as_echo "$ac_file" >&6; }
3566ac_exeext=$ac_cv_exeext
3567
3568rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3569ac_clean_files=$ac_clean_files_save
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3571$as_echo_n "checking for suffix of executables... " >&6; }
3572if { { ac_try="$ac_link"
3573case "(($ac_try" in
3574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575  *) ac_try_echo=$ac_try;;
3576esac
3577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578$as_echo "$ac_try_echo"; } >&5
3579  (eval "$ac_link") 2>&5
3580  ac_status=$?
3581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582  test $ac_status = 0; }; then :
3583  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3584# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3585# work properly (i.e., refer to `conftest.exe'), while it won't with
3586# `rm'.
3587for ac_file in conftest.exe conftest conftest.*; do
3588  test -f "$ac_file" || continue
3589  case $ac_file in
3590    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3591    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592	  break;;
3593    * ) break;;
3594  esac
3595done
3596else
3597  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3599as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3600See \`config.log' for more details" "$LINENO" 5; }
3601fi
3602rm -f conftest conftest$ac_cv_exeext
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3604$as_echo "$ac_cv_exeext" >&6; }
3605
3606rm -f conftest.$ac_ext
3607EXEEXT=$ac_cv_exeext
3608ac_exeext=$EXEEXT
3609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610/* end confdefs.h.  */
3611#include <stdio.h>
3612int
3613main ()
3614{
3615FILE *f = fopen ("conftest.out", "w");
3616 return ferror (f) || fclose (f) != 0;
3617
3618  ;
3619  return 0;
3620}
3621_ACEOF
3622ac_clean_files="$ac_clean_files conftest.out"
3623# Check that the compiler produces executables we can run.  If not, either
3624# the compiler is broken, or we cross compile.
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3626$as_echo_n "checking whether we are cross compiling... " >&6; }
3627if test "$cross_compiling" != yes; then
3628  { { ac_try="$ac_link"
3629case "(($ac_try" in
3630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631  *) ac_try_echo=$ac_try;;
3632esac
3633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634$as_echo "$ac_try_echo"; } >&5
3635  (eval "$ac_link") 2>&5
3636  ac_status=$?
3637  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638  test $ac_status = 0; }
3639  if { ac_try='./conftest$ac_cv_exeext'
3640  { { case "(($ac_try" in
3641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642  *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645$as_echo "$ac_try_echo"; } >&5
3646  (eval "$ac_try") 2>&5
3647  ac_status=$?
3648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649  test $ac_status = 0; }; }; then
3650    cross_compiling=no
3651  else
3652    if test "$cross_compiling" = maybe; then
3653	cross_compiling=yes
3654    else
3655	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657as_fn_error $? "cannot run C compiled programs.
3658If you meant to cross compile, use \`--host'.
3659See \`config.log' for more details" "$LINENO" 5; }
3660    fi
3661  fi
3662fi
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3664$as_echo "$cross_compiling" >&6; }
3665
3666rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3667ac_clean_files=$ac_clean_files_save
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3669$as_echo_n "checking for suffix of object files... " >&6; }
3670if ${ac_cv_objext+:} false; then :
3671  $as_echo_n "(cached) " >&6
3672else
3673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684rm -f conftest.o conftest.obj
3685if { { ac_try="$ac_compile"
3686case "(($ac_try" in
3687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688  *) ac_try_echo=$ac_try;;
3689esac
3690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691$as_echo "$ac_try_echo"; } >&5
3692  (eval "$ac_compile") 2>&5
3693  ac_status=$?
3694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695  test $ac_status = 0; }; then :
3696  for ac_file in conftest.o conftest.obj conftest.*; do
3697  test -f "$ac_file" || continue;
3698  case $ac_file in
3699    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3700    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3701       break;;
3702  esac
3703done
3704else
3705  $as_echo "$as_me: failed program was:" >&5
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
3708{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710as_fn_error $? "cannot compute suffix of object files: cannot compile
3711See \`config.log' for more details" "$LINENO" 5; }
3712fi
3713rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3716$as_echo "$ac_cv_objext" >&6; }
3717OBJEXT=$ac_cv_objext
3718ac_objext=$OBJEXT
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3720$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3721if ${ac_cv_c_compiler_gnu+:} false; then :
3722  $as_echo_n "(cached) " >&6
3723else
3724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725/* end confdefs.h.  */
3726
3727int
3728main ()
3729{
3730#ifndef __GNUC__
3731       choke me
3732#endif
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738if ac_fn_c_try_compile "$LINENO"; then :
3739  ac_compiler_gnu=yes
3740else
3741  ac_compiler_gnu=no
3742fi
3743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744ac_cv_c_compiler_gnu=$ac_compiler_gnu
3745
3746fi
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3748$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3749if test $ac_compiler_gnu = yes; then
3750  GCC=yes
3751else
3752  GCC=
3753fi
3754ac_test_CFLAGS=${CFLAGS+set}
3755ac_save_CFLAGS=$CFLAGS
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3757$as_echo_n "checking whether $CC accepts -g... " >&6; }
3758if ${ac_cv_prog_cc_g+:} false; then :
3759  $as_echo_n "(cached) " >&6
3760else
3761  ac_save_c_werror_flag=$ac_c_werror_flag
3762   ac_c_werror_flag=yes
3763   ac_cv_prog_cc_g=no
3764   CFLAGS="-g"
3765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767
3768int
3769main ()
3770{
3771
3772  ;
3773  return 0;
3774}
3775_ACEOF
3776if ac_fn_c_try_compile "$LINENO"; then :
3777  ac_cv_prog_cc_g=yes
3778else
3779  CFLAGS=""
3780      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781/* end confdefs.h.  */
3782
3783int
3784main ()
3785{
3786
3787  ;
3788  return 0;
3789}
3790_ACEOF
3791if ac_fn_c_try_compile "$LINENO"; then :
3792
3793else
3794  ac_c_werror_flag=$ac_save_c_werror_flag
3795	 CFLAGS="-g"
3796	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h.  */
3798
3799int
3800main ()
3801{
3802
3803  ;
3804  return 0;
3805}
3806_ACEOF
3807if ac_fn_c_try_compile "$LINENO"; then :
3808  ac_cv_prog_cc_g=yes
3809fi
3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3811fi
3812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813fi
3814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815   ac_c_werror_flag=$ac_save_c_werror_flag
3816fi
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3818$as_echo "$ac_cv_prog_cc_g" >&6; }
3819if test "$ac_test_CFLAGS" = set; then
3820  CFLAGS=$ac_save_CFLAGS
3821elif test $ac_cv_prog_cc_g = yes; then
3822  if test "$GCC" = yes; then
3823    CFLAGS="-g -O2"
3824  else
3825    CFLAGS="-g"
3826  fi
3827else
3828  if test "$GCC" = yes; then
3829    CFLAGS="-O2"
3830  else
3831    CFLAGS=
3832  fi
3833fi
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3835$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3836if ${ac_cv_prog_cc_c89+:} false; then :
3837  $as_echo_n "(cached) " >&6
3838else
3839  ac_cv_prog_cc_c89=no
3840ac_save_CC=$CC
3841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h.  */
3843#include <stdarg.h>
3844#include <stdio.h>
3845struct stat;
3846/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3847struct buf { int x; };
3848FILE * (*rcsopen) (struct buf *, struct stat *, int);
3849static char *e (p, i)
3850     char **p;
3851     int i;
3852{
3853  return p[i];
3854}
3855static char *f (char * (*g) (char **, int), char **p, ...)
3856{
3857  char *s;
3858  va_list v;
3859  va_start (v,p);
3860  s = g (p, va_arg (v,int));
3861  va_end (v);
3862  return s;
3863}
3864
3865/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3866   function prototypes and stuff, but not '\xHH' hex character constants.
3867   These don't provoke an error unfortunately, instead are silently treated
3868   as 'x'.  The following induces an error, until -std is added to get
3869   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3870   array size at least.  It's necessary to write '\x00'==0 to get something
3871   that's true only with -std.  */
3872int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3873
3874/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3875   inside strings and character constants.  */
3876#define FOO(x) 'x'
3877int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3878
3879int test (int i, double x);
3880struct s1 {int (*f) (int a);};
3881struct s2 {int (*f) (double a);};
3882int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3883int argc;
3884char **argv;
3885int
3886main ()
3887{
3888return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3895do
3896  CC="$ac_save_CC $ac_arg"
3897  if ac_fn_c_try_compile "$LINENO"; then :
3898  ac_cv_prog_cc_c89=$ac_arg
3899fi
3900rm -f core conftest.err conftest.$ac_objext
3901  test "x$ac_cv_prog_cc_c89" != "xno" && break
3902done
3903rm -f conftest.$ac_ext
3904CC=$ac_save_CC
3905
3906fi
3907# AC_CACHE_VAL
3908case "x$ac_cv_prog_cc_c89" in
3909  x)
3910    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3911$as_echo "none needed" >&6; } ;;
3912  xno)
3913    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3914$as_echo "unsupported" >&6; } ;;
3915  *)
3916    CC="$CC $ac_cv_prog_cc_c89"
3917    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3918$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3919esac
3920if test "x$ac_cv_prog_cc_c89" != xno; then :
3921
3922fi
3923
3924ac_ext=c
3925ac_cpp='$CPP $CPPFLAGS'
3926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929
3930depcc="$CC"   am_compiler_list=
3931
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3933$as_echo_n "checking dependency style of $depcc... " >&6; }
3934if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3938  # We make a subdir and do the tests there.  Otherwise we can end up
3939  # making bogus files that we don't know about and never remove.  For
3940  # instance it was reported that on HP-UX the gcc test will end up
3941  # making a dummy file named 'D' -- because '-MD' means "put the output
3942  # in D".
3943  rm -rf conftest.dir
3944  mkdir conftest.dir
3945  # Copy depcomp to subdir because otherwise we won't find it if we're
3946  # using a relative directory.
3947  cp "$am_depcomp" conftest.dir
3948  cd conftest.dir
3949  # We will build objects and dependencies in a subdirectory because
3950  # it helps to detect inapplicable dependency modes.  For instance
3951  # both Tru64's cc and ICC support -MD to output dependencies as a
3952  # side effect of compilation, but ICC will put the dependencies in
3953  # the current directory while Tru64 will put them in the object
3954  # directory.
3955  mkdir sub
3956
3957  am_cv_CC_dependencies_compiler_type=none
3958  if test "$am_compiler_list" = ""; then
3959     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3960  fi
3961  am__universal=false
3962  case " $depcc " in #(
3963     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3964     esac
3965
3966  for depmode in $am_compiler_list; do
3967    # Setup a source with many dependencies, because some compilers
3968    # like to wrap large dependency lists on column 80 (with \), and
3969    # we should not choose a depcomp mode which is confused by this.
3970    #
3971    # We need to recreate these files for each test, as the compiler may
3972    # overwrite some of them when testing with obscure command lines.
3973    # This happens at least with the AIX C compiler.
3974    : > sub/conftest.c
3975    for i in 1 2 3 4 5 6; do
3976      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3977      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3978      # Solaris 10 /bin/sh.
3979      echo '/* dummy */' > sub/conftst$i.h
3980    done
3981    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3982
3983    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3984    # mode.  It turns out that the SunPro C++ compiler does not properly
3985    # handle '-M -o', and we need to detect this.  Also, some Intel
3986    # versions had trouble with output in subdirs.
3987    am__obj=sub/conftest.${OBJEXT-o}
3988    am__minus_obj="-o $am__obj"
3989    case $depmode in
3990    gcc)
3991      # This depmode causes a compiler race in universal mode.
3992      test "$am__universal" = false || continue
3993      ;;
3994    nosideeffect)
3995      # After this tag, mechanisms are not by side-effect, so they'll
3996      # only be used when explicitly requested.
3997      if test "x$enable_dependency_tracking" = xyes; then
3998	continue
3999      else
4000	break
4001      fi
4002      ;;
4003    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4004      # This compiler won't grok '-c -o', but also, the minuso test has
4005      # not run yet.  These depmodes are late enough in the game, and
4006      # so weak that their functioning should not be impacted.
4007      am__obj=conftest.${OBJEXT-o}
4008      am__minus_obj=
4009      ;;
4010    none) break ;;
4011    esac
4012    if depmode=$depmode \
4013       source=sub/conftest.c object=$am__obj \
4014       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4015       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4016         >/dev/null 2>conftest.err &&
4017       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4018       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4019       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4020       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4021      # icc doesn't choke on unknown options, it will just issue warnings
4022      # or remarks (even with -Werror).  So we grep stderr for any message
4023      # that says an option was ignored or not supported.
4024      # When given -MP, icc 7.0 and 7.1 complain thusly:
4025      #   icc: Command line warning: ignoring option '-M'; no argument required
4026      # The diagnosis changed in icc 8.0:
4027      #   icc: Command line remark: option '-MP' not supported
4028      if (grep 'ignoring option' conftest.err ||
4029          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4030        am_cv_CC_dependencies_compiler_type=$depmode
4031        break
4032      fi
4033    fi
4034  done
4035
4036  cd ..
4037  rm -rf conftest.dir
4038else
4039  am_cv_CC_dependencies_compiler_type=none
4040fi
4041
4042fi
4043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4044$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4045CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4046
4047 if
4048  test "x$enable_dependency_tracking" != xno \
4049  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4050  am__fastdepCC_TRUE=
4051  am__fastdepCC_FALSE='#'
4052else
4053  am__fastdepCC_TRUE='#'
4054  am__fastdepCC_FALSE=
4055fi
4056
4057
4058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4059$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4060if ${ac_cv_prog_cc_c99+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  ac_cv_prog_cc_c99=no
4064ac_save_CC=$CC
4065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067#include <stdarg.h>
4068#include <stdbool.h>
4069#include <stdlib.h>
4070#include <wchar.h>
4071#include <stdio.h>
4072
4073// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4074#define debug(...) fprintf (stderr, __VA_ARGS__)
4075#define showlist(...) puts (#__VA_ARGS__)
4076#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4077static void
4078test_varargs_macros (void)
4079{
4080  int x = 1234;
4081  int y = 5678;
4082  debug ("Flag");
4083  debug ("X = %d\n", x);
4084  showlist (The first, second, and third items.);
4085  report (x>y, "x is %d but y is %d", x, y);
4086}
4087
4088// Check long long types.
4089#define BIG64 18446744073709551615ull
4090#define BIG32 4294967295ul
4091#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4092#if !BIG_OK
4093  your preprocessor is broken;
4094#endif
4095#if BIG_OK
4096#else
4097  your preprocessor is broken;
4098#endif
4099static long long int bignum = -9223372036854775807LL;
4100static unsigned long long int ubignum = BIG64;
4101
4102struct incomplete_array
4103{
4104  int datasize;
4105  double data[];
4106};
4107
4108struct named_init {
4109  int number;
4110  const wchar_t *name;
4111  double average;
4112};
4113
4114typedef const char *ccp;
4115
4116static inline int
4117test_restrict (ccp restrict text)
4118{
4119  // See if C++-style comments work.
4120  // Iterate through items via the restricted pointer.
4121  // Also check for declarations in for loops.
4122  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4123    continue;
4124  return 0;
4125}
4126
4127// Check varargs and va_copy.
4128static void
4129test_varargs (const char *format, ...)
4130{
4131  va_list args;
4132  va_start (args, format);
4133  va_list args_copy;
4134  va_copy (args_copy, args);
4135
4136  const char *str;
4137  int number;
4138  float fnumber;
4139
4140  while (*format)
4141    {
4142      switch (*format++)
4143	{
4144	case 's': // string
4145	  str = va_arg (args_copy, const char *);
4146	  break;
4147	case 'd': // int
4148	  number = va_arg (args_copy, int);
4149	  break;
4150	case 'f': // float
4151	  fnumber = va_arg (args_copy, double);
4152	  break;
4153	default:
4154	  break;
4155	}
4156    }
4157  va_end (args_copy);
4158  va_end (args);
4159}
4160
4161int
4162main ()
4163{
4164
4165  // Check bool.
4166  _Bool success = false;
4167
4168  // Check restrict.
4169  if (test_restrict ("String literal") == 0)
4170    success = true;
4171  char *restrict newvar = "Another string";
4172
4173  // Check varargs.
4174  test_varargs ("s, d' f .", "string", 65, 34.234);
4175  test_varargs_macros ();
4176
4177  // Check flexible array members.
4178  struct incomplete_array *ia =
4179    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4180  ia->datasize = 10;
4181  for (int i = 0; i < ia->datasize; ++i)
4182    ia->data[i] = i * 1.234;
4183
4184  // Check named initializers.
4185  struct named_init ni = {
4186    .number = 34,
4187    .name = L"Test wide string",
4188    .average = 543.34343,
4189  };
4190
4191  ni.number = 58;
4192
4193  int dynamic_array[ni.number];
4194  dynamic_array[ni.number - 1] = 543;
4195
4196  // work around unused variable warnings
4197  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4198	  || dynamic_array[ni.number - 1] != 543);
4199
4200  ;
4201  return 0;
4202}
4203_ACEOF
4204for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4205do
4206  CC="$ac_save_CC $ac_arg"
4207  if ac_fn_c_try_compile "$LINENO"; then :
4208  ac_cv_prog_cc_c99=$ac_arg
4209fi
4210rm -f core conftest.err conftest.$ac_objext
4211  test "x$ac_cv_prog_cc_c99" != "xno" && break
4212done
4213rm -f conftest.$ac_ext
4214CC=$ac_save_CC
4215
4216fi
4217# AC_CACHE_VAL
4218case "x$ac_cv_prog_cc_c99" in
4219  x)
4220    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221$as_echo "none needed" >&6; } ;;
4222  xno)
4223    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224$as_echo "unsupported" >&6; } ;;
4225  *)
4226    CC="$CC $ac_cv_prog_cc_c99"
4227    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4228$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4229esac
4230if test "x$ac_cv_prog_cc_c99" != xno; then :
4231
4232fi
4233
4234
4235
4236ac_ext=c
4237ac_cpp='$CPP $CPPFLAGS'
4238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240ac_compiler_gnu=$ac_cv_c_compiler_gnu
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4242$as_echo_n "checking how to run the C preprocessor... " >&6; }
4243# On Suns, sometimes $CPP names a directory.
4244if test -n "$CPP" && test -d "$CPP"; then
4245  CPP=
4246fi
4247if test -z "$CPP"; then
4248  if ${ac_cv_prog_CPP+:} false; then :
4249  $as_echo_n "(cached) " >&6
4250else
4251      # Double quotes because CPP needs to be expanded
4252    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4253    do
4254      ac_preproc_ok=false
4255for ac_c_preproc_warn_flag in '' yes
4256do
4257  # Use a header file that comes with gcc, so configuring glibc
4258  # with a fresh cross-compiler works.
4259  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260  # <limits.h> exists even on freestanding compilers.
4261  # On the NeXT, cc -E runs the code through the compiler's parser,
4262  # not just through cpp. "Syntax error" is here to catch this case.
4263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264/* end confdefs.h.  */
4265#ifdef __STDC__
4266# include <limits.h>
4267#else
4268# include <assert.h>
4269#endif
4270		     Syntax error
4271_ACEOF
4272if ac_fn_c_try_cpp "$LINENO"; then :
4273
4274else
4275  # Broken: fails on valid input.
4276continue
4277fi
4278rm -f conftest.err conftest.i conftest.$ac_ext
4279
4280  # OK, works on sane cases.  Now check whether nonexistent headers
4281  # can be detected and how.
4282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283/* end confdefs.h.  */
4284#include <ac_nonexistent.h>
4285_ACEOF
4286if ac_fn_c_try_cpp "$LINENO"; then :
4287  # Broken: success on invalid input.
4288continue
4289else
4290  # Passes both tests.
4291ac_preproc_ok=:
4292break
4293fi
4294rm -f conftest.err conftest.i conftest.$ac_ext
4295
4296done
4297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298rm -f conftest.i conftest.err conftest.$ac_ext
4299if $ac_preproc_ok; then :
4300  break
4301fi
4302
4303    done
4304    ac_cv_prog_CPP=$CPP
4305
4306fi
4307  CPP=$ac_cv_prog_CPP
4308else
4309  ac_cv_prog_CPP=$CPP
4310fi
4311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4312$as_echo "$CPP" >&6; }
4313ac_preproc_ok=false
4314for ac_c_preproc_warn_flag in '' yes
4315do
4316  # Use a header file that comes with gcc, so configuring glibc
4317  # with a fresh cross-compiler works.
4318  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319  # <limits.h> exists even on freestanding compilers.
4320  # On the NeXT, cc -E runs the code through the compiler's parser,
4321  # not just through cpp. "Syntax error" is here to catch this case.
4322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324#ifdef __STDC__
4325# include <limits.h>
4326#else
4327# include <assert.h>
4328#endif
4329		     Syntax error
4330_ACEOF
4331if ac_fn_c_try_cpp "$LINENO"; then :
4332
4333else
4334  # Broken: fails on valid input.
4335continue
4336fi
4337rm -f conftest.err conftest.i conftest.$ac_ext
4338
4339  # OK, works on sane cases.  Now check whether nonexistent headers
4340  # can be detected and how.
4341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343#include <ac_nonexistent.h>
4344_ACEOF
4345if ac_fn_c_try_cpp "$LINENO"; then :
4346  # Broken: success on invalid input.
4347continue
4348else
4349  # Passes both tests.
4350ac_preproc_ok=:
4351break
4352fi
4353rm -f conftest.err conftest.i conftest.$ac_ext
4354
4355done
4356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4357rm -f conftest.i conftest.err conftest.$ac_ext
4358if $ac_preproc_ok; then :
4359
4360else
4361  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4364See \`config.log' for more details" "$LINENO" 5; }
4365fi
4366
4367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4375$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4376if ${ac_cv_path_GREP+:} false; then :
4377  $as_echo_n "(cached) " >&6
4378else
4379  if test -z "$GREP"; then
4380  ac_path_GREP_found=false
4381  # Loop through the user's path and test for each of PROGNAME-LIST
4382  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4384do
4385  IFS=$as_save_IFS
4386  test -z "$as_dir" && as_dir=.
4387    for ac_prog in grep ggrep; do
4388    for ac_exec_ext in '' $ac_executable_extensions; do
4389      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4390      as_fn_executable_p "$ac_path_GREP" || continue
4391# Check for GNU ac_path_GREP and select it if it is found.
4392  # Check for GNU $ac_path_GREP
4393case `"$ac_path_GREP" --version 2>&1` in
4394*GNU*)
4395  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4396*)
4397  ac_count=0
4398  $as_echo_n 0123456789 >"conftest.in"
4399  while :
4400  do
4401    cat "conftest.in" "conftest.in" >"conftest.tmp"
4402    mv "conftest.tmp" "conftest.in"
4403    cp "conftest.in" "conftest.nl"
4404    $as_echo 'GREP' >> "conftest.nl"
4405    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4406    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4407    as_fn_arith $ac_count + 1 && ac_count=$as_val
4408    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4409      # Best one so far, save it but keep looking for a better one
4410      ac_cv_path_GREP="$ac_path_GREP"
4411      ac_path_GREP_max=$ac_count
4412    fi
4413    # 10*(2^10) chars as input seems more than enough
4414    test $ac_count -gt 10 && break
4415  done
4416  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4417esac
4418
4419      $ac_path_GREP_found && break 3
4420    done
4421  done
4422  done
4423IFS=$as_save_IFS
4424  if test -z "$ac_cv_path_GREP"; then
4425    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4426  fi
4427else
4428  ac_cv_path_GREP=$GREP
4429fi
4430
4431fi
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4433$as_echo "$ac_cv_path_GREP" >&6; }
4434 GREP="$ac_cv_path_GREP"
4435
4436
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4438$as_echo_n "checking for egrep... " >&6; }
4439if ${ac_cv_path_EGREP+:} false; then :
4440  $as_echo_n "(cached) " >&6
4441else
4442  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4443   then ac_cv_path_EGREP="$GREP -E"
4444   else
4445     if test -z "$EGREP"; then
4446  ac_path_EGREP_found=false
4447  # Loop through the user's path and test for each of PROGNAME-LIST
4448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4450do
4451  IFS=$as_save_IFS
4452  test -z "$as_dir" && as_dir=.
4453    for ac_prog in egrep; do
4454    for ac_exec_ext in '' $ac_executable_extensions; do
4455      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4456      as_fn_executable_p "$ac_path_EGREP" || continue
4457# Check for GNU ac_path_EGREP and select it if it is found.
4458  # Check for GNU $ac_path_EGREP
4459case `"$ac_path_EGREP" --version 2>&1` in
4460*GNU*)
4461  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4462*)
4463  ac_count=0
4464  $as_echo_n 0123456789 >"conftest.in"
4465  while :
4466  do
4467    cat "conftest.in" "conftest.in" >"conftest.tmp"
4468    mv "conftest.tmp" "conftest.in"
4469    cp "conftest.in" "conftest.nl"
4470    $as_echo 'EGREP' >> "conftest.nl"
4471    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4472    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4473    as_fn_arith $ac_count + 1 && ac_count=$as_val
4474    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4475      # Best one so far, save it but keep looking for a better one
4476      ac_cv_path_EGREP="$ac_path_EGREP"
4477      ac_path_EGREP_max=$ac_count
4478    fi
4479    # 10*(2^10) chars as input seems more than enough
4480    test $ac_count -gt 10 && break
4481  done
4482  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4483esac
4484
4485      $ac_path_EGREP_found && break 3
4486    done
4487  done
4488  done
4489IFS=$as_save_IFS
4490  if test -z "$ac_cv_path_EGREP"; then
4491    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4492  fi
4493else
4494  ac_cv_path_EGREP=$EGREP
4495fi
4496
4497   fi
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4500$as_echo "$ac_cv_path_EGREP" >&6; }
4501 EGREP="$ac_cv_path_EGREP"
4502
4503
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4505$as_echo_n "checking for ANSI C header files... " >&6; }
4506if ${ac_cv_header_stdc+:} false; then :
4507  $as_echo_n "(cached) " >&6
4508else
4509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510/* end confdefs.h.  */
4511#include <stdlib.h>
4512#include <stdarg.h>
4513#include <string.h>
4514#include <float.h>
4515
4516int
4517main ()
4518{
4519
4520  ;
4521  return 0;
4522}
4523_ACEOF
4524if ac_fn_c_try_compile "$LINENO"; then :
4525  ac_cv_header_stdc=yes
4526else
4527  ac_cv_header_stdc=no
4528fi
4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4530
4531if test $ac_cv_header_stdc = yes; then
4532  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534/* end confdefs.h.  */
4535#include <string.h>
4536
4537_ACEOF
4538if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4539  $EGREP "memchr" >/dev/null 2>&1; then :
4540
4541else
4542  ac_cv_header_stdc=no
4543fi
4544rm -f conftest*
4545
4546fi
4547
4548if test $ac_cv_header_stdc = yes; then
4549  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h.  */
4552#include <stdlib.h>
4553
4554_ACEOF
4555if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556  $EGREP "free" >/dev/null 2>&1; then :
4557
4558else
4559  ac_cv_header_stdc=no
4560fi
4561rm -f conftest*
4562
4563fi
4564
4565if test $ac_cv_header_stdc = yes; then
4566  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4567  if test "$cross_compiling" = yes; then :
4568  :
4569else
4570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571/* end confdefs.h.  */
4572#include <ctype.h>
4573#include <stdlib.h>
4574#if ((' ' & 0x0FF) == 0x020)
4575# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4576# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4577#else
4578# define ISLOWER(c) \
4579		   (('a' <= (c) && (c) <= 'i') \
4580		     || ('j' <= (c) && (c) <= 'r') \
4581		     || ('s' <= (c) && (c) <= 'z'))
4582# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4583#endif
4584
4585#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4586int
4587main ()
4588{
4589  int i;
4590  for (i = 0; i < 256; i++)
4591    if (XOR (islower (i), ISLOWER (i))
4592	|| toupper (i) != TOUPPER (i))
4593      return 2;
4594  return 0;
4595}
4596_ACEOF
4597if ac_fn_c_try_run "$LINENO"; then :
4598
4599else
4600  ac_cv_header_stdc=no
4601fi
4602rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4603  conftest.$ac_objext conftest.beam conftest.$ac_ext
4604fi
4605
4606fi
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4609$as_echo "$ac_cv_header_stdc" >&6; }
4610if test $ac_cv_header_stdc = yes; then
4611
4612$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4613
4614fi
4615
4616# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4617for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4618		  inttypes.h stdint.h unistd.h
4619do :
4620  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4621ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4622"
4623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4624  cat >>confdefs.h <<_ACEOF
4625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4626_ACEOF
4627
4628fi
4629
4630done
4631
4632
4633
4634
4635
4636
4637ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4638if test "x$ac_cv_have_decl___clang__" = xyes; then :
4639  CLANGCC="yes"
4640else
4641  CLANGCC="no"
4642fi
4643
4644ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4645if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4646  INTELCC="yes"
4647else
4648  INTELCC="no"
4649fi
4650
4651ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4652if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4653  SUNCC="yes"
4654else
4655  SUNCC="no"
4656fi
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4667	if test -n "$ac_tool_prefix"; then
4668  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4669set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671$as_echo_n "checking for $ac_word... " >&6; }
4672if ${ac_cv_path_PKG_CONFIG+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  case $PKG_CONFIG in
4676  [\\/]* | ?:[\\/]*)
4677  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4678  ;;
4679  *)
4680  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681for as_dir in $PATH
4682do
4683  IFS=$as_save_IFS
4684  test -z "$as_dir" && as_dir=.
4685    for ac_exec_ext in '' $ac_executable_extensions; do
4686  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4687    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4689    break 2
4690  fi
4691done
4692  done
4693IFS=$as_save_IFS
4694
4695  ;;
4696esac
4697fi
4698PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4699if test -n "$PKG_CONFIG"; then
4700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4701$as_echo "$PKG_CONFIG" >&6; }
4702else
4703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704$as_echo "no" >&6; }
4705fi
4706
4707
4708fi
4709if test -z "$ac_cv_path_PKG_CONFIG"; then
4710  ac_pt_PKG_CONFIG=$PKG_CONFIG
4711  # Extract the first word of "pkg-config", so it can be a program name with args.
4712set dummy pkg-config; ac_word=$2
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714$as_echo_n "checking for $ac_word... " >&6; }
4715if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4716  $as_echo_n "(cached) " >&6
4717else
4718  case $ac_pt_PKG_CONFIG in
4719  [\\/]* | ?:[\\/]*)
4720  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4721  ;;
4722  *)
4723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726  IFS=$as_save_IFS
4727  test -z "$as_dir" && as_dir=.
4728    for ac_exec_ext in '' $ac_executable_extensions; do
4729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4730    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732    break 2
4733  fi
4734done
4735  done
4736IFS=$as_save_IFS
4737
4738  ;;
4739esac
4740fi
4741ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4742if test -n "$ac_pt_PKG_CONFIG"; then
4743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4744$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4745else
4746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747$as_echo "no" >&6; }
4748fi
4749
4750  if test "x$ac_pt_PKG_CONFIG" = x; then
4751    PKG_CONFIG=""
4752  else
4753    case $cross_compiling:$ac_tool_warned in
4754yes:)
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757ac_tool_warned=yes ;;
4758esac
4759    PKG_CONFIG=$ac_pt_PKG_CONFIG
4760  fi
4761else
4762  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4763fi
4764
4765fi
4766if test -n "$PKG_CONFIG"; then
4767	_pkg_min_version=0.9.0
4768	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4769$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4770	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4772$as_echo "yes" >&6; }
4773	else
4774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775$as_echo "no" >&6; }
4776		PKG_CONFIG=""
4777	fi
4778fi
4779# Make sure we can run config.sub.
4780$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4781  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4784$as_echo_n "checking build system type... " >&6; }
4785if ${ac_cv_build+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  ac_build_alias=$build_alias
4789test "x$ac_build_alias" = x &&
4790  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4791test "x$ac_build_alias" = x &&
4792  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4793ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4794  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4795
4796fi
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4798$as_echo "$ac_cv_build" >&6; }
4799case $ac_cv_build in
4800*-*-*) ;;
4801*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4802esac
4803build=$ac_cv_build
4804ac_save_IFS=$IFS; IFS='-'
4805set x $ac_cv_build
4806shift
4807build_cpu=$1
4808build_vendor=$2
4809shift; shift
4810# Remember, the first character of IFS is used to create $*,
4811# except with old shells:
4812build_os=$*
4813IFS=$ac_save_IFS
4814case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4815
4816
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4818$as_echo_n "checking host system type... " >&6; }
4819if ${ac_cv_host+:} false; then :
4820  $as_echo_n "(cached) " >&6
4821else
4822  if test "x$host_alias" = x; then
4823  ac_cv_host=$ac_cv_build
4824else
4825  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4826    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4827fi
4828
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4831$as_echo "$ac_cv_host" >&6; }
4832case $ac_cv_host in
4833*-*-*) ;;
4834*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4835esac
4836host=$ac_cv_host
4837ac_save_IFS=$IFS; IFS='-'
4838set x $ac_cv_host
4839shift
4840host_cpu=$1
4841host_vendor=$2
4842shift; shift
4843# Remember, the first character of IFS is used to create $*,
4844# except with old shells:
4845host_os=$*
4846IFS=$ac_save_IFS
4847case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4848
4849
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4851$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4852if ${ac_cv_path_SED+:} false; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4856     for ac_i in 1 2 3 4 5 6 7; do
4857       ac_script="$ac_script$as_nl$ac_script"
4858     done
4859     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4860     { ac_script=; unset ac_script;}
4861     if test -z "$SED"; then
4862  ac_path_SED_found=false
4863  # Loop through the user's path and test for each of PROGNAME-LIST
4864  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865for as_dir in $PATH
4866do
4867  IFS=$as_save_IFS
4868  test -z "$as_dir" && as_dir=.
4869    for ac_prog in sed gsed; do
4870    for ac_exec_ext in '' $ac_executable_extensions; do
4871      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4872      as_fn_executable_p "$ac_path_SED" || continue
4873# Check for GNU ac_path_SED and select it if it is found.
4874  # Check for GNU $ac_path_SED
4875case `"$ac_path_SED" --version 2>&1` in
4876*GNU*)
4877  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4878*)
4879  ac_count=0
4880  $as_echo_n 0123456789 >"conftest.in"
4881  while :
4882  do
4883    cat "conftest.in" "conftest.in" >"conftest.tmp"
4884    mv "conftest.tmp" "conftest.in"
4885    cp "conftest.in" "conftest.nl"
4886    $as_echo '' >> "conftest.nl"
4887    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889    as_fn_arith $ac_count + 1 && ac_count=$as_val
4890    if test $ac_count -gt ${ac_path_SED_max-0}; then
4891      # Best one so far, save it but keep looking for a better one
4892      ac_cv_path_SED="$ac_path_SED"
4893      ac_path_SED_max=$ac_count
4894    fi
4895    # 10*(2^10) chars as input seems more than enough
4896    test $ac_count -gt 10 && break
4897  done
4898  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899esac
4900
4901      $ac_path_SED_found && break 3
4902    done
4903  done
4904  done
4905IFS=$as_save_IFS
4906  if test -z "$ac_cv_path_SED"; then
4907    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4908  fi
4909else
4910  ac_cv_path_SED=$SED
4911fi
4912
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4915$as_echo "$ac_cv_path_SED" >&6; }
4916 SED="$ac_cv_path_SED"
4917  rm -f conftest.sed
4918
4919
4920
4921
4922
4923
4924# Check whether --enable-selective-werror was given.
4925if test "${enable_selective_werror+set}" = set; then :
4926  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4927else
4928  SELECTIVE_WERROR=yes
4929fi
4930
4931
4932
4933
4934
4935# -v is too short to test reliably with XORG_TESTSET_CFLAG
4936if test "x$SUNCC" = "xyes"; then
4937    BASE_CFLAGS="-v"
4938else
4939    BASE_CFLAGS=""
4940fi
4941
4942# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966/* end confdefs.h.  */
4967int i;
4968_ACEOF
4969if ac_fn_c_try_compile "$LINENO"; then :
4970  xorg_cv_cc_flag_unknown_warning_option=yes
4971else
4972  xorg_cv_cc_flag_unknown_warning_option=no
4973fi
4974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975fi
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4979	CFLAGS="$xorg_testset_save_CFLAGS"
4980fi
4981
4982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985	fi
4986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993/* end confdefs.h.  */
4994int i;
4995_ACEOF
4996if ac_fn_c_try_compile "$LINENO"; then :
4997  xorg_cv_cc_flag_unused_command_line_argument=yes
4998else
4999  xorg_cv_cc_flag_unused_command_line_argument=no
5000fi
5001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5006	CFLAGS="$xorg_testset_save_CFLAGS"
5007fi
5008
5009found="no"
5010
5011	if test $found = "no" ; then
5012		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014		fi
5015
5016		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018		fi
5019
5020		CFLAGS="$CFLAGS -Wall"
5021
5022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
5023$as_echo_n "checking if $CC supports-Wall... " >&6; }
5024		cacheid=xorg_cv_cc_flag__Wall
5025		if eval \${$cacheid+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030int i;
5031int
5032main ()
5033{
5034
5035  ;
5036  return 0;
5037}
5038_ACEOF
5039if ac_fn_c_try_link "$LINENO"; then :
5040  eval $cacheid=yes
5041else
5042  eval $cacheid=no
5043fi
5044rm -f core conftest.err conftest.$ac_objext \
5045    conftest$ac_exeext conftest.$ac_ext
5046fi
5047
5048
5049		CFLAGS="$xorg_testset_save_CFLAGS"
5050
5051		eval supported=\$$cacheid
5052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5053$as_echo "$supported" >&6; }
5054		if test "$supported" = "yes" ; then
5055			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5056			found="yes"
5057		fi
5058	fi
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074xorg_testset_save_CFLAGS="$CFLAGS"
5075
5076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084/* end confdefs.h.  */
5085int i;
5086_ACEOF
5087if ac_fn_c_try_compile "$LINENO"; then :
5088  xorg_cv_cc_flag_unknown_warning_option=yes
5089else
5090  xorg_cv_cc_flag_unknown_warning_option=no
5091fi
5092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5093fi
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5097	CFLAGS="$xorg_testset_save_CFLAGS"
5098fi
5099
5100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103	fi
5104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5108  $as_echo_n "(cached) " >&6
5109else
5110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112int i;
5113_ACEOF
5114if ac_fn_c_try_compile "$LINENO"; then :
5115  xorg_cv_cc_flag_unused_command_line_argument=yes
5116else
5117  xorg_cv_cc_flag_unused_command_line_argument=no
5118fi
5119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120fi
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5124	CFLAGS="$xorg_testset_save_CFLAGS"
5125fi
5126
5127found="no"
5128
5129	if test $found = "no" ; then
5130		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5132		fi
5133
5134		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5136		fi
5137
5138		CFLAGS="$CFLAGS -Wpointer-arith"
5139
5140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5141$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5142		cacheid=xorg_cv_cc_flag__Wpointer_arith
5143		if eval \${$cacheid+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148int i;
5149int
5150main ()
5151{
5152
5153  ;
5154  return 0;
5155}
5156_ACEOF
5157if ac_fn_c_try_link "$LINENO"; then :
5158  eval $cacheid=yes
5159else
5160  eval $cacheid=no
5161fi
5162rm -f core conftest.err conftest.$ac_objext \
5163    conftest$ac_exeext conftest.$ac_ext
5164fi
5165
5166
5167		CFLAGS="$xorg_testset_save_CFLAGS"
5168
5169		eval supported=\$$cacheid
5170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5171$as_echo "$supported" >&6; }
5172		if test "$supported" = "yes" ; then
5173			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5174			found="yes"
5175		fi
5176	fi
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192xorg_testset_save_CFLAGS="$CFLAGS"
5193
5194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202/* end confdefs.h.  */
5203int i;
5204_ACEOF
5205if ac_fn_c_try_compile "$LINENO"; then :
5206  xorg_cv_cc_flag_unknown_warning_option=yes
5207else
5208  xorg_cv_cc_flag_unknown_warning_option=no
5209fi
5210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5215	CFLAGS="$xorg_testset_save_CFLAGS"
5216fi
5217
5218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221	fi
5222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5226  $as_echo_n "(cached) " >&6
5227else
5228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229/* end confdefs.h.  */
5230int i;
5231_ACEOF
5232if ac_fn_c_try_compile "$LINENO"; then :
5233  xorg_cv_cc_flag_unused_command_line_argument=yes
5234else
5235  xorg_cv_cc_flag_unused_command_line_argument=no
5236fi
5237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238fi
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5242	CFLAGS="$xorg_testset_save_CFLAGS"
5243fi
5244
5245found="no"
5246
5247	if test $found = "no" ; then
5248		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5250		fi
5251
5252		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5254		fi
5255
5256		CFLAGS="$CFLAGS -Wmissing-declarations"
5257
5258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5259$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5260		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5261		if eval \${$cacheid+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266int i;
5267int
5268main ()
5269{
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_link "$LINENO"; then :
5276  eval $cacheid=yes
5277else
5278  eval $cacheid=no
5279fi
5280rm -f core conftest.err conftest.$ac_objext \
5281    conftest$ac_exeext conftest.$ac_ext
5282fi
5283
5284
5285		CFLAGS="$xorg_testset_save_CFLAGS"
5286
5287		eval supported=\$$cacheid
5288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5289$as_echo "$supported" >&6; }
5290		if test "$supported" = "yes" ; then
5291			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5292			found="yes"
5293		fi
5294	fi
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310xorg_testset_save_CFLAGS="$CFLAGS"
5311
5312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h.  */
5321int i;
5322_ACEOF
5323if ac_fn_c_try_compile "$LINENO"; then :
5324  xorg_cv_cc_flag_unknown_warning_option=yes
5325else
5326  xorg_cv_cc_flag_unknown_warning_option=no
5327fi
5328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5333	CFLAGS="$xorg_testset_save_CFLAGS"
5334fi
5335
5336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339	fi
5340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h.  */
5348int i;
5349_ACEOF
5350if ac_fn_c_try_compile "$LINENO"; then :
5351  xorg_cv_cc_flag_unused_command_line_argument=yes
5352else
5353  xorg_cv_cc_flag_unused_command_line_argument=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356fi
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5360	CFLAGS="$xorg_testset_save_CFLAGS"
5361fi
5362
5363found="no"
5364
5365	if test $found = "no" ; then
5366		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5368		fi
5369
5370		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372		fi
5373
5374		CFLAGS="$CFLAGS -Wformat=2"
5375
5376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5377$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5378		cacheid=xorg_cv_cc_flag__Wformat_2
5379		if eval \${$cacheid+:} false; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384int i;
5385int
5386main ()
5387{
5388
5389  ;
5390  return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_link "$LINENO"; then :
5394  eval $cacheid=yes
5395else
5396  eval $cacheid=no
5397fi
5398rm -f core conftest.err conftest.$ac_objext \
5399    conftest$ac_exeext conftest.$ac_ext
5400fi
5401
5402
5403		CFLAGS="$xorg_testset_save_CFLAGS"
5404
5405		eval supported=\$$cacheid
5406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5407$as_echo "$supported" >&6; }
5408		if test "$supported" = "yes" ; then
5409			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5410			found="yes"
5411		fi
5412	fi
5413
5414	if test $found = "no" ; then
5415		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5416			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417		fi
5418
5419		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5420			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5421		fi
5422
5423		CFLAGS="$CFLAGS -Wformat"
5424
5425		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5426$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5427		cacheid=xorg_cv_cc_flag__Wformat
5428		if eval \${$cacheid+:} false; then :
5429  $as_echo_n "(cached) " >&6
5430else
5431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433int i;
5434int
5435main ()
5436{
5437
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442if ac_fn_c_try_link "$LINENO"; then :
5443  eval $cacheid=yes
5444else
5445  eval $cacheid=no
5446fi
5447rm -f core conftest.err conftest.$ac_objext \
5448    conftest$ac_exeext conftest.$ac_ext
5449fi
5450
5451
5452		CFLAGS="$xorg_testset_save_CFLAGS"
5453
5454		eval supported=\$$cacheid
5455		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5456$as_echo "$supported" >&6; }
5457		if test "$supported" = "yes" ; then
5458			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5459			found="yes"
5460		fi
5461	fi
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479xorg_testset_save_CFLAGS="$CFLAGS"
5480
5481if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5482	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5484$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5485if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5486  $as_echo_n "(cached) " >&6
5487else
5488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489/* end confdefs.h.  */
5490int i;
5491_ACEOF
5492if ac_fn_c_try_compile "$LINENO"; then :
5493  xorg_cv_cc_flag_unknown_warning_option=yes
5494else
5495  xorg_cv_cc_flag_unknown_warning_option=no
5496fi
5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498fi
5499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5500$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5501	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5502	CFLAGS="$xorg_testset_save_CFLAGS"
5503fi
5504
5505if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5506	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508	fi
5509	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5510	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5511$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5512if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516/* end confdefs.h.  */
5517int i;
5518_ACEOF
5519if ac_fn_c_try_compile "$LINENO"; then :
5520  xorg_cv_cc_flag_unused_command_line_argument=yes
5521else
5522  xorg_cv_cc_flag_unused_command_line_argument=no
5523fi
5524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525fi
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5527$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5528	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5529	CFLAGS="$xorg_testset_save_CFLAGS"
5530fi
5531
5532found="no"
5533
5534	if test $found = "no" ; then
5535		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5536			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537		fi
5538
5539		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5540			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541		fi
5542
5543		CFLAGS="$CFLAGS -Wstrict-prototypes"
5544
5545		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5546$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5547		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5548		if eval \${$cacheid+:} false; then :
5549  $as_echo_n "(cached) " >&6
5550else
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553int i;
5554int
5555main ()
5556{
5557
5558  ;
5559  return 0;
5560}
5561_ACEOF
5562if ac_fn_c_try_link "$LINENO"; then :
5563  eval $cacheid=yes
5564else
5565  eval $cacheid=no
5566fi
5567rm -f core conftest.err conftest.$ac_objext \
5568    conftest$ac_exeext conftest.$ac_ext
5569fi
5570
5571
5572		CFLAGS="$xorg_testset_save_CFLAGS"
5573
5574		eval supported=\$$cacheid
5575		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5576$as_echo "$supported" >&6; }
5577		if test "$supported" = "yes" ; then
5578			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5579			found="yes"
5580		fi
5581	fi
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597xorg_testset_save_CFLAGS="$CFLAGS"
5598
5599if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5600	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5602$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5603if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5604  $as_echo_n "(cached) " >&6
5605else
5606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607/* end confdefs.h.  */
5608int i;
5609_ACEOF
5610if ac_fn_c_try_compile "$LINENO"; then :
5611  xorg_cv_cc_flag_unknown_warning_option=yes
5612else
5613  xorg_cv_cc_flag_unknown_warning_option=no
5614fi
5615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616fi
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5618$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5619	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5620	CFLAGS="$xorg_testset_save_CFLAGS"
5621fi
5622
5623if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5624	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626	fi
5627	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5629$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5630if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h.  */
5635int i;
5636_ACEOF
5637if ac_fn_c_try_compile "$LINENO"; then :
5638  xorg_cv_cc_flag_unused_command_line_argument=yes
5639else
5640  xorg_cv_cc_flag_unused_command_line_argument=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643fi
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5645$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5646	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5647	CFLAGS="$xorg_testset_save_CFLAGS"
5648fi
5649
5650found="no"
5651
5652	if test $found = "no" ; then
5653		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5654			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655		fi
5656
5657		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5658			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659		fi
5660
5661		CFLAGS="$CFLAGS -Wmissing-prototypes"
5662
5663		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5664$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5665		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5666		if eval \${$cacheid+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670/* end confdefs.h.  */
5671int i;
5672int
5673main ()
5674{
5675
5676  ;
5677  return 0;
5678}
5679_ACEOF
5680if ac_fn_c_try_link "$LINENO"; then :
5681  eval $cacheid=yes
5682else
5683  eval $cacheid=no
5684fi
5685rm -f core conftest.err conftest.$ac_objext \
5686    conftest$ac_exeext conftest.$ac_ext
5687fi
5688
5689
5690		CFLAGS="$xorg_testset_save_CFLAGS"
5691
5692		eval supported=\$$cacheid
5693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5694$as_echo "$supported" >&6; }
5695		if test "$supported" = "yes" ; then
5696			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5697			found="yes"
5698		fi
5699	fi
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715xorg_testset_save_CFLAGS="$CFLAGS"
5716
5717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5722  $as_echo_n "(cached) " >&6
5723else
5724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725/* end confdefs.h.  */
5726int i;
5727_ACEOF
5728if ac_fn_c_try_compile "$LINENO"; then :
5729  xorg_cv_cc_flag_unknown_warning_option=yes
5730else
5731  xorg_cv_cc_flag_unknown_warning_option=no
5732fi
5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734fi
5735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5738	CFLAGS="$xorg_testset_save_CFLAGS"
5739fi
5740
5741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744	fi
5745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752/* end confdefs.h.  */
5753int i;
5754_ACEOF
5755if ac_fn_c_try_compile "$LINENO"; then :
5756  xorg_cv_cc_flag_unused_command_line_argument=yes
5757else
5758  xorg_cv_cc_flag_unused_command_line_argument=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5765	CFLAGS="$xorg_testset_save_CFLAGS"
5766fi
5767
5768found="no"
5769
5770	if test $found = "no" ; then
5771		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773		fi
5774
5775		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777		fi
5778
5779		CFLAGS="$CFLAGS -Wnested-externs"
5780
5781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5782$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5783		cacheid=xorg_cv_cc_flag__Wnested_externs
5784		if eval \${$cacheid+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788/* end confdefs.h.  */
5789int i;
5790int
5791main ()
5792{
5793
5794  ;
5795  return 0;
5796}
5797_ACEOF
5798if ac_fn_c_try_link "$LINENO"; then :
5799  eval $cacheid=yes
5800else
5801  eval $cacheid=no
5802fi
5803rm -f core conftest.err conftest.$ac_objext \
5804    conftest$ac_exeext conftest.$ac_ext
5805fi
5806
5807
5808		CFLAGS="$xorg_testset_save_CFLAGS"
5809
5810		eval supported=\$$cacheid
5811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5812$as_echo "$supported" >&6; }
5813		if test "$supported" = "yes" ; then
5814			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5815			found="yes"
5816		fi
5817	fi
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833xorg_testset_save_CFLAGS="$CFLAGS"
5834
5835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5840  $as_echo_n "(cached) " >&6
5841else
5842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h.  */
5844int i;
5845_ACEOF
5846if ac_fn_c_try_compile "$LINENO"; then :
5847  xorg_cv_cc_flag_unknown_warning_option=yes
5848else
5849  xorg_cv_cc_flag_unknown_warning_option=no
5850fi
5851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852fi
5853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5856	CFLAGS="$xorg_testset_save_CFLAGS"
5857fi
5858
5859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862	fi
5863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870/* end confdefs.h.  */
5871int i;
5872_ACEOF
5873if ac_fn_c_try_compile "$LINENO"; then :
5874  xorg_cv_cc_flag_unused_command_line_argument=yes
5875else
5876  xorg_cv_cc_flag_unused_command_line_argument=no
5877fi
5878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5883	CFLAGS="$xorg_testset_save_CFLAGS"
5884fi
5885
5886found="no"
5887
5888	if test $found = "no" ; then
5889		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5891		fi
5892
5893		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5895		fi
5896
5897		CFLAGS="$CFLAGS -Wbad-function-cast"
5898
5899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5900$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5901		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5902		if eval \${$cacheid+:} false; then :
5903  $as_echo_n "(cached) " >&6
5904else
5905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908int
5909main ()
5910{
5911
5912  ;
5913  return 0;
5914}
5915_ACEOF
5916if ac_fn_c_try_link "$LINENO"; then :
5917  eval $cacheid=yes
5918else
5919  eval $cacheid=no
5920fi
5921rm -f core conftest.err conftest.$ac_objext \
5922    conftest$ac_exeext conftest.$ac_ext
5923fi
5924
5925
5926		CFLAGS="$xorg_testset_save_CFLAGS"
5927
5928		eval supported=\$$cacheid
5929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5930$as_echo "$supported" >&6; }
5931		if test "$supported" = "yes" ; then
5932			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5933			found="yes"
5934		fi
5935	fi
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951xorg_testset_save_CFLAGS="$CFLAGS"
5952
5953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5958  $as_echo_n "(cached) " >&6
5959else
5960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962int i;
5963_ACEOF
5964if ac_fn_c_try_compile "$LINENO"; then :
5965  xorg_cv_cc_flag_unknown_warning_option=yes
5966else
5967  xorg_cv_cc_flag_unknown_warning_option=no
5968fi
5969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5974	CFLAGS="$xorg_testset_save_CFLAGS"
5975fi
5976
5977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980	fi
5981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5988/* end confdefs.h.  */
5989int i;
5990_ACEOF
5991if ac_fn_c_try_compile "$LINENO"; then :
5992  xorg_cv_cc_flag_unused_command_line_argument=yes
5993else
5994  xorg_cv_cc_flag_unused_command_line_argument=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6001	CFLAGS="$xorg_testset_save_CFLAGS"
6002fi
6003
6004found="no"
6005
6006	if test $found = "no" ; then
6007		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6009		fi
6010
6011		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6013		fi
6014
6015		CFLAGS="$CFLAGS -Wold-style-definition"
6016
6017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
6018$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
6019		cacheid=xorg_cv_cc_flag__Wold_style_definition
6020		if eval \${$cacheid+:} false; then :
6021  $as_echo_n "(cached) " >&6
6022else
6023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h.  */
6025int i;
6026int
6027main ()
6028{
6029
6030  ;
6031  return 0;
6032}
6033_ACEOF
6034if ac_fn_c_try_link "$LINENO"; then :
6035  eval $cacheid=yes
6036else
6037  eval $cacheid=no
6038fi
6039rm -f core conftest.err conftest.$ac_objext \
6040    conftest$ac_exeext conftest.$ac_ext
6041fi
6042
6043
6044		CFLAGS="$xorg_testset_save_CFLAGS"
6045
6046		eval supported=\$$cacheid
6047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6048$as_echo "$supported" >&6; }
6049		if test "$supported" = "yes" ; then
6050			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6051			found="yes"
6052		fi
6053	fi
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069xorg_testset_save_CFLAGS="$CFLAGS"
6070
6071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6076  $as_echo_n "(cached) " >&6
6077else
6078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079/* end confdefs.h.  */
6080int i;
6081_ACEOF
6082if ac_fn_c_try_compile "$LINENO"; then :
6083  xorg_cv_cc_flag_unknown_warning_option=yes
6084else
6085  xorg_cv_cc_flag_unknown_warning_option=no
6086fi
6087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088fi
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6092	CFLAGS="$xorg_testset_save_CFLAGS"
6093fi
6094
6095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6098	fi
6099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h.  */
6107int i;
6108_ACEOF
6109if ac_fn_c_try_compile "$LINENO"; then :
6110  xorg_cv_cc_flag_unused_command_line_argument=yes
6111else
6112  xorg_cv_cc_flag_unused_command_line_argument=no
6113fi
6114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6119	CFLAGS="$xorg_testset_save_CFLAGS"
6120fi
6121
6122found="no"
6123
6124	if test $found = "no" ; then
6125		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127		fi
6128
6129		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6131		fi
6132
6133		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6134
6135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6136$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6137		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6138		if eval \${$cacheid+:} false; then :
6139  $as_echo_n "(cached) " >&6
6140else
6141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143int i;
6144int
6145main ()
6146{
6147
6148  ;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_link "$LINENO"; then :
6153  eval $cacheid=yes
6154else
6155  eval $cacheid=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext \
6158    conftest$ac_exeext conftest.$ac_ext
6159fi
6160
6161
6162		CFLAGS="$xorg_testset_save_CFLAGS"
6163
6164		eval supported=\$$cacheid
6165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6166$as_echo "$supported" >&6; }
6167		if test "$supported" = "yes" ; then
6168			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6169			found="yes"
6170		fi
6171	fi
6172
6173
6174
6175
6176
6177# This chunk adds additional warnings that could catch undesired effects.
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191xorg_testset_save_CFLAGS="$CFLAGS"
6192
6193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6198  $as_echo_n "(cached) " >&6
6199else
6200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201/* end confdefs.h.  */
6202int i;
6203_ACEOF
6204if ac_fn_c_try_compile "$LINENO"; then :
6205  xorg_cv_cc_flag_unknown_warning_option=yes
6206else
6207  xorg_cv_cc_flag_unknown_warning_option=no
6208fi
6209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210fi
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6214	CFLAGS="$xorg_testset_save_CFLAGS"
6215fi
6216
6217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220	fi
6221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229int i;
6230_ACEOF
6231if ac_fn_c_try_compile "$LINENO"; then :
6232  xorg_cv_cc_flag_unused_command_line_argument=yes
6233else
6234  xorg_cv_cc_flag_unused_command_line_argument=no
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237fi
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6241	CFLAGS="$xorg_testset_save_CFLAGS"
6242fi
6243
6244found="no"
6245
6246	if test $found = "no" ; then
6247		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249		fi
6250
6251		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253		fi
6254
6255		CFLAGS="$CFLAGS -Wunused"
6256
6257		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6258$as_echo_n "checking if $CC supports-Wunused... " >&6; }
6259		cacheid=xorg_cv_cc_flag__Wunused
6260		if eval \${$cacheid+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264/* end confdefs.h.  */
6265int i;
6266int
6267main ()
6268{
6269
6270  ;
6271  return 0;
6272}
6273_ACEOF
6274if ac_fn_c_try_link "$LINENO"; then :
6275  eval $cacheid=yes
6276else
6277  eval $cacheid=no
6278fi
6279rm -f core conftest.err conftest.$ac_objext \
6280    conftest$ac_exeext conftest.$ac_ext
6281fi
6282
6283
6284		CFLAGS="$xorg_testset_save_CFLAGS"
6285
6286		eval supported=\$$cacheid
6287		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6288$as_echo "$supported" >&6; }
6289		if test "$supported" = "yes" ; then
6290			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6291			found="yes"
6292		fi
6293	fi
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309xorg_testset_save_CFLAGS="$CFLAGS"
6310
6311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6316  $as_echo_n "(cached) " >&6
6317else
6318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319/* end confdefs.h.  */
6320int i;
6321_ACEOF
6322if ac_fn_c_try_compile "$LINENO"; then :
6323  xorg_cv_cc_flag_unknown_warning_option=yes
6324else
6325  xorg_cv_cc_flag_unknown_warning_option=no
6326fi
6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6332	CFLAGS="$xorg_testset_save_CFLAGS"
6333fi
6334
6335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338	fi
6339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6343  $as_echo_n "(cached) " >&6
6344else
6345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346/* end confdefs.h.  */
6347int i;
6348_ACEOF
6349if ac_fn_c_try_compile "$LINENO"; then :
6350  xorg_cv_cc_flag_unused_command_line_argument=yes
6351else
6352  xorg_cv_cc_flag_unused_command_line_argument=no
6353fi
6354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355fi
6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359	CFLAGS="$xorg_testset_save_CFLAGS"
6360fi
6361
6362found="no"
6363
6364	if test $found = "no" ; then
6365		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367		fi
6368
6369		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371		fi
6372
6373		CFLAGS="$CFLAGS -Wuninitialized"
6374
6375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6376$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6377		cacheid=xorg_cv_cc_flag__Wuninitialized
6378		if eval \${$cacheid+:} false; then :
6379  $as_echo_n "(cached) " >&6
6380else
6381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h.  */
6383int i;
6384int
6385main ()
6386{
6387
6388  ;
6389  return 0;
6390}
6391_ACEOF
6392if ac_fn_c_try_link "$LINENO"; then :
6393  eval $cacheid=yes
6394else
6395  eval $cacheid=no
6396fi
6397rm -f core conftest.err conftest.$ac_objext \
6398    conftest$ac_exeext conftest.$ac_ext
6399fi
6400
6401
6402		CFLAGS="$xorg_testset_save_CFLAGS"
6403
6404		eval supported=\$$cacheid
6405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6406$as_echo "$supported" >&6; }
6407		if test "$supported" = "yes" ; then
6408			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6409			found="yes"
6410		fi
6411	fi
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427xorg_testset_save_CFLAGS="$CFLAGS"
6428
6429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6434  $as_echo_n "(cached) " >&6
6435else
6436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h.  */
6438int i;
6439_ACEOF
6440if ac_fn_c_try_compile "$LINENO"; then :
6441  xorg_cv_cc_flag_unknown_warning_option=yes
6442else
6443  xorg_cv_cc_flag_unknown_warning_option=no
6444fi
6445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446fi
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6450	CFLAGS="$xorg_testset_save_CFLAGS"
6451fi
6452
6453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456	fi
6457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6461  $as_echo_n "(cached) " >&6
6462else
6463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464/* end confdefs.h.  */
6465int i;
6466_ACEOF
6467if ac_fn_c_try_compile "$LINENO"; then :
6468  xorg_cv_cc_flag_unused_command_line_argument=yes
6469else
6470  xorg_cv_cc_flag_unused_command_line_argument=no
6471fi
6472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473fi
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477	CFLAGS="$xorg_testset_save_CFLAGS"
6478fi
6479
6480found="no"
6481
6482	if test $found = "no" ; then
6483		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485		fi
6486
6487		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489		fi
6490
6491		CFLAGS="$CFLAGS -Wshadow"
6492
6493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6494$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6495		cacheid=xorg_cv_cc_flag__Wshadow
6496		if eval \${$cacheid+:} false; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h.  */
6501int i;
6502int
6503main ()
6504{
6505
6506  ;
6507  return 0;
6508}
6509_ACEOF
6510if ac_fn_c_try_link "$LINENO"; then :
6511  eval $cacheid=yes
6512else
6513  eval $cacheid=no
6514fi
6515rm -f core conftest.err conftest.$ac_objext \
6516    conftest$ac_exeext conftest.$ac_ext
6517fi
6518
6519
6520		CFLAGS="$xorg_testset_save_CFLAGS"
6521
6522		eval supported=\$$cacheid
6523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6524$as_echo "$supported" >&6; }
6525		if test "$supported" = "yes" ; then
6526			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6527			found="yes"
6528		fi
6529	fi
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545xorg_testset_save_CFLAGS="$CFLAGS"
6546
6547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6552  $as_echo_n "(cached) " >&6
6553else
6554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h.  */
6556int i;
6557_ACEOF
6558if ac_fn_c_try_compile "$LINENO"; then :
6559  xorg_cv_cc_flag_unknown_warning_option=yes
6560else
6561  xorg_cv_cc_flag_unknown_warning_option=no
6562fi
6563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564fi
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6568	CFLAGS="$xorg_testset_save_CFLAGS"
6569fi
6570
6571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574	fi
6575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6579  $as_echo_n "(cached) " >&6
6580else
6581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h.  */
6583int i;
6584_ACEOF
6585if ac_fn_c_try_compile "$LINENO"; then :
6586  xorg_cv_cc_flag_unused_command_line_argument=yes
6587else
6588  xorg_cv_cc_flag_unused_command_line_argument=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591fi
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6595	CFLAGS="$xorg_testset_save_CFLAGS"
6596fi
6597
6598found="no"
6599
6600	if test $found = "no" ; then
6601		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6603		fi
6604
6605		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6607		fi
6608
6609		CFLAGS="$CFLAGS -Wcast-qual"
6610
6611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6612$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6613		cacheid=xorg_cv_cc_flag__Wcast_qual
6614		if eval \${$cacheid+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h.  */
6619int i;
6620int
6621main ()
6622{
6623
6624  ;
6625  return 0;
6626}
6627_ACEOF
6628if ac_fn_c_try_link "$LINENO"; then :
6629  eval $cacheid=yes
6630else
6631  eval $cacheid=no
6632fi
6633rm -f core conftest.err conftest.$ac_objext \
6634    conftest$ac_exeext conftest.$ac_ext
6635fi
6636
6637
6638		CFLAGS="$xorg_testset_save_CFLAGS"
6639
6640		eval supported=\$$cacheid
6641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6642$as_echo "$supported" >&6; }
6643		if test "$supported" = "yes" ; then
6644			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6645			found="yes"
6646		fi
6647	fi
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663xorg_testset_save_CFLAGS="$CFLAGS"
6664
6665if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6666	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6668$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6669if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6670  $as_echo_n "(cached) " >&6
6671else
6672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673/* end confdefs.h.  */
6674int i;
6675_ACEOF
6676if ac_fn_c_try_compile "$LINENO"; then :
6677  xorg_cv_cc_flag_unknown_warning_option=yes
6678else
6679  xorg_cv_cc_flag_unknown_warning_option=no
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682fi
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6684$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6686	CFLAGS="$xorg_testset_save_CFLAGS"
6687fi
6688
6689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692	fi
6693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6694	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6695$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6696if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6697  $as_echo_n "(cached) " >&6
6698else
6699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h.  */
6701int i;
6702_ACEOF
6703if ac_fn_c_try_compile "$LINENO"; then :
6704  xorg_cv_cc_flag_unused_command_line_argument=yes
6705else
6706  xorg_cv_cc_flag_unused_command_line_argument=no
6707fi
6708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6709fi
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6711$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6712	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6713	CFLAGS="$xorg_testset_save_CFLAGS"
6714fi
6715
6716found="no"
6717
6718	if test $found = "no" ; then
6719		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6720			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6721		fi
6722
6723		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6724			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6725		fi
6726
6727		CFLAGS="$CFLAGS -Wmissing-noreturn"
6728
6729		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6730$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6731		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6732		if eval \${$cacheid+:} false; then :
6733  $as_echo_n "(cached) " >&6
6734else
6735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h.  */
6737int i;
6738int
6739main ()
6740{
6741
6742  ;
6743  return 0;
6744}
6745_ACEOF
6746if ac_fn_c_try_link "$LINENO"; then :
6747  eval $cacheid=yes
6748else
6749  eval $cacheid=no
6750fi
6751rm -f core conftest.err conftest.$ac_objext \
6752    conftest$ac_exeext conftest.$ac_ext
6753fi
6754
6755
6756		CFLAGS="$xorg_testset_save_CFLAGS"
6757
6758		eval supported=\$$cacheid
6759		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6760$as_echo "$supported" >&6; }
6761		if test "$supported" = "yes" ; then
6762			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6763			found="yes"
6764		fi
6765	fi
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781xorg_testset_save_CFLAGS="$CFLAGS"
6782
6783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6784	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h.  */
6792int i;
6793_ACEOF
6794if ac_fn_c_try_compile "$LINENO"; then :
6795  xorg_cv_cc_flag_unknown_warning_option=yes
6796else
6797  xorg_cv_cc_flag_unknown_warning_option=no
6798fi
6799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800fi
6801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6804	CFLAGS="$xorg_testset_save_CFLAGS"
6805fi
6806
6807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6810	fi
6811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6812	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6815  $as_echo_n "(cached) " >&6
6816else
6817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818/* end confdefs.h.  */
6819int i;
6820_ACEOF
6821if ac_fn_c_try_compile "$LINENO"; then :
6822  xorg_cv_cc_flag_unused_command_line_argument=yes
6823else
6824  xorg_cv_cc_flag_unused_command_line_argument=no
6825fi
6826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827fi
6828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6830	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6831	CFLAGS="$xorg_testset_save_CFLAGS"
6832fi
6833
6834found="no"
6835
6836	if test $found = "no" ; then
6837		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6838			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6839		fi
6840
6841		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6842			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6843		fi
6844
6845		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6846
6847		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6848$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6849		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6850		if eval \${$cacheid+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854/* end confdefs.h.  */
6855int i;
6856int
6857main ()
6858{
6859
6860  ;
6861  return 0;
6862}
6863_ACEOF
6864if ac_fn_c_try_link "$LINENO"; then :
6865  eval $cacheid=yes
6866else
6867  eval $cacheid=no
6868fi
6869rm -f core conftest.err conftest.$ac_objext \
6870    conftest$ac_exeext conftest.$ac_ext
6871fi
6872
6873
6874		CFLAGS="$xorg_testset_save_CFLAGS"
6875
6876		eval supported=\$$cacheid
6877		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6878$as_echo "$supported" >&6; }
6879		if test "$supported" = "yes" ; then
6880			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6881			found="yes"
6882		fi
6883	fi
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899xorg_testset_save_CFLAGS="$CFLAGS"
6900
6901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6906  $as_echo_n "(cached) " >&6
6907else
6908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909/* end confdefs.h.  */
6910int i;
6911_ACEOF
6912if ac_fn_c_try_compile "$LINENO"; then :
6913  xorg_cv_cc_flag_unknown_warning_option=yes
6914else
6915  xorg_cv_cc_flag_unknown_warning_option=no
6916fi
6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918fi
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6922	CFLAGS="$xorg_testset_save_CFLAGS"
6923fi
6924
6925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6928	fi
6929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6933  $as_echo_n "(cached) " >&6
6934else
6935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6936/* end confdefs.h.  */
6937int i;
6938_ACEOF
6939if ac_fn_c_try_compile "$LINENO"; then :
6940  xorg_cv_cc_flag_unused_command_line_argument=yes
6941else
6942  xorg_cv_cc_flag_unused_command_line_argument=no
6943fi
6944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945fi
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6949	CFLAGS="$xorg_testset_save_CFLAGS"
6950fi
6951
6952found="no"
6953
6954	if test $found = "no" ; then
6955		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957		fi
6958
6959		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6961		fi
6962
6963		CFLAGS="$CFLAGS -Wredundant-decls"
6964
6965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6966$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6967		cacheid=xorg_cv_cc_flag__Wredundant_decls
6968		if eval \${$cacheid+:} false; then :
6969  $as_echo_n "(cached) " >&6
6970else
6971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h.  */
6973int i;
6974int
6975main ()
6976{
6977
6978  ;
6979  return 0;
6980}
6981_ACEOF
6982if ac_fn_c_try_link "$LINENO"; then :
6983  eval $cacheid=yes
6984else
6985  eval $cacheid=no
6986fi
6987rm -f core conftest.err conftest.$ac_objext \
6988    conftest$ac_exeext conftest.$ac_ext
6989fi
6990
6991
6992		CFLAGS="$xorg_testset_save_CFLAGS"
6993
6994		eval supported=\$$cacheid
6995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6996$as_echo "$supported" >&6; }
6997		if test "$supported" = "yes" ; then
6998			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6999			found="yes"
7000		fi
7001	fi
7002
7003
7004
7005# These are currently disabled because they are noisy.  They will be enabled
7006# in the future once the codebase is sufficiently modernized to silence
7007# them.  For now, I don't want them to drown out the other warnings.
7008# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
7009# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7010# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7011
7012# Turn some warnings into errors, so we don't accidently get successful builds
7013# when there are problems that should be fixed.
7014
7015if test "x$SELECTIVE_WERROR" = "xyes" ; then
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029xorg_testset_save_CFLAGS="$CFLAGS"
7030
7031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7032	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7036  $as_echo_n "(cached) " >&6
7037else
7038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7039/* end confdefs.h.  */
7040int i;
7041_ACEOF
7042if ac_fn_c_try_compile "$LINENO"; then :
7043  xorg_cv_cc_flag_unknown_warning_option=yes
7044else
7045  xorg_cv_cc_flag_unknown_warning_option=no
7046fi
7047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7048fi
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7052	CFLAGS="$xorg_testset_save_CFLAGS"
7053fi
7054
7055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7058	fi
7059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7063  $as_echo_n "(cached) " >&6
7064else
7065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h.  */
7067int i;
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"; then :
7070  xorg_cv_cc_flag_unused_command_line_argument=yes
7071else
7072  xorg_cv_cc_flag_unused_command_line_argument=no
7073fi
7074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075fi
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7078	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7079	CFLAGS="$xorg_testset_save_CFLAGS"
7080fi
7081
7082found="no"
7083
7084	if test $found = "no" ; then
7085		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7086			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087		fi
7088
7089		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7090			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7091		fi
7092
7093		CFLAGS="$CFLAGS -Werror=implicit"
7094
7095		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7096$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7097		cacheid=xorg_cv_cc_flag__Werror_implicit
7098		if eval \${$cacheid+:} false; then :
7099  $as_echo_n "(cached) " >&6
7100else
7101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h.  */
7103int i;
7104int
7105main ()
7106{
7107
7108  ;
7109  return 0;
7110}
7111_ACEOF
7112if ac_fn_c_try_link "$LINENO"; then :
7113  eval $cacheid=yes
7114else
7115  eval $cacheid=no
7116fi
7117rm -f core conftest.err conftest.$ac_objext \
7118    conftest$ac_exeext conftest.$ac_ext
7119fi
7120
7121
7122		CFLAGS="$xorg_testset_save_CFLAGS"
7123
7124		eval supported=\$$cacheid
7125		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7126$as_echo "$supported" >&6; }
7127		if test "$supported" = "yes" ; then
7128			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7129			found="yes"
7130		fi
7131	fi
7132
7133	if test $found = "no" ; then
7134		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136		fi
7137
7138		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140		fi
7141
7142		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7143
7144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7145$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7146		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7147		if eval \${$cacheid+:} false; then :
7148  $as_echo_n "(cached) " >&6
7149else
7150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151/* end confdefs.h.  */
7152int i;
7153int
7154main ()
7155{
7156
7157  ;
7158  return 0;
7159}
7160_ACEOF
7161if ac_fn_c_try_link "$LINENO"; then :
7162  eval $cacheid=yes
7163else
7164  eval $cacheid=no
7165fi
7166rm -f core conftest.err conftest.$ac_objext \
7167    conftest$ac_exeext conftest.$ac_ext
7168fi
7169
7170
7171		CFLAGS="$xorg_testset_save_CFLAGS"
7172
7173		eval supported=\$$cacheid
7174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7175$as_echo "$supported" >&6; }
7176		if test "$supported" = "yes" ; then
7177			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7178			found="yes"
7179		fi
7180	fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196xorg_testset_save_CFLAGS="$CFLAGS"
7197
7198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7203  $as_echo_n "(cached) " >&6
7204else
7205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h.  */
7207int i;
7208_ACEOF
7209if ac_fn_c_try_compile "$LINENO"; then :
7210  xorg_cv_cc_flag_unknown_warning_option=yes
7211else
7212  xorg_cv_cc_flag_unknown_warning_option=no
7213fi
7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215fi
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7219	CFLAGS="$xorg_testset_save_CFLAGS"
7220fi
7221
7222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225	fi
7226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7230  $as_echo_n "(cached) " >&6
7231else
7232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233/* end confdefs.h.  */
7234int i;
7235_ACEOF
7236if ac_fn_c_try_compile "$LINENO"; then :
7237  xorg_cv_cc_flag_unused_command_line_argument=yes
7238else
7239  xorg_cv_cc_flag_unused_command_line_argument=no
7240fi
7241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242fi
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7246	CFLAGS="$xorg_testset_save_CFLAGS"
7247fi
7248
7249found="no"
7250
7251	if test $found = "no" ; then
7252		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254		fi
7255
7256		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258		fi
7259
7260		CFLAGS="$CFLAGS -Werror=nonnull"
7261
7262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7263$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7264		cacheid=xorg_cv_cc_flag__Werror_nonnull
7265		if eval \${$cacheid+:} false; then :
7266  $as_echo_n "(cached) " >&6
7267else
7268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270int i;
7271int
7272main ()
7273{
7274
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279if ac_fn_c_try_link "$LINENO"; then :
7280  eval $cacheid=yes
7281else
7282  eval $cacheid=no
7283fi
7284rm -f core conftest.err conftest.$ac_objext \
7285    conftest$ac_exeext conftest.$ac_ext
7286fi
7287
7288
7289		CFLAGS="$xorg_testset_save_CFLAGS"
7290
7291		eval supported=\$$cacheid
7292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7293$as_echo "$supported" >&6; }
7294		if test "$supported" = "yes" ; then
7295			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7296			found="yes"
7297		fi
7298	fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314xorg_testset_save_CFLAGS="$CFLAGS"
7315
7316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h.  */
7325int i;
7326_ACEOF
7327if ac_fn_c_try_compile "$LINENO"; then :
7328  xorg_cv_cc_flag_unknown_warning_option=yes
7329else
7330  xorg_cv_cc_flag_unknown_warning_option=no
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333fi
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7337	CFLAGS="$xorg_testset_save_CFLAGS"
7338fi
7339
7340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343	fi
7344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7348  $as_echo_n "(cached) " >&6
7349else
7350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351/* end confdefs.h.  */
7352int i;
7353_ACEOF
7354if ac_fn_c_try_compile "$LINENO"; then :
7355  xorg_cv_cc_flag_unused_command_line_argument=yes
7356else
7357  xorg_cv_cc_flag_unused_command_line_argument=no
7358fi
7359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360fi
7361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7364	CFLAGS="$xorg_testset_save_CFLAGS"
7365fi
7366
7367found="no"
7368
7369	if test $found = "no" ; then
7370		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372		fi
7373
7374		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7376		fi
7377
7378		CFLAGS="$CFLAGS -Werror=init-self"
7379
7380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7381$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7382		cacheid=xorg_cv_cc_flag__Werror_init_self
7383		if eval \${$cacheid+:} false; then :
7384  $as_echo_n "(cached) " >&6
7385else
7386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387/* end confdefs.h.  */
7388int i;
7389int
7390main ()
7391{
7392
7393  ;
7394  return 0;
7395}
7396_ACEOF
7397if ac_fn_c_try_link "$LINENO"; then :
7398  eval $cacheid=yes
7399else
7400  eval $cacheid=no
7401fi
7402rm -f core conftest.err conftest.$ac_objext \
7403    conftest$ac_exeext conftest.$ac_ext
7404fi
7405
7406
7407		CFLAGS="$xorg_testset_save_CFLAGS"
7408
7409		eval supported=\$$cacheid
7410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7411$as_echo "$supported" >&6; }
7412		if test "$supported" = "yes" ; then
7413			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7414			found="yes"
7415		fi
7416	fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432xorg_testset_save_CFLAGS="$CFLAGS"
7433
7434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442/* end confdefs.h.  */
7443int i;
7444_ACEOF
7445if ac_fn_c_try_compile "$LINENO"; then :
7446  xorg_cv_cc_flag_unknown_warning_option=yes
7447else
7448  xorg_cv_cc_flag_unknown_warning_option=no
7449fi
7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451fi
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455	CFLAGS="$xorg_testset_save_CFLAGS"
7456fi
7457
7458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461	fi
7462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7466  $as_echo_n "(cached) " >&6
7467else
7468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469/* end confdefs.h.  */
7470int i;
7471_ACEOF
7472if ac_fn_c_try_compile "$LINENO"; then :
7473  xorg_cv_cc_flag_unused_command_line_argument=yes
7474else
7475  xorg_cv_cc_flag_unused_command_line_argument=no
7476fi
7477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478fi
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7482	CFLAGS="$xorg_testset_save_CFLAGS"
7483fi
7484
7485found="no"
7486
7487	if test $found = "no" ; then
7488		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490		fi
7491
7492		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494		fi
7495
7496		CFLAGS="$CFLAGS -Werror=main"
7497
7498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7499$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7500		cacheid=xorg_cv_cc_flag__Werror_main
7501		if eval \${$cacheid+:} false; then :
7502  $as_echo_n "(cached) " >&6
7503else
7504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506int i;
7507int
7508main ()
7509{
7510
7511  ;
7512  return 0;
7513}
7514_ACEOF
7515if ac_fn_c_try_link "$LINENO"; then :
7516  eval $cacheid=yes
7517else
7518  eval $cacheid=no
7519fi
7520rm -f core conftest.err conftest.$ac_objext \
7521    conftest$ac_exeext conftest.$ac_ext
7522fi
7523
7524
7525		CFLAGS="$xorg_testset_save_CFLAGS"
7526
7527		eval supported=\$$cacheid
7528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7529$as_echo "$supported" >&6; }
7530		if test "$supported" = "yes" ; then
7531			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7532			found="yes"
7533		fi
7534	fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550xorg_testset_save_CFLAGS="$CFLAGS"
7551
7552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560/* end confdefs.h.  */
7561int i;
7562_ACEOF
7563if ac_fn_c_try_compile "$LINENO"; then :
7564  xorg_cv_cc_flag_unknown_warning_option=yes
7565else
7566  xorg_cv_cc_flag_unknown_warning_option=no
7567fi
7568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569fi
7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7573	CFLAGS="$xorg_testset_save_CFLAGS"
7574fi
7575
7576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579	fi
7580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587/* end confdefs.h.  */
7588int i;
7589_ACEOF
7590if ac_fn_c_try_compile "$LINENO"; then :
7591  xorg_cv_cc_flag_unused_command_line_argument=yes
7592else
7593  xorg_cv_cc_flag_unused_command_line_argument=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7600	CFLAGS="$xorg_testset_save_CFLAGS"
7601fi
7602
7603found="no"
7604
7605	if test $found = "no" ; then
7606		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608		fi
7609
7610		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7612		fi
7613
7614		CFLAGS="$CFLAGS -Werror=missing-braces"
7615
7616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7617$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7618		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7619		if eval \${$cacheid+:} false; then :
7620  $as_echo_n "(cached) " >&6
7621else
7622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623/* end confdefs.h.  */
7624int i;
7625int
7626main ()
7627{
7628
7629  ;
7630  return 0;
7631}
7632_ACEOF
7633if ac_fn_c_try_link "$LINENO"; then :
7634  eval $cacheid=yes
7635else
7636  eval $cacheid=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext \
7639    conftest$ac_exeext conftest.$ac_ext
7640fi
7641
7642
7643		CFLAGS="$xorg_testset_save_CFLAGS"
7644
7645		eval supported=\$$cacheid
7646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7647$as_echo "$supported" >&6; }
7648		if test "$supported" = "yes" ; then
7649			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7650			found="yes"
7651		fi
7652	fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668xorg_testset_save_CFLAGS="$CFLAGS"
7669
7670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7675  $as_echo_n "(cached) " >&6
7676else
7677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678/* end confdefs.h.  */
7679int i;
7680_ACEOF
7681if ac_fn_c_try_compile "$LINENO"; then :
7682  xorg_cv_cc_flag_unknown_warning_option=yes
7683else
7684  xorg_cv_cc_flag_unknown_warning_option=no
7685fi
7686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687fi
7688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7691	CFLAGS="$xorg_testset_save_CFLAGS"
7692fi
7693
7694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697	fi
7698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7702  $as_echo_n "(cached) " >&6
7703else
7704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705/* end confdefs.h.  */
7706int i;
7707_ACEOF
7708if ac_fn_c_try_compile "$LINENO"; then :
7709  xorg_cv_cc_flag_unused_command_line_argument=yes
7710else
7711  xorg_cv_cc_flag_unused_command_line_argument=no
7712fi
7713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714fi
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7718	CFLAGS="$xorg_testset_save_CFLAGS"
7719fi
7720
7721found="no"
7722
7723	if test $found = "no" ; then
7724		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726		fi
7727
7728		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7730		fi
7731
7732		CFLAGS="$CFLAGS -Werror=sequence-point"
7733
7734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7735$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7736		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7737		if eval \${$cacheid+:} false; then :
7738  $as_echo_n "(cached) " >&6
7739else
7740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741/* end confdefs.h.  */
7742int i;
7743int
7744main ()
7745{
7746
7747  ;
7748  return 0;
7749}
7750_ACEOF
7751if ac_fn_c_try_link "$LINENO"; then :
7752  eval $cacheid=yes
7753else
7754  eval $cacheid=no
7755fi
7756rm -f core conftest.err conftest.$ac_objext \
7757    conftest$ac_exeext conftest.$ac_ext
7758fi
7759
7760
7761		CFLAGS="$xorg_testset_save_CFLAGS"
7762
7763		eval supported=\$$cacheid
7764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7765$as_echo "$supported" >&6; }
7766		if test "$supported" = "yes" ; then
7767			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7768			found="yes"
7769		fi
7770	fi
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786xorg_testset_save_CFLAGS="$CFLAGS"
7787
7788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7793  $as_echo_n "(cached) " >&6
7794else
7795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796/* end confdefs.h.  */
7797int i;
7798_ACEOF
7799if ac_fn_c_try_compile "$LINENO"; then :
7800  xorg_cv_cc_flag_unknown_warning_option=yes
7801else
7802  xorg_cv_cc_flag_unknown_warning_option=no
7803fi
7804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7809	CFLAGS="$xorg_testset_save_CFLAGS"
7810fi
7811
7812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815	fi
7816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7820  $as_echo_n "(cached) " >&6
7821else
7822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7823/* end confdefs.h.  */
7824int i;
7825_ACEOF
7826if ac_fn_c_try_compile "$LINENO"; then :
7827  xorg_cv_cc_flag_unused_command_line_argument=yes
7828else
7829  xorg_cv_cc_flag_unused_command_line_argument=no
7830fi
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7836	CFLAGS="$xorg_testset_save_CFLAGS"
7837fi
7838
7839found="no"
7840
7841	if test $found = "no" ; then
7842		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844		fi
7845
7846		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7848		fi
7849
7850		CFLAGS="$CFLAGS -Werror=return-type"
7851
7852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7853$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7854		cacheid=xorg_cv_cc_flag__Werror_return_type
7855		if eval \${$cacheid+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7859/* end confdefs.h.  */
7860int i;
7861int
7862main ()
7863{
7864
7865  ;
7866  return 0;
7867}
7868_ACEOF
7869if ac_fn_c_try_link "$LINENO"; then :
7870  eval $cacheid=yes
7871else
7872  eval $cacheid=no
7873fi
7874rm -f core conftest.err conftest.$ac_objext \
7875    conftest$ac_exeext conftest.$ac_ext
7876fi
7877
7878
7879		CFLAGS="$xorg_testset_save_CFLAGS"
7880
7881		eval supported=\$$cacheid
7882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7883$as_echo "$supported" >&6; }
7884		if test "$supported" = "yes" ; then
7885			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7886			found="yes"
7887		fi
7888	fi
7889
7890	if test $found = "no" ; then
7891		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893		fi
7894
7895		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7897		fi
7898
7899		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7900
7901		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7902$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7903		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7904		if eval \${$cacheid+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h.  */
7909int i;
7910int
7911main ()
7912{
7913
7914  ;
7915  return 0;
7916}
7917_ACEOF
7918if ac_fn_c_try_link "$LINENO"; then :
7919  eval $cacheid=yes
7920else
7921  eval $cacheid=no
7922fi
7923rm -f core conftest.err conftest.$ac_objext \
7924    conftest$ac_exeext conftest.$ac_ext
7925fi
7926
7927
7928		CFLAGS="$xorg_testset_save_CFLAGS"
7929
7930		eval supported=\$$cacheid
7931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7932$as_echo "$supported" >&6; }
7933		if test "$supported" = "yes" ; then
7934			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7935			found="yes"
7936		fi
7937	fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953xorg_testset_save_CFLAGS="$CFLAGS"
7954
7955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7956	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7960  $as_echo_n "(cached) " >&6
7961else
7962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963/* end confdefs.h.  */
7964int i;
7965_ACEOF
7966if ac_fn_c_try_compile "$LINENO"; then :
7967  xorg_cv_cc_flag_unknown_warning_option=yes
7968else
7969  xorg_cv_cc_flag_unknown_warning_option=no
7970fi
7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972fi
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7976	CFLAGS="$xorg_testset_save_CFLAGS"
7977fi
7978
7979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982	fi
7983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7987  $as_echo_n "(cached) " >&6
7988else
7989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990/* end confdefs.h.  */
7991int i;
7992_ACEOF
7993if ac_fn_c_try_compile "$LINENO"; then :
7994  xorg_cv_cc_flag_unused_command_line_argument=yes
7995else
7996  xorg_cv_cc_flag_unused_command_line_argument=no
7997fi
7998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999fi
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8002	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8003	CFLAGS="$xorg_testset_save_CFLAGS"
8004fi
8005
8006found="no"
8007
8008	if test $found = "no" ; then
8009		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8011		fi
8012
8013		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8015		fi
8016
8017		CFLAGS="$CFLAGS -Werror=trigraphs"
8018
8019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
8020$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
8021		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8022		if eval \${$cacheid+:} false; then :
8023  $as_echo_n "(cached) " >&6
8024else
8025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027int i;
8028int
8029main ()
8030{
8031
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036if ac_fn_c_try_link "$LINENO"; then :
8037  eval $cacheid=yes
8038else
8039  eval $cacheid=no
8040fi
8041rm -f core conftest.err conftest.$ac_objext \
8042    conftest$ac_exeext conftest.$ac_ext
8043fi
8044
8045
8046		CFLAGS="$xorg_testset_save_CFLAGS"
8047
8048		eval supported=\$$cacheid
8049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8050$as_echo "$supported" >&6; }
8051		if test "$supported" = "yes" ; then
8052			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8053			found="yes"
8054		fi
8055	fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071xorg_testset_save_CFLAGS="$CFLAGS"
8072
8073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8078  $as_echo_n "(cached) " >&6
8079else
8080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081/* end confdefs.h.  */
8082int i;
8083_ACEOF
8084if ac_fn_c_try_compile "$LINENO"; then :
8085  xorg_cv_cc_flag_unknown_warning_option=yes
8086else
8087  xorg_cv_cc_flag_unknown_warning_option=no
8088fi
8089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090fi
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8094	CFLAGS="$xorg_testset_save_CFLAGS"
8095fi
8096
8097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100	fi
8101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8105  $as_echo_n "(cached) " >&6
8106else
8107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110_ACEOF
8111if ac_fn_c_try_compile "$LINENO"; then :
8112  xorg_cv_cc_flag_unused_command_line_argument=yes
8113else
8114  xorg_cv_cc_flag_unused_command_line_argument=no
8115fi
8116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117fi
8118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8121	CFLAGS="$xorg_testset_save_CFLAGS"
8122fi
8123
8124found="no"
8125
8126	if test $found = "no" ; then
8127		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129		fi
8130
8131		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133		fi
8134
8135		CFLAGS="$CFLAGS -Werror=array-bounds"
8136
8137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8138$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8139		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8140		if eval \${$cacheid+:} false; then :
8141  $as_echo_n "(cached) " >&6
8142else
8143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145int i;
8146int
8147main ()
8148{
8149
8150  ;
8151  return 0;
8152}
8153_ACEOF
8154if ac_fn_c_try_link "$LINENO"; then :
8155  eval $cacheid=yes
8156else
8157  eval $cacheid=no
8158fi
8159rm -f core conftest.err conftest.$ac_objext \
8160    conftest$ac_exeext conftest.$ac_ext
8161fi
8162
8163
8164		CFLAGS="$xorg_testset_save_CFLAGS"
8165
8166		eval supported=\$$cacheid
8167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8168$as_echo "$supported" >&6; }
8169		if test "$supported" = "yes" ; then
8170			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8171			found="yes"
8172		fi
8173	fi
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189xorg_testset_save_CFLAGS="$CFLAGS"
8190
8191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8196  $as_echo_n "(cached) " >&6
8197else
8198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199/* end confdefs.h.  */
8200int i;
8201_ACEOF
8202if ac_fn_c_try_compile "$LINENO"; then :
8203  xorg_cv_cc_flag_unknown_warning_option=yes
8204else
8205  xorg_cv_cc_flag_unknown_warning_option=no
8206fi
8207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208fi
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8212	CFLAGS="$xorg_testset_save_CFLAGS"
8213fi
8214
8215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218	fi
8219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8223  $as_echo_n "(cached) " >&6
8224else
8225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226/* end confdefs.h.  */
8227int i;
8228_ACEOF
8229if ac_fn_c_try_compile "$LINENO"; then :
8230  xorg_cv_cc_flag_unused_command_line_argument=yes
8231else
8232  xorg_cv_cc_flag_unused_command_line_argument=no
8233fi
8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235fi
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8238	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8239	CFLAGS="$xorg_testset_save_CFLAGS"
8240fi
8241
8242found="no"
8243
8244	if test $found = "no" ; then
8245		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8246			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8247		fi
8248
8249		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8250			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8251		fi
8252
8253		CFLAGS="$CFLAGS -Werror=write-strings"
8254
8255		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8256$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8257		cacheid=xorg_cv_cc_flag__Werror_write_strings
8258		if eval \${$cacheid+:} false; then :
8259  $as_echo_n "(cached) " >&6
8260else
8261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h.  */
8263int i;
8264int
8265main ()
8266{
8267
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272if ac_fn_c_try_link "$LINENO"; then :
8273  eval $cacheid=yes
8274else
8275  eval $cacheid=no
8276fi
8277rm -f core conftest.err conftest.$ac_objext \
8278    conftest$ac_exeext conftest.$ac_ext
8279fi
8280
8281
8282		CFLAGS="$xorg_testset_save_CFLAGS"
8283
8284		eval supported=\$$cacheid
8285		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8286$as_echo "$supported" >&6; }
8287		if test "$supported" = "yes" ; then
8288			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8289			found="yes"
8290		fi
8291	fi
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307xorg_testset_save_CFLAGS="$CFLAGS"
8308
8309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8310	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317/* end confdefs.h.  */
8318int i;
8319_ACEOF
8320if ac_fn_c_try_compile "$LINENO"; then :
8321  xorg_cv_cc_flag_unknown_warning_option=yes
8322else
8323  xorg_cv_cc_flag_unknown_warning_option=no
8324fi
8325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326fi
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8329	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8330	CFLAGS="$xorg_testset_save_CFLAGS"
8331fi
8332
8333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8334	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8335		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336	fi
8337	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344/* end confdefs.h.  */
8345int i;
8346_ACEOF
8347if ac_fn_c_try_compile "$LINENO"; then :
8348  xorg_cv_cc_flag_unused_command_line_argument=yes
8349else
8350  xorg_cv_cc_flag_unused_command_line_argument=no
8351fi
8352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353fi
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8356	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8357	CFLAGS="$xorg_testset_save_CFLAGS"
8358fi
8359
8360found="no"
8361
8362	if test $found = "no" ; then
8363		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8364			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8365		fi
8366
8367		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8368			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8369		fi
8370
8371		CFLAGS="$CFLAGS -Werror=address"
8372
8373		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8374$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8375		cacheid=xorg_cv_cc_flag__Werror_address
8376		if eval \${$cacheid+:} false; then :
8377  $as_echo_n "(cached) " >&6
8378else
8379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380/* end confdefs.h.  */
8381int i;
8382int
8383main ()
8384{
8385
8386  ;
8387  return 0;
8388}
8389_ACEOF
8390if ac_fn_c_try_link "$LINENO"; then :
8391  eval $cacheid=yes
8392else
8393  eval $cacheid=no
8394fi
8395rm -f core conftest.err conftest.$ac_objext \
8396    conftest$ac_exeext conftest.$ac_ext
8397fi
8398
8399
8400		CFLAGS="$xorg_testset_save_CFLAGS"
8401
8402		eval supported=\$$cacheid
8403		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404$as_echo "$supported" >&6; }
8405		if test "$supported" = "yes" ; then
8406			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8407			found="yes"
8408		fi
8409	fi
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425xorg_testset_save_CFLAGS="$CFLAGS"
8426
8427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8428	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8432  $as_echo_n "(cached) " >&6
8433else
8434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435/* end confdefs.h.  */
8436int i;
8437_ACEOF
8438if ac_fn_c_try_compile "$LINENO"; then :
8439  xorg_cv_cc_flag_unknown_warning_option=yes
8440else
8441  xorg_cv_cc_flag_unknown_warning_option=no
8442fi
8443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444fi
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8448	CFLAGS="$xorg_testset_save_CFLAGS"
8449fi
8450
8451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454	fi
8455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8459  $as_echo_n "(cached) " >&6
8460else
8461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462/* end confdefs.h.  */
8463int i;
8464_ACEOF
8465if ac_fn_c_try_compile "$LINENO"; then :
8466  xorg_cv_cc_flag_unused_command_line_argument=yes
8467else
8468  xorg_cv_cc_flag_unused_command_line_argument=no
8469fi
8470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471fi
8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8474	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8475	CFLAGS="$xorg_testset_save_CFLAGS"
8476fi
8477
8478found="no"
8479
8480	if test $found = "no" ; then
8481		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8482			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8483		fi
8484
8485		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8486			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8487		fi
8488
8489		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8490
8491		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8492$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8493		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8494		if eval \${$cacheid+:} false; then :
8495  $as_echo_n "(cached) " >&6
8496else
8497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h.  */
8499int i;
8500int
8501main ()
8502{
8503
8504  ;
8505  return 0;
8506}
8507_ACEOF
8508if ac_fn_c_try_link "$LINENO"; then :
8509  eval $cacheid=yes
8510else
8511  eval $cacheid=no
8512fi
8513rm -f core conftest.err conftest.$ac_objext \
8514    conftest$ac_exeext conftest.$ac_ext
8515fi
8516
8517
8518		CFLAGS="$xorg_testset_save_CFLAGS"
8519
8520		eval supported=\$$cacheid
8521		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8522$as_echo "$supported" >&6; }
8523		if test "$supported" = "yes" ; then
8524			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8525			found="yes"
8526		fi
8527	fi
8528
8529	if test $found = "no" ; then
8530		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8532		fi
8533
8534		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8536		fi
8537
8538		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8539
8540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8541$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8542		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8543		if eval \${$cacheid+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547/* end confdefs.h.  */
8548int i;
8549int
8550main ()
8551{
8552
8553  ;
8554  return 0;
8555}
8556_ACEOF
8557if ac_fn_c_try_link "$LINENO"; then :
8558  eval $cacheid=yes
8559else
8560  eval $cacheid=no
8561fi
8562rm -f core conftest.err conftest.$ac_objext \
8563    conftest$ac_exeext conftest.$ac_ext
8564fi
8565
8566
8567		CFLAGS="$xorg_testset_save_CFLAGS"
8568
8569		eval supported=\$$cacheid
8570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8571$as_echo "$supported" >&6; }
8572		if test "$supported" = "yes" ; then
8573			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8574			found="yes"
8575		fi
8576	fi
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592xorg_testset_save_CFLAGS="$CFLAGS"
8593
8594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602/* end confdefs.h.  */
8603int i;
8604_ACEOF
8605if ac_fn_c_try_compile "$LINENO"; then :
8606  xorg_cv_cc_flag_unknown_warning_option=yes
8607else
8608  xorg_cv_cc_flag_unknown_warning_option=no
8609fi
8610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8615	CFLAGS="$xorg_testset_save_CFLAGS"
8616fi
8617
8618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8621	fi
8622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8626  $as_echo_n "(cached) " >&6
8627else
8628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629/* end confdefs.h.  */
8630int i;
8631_ACEOF
8632if ac_fn_c_try_compile "$LINENO"; then :
8633  xorg_cv_cc_flag_unused_command_line_argument=yes
8634else
8635  xorg_cv_cc_flag_unused_command_line_argument=no
8636fi
8637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8642	CFLAGS="$xorg_testset_save_CFLAGS"
8643fi
8644
8645found="no"
8646
8647	if test $found = "no" ; then
8648		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8650		fi
8651
8652		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8654		fi
8655
8656		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8657
8658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8659$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8660		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8661		if eval \${$cacheid+:} false; then :
8662  $as_echo_n "(cached) " >&6
8663else
8664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665/* end confdefs.h.  */
8666int i;
8667int
8668main ()
8669{
8670
8671  ;
8672  return 0;
8673}
8674_ACEOF
8675if ac_fn_c_try_link "$LINENO"; then :
8676  eval $cacheid=yes
8677else
8678  eval $cacheid=no
8679fi
8680rm -f core conftest.err conftest.$ac_objext \
8681    conftest$ac_exeext conftest.$ac_ext
8682fi
8683
8684
8685		CFLAGS="$xorg_testset_save_CFLAGS"
8686
8687		eval supported=\$$cacheid
8688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8689$as_echo "$supported" >&6; }
8690		if test "$supported" = "yes" ; then
8691			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8692			found="yes"
8693		fi
8694	fi
8695
8696 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8697else
8698{ $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
8699$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;}
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713xorg_testset_save_CFLAGS="$CFLAGS"
8714
8715if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8716	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8718$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8719if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8720  $as_echo_n "(cached) " >&6
8721else
8722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h.  */
8724int i;
8725_ACEOF
8726if ac_fn_c_try_compile "$LINENO"; then :
8727  xorg_cv_cc_flag_unknown_warning_option=yes
8728else
8729  xorg_cv_cc_flag_unknown_warning_option=no
8730fi
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732fi
8733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8734$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8736	CFLAGS="$xorg_testset_save_CFLAGS"
8737fi
8738
8739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742	fi
8743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8745$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8746if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750/* end confdefs.h.  */
8751int i;
8752_ACEOF
8753if ac_fn_c_try_compile "$LINENO"; then :
8754  xorg_cv_cc_flag_unused_command_line_argument=yes
8755else
8756  xorg_cv_cc_flag_unused_command_line_argument=no
8757fi
8758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759fi
8760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8761$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8762	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8763	CFLAGS="$xorg_testset_save_CFLAGS"
8764fi
8765
8766found="no"
8767
8768	if test $found = "no" ; then
8769		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8770			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771		fi
8772
8773		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8774			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8775		fi
8776
8777		CFLAGS="$CFLAGS -Wimplicit"
8778
8779		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8780$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8781		cacheid=xorg_cv_cc_flag__Wimplicit
8782		if eval \${$cacheid+:} false; then :
8783  $as_echo_n "(cached) " >&6
8784else
8785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788int
8789main ()
8790{
8791
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796if ac_fn_c_try_link "$LINENO"; then :
8797  eval $cacheid=yes
8798else
8799  eval $cacheid=no
8800fi
8801rm -f core conftest.err conftest.$ac_objext \
8802    conftest$ac_exeext conftest.$ac_ext
8803fi
8804
8805
8806		CFLAGS="$xorg_testset_save_CFLAGS"
8807
8808		eval supported=\$$cacheid
8809		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8810$as_echo "$supported" >&6; }
8811		if test "$supported" = "yes" ; then
8812			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8813			found="yes"
8814		fi
8815	fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831xorg_testset_save_CFLAGS="$CFLAGS"
8832
8833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8836$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8837if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8838  $as_echo_n "(cached) " >&6
8839else
8840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841/* end confdefs.h.  */
8842int i;
8843_ACEOF
8844if ac_fn_c_try_compile "$LINENO"; then :
8845  xorg_cv_cc_flag_unknown_warning_option=yes
8846else
8847  xorg_cv_cc_flag_unknown_warning_option=no
8848fi
8849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850fi
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8852$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8853	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8854	CFLAGS="$xorg_testset_save_CFLAGS"
8855fi
8856
8857if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8858	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8859		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860	fi
8861	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8863$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8864if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8865  $as_echo_n "(cached) " >&6
8866else
8867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868/* end confdefs.h.  */
8869int i;
8870_ACEOF
8871if ac_fn_c_try_compile "$LINENO"; then :
8872  xorg_cv_cc_flag_unused_command_line_argument=yes
8873else
8874  xorg_cv_cc_flag_unused_command_line_argument=no
8875fi
8876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877fi
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8879$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8881	CFLAGS="$xorg_testset_save_CFLAGS"
8882fi
8883
8884found="no"
8885
8886	if test $found = "no" ; then
8887		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8889		fi
8890
8891		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8893		fi
8894
8895		CFLAGS="$CFLAGS -Wnonnull"
8896
8897		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8898$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8899		cacheid=xorg_cv_cc_flag__Wnonnull
8900		if eval \${$cacheid+:} false; then :
8901  $as_echo_n "(cached) " >&6
8902else
8903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904/* end confdefs.h.  */
8905int i;
8906int
8907main ()
8908{
8909
8910  ;
8911  return 0;
8912}
8913_ACEOF
8914if ac_fn_c_try_link "$LINENO"; then :
8915  eval $cacheid=yes
8916else
8917  eval $cacheid=no
8918fi
8919rm -f core conftest.err conftest.$ac_objext \
8920    conftest$ac_exeext conftest.$ac_ext
8921fi
8922
8923
8924		CFLAGS="$xorg_testset_save_CFLAGS"
8925
8926		eval supported=\$$cacheid
8927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8928$as_echo "$supported" >&6; }
8929		if test "$supported" = "yes" ; then
8930			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8931			found="yes"
8932		fi
8933	fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949xorg_testset_save_CFLAGS="$CFLAGS"
8950
8951if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8952	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8954$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8955if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959/* end confdefs.h.  */
8960int i;
8961_ACEOF
8962if ac_fn_c_try_compile "$LINENO"; then :
8963  xorg_cv_cc_flag_unknown_warning_option=yes
8964else
8965  xorg_cv_cc_flag_unknown_warning_option=no
8966fi
8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968fi
8969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8970$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8971	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8972	CFLAGS="$xorg_testset_save_CFLAGS"
8973fi
8974
8975if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8976	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978	fi
8979	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8981$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8982if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8983  $as_echo_n "(cached) " >&6
8984else
8985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986/* end confdefs.h.  */
8987int i;
8988_ACEOF
8989if ac_fn_c_try_compile "$LINENO"; then :
8990  xorg_cv_cc_flag_unused_command_line_argument=yes
8991else
8992  xorg_cv_cc_flag_unused_command_line_argument=no
8993fi
8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995fi
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8997$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8998	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8999	CFLAGS="$xorg_testset_save_CFLAGS"
9000fi
9001
9002found="no"
9003
9004	if test $found = "no" ; then
9005		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9006			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9007		fi
9008
9009		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9010			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9011		fi
9012
9013		CFLAGS="$CFLAGS -Winit-self"
9014
9015		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
9016$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
9017		cacheid=xorg_cv_cc_flag__Winit_self
9018		if eval \${$cacheid+:} false; then :
9019  $as_echo_n "(cached) " >&6
9020else
9021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022/* end confdefs.h.  */
9023int i;
9024int
9025main ()
9026{
9027
9028  ;
9029  return 0;
9030}
9031_ACEOF
9032if ac_fn_c_try_link "$LINENO"; then :
9033  eval $cacheid=yes
9034else
9035  eval $cacheid=no
9036fi
9037rm -f core conftest.err conftest.$ac_objext \
9038    conftest$ac_exeext conftest.$ac_ext
9039fi
9040
9041
9042		CFLAGS="$xorg_testset_save_CFLAGS"
9043
9044		eval supported=\$$cacheid
9045		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9046$as_echo "$supported" >&6; }
9047		if test "$supported" = "yes" ; then
9048			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9049			found="yes"
9050		fi
9051	fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067xorg_testset_save_CFLAGS="$CFLAGS"
9068
9069if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9070	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9072$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9073if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077/* end confdefs.h.  */
9078int i;
9079_ACEOF
9080if ac_fn_c_try_compile "$LINENO"; then :
9081  xorg_cv_cc_flag_unknown_warning_option=yes
9082else
9083  xorg_cv_cc_flag_unknown_warning_option=no
9084fi
9085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086fi
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9088$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9089	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9090	CFLAGS="$xorg_testset_save_CFLAGS"
9091fi
9092
9093if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9094	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9095		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096	fi
9097	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9098	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9099$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9100if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9101  $as_echo_n "(cached) " >&6
9102else
9103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h.  */
9105int i;
9106_ACEOF
9107if ac_fn_c_try_compile "$LINENO"; then :
9108  xorg_cv_cc_flag_unused_command_line_argument=yes
9109else
9110  xorg_cv_cc_flag_unused_command_line_argument=no
9111fi
9112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113fi
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9115$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9117	CFLAGS="$xorg_testset_save_CFLAGS"
9118fi
9119
9120found="no"
9121
9122	if test $found = "no" ; then
9123		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125		fi
9126
9127		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9129		fi
9130
9131		CFLAGS="$CFLAGS -Wmain"
9132
9133		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9134$as_echo_n "checking if $CC supports-Wmain... " >&6; }
9135		cacheid=xorg_cv_cc_flag__Wmain
9136		if eval \${$cacheid+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140/* end confdefs.h.  */
9141int i;
9142int
9143main ()
9144{
9145
9146  ;
9147  return 0;
9148}
9149_ACEOF
9150if ac_fn_c_try_link "$LINENO"; then :
9151  eval $cacheid=yes
9152else
9153  eval $cacheid=no
9154fi
9155rm -f core conftest.err conftest.$ac_objext \
9156    conftest$ac_exeext conftest.$ac_ext
9157fi
9158
9159
9160		CFLAGS="$xorg_testset_save_CFLAGS"
9161
9162		eval supported=\$$cacheid
9163		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9164$as_echo "$supported" >&6; }
9165		if test "$supported" = "yes" ; then
9166			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9167			found="yes"
9168		fi
9169	fi
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185xorg_testset_save_CFLAGS="$CFLAGS"
9186
9187if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9188	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9190$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9191if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9192  $as_echo_n "(cached) " >&6
9193else
9194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195/* end confdefs.h.  */
9196int i;
9197_ACEOF
9198if ac_fn_c_try_compile "$LINENO"; then :
9199  xorg_cv_cc_flag_unknown_warning_option=yes
9200else
9201  xorg_cv_cc_flag_unknown_warning_option=no
9202fi
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204fi
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9206$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9208	CFLAGS="$xorg_testset_save_CFLAGS"
9209fi
9210
9211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214	fi
9215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9217$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9218if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9219  $as_echo_n "(cached) " >&6
9220else
9221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223int i;
9224_ACEOF
9225if ac_fn_c_try_compile "$LINENO"; then :
9226  xorg_cv_cc_flag_unused_command_line_argument=yes
9227else
9228  xorg_cv_cc_flag_unused_command_line_argument=no
9229fi
9230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231fi
9232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9233$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9234	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9235	CFLAGS="$xorg_testset_save_CFLAGS"
9236fi
9237
9238found="no"
9239
9240	if test $found = "no" ; then
9241		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9242			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243		fi
9244
9245		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9246			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247		fi
9248
9249		CFLAGS="$CFLAGS -Wmissing-braces"
9250
9251		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9252$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9253		cacheid=xorg_cv_cc_flag__Wmissing_braces
9254		if eval \${$cacheid+:} false; then :
9255  $as_echo_n "(cached) " >&6
9256else
9257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259int i;
9260int
9261main ()
9262{
9263
9264  ;
9265  return 0;
9266}
9267_ACEOF
9268if ac_fn_c_try_link "$LINENO"; then :
9269  eval $cacheid=yes
9270else
9271  eval $cacheid=no
9272fi
9273rm -f core conftest.err conftest.$ac_objext \
9274    conftest$ac_exeext conftest.$ac_ext
9275fi
9276
9277
9278		CFLAGS="$xorg_testset_save_CFLAGS"
9279
9280		eval supported=\$$cacheid
9281		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9282$as_echo "$supported" >&6; }
9283		if test "$supported" = "yes" ; then
9284			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9285			found="yes"
9286		fi
9287	fi
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303xorg_testset_save_CFLAGS="$CFLAGS"
9304
9305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9306	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313/* end confdefs.h.  */
9314int i;
9315_ACEOF
9316if ac_fn_c_try_compile "$LINENO"; then :
9317  xorg_cv_cc_flag_unknown_warning_option=yes
9318else
9319  xorg_cv_cc_flag_unknown_warning_option=no
9320fi
9321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322fi
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9325	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9326	CFLAGS="$xorg_testset_save_CFLAGS"
9327fi
9328
9329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9330	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9331		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332	fi
9333	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340/* end confdefs.h.  */
9341int i;
9342_ACEOF
9343if ac_fn_c_try_compile "$LINENO"; then :
9344  xorg_cv_cc_flag_unused_command_line_argument=yes
9345else
9346  xorg_cv_cc_flag_unused_command_line_argument=no
9347fi
9348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349fi
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9352	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9353	CFLAGS="$xorg_testset_save_CFLAGS"
9354fi
9355
9356found="no"
9357
9358	if test $found = "no" ; then
9359		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9360			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9361		fi
9362
9363		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9364			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9365		fi
9366
9367		CFLAGS="$CFLAGS -Wsequence-point"
9368
9369		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9370$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9371		cacheid=xorg_cv_cc_flag__Wsequence_point
9372		if eval \${$cacheid+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376/* end confdefs.h.  */
9377int i;
9378int
9379main ()
9380{
9381
9382  ;
9383  return 0;
9384}
9385_ACEOF
9386if ac_fn_c_try_link "$LINENO"; then :
9387  eval $cacheid=yes
9388else
9389  eval $cacheid=no
9390fi
9391rm -f core conftest.err conftest.$ac_objext \
9392    conftest$ac_exeext conftest.$ac_ext
9393fi
9394
9395
9396		CFLAGS="$xorg_testset_save_CFLAGS"
9397
9398		eval supported=\$$cacheid
9399		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9400$as_echo "$supported" >&6; }
9401		if test "$supported" = "yes" ; then
9402			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9403			found="yes"
9404		fi
9405	fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421xorg_testset_save_CFLAGS="$CFLAGS"
9422
9423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9428  $as_echo_n "(cached) " >&6
9429else
9430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h.  */
9432int i;
9433_ACEOF
9434if ac_fn_c_try_compile "$LINENO"; then :
9435  xorg_cv_cc_flag_unknown_warning_option=yes
9436else
9437  xorg_cv_cc_flag_unknown_warning_option=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440fi
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9443	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9444	CFLAGS="$xorg_testset_save_CFLAGS"
9445fi
9446
9447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9448	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9449		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450	fi
9451	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9455  $as_echo_n "(cached) " >&6
9456else
9457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458/* end confdefs.h.  */
9459int i;
9460_ACEOF
9461if ac_fn_c_try_compile "$LINENO"; then :
9462  xorg_cv_cc_flag_unused_command_line_argument=yes
9463else
9464  xorg_cv_cc_flag_unused_command_line_argument=no
9465fi
9466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9470	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9471	CFLAGS="$xorg_testset_save_CFLAGS"
9472fi
9473
9474found="no"
9475
9476	if test $found = "no" ; then
9477		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9478			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479		fi
9480
9481		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9482			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9483		fi
9484
9485		CFLAGS="$CFLAGS -Wreturn-type"
9486
9487		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9488$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9489		cacheid=xorg_cv_cc_flag__Wreturn_type
9490		if eval \${$cacheid+:} false; then :
9491  $as_echo_n "(cached) " >&6
9492else
9493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495int i;
9496int
9497main ()
9498{
9499
9500  ;
9501  return 0;
9502}
9503_ACEOF
9504if ac_fn_c_try_link "$LINENO"; then :
9505  eval $cacheid=yes
9506else
9507  eval $cacheid=no
9508fi
9509rm -f core conftest.err conftest.$ac_objext \
9510    conftest$ac_exeext conftest.$ac_ext
9511fi
9512
9513
9514		CFLAGS="$xorg_testset_save_CFLAGS"
9515
9516		eval supported=\$$cacheid
9517		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9518$as_echo "$supported" >&6; }
9519		if test "$supported" = "yes" ; then
9520			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9521			found="yes"
9522		fi
9523	fi
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539xorg_testset_save_CFLAGS="$CFLAGS"
9540
9541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9543	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9546  $as_echo_n "(cached) " >&6
9547else
9548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549/* end confdefs.h.  */
9550int i;
9551_ACEOF
9552if ac_fn_c_try_compile "$LINENO"; then :
9553  xorg_cv_cc_flag_unknown_warning_option=yes
9554else
9555  xorg_cv_cc_flag_unknown_warning_option=no
9556fi
9557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558fi
9559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9562	CFLAGS="$xorg_testset_save_CFLAGS"
9563fi
9564
9565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568	fi
9569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9570	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9573  $as_echo_n "(cached) " >&6
9574else
9575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576/* end confdefs.h.  */
9577int i;
9578_ACEOF
9579if ac_fn_c_try_compile "$LINENO"; then :
9580  xorg_cv_cc_flag_unused_command_line_argument=yes
9581else
9582  xorg_cv_cc_flag_unused_command_line_argument=no
9583fi
9584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585fi
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9588	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9589	CFLAGS="$xorg_testset_save_CFLAGS"
9590fi
9591
9592found="no"
9593
9594	if test $found = "no" ; then
9595		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9596			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597		fi
9598
9599		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9600			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601		fi
9602
9603		CFLAGS="$CFLAGS -Wtrigraphs"
9604
9605		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9606$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9607		cacheid=xorg_cv_cc_flag__Wtrigraphs
9608		if eval \${$cacheid+:} false; then :
9609  $as_echo_n "(cached) " >&6
9610else
9611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612/* end confdefs.h.  */
9613int i;
9614int
9615main ()
9616{
9617
9618  ;
9619  return 0;
9620}
9621_ACEOF
9622if ac_fn_c_try_link "$LINENO"; then :
9623  eval $cacheid=yes
9624else
9625  eval $cacheid=no
9626fi
9627rm -f core conftest.err conftest.$ac_objext \
9628    conftest$ac_exeext conftest.$ac_ext
9629fi
9630
9631
9632		CFLAGS="$xorg_testset_save_CFLAGS"
9633
9634		eval supported=\$$cacheid
9635		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9636$as_echo "$supported" >&6; }
9637		if test "$supported" = "yes" ; then
9638			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9639			found="yes"
9640		fi
9641	fi
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657xorg_testset_save_CFLAGS="$CFLAGS"
9658
9659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9664  $as_echo_n "(cached) " >&6
9665else
9666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667/* end confdefs.h.  */
9668int i;
9669_ACEOF
9670if ac_fn_c_try_compile "$LINENO"; then :
9671  xorg_cv_cc_flag_unknown_warning_option=yes
9672else
9673  xorg_cv_cc_flag_unknown_warning_option=no
9674fi
9675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9680	CFLAGS="$xorg_testset_save_CFLAGS"
9681fi
9682
9683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686	fi
9687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9688	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9691  $as_echo_n "(cached) " >&6
9692else
9693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694/* end confdefs.h.  */
9695int i;
9696_ACEOF
9697if ac_fn_c_try_compile "$LINENO"; then :
9698  xorg_cv_cc_flag_unused_command_line_argument=yes
9699else
9700  xorg_cv_cc_flag_unused_command_line_argument=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703fi
9704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9706	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9707	CFLAGS="$xorg_testset_save_CFLAGS"
9708fi
9709
9710found="no"
9711
9712	if test $found = "no" ; then
9713		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9714			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9715		fi
9716
9717		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9718			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9719		fi
9720
9721		CFLAGS="$CFLAGS -Warray-bounds"
9722
9723		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9724$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9725		cacheid=xorg_cv_cc_flag__Warray_bounds
9726		if eval \${$cacheid+:} false; then :
9727  $as_echo_n "(cached) " >&6
9728else
9729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730/* end confdefs.h.  */
9731int i;
9732int
9733main ()
9734{
9735
9736  ;
9737  return 0;
9738}
9739_ACEOF
9740if ac_fn_c_try_link "$LINENO"; then :
9741  eval $cacheid=yes
9742else
9743  eval $cacheid=no
9744fi
9745rm -f core conftest.err conftest.$ac_objext \
9746    conftest$ac_exeext conftest.$ac_ext
9747fi
9748
9749
9750		CFLAGS="$xorg_testset_save_CFLAGS"
9751
9752		eval supported=\$$cacheid
9753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9754$as_echo "$supported" >&6; }
9755		if test "$supported" = "yes" ; then
9756			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9757			found="yes"
9758		fi
9759	fi
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775xorg_testset_save_CFLAGS="$CFLAGS"
9776
9777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9778	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9782  $as_echo_n "(cached) " >&6
9783else
9784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h.  */
9786int i;
9787_ACEOF
9788if ac_fn_c_try_compile "$LINENO"; then :
9789  xorg_cv_cc_flag_unknown_warning_option=yes
9790else
9791  xorg_cv_cc_flag_unknown_warning_option=no
9792fi
9793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794fi
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9797	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9798	CFLAGS="$xorg_testset_save_CFLAGS"
9799fi
9800
9801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9802	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9803		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804	fi
9805	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h.  */
9813int i;
9814_ACEOF
9815if ac_fn_c_try_compile "$LINENO"; then :
9816  xorg_cv_cc_flag_unused_command_line_argument=yes
9817else
9818  xorg_cv_cc_flag_unused_command_line_argument=no
9819fi
9820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821fi
9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9825	CFLAGS="$xorg_testset_save_CFLAGS"
9826fi
9827
9828found="no"
9829
9830	if test $found = "no" ; then
9831		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833		fi
9834
9835		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9837		fi
9838
9839		CFLAGS="$CFLAGS -Wwrite-strings"
9840
9841		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9842$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9843		cacheid=xorg_cv_cc_flag__Wwrite_strings
9844		if eval \${$cacheid+:} false; then :
9845  $as_echo_n "(cached) " >&6
9846else
9847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848/* end confdefs.h.  */
9849int i;
9850int
9851main ()
9852{
9853
9854  ;
9855  return 0;
9856}
9857_ACEOF
9858if ac_fn_c_try_link "$LINENO"; then :
9859  eval $cacheid=yes
9860else
9861  eval $cacheid=no
9862fi
9863rm -f core conftest.err conftest.$ac_objext \
9864    conftest$ac_exeext conftest.$ac_ext
9865fi
9866
9867
9868		CFLAGS="$xorg_testset_save_CFLAGS"
9869
9870		eval supported=\$$cacheid
9871		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9872$as_echo "$supported" >&6; }
9873		if test "$supported" = "yes" ; then
9874			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9875			found="yes"
9876		fi
9877	fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893xorg_testset_save_CFLAGS="$CFLAGS"
9894
9895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9896	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9897	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9900  $as_echo_n "(cached) " >&6
9901else
9902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903/* end confdefs.h.  */
9904int i;
9905_ACEOF
9906if ac_fn_c_try_compile "$LINENO"; then :
9907  xorg_cv_cc_flag_unknown_warning_option=yes
9908else
9909  xorg_cv_cc_flag_unknown_warning_option=no
9910fi
9911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912fi
9913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9915	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9916	CFLAGS="$xorg_testset_save_CFLAGS"
9917fi
9918
9919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9920	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9921		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922	fi
9923	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9924	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9927  $as_echo_n "(cached) " >&6
9928else
9929  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9930/* end confdefs.h.  */
9931int i;
9932_ACEOF
9933if ac_fn_c_try_compile "$LINENO"; then :
9934  xorg_cv_cc_flag_unused_command_line_argument=yes
9935else
9936  xorg_cv_cc_flag_unused_command_line_argument=no
9937fi
9938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9939fi
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9942	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9943	CFLAGS="$xorg_testset_save_CFLAGS"
9944fi
9945
9946found="no"
9947
9948	if test $found = "no" ; then
9949		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9950			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9951		fi
9952
9953		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9954			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9955		fi
9956
9957		CFLAGS="$CFLAGS -Waddress"
9958
9959		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9960$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9961		cacheid=xorg_cv_cc_flag__Waddress
9962		if eval \${$cacheid+:} false; then :
9963  $as_echo_n "(cached) " >&6
9964else
9965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h.  */
9967int i;
9968int
9969main ()
9970{
9971
9972  ;
9973  return 0;
9974}
9975_ACEOF
9976if ac_fn_c_try_link "$LINENO"; then :
9977  eval $cacheid=yes
9978else
9979  eval $cacheid=no
9980fi
9981rm -f core conftest.err conftest.$ac_objext \
9982    conftest$ac_exeext conftest.$ac_ext
9983fi
9984
9985
9986		CFLAGS="$xorg_testset_save_CFLAGS"
9987
9988		eval supported=\$$cacheid
9989		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9990$as_echo "$supported" >&6; }
9991		if test "$supported" = "yes" ; then
9992			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9993			found="yes"
9994		fi
9995	fi
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011xorg_testset_save_CFLAGS="$CFLAGS"
10012
10013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10014	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10018  $as_echo_n "(cached) " >&6
10019else
10020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h.  */
10022int i;
10023_ACEOF
10024if ac_fn_c_try_compile "$LINENO"; then :
10025  xorg_cv_cc_flag_unknown_warning_option=yes
10026else
10027  xorg_cv_cc_flag_unknown_warning_option=no
10028fi
10029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030fi
10031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10033	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10034	CFLAGS="$xorg_testset_save_CFLAGS"
10035fi
10036
10037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10038	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10039		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040	fi
10041	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10045  $as_echo_n "(cached) " >&6
10046else
10047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048/* end confdefs.h.  */
10049int i;
10050_ACEOF
10051if ac_fn_c_try_compile "$LINENO"; then :
10052  xorg_cv_cc_flag_unused_command_line_argument=yes
10053else
10054  xorg_cv_cc_flag_unused_command_line_argument=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10057fi
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10061	CFLAGS="$xorg_testset_save_CFLAGS"
10062fi
10063
10064found="no"
10065
10066	if test $found = "no" ; then
10067		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10069		fi
10070
10071		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073		fi
10074
10075		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10076
10077		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
10078$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
10079		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10080		if eval \${$cacheid+:} false; then :
10081  $as_echo_n "(cached) " >&6
10082else
10083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084/* end confdefs.h.  */
10085int i;
10086int
10087main ()
10088{
10089
10090  ;
10091  return 0;
10092}
10093_ACEOF
10094if ac_fn_c_try_link "$LINENO"; then :
10095  eval $cacheid=yes
10096else
10097  eval $cacheid=no
10098fi
10099rm -f core conftest.err conftest.$ac_objext \
10100    conftest$ac_exeext conftest.$ac_ext
10101fi
10102
10103
10104		CFLAGS="$xorg_testset_save_CFLAGS"
10105
10106		eval supported=\$$cacheid
10107		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10108$as_echo "$supported" >&6; }
10109		if test "$supported" = "yes" ; then
10110			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10111			found="yes"
10112		fi
10113	fi
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129xorg_testset_save_CFLAGS="$CFLAGS"
10130
10131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10132	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10136  $as_echo_n "(cached) " >&6
10137else
10138  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139/* end confdefs.h.  */
10140int i;
10141_ACEOF
10142if ac_fn_c_try_compile "$LINENO"; then :
10143  xorg_cv_cc_flag_unknown_warning_option=yes
10144else
10145  xorg_cv_cc_flag_unknown_warning_option=no
10146fi
10147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148fi
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10151	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10152	CFLAGS="$xorg_testset_save_CFLAGS"
10153fi
10154
10155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10156	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10157		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158	fi
10159	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10160	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10163  $as_echo_n "(cached) " >&6
10164else
10165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166/* end confdefs.h.  */
10167int i;
10168_ACEOF
10169if ac_fn_c_try_compile "$LINENO"; then :
10170  xorg_cv_cc_flag_unused_command_line_argument=yes
10171else
10172  xorg_cv_cc_flag_unused_command_line_argument=no
10173fi
10174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10175fi
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10179	CFLAGS="$xorg_testset_save_CFLAGS"
10180fi
10181
10182found="no"
10183
10184	if test $found = "no" ; then
10185		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10187		fi
10188
10189		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10191		fi
10192
10193		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10194
10195		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10196$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10197		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10198		if eval \${$cacheid+:} false; then :
10199  $as_echo_n "(cached) " >&6
10200else
10201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202/* end confdefs.h.  */
10203int i;
10204int
10205main ()
10206{
10207
10208  ;
10209  return 0;
10210}
10211_ACEOF
10212if ac_fn_c_try_link "$LINENO"; then :
10213  eval $cacheid=yes
10214else
10215  eval $cacheid=no
10216fi
10217rm -f core conftest.err conftest.$ac_objext \
10218    conftest$ac_exeext conftest.$ac_ext
10219fi
10220
10221
10222		CFLAGS="$xorg_testset_save_CFLAGS"
10223
10224		eval supported=\$$cacheid
10225		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10226$as_echo "$supported" >&6; }
10227		if test "$supported" = "yes" ; then
10228			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10229			found="yes"
10230		fi
10231	fi
10232
10233
10234fi
10235
10236
10237
10238
10239
10240
10241
10242		CWARNFLAGS="$BASE_CFLAGS"
10243		if  test "x$GCC" = xyes ; then
10244		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10245		fi
10246
10247
10248
10249
10250
10251
10252
10253
10254# Check whether --enable-strict-compilation was given.
10255if test "${enable_strict_compilation+set}" = set; then :
10256  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10257else
10258  STRICT_COMPILE=no
10259fi
10260
10261
10262
10263
10264
10265
10266STRICT_CFLAGS=""
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280xorg_testset_save_CFLAGS="$CFLAGS"
10281
10282if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10283	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10285$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10286if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10287  $as_echo_n "(cached) " >&6
10288else
10289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290/* end confdefs.h.  */
10291int i;
10292_ACEOF
10293if ac_fn_c_try_compile "$LINENO"; then :
10294  xorg_cv_cc_flag_unknown_warning_option=yes
10295else
10296  xorg_cv_cc_flag_unknown_warning_option=no
10297fi
10298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299fi
10300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10301$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10302	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10303	CFLAGS="$xorg_testset_save_CFLAGS"
10304fi
10305
10306if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10307	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10308		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309	fi
10310	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10311	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10312$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10313if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10314  $as_echo_n "(cached) " >&6
10315else
10316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10317/* end confdefs.h.  */
10318int i;
10319_ACEOF
10320if ac_fn_c_try_compile "$LINENO"; then :
10321  xorg_cv_cc_flag_unused_command_line_argument=yes
10322else
10323  xorg_cv_cc_flag_unused_command_line_argument=no
10324fi
10325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10326fi
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10328$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10329	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10330	CFLAGS="$xorg_testset_save_CFLAGS"
10331fi
10332
10333found="no"
10334
10335	if test $found = "no" ; then
10336		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10337			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338		fi
10339
10340		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10341			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10342		fi
10343
10344		CFLAGS="$CFLAGS -pedantic"
10345
10346		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10347$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10348		cacheid=xorg_cv_cc_flag__pedantic
10349		if eval \${$cacheid+:} false; then :
10350  $as_echo_n "(cached) " >&6
10351else
10352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353/* end confdefs.h.  */
10354int i;
10355int
10356main ()
10357{
10358
10359  ;
10360  return 0;
10361}
10362_ACEOF
10363if ac_fn_c_try_link "$LINENO"; then :
10364  eval $cacheid=yes
10365else
10366  eval $cacheid=no
10367fi
10368rm -f core conftest.err conftest.$ac_objext \
10369    conftest$ac_exeext conftest.$ac_ext
10370fi
10371
10372
10373		CFLAGS="$xorg_testset_save_CFLAGS"
10374
10375		eval supported=\$$cacheid
10376		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10377$as_echo "$supported" >&6; }
10378		if test "$supported" = "yes" ; then
10379			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10380			found="yes"
10381		fi
10382	fi
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398xorg_testset_save_CFLAGS="$CFLAGS"
10399
10400if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10401	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10403$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10404if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10405  $as_echo_n "(cached) " >&6
10406else
10407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408/* end confdefs.h.  */
10409int i;
10410_ACEOF
10411if ac_fn_c_try_compile "$LINENO"; then :
10412  xorg_cv_cc_flag_unknown_warning_option=yes
10413else
10414  xorg_cv_cc_flag_unknown_warning_option=no
10415fi
10416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417fi
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10419$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10420	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10421	CFLAGS="$xorg_testset_save_CFLAGS"
10422fi
10423
10424if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10425	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427	fi
10428	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10429	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10430$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10431if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10432  $as_echo_n "(cached) " >&6
10433else
10434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436int i;
10437_ACEOF
10438if ac_fn_c_try_compile "$LINENO"; then :
10439  xorg_cv_cc_flag_unused_command_line_argument=yes
10440else
10441  xorg_cv_cc_flag_unused_command_line_argument=no
10442fi
10443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444fi
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10446$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10447	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10448	CFLAGS="$xorg_testset_save_CFLAGS"
10449fi
10450
10451found="no"
10452
10453	if test $found = "no" ; then
10454		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10455			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10456		fi
10457
10458		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10459			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460		fi
10461
10462		CFLAGS="$CFLAGS -Werror"
10463
10464		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10465$as_echo_n "checking if $CC supports-Werror... " >&6; }
10466		cacheid=xorg_cv_cc_flag__Werror
10467		if eval \${$cacheid+:} false; then :
10468  $as_echo_n "(cached) " >&6
10469else
10470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471/* end confdefs.h.  */
10472int i;
10473int
10474main ()
10475{
10476
10477  ;
10478  return 0;
10479}
10480_ACEOF
10481if ac_fn_c_try_link "$LINENO"; then :
10482  eval $cacheid=yes
10483else
10484  eval $cacheid=no
10485fi
10486rm -f core conftest.err conftest.$ac_objext \
10487    conftest$ac_exeext conftest.$ac_ext
10488fi
10489
10490
10491		CFLAGS="$xorg_testset_save_CFLAGS"
10492
10493		eval supported=\$$cacheid
10494		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10495$as_echo "$supported" >&6; }
10496		if test "$supported" = "yes" ; then
10497			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10498			found="yes"
10499		fi
10500	fi
10501
10502	if test $found = "no" ; then
10503		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10505		fi
10506
10507		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10509		fi
10510
10511		CFLAGS="$CFLAGS -errwarn"
10512
10513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10514$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10515		cacheid=xorg_cv_cc_flag__errwarn
10516		if eval \${$cacheid+:} false; then :
10517  $as_echo_n "(cached) " >&6
10518else
10519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520/* end confdefs.h.  */
10521int i;
10522int
10523main ()
10524{
10525
10526  ;
10527  return 0;
10528}
10529_ACEOF
10530if ac_fn_c_try_link "$LINENO"; then :
10531  eval $cacheid=yes
10532else
10533  eval $cacheid=no
10534fi
10535rm -f core conftest.err conftest.$ac_objext \
10536    conftest$ac_exeext conftest.$ac_ext
10537fi
10538
10539
10540		CFLAGS="$xorg_testset_save_CFLAGS"
10541
10542		eval supported=\$$cacheid
10543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10544$as_echo "$supported" >&6; }
10545		if test "$supported" = "yes" ; then
10546			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10547			found="yes"
10548		fi
10549	fi
10550
10551
10552
10553# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10554# activate it with -Werror, so we add it here explicitly.
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568xorg_testset_save_CFLAGS="$CFLAGS"
10569
10570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10575  $as_echo_n "(cached) " >&6
10576else
10577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578/* end confdefs.h.  */
10579int i;
10580_ACEOF
10581if ac_fn_c_try_compile "$LINENO"; then :
10582  xorg_cv_cc_flag_unknown_warning_option=yes
10583else
10584  xorg_cv_cc_flag_unknown_warning_option=no
10585fi
10586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10587fi
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10591	CFLAGS="$xorg_testset_save_CFLAGS"
10592fi
10593
10594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597	fi
10598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606int i;
10607_ACEOF
10608if ac_fn_c_try_compile "$LINENO"; then :
10609  xorg_cv_cc_flag_unused_command_line_argument=yes
10610else
10611  xorg_cv_cc_flag_unused_command_line_argument=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10618	CFLAGS="$xorg_testset_save_CFLAGS"
10619fi
10620
10621found="no"
10622
10623	if test $found = "no" ; then
10624		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10626		fi
10627
10628		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10630		fi
10631
10632		CFLAGS="$CFLAGS -Werror=attributes"
10633
10634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10635$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10636		cacheid=xorg_cv_cc_flag__Werror_attributes
10637		if eval \${$cacheid+:} false; then :
10638  $as_echo_n "(cached) " >&6
10639else
10640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641/* end confdefs.h.  */
10642int i;
10643int
10644main ()
10645{
10646
10647  ;
10648  return 0;
10649}
10650_ACEOF
10651if ac_fn_c_try_link "$LINENO"; then :
10652  eval $cacheid=yes
10653else
10654  eval $cacheid=no
10655fi
10656rm -f core conftest.err conftest.$ac_objext \
10657    conftest$ac_exeext conftest.$ac_ext
10658fi
10659
10660
10661		CFLAGS="$xorg_testset_save_CFLAGS"
10662
10663		eval supported=\$$cacheid
10664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10665$as_echo "$supported" >&6; }
10666		if test "$supported" = "yes" ; then
10667			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10668			found="yes"
10669		fi
10670	fi
10671
10672
10673
10674if test "x$STRICT_COMPILE" = "xyes"; then
10675    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10676    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10677fi
10678
10679
10680
10681
10682
10683
10684cat >>confdefs.h <<_ACEOF
10685#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10686_ACEOF
10687
10688	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10689	if test "x$PVM" = "x"; then
10690		PVM="0"
10691	fi
10692
10693cat >>confdefs.h <<_ACEOF
10694#define PACKAGE_VERSION_MINOR $PVM
10695_ACEOF
10696
10697	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10698	if test "x$PVP" = "x"; then
10699		PVP="0"
10700	fi
10701
10702cat >>confdefs.h <<_ACEOF
10703#define PACKAGE_VERSION_PATCHLEVEL $PVP
10704_ACEOF
10705
10706
10707
10708CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10709mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10710|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10711echo 'git directory not found: installing possibly empty changelog.' >&2)"
10712
10713
10714
10715
10716macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10717INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10718mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10719|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10720echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10721
10722
10723
10724
10725
10726
10727if test x$APP_MAN_SUFFIX = x    ; then
10728    APP_MAN_SUFFIX=1
10729fi
10730if test x$APP_MAN_DIR = x    ; then
10731    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10732fi
10733
10734if test x$LIB_MAN_SUFFIX = x    ; then
10735    LIB_MAN_SUFFIX=3
10736fi
10737if test x$LIB_MAN_DIR = x    ; then
10738    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10739fi
10740
10741if test x$FILE_MAN_SUFFIX = x    ; then
10742    case $host_os in
10743	solaris*)	FILE_MAN_SUFFIX=4  ;;
10744	*)		FILE_MAN_SUFFIX=5  ;;
10745    esac
10746fi
10747if test x$FILE_MAN_DIR = x    ; then
10748    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10749fi
10750
10751if test x$MISC_MAN_SUFFIX = x    ; then
10752    case $host_os in
10753	solaris*)	MISC_MAN_SUFFIX=5  ;;
10754	*)		MISC_MAN_SUFFIX=7  ;;
10755    esac
10756fi
10757if test x$MISC_MAN_DIR = x    ; then
10758    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10759fi
10760
10761if test x$DRIVER_MAN_SUFFIX = x    ; then
10762    case $host_os in
10763	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10764	*)		DRIVER_MAN_SUFFIX=4  ;;
10765    esac
10766fi
10767if test x$DRIVER_MAN_DIR = x    ; then
10768    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10769fi
10770
10771if test x$ADMIN_MAN_SUFFIX = x    ; then
10772    case $host_os in
10773	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10774	*)		ADMIN_MAN_SUFFIX=8  ;;
10775    esac
10776fi
10777if test x$ADMIN_MAN_DIR = x    ; then
10778    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10779fi
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795XORG_MAN_PAGE="X Version 11"
10796
10797MAN_SUBSTS="\
10798	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10799	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10800	-e 's|__xservername__|Xorg|g' \
10801	-e 's|__xconfigfile__|xorg.conf|g' \
10802	-e 's|__projectroot__|\$(prefix)|g' \
10803	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10804	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10805	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10806	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10807	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10808	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10809	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10810
10811
10812
10813# Check whether --enable-silent-rules was given.
10814if test "${enable_silent_rules+set}" = set; then :
10815  enableval=$enable_silent_rules;
10816fi
10817
10818case $enable_silent_rules in # (((
10819  yes) AM_DEFAULT_VERBOSITY=0;;
10820   no) AM_DEFAULT_VERBOSITY=1;;
10821    *) AM_DEFAULT_VERBOSITY=0;;
10822esac
10823am_make=${MAKE-make}
10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10825$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10826if ${am_cv_make_support_nested_variables+:} false; then :
10827  $as_echo_n "(cached) " >&6
10828else
10829  if $as_echo 'TRUE=$(BAR$(V))
10830BAR0=false
10831BAR1=true
10832V=1
10833am__doit:
10834	@$(TRUE)
10835.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10836  am_cv_make_support_nested_variables=yes
10837else
10838  am_cv_make_support_nested_variables=no
10839fi
10840fi
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10842$as_echo "$am_cv_make_support_nested_variables" >&6; }
10843if test $am_cv_make_support_nested_variables = yes; then
10844    AM_V='$(V)'
10845  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10846else
10847  AM_V=$AM_DEFAULT_VERBOSITY
10848  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10849fi
10850AM_BACKSLASH='\'
10851
10852
10853
10854# And disable a few very noisy warnings
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869xorg_testset_save_CFLAGS="$CFLAGS"
10870
10871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10876  $as_echo_n "(cached) " >&6
10877else
10878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879/* end confdefs.h.  */
10880int i;
10881_ACEOF
10882if ac_fn_c_try_compile "$LINENO"; then :
10883  xorg_cv_cc_flag_unknown_warning_option=yes
10884else
10885  xorg_cv_cc_flag_unknown_warning_option=no
10886fi
10887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888fi
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10892	CFLAGS="$xorg_testset_save_CFLAGS"
10893fi
10894
10895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10898	fi
10899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10903  $as_echo_n "(cached) " >&6
10904else
10905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906/* end confdefs.h.  */
10907int i;
10908_ACEOF
10909if ac_fn_c_try_compile "$LINENO"; then :
10910  xorg_cv_cc_flag_unused_command_line_argument=yes
10911else
10912  xorg_cv_cc_flag_unused_command_line_argument=no
10913fi
10914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10915fi
10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10919	CFLAGS="$xorg_testset_save_CFLAGS"
10920fi
10921
10922found="no"
10923
10924	if test $found = "no" ; then
10925		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10927		fi
10928
10929		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10931		fi
10932
10933		CFLAGS="$CFLAGS -Wno-cast-qual"
10934
10935		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-cast-qual" >&5
10936$as_echo_n "checking if $CC supports-Wno-cast-qual... " >&6; }
10937		cacheid=xorg_cv_cc_flag__Wno_cast_qual
10938		if eval \${$cacheid+:} false; then :
10939  $as_echo_n "(cached) " >&6
10940else
10941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942/* end confdefs.h.  */
10943int i;
10944int
10945main ()
10946{
10947
10948  ;
10949  return 0;
10950}
10951_ACEOF
10952if ac_fn_c_try_link "$LINENO"; then :
10953  eval $cacheid=yes
10954else
10955  eval $cacheid=no
10956fi
10957rm -f core conftest.err conftest.$ac_objext \
10958    conftest$ac_exeext conftest.$ac_ext
10959fi
10960
10961
10962		CFLAGS="$xorg_testset_save_CFLAGS"
10963
10964		eval supported=\$$cacheid
10965		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10966$as_echo "$supported" >&6; }
10967		if test "$supported" = "yes" ; then
10968			NOWARNFLAGS="$NOWARNFLAGS -Wno-cast-qual"
10969			found="yes"
10970		fi
10971	fi
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987xorg_testset_save_CFLAGS="$CFLAGS"
10988
10989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10994  $as_echo_n "(cached) " >&6
10995else
10996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997/* end confdefs.h.  */
10998int i;
10999_ACEOF
11000if ac_fn_c_try_compile "$LINENO"; then :
11001  xorg_cv_cc_flag_unknown_warning_option=yes
11002else
11003  xorg_cv_cc_flag_unknown_warning_option=no
11004fi
11005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006fi
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11010	CFLAGS="$xorg_testset_save_CFLAGS"
11011fi
11012
11013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016	fi
11017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11021  $as_echo_n "(cached) " >&6
11022else
11023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024/* end confdefs.h.  */
11025int i;
11026_ACEOF
11027if ac_fn_c_try_compile "$LINENO"; then :
11028  xorg_cv_cc_flag_unused_command_line_argument=yes
11029else
11030  xorg_cv_cc_flag_unused_command_line_argument=no
11031fi
11032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033fi
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11037	CFLAGS="$xorg_testset_save_CFLAGS"
11038fi
11039
11040found="no"
11041
11042	if test $found = "no" ; then
11043		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11045		fi
11046
11047		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11049		fi
11050
11051		CFLAGS="$CFLAGS -Wno-redundant-decls"
11052
11053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-redundant-decls" >&5
11054$as_echo_n "checking if $CC supports-Wno-redundant-decls... " >&6; }
11055		cacheid=xorg_cv_cc_flag__Wno_redundant_decls
11056		if eval \${$cacheid+:} false; then :
11057  $as_echo_n "(cached) " >&6
11058else
11059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060/* end confdefs.h.  */
11061int i;
11062int
11063main ()
11064{
11065
11066  ;
11067  return 0;
11068}
11069_ACEOF
11070if ac_fn_c_try_link "$LINENO"; then :
11071  eval $cacheid=yes
11072else
11073  eval $cacheid=no
11074fi
11075rm -f core conftest.err conftest.$ac_objext \
11076    conftest$ac_exeext conftest.$ac_ext
11077fi
11078
11079
11080		CFLAGS="$xorg_testset_save_CFLAGS"
11081
11082		eval supported=\$$cacheid
11083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11084$as_echo "$supported" >&6; }
11085		if test "$supported" = "yes" ; then
11086			NOWARNFLAGS="$NOWARNFLAGS -Wno-redundant-decls"
11087			found="yes"
11088		fi
11089	fi
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105xorg_testset_save_CFLAGS="$CFLAGS"
11106
11107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115/* end confdefs.h.  */
11116int i;
11117_ACEOF
11118if ac_fn_c_try_compile "$LINENO"; then :
11119  xorg_cv_cc_flag_unknown_warning_option=yes
11120else
11121  xorg_cv_cc_flag_unknown_warning_option=no
11122fi
11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124fi
11125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11128	CFLAGS="$xorg_testset_save_CFLAGS"
11129fi
11130
11131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11134	fi
11135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11139  $as_echo_n "(cached) " >&6
11140else
11141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142/* end confdefs.h.  */
11143int i;
11144_ACEOF
11145if ac_fn_c_try_compile "$LINENO"; then :
11146  xorg_cv_cc_flag_unused_command_line_argument=yes
11147else
11148  xorg_cv_cc_flag_unused_command_line_argument=no
11149fi
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151fi
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11155	CFLAGS="$xorg_testset_save_CFLAGS"
11156fi
11157
11158found="no"
11159
11160	if test $found = "no" ; then
11161		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11163		fi
11164
11165		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11167		fi
11168
11169		CFLAGS="$CFLAGS -Wno-maybe-uninitialized"
11170
11171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wno-maybe-uninitialized" >&5
11172$as_echo_n "checking if $CC supports-Wno-maybe-uninitialized... " >&6; }
11173		cacheid=xorg_cv_cc_flag__Wno_maybe_uninitialized
11174		if eval \${$cacheid+:} false; then :
11175  $as_echo_n "(cached) " >&6
11176else
11177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179int i;
11180int
11181main ()
11182{
11183
11184  ;
11185  return 0;
11186}
11187_ACEOF
11188if ac_fn_c_try_link "$LINENO"; then :
11189  eval $cacheid=yes
11190else
11191  eval $cacheid=no
11192fi
11193rm -f core conftest.err conftest.$ac_objext \
11194    conftest$ac_exeext conftest.$ac_ext
11195fi
11196
11197
11198		CFLAGS="$xorg_testset_save_CFLAGS"
11199
11200		eval supported=\$$cacheid
11201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11202$as_echo "$supported" >&6; }
11203		if test "$supported" = "yes" ; then
11204			NOWARNFLAGS="$NOWARNFLAGS -Wno-maybe-uninitialized"
11205			found="yes"
11206		fi
11207	fi
11208
11209
11210
11211
11212
11213# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
11214
11215
11216# Initialize libtool
11217# Check whether --enable-static was given.
11218if test "${enable_static+set}" = set; then :
11219  enableval=$enable_static; p=${PACKAGE-default}
11220    case $enableval in
11221    yes) enable_static=yes ;;
11222    no) enable_static=no ;;
11223    *)
11224     enable_static=no
11225      # Look at the argument we got.  We use all the common list separators.
11226      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11227      for pkg in $enableval; do
11228	IFS="$lt_save_ifs"
11229	if test "X$pkg" = "X$p"; then
11230	  enable_static=yes
11231	fi
11232      done
11233      IFS="$lt_save_ifs"
11234      ;;
11235    esac
11236else
11237  enable_static=no
11238fi
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248case `pwd` in
11249  *\ * | *\	*)
11250    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11251$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11252esac
11253
11254
11255
11256macro_version='2.4.2'
11257macro_revision='1.3337'
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271ltmain="$ac_aux_dir/ltmain.sh"
11272
11273# Backslashify metacharacters that are still active within
11274# double-quoted strings.
11275sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11276
11277# Same as above, but do not quote variable references.
11278double_quote_subst='s/\(["`\\]\)/\\\1/g'
11279
11280# Sed substitution to delay expansion of an escaped shell variable in a
11281# double_quote_subst'ed string.
11282delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11283
11284# Sed substitution to delay expansion of an escaped single quote.
11285delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11286
11287# Sed substitution to avoid accidental globbing in evaled expressions
11288no_glob_subst='s/\*/\\\*/g'
11289
11290ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11291ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11292ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11295$as_echo_n "checking how to print strings... " >&6; }
11296# Test print first, because it will be a builtin if present.
11297if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11298   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11299  ECHO='print -r --'
11300elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11301  ECHO='printf %s\n'
11302else
11303  # Use this function as a fallback that always works.
11304  func_fallback_echo ()
11305  {
11306    eval 'cat <<_LTECHO_EOF
11307$1
11308_LTECHO_EOF'
11309  }
11310  ECHO='func_fallback_echo'
11311fi
11312
11313# func_echo_all arg...
11314# Invoke $ECHO with all args, space-separated.
11315func_echo_all ()
11316{
11317    $ECHO ""
11318}
11319
11320case "$ECHO" in
11321  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11322$as_echo "printf" >&6; } ;;
11323  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11324$as_echo "print -r" >&6; } ;;
11325  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11326$as_echo "cat" >&6; } ;;
11327esac
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11343$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11344if ${ac_cv_path_SED+:} false; then :
11345  $as_echo_n "(cached) " >&6
11346else
11347            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11348     for ac_i in 1 2 3 4 5 6 7; do
11349       ac_script="$ac_script$as_nl$ac_script"
11350     done
11351     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11352     { ac_script=; unset ac_script;}
11353     if test -z "$SED"; then
11354  ac_path_SED_found=false
11355  # Loop through the user's path and test for each of PROGNAME-LIST
11356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357for as_dir in $PATH
11358do
11359  IFS=$as_save_IFS
11360  test -z "$as_dir" && as_dir=.
11361    for ac_prog in sed gsed; do
11362    for ac_exec_ext in '' $ac_executable_extensions; do
11363      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11364      as_fn_executable_p "$ac_path_SED" || continue
11365# Check for GNU ac_path_SED and select it if it is found.
11366  # Check for GNU $ac_path_SED
11367case `"$ac_path_SED" --version 2>&1` in
11368*GNU*)
11369  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11370*)
11371  ac_count=0
11372  $as_echo_n 0123456789 >"conftest.in"
11373  while :
11374  do
11375    cat "conftest.in" "conftest.in" >"conftest.tmp"
11376    mv "conftest.tmp" "conftest.in"
11377    cp "conftest.in" "conftest.nl"
11378    $as_echo '' >> "conftest.nl"
11379    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11381    as_fn_arith $ac_count + 1 && ac_count=$as_val
11382    if test $ac_count -gt ${ac_path_SED_max-0}; then
11383      # Best one so far, save it but keep looking for a better one
11384      ac_cv_path_SED="$ac_path_SED"
11385      ac_path_SED_max=$ac_count
11386    fi
11387    # 10*(2^10) chars as input seems more than enough
11388    test $ac_count -gt 10 && break
11389  done
11390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11391esac
11392
11393      $ac_path_SED_found && break 3
11394    done
11395  done
11396  done
11397IFS=$as_save_IFS
11398  if test -z "$ac_cv_path_SED"; then
11399    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11400  fi
11401else
11402  ac_cv_path_SED=$SED
11403fi
11404
11405fi
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11407$as_echo "$ac_cv_path_SED" >&6; }
11408 SED="$ac_cv_path_SED"
11409  rm -f conftest.sed
11410
11411test -z "$SED" && SED=sed
11412Xsed="$SED -e 1s/^X//"
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11425$as_echo_n "checking for fgrep... " >&6; }
11426if ${ac_cv_path_FGREP+:} false; then :
11427  $as_echo_n "(cached) " >&6
11428else
11429  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11430   then ac_cv_path_FGREP="$GREP -F"
11431   else
11432     if test -z "$FGREP"; then
11433  ac_path_FGREP_found=false
11434  # Loop through the user's path and test for each of PROGNAME-LIST
11435  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11437do
11438  IFS=$as_save_IFS
11439  test -z "$as_dir" && as_dir=.
11440    for ac_prog in fgrep; do
11441    for ac_exec_ext in '' $ac_executable_extensions; do
11442      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11443      as_fn_executable_p "$ac_path_FGREP" || continue
11444# Check for GNU ac_path_FGREP and select it if it is found.
11445  # Check for GNU $ac_path_FGREP
11446case `"$ac_path_FGREP" --version 2>&1` in
11447*GNU*)
11448  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11449*)
11450  ac_count=0
11451  $as_echo_n 0123456789 >"conftest.in"
11452  while :
11453  do
11454    cat "conftest.in" "conftest.in" >"conftest.tmp"
11455    mv "conftest.tmp" "conftest.in"
11456    cp "conftest.in" "conftest.nl"
11457    $as_echo 'FGREP' >> "conftest.nl"
11458    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11459    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11460    as_fn_arith $ac_count + 1 && ac_count=$as_val
11461    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11462      # Best one so far, save it but keep looking for a better one
11463      ac_cv_path_FGREP="$ac_path_FGREP"
11464      ac_path_FGREP_max=$ac_count
11465    fi
11466    # 10*(2^10) chars as input seems more than enough
11467    test $ac_count -gt 10 && break
11468  done
11469  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11470esac
11471
11472      $ac_path_FGREP_found && break 3
11473    done
11474  done
11475  done
11476IFS=$as_save_IFS
11477  if test -z "$ac_cv_path_FGREP"; then
11478    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11479  fi
11480else
11481  ac_cv_path_FGREP=$FGREP
11482fi
11483
11484   fi
11485fi
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11487$as_echo "$ac_cv_path_FGREP" >&6; }
11488 FGREP="$ac_cv_path_FGREP"
11489
11490
11491test -z "$GREP" && GREP=grep
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511# Check whether --with-gnu-ld was given.
11512if test "${with_gnu_ld+set}" = set; then :
11513  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11514else
11515  with_gnu_ld=no
11516fi
11517
11518ac_prog=ld
11519if test "$GCC" = yes; then
11520  # Check if gcc -print-prog-name=ld gives a path.
11521  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11522$as_echo_n "checking for ld used by $CC... " >&6; }
11523  case $host in
11524  *-*-mingw*)
11525    # gcc leaves a trailing carriage return which upsets mingw
11526    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11527  *)
11528    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11529  esac
11530  case $ac_prog in
11531    # Accept absolute paths.
11532    [\\/]* | ?:[\\/]*)
11533      re_direlt='/[^/][^/]*/\.\./'
11534      # Canonicalize the pathname of ld
11535      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11536      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11537	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11538      done
11539      test -z "$LD" && LD="$ac_prog"
11540      ;;
11541  "")
11542    # If it fails, then pretend we aren't using GCC.
11543    ac_prog=ld
11544    ;;
11545  *)
11546    # If it is relative, then search for the first ld in PATH.
11547    with_gnu_ld=unknown
11548    ;;
11549  esac
11550elif test "$with_gnu_ld" = yes; then
11551  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11552$as_echo_n "checking for GNU ld... " >&6; }
11553else
11554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11555$as_echo_n "checking for non-GNU ld... " >&6; }
11556fi
11557if ${lt_cv_path_LD+:} false; then :
11558  $as_echo_n "(cached) " >&6
11559else
11560  if test -z "$LD"; then
11561  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11562  for ac_dir in $PATH; do
11563    IFS="$lt_save_ifs"
11564    test -z "$ac_dir" && ac_dir=.
11565    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11566      lt_cv_path_LD="$ac_dir/$ac_prog"
11567      # Check to see if the program is GNU ld.  I'd rather use --version,
11568      # but apparently some variants of GNU ld only accept -v.
11569      # Break only if it was the GNU/non-GNU ld that we prefer.
11570      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11571      *GNU* | *'with BFD'*)
11572	test "$with_gnu_ld" != no && break
11573	;;
11574      *)
11575	test "$with_gnu_ld" != yes && break
11576	;;
11577      esac
11578    fi
11579  done
11580  IFS="$lt_save_ifs"
11581else
11582  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11583fi
11584fi
11585
11586LD="$lt_cv_path_LD"
11587if test -n "$LD"; then
11588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11589$as_echo "$LD" >&6; }
11590else
11591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592$as_echo "no" >&6; }
11593fi
11594test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11596$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11597if ${lt_cv_prog_gnu_ld+:} false; then :
11598  $as_echo_n "(cached) " >&6
11599else
11600  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11601case `$LD -v 2>&1 </dev/null` in
11602*GNU* | *'with BFD'*)
11603  lt_cv_prog_gnu_ld=yes
11604  ;;
11605*)
11606  lt_cv_prog_gnu_ld=no
11607  ;;
11608esac
11609fi
11610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11611$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11612with_gnu_ld=$lt_cv_prog_gnu_ld
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11623$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11624if ${lt_cv_path_NM+:} false; then :
11625  $as_echo_n "(cached) " >&6
11626else
11627  if test -n "$NM"; then
11628  # Let the user override the test.
11629  lt_cv_path_NM="$NM"
11630else
11631  lt_nm_to_check="${ac_tool_prefix}nm"
11632  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11633    lt_nm_to_check="$lt_nm_to_check nm"
11634  fi
11635  for lt_tmp_nm in $lt_nm_to_check; do
11636    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11637    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11638      IFS="$lt_save_ifs"
11639      test -z "$ac_dir" && ac_dir=.
11640      tmp_nm="$ac_dir/$lt_tmp_nm"
11641      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11642	# Check to see if the nm accepts a BSD-compat flag.
11643	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11644	#   nm: unknown option "B" ignored
11645	# Tru64's nm complains that /dev/null is an invalid object file
11646	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11647	*/dev/null* | *'Invalid file or object type'*)
11648	  lt_cv_path_NM="$tmp_nm -B"
11649	  break
11650	  ;;
11651	*)
11652	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11653	  */dev/null*)
11654	    lt_cv_path_NM="$tmp_nm -p"
11655	    break
11656	    ;;
11657	  *)
11658	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11659	    continue # so that we can try to find one that supports BSD flags
11660	    ;;
11661	  esac
11662	  ;;
11663	esac
11664      fi
11665    done
11666    IFS="$lt_save_ifs"
11667  done
11668  : ${lt_cv_path_NM=no}
11669fi
11670fi
11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11672$as_echo "$lt_cv_path_NM" >&6; }
11673if test "$lt_cv_path_NM" != "no"; then
11674  NM="$lt_cv_path_NM"
11675else
11676  # Didn't find any BSD compatible name lister, look for dumpbin.
11677  if test -n "$DUMPBIN"; then :
11678    # Let the user override the test.
11679  else
11680    if test -n "$ac_tool_prefix"; then
11681  for ac_prog in dumpbin "link -dump"
11682  do
11683    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11684set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11686$as_echo_n "checking for $ac_word... " >&6; }
11687if ${ac_cv_prog_DUMPBIN+:} false; then :
11688  $as_echo_n "(cached) " >&6
11689else
11690  if test -n "$DUMPBIN"; then
11691  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11692else
11693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694for as_dir in $PATH
11695do
11696  IFS=$as_save_IFS
11697  test -z "$as_dir" && as_dir=.
11698    for ac_exec_ext in '' $ac_executable_extensions; do
11699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11700    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702    break 2
11703  fi
11704done
11705  done
11706IFS=$as_save_IFS
11707
11708fi
11709fi
11710DUMPBIN=$ac_cv_prog_DUMPBIN
11711if test -n "$DUMPBIN"; then
11712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11713$as_echo "$DUMPBIN" >&6; }
11714else
11715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716$as_echo "no" >&6; }
11717fi
11718
11719
11720    test -n "$DUMPBIN" && break
11721  done
11722fi
11723if test -z "$DUMPBIN"; then
11724  ac_ct_DUMPBIN=$DUMPBIN
11725  for ac_prog in dumpbin "link -dump"
11726do
11727  # Extract the first word of "$ac_prog", so it can be a program name with args.
11728set dummy $ac_prog; ac_word=$2
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730$as_echo_n "checking for $ac_word... " >&6; }
11731if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734  if test -n "$ac_ct_DUMPBIN"; then
11735  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11736else
11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740  IFS=$as_save_IFS
11741  test -z "$as_dir" && as_dir=.
11742    for ac_exec_ext in '' $ac_executable_extensions; do
11743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746    break 2
11747  fi
11748done
11749  done
11750IFS=$as_save_IFS
11751
11752fi
11753fi
11754ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11755if test -n "$ac_ct_DUMPBIN"; then
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11757$as_echo "$ac_ct_DUMPBIN" >&6; }
11758else
11759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
11761fi
11762
11763
11764  test -n "$ac_ct_DUMPBIN" && break
11765done
11766
11767  if test "x$ac_ct_DUMPBIN" = x; then
11768    DUMPBIN=":"
11769  else
11770    case $cross_compiling:$ac_tool_warned in
11771yes:)
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11774ac_tool_warned=yes ;;
11775esac
11776    DUMPBIN=$ac_ct_DUMPBIN
11777  fi
11778fi
11779
11780    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11781    *COFF*)
11782      DUMPBIN="$DUMPBIN -symbols"
11783      ;;
11784    *)
11785      DUMPBIN=:
11786      ;;
11787    esac
11788  fi
11789
11790  if test "$DUMPBIN" != ":"; then
11791    NM="$DUMPBIN"
11792  fi
11793fi
11794test -z "$NM" && NM=nm
11795
11796
11797
11798
11799
11800
11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11802$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11803if ${lt_cv_nm_interface+:} false; then :
11804  $as_echo_n "(cached) " >&6
11805else
11806  lt_cv_nm_interface="BSD nm"
11807  echo "int some_variable = 0;" > conftest.$ac_ext
11808  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11809  (eval "$ac_compile" 2>conftest.err)
11810  cat conftest.err >&5
11811  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11812  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11813  cat conftest.err >&5
11814  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11815  cat conftest.out >&5
11816  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11817    lt_cv_nm_interface="MS dumpbin"
11818  fi
11819  rm -f conftest*
11820fi
11821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11822$as_echo "$lt_cv_nm_interface" >&6; }
11823
11824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11825$as_echo_n "checking whether ln -s works... " >&6; }
11826LN_S=$as_ln_s
11827if test "$LN_S" = "ln -s"; then
11828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11829$as_echo "yes" >&6; }
11830else
11831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11832$as_echo "no, using $LN_S" >&6; }
11833fi
11834
11835# find the maximum length of command line arguments
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11837$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11838if ${lt_cv_sys_max_cmd_len+:} false; then :
11839  $as_echo_n "(cached) " >&6
11840else
11841    i=0
11842  teststring="ABCD"
11843
11844  case $build_os in
11845  msdosdjgpp*)
11846    # On DJGPP, this test can blow up pretty badly due to problems in libc
11847    # (any single argument exceeding 2000 bytes causes a buffer overrun
11848    # during glob expansion).  Even if it were fixed, the result of this
11849    # check would be larger than it should be.
11850    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11851    ;;
11852
11853  gnu*)
11854    # Under GNU Hurd, this test is not required because there is
11855    # no limit to the length of command line arguments.
11856    # Libtool will interpret -1 as no limit whatsoever
11857    lt_cv_sys_max_cmd_len=-1;
11858    ;;
11859
11860  cygwin* | mingw* | cegcc*)
11861    # On Win9x/ME, this test blows up -- it succeeds, but takes
11862    # about 5 minutes as the teststring grows exponentially.
11863    # Worse, since 9x/ME are not pre-emptively multitasking,
11864    # you end up with a "frozen" computer, even though with patience
11865    # the test eventually succeeds (with a max line length of 256k).
11866    # Instead, let's just punt: use the minimum linelength reported by
11867    # all of the supported platforms: 8192 (on NT/2K/XP).
11868    lt_cv_sys_max_cmd_len=8192;
11869    ;;
11870
11871  mint*)
11872    # On MiNT this can take a long time and run out of memory.
11873    lt_cv_sys_max_cmd_len=8192;
11874    ;;
11875
11876  amigaos*)
11877    # On AmigaOS with pdksh, this test takes hours, literally.
11878    # So we just punt and use a minimum line length of 8192.
11879    lt_cv_sys_max_cmd_len=8192;
11880    ;;
11881
11882  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11883    # This has been around since 386BSD, at least.  Likely further.
11884    if test -x /sbin/sysctl; then
11885      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11886    elif test -x /usr/sbin/sysctl; then
11887      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11888    else
11889      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11890    fi
11891    # And add a safety zone
11892    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11893    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11894    ;;
11895
11896  interix*)
11897    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11898    lt_cv_sys_max_cmd_len=196608
11899    ;;
11900
11901  osf*)
11902    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11903    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11904    # nice to cause kernel panics so lets avoid the loop below.
11905    # First set a reasonable default.
11906    lt_cv_sys_max_cmd_len=16384
11907    #
11908    if test -x /sbin/sysconfig; then
11909      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11910        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11911      esac
11912    fi
11913    ;;
11914  sco3.2v5*)
11915    lt_cv_sys_max_cmd_len=102400
11916    ;;
11917  sysv5* | sco5v6* | sysv4.2uw2*)
11918    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11919    if test -n "$kargmax"; then
11920      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11921    else
11922      lt_cv_sys_max_cmd_len=32768
11923    fi
11924    ;;
11925  *)
11926    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11927    if test -n "$lt_cv_sys_max_cmd_len"; then
11928      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11929      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11930    else
11931      # Make teststring a little bigger before we do anything with it.
11932      # a 1K string should be a reasonable start.
11933      for i in 1 2 3 4 5 6 7 8 ; do
11934        teststring=$teststring$teststring
11935      done
11936      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11937      # If test is not a shell built-in, we'll probably end up computing a
11938      # maximum length that is only half of the actual maximum length, but
11939      # we can't tell.
11940      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11941	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11942	      test $i != 17 # 1/2 MB should be enough
11943      do
11944        i=`expr $i + 1`
11945        teststring=$teststring$teststring
11946      done
11947      # Only check the string length outside the loop.
11948      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11949      teststring=
11950      # Add a significant safety factor because C++ compilers can tack on
11951      # massive amounts of additional arguments before passing them to the
11952      # linker.  It appears as though 1/2 is a usable value.
11953      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11954    fi
11955    ;;
11956  esac
11957
11958fi
11959
11960if test -n $lt_cv_sys_max_cmd_len ; then
11961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11962$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11963else
11964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11965$as_echo "none" >&6; }
11966fi
11967max_cmd_len=$lt_cv_sys_max_cmd_len
11968
11969
11970
11971
11972
11973
11974: ${CP="cp -f"}
11975: ${MV="mv -f"}
11976: ${RM="rm -f"}
11977
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11979$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11980# Try some XSI features
11981xsi_shell=no
11982( _lt_dummy="a/b/c"
11983  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11984      = c,a/b,b/c, \
11985    && eval 'test $(( 1 + 1 )) -eq 2 \
11986    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11987  && xsi_shell=yes
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11989$as_echo "$xsi_shell" >&6; }
11990
11991
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11993$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11994lt_shell_append=no
11995( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11996    >/dev/null 2>&1 \
11997  && lt_shell_append=yes
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11999$as_echo "$lt_shell_append" >&6; }
12000
12001
12002if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12003  lt_unset=unset
12004else
12005  lt_unset=false
12006fi
12007
12008
12009
12010
12011
12012# test EBCDIC or ASCII
12013case `echo X|tr X '\101'` in
12014 A) # ASCII based system
12015    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12016  lt_SP2NL='tr \040 \012'
12017  lt_NL2SP='tr \015\012 \040\040'
12018  ;;
12019 *) # EBCDIC based system
12020  lt_SP2NL='tr \100 \n'
12021  lt_NL2SP='tr \r\n \100\100'
12022  ;;
12023esac
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12034$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12035if ${lt_cv_to_host_file_cmd+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  case $host in
12039  *-*-mingw* )
12040    case $build in
12041      *-*-mingw* ) # actually msys
12042        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12043        ;;
12044      *-*-cygwin* )
12045        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12046        ;;
12047      * ) # otherwise, assume *nix
12048        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12049        ;;
12050    esac
12051    ;;
12052  *-*-cygwin* )
12053    case $build in
12054      *-*-mingw* ) # actually msys
12055        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12056        ;;
12057      *-*-cygwin* )
12058        lt_cv_to_host_file_cmd=func_convert_file_noop
12059        ;;
12060      * ) # otherwise, assume *nix
12061        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12062        ;;
12063    esac
12064    ;;
12065  * ) # unhandled hosts (and "normal" native builds)
12066    lt_cv_to_host_file_cmd=func_convert_file_noop
12067    ;;
12068esac
12069
12070fi
12071
12072to_host_file_cmd=$lt_cv_to_host_file_cmd
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12074$as_echo "$lt_cv_to_host_file_cmd" >&6; }
12075
12076
12077
12078
12079
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12081$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12082if ${lt_cv_to_tool_file_cmd+:} false; then :
12083  $as_echo_n "(cached) " >&6
12084else
12085  #assume ordinary cross tools, or native build.
12086lt_cv_to_tool_file_cmd=func_convert_file_noop
12087case $host in
12088  *-*-mingw* )
12089    case $build in
12090      *-*-mingw* ) # actually msys
12091        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12092        ;;
12093    esac
12094    ;;
12095esac
12096
12097fi
12098
12099to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12101$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12102
12103
12104
12105
12106
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12108$as_echo_n "checking for $LD option to reload object files... " >&6; }
12109if ${lt_cv_ld_reload_flag+:} false; then :
12110  $as_echo_n "(cached) " >&6
12111else
12112  lt_cv_ld_reload_flag='-r'
12113fi
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12115$as_echo "$lt_cv_ld_reload_flag" >&6; }
12116reload_flag=$lt_cv_ld_reload_flag
12117case $reload_flag in
12118"" | " "*) ;;
12119*) reload_flag=" $reload_flag" ;;
12120esac
12121reload_cmds='$LD$reload_flag -o $output$reload_objs'
12122case $host_os in
12123  cygwin* | mingw* | pw32* | cegcc*)
12124    if test "$GCC" != yes; then
12125      reload_cmds=false
12126    fi
12127    ;;
12128  darwin*)
12129    if test "$GCC" = yes; then
12130      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12131    else
12132      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12133    fi
12134    ;;
12135esac
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145if test -n "$ac_tool_prefix"; then
12146  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12147set dummy ${ac_tool_prefix}objdump; ac_word=$2
12148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12149$as_echo_n "checking for $ac_word... " >&6; }
12150if ${ac_cv_prog_OBJDUMP+:} false; then :
12151  $as_echo_n "(cached) " >&6
12152else
12153  if test -n "$OBJDUMP"; then
12154  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12155else
12156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157for as_dir in $PATH
12158do
12159  IFS=$as_save_IFS
12160  test -z "$as_dir" && as_dir=.
12161    for ac_exec_ext in '' $ac_executable_extensions; do
12162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12165    break 2
12166  fi
12167done
12168  done
12169IFS=$as_save_IFS
12170
12171fi
12172fi
12173OBJDUMP=$ac_cv_prog_OBJDUMP
12174if test -n "$OBJDUMP"; then
12175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12176$as_echo "$OBJDUMP" >&6; }
12177else
12178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12179$as_echo "no" >&6; }
12180fi
12181
12182
12183fi
12184if test -z "$ac_cv_prog_OBJDUMP"; then
12185  ac_ct_OBJDUMP=$OBJDUMP
12186  # Extract the first word of "objdump", so it can be a program name with args.
12187set dummy objdump; ac_word=$2
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12189$as_echo_n "checking for $ac_word... " >&6; }
12190if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12191  $as_echo_n "(cached) " >&6
12192else
12193  if test -n "$ac_ct_OBJDUMP"; then
12194  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12195else
12196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12197for as_dir in $PATH
12198do
12199  IFS=$as_save_IFS
12200  test -z "$as_dir" && as_dir=.
12201    for ac_exec_ext in '' $ac_executable_extensions; do
12202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12203    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205    break 2
12206  fi
12207done
12208  done
12209IFS=$as_save_IFS
12210
12211fi
12212fi
12213ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12214if test -n "$ac_ct_OBJDUMP"; then
12215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12216$as_echo "$ac_ct_OBJDUMP" >&6; }
12217else
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219$as_echo "no" >&6; }
12220fi
12221
12222  if test "x$ac_ct_OBJDUMP" = x; then
12223    OBJDUMP="false"
12224  else
12225    case $cross_compiling:$ac_tool_warned in
12226yes:)
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12229ac_tool_warned=yes ;;
12230esac
12231    OBJDUMP=$ac_ct_OBJDUMP
12232  fi
12233else
12234  OBJDUMP="$ac_cv_prog_OBJDUMP"
12235fi
12236
12237test -z "$OBJDUMP" && OBJDUMP=objdump
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12248$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12249if ${lt_cv_deplibs_check_method+:} false; then :
12250  $as_echo_n "(cached) " >&6
12251else
12252  lt_cv_file_magic_cmd='$MAGIC_CMD'
12253lt_cv_file_magic_test_file=
12254lt_cv_deplibs_check_method='unknown'
12255# Need to set the preceding variable on all platforms that support
12256# interlibrary dependencies.
12257# 'none' -- dependencies not supported.
12258# `unknown' -- same as none, but documents that we really don't know.
12259# 'pass_all' -- all dependencies passed with no checks.
12260# 'test_compile' -- check by making test program.
12261# 'file_magic [[regex]]' -- check by looking for files in library path
12262# which responds to the $file_magic_cmd with a given extended regex.
12263# If you have `file' or equivalent on your system and you're not sure
12264# whether `pass_all' will *always* work, you probably want this one.
12265
12266case $host_os in
12267aix[4-9]*)
12268  lt_cv_deplibs_check_method=pass_all
12269  ;;
12270
12271beos*)
12272  lt_cv_deplibs_check_method=pass_all
12273  ;;
12274
12275bsdi[45]*)
12276  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12277  lt_cv_file_magic_cmd='/usr/bin/file -L'
12278  lt_cv_file_magic_test_file=/shlib/libc.so
12279  ;;
12280
12281cygwin*)
12282  # func_win32_libid is a shell function defined in ltmain.sh
12283  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12284  lt_cv_file_magic_cmd='func_win32_libid'
12285  ;;
12286
12287mingw* | pw32*)
12288  # Base MSYS/MinGW do not provide the 'file' command needed by
12289  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12290  # unless we find 'file', for example because we are cross-compiling.
12291  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12292  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12293    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12294    lt_cv_file_magic_cmd='func_win32_libid'
12295  else
12296    # Keep this pattern in sync with the one in func_win32_libid.
12297    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12298    lt_cv_file_magic_cmd='$OBJDUMP -f'
12299  fi
12300  ;;
12301
12302cegcc*)
12303  # use the weaker test based on 'objdump'. See mingw*.
12304  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12305  lt_cv_file_magic_cmd='$OBJDUMP -f'
12306  ;;
12307
12308darwin* | rhapsody*)
12309  lt_cv_deplibs_check_method=pass_all
12310  ;;
12311
12312freebsd* | dragonfly*)
12313  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12314    case $host_cpu in
12315    i*86 )
12316      # Not sure whether the presence of OpenBSD here was a mistake.
12317      # Let's accept both of them until this is cleared up.
12318      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12319      lt_cv_file_magic_cmd=/usr/bin/file
12320      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12321      ;;
12322    esac
12323  else
12324    lt_cv_deplibs_check_method=pass_all
12325  fi
12326  ;;
12327
12328gnu*)
12329  lt_cv_deplibs_check_method=pass_all
12330  ;;
12331
12332haiku*)
12333  lt_cv_deplibs_check_method=pass_all
12334  ;;
12335
12336hpux10.20* | hpux11*)
12337  lt_cv_file_magic_cmd=/usr/bin/file
12338  case $host_cpu in
12339  ia64*)
12340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12341    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12342    ;;
12343  hppa*64*)
12344    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]'
12345    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12346    ;;
12347  *)
12348    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12349    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12350    ;;
12351  esac
12352  ;;
12353
12354interix[3-9]*)
12355  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12356  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12357  ;;
12358
12359irix5* | irix6* | nonstopux*)
12360  case $LD in
12361  *-32|*"-32 ") libmagic=32-bit;;
12362  *-n32|*"-n32 ") libmagic=N32;;
12363  *-64|*"-64 ") libmagic=64-bit;;
12364  *) libmagic=never-match;;
12365  esac
12366  lt_cv_deplibs_check_method=pass_all
12367  ;;
12368
12369# This must be Linux ELF.
12370linux* | k*bsd*-gnu | kopensolaris*-gnu)
12371  lt_cv_deplibs_check_method=pass_all
12372  ;;
12373
12374netbsd* | netbsdelf*-gnu)
12375  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12376    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12377  else
12378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12379  fi
12380  ;;
12381
12382newos6*)
12383  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12384  lt_cv_file_magic_cmd=/usr/bin/file
12385  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12386  ;;
12387
12388*nto* | *qnx*)
12389  lt_cv_deplibs_check_method=pass_all
12390  ;;
12391
12392openbsd*)
12393  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12395  else
12396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12397  fi
12398  ;;
12399
12400osf3* | osf4* | osf5*)
12401  lt_cv_deplibs_check_method=pass_all
12402  ;;
12403
12404rdos*)
12405  lt_cv_deplibs_check_method=pass_all
12406  ;;
12407
12408solaris*)
12409  lt_cv_deplibs_check_method=pass_all
12410  ;;
12411
12412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12413  lt_cv_deplibs_check_method=pass_all
12414  ;;
12415
12416sysv4 | sysv4.3*)
12417  case $host_vendor in
12418  motorola)
12419    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]'
12420    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12421    ;;
12422  ncr)
12423    lt_cv_deplibs_check_method=pass_all
12424    ;;
12425  sequent)
12426    lt_cv_file_magic_cmd='/bin/file'
12427    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12428    ;;
12429  sni)
12430    lt_cv_file_magic_cmd='/bin/file'
12431    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12432    lt_cv_file_magic_test_file=/lib/libc.so
12433    ;;
12434  siemens)
12435    lt_cv_deplibs_check_method=pass_all
12436    ;;
12437  pc)
12438    lt_cv_deplibs_check_method=pass_all
12439    ;;
12440  esac
12441  ;;
12442
12443tpf*)
12444  lt_cv_deplibs_check_method=pass_all
12445  ;;
12446esac
12447
12448fi
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12450$as_echo "$lt_cv_deplibs_check_method" >&6; }
12451
12452file_magic_glob=
12453want_nocaseglob=no
12454if test "$build" = "$host"; then
12455  case $host_os in
12456  mingw* | pw32*)
12457    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12458      want_nocaseglob=yes
12459    else
12460      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12461    fi
12462    ;;
12463  esac
12464fi
12465
12466file_magic_cmd=$lt_cv_file_magic_cmd
12467deplibs_check_method=$lt_cv_deplibs_check_method
12468test -z "$deplibs_check_method" && deplibs_check_method=unknown
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491if test -n "$ac_tool_prefix"; then
12492  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12493set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495$as_echo_n "checking for $ac_word... " >&6; }
12496if ${ac_cv_prog_DLLTOOL+:} false; then :
12497  $as_echo_n "(cached) " >&6
12498else
12499  if test -n "$DLLTOOL"; then
12500  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12501else
12502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $PATH
12504do
12505  IFS=$as_save_IFS
12506  test -z "$as_dir" && as_dir=.
12507    for ac_exec_ext in '' $ac_executable_extensions; do
12508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12509    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511    break 2
12512  fi
12513done
12514  done
12515IFS=$as_save_IFS
12516
12517fi
12518fi
12519DLLTOOL=$ac_cv_prog_DLLTOOL
12520if test -n "$DLLTOOL"; then
12521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12522$as_echo "$DLLTOOL" >&6; }
12523else
12524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
12526fi
12527
12528
12529fi
12530if test -z "$ac_cv_prog_DLLTOOL"; then
12531  ac_ct_DLLTOOL=$DLLTOOL
12532  # Extract the first word of "dlltool", so it can be a program name with args.
12533set dummy dlltool; ac_word=$2
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535$as_echo_n "checking for $ac_word... " >&6; }
12536if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12537  $as_echo_n "(cached) " >&6
12538else
12539  if test -n "$ac_ct_DLLTOOL"; then
12540  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12541else
12542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12543for as_dir in $PATH
12544do
12545  IFS=$as_save_IFS
12546  test -z "$as_dir" && as_dir=.
12547    for ac_exec_ext in '' $ac_executable_extensions; do
12548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12549    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12551    break 2
12552  fi
12553done
12554  done
12555IFS=$as_save_IFS
12556
12557fi
12558fi
12559ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12560if test -n "$ac_ct_DLLTOOL"; then
12561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12562$as_echo "$ac_ct_DLLTOOL" >&6; }
12563else
12564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565$as_echo "no" >&6; }
12566fi
12567
12568  if test "x$ac_ct_DLLTOOL" = x; then
12569    DLLTOOL="false"
12570  else
12571    case $cross_compiling:$ac_tool_warned in
12572yes:)
12573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12575ac_tool_warned=yes ;;
12576esac
12577    DLLTOOL=$ac_ct_DLLTOOL
12578  fi
12579else
12580  DLLTOOL="$ac_cv_prog_DLLTOOL"
12581fi
12582
12583test -z "$DLLTOOL" && DLLTOOL=dlltool
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12595$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12596if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12597  $as_echo_n "(cached) " >&6
12598else
12599  lt_cv_sharedlib_from_linklib_cmd='unknown'
12600
12601case $host_os in
12602cygwin* | mingw* | pw32* | cegcc*)
12603  # two different shell functions defined in ltmain.sh
12604  # decide which to use based on capabilities of $DLLTOOL
12605  case `$DLLTOOL --help 2>&1` in
12606  *--identify-strict*)
12607    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12608    ;;
12609  *)
12610    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12611    ;;
12612  esac
12613  ;;
12614*)
12615  # fallback: assume linklib IS sharedlib
12616  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12617  ;;
12618esac
12619
12620fi
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12622$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12623sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12624test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12625
12626
12627
12628
12629
12630
12631
12632if test -n "$ac_tool_prefix"; then
12633  for ac_prog in ar
12634  do
12635    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638$as_echo_n "checking for $ac_word... " >&6; }
12639if ${ac_cv_prog_AR+:} false; then :
12640  $as_echo_n "(cached) " >&6
12641else
12642  if test -n "$AR"; then
12643  ac_cv_prog_AR="$AR" # Let the user override the test.
12644else
12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $PATH
12647do
12648  IFS=$as_save_IFS
12649  test -z "$as_dir" && as_dir=.
12650    for ac_exec_ext in '' $ac_executable_extensions; do
12651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654    break 2
12655  fi
12656done
12657  done
12658IFS=$as_save_IFS
12659
12660fi
12661fi
12662AR=$ac_cv_prog_AR
12663if test -n "$AR"; then
12664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12665$as_echo "$AR" >&6; }
12666else
12667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669fi
12670
12671
12672    test -n "$AR" && break
12673  done
12674fi
12675if test -z "$AR"; then
12676  ac_ct_AR=$AR
12677  for ac_prog in ar
12678do
12679  # Extract the first word of "$ac_prog", so it can be a program name with args.
12680set dummy $ac_prog; ac_word=$2
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
12683if ${ac_cv_prog_ac_ct_AR+:} false; then :
12684  $as_echo_n "(cached) " >&6
12685else
12686  if test -n "$ac_ct_AR"; then
12687  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692  IFS=$as_save_IFS
12693  test -z "$as_dir" && as_dir=.
12694    for ac_exec_ext in '' $ac_executable_extensions; do
12695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12696    ac_cv_prog_ac_ct_AR="$ac_prog"
12697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698    break 2
12699  fi
12700done
12701  done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706ac_ct_AR=$ac_cv_prog_ac_ct_AR
12707if test -n "$ac_ct_AR"; then
12708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12709$as_echo "$ac_ct_AR" >&6; }
12710else
12711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715
12716  test -n "$ac_ct_AR" && break
12717done
12718
12719  if test "x$ac_ct_AR" = x; then
12720    AR="false"
12721  else
12722    case $cross_compiling:$ac_tool_warned in
12723yes:)
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12726ac_tool_warned=yes ;;
12727esac
12728    AR=$ac_ct_AR
12729  fi
12730fi
12731
12732: ${AR=ar}
12733: ${AR_FLAGS=cru}
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12746$as_echo_n "checking for archiver @FILE support... " >&6; }
12747if ${lt_cv_ar_at_file+:} false; then :
12748  $as_echo_n "(cached) " >&6
12749else
12750  lt_cv_ar_at_file=no
12751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h.  */
12753
12754int
12755main ()
12756{
12757
12758  ;
12759  return 0;
12760}
12761_ACEOF
12762if ac_fn_c_try_compile "$LINENO"; then :
12763  echo conftest.$ac_objext > conftest.lst
12764      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12765      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12766  (eval $lt_ar_try) 2>&5
12767  ac_status=$?
12768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12769  test $ac_status = 0; }
12770      if test "$ac_status" -eq 0; then
12771	# Ensure the archiver fails upon bogus file names.
12772	rm -f conftest.$ac_objext libconftest.a
12773	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12774  (eval $lt_ar_try) 2>&5
12775  ac_status=$?
12776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777  test $ac_status = 0; }
12778	if test "$ac_status" -ne 0; then
12779          lt_cv_ar_at_file=@
12780        fi
12781      fi
12782      rm -f conftest.* libconftest.a
12783
12784fi
12785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786
12787fi
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12789$as_echo "$lt_cv_ar_at_file" >&6; }
12790
12791if test "x$lt_cv_ar_at_file" = xno; then
12792  archiver_list_spec=
12793else
12794  archiver_list_spec=$lt_cv_ar_at_file
12795fi
12796
12797
12798
12799
12800
12801
12802
12803if test -n "$ac_tool_prefix"; then
12804  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12805set dummy ${ac_tool_prefix}strip; ac_word=$2
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if ${ac_cv_prog_STRIP+:} false; then :
12809  $as_echo_n "(cached) " >&6
12810else
12811  if test -n "$STRIP"; then
12812  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12813else
12814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $PATH
12816do
12817  IFS=$as_save_IFS
12818  test -z "$as_dir" && as_dir=.
12819    for ac_exec_ext in '' $ac_executable_extensions; do
12820  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12821    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823    break 2
12824  fi
12825done
12826  done
12827IFS=$as_save_IFS
12828
12829fi
12830fi
12831STRIP=$ac_cv_prog_STRIP
12832if test -n "$STRIP"; then
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12834$as_echo "$STRIP" >&6; }
12835else
12836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
12838fi
12839
12840
12841fi
12842if test -z "$ac_cv_prog_STRIP"; then
12843  ac_ct_STRIP=$STRIP
12844  # Extract the first word of "strip", so it can be a program name with args.
12845set dummy strip; ac_word=$2
12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12847$as_echo_n "checking for $ac_word... " >&6; }
12848if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12849  $as_echo_n "(cached) " >&6
12850else
12851  if test -n "$ac_ct_STRIP"; then
12852  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12853else
12854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855for as_dir in $PATH
12856do
12857  IFS=$as_save_IFS
12858  test -z "$as_dir" && as_dir=.
12859    for ac_exec_ext in '' $ac_executable_extensions; do
12860  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12861    ac_cv_prog_ac_ct_STRIP="strip"
12862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12863    break 2
12864  fi
12865done
12866  done
12867IFS=$as_save_IFS
12868
12869fi
12870fi
12871ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12872if test -n "$ac_ct_STRIP"; then
12873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12874$as_echo "$ac_ct_STRIP" >&6; }
12875else
12876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877$as_echo "no" >&6; }
12878fi
12879
12880  if test "x$ac_ct_STRIP" = x; then
12881    STRIP=":"
12882  else
12883    case $cross_compiling:$ac_tool_warned in
12884yes:)
12885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12887ac_tool_warned=yes ;;
12888esac
12889    STRIP=$ac_ct_STRIP
12890  fi
12891else
12892  STRIP="$ac_cv_prog_STRIP"
12893fi
12894
12895test -z "$STRIP" && STRIP=:
12896
12897
12898
12899
12900
12901
12902if test -n "$ac_tool_prefix"; then
12903  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12904set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
12907if ${ac_cv_prog_RANLIB+:} false; then :
12908  $as_echo_n "(cached) " >&6
12909else
12910  if test -n "$RANLIB"; then
12911  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916  IFS=$as_save_IFS
12917  test -z "$as_dir" && as_dir=.
12918    for ac_exec_ext in '' $ac_executable_extensions; do
12919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12920    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922    break 2
12923  fi
12924done
12925  done
12926IFS=$as_save_IFS
12927
12928fi
12929fi
12930RANLIB=$ac_cv_prog_RANLIB
12931if test -n "$RANLIB"; then
12932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12933$as_echo "$RANLIB" >&6; }
12934else
12935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
12937fi
12938
12939
12940fi
12941if test -z "$ac_cv_prog_RANLIB"; then
12942  ac_ct_RANLIB=$RANLIB
12943  # Extract the first word of "ranlib", so it can be a program name with args.
12944set dummy ranlib; ac_word=$2
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946$as_echo_n "checking for $ac_word... " >&6; }
12947if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12948  $as_echo_n "(cached) " >&6
12949else
12950  if test -n "$ac_ct_RANLIB"; then
12951  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12952else
12953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12954for as_dir in $PATH
12955do
12956  IFS=$as_save_IFS
12957  test -z "$as_dir" && as_dir=.
12958    for ac_exec_ext in '' $ac_executable_extensions; do
12959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12960    ac_cv_prog_ac_ct_RANLIB="ranlib"
12961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12962    break 2
12963  fi
12964done
12965  done
12966IFS=$as_save_IFS
12967
12968fi
12969fi
12970ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12971if test -n "$ac_ct_RANLIB"; then
12972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12973$as_echo "$ac_ct_RANLIB" >&6; }
12974else
12975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976$as_echo "no" >&6; }
12977fi
12978
12979  if test "x$ac_ct_RANLIB" = x; then
12980    RANLIB=":"
12981  else
12982    case $cross_compiling:$ac_tool_warned in
12983yes:)
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12986ac_tool_warned=yes ;;
12987esac
12988    RANLIB=$ac_ct_RANLIB
12989  fi
12990else
12991  RANLIB="$ac_cv_prog_RANLIB"
12992fi
12993
12994test -z "$RANLIB" && RANLIB=:
12995
12996
12997
12998
12999
13000
13001# Determine commands to create old-style static archives.
13002old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13003old_postinstall_cmds='chmod 644 $oldlib'
13004old_postuninstall_cmds=
13005
13006if test -n "$RANLIB"; then
13007  case $host_os in
13008  openbsd*)
13009    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13010    ;;
13011  *)
13012    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13013    ;;
13014  esac
13015  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13016fi
13017
13018case $host_os in
13019  darwin*)
13020    lock_old_archive_extraction=yes ;;
13021  *)
13022    lock_old_archive_extraction=no ;;
13023esac
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063# If no C compiler was specified, use CC.
13064LTCC=${LTCC-"$CC"}
13065
13066# If no C compiler flags were specified, use CFLAGS.
13067LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13068
13069# Allow CC to be a program name with arguments.
13070compiler=$CC
13071
13072
13073# Check for command to grab the raw symbol name followed by C symbol from nm.
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13075$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13076if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13077  $as_echo_n "(cached) " >&6
13078else
13079
13080# These are sane defaults that work on at least a few old systems.
13081# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13082
13083# Character class describing NM global symbol codes.
13084symcode='[BCDEGRST]'
13085
13086# Regexp to match symbols that can be accessed directly from C.
13087sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13088
13089# Define system-specific variables.
13090case $host_os in
13091aix*)
13092  symcode='[BCDT]'
13093  ;;
13094cygwin* | mingw* | pw32* | cegcc*)
13095  symcode='[ABCDGISTW]'
13096  ;;
13097hpux*)
13098  if test "$host_cpu" = ia64; then
13099    symcode='[ABCDEGRST]'
13100  fi
13101  ;;
13102irix* | nonstopux*)
13103  symcode='[BCDEGRST]'
13104  ;;
13105osf*)
13106  symcode='[BCDEGQRST]'
13107  ;;
13108solaris*)
13109  symcode='[BDRT]'
13110  ;;
13111sco3.2v5*)
13112  symcode='[DT]'
13113  ;;
13114sysv4.2uw2*)
13115  symcode='[DT]'
13116  ;;
13117sysv5* | sco5v6* | unixware* | OpenUNIX*)
13118  symcode='[ABDT]'
13119  ;;
13120sysv4)
13121  symcode='[DFNSTU]'
13122  ;;
13123esac
13124
13125# If we're using GNU nm, then use its standard symbol codes.
13126case `$NM -V 2>&1` in
13127*GNU* | *'with BFD'*)
13128  symcode='[ABCDGIRSTW]' ;;
13129esac
13130
13131# Transform an extracted symbol line into a proper C declaration.
13132# Some systems (esp. on ia64) link data and code symbols differently,
13133# so use this general approach.
13134lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13135
13136# Transform an extracted symbol line into symbol name and symbol address
13137lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
13138lt_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'"
13139
13140# Handle CRLF in mingw tool chain
13141opt_cr=
13142case $build_os in
13143mingw*)
13144  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13145  ;;
13146esac
13147
13148# Try without a prefix underscore, then with it.
13149for ac_symprfx in "" "_"; do
13150
13151  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13152  symxfrm="\\1 $ac_symprfx\\2 \\2"
13153
13154  # Write the raw and C identifiers.
13155  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13156    # Fake it for dumpbin and say T for any non-static function
13157    # and D for any global variable.
13158    # Also find C++ and __fastcall symbols from MSVC++,
13159    # which start with @ or ?.
13160    lt_cv_sys_global_symbol_pipe="$AWK '"\
13161"     {last_section=section; section=\$ 3};"\
13162"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13163"     \$ 0!~/External *\|/{next};"\
13164"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13165"     {if(hide[section]) next};"\
13166"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13167"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13168"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
13169"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13170"     ' prfx=^$ac_symprfx"
13171  else
13172    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13173  fi
13174  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13175
13176  # Check to see that the pipe works correctly.
13177  pipe_works=no
13178
13179  rm -f conftest*
13180  cat > conftest.$ac_ext <<_LT_EOF
13181#ifdef __cplusplus
13182extern "C" {
13183#endif
13184char nm_test_var;
13185void nm_test_func(void);
13186void nm_test_func(void){}
13187#ifdef __cplusplus
13188}
13189#endif
13190int main(){nm_test_var='a';nm_test_func();return(0);}
13191_LT_EOF
13192
13193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13194  (eval $ac_compile) 2>&5
13195  ac_status=$?
13196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13197  test $ac_status = 0; }; then
13198    # Now try to grab the symbols.
13199    nlist=conftest.nm
13200    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13201  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13202  ac_status=$?
13203  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204  test $ac_status = 0; } && test -s "$nlist"; then
13205      # Try sorting and uniquifying the output.
13206      if sort "$nlist" | uniq > "$nlist"T; then
13207	mv -f "$nlist"T "$nlist"
13208      else
13209	rm -f "$nlist"T
13210      fi
13211
13212      # Make sure that we snagged all the symbols we need.
13213      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13214	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13215	  cat <<_LT_EOF > conftest.$ac_ext
13216/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13217#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
13218/* DATA imports from DLLs on WIN32 con't be const, because runtime
13219   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13220# define LT_DLSYM_CONST
13221#elif defined(__osf__)
13222/* This system does not cope well with relocations in const data.  */
13223# define LT_DLSYM_CONST
13224#else
13225# define LT_DLSYM_CONST const
13226#endif
13227
13228#ifdef __cplusplus
13229extern "C" {
13230#endif
13231
13232_LT_EOF
13233	  # Now generate the symbol file.
13234	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13235
13236	  cat <<_LT_EOF >> conftest.$ac_ext
13237
13238/* The mapping between symbol names and symbols.  */
13239LT_DLSYM_CONST struct {
13240  const char *name;
13241  void       *address;
13242}
13243lt__PROGRAM__LTX_preloaded_symbols[] =
13244{
13245  { "@PROGRAM@", (void *) 0 },
13246_LT_EOF
13247	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13248	  cat <<\_LT_EOF >> conftest.$ac_ext
13249  {0, (void *) 0}
13250};
13251
13252/* This works around a problem in FreeBSD linker */
13253#ifdef FREEBSD_WORKAROUND
13254static const void *lt_preloaded_setup() {
13255  return lt__PROGRAM__LTX_preloaded_symbols;
13256}
13257#endif
13258
13259#ifdef __cplusplus
13260}
13261#endif
13262_LT_EOF
13263	  # Now try linking the two files.
13264	  mv conftest.$ac_objext conftstm.$ac_objext
13265	  lt_globsym_save_LIBS=$LIBS
13266	  lt_globsym_save_CFLAGS=$CFLAGS
13267	  LIBS="conftstm.$ac_objext"
13268	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13269	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13270  (eval $ac_link) 2>&5
13271  ac_status=$?
13272  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13273  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13274	    pipe_works=yes
13275	  fi
13276	  LIBS=$lt_globsym_save_LIBS
13277	  CFLAGS=$lt_globsym_save_CFLAGS
13278	else
13279	  echo "cannot find nm_test_func in $nlist" >&5
13280	fi
13281      else
13282	echo "cannot find nm_test_var in $nlist" >&5
13283      fi
13284    else
13285      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13286    fi
13287  else
13288    echo "$progname: failed program was:" >&5
13289    cat conftest.$ac_ext >&5
13290  fi
13291  rm -rf conftest* conftst*
13292
13293  # Do not use the global_symbol_pipe unless it works.
13294  if test "$pipe_works" = yes; then
13295    break
13296  else
13297    lt_cv_sys_global_symbol_pipe=
13298  fi
13299done
13300
13301fi
13302
13303if test -z "$lt_cv_sys_global_symbol_pipe"; then
13304  lt_cv_sys_global_symbol_to_cdecl=
13305fi
13306if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13308$as_echo "failed" >&6; }
13309else
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13311$as_echo "ok" >&6; }
13312fi
13313
13314# Response file support.
13315if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13316  nm_file_list_spec='@'
13317elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13318  nm_file_list_spec='@'
13319fi
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13348$as_echo_n "checking for sysroot... " >&6; }
13349
13350# Check whether --with-sysroot was given.
13351if test "${with_sysroot+set}" = set; then :
13352  withval=$with_sysroot;
13353else
13354  with_sysroot=no
13355fi
13356
13357
13358lt_sysroot=
13359case ${with_sysroot} in #(
13360 yes)
13361   if test "$GCC" = yes; then
13362     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13363   fi
13364   ;; #(
13365 /*)
13366   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13367   ;; #(
13368 no|'')
13369   ;; #(
13370 *)
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
13372$as_echo "${with_sysroot}" >&6; }
13373   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13374   ;;
13375esac
13376
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13378$as_echo "${lt_sysroot:-no}" >&6; }
13379
13380
13381
13382
13383
13384# Check whether --enable-libtool-lock was given.
13385if test "${enable_libtool_lock+set}" = set; then :
13386  enableval=$enable_libtool_lock;
13387fi
13388
13389test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13390
13391# Some flags need to be propagated to the compiler or linker for good
13392# libtool support.
13393case $host in
13394ia64-*-hpux*)
13395  # Find out which ABI we are using.
13396  echo 'int i;' > conftest.$ac_ext
13397  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13398  (eval $ac_compile) 2>&5
13399  ac_status=$?
13400  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401  test $ac_status = 0; }; then
13402    case `/usr/bin/file conftest.$ac_objext` in
13403      *ELF-32*)
13404	HPUX_IA64_MODE="32"
13405	;;
13406      *ELF-64*)
13407	HPUX_IA64_MODE="64"
13408	;;
13409    esac
13410  fi
13411  rm -rf conftest*
13412  ;;
13413*-*-irix6*)
13414  # Find out which ABI we are using.
13415  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13416  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13417  (eval $ac_compile) 2>&5
13418  ac_status=$?
13419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420  test $ac_status = 0; }; then
13421    if test "$lt_cv_prog_gnu_ld" = yes; then
13422      case `/usr/bin/file conftest.$ac_objext` in
13423	*32-bit*)
13424	  LD="${LD-ld} -melf32bsmip"
13425	  ;;
13426	*N32*)
13427	  LD="${LD-ld} -melf32bmipn32"
13428	  ;;
13429	*64-bit*)
13430	  LD="${LD-ld} -melf64bmip"
13431	;;
13432      esac
13433    else
13434      case `/usr/bin/file conftest.$ac_objext` in
13435	*32-bit*)
13436	  LD="${LD-ld} -32"
13437	  ;;
13438	*N32*)
13439	  LD="${LD-ld} -n32"
13440	  ;;
13441	*64-bit*)
13442	  LD="${LD-ld} -64"
13443	  ;;
13444      esac
13445    fi
13446  fi
13447  rm -rf conftest*
13448  ;;
13449
13450x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13451s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13452  # Find out which ABI we are using.
13453  echo 'int i;' > conftest.$ac_ext
13454  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13455  (eval $ac_compile) 2>&5
13456  ac_status=$?
13457  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458  test $ac_status = 0; }; then
13459    case `/usr/bin/file conftest.o` in
13460      *32-bit*)
13461	case $host in
13462	  x86_64-*kfreebsd*-gnu)
13463	    LD="${LD-ld} -m elf_i386_fbsd"
13464	    ;;
13465	  x86_64-*linux*)
13466	    LD="${LD-ld} -m elf_i386"
13467	    ;;
13468	  ppc64-*linux*|powerpc64-*linux*)
13469	    LD="${LD-ld} -m elf32ppclinux"
13470	    ;;
13471	  s390x-*linux*)
13472	    LD="${LD-ld} -m elf_s390"
13473	    ;;
13474	  sparc64-*linux*)
13475	    LD="${LD-ld} -m elf32_sparc"
13476	    ;;
13477	esac
13478	;;
13479      *64-bit*)
13480	case $host in
13481	  x86_64-*kfreebsd*-gnu)
13482	    LD="${LD-ld} -m elf_x86_64_fbsd"
13483	    ;;
13484	  x86_64-*linux*)
13485	    LD="${LD-ld} -m elf_x86_64"
13486	    ;;
13487	  ppc*-*linux*|powerpc*-*linux*)
13488	    LD="${LD-ld} -m elf64ppc"
13489	    ;;
13490	  s390*-*linux*|s390*-*tpf*)
13491	    LD="${LD-ld} -m elf64_s390"
13492	    ;;
13493	  sparc*-*linux*)
13494	    LD="${LD-ld} -m elf64_sparc"
13495	    ;;
13496	esac
13497	;;
13498    esac
13499  fi
13500  rm -rf conftest*
13501  ;;
13502
13503*-*-sco3.2v5*)
13504  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13505  SAVE_CFLAGS="$CFLAGS"
13506  CFLAGS="$CFLAGS -belf"
13507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13508$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13509if ${lt_cv_cc_needs_belf+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  ac_ext=c
13513ac_cpp='$CPP $CPPFLAGS'
13514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13516ac_compiler_gnu=$ac_cv_c_compiler_gnu
13517
13518     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519/* end confdefs.h.  */
13520
13521int
13522main ()
13523{
13524
13525  ;
13526  return 0;
13527}
13528_ACEOF
13529if ac_fn_c_try_link "$LINENO"; then :
13530  lt_cv_cc_needs_belf=yes
13531else
13532  lt_cv_cc_needs_belf=no
13533fi
13534rm -f core conftest.err conftest.$ac_objext \
13535    conftest$ac_exeext conftest.$ac_ext
13536     ac_ext=c
13537ac_cpp='$CPP $CPPFLAGS'
13538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13540ac_compiler_gnu=$ac_cv_c_compiler_gnu
13541
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13544$as_echo "$lt_cv_cc_needs_belf" >&6; }
13545  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13546    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13547    CFLAGS="$SAVE_CFLAGS"
13548  fi
13549  ;;
13550sparc*-*solaris*)
13551  # Find out which ABI we are using.
13552  echo 'int i;' > conftest.$ac_ext
13553  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13554  (eval $ac_compile) 2>&5
13555  ac_status=$?
13556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557  test $ac_status = 0; }; then
13558    case `/usr/bin/file conftest.o` in
13559    *64-bit*)
13560      case $lt_cv_prog_gnu_ld in
13561      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13562      *)
13563	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13564	  LD="${LD-ld} -64"
13565	fi
13566	;;
13567      esac
13568      ;;
13569    esac
13570  fi
13571  rm -rf conftest*
13572  ;;
13573esac
13574
13575need_locks="$enable_libtool_lock"
13576
13577if test -n "$ac_tool_prefix"; then
13578  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13579set dummy ${ac_tool_prefix}mt; ac_word=$2
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581$as_echo_n "checking for $ac_word... " >&6; }
13582if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13583  $as_echo_n "(cached) " >&6
13584else
13585  if test -n "$MANIFEST_TOOL"; then
13586  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13587else
13588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH
13590do
13591  IFS=$as_save_IFS
13592  test -z "$as_dir" && as_dir=.
13593    for ac_exec_ext in '' $ac_executable_extensions; do
13594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13595    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597    break 2
13598  fi
13599done
13600  done
13601IFS=$as_save_IFS
13602
13603fi
13604fi
13605MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13606if test -n "$MANIFEST_TOOL"; then
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13608$as_echo "$MANIFEST_TOOL" >&6; }
13609else
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611$as_echo "no" >&6; }
13612fi
13613
13614
13615fi
13616if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13617  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13618  # Extract the first word of "mt", so it can be a program name with args.
13619set dummy mt; ac_word=$2
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13621$as_echo_n "checking for $ac_word... " >&6; }
13622if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13623  $as_echo_n "(cached) " >&6
13624else
13625  if test -n "$ac_ct_MANIFEST_TOOL"; then
13626  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631  IFS=$as_save_IFS
13632  test -z "$as_dir" && as_dir=.
13633    for ac_exec_ext in '' $ac_executable_extensions; do
13634  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13635    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13637    break 2
13638  fi
13639done
13640  done
13641IFS=$as_save_IFS
13642
13643fi
13644fi
13645ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13646if test -n "$ac_ct_MANIFEST_TOOL"; then
13647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13648$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13649else
13650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13651$as_echo "no" >&6; }
13652fi
13653
13654  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13655    MANIFEST_TOOL=":"
13656  else
13657    case $cross_compiling:$ac_tool_warned in
13658yes:)
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13661ac_tool_warned=yes ;;
13662esac
13663    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13664  fi
13665else
13666  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13667fi
13668
13669test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13671$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13672if ${lt_cv_path_mainfest_tool+:} false; then :
13673  $as_echo_n "(cached) " >&6
13674else
13675  lt_cv_path_mainfest_tool=no
13676  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13677  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13678  cat conftest.err >&5
13679  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13680    lt_cv_path_mainfest_tool=yes
13681  fi
13682  rm -f conftest*
13683fi
13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13685$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13686if test "x$lt_cv_path_mainfest_tool" != xyes; then
13687  MANIFEST_TOOL=:
13688fi
13689
13690
13691
13692
13693
13694
13695  case $host_os in
13696    rhapsody* | darwin*)
13697    if test -n "$ac_tool_prefix"; then
13698  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13699set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701$as_echo_n "checking for $ac_word... " >&6; }
13702if ${ac_cv_prog_DSYMUTIL+:} false; then :
13703  $as_echo_n "(cached) " >&6
13704else
13705  if test -n "$DSYMUTIL"; then
13706  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13707else
13708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13709for as_dir in $PATH
13710do
13711  IFS=$as_save_IFS
13712  test -z "$as_dir" && as_dir=.
13713    for ac_exec_ext in '' $ac_executable_extensions; do
13714  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13715    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13717    break 2
13718  fi
13719done
13720  done
13721IFS=$as_save_IFS
13722
13723fi
13724fi
13725DSYMUTIL=$ac_cv_prog_DSYMUTIL
13726if test -n "$DSYMUTIL"; then
13727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13728$as_echo "$DSYMUTIL" >&6; }
13729else
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731$as_echo "no" >&6; }
13732fi
13733
13734
13735fi
13736if test -z "$ac_cv_prog_DSYMUTIL"; then
13737  ac_ct_DSYMUTIL=$DSYMUTIL
13738  # Extract the first word of "dsymutil", so it can be a program name with args.
13739set dummy dsymutil; ac_word=$2
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13741$as_echo_n "checking for $ac_word... " >&6; }
13742if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13743  $as_echo_n "(cached) " >&6
13744else
13745  if test -n "$ac_ct_DSYMUTIL"; then
13746  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13747else
13748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13749for as_dir in $PATH
13750do
13751  IFS=$as_save_IFS
13752  test -z "$as_dir" && as_dir=.
13753    for ac_exec_ext in '' $ac_executable_extensions; do
13754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13755    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13757    break 2
13758  fi
13759done
13760  done
13761IFS=$as_save_IFS
13762
13763fi
13764fi
13765ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13766if test -n "$ac_ct_DSYMUTIL"; then
13767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13768$as_echo "$ac_ct_DSYMUTIL" >&6; }
13769else
13770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771$as_echo "no" >&6; }
13772fi
13773
13774  if test "x$ac_ct_DSYMUTIL" = x; then
13775    DSYMUTIL=":"
13776  else
13777    case $cross_compiling:$ac_tool_warned in
13778yes:)
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13780$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13781ac_tool_warned=yes ;;
13782esac
13783    DSYMUTIL=$ac_ct_DSYMUTIL
13784  fi
13785else
13786  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13787fi
13788
13789    if test -n "$ac_tool_prefix"; then
13790  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13791set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13793$as_echo_n "checking for $ac_word... " >&6; }
13794if ${ac_cv_prog_NMEDIT+:} false; then :
13795  $as_echo_n "(cached) " >&6
13796else
13797  if test -n "$NMEDIT"; then
13798  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13799else
13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803  IFS=$as_save_IFS
13804  test -z "$as_dir" && as_dir=.
13805    for ac_exec_ext in '' $ac_executable_extensions; do
13806  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13807    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13808    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13809    break 2
13810  fi
13811done
13812  done
13813IFS=$as_save_IFS
13814
13815fi
13816fi
13817NMEDIT=$ac_cv_prog_NMEDIT
13818if test -n "$NMEDIT"; then
13819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13820$as_echo "$NMEDIT" >&6; }
13821else
13822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
13824fi
13825
13826
13827fi
13828if test -z "$ac_cv_prog_NMEDIT"; then
13829  ac_ct_NMEDIT=$NMEDIT
13830  # Extract the first word of "nmedit", so it can be a program name with args.
13831set dummy nmedit; ac_word=$2
13832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13833$as_echo_n "checking for $ac_word... " >&6; }
13834if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13835  $as_echo_n "(cached) " >&6
13836else
13837  if test -n "$ac_ct_NMEDIT"; then
13838  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13839else
13840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in $PATH
13842do
13843  IFS=$as_save_IFS
13844  test -z "$as_dir" && as_dir=.
13845    for ac_exec_ext in '' $ac_executable_extensions; do
13846  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13847    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13849    break 2
13850  fi
13851done
13852  done
13853IFS=$as_save_IFS
13854
13855fi
13856fi
13857ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13858if test -n "$ac_ct_NMEDIT"; then
13859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13860$as_echo "$ac_ct_NMEDIT" >&6; }
13861else
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
13864fi
13865
13866  if test "x$ac_ct_NMEDIT" = x; then
13867    NMEDIT=":"
13868  else
13869    case $cross_compiling:$ac_tool_warned in
13870yes:)
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13873ac_tool_warned=yes ;;
13874esac
13875    NMEDIT=$ac_ct_NMEDIT
13876  fi
13877else
13878  NMEDIT="$ac_cv_prog_NMEDIT"
13879fi
13880
13881    if test -n "$ac_tool_prefix"; then
13882  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13883set dummy ${ac_tool_prefix}lipo; ac_word=$2
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13885$as_echo_n "checking for $ac_word... " >&6; }
13886if ${ac_cv_prog_LIPO+:} false; then :
13887  $as_echo_n "(cached) " >&6
13888else
13889  if test -n "$LIPO"; then
13890  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13891else
13892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13893for as_dir in $PATH
13894do
13895  IFS=$as_save_IFS
13896  test -z "$as_dir" && as_dir=.
13897    for ac_exec_ext in '' $ac_executable_extensions; do
13898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13899    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13901    break 2
13902  fi
13903done
13904  done
13905IFS=$as_save_IFS
13906
13907fi
13908fi
13909LIPO=$ac_cv_prog_LIPO
13910if test -n "$LIPO"; then
13911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13912$as_echo "$LIPO" >&6; }
13913else
13914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13915$as_echo "no" >&6; }
13916fi
13917
13918
13919fi
13920if test -z "$ac_cv_prog_LIPO"; then
13921  ac_ct_LIPO=$LIPO
13922  # Extract the first word of "lipo", so it can be a program name with args.
13923set dummy lipo; ac_word=$2
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13925$as_echo_n "checking for $ac_word... " >&6; }
13926if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13927  $as_echo_n "(cached) " >&6
13928else
13929  if test -n "$ac_ct_LIPO"; then
13930  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13931else
13932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13933for as_dir in $PATH
13934do
13935  IFS=$as_save_IFS
13936  test -z "$as_dir" && as_dir=.
13937    for ac_exec_ext in '' $ac_executable_extensions; do
13938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13939    ac_cv_prog_ac_ct_LIPO="lipo"
13940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941    break 2
13942  fi
13943done
13944  done
13945IFS=$as_save_IFS
13946
13947fi
13948fi
13949ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13950if test -n "$ac_ct_LIPO"; then
13951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13952$as_echo "$ac_ct_LIPO" >&6; }
13953else
13954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955$as_echo "no" >&6; }
13956fi
13957
13958  if test "x$ac_ct_LIPO" = x; then
13959    LIPO=":"
13960  else
13961    case $cross_compiling:$ac_tool_warned in
13962yes:)
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13965ac_tool_warned=yes ;;
13966esac
13967    LIPO=$ac_ct_LIPO
13968  fi
13969else
13970  LIPO="$ac_cv_prog_LIPO"
13971fi
13972
13973    if test -n "$ac_tool_prefix"; then
13974  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13975set dummy ${ac_tool_prefix}otool; ac_word=$2
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977$as_echo_n "checking for $ac_word... " >&6; }
13978if ${ac_cv_prog_OTOOL+:} false; then :
13979  $as_echo_n "(cached) " >&6
13980else
13981  if test -n "$OTOOL"; then
13982  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13983else
13984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985for as_dir in $PATH
13986do
13987  IFS=$as_save_IFS
13988  test -z "$as_dir" && as_dir=.
13989    for ac_exec_ext in '' $ac_executable_extensions; do
13990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993    break 2
13994  fi
13995done
13996  done
13997IFS=$as_save_IFS
13998
13999fi
14000fi
14001OTOOL=$ac_cv_prog_OTOOL
14002if test -n "$OTOOL"; then
14003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14004$as_echo "$OTOOL" >&6; }
14005else
14006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
14008fi
14009
14010
14011fi
14012if test -z "$ac_cv_prog_OTOOL"; then
14013  ac_ct_OTOOL=$OTOOL
14014  # Extract the first word of "otool", so it can be a program name with args.
14015set dummy otool; ac_word=$2
14016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14017$as_echo_n "checking for $ac_word... " >&6; }
14018if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14019  $as_echo_n "(cached) " >&6
14020else
14021  if test -n "$ac_ct_OTOOL"; then
14022  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14023else
14024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025for as_dir in $PATH
14026do
14027  IFS=$as_save_IFS
14028  test -z "$as_dir" && as_dir=.
14029    for ac_exec_ext in '' $ac_executable_extensions; do
14030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14031    ac_cv_prog_ac_ct_OTOOL="otool"
14032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14033    break 2
14034  fi
14035done
14036  done
14037IFS=$as_save_IFS
14038
14039fi
14040fi
14041ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14042if test -n "$ac_ct_OTOOL"; then
14043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14044$as_echo "$ac_ct_OTOOL" >&6; }
14045else
14046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047$as_echo "no" >&6; }
14048fi
14049
14050  if test "x$ac_ct_OTOOL" = x; then
14051    OTOOL=":"
14052  else
14053    case $cross_compiling:$ac_tool_warned in
14054yes:)
14055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14057ac_tool_warned=yes ;;
14058esac
14059    OTOOL=$ac_ct_OTOOL
14060  fi
14061else
14062  OTOOL="$ac_cv_prog_OTOOL"
14063fi
14064
14065    if test -n "$ac_tool_prefix"; then
14066  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14067set dummy ${ac_tool_prefix}otool64; ac_word=$2
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069$as_echo_n "checking for $ac_word... " >&6; }
14070if ${ac_cv_prog_OTOOL64+:} false; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  if test -n "$OTOOL64"; then
14074  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14075else
14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079  IFS=$as_save_IFS
14080  test -z "$as_dir" && as_dir=.
14081    for ac_exec_ext in '' $ac_executable_extensions; do
14082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14083    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14085    break 2
14086  fi
14087done
14088  done
14089IFS=$as_save_IFS
14090
14091fi
14092fi
14093OTOOL64=$ac_cv_prog_OTOOL64
14094if test -n "$OTOOL64"; then
14095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14096$as_echo "$OTOOL64" >&6; }
14097else
14098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099$as_echo "no" >&6; }
14100fi
14101
14102
14103fi
14104if test -z "$ac_cv_prog_OTOOL64"; then
14105  ac_ct_OTOOL64=$OTOOL64
14106  # Extract the first word of "otool64", so it can be a program name with args.
14107set dummy otool64; ac_word=$2
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14109$as_echo_n "checking for $ac_word... " >&6; }
14110if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14111  $as_echo_n "(cached) " >&6
14112else
14113  if test -n "$ac_ct_OTOOL64"; then
14114  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14115else
14116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117for as_dir in $PATH
14118do
14119  IFS=$as_save_IFS
14120  test -z "$as_dir" && as_dir=.
14121    for ac_exec_ext in '' $ac_executable_extensions; do
14122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123    ac_cv_prog_ac_ct_OTOOL64="otool64"
14124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14125    break 2
14126  fi
14127done
14128  done
14129IFS=$as_save_IFS
14130
14131fi
14132fi
14133ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14134if test -n "$ac_ct_OTOOL64"; then
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14136$as_echo "$ac_ct_OTOOL64" >&6; }
14137else
14138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
14140fi
14141
14142  if test "x$ac_ct_OTOOL64" = x; then
14143    OTOOL64=":"
14144  else
14145    case $cross_compiling:$ac_tool_warned in
14146yes:)
14147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14149ac_tool_warned=yes ;;
14150esac
14151    OTOOL64=$ac_ct_OTOOL64
14152  fi
14153else
14154  OTOOL64="$ac_cv_prog_OTOOL64"
14155fi
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14184$as_echo_n "checking for -single_module linker flag... " >&6; }
14185if ${lt_cv_apple_cc_single_mod+:} false; then :
14186  $as_echo_n "(cached) " >&6
14187else
14188  lt_cv_apple_cc_single_mod=no
14189      if test -z "${LT_MULTI_MODULE}"; then
14190	# By default we will add the -single_module flag. You can override
14191	# by either setting the environment variable LT_MULTI_MODULE
14192	# non-empty at configure time, or by adding -multi_module to the
14193	# link flags.
14194	rm -rf libconftest.dylib*
14195	echo "int foo(void){return 1;}" > conftest.c
14196	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14197-dynamiclib -Wl,-single_module conftest.c" >&5
14198	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14199	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14200        _lt_result=$?
14201	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14202	  lt_cv_apple_cc_single_mod=yes
14203	else
14204	  cat conftest.err >&5
14205	fi
14206	rm -rf libconftest.dylib*
14207	rm -f conftest.*
14208      fi
14209fi
14210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14211$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14213$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14214if ${lt_cv_ld_exported_symbols_list+:} false; then :
14215  $as_echo_n "(cached) " >&6
14216else
14217  lt_cv_ld_exported_symbols_list=no
14218      save_LDFLAGS=$LDFLAGS
14219      echo "_main" > conftest.sym
14220      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223
14224int
14225main ()
14226{
14227
14228  ;
14229  return 0;
14230}
14231_ACEOF
14232if ac_fn_c_try_link "$LINENO"; then :
14233  lt_cv_ld_exported_symbols_list=yes
14234else
14235  lt_cv_ld_exported_symbols_list=no
14236fi
14237rm -f core conftest.err conftest.$ac_objext \
14238    conftest$ac_exeext conftest.$ac_ext
14239	LDFLAGS="$save_LDFLAGS"
14240
14241fi
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14243$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14244    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14245$as_echo_n "checking for -force_load linker flag... " >&6; }
14246if ${lt_cv_ld_force_load+:} false; then :
14247  $as_echo_n "(cached) " >&6
14248else
14249  lt_cv_ld_force_load=no
14250      cat > conftest.c << _LT_EOF
14251int forced_loaded() { return 2;}
14252_LT_EOF
14253      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14254      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14255      echo "$AR cru libconftest.a conftest.o" >&5
14256      $AR cru libconftest.a conftest.o 2>&5
14257      echo "$RANLIB libconftest.a" >&5
14258      $RANLIB libconftest.a 2>&5
14259      cat > conftest.c << _LT_EOF
14260int main() { return 0;}
14261_LT_EOF
14262      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14263      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14264      _lt_result=$?
14265      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14266	lt_cv_ld_force_load=yes
14267      else
14268	cat conftest.err >&5
14269      fi
14270        rm -f conftest.err libconftest.a conftest conftest.c
14271        rm -rf conftest.dSYM
14272
14273fi
14274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14275$as_echo "$lt_cv_ld_force_load" >&6; }
14276    case $host_os in
14277    rhapsody* | darwin1.[012])
14278      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14279    darwin1.*)
14280      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14281    darwin*) # darwin 5.x on
14282      # if running on 10.5 or later, the deployment target defaults
14283      # to the OS version, if on x86, and 10.4, the deployment
14284      # target defaults to 10.4. Don't you love it?
14285      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14286	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14287	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14288	10.[012]*)
14289	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14290	10.*)
14291	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14292      esac
14293    ;;
14294  esac
14295    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14296      _lt_dar_single_mod='$single_module'
14297    fi
14298    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14299      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14300    else
14301      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14302    fi
14303    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14304      _lt_dsymutil='~$DSYMUTIL $lib || :'
14305    else
14306      _lt_dsymutil=
14307    fi
14308    ;;
14309  esac
14310
14311for ac_header in dlfcn.h
14312do :
14313  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14314"
14315if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14316  cat >>confdefs.h <<_ACEOF
14317#define HAVE_DLFCN_H 1
14318_ACEOF
14319
14320fi
14321
14322done
14323
14324
14325
14326
14327
14328# Set options
14329
14330
14331
14332        enable_dlopen=no
14333
14334
14335  enable_win32_dll=no
14336
14337
14338            # Check whether --enable-shared was given.
14339if test "${enable_shared+set}" = set; then :
14340  enableval=$enable_shared; p=${PACKAGE-default}
14341    case $enableval in
14342    yes) enable_shared=yes ;;
14343    no) enable_shared=no ;;
14344    *)
14345      enable_shared=no
14346      # Look at the argument we got.  We use all the common list separators.
14347      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14348      for pkg in $enableval; do
14349	IFS="$lt_save_ifs"
14350	if test "X$pkg" = "X$p"; then
14351	  enable_shared=yes
14352	fi
14353      done
14354      IFS="$lt_save_ifs"
14355      ;;
14356    esac
14357else
14358  enable_shared=yes
14359fi
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371# Check whether --with-pic was given.
14372if test "${with_pic+set}" = set; then :
14373  withval=$with_pic; pic_mode="$withval"
14374else
14375  pic_mode=default
14376fi
14377
14378
14379test -z "$pic_mode" && pic_mode=default
14380
14381
14382
14383
14384
14385
14386
14387  # Check whether --enable-fast-install was given.
14388if test "${enable_fast_install+set}" = set; then :
14389  enableval=$enable_fast_install; p=${PACKAGE-default}
14390    case $enableval in
14391    yes) enable_fast_install=yes ;;
14392    no) enable_fast_install=no ;;
14393    *)
14394      enable_fast_install=no
14395      # Look at the argument we got.  We use all the common list separators.
14396      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14397      for pkg in $enableval; do
14398	IFS="$lt_save_ifs"
14399	if test "X$pkg" = "X$p"; then
14400	  enable_fast_install=yes
14401	fi
14402      done
14403      IFS="$lt_save_ifs"
14404      ;;
14405    esac
14406else
14407  enable_fast_install=yes
14408fi
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420# This can be used to rebuild libtool when needed
14421LIBTOOL_DEPS="$ltmain"
14422
14423# Always use our own libtool.
14424LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451test -z "$LN_S" && LN_S="ln -s"
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466if test -n "${ZSH_VERSION+set}" ; then
14467   setopt NO_GLOB_SUBST
14468fi
14469
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14471$as_echo_n "checking for objdir... " >&6; }
14472if ${lt_cv_objdir+:} false; then :
14473  $as_echo_n "(cached) " >&6
14474else
14475  rm -f .libs 2>/dev/null
14476mkdir .libs 2>/dev/null
14477if test -d .libs; then
14478  lt_cv_objdir=.libs
14479else
14480  # MS-DOS does not allow filenames that begin with a dot.
14481  lt_cv_objdir=_libs
14482fi
14483rmdir .libs 2>/dev/null
14484fi
14485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14486$as_echo "$lt_cv_objdir" >&6; }
14487objdir=$lt_cv_objdir
14488
14489
14490
14491
14492
14493cat >>confdefs.h <<_ACEOF
14494#define LT_OBJDIR "$lt_cv_objdir/"
14495_ACEOF
14496
14497
14498
14499
14500case $host_os in
14501aix3*)
14502  # AIX sometimes has problems with the GCC collect2 program.  For some
14503  # reason, if we set the COLLECT_NAMES environment variable, the problems
14504  # vanish in a puff of smoke.
14505  if test "X${COLLECT_NAMES+set}" != Xset; then
14506    COLLECT_NAMES=
14507    export COLLECT_NAMES
14508  fi
14509  ;;
14510esac
14511
14512# Global variables:
14513ofile=libtool
14514can_build_shared=yes
14515
14516# All known linkers require a `.a' archive for static linking (except MSVC,
14517# which needs '.lib').
14518libext=a
14519
14520with_gnu_ld="$lt_cv_prog_gnu_ld"
14521
14522old_CC="$CC"
14523old_CFLAGS="$CFLAGS"
14524
14525# Set sane defaults for various variables
14526test -z "$CC" && CC=cc
14527test -z "$LTCC" && LTCC=$CC
14528test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14529test -z "$LD" && LD=ld
14530test -z "$ac_objext" && ac_objext=o
14531
14532for cc_temp in $compiler""; do
14533  case $cc_temp in
14534    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14535    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14536    \-*) ;;
14537    *) break;;
14538  esac
14539done
14540cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14541
14542
14543# Only perform the check for file, if the check method requires it
14544test -z "$MAGIC_CMD" && MAGIC_CMD=file
14545case $deplibs_check_method in
14546file_magic*)
14547  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14548    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14549$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14550if ${lt_cv_path_MAGIC_CMD+:} false; then :
14551  $as_echo_n "(cached) " >&6
14552else
14553  case $MAGIC_CMD in
14554[\\/*] |  ?:[\\/]*)
14555  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14556  ;;
14557*)
14558  lt_save_MAGIC_CMD="$MAGIC_CMD"
14559  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14560  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14561  for ac_dir in $ac_dummy; do
14562    IFS="$lt_save_ifs"
14563    test -z "$ac_dir" && ac_dir=.
14564    if test -f $ac_dir/${ac_tool_prefix}file; then
14565      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14566      if test -n "$file_magic_test_file"; then
14567	case $deplibs_check_method in
14568	"file_magic "*)
14569	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14570	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14571	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14572	    $EGREP "$file_magic_regex" > /dev/null; then
14573	    :
14574	  else
14575	    cat <<_LT_EOF 1>&2
14576
14577*** Warning: the command libtool uses to detect shared libraries,
14578*** $file_magic_cmd, produces output that libtool cannot recognize.
14579*** The result is that libtool may fail to recognize shared libraries
14580*** as such.  This will affect the creation of libtool libraries that
14581*** depend on shared libraries, but programs linked with such libtool
14582*** libraries will work regardless of this problem.  Nevertheless, you
14583*** may want to report the problem to your system manager and/or to
14584*** bug-libtool@gnu.org
14585
14586_LT_EOF
14587	  fi ;;
14588	esac
14589      fi
14590      break
14591    fi
14592  done
14593  IFS="$lt_save_ifs"
14594  MAGIC_CMD="$lt_save_MAGIC_CMD"
14595  ;;
14596esac
14597fi
14598
14599MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14600if test -n "$MAGIC_CMD"; then
14601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14602$as_echo "$MAGIC_CMD" >&6; }
14603else
14604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14605$as_echo "no" >&6; }
14606fi
14607
14608
14609
14610
14611
14612if test -z "$lt_cv_path_MAGIC_CMD"; then
14613  if test -n "$ac_tool_prefix"; then
14614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14615$as_echo_n "checking for file... " >&6; }
14616if ${lt_cv_path_MAGIC_CMD+:} false; then :
14617  $as_echo_n "(cached) " >&6
14618else
14619  case $MAGIC_CMD in
14620[\\/*] |  ?:[\\/]*)
14621  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14622  ;;
14623*)
14624  lt_save_MAGIC_CMD="$MAGIC_CMD"
14625  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14626  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14627  for ac_dir in $ac_dummy; do
14628    IFS="$lt_save_ifs"
14629    test -z "$ac_dir" && ac_dir=.
14630    if test -f $ac_dir/file; then
14631      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14632      if test -n "$file_magic_test_file"; then
14633	case $deplibs_check_method in
14634	"file_magic "*)
14635	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14636	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14637	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14638	    $EGREP "$file_magic_regex" > /dev/null; then
14639	    :
14640	  else
14641	    cat <<_LT_EOF 1>&2
14642
14643*** Warning: the command libtool uses to detect shared libraries,
14644*** $file_magic_cmd, produces output that libtool cannot recognize.
14645*** The result is that libtool may fail to recognize shared libraries
14646*** as such.  This will affect the creation of libtool libraries that
14647*** depend on shared libraries, but programs linked with such libtool
14648*** libraries will work regardless of this problem.  Nevertheless, you
14649*** may want to report the problem to your system manager and/or to
14650*** bug-libtool@gnu.org
14651
14652_LT_EOF
14653	  fi ;;
14654	esac
14655      fi
14656      break
14657    fi
14658  done
14659  IFS="$lt_save_ifs"
14660  MAGIC_CMD="$lt_save_MAGIC_CMD"
14661  ;;
14662esac
14663fi
14664
14665MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14666if test -n "$MAGIC_CMD"; then
14667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14668$as_echo "$MAGIC_CMD" >&6; }
14669else
14670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671$as_echo "no" >&6; }
14672fi
14673
14674
14675  else
14676    MAGIC_CMD=:
14677  fi
14678fi
14679
14680  fi
14681  ;;
14682esac
14683
14684# Use C for the default configuration in the libtool script
14685
14686lt_save_CC="$CC"
14687ac_ext=c
14688ac_cpp='$CPP $CPPFLAGS'
14689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14691ac_compiler_gnu=$ac_cv_c_compiler_gnu
14692
14693
14694# Source file extension for C test sources.
14695ac_ext=c
14696
14697# Object file extension for compiled C test sources.
14698objext=o
14699objext=$objext
14700
14701# Code to be used in simple compile tests
14702lt_simple_compile_test_code="int some_variable = 0;"
14703
14704# Code to be used in simple link tests
14705lt_simple_link_test_code='int main(){return(0);}'
14706
14707
14708
14709
14710
14711
14712
14713# If no C compiler was specified, use CC.
14714LTCC=${LTCC-"$CC"}
14715
14716# If no C compiler flags were specified, use CFLAGS.
14717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14718
14719# Allow CC to be a program name with arguments.
14720compiler=$CC
14721
14722# Save the default compiler, since it gets overwritten when the other
14723# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14724compiler_DEFAULT=$CC
14725
14726# save warnings/boilerplate of simple test code
14727ac_outfile=conftest.$ac_objext
14728echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14729eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14730_lt_compiler_boilerplate=`cat conftest.err`
14731$RM conftest*
14732
14733ac_outfile=conftest.$ac_objext
14734echo "$lt_simple_link_test_code" >conftest.$ac_ext
14735eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14736_lt_linker_boilerplate=`cat conftest.err`
14737$RM -r conftest*
14738
14739
14740## CAVEAT EMPTOR:
14741## There is no encapsulation within the following macros, do not change
14742## the running order or otherwise move them around unless you know exactly
14743## what you are doing...
14744if test -n "$compiler"; then
14745
14746lt_prog_compiler_no_builtin_flag=
14747
14748if test "$GCC" = yes; then
14749  case $cc_basename in
14750  nvcc*)
14751    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14752  *)
14753    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14754  esac
14755
14756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14757$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14758if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14759  $as_echo_n "(cached) " >&6
14760else
14761  lt_cv_prog_compiler_rtti_exceptions=no
14762   ac_outfile=conftest.$ac_objext
14763   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14764   lt_compiler_flag="-fno-rtti -fno-exceptions"
14765   # Insert the option either (1) after the last *FLAGS variable, or
14766   # (2) before a word containing "conftest.", or (3) at the end.
14767   # Note that $ac_compile itself does not contain backslashes and begins
14768   # with a dollar sign (not a hyphen), so the echo should work correctly.
14769   # The option is referenced via a variable to avoid confusing sed.
14770   lt_compile=`echo "$ac_compile" | $SED \
14771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14773   -e 's:$: $lt_compiler_flag:'`
14774   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14775   (eval "$lt_compile" 2>conftest.err)
14776   ac_status=$?
14777   cat conftest.err >&5
14778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779   if (exit $ac_status) && test -s "$ac_outfile"; then
14780     # The compiler can only warn and ignore the option if not recognized
14781     # So say no if there are warnings other than the usual output.
14782     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14783     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14784     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14785       lt_cv_prog_compiler_rtti_exceptions=yes
14786     fi
14787   fi
14788   $RM conftest*
14789
14790fi
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14792$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14793
14794if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14795    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14796else
14797    :
14798fi
14799
14800fi
14801
14802
14803
14804
14805
14806
14807  lt_prog_compiler_wl=
14808lt_prog_compiler_pic=
14809lt_prog_compiler_static=
14810
14811
14812  if test "$GCC" = yes; then
14813    lt_prog_compiler_wl='-Wl,'
14814    lt_prog_compiler_static='-static'
14815
14816    case $host_os in
14817      aix*)
14818      # All AIX code is PIC.
14819      if test "$host_cpu" = ia64; then
14820	# AIX 5 now supports IA64 processor
14821	lt_prog_compiler_static='-Bstatic'
14822      fi
14823      ;;
14824
14825    amigaos*)
14826      case $host_cpu in
14827      powerpc)
14828            # see comment about AmigaOS4 .so support
14829            lt_prog_compiler_pic='-fPIC'
14830        ;;
14831      m68k)
14832            # FIXME: we need at least 68020 code to build shared libraries, but
14833            # adding the `-m68020' flag to GCC prevents building anything better,
14834            # like `-m68040'.
14835            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14836        ;;
14837      esac
14838      ;;
14839
14840    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14841      # PIC is the default for these OSes.
14842      ;;
14843
14844    mingw* | cygwin* | pw32* | os2* | cegcc*)
14845      # This hack is so that the source file can tell whether it is being
14846      # built for inclusion in a dll (and should export symbols for example).
14847      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14848      # (--disable-auto-import) libraries
14849      lt_prog_compiler_pic='-DDLL_EXPORT'
14850      ;;
14851
14852    darwin* | rhapsody*)
14853      # PIC is the default on this platform
14854      # Common symbols not allowed in MH_DYLIB files
14855      lt_prog_compiler_pic='-fno-common'
14856      ;;
14857
14858    haiku*)
14859      # PIC is the default for Haiku.
14860      # The "-static" flag exists, but is broken.
14861      lt_prog_compiler_static=
14862      ;;
14863
14864    hpux*)
14865      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14866      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14867      # sets the default TLS model and affects inlining.
14868      case $host_cpu in
14869      hppa*64*)
14870	# +Z the default
14871	;;
14872      *)
14873	lt_prog_compiler_pic='-fPIC'
14874	;;
14875      esac
14876      ;;
14877
14878    interix[3-9]*)
14879      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14880      # Instead, we relocate shared libraries at runtime.
14881      ;;
14882
14883    msdosdjgpp*)
14884      # Just because we use GCC doesn't mean we suddenly get shared libraries
14885      # on systems that don't support them.
14886      lt_prog_compiler_can_build_shared=no
14887      enable_shared=no
14888      ;;
14889
14890    *nto* | *qnx*)
14891      # QNX uses GNU C++, but need to define -shared option too, otherwise
14892      # it will coredump.
14893      lt_prog_compiler_pic='-fPIC -shared'
14894      ;;
14895
14896    sysv4*MP*)
14897      if test -d /usr/nec; then
14898	lt_prog_compiler_pic=-Kconform_pic
14899      fi
14900      ;;
14901
14902    *)
14903      lt_prog_compiler_pic='-fPIC'
14904      ;;
14905    esac
14906
14907    case $cc_basename in
14908    nvcc*) # Cuda Compiler Driver 2.2
14909      lt_prog_compiler_wl='-Xlinker '
14910      lt_prog_compiler_pic='-Xcompiler -fPIC'
14911      ;;
14912    esac
14913  else
14914    # PORTME Check for flag to pass linker flags through the system compiler.
14915    case $host_os in
14916    aix*)
14917      lt_prog_compiler_wl='-Wl,'
14918      if test "$host_cpu" = ia64; then
14919	# AIX 5 now supports IA64 processor
14920	lt_prog_compiler_static='-Bstatic'
14921      else
14922	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14923      fi
14924      ;;
14925
14926    mingw* | cygwin* | pw32* | os2* | cegcc*)
14927      # This hack is so that the source file can tell whether it is being
14928      # built for inclusion in a dll (and should export symbols for example).
14929      lt_prog_compiler_pic='-DDLL_EXPORT'
14930      ;;
14931
14932    hpux9* | hpux10* | hpux11*)
14933      lt_prog_compiler_wl='-Wl,'
14934      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14935      # not for PA HP-UX.
14936      case $host_cpu in
14937      hppa*64*|ia64*)
14938	# +Z the default
14939	;;
14940      *)
14941	lt_prog_compiler_pic='+Z'
14942	;;
14943      esac
14944      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14945      lt_prog_compiler_static='${wl}-a ${wl}archive'
14946      ;;
14947
14948    irix5* | irix6* | nonstopux*)
14949      lt_prog_compiler_wl='-Wl,'
14950      # PIC (with -KPIC) is the default.
14951      lt_prog_compiler_static='-non_shared'
14952      ;;
14953
14954    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14955      case $cc_basename in
14956      # old Intel for x86_64 which still supported -KPIC.
14957      ecc*)
14958	lt_prog_compiler_wl='-Wl,'
14959	lt_prog_compiler_pic='-KPIC'
14960	lt_prog_compiler_static='-static'
14961        ;;
14962      # icc used to be incompatible with GCC.
14963      # ICC 10 doesn't accept -KPIC any more.
14964      icc* | ifort*)
14965	lt_prog_compiler_wl='-Wl,'
14966	lt_prog_compiler_pic='-fPIC'
14967	lt_prog_compiler_static='-static'
14968        ;;
14969      # Lahey Fortran 8.1.
14970      lf95*)
14971	lt_prog_compiler_wl='-Wl,'
14972	lt_prog_compiler_pic='--shared'
14973	lt_prog_compiler_static='--static'
14974	;;
14975      nagfor*)
14976	# NAG Fortran compiler
14977	lt_prog_compiler_wl='-Wl,-Wl,,'
14978	lt_prog_compiler_pic='-PIC'
14979	lt_prog_compiler_static='-Bstatic'
14980	;;
14981      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14982        # Portland Group compilers (*not* the Pentium gcc compiler,
14983	# which looks to be a dead project)
14984	lt_prog_compiler_wl='-Wl,'
14985	lt_prog_compiler_pic='-fpic'
14986	lt_prog_compiler_static='-Bstatic'
14987        ;;
14988      ccc*)
14989        lt_prog_compiler_wl='-Wl,'
14990        # All Alpha code is PIC.
14991        lt_prog_compiler_static='-non_shared'
14992        ;;
14993      xl* | bgxl* | bgf* | mpixl*)
14994	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14995	lt_prog_compiler_wl='-Wl,'
14996	lt_prog_compiler_pic='-qpic'
14997	lt_prog_compiler_static='-qstaticlink'
14998	;;
14999      *)
15000	case `$CC -V 2>&1 | sed 5q` in
15001	*Sun\ F* | *Sun*Fortran*)
15002	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15003	  lt_prog_compiler_pic='-KPIC'
15004	  lt_prog_compiler_static='-Bstatic'
15005	  lt_prog_compiler_wl=''
15006	  ;;
15007	*Sun\ C*)
15008	  # Sun C 5.9
15009	  lt_prog_compiler_pic='-KPIC'
15010	  lt_prog_compiler_static='-Bstatic'
15011	  lt_prog_compiler_wl='-Wl,'
15012	  ;;
15013	esac
15014	;;
15015      esac
15016      ;;
15017
15018    newsos6)
15019      lt_prog_compiler_pic='-KPIC'
15020      lt_prog_compiler_static='-Bstatic'
15021      ;;
15022
15023    *nto* | *qnx*)
15024      # QNX uses GNU C++, but need to define -shared option too, otherwise
15025      # it will coredump.
15026      lt_prog_compiler_pic='-fPIC -shared'
15027      ;;
15028
15029    osf3* | osf4* | osf5*)
15030      lt_prog_compiler_wl='-Wl,'
15031      # All OSF/1 code is PIC.
15032      lt_prog_compiler_static='-non_shared'
15033      ;;
15034
15035    rdos*)
15036      lt_prog_compiler_static='-non_shared'
15037      ;;
15038
15039    solaris*)
15040      lt_prog_compiler_pic='-KPIC'
15041      lt_prog_compiler_static='-Bstatic'
15042      case $cc_basename in
15043      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15044	lt_prog_compiler_wl='-Qoption ld ';;
15045      *)
15046	lt_prog_compiler_wl='-Wl,';;
15047      esac
15048      ;;
15049
15050    sunos4*)
15051      lt_prog_compiler_wl='-Qoption ld '
15052      lt_prog_compiler_pic='-PIC'
15053      lt_prog_compiler_static='-Bstatic'
15054      ;;
15055
15056    sysv4 | sysv4.2uw2* | sysv4.3*)
15057      lt_prog_compiler_wl='-Wl,'
15058      lt_prog_compiler_pic='-KPIC'
15059      lt_prog_compiler_static='-Bstatic'
15060      ;;
15061
15062    sysv4*MP*)
15063      if test -d /usr/nec ;then
15064	lt_prog_compiler_pic='-Kconform_pic'
15065	lt_prog_compiler_static='-Bstatic'
15066      fi
15067      ;;
15068
15069    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15070      lt_prog_compiler_wl='-Wl,'
15071      lt_prog_compiler_pic='-KPIC'
15072      lt_prog_compiler_static='-Bstatic'
15073      ;;
15074
15075    unicos*)
15076      lt_prog_compiler_wl='-Wl,'
15077      lt_prog_compiler_can_build_shared=no
15078      ;;
15079
15080    uts4*)
15081      lt_prog_compiler_pic='-pic'
15082      lt_prog_compiler_static='-Bstatic'
15083      ;;
15084
15085    *)
15086      lt_prog_compiler_can_build_shared=no
15087      ;;
15088    esac
15089  fi
15090
15091case $host_os in
15092  # For platforms which do not support PIC, -DPIC is meaningless:
15093  *djgpp*)
15094    lt_prog_compiler_pic=
15095    ;;
15096  *)
15097    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15098    ;;
15099esac
15100
15101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15102$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15103if ${lt_cv_prog_compiler_pic+:} false; then :
15104  $as_echo_n "(cached) " >&6
15105else
15106  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15107fi
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15109$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15110lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15111
15112#
15113# Check to make sure the PIC flag actually works.
15114#
15115if test -n "$lt_prog_compiler_pic"; then
15116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15117$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15118if ${lt_cv_prog_compiler_pic_works+:} false; then :
15119  $as_echo_n "(cached) " >&6
15120else
15121  lt_cv_prog_compiler_pic_works=no
15122   ac_outfile=conftest.$ac_objext
15123   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15124   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15125   # Insert the option either (1) after the last *FLAGS variable, or
15126   # (2) before a word containing "conftest.", or (3) at the end.
15127   # Note that $ac_compile itself does not contain backslashes and begins
15128   # with a dollar sign (not a hyphen), so the echo should work correctly.
15129   # The option is referenced via a variable to avoid confusing sed.
15130   lt_compile=`echo "$ac_compile" | $SED \
15131   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15132   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15133   -e 's:$: $lt_compiler_flag:'`
15134   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15135   (eval "$lt_compile" 2>conftest.err)
15136   ac_status=$?
15137   cat conftest.err >&5
15138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139   if (exit $ac_status) && test -s "$ac_outfile"; then
15140     # The compiler can only warn and ignore the option if not recognized
15141     # So say no if there are warnings other than the usual output.
15142     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15143     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15144     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15145       lt_cv_prog_compiler_pic_works=yes
15146     fi
15147   fi
15148   $RM conftest*
15149
15150fi
15151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15152$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15153
15154if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15155    case $lt_prog_compiler_pic in
15156     "" | " "*) ;;
15157     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15158     esac
15159else
15160    lt_prog_compiler_pic=
15161     lt_prog_compiler_can_build_shared=no
15162fi
15163
15164fi
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176#
15177# Check to make sure the static flag actually works.
15178#
15179wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15181$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15182if ${lt_cv_prog_compiler_static_works+:} false; then :
15183  $as_echo_n "(cached) " >&6
15184else
15185  lt_cv_prog_compiler_static_works=no
15186   save_LDFLAGS="$LDFLAGS"
15187   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15188   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15189   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15190     # The linker can only warn and ignore the option if not recognized
15191     # So say no if there are warnings
15192     if test -s conftest.err; then
15193       # Append any errors to the config.log.
15194       cat conftest.err 1>&5
15195       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15196       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15197       if diff conftest.exp conftest.er2 >/dev/null; then
15198         lt_cv_prog_compiler_static_works=yes
15199       fi
15200     else
15201       lt_cv_prog_compiler_static_works=yes
15202     fi
15203   fi
15204   $RM -r conftest*
15205   LDFLAGS="$save_LDFLAGS"
15206
15207fi
15208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15209$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15210
15211if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15212    :
15213else
15214    lt_prog_compiler_static=
15215fi
15216
15217
15218
15219
15220
15221
15222
15223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15224$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15225if ${lt_cv_prog_compiler_c_o+:} false; then :
15226  $as_echo_n "(cached) " >&6
15227else
15228  lt_cv_prog_compiler_c_o=no
15229   $RM -r conftest 2>/dev/null
15230   mkdir conftest
15231   cd conftest
15232   mkdir out
15233   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15234
15235   lt_compiler_flag="-o out/conftest2.$ac_objext"
15236   # Insert the option either (1) after the last *FLAGS variable, or
15237   # (2) before a word containing "conftest.", or (3) at the end.
15238   # Note that $ac_compile itself does not contain backslashes and begins
15239   # with a dollar sign (not a hyphen), so the echo should work correctly.
15240   lt_compile=`echo "$ac_compile" | $SED \
15241   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15242   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15243   -e 's:$: $lt_compiler_flag:'`
15244   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15245   (eval "$lt_compile" 2>out/conftest.err)
15246   ac_status=$?
15247   cat out/conftest.err >&5
15248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15250   then
15251     # The compiler can only warn and ignore the option if not recognized
15252     # So say no if there are warnings
15253     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15254     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15255     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15256       lt_cv_prog_compiler_c_o=yes
15257     fi
15258   fi
15259   chmod u+w . 2>&5
15260   $RM conftest*
15261   # SGI C++ compiler will create directory out/ii_files/ for
15262   # template instantiation
15263   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15264   $RM out/* && rmdir out
15265   cd ..
15266   $RM -r conftest
15267   $RM conftest*
15268
15269fi
15270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15271$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15272
15273
15274
15275
15276
15277
15278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15279$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15280if ${lt_cv_prog_compiler_c_o+:} false; then :
15281  $as_echo_n "(cached) " >&6
15282else
15283  lt_cv_prog_compiler_c_o=no
15284   $RM -r conftest 2>/dev/null
15285   mkdir conftest
15286   cd conftest
15287   mkdir out
15288   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15289
15290   lt_compiler_flag="-o out/conftest2.$ac_objext"
15291   # Insert the option either (1) after the last *FLAGS variable, or
15292   # (2) before a word containing "conftest.", or (3) at the end.
15293   # Note that $ac_compile itself does not contain backslashes and begins
15294   # with a dollar sign (not a hyphen), so the echo should work correctly.
15295   lt_compile=`echo "$ac_compile" | $SED \
15296   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15297   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15298   -e 's:$: $lt_compiler_flag:'`
15299   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15300   (eval "$lt_compile" 2>out/conftest.err)
15301   ac_status=$?
15302   cat out/conftest.err >&5
15303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15305   then
15306     # The compiler can only warn and ignore the option if not recognized
15307     # So say no if there are warnings
15308     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15309     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15310     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15311       lt_cv_prog_compiler_c_o=yes
15312     fi
15313   fi
15314   chmod u+w . 2>&5
15315   $RM conftest*
15316   # SGI C++ compiler will create directory out/ii_files/ for
15317   # template instantiation
15318   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15319   $RM out/* && rmdir out
15320   cd ..
15321   $RM -r conftest
15322   $RM conftest*
15323
15324fi
15325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15326$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15327
15328
15329
15330
15331hard_links="nottested"
15332if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15333  # do not overwrite the value of need_locks provided by the user
15334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15335$as_echo_n "checking if we can lock with hard links... " >&6; }
15336  hard_links=yes
15337  $RM conftest*
15338  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15339  touch conftest.a
15340  ln conftest.a conftest.b 2>&5 || hard_links=no
15341  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15343$as_echo "$hard_links" >&6; }
15344  if test "$hard_links" = no; then
15345    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15346$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15347    need_locks=warn
15348  fi
15349else
15350  need_locks=no
15351fi
15352
15353
15354
15355
15356
15357
15358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15359$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15360
15361  runpath_var=
15362  allow_undefined_flag=
15363  always_export_symbols=no
15364  archive_cmds=
15365  archive_expsym_cmds=
15366  compiler_needs_object=no
15367  enable_shared_with_static_runtimes=no
15368  export_dynamic_flag_spec=
15369  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15370  hardcode_automatic=no
15371  hardcode_direct=no
15372  hardcode_direct_absolute=no
15373  hardcode_libdir_flag_spec=
15374  hardcode_libdir_flag_spec_ld=
15375  hardcode_libdir_separator=
15376  hardcode_minus_L=no
15377  hardcode_shlibpath_var=unsupported
15378  inherit_rpath=no
15379  link_all_deplibs=unknown
15380  module_cmds=
15381  module_expsym_cmds=
15382  old_archive_from_new_cmds=
15383  old_archive_from_expsyms_cmds=
15384  thread_safe_flag_spec=
15385  whole_archive_flag_spec=
15386  # include_expsyms should be a list of space-separated symbols to be *always*
15387  # included in the symbol list
15388  include_expsyms=
15389  # exclude_expsyms can be an extended regexp of symbols to exclude
15390  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15391  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15392  # as well as any symbol that contains `d'.
15393  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15394  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15395  # platforms (ab)use it in PIC code, but their linkers get confused if
15396  # the symbol is explicitly referenced.  Since portable code cannot
15397  # rely on this symbol name, it's probably fine to never include it in
15398  # preloaded symbol tables.
15399  # Exclude shared library initialization/finalization symbols.
15400  extract_expsyms_cmds=
15401
15402  case $host_os in
15403  cygwin* | mingw* | pw32* | cegcc*)
15404    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15405    # When not using gcc, we currently assume that we are using
15406    # Microsoft Visual C++.
15407    if test "$GCC" != yes; then
15408      with_gnu_ld=no
15409    fi
15410    ;;
15411  interix*)
15412    # we just hope/assume this is gcc and not c89 (= MSVC++)
15413    with_gnu_ld=yes
15414    ;;
15415  openbsd*)
15416    with_gnu_ld=no
15417    ;;
15418  linux* | k*bsd*-gnu | gnu*)
15419    link_all_deplibs=no
15420    ;;
15421  esac
15422
15423  ld_shlibs=yes
15424
15425  # On some targets, GNU ld is compatible enough with the native linker
15426  # that we're better off using the native interface for both.
15427  lt_use_gnu_ld_interface=no
15428  if test "$with_gnu_ld" = yes; then
15429    case $host_os in
15430      aix*)
15431	# The AIX port of GNU ld has always aspired to compatibility
15432	# with the native linker.  However, as the warning in the GNU ld
15433	# block says, versions before 2.19.5* couldn't really create working
15434	# shared libraries, regardless of the interface used.
15435	case `$LD -v 2>&1` in
15436	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15437	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15438	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15439	  *)
15440	    lt_use_gnu_ld_interface=yes
15441	    ;;
15442	esac
15443	;;
15444      *)
15445	lt_use_gnu_ld_interface=yes
15446	;;
15447    esac
15448  fi
15449
15450  if test "$lt_use_gnu_ld_interface" = yes; then
15451    # If archive_cmds runs LD, not CC, wlarc should be empty
15452    wlarc='${wl}'
15453
15454    # Set some defaults for GNU ld with shared library support. These
15455    # are reset later if shared libraries are not supported. Putting them
15456    # here allows them to be overridden if necessary.
15457    runpath_var=LD_RUN_PATH
15458    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15459    export_dynamic_flag_spec='${wl}--export-dynamic'
15460    # ancient GNU ld didn't support --whole-archive et. al.
15461    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15462      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15463    else
15464      whole_archive_flag_spec=
15465    fi
15466    supports_anon_versioning=no
15467    case `$LD -v 2>&1` in
15468      *GNU\ gold*) supports_anon_versioning=yes ;;
15469      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15470      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15471      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15472      *\ 2.11.*) ;; # other 2.11 versions
15473      *) supports_anon_versioning=yes ;;
15474    esac
15475
15476    # See if GNU ld supports shared libraries.
15477    case $host_os in
15478    aix[3-9]*)
15479      # On AIX/PPC, the GNU linker is very broken
15480      if test "$host_cpu" != ia64; then
15481	ld_shlibs=no
15482	cat <<_LT_EOF 1>&2
15483
15484*** Warning: the GNU linker, at least up to release 2.19, is reported
15485*** to be unable to reliably create shared libraries on AIX.
15486*** Therefore, libtool is disabling shared libraries support.  If you
15487*** really care for shared libraries, you may want to install binutils
15488*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15489*** You will then need to restart the configuration process.
15490
15491_LT_EOF
15492      fi
15493      ;;
15494
15495    amigaos*)
15496      case $host_cpu in
15497      powerpc)
15498            # see comment about AmigaOS4 .so support
15499            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15500            archive_expsym_cmds=''
15501        ;;
15502      m68k)
15503            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)'
15504            hardcode_libdir_flag_spec='-L$libdir'
15505            hardcode_minus_L=yes
15506        ;;
15507      esac
15508      ;;
15509
15510    beos*)
15511      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15512	allow_undefined_flag=unsupported
15513	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15514	# support --undefined.  This deserves some investigation.  FIXME
15515	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15516      else
15517	ld_shlibs=no
15518      fi
15519      ;;
15520
15521    cygwin* | mingw* | pw32* | cegcc*)
15522      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15523      # as there is no search path for DLLs.
15524      hardcode_libdir_flag_spec='-L$libdir'
15525      export_dynamic_flag_spec='${wl}--export-all-symbols'
15526      allow_undefined_flag=unsupported
15527      always_export_symbols=no
15528      enable_shared_with_static_runtimes=yes
15529      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'
15530      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15531
15532      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15533        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15534	# If the export-symbols file already is a .def file (1st line
15535	# is EXPORTS), use it as is; otherwise, prepend...
15536	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15537	  cp $export_symbols $output_objdir/$soname.def;
15538	else
15539	  echo EXPORTS > $output_objdir/$soname.def;
15540	  cat $export_symbols >> $output_objdir/$soname.def;
15541	fi~
15542	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15543      else
15544	ld_shlibs=no
15545      fi
15546      ;;
15547
15548    haiku*)
15549      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550      link_all_deplibs=yes
15551      ;;
15552
15553    interix[3-9]*)
15554      hardcode_direct=no
15555      hardcode_shlibpath_var=no
15556      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15557      export_dynamic_flag_spec='${wl}-E'
15558      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15559      # Instead, shared libraries are loaded at an image base (0x10000000 by
15560      # default) and relocated if they conflict, which is a slow very memory
15561      # consuming and fragmenting process.  To avoid this, we pick a random,
15562      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15563      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15564      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15565      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'
15566      ;;
15567
15568    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15569      tmp_diet=no
15570      if test "$host_os" = linux-dietlibc; then
15571	case $cc_basename in
15572	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15573	esac
15574      fi
15575      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15576	 && test "$tmp_diet" = no
15577      then
15578	tmp_addflag=' $pic_flag'
15579	tmp_sharedflag='-shared'
15580	case $cc_basename,$host_cpu in
15581        pgcc*)				# Portland Group C compiler
15582	  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'
15583	  tmp_addflag=' $pic_flag'
15584	  ;;
15585	pgf77* | pgf90* | pgf95* | pgfortran*)
15586					# Portland Group f77 and f90 compilers
15587	  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'
15588	  tmp_addflag=' $pic_flag -Mnomain' ;;
15589	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15590	  tmp_addflag=' -i_dynamic' ;;
15591	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15592	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15593	ifc* | ifort*)			# Intel Fortran compiler
15594	  tmp_addflag=' -nofor_main' ;;
15595	lf95*)				# Lahey Fortran 8.1
15596	  whole_archive_flag_spec=
15597	  tmp_sharedflag='--shared' ;;
15598	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15599	  tmp_sharedflag='-qmkshrobj'
15600	  tmp_addflag= ;;
15601	nvcc*)	# Cuda Compiler Driver 2.2
15602	  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'
15603	  compiler_needs_object=yes
15604	  ;;
15605	esac
15606	case `$CC -V 2>&1 | sed 5q` in
15607	*Sun\ C*)			# Sun C 5.9
15608	  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'
15609	  compiler_needs_object=yes
15610	  tmp_sharedflag='-G' ;;
15611	*Sun\ F*)			# Sun Fortran 8.3
15612	  tmp_sharedflag='-G' ;;
15613	esac
15614	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15615
15616        if test "x$supports_anon_versioning" = xyes; then
15617          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15618	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15619	    echo "local: *; };" >> $output_objdir/$libname.ver~
15620	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15621        fi
15622
15623	case $cc_basename in
15624	xlf* | bgf* | bgxlf* | mpixlf*)
15625	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15626	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15627	  hardcode_libdir_flag_spec=
15628	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
15629	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15630	  if test "x$supports_anon_versioning" = xyes; then
15631	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15632	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15633	      echo "local: *; };" >> $output_objdir/$libname.ver~
15634	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15635	  fi
15636	  ;;
15637	esac
15638      else
15639        ld_shlibs=no
15640      fi
15641      ;;
15642
15643    netbsd* | netbsdelf*-gnu)
15644      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15645	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15646	wlarc=
15647      else
15648	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15649	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15650      fi
15651      ;;
15652
15653    solaris*)
15654      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15655	ld_shlibs=no
15656	cat <<_LT_EOF 1>&2
15657
15658*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15659*** create shared libraries on Solaris systems.  Therefore, libtool
15660*** is disabling shared libraries support.  We urge you to upgrade GNU
15661*** binutils to release 2.9.1 or newer.  Another option is to modify
15662*** your PATH or compiler configuration so that the native linker is
15663*** used, and then restart.
15664
15665_LT_EOF
15666      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15667	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15668	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15669      else
15670	ld_shlibs=no
15671      fi
15672      ;;
15673
15674    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15675      case `$LD -v 2>&1` in
15676        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15677	ld_shlibs=no
15678	cat <<_LT_EOF 1>&2
15679
15680*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15681*** reliably create shared libraries on SCO systems.  Therefore, libtool
15682*** is disabling shared libraries support.  We urge you to upgrade GNU
15683*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15684*** your PATH or compiler configuration so that the native linker is
15685*** used, and then restart.
15686
15687_LT_EOF
15688	;;
15689	*)
15690	  # For security reasons, it is highly recommended that you always
15691	  # use absolute paths for naming shared libraries, and exclude the
15692	  # DT_RUNPATH tag from executables and libraries.  But doing so
15693	  # requires that you compile everything twice, which is a pain.
15694	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15695	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15696	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15697	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15698	  else
15699	    ld_shlibs=no
15700	  fi
15701	;;
15702      esac
15703      ;;
15704
15705    sunos4*)
15706      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15707      wlarc=
15708      hardcode_direct=yes
15709      hardcode_shlibpath_var=no
15710      ;;
15711
15712    *)
15713      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15714	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15715	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15716      else
15717	ld_shlibs=no
15718      fi
15719      ;;
15720    esac
15721
15722    if test "$ld_shlibs" = no; then
15723      runpath_var=
15724      hardcode_libdir_flag_spec=
15725      export_dynamic_flag_spec=
15726      whole_archive_flag_spec=
15727    fi
15728  else
15729    # PORTME fill in a description of your system's linker (not GNU ld)
15730    case $host_os in
15731    aix3*)
15732      allow_undefined_flag=unsupported
15733      always_export_symbols=yes
15734      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'
15735      # Note: this linker hardcodes the directories in LIBPATH if there
15736      # are no directories specified by -L.
15737      hardcode_minus_L=yes
15738      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15739	# Neither direct hardcoding nor static linking is supported with a
15740	# broken collect2.
15741	hardcode_direct=unsupported
15742      fi
15743      ;;
15744
15745    aix[4-9]*)
15746      if test "$host_cpu" = ia64; then
15747	# On IA64, the linker does run time linking by default, so we don't
15748	# have to do anything special.
15749	aix_use_runtimelinking=no
15750	exp_sym_flag='-Bexport'
15751	no_entry_flag=""
15752      else
15753	# If we're using GNU nm, then we don't want the "-C" option.
15754	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15755	# Also, AIX nm treats weak defined symbols like other global
15756	# defined symbols, whereas GNU nm marks them as "W".
15757	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15758	  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'
15759	else
15760	  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'
15761	fi
15762	aix_use_runtimelinking=no
15763
15764	# Test if we are trying to use run time linking or normal
15765	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15766	# need to do runtime linking.
15767	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15768	  for ld_flag in $LDFLAGS; do
15769	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15770	    aix_use_runtimelinking=yes
15771	    break
15772	  fi
15773	  done
15774	  ;;
15775	esac
15776
15777	exp_sym_flag='-bexport'
15778	no_entry_flag='-bnoentry'
15779      fi
15780
15781      # When large executables or shared objects are built, AIX ld can
15782      # have problems creating the table of contents.  If linking a library
15783      # or program results in "error TOC overflow" add -mminimal-toc to
15784      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15785      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15786
15787      archive_cmds=''
15788      hardcode_direct=yes
15789      hardcode_direct_absolute=yes
15790      hardcode_libdir_separator=':'
15791      link_all_deplibs=yes
15792      file_list_spec='${wl}-f,'
15793
15794      if test "$GCC" = yes; then
15795	case $host_os in aix4.[012]|aix4.[012].*)
15796	# We only want to do this on AIX 4.2 and lower, the check
15797	# below for broken collect2 doesn't work under 4.3+
15798	  collect2name=`${CC} -print-prog-name=collect2`
15799	  if test -f "$collect2name" &&
15800	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15801	  then
15802	  # We have reworked collect2
15803	  :
15804	  else
15805	  # We have old collect2
15806	  hardcode_direct=unsupported
15807	  # It fails to find uninstalled libraries when the uninstalled
15808	  # path is not listed in the libpath.  Setting hardcode_minus_L
15809	  # to unsupported forces relinking
15810	  hardcode_minus_L=yes
15811	  hardcode_libdir_flag_spec='-L$libdir'
15812	  hardcode_libdir_separator=
15813	  fi
15814	  ;;
15815	esac
15816	shared_flag='-shared'
15817	if test "$aix_use_runtimelinking" = yes; then
15818	  shared_flag="$shared_flag "'${wl}-G'
15819	fi
15820	link_all_deplibs=no
15821      else
15822	# not using gcc
15823	if test "$host_cpu" = ia64; then
15824	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15825	# chokes on -Wl,-G. The following line is correct:
15826	  shared_flag='-G'
15827	else
15828	  if test "$aix_use_runtimelinking" = yes; then
15829	    shared_flag='${wl}-G'
15830	  else
15831	    shared_flag='${wl}-bM:SRE'
15832	  fi
15833	fi
15834      fi
15835
15836      export_dynamic_flag_spec='${wl}-bexpall'
15837      # It seems that -bexpall does not export symbols beginning with
15838      # underscore (_), so it is better to generate a list of symbols to export.
15839      always_export_symbols=yes
15840      if test "$aix_use_runtimelinking" = yes; then
15841	# Warning - without using the other runtime loading flags (-brtl),
15842	# -berok will link without error, but may produce a broken library.
15843	allow_undefined_flag='-berok'
15844        # Determine the default libpath from the value encoded in an
15845        # empty executable.
15846        if test "${lt_cv_aix_libpath+set}" = set; then
15847  aix_libpath=$lt_cv_aix_libpath
15848else
15849  if ${lt_cv_aix_libpath_+:} false; then :
15850  $as_echo_n "(cached) " >&6
15851else
15852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15853/* end confdefs.h.  */
15854
15855int
15856main ()
15857{
15858
15859  ;
15860  return 0;
15861}
15862_ACEOF
15863if ac_fn_c_try_link "$LINENO"; then :
15864
15865  lt_aix_libpath_sed='
15866      /Import File Strings/,/^$/ {
15867	  /^0/ {
15868	      s/^0  *\([^ ]*\) *$/\1/
15869	      p
15870	  }
15871      }'
15872  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15873  # Check for a 64-bit object if we didn't find anything.
15874  if test -z "$lt_cv_aix_libpath_"; then
15875    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15876  fi
15877fi
15878rm -f core conftest.err conftest.$ac_objext \
15879    conftest$ac_exeext conftest.$ac_ext
15880  if test -z "$lt_cv_aix_libpath_"; then
15881    lt_cv_aix_libpath_="/usr/lib:/lib"
15882  fi
15883
15884fi
15885
15886  aix_libpath=$lt_cv_aix_libpath_
15887fi
15888
15889        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15890        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"
15891      else
15892	if test "$host_cpu" = ia64; then
15893	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15894	  allow_undefined_flag="-z nodefs"
15895	  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"
15896	else
15897	 # Determine the default libpath from the value encoded in an
15898	 # empty executable.
15899	 if test "${lt_cv_aix_libpath+set}" = set; then
15900  aix_libpath=$lt_cv_aix_libpath
15901else
15902  if ${lt_cv_aix_libpath_+:} false; then :
15903  $as_echo_n "(cached) " >&6
15904else
15905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906/* end confdefs.h.  */
15907
15908int
15909main ()
15910{
15911
15912  ;
15913  return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_link "$LINENO"; then :
15917
15918  lt_aix_libpath_sed='
15919      /Import File Strings/,/^$/ {
15920	  /^0/ {
15921	      s/^0  *\([^ ]*\) *$/\1/
15922	      p
15923	  }
15924      }'
15925  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15926  # Check for a 64-bit object if we didn't find anything.
15927  if test -z "$lt_cv_aix_libpath_"; then
15928    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15929  fi
15930fi
15931rm -f core conftest.err conftest.$ac_objext \
15932    conftest$ac_exeext conftest.$ac_ext
15933  if test -z "$lt_cv_aix_libpath_"; then
15934    lt_cv_aix_libpath_="/usr/lib:/lib"
15935  fi
15936
15937fi
15938
15939  aix_libpath=$lt_cv_aix_libpath_
15940fi
15941
15942	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15943	  # Warning - without using the other run time loading flags,
15944	  # -berok will link without error, but may produce a broken library.
15945	  no_undefined_flag=' ${wl}-bernotok'
15946	  allow_undefined_flag=' ${wl}-berok'
15947	  if test "$with_gnu_ld" = yes; then
15948	    # We only use this code for GNU lds that support --whole-archive.
15949	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15950	  else
15951	    # Exported symbols can be pulled into shared objects from archives
15952	    whole_archive_flag_spec='$convenience'
15953	  fi
15954	  archive_cmds_need_lc=yes
15955	  # This is similar to how AIX traditionally builds its shared libraries.
15956	  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'
15957	fi
15958      fi
15959      ;;
15960
15961    amigaos*)
15962      case $host_cpu in
15963      powerpc)
15964            # see comment about AmigaOS4 .so support
15965            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15966            archive_expsym_cmds=''
15967        ;;
15968      m68k)
15969            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)'
15970            hardcode_libdir_flag_spec='-L$libdir'
15971            hardcode_minus_L=yes
15972        ;;
15973      esac
15974      ;;
15975
15976    bsdi[45]*)
15977      export_dynamic_flag_spec=-rdynamic
15978      ;;
15979
15980    cygwin* | mingw* | pw32* | cegcc*)
15981      # When not using gcc, we currently assume that we are using
15982      # Microsoft Visual C++.
15983      # hardcode_libdir_flag_spec is actually meaningless, as there is
15984      # no search path for DLLs.
15985      case $cc_basename in
15986      cl*)
15987	# Native MSVC
15988	hardcode_libdir_flag_spec=' '
15989	allow_undefined_flag=unsupported
15990	always_export_symbols=yes
15991	file_list_spec='@'
15992	# Tell ltmain to make .lib files, not .a files.
15993	libext=lib
15994	# Tell ltmain to make .dll files, not .so files.
15995	shrext_cmds=".dll"
15996	# FIXME: Setting linknames here is a bad hack.
15997	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15998	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15999	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
16000	  else
16001	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
16002	  fi~
16003	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16004	  linknames='
16005	# The linker will not automatically build a static lib if we build a DLL.
16006	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16007	enable_shared_with_static_runtimes=yes
16008	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16009	# Don't use ranlib
16010	old_postinstall_cmds='chmod 644 $oldlib'
16011	postlink_cmds='lt_outputfile="@OUTPUT@"~
16012	  lt_tool_outputfile="@TOOL_OUTPUT@"~
16013	  case $lt_outputfile in
16014	    *.exe|*.EXE) ;;
16015	    *)
16016	      lt_outputfile="$lt_outputfile.exe"
16017	      lt_tool_outputfile="$lt_tool_outputfile.exe"
16018	      ;;
16019	  esac~
16020	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
16021	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16022	    $RM "$lt_outputfile.manifest";
16023	  fi'
16024	;;
16025      *)
16026	# Assume MSVC wrapper
16027	hardcode_libdir_flag_spec=' '
16028	allow_undefined_flag=unsupported
16029	# Tell ltmain to make .lib files, not .a files.
16030	libext=lib
16031	# Tell ltmain to make .dll files, not .so files.
16032	shrext_cmds=".dll"
16033	# FIXME: Setting linknames here is a bad hack.
16034	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16035	# The linker will automatically build a .lib file if we build a DLL.
16036	old_archive_from_new_cmds='true'
16037	# FIXME: Should let the user specify the lib program.
16038	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16039	enable_shared_with_static_runtimes=yes
16040	;;
16041      esac
16042      ;;
16043
16044    darwin* | rhapsody*)
16045
16046
16047  archive_cmds_need_lc=no
16048  hardcode_direct=no
16049  hardcode_automatic=yes
16050  hardcode_shlibpath_var=unsupported
16051  if test "$lt_cv_ld_force_load" = "yes"; then
16052    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\"`'
16053  else
16054    whole_archive_flag_spec=''
16055  fi
16056  link_all_deplibs=yes
16057  allow_undefined_flag="$_lt_dar_allow_undefined"
16058  case $cc_basename in
16059     ifort*) _lt_dar_can_shared=yes ;;
16060     *) _lt_dar_can_shared=$GCC ;;
16061  esac
16062  if test "$_lt_dar_can_shared" = "yes"; then
16063    output_verbose_link_cmd=func_echo_all
16064    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16065    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16066    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}"
16067    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}"
16068
16069  else
16070  ld_shlibs=no
16071  fi
16072
16073      ;;
16074
16075    dgux*)
16076      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077      hardcode_libdir_flag_spec='-L$libdir'
16078      hardcode_shlibpath_var=no
16079      ;;
16080
16081    freebsd1*)
16082      ld_shlibs=no
16083      ;;
16084
16085    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16086    # support.  Future versions do this automatically, but an explicit c++rt0.o
16087    # does not break anything, and helps significantly (at the cost of a little
16088    # extra space).
16089    freebsd2.2*)
16090      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16091      hardcode_libdir_flag_spec='-R$libdir'
16092      hardcode_direct=yes
16093      hardcode_shlibpath_var=no
16094      ;;
16095
16096    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16097    freebsd2*)
16098      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16099      hardcode_direct=yes
16100      hardcode_minus_L=yes
16101      hardcode_shlibpath_var=no
16102      ;;
16103
16104    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16105    freebsd* | dragonfly*)
16106      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16107      hardcode_libdir_flag_spec='-R$libdir'
16108      hardcode_direct=yes
16109      hardcode_shlibpath_var=no
16110      ;;
16111
16112    hpux9*)
16113      if test "$GCC" = yes; then
16114	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'
16115      else
16116	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'
16117      fi
16118      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16119      hardcode_libdir_separator=:
16120      hardcode_direct=yes
16121
16122      # hardcode_minus_L: Not really in the search PATH,
16123      # but as the default location of the library.
16124      hardcode_minus_L=yes
16125      export_dynamic_flag_spec='${wl}-E'
16126      ;;
16127
16128    hpux10*)
16129      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16130	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16131      else
16132	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16133      fi
16134      if test "$with_gnu_ld" = no; then
16135	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16136	hardcode_libdir_flag_spec_ld='+b $libdir'
16137	hardcode_libdir_separator=:
16138	hardcode_direct=yes
16139	hardcode_direct_absolute=yes
16140	export_dynamic_flag_spec='${wl}-E'
16141	# hardcode_minus_L: Not really in the search PATH,
16142	# but as the default location of the library.
16143	hardcode_minus_L=yes
16144      fi
16145      ;;
16146
16147    hpux11*)
16148      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
16149	case $host_cpu in
16150	hppa*64*)
16151	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16152	  ;;
16153	ia64*)
16154	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16155	  ;;
16156	*)
16157	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16158	  ;;
16159	esac
16160      else
16161	case $host_cpu in
16162	hppa*64*)
16163	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16164	  ;;
16165	ia64*)
16166	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16167	  ;;
16168	*)
16169
16170	  # Older versions of the 11.00 compiler do not understand -b yet
16171	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16172	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16173$as_echo_n "checking if $CC understands -b... " >&6; }
16174if ${lt_cv_prog_compiler__b+:} false; then :
16175  $as_echo_n "(cached) " >&6
16176else
16177  lt_cv_prog_compiler__b=no
16178   save_LDFLAGS="$LDFLAGS"
16179   LDFLAGS="$LDFLAGS -b"
16180   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16181   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16182     # The linker can only warn and ignore the option if not recognized
16183     # So say no if there are warnings
16184     if test -s conftest.err; then
16185       # Append any errors to the config.log.
16186       cat conftest.err 1>&5
16187       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16188       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16189       if diff conftest.exp conftest.er2 >/dev/null; then
16190         lt_cv_prog_compiler__b=yes
16191       fi
16192     else
16193       lt_cv_prog_compiler__b=yes
16194     fi
16195   fi
16196   $RM -r conftest*
16197   LDFLAGS="$save_LDFLAGS"
16198
16199fi
16200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16201$as_echo "$lt_cv_prog_compiler__b" >&6; }
16202
16203if test x"$lt_cv_prog_compiler__b" = xyes; then
16204    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16205else
16206    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16207fi
16208
16209	  ;;
16210	esac
16211      fi
16212      if test "$with_gnu_ld" = no; then
16213	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16214	hardcode_libdir_separator=:
16215
16216	case $host_cpu in
16217	hppa*64*|ia64*)
16218	  hardcode_direct=no
16219	  hardcode_shlibpath_var=no
16220	  ;;
16221	*)
16222	  hardcode_direct=yes
16223	  hardcode_direct_absolute=yes
16224	  export_dynamic_flag_spec='${wl}-E'
16225
16226	  # hardcode_minus_L: Not really in the search PATH,
16227	  # but as the default location of the library.
16228	  hardcode_minus_L=yes
16229	  ;;
16230	esac
16231      fi
16232      ;;
16233
16234    irix5* | irix6* | nonstopux*)
16235      if test "$GCC" = yes; then
16236	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'
16237	# Try to use the -exported_symbol ld option, if it does not
16238	# work, assume that -exports_file does not work either and
16239	# implicitly export all symbols.
16240	# This should be the same for all languages, so no per-tag cache variable.
16241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16242$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16243if ${lt_cv_irix_exported_symbol+:} false; then :
16244  $as_echo_n "(cached) " >&6
16245else
16246  save_LDFLAGS="$LDFLAGS"
16247	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16248	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h.  */
16250int foo (void) { return 0; }
16251_ACEOF
16252if ac_fn_c_try_link "$LINENO"; then :
16253  lt_cv_irix_exported_symbol=yes
16254else
16255  lt_cv_irix_exported_symbol=no
16256fi
16257rm -f core conftest.err conftest.$ac_objext \
16258    conftest$ac_exeext conftest.$ac_ext
16259           LDFLAGS="$save_LDFLAGS"
16260fi
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16262$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16263	if test "$lt_cv_irix_exported_symbol" = yes; then
16264          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'
16265	fi
16266      else
16267	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'
16268	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'
16269      fi
16270      archive_cmds_need_lc='no'
16271      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16272      hardcode_libdir_separator=:
16273      inherit_rpath=yes
16274      link_all_deplibs=yes
16275      ;;
16276
16277    netbsd* | netbsdelf*-gnu)
16278      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16279	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16280      else
16281	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16282      fi
16283      hardcode_libdir_flag_spec='-R$libdir'
16284      hardcode_direct=yes
16285      hardcode_shlibpath_var=no
16286      ;;
16287
16288    newsos6)
16289      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16290      hardcode_direct=yes
16291      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16292      hardcode_libdir_separator=:
16293      hardcode_shlibpath_var=no
16294      ;;
16295
16296    *nto* | *qnx*)
16297      ;;
16298
16299    openbsd*)
16300      if test -f /usr/libexec/ld.so; then
16301	hardcode_direct=yes
16302	hardcode_shlibpath_var=no
16303	hardcode_direct_absolute=yes
16304	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16305	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16306	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16307	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16308	  export_dynamic_flag_spec='${wl}-E'
16309	else
16310	  case $host_os in
16311	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16312	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16313	     hardcode_libdir_flag_spec='-R$libdir'
16314	     ;;
16315	   *)
16316	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16317	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16318	     ;;
16319	  esac
16320	fi
16321      else
16322	ld_shlibs=no
16323      fi
16324      ;;
16325
16326    os2*)
16327      hardcode_libdir_flag_spec='-L$libdir'
16328      hardcode_minus_L=yes
16329      allow_undefined_flag=unsupported
16330      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'
16331      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16332      ;;
16333
16334    osf3*)
16335      if test "$GCC" = yes; then
16336	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16337	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'
16338      else
16339	allow_undefined_flag=' -expect_unresolved \*'
16340	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'
16341      fi
16342      archive_cmds_need_lc='no'
16343      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16344      hardcode_libdir_separator=:
16345      ;;
16346
16347    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16348      if test "$GCC" = yes; then
16349	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16350	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'
16351	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16352      else
16353	allow_undefined_flag=' -expect_unresolved \*'
16354	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'
16355	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~
16356	$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'
16357
16358	# Both c and cxx compiler support -rpath directly
16359	hardcode_libdir_flag_spec='-rpath $libdir'
16360      fi
16361      archive_cmds_need_lc='no'
16362      hardcode_libdir_separator=:
16363      ;;
16364
16365    solaris*)
16366      no_undefined_flag=' -z defs'
16367      if test "$GCC" = yes; then
16368	wlarc='${wl}'
16369	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16370	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16371	  $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'
16372      else
16373	case `$CC -V 2>&1` in
16374	*"Compilers 5.0"*)
16375	  wlarc=''
16376	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16377	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16378	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16379	  ;;
16380	*)
16381	  wlarc='${wl}'
16382	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16383	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16384	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16385	  ;;
16386	esac
16387      fi
16388      hardcode_libdir_flag_spec='-R$libdir'
16389      hardcode_shlibpath_var=no
16390      case $host_os in
16391      solaris2.[0-5] | solaris2.[0-5].*) ;;
16392      *)
16393	# The compiler driver will combine and reorder linker options,
16394	# but understands `-z linker_flag'.  GCC discards it without `$wl',
16395	# but is careful enough not to reorder.
16396	# Supported since Solaris 2.6 (maybe 2.5.1?)
16397	if test "$GCC" = yes; then
16398	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16399	else
16400	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16401	fi
16402	;;
16403      esac
16404      link_all_deplibs=yes
16405      ;;
16406
16407    sunos4*)
16408      if test "x$host_vendor" = xsequent; then
16409	# Use $CC to link under sequent, because it throws in some extra .o
16410	# files that make .init and .fini sections work.
16411	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16412      else
16413	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16414      fi
16415      hardcode_libdir_flag_spec='-L$libdir'
16416      hardcode_direct=yes
16417      hardcode_minus_L=yes
16418      hardcode_shlibpath_var=no
16419      ;;
16420
16421    sysv4)
16422      case $host_vendor in
16423	sni)
16424	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16425	  hardcode_direct=yes # is this really true???
16426	;;
16427	siemens)
16428	  ## LD is ld it makes a PLAMLIB
16429	  ## CC just makes a GrossModule.
16430	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16431	  reload_cmds='$CC -r -o $output$reload_objs'
16432	  hardcode_direct=no
16433        ;;
16434	motorola)
16435	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16436	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16437	;;
16438      esac
16439      runpath_var='LD_RUN_PATH'
16440      hardcode_shlibpath_var=no
16441      ;;
16442
16443    sysv4.3*)
16444      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445      hardcode_shlibpath_var=no
16446      export_dynamic_flag_spec='-Bexport'
16447      ;;
16448
16449    sysv4*MP*)
16450      if test -d /usr/nec; then
16451	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452	hardcode_shlibpath_var=no
16453	runpath_var=LD_RUN_PATH
16454	hardcode_runpath_var=yes
16455	ld_shlibs=yes
16456      fi
16457      ;;
16458
16459    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16460      no_undefined_flag='${wl}-z,text'
16461      archive_cmds_need_lc=no
16462      hardcode_shlibpath_var=no
16463      runpath_var='LD_RUN_PATH'
16464
16465      if test "$GCC" = yes; then
16466	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16467	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16468      else
16469	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16470	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16471      fi
16472      ;;
16473
16474    sysv5* | sco3.2v5* | sco5v6*)
16475      # Note: We can NOT use -z defs as we might desire, because we do not
16476      # link with -lc, and that would cause any symbols used from libc to
16477      # always be unresolved, which means just about no library would
16478      # ever link correctly.  If we're not using GNU ld we use -z text
16479      # though, which does catch some bad symbols but isn't as heavy-handed
16480      # as -z defs.
16481      no_undefined_flag='${wl}-z,text'
16482      allow_undefined_flag='${wl}-z,nodefs'
16483      archive_cmds_need_lc=no
16484      hardcode_shlibpath_var=no
16485      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16486      hardcode_libdir_separator=':'
16487      link_all_deplibs=yes
16488      export_dynamic_flag_spec='${wl}-Bexport'
16489      runpath_var='LD_RUN_PATH'
16490
16491      if test "$GCC" = yes; then
16492	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16493	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16494      else
16495	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16496	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16497      fi
16498      ;;
16499
16500    uts4*)
16501      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502      hardcode_libdir_flag_spec='-L$libdir'
16503      hardcode_shlibpath_var=no
16504      ;;
16505
16506    *)
16507      ld_shlibs=no
16508      ;;
16509    esac
16510
16511    if test x$host_vendor = xsni; then
16512      case $host in
16513      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16514	export_dynamic_flag_spec='${wl}-Blargedynsym'
16515	;;
16516      esac
16517    fi
16518  fi
16519
16520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16521$as_echo "$ld_shlibs" >&6; }
16522test "$ld_shlibs" = no && can_build_shared=no
16523
16524with_gnu_ld=$with_gnu_ld
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540#
16541# Do we need to explicitly link libc?
16542#
16543case "x$archive_cmds_need_lc" in
16544x|xyes)
16545  # Assume -lc should be added
16546  archive_cmds_need_lc=yes
16547
16548  if test "$enable_shared" = yes && test "$GCC" = yes; then
16549    case $archive_cmds in
16550    *'~'*)
16551      # FIXME: we may have to deal with multi-command sequences.
16552      ;;
16553    '$CC '*)
16554      # Test whether the compiler implicitly links with -lc since on some
16555      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16556      # to ld, don't add -lc before -lgcc.
16557      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16558$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16559if ${lt_cv_archive_cmds_need_lc+:} false; then :
16560  $as_echo_n "(cached) " >&6
16561else
16562  $RM conftest*
16563	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16564
16565	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16566  (eval $ac_compile) 2>&5
16567  ac_status=$?
16568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16569  test $ac_status = 0; } 2>conftest.err; then
16570	  soname=conftest
16571	  lib=conftest
16572	  libobjs=conftest.$ac_objext
16573	  deplibs=
16574	  wl=$lt_prog_compiler_wl
16575	  pic_flag=$lt_prog_compiler_pic
16576	  compiler_flags=-v
16577	  linker_flags=-v
16578	  verstring=
16579	  output_objdir=.
16580	  libname=conftest
16581	  lt_save_allow_undefined_flag=$allow_undefined_flag
16582	  allow_undefined_flag=
16583	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16584  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16585  ac_status=$?
16586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16587  test $ac_status = 0; }
16588	  then
16589	    lt_cv_archive_cmds_need_lc=no
16590	  else
16591	    lt_cv_archive_cmds_need_lc=yes
16592	  fi
16593	  allow_undefined_flag=$lt_save_allow_undefined_flag
16594	else
16595	  cat conftest.err 1>&5
16596	fi
16597	$RM conftest*
16598
16599fi
16600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16601$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16602      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16603      ;;
16604    esac
16605  fi
16606  ;;
16607esac
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16766$as_echo_n "checking dynamic linker characteristics... " >&6; }
16767
16768if test "$GCC" = yes; then
16769  case $host_os in
16770    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16771    *) lt_awk_arg="/^libraries:/" ;;
16772  esac
16773  case $host_os in
16774    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16775    *) lt_sed_strip_eq="s,=/,/,g" ;;
16776  esac
16777  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16778  case $lt_search_path_spec in
16779  *\;*)
16780    # if the path contains ";" then we assume it to be the separator
16781    # otherwise default to the standard path separator (i.e. ":") - it is
16782    # assumed that no part of a normal pathname contains ";" but that should
16783    # okay in the real world where ";" in dirpaths is itself problematic.
16784    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16785    ;;
16786  *)
16787    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16788    ;;
16789  esac
16790  # Ok, now we have the path, separated by spaces, we can step through it
16791  # and add multilib dir if necessary.
16792  lt_tmp_lt_search_path_spec=
16793  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16794  for lt_sys_path in $lt_search_path_spec; do
16795    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16796      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16797    else
16798      test -d "$lt_sys_path" && \
16799	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16800    fi
16801  done
16802  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16803BEGIN {RS=" "; FS="/|\n";} {
16804  lt_foo="";
16805  lt_count=0;
16806  for (lt_i = NF; lt_i > 0; lt_i--) {
16807    if ($lt_i != "" && $lt_i != ".") {
16808      if ($lt_i == "..") {
16809        lt_count++;
16810      } else {
16811        if (lt_count == 0) {
16812          lt_foo="/" $lt_i lt_foo;
16813        } else {
16814          lt_count--;
16815        }
16816      }
16817    }
16818  }
16819  if (lt_foo != "") { lt_freq[lt_foo]++; }
16820  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16821}'`
16822  # AWK program above erroneously prepends '/' to C:/dos/paths
16823  # for these hosts.
16824  case $host_os in
16825    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16826      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16827  esac
16828  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16829else
16830  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16831fi
16832library_names_spec=
16833libname_spec='lib$name'
16834soname_spec=
16835shrext_cmds=".so"
16836postinstall_cmds=
16837postuninstall_cmds=
16838finish_cmds=
16839finish_eval=
16840shlibpath_var=
16841shlibpath_overrides_runpath=unknown
16842version_type=none
16843dynamic_linker="$host_os ld.so"
16844sys_lib_dlsearch_path_spec="/lib /usr/lib"
16845need_lib_prefix=unknown
16846hardcode_into_libs=no
16847
16848# when you set need_version to no, make sure it does not cause -set_version
16849# flags to be left without arguments
16850need_version=unknown
16851
16852case $host_os in
16853aix3*)
16854  version_type=linux
16855  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16856  shlibpath_var=LIBPATH
16857
16858  # AIX 3 has no versioning support, so we append a major version to the name.
16859  soname_spec='${libname}${release}${shared_ext}$major'
16860  ;;
16861
16862aix[4-9]*)
16863  version_type=linux
16864  need_lib_prefix=no
16865  need_version=no
16866  hardcode_into_libs=yes
16867  if test "$host_cpu" = ia64; then
16868    # AIX 5 supports IA64
16869    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16870    shlibpath_var=LD_LIBRARY_PATH
16871  else
16872    # With GCC up to 2.95.x, collect2 would create an import file
16873    # for dependence libraries.  The import file would start with
16874    # the line `#! .'.  This would cause the generated library to
16875    # depend on `.', always an invalid library.  This was fixed in
16876    # development snapshots of GCC prior to 3.0.
16877    case $host_os in
16878      aix4 | aix4.[01] | aix4.[01].*)
16879      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16880	   echo ' yes '
16881	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16882	:
16883      else
16884	can_build_shared=no
16885      fi
16886      ;;
16887    esac
16888    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16889    # soname into executable. Probably we can add versioning support to
16890    # collect2, so additional links can be useful in future.
16891    if test "$aix_use_runtimelinking" = yes; then
16892      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16893      # instead of lib<name>.a to let people know that these are not
16894      # typical AIX shared libraries.
16895      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896    else
16897      # We preserve .a as extension for shared libraries through AIX4.2
16898      # and later when we are not doing run time linking.
16899      library_names_spec='${libname}${release}.a $libname.a'
16900      soname_spec='${libname}${release}${shared_ext}$major'
16901    fi
16902    shlibpath_var=LIBPATH
16903  fi
16904  ;;
16905
16906amigaos*)
16907  case $host_cpu in
16908  powerpc)
16909    # Since July 2007 AmigaOS4 officially supports .so libraries.
16910    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16911    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16912    ;;
16913  m68k)
16914    library_names_spec='$libname.ixlibrary $libname.a'
16915    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16916    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'
16917    ;;
16918  esac
16919  ;;
16920
16921beos*)
16922  library_names_spec='${libname}${shared_ext}'
16923  dynamic_linker="$host_os ld.so"
16924  shlibpath_var=LIBRARY_PATH
16925  ;;
16926
16927bsdi[45]*)
16928  version_type=linux
16929  need_version=no
16930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931  soname_spec='${libname}${release}${shared_ext}$major'
16932  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16933  shlibpath_var=LD_LIBRARY_PATH
16934  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16935  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16936  # the default ld.so.conf also contains /usr/contrib/lib and
16937  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16938  # libtool to hard-code these into programs
16939  ;;
16940
16941cygwin* | mingw* | pw32* | cegcc*)
16942  version_type=windows
16943  shrext_cmds=".dll"
16944  need_version=no
16945  need_lib_prefix=no
16946
16947  case $GCC,$cc_basename in
16948  yes,*)
16949    # gcc
16950    library_names_spec='$libname.dll.a'
16951    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16952    postinstall_cmds='base_file=`basename \${file}`~
16953      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16954      dldir=$destdir/`dirname \$dlpath`~
16955      test -d \$dldir || mkdir -p \$dldir~
16956      $install_prog $dir/$dlname \$dldir/$dlname~
16957      chmod a+x \$dldir/$dlname~
16958      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16959        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16960      fi'
16961    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16962      dlpath=$dir/\$dldll~
16963       $RM \$dlpath'
16964    shlibpath_overrides_runpath=yes
16965
16966    case $host_os in
16967    cygwin*)
16968      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16969      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16970
16971      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16972      ;;
16973    mingw* | cegcc*)
16974      # MinGW DLLs use traditional 'lib' prefix
16975      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16976      ;;
16977    pw32*)
16978      # pw32 DLLs use 'pw' prefix rather than 'lib'
16979      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16980      ;;
16981    esac
16982    dynamic_linker='Win32 ld.exe'
16983    ;;
16984
16985  *,cl*)
16986    # Native MSVC
16987    libname_spec='$name'
16988    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16989    library_names_spec='${libname}.dll.lib'
16990
16991    case $build_os in
16992    mingw*)
16993      sys_lib_search_path_spec=
16994      lt_save_ifs=$IFS
16995      IFS=';'
16996      for lt_path in $LIB
16997      do
16998        IFS=$lt_save_ifs
16999        # Let DOS variable expansion print the short 8.3 style file name.
17000        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17001        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17002      done
17003      IFS=$lt_save_ifs
17004      # Convert to MSYS style.
17005      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17006      ;;
17007    cygwin*)
17008      # Convert to unix form, then to dos form, then back to unix form
17009      # but this time dos style (no spaces!) so that the unix form looks
17010      # like /cygdrive/c/PROGRA~1:/cygdr...
17011      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17012      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17013      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17014      ;;
17015    *)
17016      sys_lib_search_path_spec="$LIB"
17017      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17018        # It is most probably a Windows format PATH.
17019        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17020      else
17021        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17022      fi
17023      # FIXME: find the short name or the path components, as spaces are
17024      # common. (e.g. "Program Files" -> "PROGRA~1")
17025      ;;
17026    esac
17027
17028    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17029    postinstall_cmds='base_file=`basename \${file}`~
17030      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17031      dldir=$destdir/`dirname \$dlpath`~
17032      test -d \$dldir || mkdir -p \$dldir~
17033      $install_prog $dir/$dlname \$dldir/$dlname'
17034    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17035      dlpath=$dir/\$dldll~
17036       $RM \$dlpath'
17037    shlibpath_overrides_runpath=yes
17038    dynamic_linker='Win32 link.exe'
17039    ;;
17040
17041  *)
17042    # Assume MSVC wrapper
17043    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17044    dynamic_linker='Win32 ld.exe'
17045    ;;
17046  esac
17047  # FIXME: first we should search . and the directory the executable is in
17048  shlibpath_var=PATH
17049  ;;
17050
17051darwin* | rhapsody*)
17052  dynamic_linker="$host_os dyld"
17053  version_type=darwin
17054  need_lib_prefix=no
17055  need_version=no
17056  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17057  soname_spec='${libname}${release}${major}$shared_ext'
17058  shlibpath_overrides_runpath=yes
17059  shlibpath_var=DYLD_LIBRARY_PATH
17060  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17061
17062  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17063  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17064  ;;
17065
17066dgux*)
17067  version_type=linux
17068  need_lib_prefix=no
17069  need_version=no
17070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17071  soname_spec='${libname}${release}${shared_ext}$major'
17072  shlibpath_var=LD_LIBRARY_PATH
17073  ;;
17074
17075freebsd1*)
17076  dynamic_linker=no
17077  ;;
17078
17079freebsd* | dragonfly*)
17080  # DragonFly does not have aout.  When/if they implement a new
17081  # versioning mechanism, adjust this.
17082  if test -x /usr/bin/objformat; then
17083    objformat=`/usr/bin/objformat`
17084  else
17085    case $host_os in
17086    freebsd[123]*) objformat=aout ;;
17087    *) objformat=elf ;;
17088    esac
17089  fi
17090  version_type=freebsd-$objformat
17091  case $version_type in
17092    freebsd-elf*)
17093      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17094      need_version=no
17095      need_lib_prefix=no
17096      ;;
17097    freebsd-*)
17098      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17099      need_version=yes
17100      ;;
17101  esac
17102  shlibpath_var=LD_LIBRARY_PATH
17103  case $host_os in
17104  freebsd2*)
17105    shlibpath_overrides_runpath=yes
17106    ;;
17107  freebsd3.[01]* | freebsdelf3.[01]*)
17108    shlibpath_overrides_runpath=yes
17109    hardcode_into_libs=yes
17110    ;;
17111  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17112  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17113    shlibpath_overrides_runpath=no
17114    hardcode_into_libs=yes
17115    ;;
17116  *) # from 4.6 on, and DragonFly
17117    shlibpath_overrides_runpath=yes
17118    hardcode_into_libs=yes
17119    ;;
17120  esac
17121  ;;
17122
17123gnu*)
17124  version_type=linux
17125  need_lib_prefix=no
17126  need_version=no
17127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17128  soname_spec='${libname}${release}${shared_ext}$major'
17129  shlibpath_var=LD_LIBRARY_PATH
17130  shlibpath_overrides_runpath=no
17131  hardcode_into_libs=yes
17132  ;;
17133
17134haiku*)
17135  version_type=linux
17136  need_lib_prefix=no
17137  need_version=no
17138  dynamic_linker="$host_os runtime_loader"
17139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17140  soname_spec='${libname}${release}${shared_ext}$major'
17141  shlibpath_var=LIBRARY_PATH
17142  shlibpath_overrides_runpath=yes
17143  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17144  hardcode_into_libs=yes
17145  ;;
17146
17147hpux9* | hpux10* | hpux11*)
17148  # Give a soname corresponding to the major version so that dld.sl refuses to
17149  # link against other versions.
17150  version_type=sunos
17151  need_lib_prefix=no
17152  need_version=no
17153  case $host_cpu in
17154  ia64*)
17155    shrext_cmds='.so'
17156    hardcode_into_libs=yes
17157    dynamic_linker="$host_os dld.so"
17158    shlibpath_var=LD_LIBRARY_PATH
17159    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17161    soname_spec='${libname}${release}${shared_ext}$major'
17162    if test "X$HPUX_IA64_MODE" = X32; then
17163      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17164    else
17165      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17166    fi
17167    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17168    ;;
17169  hppa*64*)
17170    shrext_cmds='.sl'
17171    hardcode_into_libs=yes
17172    dynamic_linker="$host_os dld.sl"
17173    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17174    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17175    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17176    soname_spec='${libname}${release}${shared_ext}$major'
17177    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17178    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17179    ;;
17180  *)
17181    shrext_cmds='.sl'
17182    dynamic_linker="$host_os dld.sl"
17183    shlibpath_var=SHLIB_PATH
17184    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17185    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186    soname_spec='${libname}${release}${shared_ext}$major'
17187    ;;
17188  esac
17189  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17190  postinstall_cmds='chmod 555 $lib'
17191  # or fails outright, so override atomically:
17192  install_override_mode=555
17193  ;;
17194
17195interix[3-9]*)
17196  version_type=linux
17197  need_lib_prefix=no
17198  need_version=no
17199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17200  soname_spec='${libname}${release}${shared_ext}$major'
17201  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17202  shlibpath_var=LD_LIBRARY_PATH
17203  shlibpath_overrides_runpath=no
17204  hardcode_into_libs=yes
17205  ;;
17206
17207irix5* | irix6* | nonstopux*)
17208  case $host_os in
17209    nonstopux*) version_type=nonstopux ;;
17210    *)
17211	if test "$lt_cv_prog_gnu_ld" = yes; then
17212		version_type=linux
17213	else
17214		version_type=irix
17215	fi ;;
17216  esac
17217  need_lib_prefix=no
17218  need_version=no
17219  soname_spec='${libname}${release}${shared_ext}$major'
17220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17221  case $host_os in
17222  irix5* | nonstopux*)
17223    libsuff= shlibsuff=
17224    ;;
17225  *)
17226    case $LD in # libtool.m4 will add one of these switches to LD
17227    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17228      libsuff= shlibsuff= libmagic=32-bit;;
17229    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17230      libsuff=32 shlibsuff=N32 libmagic=N32;;
17231    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17232      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17233    *) libsuff= shlibsuff= libmagic=never-match;;
17234    esac
17235    ;;
17236  esac
17237  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17238  shlibpath_overrides_runpath=no
17239  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17240  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17241  hardcode_into_libs=yes
17242  ;;
17243
17244# No shared lib support for Linux oldld, aout, or coff.
17245linux*oldld* | linux*aout* | linux*coff*)
17246  dynamic_linker=no
17247  ;;
17248
17249# This must be Linux ELF.
17250linux* | k*bsd*-gnu | kopensolaris*-gnu)
17251  version_type=linux
17252  need_lib_prefix=no
17253  need_version=no
17254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255  soname_spec='${libname}${release}${shared_ext}$major'
17256  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17257  shlibpath_var=LD_LIBRARY_PATH
17258  shlibpath_overrides_runpath=no
17259
17260  # Some binutils ld are patched to set DT_RUNPATH
17261  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17262  $as_echo_n "(cached) " >&6
17263else
17264  lt_cv_shlibpath_overrides_runpath=no
17265    save_LDFLAGS=$LDFLAGS
17266    save_libdir=$libdir
17267    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17268	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271
17272int
17273main ()
17274{
17275
17276  ;
17277  return 0;
17278}
17279_ACEOF
17280if ac_fn_c_try_link "$LINENO"; then :
17281  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17282  lt_cv_shlibpath_overrides_runpath=yes
17283fi
17284fi
17285rm -f core conftest.err conftest.$ac_objext \
17286    conftest$ac_exeext conftest.$ac_ext
17287    LDFLAGS=$save_LDFLAGS
17288    libdir=$save_libdir
17289
17290fi
17291
17292  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17293
17294  # This implies no fast_install, which is unacceptable.
17295  # Some rework will be needed to allow for fast_install
17296  # before this can be enabled.
17297  hardcode_into_libs=yes
17298
17299  # Append ld.so.conf contents to the search path
17300  if test -f /etc/ld.so.conf; then
17301    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' ' '`
17302    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17303  fi
17304
17305  # We used to test for /lib/ld.so.1 and disable shared libraries on
17306  # powerpc, because MkLinux only supported shared libraries with the
17307  # GNU dynamic linker.  Since this was broken with cross compilers,
17308  # most powerpc-linux boxes support dynamic linking these days and
17309  # people can always --disable-shared, the test was removed, and we
17310  # assume the GNU/Linux dynamic linker is in use.
17311  dynamic_linker='GNU/Linux ld.so'
17312  ;;
17313
17314netbsdelf*-gnu)
17315  version_type=linux
17316  need_lib_prefix=no
17317  need_version=no
17318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17319  soname_spec='${libname}${release}${shared_ext}$major'
17320  shlibpath_var=LD_LIBRARY_PATH
17321  shlibpath_overrides_runpath=no
17322  hardcode_into_libs=yes
17323  dynamic_linker='NetBSD ld.elf_so'
17324  ;;
17325
17326netbsd*)
17327  version_type=sunos
17328  need_lib_prefix=no
17329  need_version=no
17330  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17331    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17332    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17333    dynamic_linker='NetBSD (a.out) ld.so'
17334  else
17335    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17336    soname_spec='${libname}${release}${shared_ext}$major'
17337    dynamic_linker='NetBSD ld.elf_so'
17338  fi
17339  shlibpath_var=LD_LIBRARY_PATH
17340  shlibpath_overrides_runpath=yes
17341  hardcode_into_libs=yes
17342  ;;
17343
17344newsos6)
17345  version_type=linux
17346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347  shlibpath_var=LD_LIBRARY_PATH
17348  shlibpath_overrides_runpath=yes
17349  ;;
17350
17351*nto* | *qnx*)
17352  version_type=qnx
17353  need_lib_prefix=no
17354  need_version=no
17355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356  soname_spec='${libname}${release}${shared_ext}$major'
17357  shlibpath_var=LD_LIBRARY_PATH
17358  shlibpath_overrides_runpath=no
17359  hardcode_into_libs=yes
17360  dynamic_linker='ldqnx.so'
17361  ;;
17362
17363openbsd*)
17364  version_type=sunos
17365  sys_lib_dlsearch_path_spec="/usr/lib"
17366  need_lib_prefix=no
17367  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17368  case $host_os in
17369    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
17370    *)				need_version=no  ;;
17371  esac
17372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17373  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17374  shlibpath_var=LD_LIBRARY_PATH
17375  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17376    case $host_os in
17377      openbsd2.[89] | openbsd2.[89].*)
17378	shlibpath_overrides_runpath=no
17379	;;
17380      *)
17381	shlibpath_overrides_runpath=yes
17382	;;
17383      esac
17384  else
17385    shlibpath_overrides_runpath=yes
17386  fi
17387  ;;
17388
17389os2*)
17390  libname_spec='$name'
17391  shrext_cmds=".dll"
17392  need_lib_prefix=no
17393  library_names_spec='$libname${shared_ext} $libname.a'
17394  dynamic_linker='OS/2 ld.exe'
17395  shlibpath_var=LIBPATH
17396  ;;
17397
17398osf3* | osf4* | osf5*)
17399  version_type=osf
17400  need_lib_prefix=no
17401  need_version=no
17402  soname_spec='${libname}${release}${shared_ext}$major'
17403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17404  shlibpath_var=LD_LIBRARY_PATH
17405  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17406  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17407  ;;
17408
17409rdos*)
17410  dynamic_linker=no
17411  ;;
17412
17413solaris*)
17414  version_type=linux
17415  need_lib_prefix=no
17416  need_version=no
17417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17418  soname_spec='${libname}${release}${shared_ext}$major'
17419  shlibpath_var=LD_LIBRARY_PATH
17420  shlibpath_overrides_runpath=yes
17421  hardcode_into_libs=yes
17422  # ldd complains unless libraries are executable
17423  postinstall_cmds='chmod +x $lib'
17424  ;;
17425
17426sunos4*)
17427  version_type=sunos
17428  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17429  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17430  shlibpath_var=LD_LIBRARY_PATH
17431  shlibpath_overrides_runpath=yes
17432  if test "$with_gnu_ld" = yes; then
17433    need_lib_prefix=no
17434  fi
17435  need_version=yes
17436  ;;
17437
17438sysv4 | sysv4.3*)
17439  version_type=linux
17440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17441  soname_spec='${libname}${release}${shared_ext}$major'
17442  shlibpath_var=LD_LIBRARY_PATH
17443  case $host_vendor in
17444    sni)
17445      shlibpath_overrides_runpath=no
17446      need_lib_prefix=no
17447      runpath_var=LD_RUN_PATH
17448      ;;
17449    siemens)
17450      need_lib_prefix=no
17451      ;;
17452    motorola)
17453      need_lib_prefix=no
17454      need_version=no
17455      shlibpath_overrides_runpath=no
17456      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17457      ;;
17458  esac
17459  ;;
17460
17461sysv4*MP*)
17462  if test -d /usr/nec ;then
17463    version_type=linux
17464    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17465    soname_spec='$libname${shared_ext}.$major'
17466    shlibpath_var=LD_LIBRARY_PATH
17467  fi
17468  ;;
17469
17470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17471  version_type=freebsd-elf
17472  need_lib_prefix=no
17473  need_version=no
17474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17475  soname_spec='${libname}${release}${shared_ext}$major'
17476  shlibpath_var=LD_LIBRARY_PATH
17477  shlibpath_overrides_runpath=yes
17478  hardcode_into_libs=yes
17479  if test "$with_gnu_ld" = yes; then
17480    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17481  else
17482    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17483    case $host_os in
17484      sco3.2v5*)
17485        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17486	;;
17487    esac
17488  fi
17489  sys_lib_dlsearch_path_spec='/usr/lib'
17490  ;;
17491
17492tpf*)
17493  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17494  version_type=linux
17495  need_lib_prefix=no
17496  need_version=no
17497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498  shlibpath_var=LD_LIBRARY_PATH
17499  shlibpath_overrides_runpath=no
17500  hardcode_into_libs=yes
17501  ;;
17502
17503uts4*)
17504  version_type=linux
17505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17506  soname_spec='${libname}${release}${shared_ext}$major'
17507  shlibpath_var=LD_LIBRARY_PATH
17508  ;;
17509
17510*)
17511  dynamic_linker=no
17512  ;;
17513esac
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17515$as_echo "$dynamic_linker" >&6; }
17516test "$dynamic_linker" = no && can_build_shared=no
17517
17518variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17519if test "$GCC" = yes; then
17520  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17521fi
17522
17523if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17524  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17525fi
17526if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17527  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17528fi
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17622$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17623hardcode_action=
17624if test -n "$hardcode_libdir_flag_spec" ||
17625   test -n "$runpath_var" ||
17626   test "X$hardcode_automatic" = "Xyes" ; then
17627
17628  # We can hardcode non-existent directories.
17629  if test "$hardcode_direct" != no &&
17630     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17631     # have to relink, otherwise we might link with an installed library
17632     # when we should be linking with a yet-to-be-installed one
17633     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17634     test "$hardcode_minus_L" != no; then
17635    # Linking always hardcodes the temporary library directory.
17636    hardcode_action=relink
17637  else
17638    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17639    hardcode_action=immediate
17640  fi
17641else
17642  # We cannot hardcode anything, or else we can only hardcode existing
17643  # directories.
17644  hardcode_action=unsupported
17645fi
17646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17647$as_echo "$hardcode_action" >&6; }
17648
17649if test "$hardcode_action" = relink ||
17650   test "$inherit_rpath" = yes; then
17651  # Fast installation is not supported
17652  enable_fast_install=no
17653elif test "$shlibpath_overrides_runpath" = yes ||
17654     test "$enable_shared" = no; then
17655  # Fast installation is not necessary
17656  enable_fast_install=needless
17657fi
17658
17659
17660
17661
17662
17663
17664  if test "x$enable_dlopen" != xyes; then
17665  enable_dlopen=unknown
17666  enable_dlopen_self=unknown
17667  enable_dlopen_self_static=unknown
17668else
17669  lt_cv_dlopen=no
17670  lt_cv_dlopen_libs=
17671
17672  case $host_os in
17673  beos*)
17674    lt_cv_dlopen="load_add_on"
17675    lt_cv_dlopen_libs=
17676    lt_cv_dlopen_self=yes
17677    ;;
17678
17679  mingw* | pw32* | cegcc*)
17680    lt_cv_dlopen="LoadLibrary"
17681    lt_cv_dlopen_libs=
17682    ;;
17683
17684  cygwin*)
17685    lt_cv_dlopen="dlopen"
17686    lt_cv_dlopen_libs=
17687    ;;
17688
17689  darwin*)
17690  # if libdl is installed we need to link against it
17691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17692$as_echo_n "checking for dlopen in -ldl... " >&6; }
17693if ${ac_cv_lib_dl_dlopen+:} false; then :
17694  $as_echo_n "(cached) " >&6
17695else
17696  ac_check_lib_save_LIBS=$LIBS
17697LIBS="-ldl  $LIBS"
17698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699/* end confdefs.h.  */
17700
17701/* Override any GCC internal prototype to avoid an error.
17702   Use char because int might match the return type of a GCC
17703   builtin and then its argument prototype would still apply.  */
17704#ifdef __cplusplus
17705extern "C"
17706#endif
17707char dlopen ();
17708int
17709main ()
17710{
17711return dlopen ();
17712  ;
17713  return 0;
17714}
17715_ACEOF
17716if ac_fn_c_try_link "$LINENO"; then :
17717  ac_cv_lib_dl_dlopen=yes
17718else
17719  ac_cv_lib_dl_dlopen=no
17720fi
17721rm -f core conftest.err conftest.$ac_objext \
17722    conftest$ac_exeext conftest.$ac_ext
17723LIBS=$ac_check_lib_save_LIBS
17724fi
17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17726$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17727if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17728  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17729else
17730
17731    lt_cv_dlopen="dyld"
17732    lt_cv_dlopen_libs=
17733    lt_cv_dlopen_self=yes
17734
17735fi
17736
17737    ;;
17738
17739  *)
17740    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17741if test "x$ac_cv_func_shl_load" = xyes; then :
17742  lt_cv_dlopen="shl_load"
17743else
17744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17745$as_echo_n "checking for shl_load in -ldld... " >&6; }
17746if ${ac_cv_lib_dld_shl_load+:} false; then :
17747  $as_echo_n "(cached) " >&6
17748else
17749  ac_check_lib_save_LIBS=$LIBS
17750LIBS="-ldld  $LIBS"
17751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17752/* end confdefs.h.  */
17753
17754/* Override any GCC internal prototype to avoid an error.
17755   Use char because int might match the return type of a GCC
17756   builtin and then its argument prototype would still apply.  */
17757#ifdef __cplusplus
17758extern "C"
17759#endif
17760char shl_load ();
17761int
17762main ()
17763{
17764return shl_load ();
17765  ;
17766  return 0;
17767}
17768_ACEOF
17769if ac_fn_c_try_link "$LINENO"; then :
17770  ac_cv_lib_dld_shl_load=yes
17771else
17772  ac_cv_lib_dld_shl_load=no
17773fi
17774rm -f core conftest.err conftest.$ac_objext \
17775    conftest$ac_exeext conftest.$ac_ext
17776LIBS=$ac_check_lib_save_LIBS
17777fi
17778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17779$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17780if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17781  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17782else
17783  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17784if test "x$ac_cv_func_dlopen" = xyes; then :
17785  lt_cv_dlopen="dlopen"
17786else
17787  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17788$as_echo_n "checking for dlopen in -ldl... " >&6; }
17789if ${ac_cv_lib_dl_dlopen+:} false; then :
17790  $as_echo_n "(cached) " >&6
17791else
17792  ac_check_lib_save_LIBS=$LIBS
17793LIBS="-ldl  $LIBS"
17794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795/* end confdefs.h.  */
17796
17797/* Override any GCC internal prototype to avoid an error.
17798   Use char because int might match the return type of a GCC
17799   builtin and then its argument prototype would still apply.  */
17800#ifdef __cplusplus
17801extern "C"
17802#endif
17803char dlopen ();
17804int
17805main ()
17806{
17807return dlopen ();
17808  ;
17809  return 0;
17810}
17811_ACEOF
17812if ac_fn_c_try_link "$LINENO"; then :
17813  ac_cv_lib_dl_dlopen=yes
17814else
17815  ac_cv_lib_dl_dlopen=no
17816fi
17817rm -f core conftest.err conftest.$ac_objext \
17818    conftest$ac_exeext conftest.$ac_ext
17819LIBS=$ac_check_lib_save_LIBS
17820fi
17821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17822$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17823if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17824  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17825else
17826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17827$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17828if ${ac_cv_lib_svld_dlopen+:} false; then :
17829  $as_echo_n "(cached) " >&6
17830else
17831  ac_check_lib_save_LIBS=$LIBS
17832LIBS="-lsvld  $LIBS"
17833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834/* end confdefs.h.  */
17835
17836/* Override any GCC internal prototype to avoid an error.
17837   Use char because int might match the return type of a GCC
17838   builtin and then its argument prototype would still apply.  */
17839#ifdef __cplusplus
17840extern "C"
17841#endif
17842char dlopen ();
17843int
17844main ()
17845{
17846return dlopen ();
17847  ;
17848  return 0;
17849}
17850_ACEOF
17851if ac_fn_c_try_link "$LINENO"; then :
17852  ac_cv_lib_svld_dlopen=yes
17853else
17854  ac_cv_lib_svld_dlopen=no
17855fi
17856rm -f core conftest.err conftest.$ac_objext \
17857    conftest$ac_exeext conftest.$ac_ext
17858LIBS=$ac_check_lib_save_LIBS
17859fi
17860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17861$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17862if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17863  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17864else
17865  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17866$as_echo_n "checking for dld_link in -ldld... " >&6; }
17867if ${ac_cv_lib_dld_dld_link+:} false; then :
17868  $as_echo_n "(cached) " >&6
17869else
17870  ac_check_lib_save_LIBS=$LIBS
17871LIBS="-ldld  $LIBS"
17872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17873/* end confdefs.h.  */
17874
17875/* Override any GCC internal prototype to avoid an error.
17876   Use char because int might match the return type of a GCC
17877   builtin and then its argument prototype would still apply.  */
17878#ifdef __cplusplus
17879extern "C"
17880#endif
17881char dld_link ();
17882int
17883main ()
17884{
17885return dld_link ();
17886  ;
17887  return 0;
17888}
17889_ACEOF
17890if ac_fn_c_try_link "$LINENO"; then :
17891  ac_cv_lib_dld_dld_link=yes
17892else
17893  ac_cv_lib_dld_dld_link=no
17894fi
17895rm -f core conftest.err conftest.$ac_objext \
17896    conftest$ac_exeext conftest.$ac_ext
17897LIBS=$ac_check_lib_save_LIBS
17898fi
17899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17900$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17901if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17902  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17903fi
17904
17905
17906fi
17907
17908
17909fi
17910
17911
17912fi
17913
17914
17915fi
17916
17917
17918fi
17919
17920    ;;
17921  esac
17922
17923  if test "x$lt_cv_dlopen" != xno; then
17924    enable_dlopen=yes
17925  else
17926    enable_dlopen=no
17927  fi
17928
17929  case $lt_cv_dlopen in
17930  dlopen)
17931    save_CPPFLAGS="$CPPFLAGS"
17932    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17933
17934    save_LDFLAGS="$LDFLAGS"
17935    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17936
17937    save_LIBS="$LIBS"
17938    LIBS="$lt_cv_dlopen_libs $LIBS"
17939
17940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17941$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17942if ${lt_cv_dlopen_self+:} false; then :
17943  $as_echo_n "(cached) " >&6
17944else
17945  	  if test "$cross_compiling" = yes; then :
17946  lt_cv_dlopen_self=cross
17947else
17948  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17949  lt_status=$lt_dlunknown
17950  cat > conftest.$ac_ext <<_LT_EOF
17951#line $LINENO "configure"
17952#include "confdefs.h"
17953
17954#if HAVE_DLFCN_H
17955#include <dlfcn.h>
17956#endif
17957
17958#include <stdio.h>
17959
17960#ifdef RTLD_GLOBAL
17961#  define LT_DLGLOBAL		RTLD_GLOBAL
17962#else
17963#  ifdef DL_GLOBAL
17964#    define LT_DLGLOBAL		DL_GLOBAL
17965#  else
17966#    define LT_DLGLOBAL		0
17967#  endif
17968#endif
17969
17970/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17971   find out it does not work in some platform. */
17972#ifndef LT_DLLAZY_OR_NOW
17973#  ifdef RTLD_LAZY
17974#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17975#  else
17976#    ifdef DL_LAZY
17977#      define LT_DLLAZY_OR_NOW		DL_LAZY
17978#    else
17979#      ifdef RTLD_NOW
17980#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17981#      else
17982#        ifdef DL_NOW
17983#          define LT_DLLAZY_OR_NOW	DL_NOW
17984#        else
17985#          define LT_DLLAZY_OR_NOW	0
17986#        endif
17987#      endif
17988#    endif
17989#  endif
17990#endif
17991
17992/* When -fvisbility=hidden is used, assume the code has been annotated
17993   correspondingly for the symbols needed.  */
17994#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17995int fnord () __attribute__((visibility("default")));
17996#endif
17997
17998int fnord () { return 42; }
17999int main ()
18000{
18001  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18002  int status = $lt_dlunknown;
18003
18004  if (self)
18005    {
18006      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18007      else
18008        {
18009	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18010          else puts (dlerror ());
18011	}
18012      /* dlclose (self); */
18013    }
18014  else
18015    puts (dlerror ());
18016
18017  return status;
18018}
18019_LT_EOF
18020  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18021  (eval $ac_link) 2>&5
18022  ac_status=$?
18023  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18025    (./conftest; exit; ) >&5 2>/dev/null
18026    lt_status=$?
18027    case x$lt_status in
18028      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18029      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18030      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18031    esac
18032  else :
18033    # compilation failed
18034    lt_cv_dlopen_self=no
18035  fi
18036fi
18037rm -fr conftest*
18038
18039
18040fi
18041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18042$as_echo "$lt_cv_dlopen_self" >&6; }
18043
18044    if test "x$lt_cv_dlopen_self" = xyes; then
18045      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18046      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18047$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18048if ${lt_cv_dlopen_self_static+:} false; then :
18049  $as_echo_n "(cached) " >&6
18050else
18051  	  if test "$cross_compiling" = yes; then :
18052  lt_cv_dlopen_self_static=cross
18053else
18054  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18055  lt_status=$lt_dlunknown
18056  cat > conftest.$ac_ext <<_LT_EOF
18057#line $LINENO "configure"
18058#include "confdefs.h"
18059
18060#if HAVE_DLFCN_H
18061#include <dlfcn.h>
18062#endif
18063
18064#include <stdio.h>
18065
18066#ifdef RTLD_GLOBAL
18067#  define LT_DLGLOBAL		RTLD_GLOBAL
18068#else
18069#  ifdef DL_GLOBAL
18070#    define LT_DLGLOBAL		DL_GLOBAL
18071#  else
18072#    define LT_DLGLOBAL		0
18073#  endif
18074#endif
18075
18076/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18077   find out it does not work in some platform. */
18078#ifndef LT_DLLAZY_OR_NOW
18079#  ifdef RTLD_LAZY
18080#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18081#  else
18082#    ifdef DL_LAZY
18083#      define LT_DLLAZY_OR_NOW		DL_LAZY
18084#    else
18085#      ifdef RTLD_NOW
18086#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18087#      else
18088#        ifdef DL_NOW
18089#          define LT_DLLAZY_OR_NOW	DL_NOW
18090#        else
18091#          define LT_DLLAZY_OR_NOW	0
18092#        endif
18093#      endif
18094#    endif
18095#  endif
18096#endif
18097
18098/* When -fvisbility=hidden is used, assume the code has been annotated
18099   correspondingly for the symbols needed.  */
18100#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18101int fnord () __attribute__((visibility("default")));
18102#endif
18103
18104int fnord () { return 42; }
18105int main ()
18106{
18107  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18108  int status = $lt_dlunknown;
18109
18110  if (self)
18111    {
18112      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18113      else
18114        {
18115	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18116          else puts (dlerror ());
18117	}
18118      /* dlclose (self); */
18119    }
18120  else
18121    puts (dlerror ());
18122
18123  return status;
18124}
18125_LT_EOF
18126  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18127  (eval $ac_link) 2>&5
18128  ac_status=$?
18129  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18130  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18131    (./conftest; exit; ) >&5 2>/dev/null
18132    lt_status=$?
18133    case x$lt_status in
18134      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18135      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18136      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18137    esac
18138  else :
18139    # compilation failed
18140    lt_cv_dlopen_self_static=no
18141  fi
18142fi
18143rm -fr conftest*
18144
18145
18146fi
18147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18148$as_echo "$lt_cv_dlopen_self_static" >&6; }
18149    fi
18150
18151    CPPFLAGS="$save_CPPFLAGS"
18152    LDFLAGS="$save_LDFLAGS"
18153    LIBS="$save_LIBS"
18154    ;;
18155  esac
18156
18157  case $lt_cv_dlopen_self in
18158  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18159  *) enable_dlopen_self=unknown ;;
18160  esac
18161
18162  case $lt_cv_dlopen_self_static in
18163  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18164  *) enable_dlopen_self_static=unknown ;;
18165  esac
18166fi
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184striplib=
18185old_striplib=
18186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18187$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18188if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18189  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18190  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18192$as_echo "yes" >&6; }
18193else
18194# FIXME - insert some real tests, host_os isn't really good enough
18195  case $host_os in
18196  darwin*)
18197    if test -n "$STRIP" ; then
18198      striplib="$STRIP -x"
18199      old_striplib="$STRIP -S"
18200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18201$as_echo "yes" >&6; }
18202    else
18203      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204$as_echo "no" >&6; }
18205    fi
18206    ;;
18207  *)
18208    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18209$as_echo "no" >&6; }
18210    ;;
18211  esac
18212fi
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225  # Report which library types will actually be built
18226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18227$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18229$as_echo "$can_build_shared" >&6; }
18230
18231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18232$as_echo_n "checking whether to build shared libraries... " >&6; }
18233  test "$can_build_shared" = "no" && enable_shared=no
18234
18235  # On AIX, shared libraries and static libraries use the same namespace, and
18236  # are all built from PIC.
18237  case $host_os in
18238  aix3*)
18239    test "$enable_shared" = yes && enable_static=no
18240    if test -n "$RANLIB"; then
18241      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18242      postinstall_cmds='$RANLIB $lib'
18243    fi
18244    ;;
18245
18246  aix[4-9]*)
18247    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18248      test "$enable_shared" = yes && enable_static=no
18249    fi
18250    ;;
18251  esac
18252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18253$as_echo "$enable_shared" >&6; }
18254
18255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18256$as_echo_n "checking whether to build static libraries... " >&6; }
18257  # Make sure either enable_shared or enable_static is yes.
18258  test "$enable_shared" = yes || enable_static=yes
18259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18260$as_echo "$enable_static" >&6; }
18261
18262
18263
18264
18265fi
18266ac_ext=c
18267ac_cpp='$CPP $CPPFLAGS'
18268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18270ac_compiler_gnu=$ac_cv_c_compiler_gnu
18271
18272CC="$lt_save_CC"
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286        ac_config_commands="$ac_config_commands libtool"
18287
18288
18289
18290
18291# Only expand once:
18292
18293
18294# Check whether --enable-largefile was given.
18295if test "${enable_largefile+set}" = set; then :
18296  enableval=$enable_largefile;
18297fi
18298
18299if test "$enable_largefile" != no; then
18300
18301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18302$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18303if ${ac_cv_sys_largefile_CC+:} false; then :
18304  $as_echo_n "(cached) " >&6
18305else
18306  ac_cv_sys_largefile_CC=no
18307     if test "$GCC" != yes; then
18308       ac_save_CC=$CC
18309       while :; do
18310	 # IRIX 6.2 and later do not support large files by default,
18311	 # so use the C compiler's -n32 option if that helps.
18312	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18313/* end confdefs.h.  */
18314#include <sys/types.h>
18315 /* Check that off_t can represent 2**63 - 1 correctly.
18316    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18317    since some C++ compilers masquerading as C compilers
18318    incorrectly reject 9223372036854775807.  */
18319#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18320  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18321		       && LARGE_OFF_T % 2147483647 == 1)
18322		      ? 1 : -1];
18323int
18324main ()
18325{
18326
18327  ;
18328  return 0;
18329}
18330_ACEOF
18331	 if ac_fn_c_try_compile "$LINENO"; then :
18332  break
18333fi
18334rm -f core conftest.err conftest.$ac_objext
18335	 CC="$CC -n32"
18336	 if ac_fn_c_try_compile "$LINENO"; then :
18337  ac_cv_sys_largefile_CC=' -n32'; break
18338fi
18339rm -f core conftest.err conftest.$ac_objext
18340	 break
18341       done
18342       CC=$ac_save_CC
18343       rm -f conftest.$ac_ext
18344    fi
18345fi
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18347$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18348  if test "$ac_cv_sys_largefile_CC" != no; then
18349    CC=$CC$ac_cv_sys_largefile_CC
18350  fi
18351
18352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18353$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18354if ${ac_cv_sys_file_offset_bits+:} false; then :
18355  $as_echo_n "(cached) " >&6
18356else
18357  while :; do
18358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18359/* end confdefs.h.  */
18360#include <sys/types.h>
18361 /* Check that off_t can represent 2**63 - 1 correctly.
18362    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18363    since some C++ compilers masquerading as C compilers
18364    incorrectly reject 9223372036854775807.  */
18365#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18366  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18367		       && LARGE_OFF_T % 2147483647 == 1)
18368		      ? 1 : -1];
18369int
18370main ()
18371{
18372
18373  ;
18374  return 0;
18375}
18376_ACEOF
18377if ac_fn_c_try_compile "$LINENO"; then :
18378  ac_cv_sys_file_offset_bits=no; break
18379fi
18380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18382/* end confdefs.h.  */
18383#define _FILE_OFFSET_BITS 64
18384#include <sys/types.h>
18385 /* Check that off_t can represent 2**63 - 1 correctly.
18386    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18387    since some C++ compilers masquerading as C compilers
18388    incorrectly reject 9223372036854775807.  */
18389#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18390  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18391		       && LARGE_OFF_T % 2147483647 == 1)
18392		      ? 1 : -1];
18393int
18394main ()
18395{
18396
18397  ;
18398  return 0;
18399}
18400_ACEOF
18401if ac_fn_c_try_compile "$LINENO"; then :
18402  ac_cv_sys_file_offset_bits=64; break
18403fi
18404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18405  ac_cv_sys_file_offset_bits=unknown
18406  break
18407done
18408fi
18409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18410$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18411case $ac_cv_sys_file_offset_bits in #(
18412  no | unknown) ;;
18413  *)
18414cat >>confdefs.h <<_ACEOF
18415#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18416_ACEOF
18417;;
18418esac
18419rm -rf conftest*
18420  if test $ac_cv_sys_file_offset_bits = unknown; then
18421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18422$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18423if ${ac_cv_sys_large_files+:} false; then :
18424  $as_echo_n "(cached) " >&6
18425else
18426  while :; do
18427  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428/* end confdefs.h.  */
18429#include <sys/types.h>
18430 /* Check that off_t can represent 2**63 - 1 correctly.
18431    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18432    since some C++ compilers masquerading as C compilers
18433    incorrectly reject 9223372036854775807.  */
18434#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18435  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18436		       && LARGE_OFF_T % 2147483647 == 1)
18437		      ? 1 : -1];
18438int
18439main ()
18440{
18441
18442  ;
18443  return 0;
18444}
18445_ACEOF
18446if ac_fn_c_try_compile "$LINENO"; then :
18447  ac_cv_sys_large_files=no; break
18448fi
18449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451/* end confdefs.h.  */
18452#define _LARGE_FILES 1
18453#include <sys/types.h>
18454 /* Check that off_t can represent 2**63 - 1 correctly.
18455    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18456    since some C++ compilers masquerading as C compilers
18457    incorrectly reject 9223372036854775807.  */
18458#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18459  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18460		       && LARGE_OFF_T % 2147483647 == 1)
18461		      ? 1 : -1];
18462int
18463main ()
18464{
18465
18466  ;
18467  return 0;
18468}
18469_ACEOF
18470if ac_fn_c_try_compile "$LINENO"; then :
18471  ac_cv_sys_large_files=1; break
18472fi
18473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18474  ac_cv_sys_large_files=unknown
18475  break
18476done
18477fi
18478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18479$as_echo "$ac_cv_sys_large_files" >&6; }
18480case $ac_cv_sys_large_files in #(
18481  no | unknown) ;;
18482  *)
18483cat >>confdefs.h <<_ACEOF
18484#define _LARGE_FILES $ac_cv_sys_large_files
18485_ACEOF
18486;;
18487esac
18488rm -rf conftest*
18489  fi
18490
18491
18492fi
18493
18494
18495# Are we in a git checkout?
18496dot_git=no
18497if test -e .git; then
18498
18499$as_echo "#define HAVE_DOT_GIT 1" >>confdefs.h
18500
18501	dot_git=yes
18502fi
18503 if test x$dot_git = xyes; then
18504  HAVE_DOT_GIT_TRUE=
18505  HAVE_DOT_GIT_FALSE='#'
18506else
18507  HAVE_DOT_GIT_TRUE='#'
18508  HAVE_DOT_GIT_FALSE=
18509fi
18510
18511
18512# If so, we include the git description in our logs for sanity checking.
18513#
18514# However, for people not running their own drivers this is just noise.
18515# So we copy the xserver's builderstring idiom to allow for this to be
18516# overridden and perhaps replaced with something more useful.
18517
18518# Check whether --with-builderstring was given.
18519if test "${with_builderstring+set}" = set; then :
18520  withval=$with_builderstring; BUILDERSTRING="$withval"
18521else
18522  BUILDERSTRING="x-magic-git-describe"
18523fi
18524
18525
18526if test "x$BUILDERSTRING" = xx-magic-git-describe -a x$dot_git = xyes; then
18527
18528$as_echo "#define USE_GIT_DESCRIBE 1" >>confdefs.h
18529
18530else
18531  if test "x$BUILDERSTRING" != x -a "x$BUILDERSTRING" != xno -a "x$BUILDERSTRING" != xx-magic-git-describe; then
18532
18533cat >>confdefs.h <<_ACEOF
18534#define BUILDER_DESCRIPTION "$BUILDERSTRING"
18535_ACEOF
18536
18537  fi
18538fi
18539
18540# Check whether --enable-gen4asm was given.
18541if test "${enable_gen4asm+set}" = set; then :
18542  enableval=$enable_gen4asm; ASM="$enableval"
18543else
18544  ASM=no
18545fi
18546
18547
18548gen4asm=no
18549if test x$ASM != "xno"; then
18550
18551pkg_failed=no
18552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
18553$as_echo_n "checking for GEN4ASM... " >&6; }
18554
18555if test -n "$GEN4ASM_CFLAGS"; then
18556    pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
18557 elif test -n "$PKG_CONFIG"; then
18558    if test -n "$PKG_CONFIG" && \
18559    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18560  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18561  ac_status=$?
18562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18563  test $ac_status = 0; }; then
18564  pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.2" 2>/dev/null`
18565		      test "x$?" != "x0" && pkg_failed=yes
18566else
18567  pkg_failed=yes
18568fi
18569 else
18570    pkg_failed=untried
18571fi
18572if test -n "$GEN4ASM_LIBS"; then
18573    pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
18574 elif test -n "$PKG_CONFIG"; then
18575    if test -n "$PKG_CONFIG" && \
18576    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.2\""; } >&5
18577  ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.2") 2>&5
18578  ac_status=$?
18579  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18580  test $ac_status = 0; }; then
18581  pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.2" 2>/dev/null`
18582		      test "x$?" != "x0" && pkg_failed=yes
18583else
18584  pkg_failed=yes
18585fi
18586 else
18587    pkg_failed=untried
18588fi
18589
18590
18591
18592if test $pkg_failed = yes; then
18593   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18594$as_echo "no" >&6; }
18595
18596if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18597        _pkg_short_errors_supported=yes
18598else
18599        _pkg_short_errors_supported=no
18600fi
18601        if test $_pkg_short_errors_supported = yes; then
18602	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18603        else
18604	        GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "intel-gen4asm >= 1.2" 2>&1`
18605        fi
18606	# Put the nasty error message in config.log where it belongs
18607	echo "$GEN4ASM_PKG_ERRORS" >&5
18608
18609	gen4asm=no
18610elif test $pkg_failed = untried; then
18611     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18612$as_echo "no" >&6; }
18613	gen4asm=no
18614else
18615	GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
18616	GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
18617        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18618$as_echo "yes" >&6; }
18619	gen4asm=yes
18620fi
18621	if test x$ASM = "xyes" -a x$gen4asm != "xyes"; then
18622		as_fn_error $? "intel-gen4asm support requested but not found" "$LINENO" 5
18623	fi
18624	if test x$gen4asm = "xyes"; then
18625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to use for intel-gen4asm" >&5
18626$as_echo_n "checking path to use for intel-gen4asm... " >&6; }
18627		INTEL_GEN4ASM="`pkg-config intel-gen4asm --variable=exec_prefix`/bin/intel-gen4asm"
18628		if ! test -e "$INTEL_GEN4ASM"; then
18629			as_fn_error $? "intel-gen4asm enabled, but not found. Tried '$INTEL_GEN4ASM'." "$LINENO" 5
18630		fi
18631		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTEL_GEN4ASM" >&5
18632$as_echo "$INTEL_GEN4ASM" >&6; }
18633
18634	fi
18635fi
18636 if test x$gen4asm = xyes; then
18637  HAVE_GEN4ASM_TRUE=
18638  HAVE_GEN4ASM_FALSE='#'
18639else
18640  HAVE_GEN4ASM_TRUE='#'
18641  HAVE_GEN4ASM_FALSE=
18642fi
18643
18644
18645# Check for atomic intrinsics
18646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native atomic primitives" >&5
18647$as_echo_n "checking for native atomic primitives... " >&6; }
18648if ${intel_cv_atomic_primitives+:} false; then :
18649  $as_echo_n "(cached) " >&6
18650else
18651
18652    intel_cv_atomic_primitives="none"
18653
18654    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655/* end confdefs.h.  */
18656
18657int atomic_add(int i) { return __sync_fetch_and_add (&i, 1); }
18658int atomic_cmpxchg(int i, int j, int k) { return __sync_val_compare_and_swap (&i, j, k); }
18659
18660int
18661main ()
18662{
18663
18664  ;
18665  return 0;
18666}
18667_ACEOF
18668if ac_fn_c_try_link "$LINENO"; then :
18669  intel_cv_atomic_primitives="Intel"
18670fi
18671rm -f core conftest.err conftest.$ac_objext \
18672    conftest$ac_exeext conftest.$ac_ext
18673
18674    if test "x$intel_cv_atomic_primitives" = "xnone"; then
18675	    ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
18676if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
18677  intel_cv_atomic_primitives="libatomic-ops"
18678fi
18679
18680
18681    fi
18682
18683    # atomic functions defined in <atomic.h> & libc on Solaris
18684    if test "x$intel_cv_atomic_primitives" = "xnone"; then
18685	    ac_fn_c_check_func "$LINENO" "atomic_cas_uint" "ac_cv_func_atomic_cas_uint"
18686if test "x$ac_cv_func_atomic_cas_uint" = xyes; then :
18687  intel_cv_atomic_primitives="Solaris"
18688fi
18689
18690    fi
18691
18692
18693fi
18694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_cv_atomic_primitives" >&5
18695$as_echo "$intel_cv_atomic_primitives" >&6; }
18696if test "x$intel_cv_atomic_primitives" = xIntel; then
18697
18698$as_echo "#define HAVE_ATOMIC_PRIMITIVES 1" >>confdefs.h
18699
18700fi
18701if test "x$intel_cv_atomic_primitives" = "xlibatomic-ops"; then
18702
18703$as_echo "#define HAVE_LIB_ATOMIC_OPS 1" >>confdefs.h
18704
18705fi
18706
18707if test "x$intel_cv_atomic_primitives" = "xnone"; then
18708		as_fn_error $? "xf86-video-intel depends upon atomic operations, which were not found for your compiler/cpu. Try compiling with -march=native, or install the libatomics-op-dev package." "$LINENO" 5
18709fi
18710
18711# Check whether --enable-udev was given.
18712if test "${enable_udev+set}" = set; then :
18713  enableval=$enable_udev; UDEV="$enableval"
18714else
18715  UDEV=auto
18716fi
18717
18718
18719if test x$UDEV != "xno"; then
18720
18721pkg_failed=no
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
18723$as_echo_n "checking for UDEV... " >&6; }
18724
18725if test -n "$UDEV_CFLAGS"; then
18726    pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
18727 elif test -n "$PKG_CONFIG"; then
18728    if test -n "$PKG_CONFIG" && \
18729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18730  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18731  ac_status=$?
18732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18733  test $ac_status = 0; }; then
18734  pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
18735		      test "x$?" != "x0" && pkg_failed=yes
18736else
18737  pkg_failed=yes
18738fi
18739 else
18740    pkg_failed=untried
18741fi
18742if test -n "$UDEV_LIBS"; then
18743    pkg_cv_UDEV_LIBS="$UDEV_LIBS"
18744 elif test -n "$PKG_CONFIG"; then
18745    if test -n "$PKG_CONFIG" && \
18746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
18747  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
18748  ac_status=$?
18749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18750  test $ac_status = 0; }; then
18751  pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
18752		      test "x$?" != "x0" && pkg_failed=yes
18753else
18754  pkg_failed=yes
18755fi
18756 else
18757    pkg_failed=untried
18758fi
18759
18760
18761
18762if test $pkg_failed = yes; then
18763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764$as_echo "no" >&6; }
18765
18766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18767        _pkg_short_errors_supported=yes
18768else
18769        _pkg_short_errors_supported=no
18770fi
18771        if test $_pkg_short_errors_supported = yes; then
18772	        UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
18773        else
18774	        UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
18775        fi
18776	# Put the nasty error message in config.log where it belongs
18777	echo "$UDEV_PKG_ERRORS" >&5
18778
18779	udev=no
18780elif test $pkg_failed = untried; then
18781     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782$as_echo "no" >&6; }
18783	udev=no
18784else
18785	UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
18786	UDEV_LIBS=$pkg_cv_UDEV_LIBS
18787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18788$as_echo "yes" >&6; }
18789	udev=yes
18790fi
18791	if test x$UDEV = xyes -a x$udev != xyes; then
18792		as_fn_error $? "udev support requested but not found (libudev)" "$LINENO" 5
18793	fi
18794	if test x$udev = xyes; then
18795
18796$as_echo "#define HAVE_UDEV 1" >>confdefs.h
18797
18798	fi
18799fi
18800
18801
18802pkg_failed=no
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
18804$as_echo_n "checking for X11... " >&6; }
18805
18806if test -n "$X11_CFLAGS"; then
18807    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18808 elif test -n "$PKG_CONFIG"; then
18809    if test -n "$PKG_CONFIG" && \
18810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xext pixman-1\""; } >&5
18811  ($PKG_CONFIG --exists --print-errors "x11 xrender xext pixman-1") 2>&5
18812  ac_status=$?
18813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18814  test $ac_status = 0; }; then
18815  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xrender xext pixman-1" 2>/dev/null`
18816		      test "x$?" != "x0" && pkg_failed=yes
18817else
18818  pkg_failed=yes
18819fi
18820 else
18821    pkg_failed=untried
18822fi
18823if test -n "$X11_LIBS"; then
18824    pkg_cv_X11_LIBS="$X11_LIBS"
18825 elif test -n "$PKG_CONFIG"; then
18826    if test -n "$PKG_CONFIG" && \
18827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xrender xext pixman-1\""; } >&5
18828  ($PKG_CONFIG --exists --print-errors "x11 xrender xext pixman-1") 2>&5
18829  ac_status=$?
18830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18831  test $ac_status = 0; }; then
18832  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xrender xext pixman-1" 2>/dev/null`
18833		      test "x$?" != "x0" && pkg_failed=yes
18834else
18835  pkg_failed=yes
18836fi
18837 else
18838    pkg_failed=untried
18839fi
18840
18841
18842
18843if test $pkg_failed = yes; then
18844   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845$as_echo "no" >&6; }
18846
18847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848        _pkg_short_errors_supported=yes
18849else
18850        _pkg_short_errors_supported=no
18851fi
18852        if test $_pkg_short_errors_supported = yes; then
18853	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xrender xext pixman-1" 2>&1`
18854        else
18855	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xrender xext pixman-1" 2>&1`
18856        fi
18857	# Put the nasty error message in config.log where it belongs
18858	echo "$X11_PKG_ERRORS" >&5
18859
18860	x11=no
18861elif test $pkg_failed = untried; then
18862     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863$as_echo "no" >&6; }
18864	x11=no
18865else
18866	X11_CFLAGS=$pkg_cv_X11_CFLAGS
18867	X11_LIBS=$pkg_cv_X11_LIBS
18868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869$as_echo "yes" >&6; }
18870	x11=yes
18871fi
18872 if test x$x11 = xyes; then
18873  HAVE_X11_TRUE=
18874  HAVE_X11_FALSE='#'
18875else
18876  HAVE_X11_TRUE='#'
18877  HAVE_X11_FALSE=
18878fi
18879
18880
18881
18882
18883# Define a configure option for an alternate module directory
18884
18885# Check whether --with-xorg-module-dir was given.
18886if test "${with_xorg_module_dir+set}" = set; then :
18887  withval=$with_xorg_module_dir; moduledir="$withval"
18888else
18889  moduledir="$libdir/xorg/modules"
18890fi
18891
18892
18893# Check whether --enable-dri was given.
18894if test "${enable_dri+set}" = set; then :
18895  enableval=$enable_dri;
18896fi
18897
18898
18899# Check whether --enable-xvmc was given.
18900if test "${enable_xvmc+set}" = set; then :
18901  enableval=$enable_xvmc; XVMC="$enableval"
18902else
18903  XVMC=yes
18904fi
18905
18906
18907# Check whether --enable-kms-only was given.
18908if test "${enable_kms_only+set}" = set; then :
18909  enableval=$enable_kms_only; KMS_ONLY="$enableval"
18910else
18911  KMS_ONLY=no
18912fi
18913
18914# Check whether --enable-ums-only was given.
18915if test "${enable_ums_only+set}" = set; then :
18916  enableval=$enable_ums_only; UMS_ONLY="$enableval"
18917else
18918  UMS_ONLY=no
18919fi
18920
18921
18922required_xorg_server_version=1.6
18923required_pixman_version=0.16
18924
18925if pkg-config --exists 'pixman-1 >= 0.27.1'; then
18926
18927$as_echo "#define HAS_PIXMAN_GLYPHS 1" >>confdefs.h
18928
18929fi
18930
18931if pkg-config --exists 'pixman-1 >= 0.24.0'; then
18932
18933$as_echo "#define HAS_PIXMAN_TRIANGLES 1" >>confdefs.h
18934
18935fi
18936
18937# Check whether --enable-sna was given.
18938if test "${enable_sna+set}" = set; then :
18939  enableval=$enable_sna; SNA="$enableval"
18940else
18941  SNA=auto
18942fi
18943
18944
18945if test "x$SNA" != "xno"; then
18946
18947$as_echo "#define USE_SNA 1" >>confdefs.h
18948
18949	for ac_header in sys/sysinfo.h
18950do :
18951  ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
18952if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
18953  cat >>confdefs.h <<_ACEOF
18954#define HAVE_SYS_SYSINFO_H 1
18955_ACEOF
18956
18957# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
18958# ----------------------------------------------------
18959# Tries to find if the field MEMBER exists in type AGGR, after including
18960# INCLUDES, setting cache variable VAR accordingly.
18961ac_fn_c_check_member ()
18962{
18963  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
18965$as_echo_n "checking for $2.$3... " >&6; }
18966if eval \${$4+:} false; then :
18967  $as_echo_n "(cached) " >&6
18968else
18969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970/* end confdefs.h.  */
18971$5
18972int
18973main ()
18974{
18975static $2 ac_aggr;
18976if (ac_aggr.$3)
18977return 0;
18978  ;
18979  return 0;
18980}
18981_ACEOF
18982if ac_fn_c_try_compile "$LINENO"; then :
18983  eval "$4=yes"
18984else
18985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986/* end confdefs.h.  */
18987$5
18988int
18989main ()
18990{
18991static $2 ac_aggr;
18992if (sizeof ac_aggr.$3)
18993return 0;
18994  ;
18995  return 0;
18996}
18997_ACEOF
18998if ac_fn_c_try_compile "$LINENO"; then :
18999  eval "$4=yes"
19000else
19001  eval "$4=no"
19002fi
19003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19004fi
19005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006fi
19007eval ac_res=\$$4
19008	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19009$as_echo "$ac_res" >&6; }
19010  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
19011
19012} # ac_fn_c_check_member
19013ac_fn_c_check_member "$LINENO" "struct sysinfo" "totalram" "ac_cv_member_struct_sysinfo_totalram" "#include <sys/sysinfo.h>
19014"
19015if test "x$ac_cv_member_struct_sysinfo_totalram" = xyes; then :
19016
19017cat >>confdefs.h <<_ACEOF
19018#define HAVE_STRUCT_SYSINFO_TOTALRAM 1
19019_ACEOF
19020
19021
19022fi
19023
19024fi
19025
19026done
19027
19028fi
19029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include SNA support" >&5
19030$as_echo_n "checking whether to include SNA support... " >&6; }
19031 if test x$SNA != xno; then
19032  SNA_TRUE=
19033  SNA_FALSE='#'
19034else
19035  SNA_TRUE='#'
19036  SNA_FALSE=
19037fi
19038
19039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNA" >&5
19040$as_echo "$SNA" >&6; }
19041
19042# Check whether --enable-uxa was given.
19043if test "${enable_uxa+set}" = set; then :
19044  enableval=$enable_uxa; UXA="$enableval"
19045else
19046  UXA=auto
19047fi
19048
19049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include UXA support" >&5
19050$as_echo_n "checking whether to include UXA support... " >&6; }
19051if test "x$UXA" = "xauto"; then
19052	if ! pkg-config --exists 'libdrm_intel >= 2.4.29'; then
19053		UXA=no
19054	fi
19055	if ! pkg-config --exists 'pixman-1 >= 0.24.0'; then
19056		UXA=no
19057	fi
19058fi
19059if test "x$UXA" != "xno"; then
19060
19061$as_echo "#define USE_UXA 1" >>confdefs.h
19062
19063
19064pkg_failed=no
19065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRMINTEL" >&5
19066$as_echo_n "checking for DRMINTEL... " >&6; }
19067
19068if test -n "$DRMINTEL_CFLAGS"; then
19069    pkg_cv_DRMINTEL_CFLAGS="$DRMINTEL_CFLAGS"
19070 elif test -n "$PKG_CONFIG"; then
19071    if test -n "$PKG_CONFIG" && \
19072    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= 2.4.29\""; } >&5
19073  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= 2.4.29") 2>&5
19074  ac_status=$?
19075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19076  test $ac_status = 0; }; then
19077  pkg_cv_DRMINTEL_CFLAGS=`$PKG_CONFIG --cflags "libdrm_intel >= 2.4.29" 2>/dev/null`
19078		      test "x$?" != "x0" && pkg_failed=yes
19079else
19080  pkg_failed=yes
19081fi
19082 else
19083    pkg_failed=untried
19084fi
19085if test -n "$DRMINTEL_LIBS"; then
19086    pkg_cv_DRMINTEL_LIBS="$DRMINTEL_LIBS"
19087 elif test -n "$PKG_CONFIG"; then
19088    if test -n "$PKG_CONFIG" && \
19089    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_intel >= 2.4.29\""; } >&5
19090  ($PKG_CONFIG --exists --print-errors "libdrm_intel >= 2.4.29") 2>&5
19091  ac_status=$?
19092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093  test $ac_status = 0; }; then
19094  pkg_cv_DRMINTEL_LIBS=`$PKG_CONFIG --libs "libdrm_intel >= 2.4.29" 2>/dev/null`
19095		      test "x$?" != "x0" && pkg_failed=yes
19096else
19097  pkg_failed=yes
19098fi
19099 else
19100    pkg_failed=untried
19101fi
19102
19103
19104
19105if test $pkg_failed = yes; then
19106   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19107$as_echo "no" >&6; }
19108
19109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19110        _pkg_short_errors_supported=yes
19111else
19112        _pkg_short_errors_supported=no
19113fi
19114        if test $_pkg_short_errors_supported = yes; then
19115	        DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_intel >= 2.4.29" 2>&1`
19116        else
19117	        DRMINTEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_intel >= 2.4.29" 2>&1`
19118        fi
19119	# Put the nasty error message in config.log where it belongs
19120	echo "$DRMINTEL_PKG_ERRORS" >&5
19121
19122	as_fn_error $? "Package requirements (libdrm_intel >= 2.4.29) were not met:
19123
19124$DRMINTEL_PKG_ERRORS
19125
19126Consider adjusting the PKG_CONFIG_PATH environment variable if you
19127installed software in a non-standard prefix.
19128
19129Alternatively, you may set the environment variables DRMINTEL_CFLAGS
19130and DRMINTEL_LIBS to avoid the need to call pkg-config.
19131See the pkg-config man page for more details." "$LINENO" 5
19132elif test $pkg_failed = untried; then
19133     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19134$as_echo "no" >&6; }
19135	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19137as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19138is in your PATH or set the PKG_CONFIG environment variable to the full
19139path to pkg-config.
19140
19141Alternatively, you may set the environment variables DRMINTEL_CFLAGS
19142and DRMINTEL_LIBS to avoid the need to call pkg-config.
19143See the pkg-config man page for more details.
19144
19145To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19146See \`config.log' for more details" "$LINENO" 5; }
19147else
19148	DRMINTEL_CFLAGS=$pkg_cv_DRMINTEL_CFLAGS
19149	DRMINTEL_LIBS=$pkg_cv_DRMINTEL_LIBS
19150        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19151$as_echo "yes" >&6; }
19152
19153fi
19154	required_pixman_version=0.24
19155	UXA=yes
19156fi
19157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UXA" >&5
19158$as_echo "$UXA" >&6; }
19159 if test x$UXA != xno; then
19160  UXA_TRUE=
19161  UXA_FALSE='#'
19162else
19163  UXA_TRUE='#'
19164  UXA_FALSE=
19165fi
19166
19167
19168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19169$as_echo_n "checking whether to include GLAMOR support... " >&6; }
19170# Check whether --enable-glamor was given.
19171if test "${enable_glamor+set}" = set; then :
19172  enableval=$enable_glamor; GLAMOR="$enableval"
19173else
19174  GLAMOR=no
19175fi
19176
19177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19178$as_echo "$GLAMOR" >&6; }
19179 if test x$GLAMOR != xno; then
19180  GLAMOR_TRUE=
19181  GLAMOR_FALSE='#'
19182else
19183  GLAMOR_TRUE='#'
19184  GLAMOR_FALSE=
19185fi
19186
19187if test "x$GLAMOR" != "xno"; then
19188
19189pkg_failed=no
19190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
19191$as_echo_n "checking for LIBGLAMOR... " >&6; }
19192
19193if test -n "$LIBGLAMOR_CFLAGS"; then
19194    pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
19195 elif test -n "$PKG_CONFIG"; then
19196    if test -n "$PKG_CONFIG" && \
19197    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.3.1\""; } >&5
19198  ($PKG_CONFIG --exists --print-errors "glamor >= 0.3.1") 2>&5
19199  ac_status=$?
19200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19201  test $ac_status = 0; }; then
19202  pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.3.1" 2>/dev/null`
19203		      test "x$?" != "x0" && pkg_failed=yes
19204else
19205  pkg_failed=yes
19206fi
19207 else
19208    pkg_failed=untried
19209fi
19210if test -n "$LIBGLAMOR_LIBS"; then
19211    pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
19212 elif test -n "$PKG_CONFIG"; then
19213    if test -n "$PKG_CONFIG" && \
19214    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.3.1\""; } >&5
19215  ($PKG_CONFIG --exists --print-errors "glamor >= 0.3.1") 2>&5
19216  ac_status=$?
19217  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19218  test $ac_status = 0; }; then
19219  pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.3.1" 2>/dev/null`
19220		      test "x$?" != "x0" && pkg_failed=yes
19221else
19222  pkg_failed=yes
19223fi
19224 else
19225    pkg_failed=untried
19226fi
19227
19228
19229
19230if test $pkg_failed = yes; then
19231   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232$as_echo "no" >&6; }
19233
19234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19235        _pkg_short_errors_supported=yes
19236else
19237        _pkg_short_errors_supported=no
19238fi
19239        if test $_pkg_short_errors_supported = yes; then
19240	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.3.1" 2>&1`
19241        else
19242	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.3.1" 2>&1`
19243        fi
19244	# Put the nasty error message in config.log where it belongs
19245	echo "$LIBGLAMOR_PKG_ERRORS" >&5
19246
19247	as_fn_error $? "Package requirements (glamor >= 0.3.1) were not met:
19248
19249$LIBGLAMOR_PKG_ERRORS
19250
19251Consider adjusting the PKG_CONFIG_PATH environment variable if you
19252installed software in a non-standard prefix.
19253
19254Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19255and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19256See the pkg-config man page for more details." "$LINENO" 5
19257elif test $pkg_failed = untried; then
19258     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19259$as_echo "no" >&6; }
19260	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19262as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19263is in your PATH or set the PKG_CONFIG environment variable to the full
19264path to pkg-config.
19265
19266Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19267and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19268See the pkg-config man page for more details.
19269
19270To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19271See \`config.log' for more details" "$LINENO" 5; }
19272else
19273	LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19274	LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
19275        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19276$as_echo "yes" >&6; }
19277
19278fi
19279
19280pkg_failed=no
19281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
19282$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19283
19284if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19285    pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
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 \"glamor-egl\""; } >&5
19289  ($PKG_CONFIG --exists --print-errors "glamor-egl") 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_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
19294		      test "x$?" != "x0" && pkg_failed=yes
19295else
19296  pkg_failed=yes
19297fi
19298 else
19299    pkg_failed=untried
19300fi
19301if test -n "$LIBGLAMOR_EGL_LIBS"; then
19302    pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
19303 elif test -n "$PKG_CONFIG"; then
19304    if test -n "$PKG_CONFIG" && \
19305    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19306  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19307  ac_status=$?
19308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19309  test $ac_status = 0; }; then
19310  pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
19311		      test "x$?" != "x0" && pkg_failed=yes
19312else
19313  pkg_failed=yes
19314fi
19315 else
19316    pkg_failed=untried
19317fi
19318
19319
19320
19321if test $pkg_failed = yes; then
19322   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19323$as_echo "no" >&6; }
19324
19325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19326        _pkg_short_errors_supported=yes
19327else
19328        _pkg_short_errors_supported=no
19329fi
19330        if test $_pkg_short_errors_supported = yes; then
19331	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19332        else
19333	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19334        fi
19335	# Put the nasty error message in config.log where it belongs
19336	echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19337
19338	as_fn_error $? "Package requirements (glamor-egl) were not met:
19339
19340$LIBGLAMOR_EGL_PKG_ERRORS
19341
19342Consider adjusting the PKG_CONFIG_PATH environment variable if you
19343installed software in a non-standard prefix.
19344
19345Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19346and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19347See the pkg-config man page for more details." "$LINENO" 5
19348elif test $pkg_failed = untried; then
19349     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19350$as_echo "no" >&6; }
19351	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19353as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19354is in your PATH or set the PKG_CONFIG environment variable to the full
19355path to pkg-config.
19356
19357Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19358and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19359See the pkg-config man page for more details.
19360
19361To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19362See \`config.log' for more details" "$LINENO" 5; }
19363else
19364	LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19365	LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19366        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367$as_echo "yes" >&6; }
19368
19369fi
19370
19371$as_echo "#define USE_GLAMOR 1" >>confdefs.h
19372
19373fi
19374
19375
19376
19377pkg_failed=no
19378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19379$as_echo_n "checking for XORG... " >&6; }
19380
19381if test -n "$XORG_CFLAGS"; then
19382    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19383 elif test -n "$PKG_CONFIG"; then
19384    if test -n "$PKG_CONFIG" && \
19385    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
19386  ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
19387  ac_status=$?
19388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19389  test $ac_status = 0; }; then
19390  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
19391		      test "x$?" != "x0" && pkg_failed=yes
19392else
19393  pkg_failed=yes
19394fi
19395 else
19396    pkg_failed=untried
19397fi
19398if test -n "$XORG_LIBS"; then
19399    pkg_cv_XORG_LIBS="$XORG_LIBS"
19400 elif test -n "$PKG_CONFIG"; then
19401    if test -n "$PKG_CONFIG" && \
19402    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= \$required_xorg_server_version xproto fontsproto pixman-1 >= \$required_pixman_version \$REQUIRED_MODULES\""; } >&5
19403  ($PKG_CONFIG --exists --print-errors "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES") 2>&5
19404  ac_status=$?
19405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19406  test $ac_status = 0; }; then
19407  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>/dev/null`
19408		      test "x$?" != "x0" && pkg_failed=yes
19409else
19410  pkg_failed=yes
19411fi
19412 else
19413    pkg_failed=untried
19414fi
19415
19416
19417
19418if test $pkg_failed = yes; then
19419   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19420$as_echo "no" >&6; }
19421
19422if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19423        _pkg_short_errors_supported=yes
19424else
19425        _pkg_short_errors_supported=no
19426fi
19427        if test $_pkg_short_errors_supported = yes; then
19428	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
19429        else
19430	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES" 2>&1`
19431        fi
19432	# Put the nasty error message in config.log where it belongs
19433	echo "$XORG_PKG_ERRORS" >&5
19434
19435	as_fn_error $? "Package requirements (xorg-server >= $required_xorg_server_version xproto fontsproto pixman-1 >= $required_pixman_version $REQUIRED_MODULES) were not met:
19436
19437$XORG_PKG_ERRORS
19438
19439Consider adjusting the PKG_CONFIG_PATH environment variable if you
19440installed software in a non-standard prefix.
19441
19442Alternatively, you may set the environment variables XORG_CFLAGS
19443and XORG_LIBS to avoid the need to call pkg-config.
19444See the pkg-config man page for more details." "$LINENO" 5
19445elif test $pkg_failed = untried; then
19446     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19447$as_echo "no" >&6; }
19448	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19450as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19451is in your PATH or set the PKG_CONFIG environment variable to the full
19452path to pkg-config.
19453
19454Alternatively, you may set the environment variables XORG_CFLAGS
19455and XORG_LIBS to avoid the need to call pkg-config.
19456See the pkg-config man page for more details.
19457
19458To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19459See \`config.log' for more details" "$LINENO" 5; }
19460else
19461	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19462	XORG_LIBS=$pkg_cv_XORG_LIBS
19463        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464$as_echo "yes" >&6; }
19465
19466fi
19467
19468# Check whether --enable-xaa was given.
19469if test "${enable_xaa+set}" = set; then :
19470  enableval=$enable_xaa; XAA="$enableval"
19471else
19472  XAA=auto
19473fi
19474
19475if test "x$XAA" != xno; then
19476        save_CPPFLAGS=$CPPFLAGS
19477        CPPFLAGS=$XORG_CFLAGS
19478	for ac_header in xaa.h
19479do :
19480  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19481if test "x$ac_cv_header_xaa_h" = xyes; then :
19482  cat >>confdefs.h <<_ACEOF
19483#define HAVE_XAA_H 1
19484_ACEOF
19485 XAA=yes
19486else
19487  XAA=no
19488fi
19489
19490done
19491
19492        CPPFLAGS=$save_CPPFLAGS
19493fi
19494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19495$as_echo_n "checking whether to include XAA support... " >&6; }
19496 if test "x$XAA" = xyes; then
19497  XAA_TRUE=
19498  XAA_FALSE='#'
19499else
19500  XAA_TRUE='#'
19501  XAA_FALSE=
19502fi
19503
19504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19505$as_echo "$XAA" >&6; }
19506
19507# Check whether --enable-dga was given.
19508if test "${enable_dga+set}" = set; then :
19509  enableval=$enable_dga; DGA="$enableval"
19510else
19511  DGA=auto
19512fi
19513
19514if test "x$DGA" != xno; then
19515        save_CFLAGS=$CFLAGS
19516        CFLAGS=$XORG_CFLAGS
19517	for ac_header in dgaproc.h
19518do :
19519  ac_fn_c_check_header_compile "$LINENO" "dgaproc.h" "ac_cv_header_dgaproc_h" "#include <dixstruct.h>
19520"
19521if test "x$ac_cv_header_dgaproc_h" = xyes; then :
19522  cat >>confdefs.h <<_ACEOF
19523#define HAVE_DGAPROC_H 1
19524_ACEOF
19525 DGA=yes
19526else
19527  DGA=no
19528fi
19529
19530done
19531
19532        CFLAGS=$save_CFLAGS
19533fi
19534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DGA support" >&5
19535$as_echo_n "checking whether to include DGA support... " >&6; }
19536 if test "x$DGA" = xyes; then
19537  DGA_TRUE=
19538  DGA_FALSE='#'
19539else
19540  DGA_TRUE='#'
19541  DGA_FALSE=
19542fi
19543
19544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DGA" >&5
19545$as_echo "$DGA" >&6; }
19546
19547
19548# Check whether --with-default-accel was given.
19549if test "${with_default_accel+set}" = set; then :
19550  withval=$with_default_accel; accel="$withval"
19551else
19552  accel=auto
19553fi
19554
19555if test "x$accel" = xyes; then
19556	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No default acceleration specified, choosing automatic selection" >&5
19557$as_echo "$as_me: WARNING: No default acceleration specified, choosing automatic selection" >&2;}
19558	accel="auto"
19559fi
19560
19561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which acceleration method to use by default" >&5
19562$as_echo_n "checking which acceleration method to use by default... " >&6; }
19563if test "x$accel" = xauto; then
19564	if test "x$UXA" != "xno"; then
19565		accel=uxa
19566	else
19567		if test "x$SNA" != "xno"; then
19568			accel=sna
19569		fi
19570	fi
19571	if test "x$accel" = xauto -a "x$UMS_ONLY" != "xyes"; then
19572		as_fn_error $? "No default acceleration option" "$LINENO" 5
19573	fi
19574fi
19575
19576have_accel=none
19577if test "x$accel" = xsna; then
19578	if test "x$SNA" != "xno"; then
19579
19580$as_echo "#define DEFAULT_ACCEL_METHOD SNA" >>confdefs.h
19581
19582		have_accel=yes
19583	else
19584		as_fn_error $? "SNA requested as default, but is not enabled" "$LINENO" 5
19585	fi
19586fi
19587
19588if test "x$accel" = xuxa; then
19589	if test "x$UXA" != "xno"; then
19590
19591$as_echo "#define DEFAULT_ACCEL_METHOD UXA" >>confdefs.h
19592
19593		have_accel=yes
19594	else
19595		as_fn_error $? "UXA requested as default, but is not enabled" "$LINENO" 5
19596	fi
19597fi
19598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $accel" >&5
19599$as_echo "$accel" >&6; }
19600if test "x$accel" = xnone -a "x$UMS_ONLY" != "xyes"; then
19601	as_fn_error $? "No default acceleration option" "$LINENO" 5
19602fi
19603
19604xp_msg=""
19605
19606# Check whether --enable-create2 was given.
19607if test "${enable_create2+set}" = set; then :
19608  enableval=$enable_create2; CREATE2="$enableval"
19609else
19610  CREATE2=no
19611fi
19612
19613 if test x$CREATE2 = xyes; then
19614  USE_CREATE2_TRUE=
19615  USE_CREATE2_FALSE='#'
19616else
19617  USE_CREATE2_TRUE='#'
19618  USE_CREATE2_FALSE=
19619fi
19620
19621if test "x$CREATE2" = xyes; then
19622
19623$as_echo "#define USE_CREATE2 1" >>confdefs.h
19624
19625	xp_msg="$xp_msg create2"
19626fi
19627
19628# Check whether --enable-userptr was given.
19629if test "${enable_userptr+set}" = set; then :
19630  enableval=$enable_userptr; USERPTR="$enableval"
19631else
19632  USERPTR=no
19633fi
19634
19635 if test x$USERPTR = xyes; then
19636  USE_USERPTR_TRUE=
19637  USE_USERPTR_FALSE='#'
19638else
19639  USE_USERPTR_TRUE='#'
19640  USE_USERPTR_FALSE=
19641fi
19642
19643if test "x$USERPTR" = xyes; then
19644
19645$as_echo "#define USE_USERPTR 1" >>confdefs.h
19646
19647	xp_msg="$xp_msg userptr"
19648fi
19649
19650# Check whether --enable-async-swap was given.
19651if test "${enable_async_swap+set}" = set; then :
19652  enableval=$enable_async_swap; ASYNC_SWAP="$enableval"
19653else
19654  ASYNC_SWAP=no
19655fi
19656
19657 if test x$ASYNC_SWAP = xyes; then
19658  USE_ASYNC_SWAP_TRUE=
19659  USE_ASYNC_SWAP_FALSE='#'
19660else
19661  USE_ASYNC_SWAP_TRUE='#'
19662  USE_ASYNC_SWAP_FALSE=
19663fi
19664
19665if test "x$ASYNC_SWAP" = xyes; then
19666
19667$as_echo "#define USE_ASYNC_SWAP 1" >>confdefs.h
19668
19669	xp_msg="$xp_msg async-swap"
19670fi
19671
19672# Check whether --enable-wt was given.
19673if test "${enable_wt+set}" = set; then :
19674  enableval=$enable_wt; WT="$enableval"
19675else
19676  WT=no
19677fi
19678
19679 if test x$WT = xyes; then
19680  USE_WT_TRUE=
19681  USE_WT_FALSE='#'
19682else
19683  USE_WT_TRUE='#'
19684  USE_WT_FALSE=
19685fi
19686
19687if test "x$WT" = xyes; then
19688
19689$as_echo "#define USE_WT 1" >>confdefs.h
19690
19691	xp_msg="$xp_msg wt-cache"
19692fi
19693
19694# Check whether --enable-debug was given.
19695if test "${enable_debug+set}" = set; then :
19696  enableval=$enable_debug; DEBUG="$enableval"
19697else
19698  DEBUG=no
19699fi
19700
19701# Check whether --enable-valgrind was given.
19702if test "${enable_valgrind+set}" = set; then :
19703  enableval=$enable_valgrind; VG="$enableval"
19704else
19705  VG=no
19706fi
19707
19708
19709# Store the list of server defined optional extensions in REQUIRED_MODULES
19710
19711
19712	SAVE_CFLAGS="$CFLAGS"
19713	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19714	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715/* end confdefs.h.  */
19716
19717#include "xorg-server.h"
19718#if !defined RANDR
19719#error RANDR not defined
19720#endif
19721
19722int
19723main ()
19724{
19725
19726  ;
19727  return 0;
19728}
19729_ACEOF
19730if ac_fn_c_try_compile "$LINENO"; then :
19731  _EXT_CHECK=yes
19732else
19733  _EXT_CHECK=no
19734fi
19735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19736	CFLAGS="$SAVE_CFLAGS"
19737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19738$as_echo_n "checking if RANDR is defined... " >&6; }
19739	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19740$as_echo "$_EXT_CHECK" >&6; }
19741	if test "$_EXT_CHECK" != no; then
19742		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19743	fi
19744
19745
19746
19747	SAVE_CFLAGS="$CFLAGS"
19748	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19749	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19750/* end confdefs.h.  */
19751
19752#include "xorg-server.h"
19753#if !defined RENDER
19754#error RENDER not defined
19755#endif
19756
19757int
19758main ()
19759{
19760
19761  ;
19762  return 0;
19763}
19764_ACEOF
19765if ac_fn_c_try_compile "$LINENO"; then :
19766  _EXT_CHECK=yes
19767else
19768  _EXT_CHECK=no
19769fi
19770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771	CFLAGS="$SAVE_CFLAGS"
19772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19773$as_echo_n "checking if RENDER is defined... " >&6; }
19774	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19775$as_echo "$_EXT_CHECK" >&6; }
19776	if test "$_EXT_CHECK" != no; then
19777		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19778	fi
19779
19780
19781
19782	SAVE_CFLAGS="$CFLAGS"
19783	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19784	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785/* end confdefs.h.  */
19786
19787#include "xorg-server.h"
19788#if !defined XF86DRI
19789#error XF86DRI not defined
19790#endif
19791
19792int
19793main ()
19794{
19795
19796  ;
19797  return 0;
19798}
19799_ACEOF
19800if ac_fn_c_try_compile "$LINENO"; then :
19801  _EXT_CHECK=yes
19802else
19803  _EXT_CHECK=no
19804fi
19805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806	CFLAGS="$SAVE_CFLAGS"
19807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
19808$as_echo_n "checking if XF86DRI is defined... " >&6; }
19809	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19810$as_echo "$_EXT_CHECK" >&6; }
19811	if test "$_EXT_CHECK" != no; then
19812		REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
19813	fi
19814
19815
19816
19817	SAVE_CFLAGS="$CFLAGS"
19818	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19819	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820/* end confdefs.h.  */
19821
19822#include "xorg-server.h"
19823#if !defined DPMSExtension
19824#error DPMSExtension not defined
19825#endif
19826
19827int
19828main ()
19829{
19830
19831  ;
19832  return 0;
19833}
19834_ACEOF
19835if ac_fn_c_try_compile "$LINENO"; then :
19836  _EXT_CHECK=yes
19837else
19838  _EXT_CHECK=no
19839fi
19840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19841	CFLAGS="$SAVE_CFLAGS"
19842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19843$as_echo_n "checking if DPMSExtension is defined... " >&6; }
19844	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19845$as_echo "$_EXT_CHECK" >&6; }
19846	if test "$_EXT_CHECK" != no; then
19847		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19848	fi
19849
19850
19851# Obtain compiler/linker options for the driver dependencies
19852
19853pkg_failed=no
19854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
19855$as_echo_n "checking for DRM... " >&6; }
19856
19857if test -n "$DRM_CFLAGS"; then
19858    pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
19859 elif test -n "$PKG_CONFIG"; then
19860    if test -n "$PKG_CONFIG" && \
19861    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
19862  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
19863  ac_status=$?
19864  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19865  test $ac_status = 0; }; then
19866  pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.20" 2>/dev/null`
19867		      test "x$?" != "x0" && pkg_failed=yes
19868else
19869  pkg_failed=yes
19870fi
19871 else
19872    pkg_failed=untried
19873fi
19874if test -n "$DRM_LIBS"; then
19875    pkg_cv_DRM_LIBS="$DRM_LIBS"
19876 elif test -n "$PKG_CONFIG"; then
19877    if test -n "$PKG_CONFIG" && \
19878    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.20\""; } >&5
19879  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.20") 2>&5
19880  ac_status=$?
19881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19882  test $ac_status = 0; }; then
19883  pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.20" 2>/dev/null`
19884		      test "x$?" != "x0" && pkg_failed=yes
19885else
19886  pkg_failed=yes
19887fi
19888 else
19889    pkg_failed=untried
19890fi
19891
19892
19893
19894if test $pkg_failed = yes; then
19895   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896$as_echo "no" >&6; }
19897
19898if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19899        _pkg_short_errors_supported=yes
19900else
19901        _pkg_short_errors_supported=no
19902fi
19903        if test $_pkg_short_errors_supported = yes; then
19904	        DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
19905        else
19906	        DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.20" 2>&1`
19907        fi
19908	# Put the nasty error message in config.log where it belongs
19909	echo "$DRM_PKG_ERRORS" >&5
19910
19911	as_fn_error $? "Package requirements (libdrm >= 2.4.20) were not met:
19912
19913$DRM_PKG_ERRORS
19914
19915Consider adjusting the PKG_CONFIG_PATH environment variable if you
19916installed software in a non-standard prefix.
19917
19918Alternatively, you may set the environment variables DRM_CFLAGS
19919and DRM_LIBS to avoid the need to call pkg-config.
19920See the pkg-config man page for more details." "$LINENO" 5
19921elif test $pkg_failed = untried; then
19922     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923$as_echo "no" >&6; }
19924	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19925$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19926as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19927is in your PATH or set the PKG_CONFIG environment variable to the full
19928path to pkg-config.
19929
19930Alternatively, you may set the environment variables DRM_CFLAGS
19931and DRM_LIBS to avoid the need to call pkg-config.
19932See the pkg-config man page for more details.
19933
19934To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19935See \`config.log' for more details" "$LINENO" 5; }
19936else
19937	DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
19938	DRM_LIBS=$pkg_cv_DRM_LIBS
19939        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19940$as_echo "yes" >&6; }
19941
19942fi # libdrm_intel is checked separately
19943
19944pkg_failed=no
19945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19946$as_echo_n "checking for PCIACCESS... " >&6; }
19947
19948if test -n "$PCIACCESS_CFLAGS"; then
19949    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19950 elif test -n "$PKG_CONFIG"; then
19951    if test -n "$PKG_CONFIG" && \
19952    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19953  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19954  ac_status=$?
19955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19956  test $ac_status = 0; }; then
19957  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
19958		      test "x$?" != "x0" && pkg_failed=yes
19959else
19960  pkg_failed=yes
19961fi
19962 else
19963    pkg_failed=untried
19964fi
19965if test -n "$PCIACCESS_LIBS"; then
19966    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19967 elif test -n "$PKG_CONFIG"; then
19968    if test -n "$PKG_CONFIG" && \
19969    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
19970  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
19971  ac_status=$?
19972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19973  test $ac_status = 0; }; then
19974  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
19975		      test "x$?" != "x0" && pkg_failed=yes
19976else
19977  pkg_failed=yes
19978fi
19979 else
19980    pkg_failed=untried
19981fi
19982
19983
19984
19985if test $pkg_failed = yes; then
19986   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19987$as_echo "no" >&6; }
19988
19989if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19990        _pkg_short_errors_supported=yes
19991else
19992        _pkg_short_errors_supported=no
19993fi
19994        if test $_pkg_short_errors_supported = yes; then
19995	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19996        else
19997	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10" 2>&1`
19998        fi
19999	# Put the nasty error message in config.log where it belongs
20000	echo "$PCIACCESS_PKG_ERRORS" >&5
20001
20002	as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
20003
20004$PCIACCESS_PKG_ERRORS
20005
20006Consider adjusting the PKG_CONFIG_PATH environment variable if you
20007installed software in a non-standard prefix.
20008
20009Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20010and PCIACCESS_LIBS to avoid the need to call pkg-config.
20011See the pkg-config man page for more details." "$LINENO" 5
20012elif test $pkg_failed = untried; then
20013     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20014$as_echo "no" >&6; }
20015	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20017as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20018is in your PATH or set the PKG_CONFIG environment variable to the full
20019path to pkg-config.
20020
20021Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20022and PCIACCESS_LIBS to avoid the need to call pkg-config.
20023See the pkg-config man page for more details.
20024
20025To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20026See \`config.log' for more details" "$LINENO" 5; }
20027else
20028	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20029	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20030        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20031$as_echo "yes" >&6; }
20032
20033fi
20034
20035LIBS=""
20036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
20037$as_echo_n "checking for library containing clock_gettime... " >&6; }
20038if ${ac_cv_search_clock_gettime+:} false; then :
20039  $as_echo_n "(cached) " >&6
20040else
20041  ac_func_search_save_LIBS=$LIBS
20042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20043/* end confdefs.h.  */
20044
20045/* Override any GCC internal prototype to avoid an error.
20046   Use char because int might match the return type of a GCC
20047   builtin and then its argument prototype would still apply.  */
20048#ifdef __cplusplus
20049extern "C"
20050#endif
20051char clock_gettime ();
20052int
20053main ()
20054{
20055return clock_gettime ();
20056  ;
20057  return 0;
20058}
20059_ACEOF
20060for ac_lib in '' rt; do
20061  if test -z "$ac_lib"; then
20062    ac_res="none required"
20063  else
20064    ac_res=-l$ac_lib
20065    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20066  fi
20067  if ac_fn_c_try_link "$LINENO"; then :
20068  ac_cv_search_clock_gettime=$ac_res
20069fi
20070rm -f core conftest.err conftest.$ac_objext \
20071    conftest$ac_exeext
20072  if ${ac_cv_search_clock_gettime+:} false; then :
20073  break
20074fi
20075done
20076if ${ac_cv_search_clock_gettime+:} false; then :
20077
20078else
20079  ac_cv_search_clock_gettime=no
20080fi
20081rm conftest.$ac_ext
20082LIBS=$ac_func_search_save_LIBS
20083fi
20084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
20085$as_echo "$ac_cv_search_clock_gettime" >&6; }
20086ac_res=$ac_cv_search_clock_gettime
20087if test "$ac_res" != no; then :
20088  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20089  CLOCK_GETTIME_LIBS=$LIBS
20090fi
20091
20092
20093
20094sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
20095
20096DRI1=no
20097if test "x$enable_dri" != "xno" -a "x$KMS_ONLY" != "xyes"; then
20098
20099pkg_failed=no
20100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI1" >&5
20101$as_echo_n "checking for DRI1... " >&6; }
20102
20103if test -n "$DRI1_CFLAGS"; then
20104    pkg_cv_DRI1_CFLAGS="$DRI1_CFLAGS"
20105 elif test -n "$PKG_CONFIG"; then
20106    if test -n "$PKG_CONFIG" && \
20107    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
20108  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
20109  ac_status=$?
20110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111  test $ac_status = 0; }; then
20112  pkg_cv_DRI1_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
20113		      test "x$?" != "x0" && pkg_failed=yes
20114else
20115  pkg_failed=yes
20116fi
20117 else
20118    pkg_failed=untried
20119fi
20120if test -n "$DRI1_LIBS"; then
20121    pkg_cv_DRI1_LIBS="$DRI1_LIBS"
20122 elif test -n "$PKG_CONFIG"; then
20123    if test -n "$PKG_CONFIG" && \
20124    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
20125  ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
20126  ac_status=$?
20127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20128  test $ac_status = 0; }; then
20129  pkg_cv_DRI1_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
20130		      test "x$?" != "x0" && pkg_failed=yes
20131else
20132  pkg_failed=yes
20133fi
20134 else
20135    pkg_failed=untried
20136fi
20137
20138
20139
20140if test $pkg_failed = yes; then
20141   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142$as_echo "no" >&6; }
20143
20144if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20145        _pkg_short_errors_supported=yes
20146else
20147        _pkg_short_errors_supported=no
20148fi
20149        if test $_pkg_short_errors_supported = yes; then
20150	        DRI1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xf86driproto" 2>&1`
20151        else
20152	        DRI1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xf86driproto" 2>&1`
20153        fi
20154	# Put the nasty error message in config.log where it belongs
20155	echo "$DRI1_PKG_ERRORS" >&5
20156
20157	DRI1=no
20158elif test $pkg_failed = untried; then
20159     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20160$as_echo "no" >&6; }
20161	DRI1=no
20162else
20163	DRI1_CFLAGS=$pkg_cv_DRI1_CFLAGS
20164	DRI1_LIBS=$pkg_cv_DRI1_LIBS
20165        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20166$as_echo "yes" >&6; }
20167	DRI1=yes
20168fi
20169        save_CFLAGS="$CFLAGS"
20170        save_CPPFLAGS="$CPPFLAGS"
20171        CFLAGS="$CFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
20172        CPPFLAGS="$CPPFLAGS $XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
20173        for ac_header in dri.h sarea.h dristruct.h
20174do :
20175  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20176ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "/* for dri.h */
20177                 #include <xf86str.h>
20178                 /* for dristruct.h */
20179                 #include <xorg-server.h>
20180                 #ifdef HAVE_DRI_H
20181                 # include <dri.h>
20182                 #endif
20183                 #ifdef HAVE_SAREA_H
20184                 # include <sarea.h>
20185                 #endif
20186
20187"
20188if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20189  cat >>confdefs.h <<_ACEOF
20190#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20191_ACEOF
20192 DRI1=yes
20193else
20194  DRI1=no
20195fi
20196
20197done
20198
20199        CFLAGS="$save_CFLAGS $DEBUGFLAGS"
20200        CPPFLAGS="$save_CPPFLAGS"
20201fi
20202
20203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI1 support" >&5
20204$as_echo_n "checking whether to include DRI1 support... " >&6; }
20205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI1" >&5
20206$as_echo "$DRI1" >&6; }
20207
20208 if test x$DRI1 != xno; then
20209  DRI1_TRUE=
20210  DRI1_FALSE='#'
20211else
20212  DRI1_TRUE='#'
20213  DRI1_FALSE=
20214fi
20215
20216if test "x$DRI1" != "xno"; then
20217
20218$as_echo "#define HAVE_DRI1 1" >>confdefs.h
20219
20220	dri_msg="$dri_msg DRI1"
20221else
20222        DRI1_CFLAGS=""
20223        DRI1_LIBS=""
20224
20225        if test "x$enable_dri" = "xyes" -a "x$KMS_ONLY" != "xyes"; then
20226                as_fn_error $? "DRI1 requested but prerequisites not found" "$LINENO" 5
20227        fi
20228fi
20229
20230DRI2=no
20231if test "x$enable_dri" != "xno"; then
20232
20233pkg_failed=no
20234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI2" >&5
20235$as_echo_n "checking for DRI2... " >&6; }
20236
20237if test -n "$DRI2_CFLAGS"; then
20238    pkg_cv_DRI2_CFLAGS="$DRI2_CFLAGS"
20239 elif test -n "$PKG_CONFIG"; then
20240    if test -n "$PKG_CONFIG" && \
20241    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
20242  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
20243  ac_status=$?
20244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20245  test $ac_status = 0; }; then
20246  pkg_cv_DRI2_CFLAGS=`$PKG_CONFIG --cflags "dri2proto >= 2.6" 2>/dev/null`
20247		      test "x$?" != "x0" && pkg_failed=yes
20248else
20249  pkg_failed=yes
20250fi
20251 else
20252    pkg_failed=untried
20253fi
20254if test -n "$DRI2_LIBS"; then
20255    pkg_cv_DRI2_LIBS="$DRI2_LIBS"
20256 elif test -n "$PKG_CONFIG"; then
20257    if test -n "$PKG_CONFIG" && \
20258    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dri2proto >= 2.6\""; } >&5
20259  ($PKG_CONFIG --exists --print-errors "dri2proto >= 2.6") 2>&5
20260  ac_status=$?
20261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20262  test $ac_status = 0; }; then
20263  pkg_cv_DRI2_LIBS=`$PKG_CONFIG --libs "dri2proto >= 2.6" 2>/dev/null`
20264		      test "x$?" != "x0" && pkg_failed=yes
20265else
20266  pkg_failed=yes
20267fi
20268 else
20269    pkg_failed=untried
20270fi
20271
20272
20273
20274if test $pkg_failed = yes; then
20275   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20276$as_echo "no" >&6; }
20277
20278if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20279        _pkg_short_errors_supported=yes
20280else
20281        _pkg_short_errors_supported=no
20282fi
20283        if test $_pkg_short_errors_supported = yes; then
20284	        DRI2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
20285        else
20286	        DRI2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dri2proto >= 2.6" 2>&1`
20287        fi
20288	# Put the nasty error message in config.log where it belongs
20289	echo "$DRI2_PKG_ERRORS" >&5
20290
20291	DRI2=no
20292elif test $pkg_failed = untried; then
20293     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20294$as_echo "no" >&6; }
20295	DRI2=no
20296else
20297	DRI2_CFLAGS=$pkg_cv_DRI2_CFLAGS
20298	DRI2_LIBS=$pkg_cv_DRI2_LIBS
20299        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20300$as_echo "yes" >&6; }
20301	DRI2=yes
20302fi
20303	dridriverdir=`$PKG_CONFIG --variable=dridriverdir dri`
20304	if test "x$dridriverdir" = "x"; then
20305		dridriverdir="$libdir/dri"
20306	fi
20307
20308  prefix_NONE=
20309  exec_prefix_NONE=
20310  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
20311  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
20312  eval ac_define_dir="\"$dridriverdir\""
20313  eval ac_define_dir="\"$ac_define_dir\""
20314  DRI_DRIVER_PATH="$ac_define_dir"
20315
20316
20317cat >>confdefs.h <<_ACEOF
20318#define DRI_DRIVER_PATH "$ac_define_dir"
20319_ACEOF
20320
20321  test "$prefix_NONE" && prefix=NONE
20322  test "$exec_prefix_NONE" && exec_prefix=NONE
20323
20324	if test "x$DRI2" != "xno"; then
20325		save_CFLAGS=$CFLAGS
20326		CFLAGS="$XORG_CFLAGS $DRM_CFLAGS $DRI_CFLAGS $DRI2_CFLAGS"
20327		for ac_header in dri2.h
20328do :
20329  ac_fn_c_check_header_compile "$LINENO" "dri2.h" "ac_cv_header_dri2_h" "#include <dixstruct.h>
20330"
20331if test "x$ac_cv_header_dri2_h" = xyes; then :
20332  cat >>confdefs.h <<_ACEOF
20333#define HAVE_DRI2_H 1
20334_ACEOF
20335 DRI2=yes
20336else
20337  DRI2=no
20338fi
20339
20340done
20341
20342		CFLAGS=$save_CFLAGS
20343	fi
20344fi
20345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI2 support" >&5
20346$as_echo_n "checking whether to include DRI2 support... " >&6; }
20347 if test "x$DRI2" = xyes; then
20348  DRI2_TRUE=
20349  DRI2_FALSE='#'
20350else
20351  DRI2_TRUE='#'
20352  DRI2_FALSE=
20353fi
20354
20355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI2" >&5
20356$as_echo "$DRI2" >&6; }
20357if test "x$DRI2" != "xno"; then
20358
20359$as_echo "#define HAVE_DRI2 1" >>confdefs.h
20360
20361	dri_msg="$dri_msg DRI2"
20362fi
20363
20364if test "$XVMC" = yes; then
20365
20366pkg_failed=no
20367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
20368$as_echo_n "checking for XVMCLIB... " >&6; }
20369
20370if test -n "$XVMCLIB_CFLAGS"; then
20371    pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
20372 elif test -n "$PKG_CONFIG"; then
20373    if test -n "$PKG_CONFIG" && \
20374    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11\""; } >&5
20375  ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11") 2>&5
20376  ac_status=$?
20377  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20378  test $ac_status = 0; }; then
20379  pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc dri2proto x11" 2>/dev/null`
20380		      test "x$?" != "x0" && pkg_failed=yes
20381else
20382  pkg_failed=yes
20383fi
20384 else
20385    pkg_failed=untried
20386fi
20387if test -n "$XVMCLIB_LIBS"; then
20388    pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
20389 elif test -n "$PKG_CONFIG"; then
20390    if test -n "$PKG_CONFIG" && \
20391    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc dri2proto x11\""; } >&5
20392  ($PKG_CONFIG --exists --print-errors "xvmc dri2proto x11") 2>&5
20393  ac_status=$?
20394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395  test $ac_status = 0; }; then
20396  pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc dri2proto x11" 2>/dev/null`
20397		      test "x$?" != "x0" && pkg_failed=yes
20398else
20399  pkg_failed=yes
20400fi
20401 else
20402    pkg_failed=untried
20403fi
20404
20405
20406
20407if test $pkg_failed = yes; then
20408   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409$as_echo "no" >&6; }
20410
20411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20412        _pkg_short_errors_supported=yes
20413else
20414        _pkg_short_errors_supported=no
20415fi
20416        if test $_pkg_short_errors_supported = yes; then
20417	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xvmc dri2proto x11" 2>&1`
20418        else
20419	        XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xvmc dri2proto x11" 2>&1`
20420        fi
20421	# Put the nasty error message in config.log where it belongs
20422	echo "$XVMCLIB_PKG_ERRORS" >&5
20423
20424	XVMC=no
20425elif test $pkg_failed = untried; then
20426     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20427$as_echo "no" >&6; }
20428	XVMC=no
20429else
20430	XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
20431	XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
20432        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20433$as_echo "yes" >&6; }
20434
20435fi
20436
20437pkg_failed=no
20438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCB" >&5
20439$as_echo_n "checking for XCB... " >&6; }
20440
20441if test -n "$XCB_CFLAGS"; then
20442    pkg_cv_XCB_CFLAGS="$XCB_CFLAGS"
20443 elif test -n "$PKG_CONFIG"; then
20444    if test -n "$PKG_CONFIG" && \
20445    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 xcb-aux\""; } >&5
20446  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 xcb-aux") 2>&5
20447  ac_status=$?
20448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20449  test $ac_status = 0; }; then
20450  pkg_cv_XCB_CFLAGS=`$PKG_CONFIG --cflags "x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
20451		      test "x$?" != "x0" && pkg_failed=yes
20452else
20453  pkg_failed=yes
20454fi
20455 else
20456    pkg_failed=untried
20457fi
20458if test -n "$XCB_LIBS"; then
20459    pkg_cv_XCB_LIBS="$XCB_LIBS"
20460 elif test -n "$PKG_CONFIG"; then
20461    if test -n "$PKG_CONFIG" && \
20462    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11-xcb xcb-dri2 xcb-aux\""; } >&5
20463  ($PKG_CONFIG --exists --print-errors "x11-xcb xcb-dri2 xcb-aux") 2>&5
20464  ac_status=$?
20465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20466  test $ac_status = 0; }; then
20467  pkg_cv_XCB_LIBS=`$PKG_CONFIG --libs "x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
20468		      test "x$?" != "x0" && pkg_failed=yes
20469else
20470  pkg_failed=yes
20471fi
20472 else
20473    pkg_failed=untried
20474fi
20475
20476
20477
20478if test $pkg_failed = yes; then
20479   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20480$as_echo "no" >&6; }
20481
20482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20483        _pkg_short_errors_supported=yes
20484else
20485        _pkg_short_errors_supported=no
20486fi
20487        if test $_pkg_short_errors_supported = yes; then
20488	        XCB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11-xcb xcb-dri2 xcb-aux" 2>&1`
20489        else
20490	        XCB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11-xcb xcb-dri2 xcb-aux" 2>&1`
20491        fi
20492	# Put the nasty error message in config.log where it belongs
20493	echo "$XCB_PKG_ERRORS" >&5
20494
20495	XVMC=no
20496elif test $pkg_failed = untried; then
20497     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20498$as_echo "no" >&6; }
20499	XVMC=no
20500else
20501	XCB_CFLAGS=$pkg_cv_XCB_CFLAGS
20502	XCB_LIBS=$pkg_cv_XCB_LIBS
20503        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20504$as_echo "yes" >&6; }
20505
20506fi
20507fi
20508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
20509$as_echo_n "checking whether to include XvMC support... " >&6; }
20510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
20511$as_echo "$XVMC" >&6; }
20512 if test x$XVMC = xyes; then
20513  XVMC_TRUE=
20514  XVMC_FALSE='#'
20515else
20516  XVMC_TRUE='#'
20517  XVMC_FALSE=
20518fi
20519
20520if test "x$XVMC" = xyes; then
20521
20522$as_echo "#define ENABLE_XVMC 1" >>confdefs.h
20523
20524	xvmc_msg=" yes"
20525else
20526	xvmc_msg=" no"
20527fi
20528
20529 if test x$KMS_ONLY = xyes; then
20530  KMS_ONLY_TRUE=
20531  KMS_ONLY_FALSE='#'
20532else
20533  KMS_ONLY_TRUE='#'
20534  KMS_ONLY_FALSE=
20535fi
20536
20537if test "x$KMS_ONLY" = xyes; then
20538
20539$as_echo "#define KMS_ONLY 1" >>confdefs.h
20540
20541fi
20542 if test x$UMS_ONLY = xyes; then
20543  UMS_ONLY_TRUE=
20544  UMS_ONLY_FALSE='#'
20545else
20546  UMS_ONLY_TRUE='#'
20547  UMS_ONLY_FALSE=
20548fi
20549
20550if test "x$UMS_ONLY" = xyes; then
20551
20552$as_echo "#define UMS_ONLY 1" >>confdefs.h
20553
20554fi
20555
20556 if test x$DEBUG != xno; then
20557  DEBUG_TRUE=
20558  DEBUG_FALSE='#'
20559else
20560  DEBUG_TRUE='#'
20561  DEBUG_FALSE=
20562fi
20563
20564 if test x$DEBUG = xfull; then
20565  FULL_DEBUG_TRUE=
20566  FULL_DEBUG_FALSE='#'
20567else
20568  FULL_DEBUG_TRUE='#'
20569  FULL_DEBUG_FALSE=
20570fi
20571
20572if test "x$DEBUG" = xno; then
20573
20574$as_echo "#define NDEBUG 1" >>confdefs.h
20575
20576else
20577	if test "x$VG" != xyes; then
20578		VG=auto
20579	fi
20580fi
20581debug_msg=""
20582have_valgrind=no
20583if test "x$VG" != xno; then
20584
20585pkg_failed=no
20586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
20587$as_echo_n "checking for VALGRIND... " >&6; }
20588
20589if test -n "$VALGRIND_CFLAGS"; then
20590    pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
20591 elif test -n "$PKG_CONFIG"; then
20592    if test -n "$PKG_CONFIG" && \
20593    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
20594  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
20595  ac_status=$?
20596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20597  test $ac_status = 0; }; then
20598  pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
20599		      test "x$?" != "x0" && pkg_failed=yes
20600else
20601  pkg_failed=yes
20602fi
20603 else
20604    pkg_failed=untried
20605fi
20606if test -n "$VALGRIND_LIBS"; then
20607    pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
20608 elif test -n "$PKG_CONFIG"; then
20609    if test -n "$PKG_CONFIG" && \
20610    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
20611  ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
20612  ac_status=$?
20613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20614  test $ac_status = 0; }; then
20615  pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
20616		      test "x$?" != "x0" && pkg_failed=yes
20617else
20618  pkg_failed=yes
20619fi
20620 else
20621    pkg_failed=untried
20622fi
20623
20624
20625
20626if test $pkg_failed = yes; then
20627   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20628$as_echo "no" >&6; }
20629
20630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20631        _pkg_short_errors_supported=yes
20632else
20633        _pkg_short_errors_supported=no
20634fi
20635        if test $_pkg_short_errors_supported = yes; then
20636	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
20637        else
20638	        VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
20639        fi
20640	# Put the nasty error message in config.log where it belongs
20641	echo "$VALGRIND_PKG_ERRORS" >&5
20642
20643	have_valgrind=no
20644elif test $pkg_failed = untried; then
20645     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20646$as_echo "no" >&6; }
20647	have_valgrind=no
20648else
20649	VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
20650	VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
20651        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20652$as_echo "yes" >&6; }
20653	have_valgrind=yes
20654fi
20655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include valgrind support" >&5
20656$as_echo_n "checking whether to include valgrind support... " >&6; }
20657	if test x$have_valgrind = xyes; then
20658
20659$as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
20660
20661	else
20662		if test "x$VG" = xyes; then
20663			as_fn_error $? "valgrind support requested, but valgrind-dev headers not found" "$LINENO" 5
20664		fi
20665	fi
20666	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_valgrind ($VG)" >&5
20667$as_echo "$have_valgrind ($VG)" >&6; }
20668fi
20669 if test x$have_valgrind = xyes; then
20670  VALGRIND_TRUE=
20671  VALGRIND_FALSE='#'
20672else
20673  VALGRIND_TRUE='#'
20674  VALGRIND_FALSE=
20675fi
20676
20677if test "x$have_valgrind" = xyes; then
20678	debug_msg="$debug_msg valgrind"
20679fi
20680if test "x$DEBUG" = xsync; then
20681
20682$as_echo "#define DEBUG_SYNC 1" >>confdefs.h
20683
20684	debug_msg="$debug_msg sync"
20685fi
20686if test "x$DEBUG" = xmemory; then
20687
20688$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
20689
20690	debug_msg="$debug_msg memory"
20691fi
20692if test "x$DEBUG" = xpixmap; then
20693
20694$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
20695
20696	debug_msg="$debug_msg pixmaps"
20697fi
20698if test "x$DEBUG" = xfull; then
20699
20700$as_echo "#define DEBUG_MEMORY 1" >>confdefs.h
20701
20702
20703$as_echo "#define DEBUG_PIXMAP 1" >>confdefs.h
20704
20705
20706$as_echo "#define HAS_DEBUG_FULL 1" >>confdefs.h
20707
20708        CFLAGS="$CFLAGS -O0 -ggdb3"
20709	debug_msg=" full"
20710fi
20711if test "x$debug_msg" = x; then
20712	debug_msg=" none"
20713fi
20714
20715DRIVER_NAME=intel
20716
20717
20718
20719ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile src/render_program/Makefile src/sna/Makefile src/sna/brw/Makefile src/sna/fb/Makefile src/uxa/Makefile xvmc/Makefile xvmc/shader/Makefile xvmc/shader/mc/Makefile xvmc/shader/vld/Makefile test/Makefile"
20720
20721cat >confcache <<\_ACEOF
20722# This file is a shell script that caches the results of configure
20723# tests run on this system so they can be shared between configure
20724# scripts and configure runs, see configure's option --config-cache.
20725# It is not useful on other systems.  If it contains results you don't
20726# want to keep, you may remove or edit it.
20727#
20728# config.status only pays attention to the cache file if you give it
20729# the --recheck option to rerun configure.
20730#
20731# `ac_cv_env_foo' variables (set or unset) will be overridden when
20732# loading this file, other *unset* `ac_cv_foo' will be assigned the
20733# following values.
20734
20735_ACEOF
20736
20737# The following way of writing the cache mishandles newlines in values,
20738# but we know of no workaround that is simple, portable, and efficient.
20739# So, we kill variables containing newlines.
20740# Ultrix sh set writes to stderr and can't be redirected directly,
20741# and sets the high bit in the cache file unless we assign to the vars.
20742(
20743  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20744    eval ac_val=\$$ac_var
20745    case $ac_val in #(
20746    *${as_nl}*)
20747      case $ac_var in #(
20748      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20749$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20750      esac
20751      case $ac_var in #(
20752      _ | IFS | as_nl) ;; #(
20753      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20754      *) { eval $ac_var=; unset $ac_var;} ;;
20755      esac ;;
20756    esac
20757  done
20758
20759  (set) 2>&1 |
20760    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20761    *${as_nl}ac_space=\ *)
20762      # `set' does not quote correctly, so add quotes: double-quote
20763      # substitution turns \\\\ into \\, and sed turns \\ into \.
20764      sed -n \
20765	"s/'/'\\\\''/g;
20766	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20767      ;; #(
20768    *)
20769      # `set' quotes correctly as required by POSIX, so do not add quotes.
20770      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20771      ;;
20772    esac |
20773    sort
20774) |
20775  sed '
20776     /^ac_cv_env_/b end
20777     t clear
20778     :clear
20779     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20780     t end
20781     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20782     :end' >>confcache
20783if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20784  if test -w "$cache_file"; then
20785    if test "x$cache_file" != "x/dev/null"; then
20786      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20787$as_echo "$as_me: updating cache $cache_file" >&6;}
20788      if test ! -f "$cache_file" || test -h "$cache_file"; then
20789	cat confcache >"$cache_file"
20790      else
20791        case $cache_file in #(
20792        */* | ?:*)
20793	  mv -f confcache "$cache_file"$$ &&
20794	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20795        *)
20796	  mv -f confcache "$cache_file" ;;
20797	esac
20798      fi
20799    fi
20800  else
20801    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20802$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20803  fi
20804fi
20805rm -f confcache
20806
20807test "x$prefix" = xNONE && prefix=$ac_default_prefix
20808# Let make expand exec_prefix.
20809test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20810
20811DEFS=-DHAVE_CONFIG_H
20812
20813ac_libobjs=
20814ac_ltlibobjs=
20815U=
20816for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20817  # 1. Remove the extension, and $U if already installed.
20818  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20819  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20820  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20821  #    will be set to the directory where LIBOBJS objects are built.
20822  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20823  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20824done
20825LIBOBJS=$ac_libobjs
20826
20827LTLIBOBJS=$ac_ltlibobjs
20828
20829
20830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20831$as_echo_n "checking that generated files are newer than configure... " >&6; }
20832   if test -n "$am_sleep_pid"; then
20833     # Hide warnings about reused PIDs.
20834     wait $am_sleep_pid 2>/dev/null
20835   fi
20836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20837$as_echo "done" >&6; }
20838 if test -n "$EXEEXT"; then
20839  am__EXEEXT_TRUE=
20840  am__EXEEXT_FALSE='#'
20841else
20842  am__EXEEXT_TRUE='#'
20843  am__EXEEXT_FALSE=
20844fi
20845
20846if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20847  as_fn_error $? "conditional \"AMDEP\" was never defined.
20848Usually this means the macro was only invoked conditionally." "$LINENO" 5
20849fi
20850if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20851  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20852Usually this means the macro was only invoked conditionally." "$LINENO" 5
20853fi
20854if test -z "${HAVE_DOT_GIT_TRUE}" && test -z "${HAVE_DOT_GIT_FALSE}"; then
20855  as_fn_error $? "conditional \"HAVE_DOT_GIT\" was never defined.
20856Usually this means the macro was only invoked conditionally." "$LINENO" 5
20857fi
20858if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
20859  as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
20860Usually this means the macro was only invoked conditionally." "$LINENO" 5
20861fi
20862if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
20863  as_fn_error $? "conditional \"HAVE_X11\" was never defined.
20864Usually this means the macro was only invoked conditionally." "$LINENO" 5
20865fi
20866if test -z "${SNA_TRUE}" && test -z "${SNA_FALSE}"; then
20867  as_fn_error $? "conditional \"SNA\" was never defined.
20868Usually this means the macro was only invoked conditionally." "$LINENO" 5
20869fi
20870if test -z "${UXA_TRUE}" && test -z "${UXA_FALSE}"; then
20871  as_fn_error $? "conditional \"UXA\" was never defined.
20872Usually this means the macro was only invoked conditionally." "$LINENO" 5
20873fi
20874if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20875  as_fn_error $? "conditional \"GLAMOR\" was never defined.
20876Usually this means the macro was only invoked conditionally." "$LINENO" 5
20877fi
20878if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20879  as_fn_error $? "conditional \"XAA\" was never defined.
20880Usually this means the macro was only invoked conditionally." "$LINENO" 5
20881fi
20882if test -z "${DGA_TRUE}" && test -z "${DGA_FALSE}"; then
20883  as_fn_error $? "conditional \"DGA\" was never defined.
20884Usually this means the macro was only invoked conditionally." "$LINENO" 5
20885fi
20886if test -z "${USE_CREATE2_TRUE}" && test -z "${USE_CREATE2_FALSE}"; then
20887  as_fn_error $? "conditional \"USE_CREATE2\" was never defined.
20888Usually this means the macro was only invoked conditionally." "$LINENO" 5
20889fi
20890if test -z "${USE_USERPTR_TRUE}" && test -z "${USE_USERPTR_FALSE}"; then
20891  as_fn_error $? "conditional \"USE_USERPTR\" was never defined.
20892Usually this means the macro was only invoked conditionally." "$LINENO" 5
20893fi
20894if test -z "${USE_ASYNC_SWAP_TRUE}" && test -z "${USE_ASYNC_SWAP_FALSE}"; then
20895  as_fn_error $? "conditional \"USE_ASYNC_SWAP\" was never defined.
20896Usually this means the macro was only invoked conditionally." "$LINENO" 5
20897fi
20898if test -z "${USE_WT_TRUE}" && test -z "${USE_WT_FALSE}"; then
20899  as_fn_error $? "conditional \"USE_WT\" was never defined.
20900Usually this means the macro was only invoked conditionally." "$LINENO" 5
20901fi
20902if test -z "${DRI1_TRUE}" && test -z "${DRI1_FALSE}"; then
20903  as_fn_error $? "conditional \"DRI1\" was never defined.
20904Usually this means the macro was only invoked conditionally." "$LINENO" 5
20905fi
20906if test -z "${DRI2_TRUE}" && test -z "${DRI2_FALSE}"; then
20907  as_fn_error $? "conditional \"DRI2\" was never defined.
20908Usually this means the macro was only invoked conditionally." "$LINENO" 5
20909fi
20910if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
20911  as_fn_error $? "conditional \"XVMC\" was never defined.
20912Usually this means the macro was only invoked conditionally." "$LINENO" 5
20913fi
20914if test -z "${KMS_ONLY_TRUE}" && test -z "${KMS_ONLY_FALSE}"; then
20915  as_fn_error $? "conditional \"KMS_ONLY\" was never defined.
20916Usually this means the macro was only invoked conditionally." "$LINENO" 5
20917fi
20918if test -z "${UMS_ONLY_TRUE}" && test -z "${UMS_ONLY_FALSE}"; then
20919  as_fn_error $? "conditional \"UMS_ONLY\" was never defined.
20920Usually this means the macro was only invoked conditionally." "$LINENO" 5
20921fi
20922if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
20923  as_fn_error $? "conditional \"DEBUG\" was never defined.
20924Usually this means the macro was only invoked conditionally." "$LINENO" 5
20925fi
20926if test -z "${FULL_DEBUG_TRUE}" && test -z "${FULL_DEBUG_FALSE}"; then
20927  as_fn_error $? "conditional \"FULL_DEBUG\" was never defined.
20928Usually this means the macro was only invoked conditionally." "$LINENO" 5
20929fi
20930if test -z "${VALGRIND_TRUE}" && test -z "${VALGRIND_FALSE}"; then
20931  as_fn_error $? "conditional \"VALGRIND\" was never defined.
20932Usually this means the macro was only invoked conditionally." "$LINENO" 5
20933fi
20934
20935: "${CONFIG_STATUS=./config.status}"
20936ac_write_fail=0
20937ac_clean_files_save=$ac_clean_files
20938ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20940$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20941as_write_fail=0
20942cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20943#! $SHELL
20944# Generated by $as_me.
20945# Run this file to recreate the current configuration.
20946# Compiler output produced by configure, useful for debugging
20947# configure, is in config.log if it exists.
20948
20949debug=false
20950ac_cs_recheck=false
20951ac_cs_silent=false
20952
20953SHELL=\${CONFIG_SHELL-$SHELL}
20954export SHELL
20955_ASEOF
20956cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20957## -------------------- ##
20958## M4sh Initialization. ##
20959## -------------------- ##
20960
20961# Be more Bourne compatible
20962DUALCASE=1; export DUALCASE # for MKS sh
20963if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20964  emulate sh
20965  NULLCMD=:
20966  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20967  # is contrary to our usage.  Disable this feature.
20968  alias -g '${1+"$@"}'='"$@"'
20969  setopt NO_GLOB_SUBST
20970else
20971  case `(set -o) 2>/dev/null` in #(
20972  *posix*) :
20973    set -o posix ;; #(
20974  *) :
20975     ;;
20976esac
20977fi
20978
20979
20980as_nl='
20981'
20982export as_nl
20983# Printing a long string crashes Solaris 7 /usr/bin/printf.
20984as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20985as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20986as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20987# Prefer a ksh shell builtin over an external printf program on Solaris,
20988# but without wasting forks for bash or zsh.
20989if test -z "$BASH_VERSION$ZSH_VERSION" \
20990    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20991  as_echo='print -r --'
20992  as_echo_n='print -rn --'
20993elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20994  as_echo='printf %s\n'
20995  as_echo_n='printf %s'
20996else
20997  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20998    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20999    as_echo_n='/usr/ucb/echo -n'
21000  else
21001    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21002    as_echo_n_body='eval
21003      arg=$1;
21004      case $arg in #(
21005      *"$as_nl"*)
21006	expr "X$arg" : "X\\(.*\\)$as_nl";
21007	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21008      esac;
21009      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21010    '
21011    export as_echo_n_body
21012    as_echo_n='sh -c $as_echo_n_body as_echo'
21013  fi
21014  export as_echo_body
21015  as_echo='sh -c $as_echo_body as_echo'
21016fi
21017
21018# The user is always right.
21019if test "${PATH_SEPARATOR+set}" != set; then
21020  PATH_SEPARATOR=:
21021  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21022    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21023      PATH_SEPARATOR=';'
21024  }
21025fi
21026
21027
21028# IFS
21029# We need space, tab and new line, in precisely that order.  Quoting is
21030# there to prevent editors from complaining about space-tab.
21031# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21032# splitting by setting IFS to empty value.)
21033IFS=" ""	$as_nl"
21034
21035# Find who we are.  Look in the path if we contain no directory separator.
21036as_myself=
21037case $0 in #((
21038  *[\\/]* ) as_myself=$0 ;;
21039  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21040for as_dir in $PATH
21041do
21042  IFS=$as_save_IFS
21043  test -z "$as_dir" && as_dir=.
21044    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21045  done
21046IFS=$as_save_IFS
21047
21048     ;;
21049esac
21050# We did not find ourselves, most probably we were run as `sh COMMAND'
21051# in which case we are not to be found in the path.
21052if test "x$as_myself" = x; then
21053  as_myself=$0
21054fi
21055if test ! -f "$as_myself"; then
21056  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21057  exit 1
21058fi
21059
21060# Unset variables that we do not need and which cause bugs (e.g. in
21061# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21062# suppresses any "Segmentation fault" message there.  '((' could
21063# trigger a bug in pdksh 5.2.14.
21064for as_var in BASH_ENV ENV MAIL MAILPATH
21065do eval test x\${$as_var+set} = xset \
21066  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21067done
21068PS1='$ '
21069PS2='> '
21070PS4='+ '
21071
21072# NLS nuisances.
21073LC_ALL=C
21074export LC_ALL
21075LANGUAGE=C
21076export LANGUAGE
21077
21078# CDPATH.
21079(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21080
21081
21082# as_fn_error STATUS ERROR [LINENO LOG_FD]
21083# ----------------------------------------
21084# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21085# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21086# script with STATUS, using 1 if that was 0.
21087as_fn_error ()
21088{
21089  as_status=$1; test $as_status -eq 0 && as_status=1
21090  if test "$4"; then
21091    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21092    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21093  fi
21094  $as_echo "$as_me: error: $2" >&2
21095  as_fn_exit $as_status
21096} # as_fn_error
21097
21098
21099# as_fn_set_status STATUS
21100# -----------------------
21101# Set $? to STATUS, without forking.
21102as_fn_set_status ()
21103{
21104  return $1
21105} # as_fn_set_status
21106
21107# as_fn_exit STATUS
21108# -----------------
21109# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21110as_fn_exit ()
21111{
21112  set +e
21113  as_fn_set_status $1
21114  exit $1
21115} # as_fn_exit
21116
21117# as_fn_unset VAR
21118# ---------------
21119# Portably unset VAR.
21120as_fn_unset ()
21121{
21122  { eval $1=; unset $1;}
21123}
21124as_unset=as_fn_unset
21125# as_fn_append VAR VALUE
21126# ----------------------
21127# Append the text in VALUE to the end of the definition contained in VAR. Take
21128# advantage of any shell optimizations that allow amortized linear growth over
21129# repeated appends, instead of the typical quadratic growth present in naive
21130# implementations.
21131if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21132  eval 'as_fn_append ()
21133  {
21134    eval $1+=\$2
21135  }'
21136else
21137  as_fn_append ()
21138  {
21139    eval $1=\$$1\$2
21140  }
21141fi # as_fn_append
21142
21143# as_fn_arith ARG...
21144# ------------------
21145# Perform arithmetic evaluation on the ARGs, and store the result in the
21146# global $as_val. Take advantage of shells that can avoid forks. The arguments
21147# must be portable across $(()) and expr.
21148if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21149  eval 'as_fn_arith ()
21150  {
21151    as_val=$(( $* ))
21152  }'
21153else
21154  as_fn_arith ()
21155  {
21156    as_val=`expr "$@" || test $? -eq 1`
21157  }
21158fi # as_fn_arith
21159
21160
21161if expr a : '\(a\)' >/dev/null 2>&1 &&
21162   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21163  as_expr=expr
21164else
21165  as_expr=false
21166fi
21167
21168if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21169  as_basename=basename
21170else
21171  as_basename=false
21172fi
21173
21174if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21175  as_dirname=dirname
21176else
21177  as_dirname=false
21178fi
21179
21180as_me=`$as_basename -- "$0" ||
21181$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21182	 X"$0" : 'X\(//\)$' \| \
21183	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21184$as_echo X/"$0" |
21185    sed '/^.*\/\([^/][^/]*\)\/*$/{
21186	    s//\1/
21187	    q
21188	  }
21189	  /^X\/\(\/\/\)$/{
21190	    s//\1/
21191	    q
21192	  }
21193	  /^X\/\(\/\).*/{
21194	    s//\1/
21195	    q
21196	  }
21197	  s/.*/./; q'`
21198
21199# Avoid depending upon Character Ranges.
21200as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21201as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21202as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21203as_cr_digits='0123456789'
21204as_cr_alnum=$as_cr_Letters$as_cr_digits
21205
21206ECHO_C= ECHO_N= ECHO_T=
21207case `echo -n x` in #(((((
21208-n*)
21209  case `echo 'xy\c'` in
21210  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21211  xy)  ECHO_C='\c';;
21212  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21213       ECHO_T='	';;
21214  esac;;
21215*)
21216  ECHO_N='-n';;
21217esac
21218
21219rm -f conf$$ conf$$.exe conf$$.file
21220if test -d conf$$.dir; then
21221  rm -f conf$$.dir/conf$$.file
21222else
21223  rm -f conf$$.dir
21224  mkdir conf$$.dir 2>/dev/null
21225fi
21226if (echo >conf$$.file) 2>/dev/null; then
21227  if ln -s conf$$.file conf$$ 2>/dev/null; then
21228    as_ln_s='ln -s'
21229    # ... but there are two gotchas:
21230    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21231    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21232    # In both cases, we have to default to `cp -pR'.
21233    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21234      as_ln_s='cp -pR'
21235  elif ln conf$$.file conf$$ 2>/dev/null; then
21236    as_ln_s=ln
21237  else
21238    as_ln_s='cp -pR'
21239  fi
21240else
21241  as_ln_s='cp -pR'
21242fi
21243rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21244rmdir conf$$.dir 2>/dev/null
21245
21246
21247# as_fn_mkdir_p
21248# -------------
21249# Create "$as_dir" as a directory, including parents if necessary.
21250as_fn_mkdir_p ()
21251{
21252
21253  case $as_dir in #(
21254  -*) as_dir=./$as_dir;;
21255  esac
21256  test -d "$as_dir" || eval $as_mkdir_p || {
21257    as_dirs=
21258    while :; do
21259      case $as_dir in #(
21260      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21261      *) as_qdir=$as_dir;;
21262      esac
21263      as_dirs="'$as_qdir' $as_dirs"
21264      as_dir=`$as_dirname -- "$as_dir" ||
21265$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21266	 X"$as_dir" : 'X\(//\)[^/]' \| \
21267	 X"$as_dir" : 'X\(//\)$' \| \
21268	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21269$as_echo X"$as_dir" |
21270    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21271	    s//\1/
21272	    q
21273	  }
21274	  /^X\(\/\/\)[^/].*/{
21275	    s//\1/
21276	    q
21277	  }
21278	  /^X\(\/\/\)$/{
21279	    s//\1/
21280	    q
21281	  }
21282	  /^X\(\/\).*/{
21283	    s//\1/
21284	    q
21285	  }
21286	  s/.*/./; q'`
21287      test -d "$as_dir" && break
21288    done
21289    test -z "$as_dirs" || eval "mkdir $as_dirs"
21290  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21291
21292
21293} # as_fn_mkdir_p
21294if mkdir -p . 2>/dev/null; then
21295  as_mkdir_p='mkdir -p "$as_dir"'
21296else
21297  test -d ./-p && rmdir ./-p
21298  as_mkdir_p=false
21299fi
21300
21301
21302# as_fn_executable_p FILE
21303# -----------------------
21304# Test if FILE is an executable regular file.
21305as_fn_executable_p ()
21306{
21307  test -f "$1" && test -x "$1"
21308} # as_fn_executable_p
21309as_test_x='test -x'
21310as_executable_p=as_fn_executable_p
21311
21312# Sed expression to map a string onto a valid CPP name.
21313as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21314
21315# Sed expression to map a string onto a valid variable name.
21316as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21317
21318
21319exec 6>&1
21320## ----------------------------------- ##
21321## Main body of $CONFIG_STATUS script. ##
21322## ----------------------------------- ##
21323_ASEOF
21324test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21325
21326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21327# Save the log message, to keep $0 and so on meaningful, and to
21328# report actual input values of CONFIG_FILES etc. instead of their
21329# values after options handling.
21330ac_log="
21331This file was extended by xf86-video-intel $as_me 2.21.15, which was
21332generated by GNU Autoconf 2.69.  Invocation command line was
21333
21334  CONFIG_FILES    = $CONFIG_FILES
21335  CONFIG_HEADERS  = $CONFIG_HEADERS
21336  CONFIG_LINKS    = $CONFIG_LINKS
21337  CONFIG_COMMANDS = $CONFIG_COMMANDS
21338  $ $0 $@
21339
21340on `(hostname || uname -n) 2>/dev/null | sed 1q`
21341"
21342
21343_ACEOF
21344
21345case $ac_config_files in *"
21346"*) set x $ac_config_files; shift; ac_config_files=$*;;
21347esac
21348
21349case $ac_config_headers in *"
21350"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21351esac
21352
21353
21354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21355# Files that config.status was made for.
21356config_files="$ac_config_files"
21357config_headers="$ac_config_headers"
21358config_commands="$ac_config_commands"
21359
21360_ACEOF
21361
21362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21363ac_cs_usage="\
21364\`$as_me' instantiates files and other configuration actions
21365from templates according to the current configuration.  Unless the files
21366and actions are specified as TAGs, all are instantiated by default.
21367
21368Usage: $0 [OPTION]... [TAG]...
21369
21370  -h, --help       print this help, then exit
21371  -V, --version    print version number and configuration settings, then exit
21372      --config     print configuration, then exit
21373  -q, --quiet, --silent
21374                   do not print progress messages
21375  -d, --debug      don't remove temporary files
21376      --recheck    update $as_me by reconfiguring in the same conditions
21377      --file=FILE[:TEMPLATE]
21378                   instantiate the configuration file FILE
21379      --header=FILE[:TEMPLATE]
21380                   instantiate the configuration header FILE
21381
21382Configuration files:
21383$config_files
21384
21385Configuration headers:
21386$config_headers
21387
21388Configuration commands:
21389$config_commands
21390
21391Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
21392
21393_ACEOF
21394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21395ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21396ac_cs_version="\\
21397xf86-video-intel config.status 2.21.15
21398configured by $0, generated by GNU Autoconf 2.69,
21399  with options \\"\$ac_cs_config\\"
21400
21401Copyright (C) 2012 Free Software Foundation, Inc.
21402This config.status script is free software; the Free Software Foundation
21403gives unlimited permission to copy, distribute and modify it."
21404
21405ac_pwd='$ac_pwd'
21406srcdir='$srcdir'
21407INSTALL='$INSTALL'
21408MKDIR_P='$MKDIR_P'
21409AWK='$AWK'
21410test -n "\$AWK" || AWK=awk
21411_ACEOF
21412
21413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21414# The default lists apply if the user does not specify any file.
21415ac_need_defaults=:
21416while test $# != 0
21417do
21418  case $1 in
21419  --*=?*)
21420    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21421    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21422    ac_shift=:
21423    ;;
21424  --*=)
21425    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21426    ac_optarg=
21427    ac_shift=:
21428    ;;
21429  *)
21430    ac_option=$1
21431    ac_optarg=$2
21432    ac_shift=shift
21433    ;;
21434  esac
21435
21436  case $ac_option in
21437  # Handling of the options.
21438  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21439    ac_cs_recheck=: ;;
21440  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21441    $as_echo "$ac_cs_version"; exit ;;
21442  --config | --confi | --conf | --con | --co | --c )
21443    $as_echo "$ac_cs_config"; exit ;;
21444  --debug | --debu | --deb | --de | --d | -d )
21445    debug=: ;;
21446  --file | --fil | --fi | --f )
21447    $ac_shift
21448    case $ac_optarg in
21449    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21450    '') as_fn_error $? "missing file argument" ;;
21451    esac
21452    as_fn_append CONFIG_FILES " '$ac_optarg'"
21453    ac_need_defaults=false;;
21454  --header | --heade | --head | --hea )
21455    $ac_shift
21456    case $ac_optarg in
21457    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21458    esac
21459    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21460    ac_need_defaults=false;;
21461  --he | --h)
21462    # Conflict between --help and --header
21463    as_fn_error $? "ambiguous option: \`$1'
21464Try \`$0 --help' for more information.";;
21465  --help | --hel | -h )
21466    $as_echo "$ac_cs_usage"; exit ;;
21467  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21468  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21469    ac_cs_silent=: ;;
21470
21471  # This is an error.
21472  -*) as_fn_error $? "unrecognized option: \`$1'
21473Try \`$0 --help' for more information." ;;
21474
21475  *) as_fn_append ac_config_targets " $1"
21476     ac_need_defaults=false ;;
21477
21478  esac
21479  shift
21480done
21481
21482ac_configure_extra_args=
21483
21484if $ac_cs_silent; then
21485  exec 6>/dev/null
21486  ac_configure_extra_args="$ac_configure_extra_args --silent"
21487fi
21488
21489_ACEOF
21490cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21491if \$ac_cs_recheck; then
21492  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21493  shift
21494  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21495  CONFIG_SHELL='$SHELL'
21496  export CONFIG_SHELL
21497  exec "\$@"
21498fi
21499
21500_ACEOF
21501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21502exec 5>>config.log
21503{
21504  echo
21505  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21506## Running $as_me. ##
21507_ASBOX
21508  $as_echo "$ac_log"
21509} >&5
21510
21511_ACEOF
21512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21513#
21514# INIT-COMMANDS
21515#
21516AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21517
21518
21519# The HP-UX ksh and POSIX shell print the target directory to stdout
21520# if CDPATH is set.
21521(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21522
21523sed_quote_subst='$sed_quote_subst'
21524double_quote_subst='$double_quote_subst'
21525delay_variable_subst='$delay_variable_subst'
21526enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21527macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21528macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21529enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21530pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21531enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21532SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21533ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21534host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21535host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21536host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21537build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21538build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21539build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21540SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21541Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21542GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21543EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21544FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21545LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21546NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21547LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21548max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21549ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21550exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21551lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21552lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21553lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21554lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21555lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21556reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21557reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21558OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21559deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21560file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21561file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21562want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21563DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21564sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21565AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21566AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21567archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21568STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21569RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21570old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21571old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21572old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21573lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21574CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21575CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21576compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21577GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21578lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21579lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21580lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21581lt_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"`'
21582nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21583lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21584objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21585MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21586lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21587lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21588lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21589lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21590lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21591need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21592MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21593DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21594NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21595LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21596OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21597OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21598libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21599shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21600extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21601archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21602enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21603export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21604whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21605compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21606old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21607old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21608archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21609archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21610module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21611module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21612with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21613allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21614no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21615hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21616hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21617hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21618hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21619hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21620hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21621hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21622hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21623inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21624link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21625always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21626export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21627exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21628include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21629prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21630postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21631file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21632variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21633need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21634need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21635version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21636runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21637shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21638shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21639libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21640library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21641soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21642install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21643postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21644postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21645finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21646finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21647hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21648sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21649sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21650hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21651enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21652enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21653enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21654old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21655striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21656
21657LTCC='$LTCC'
21658LTCFLAGS='$LTCFLAGS'
21659compiler='$compiler_DEFAULT'
21660
21661# A function that is used when there is no print builtin or printf.
21662func_fallback_echo ()
21663{
21664  eval 'cat <<_LTECHO_EOF
21665\$1
21666_LTECHO_EOF'
21667}
21668
21669# Quote evaled strings.
21670for var in SHELL \
21671ECHO \
21672SED \
21673GREP \
21674EGREP \
21675FGREP \
21676LD \
21677NM \
21678LN_S \
21679lt_SP2NL \
21680lt_NL2SP \
21681reload_flag \
21682OBJDUMP \
21683deplibs_check_method \
21684file_magic_cmd \
21685file_magic_glob \
21686want_nocaseglob \
21687DLLTOOL \
21688sharedlib_from_linklib_cmd \
21689AR \
21690AR_FLAGS \
21691archiver_list_spec \
21692STRIP \
21693RANLIB \
21694CC \
21695CFLAGS \
21696compiler \
21697lt_cv_sys_global_symbol_pipe \
21698lt_cv_sys_global_symbol_to_cdecl \
21699lt_cv_sys_global_symbol_to_c_name_address \
21700lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21701nm_file_list_spec \
21702lt_prog_compiler_no_builtin_flag \
21703lt_prog_compiler_pic \
21704lt_prog_compiler_wl \
21705lt_prog_compiler_static \
21706lt_cv_prog_compiler_c_o \
21707need_locks \
21708MANIFEST_TOOL \
21709DSYMUTIL \
21710NMEDIT \
21711LIPO \
21712OTOOL \
21713OTOOL64 \
21714shrext_cmds \
21715export_dynamic_flag_spec \
21716whole_archive_flag_spec \
21717compiler_needs_object \
21718with_gnu_ld \
21719allow_undefined_flag \
21720no_undefined_flag \
21721hardcode_libdir_flag_spec \
21722hardcode_libdir_flag_spec_ld \
21723hardcode_libdir_separator \
21724exclude_expsyms \
21725include_expsyms \
21726file_list_spec \
21727variables_saved_for_relink \
21728libname_spec \
21729library_names_spec \
21730soname_spec \
21731install_override_mode \
21732finish_eval \
21733old_striplib \
21734striplib; do
21735    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21736    *[\\\\\\\`\\"\\\$]*)
21737      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21738      ;;
21739    *)
21740      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21741      ;;
21742    esac
21743done
21744
21745# Double-quote double-evaled strings.
21746for var in reload_cmds \
21747old_postinstall_cmds \
21748old_postuninstall_cmds \
21749old_archive_cmds \
21750extract_expsyms_cmds \
21751old_archive_from_new_cmds \
21752old_archive_from_expsyms_cmds \
21753archive_cmds \
21754archive_expsym_cmds \
21755module_cmds \
21756module_expsym_cmds \
21757export_symbols_cmds \
21758prelink_cmds \
21759postlink_cmds \
21760postinstall_cmds \
21761postuninstall_cmds \
21762finish_cmds \
21763sys_lib_search_path_spec \
21764sys_lib_dlsearch_path_spec; do
21765    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21766    *[\\\\\\\`\\"\\\$]*)
21767      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21768      ;;
21769    *)
21770      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21771      ;;
21772    esac
21773done
21774
21775ac_aux_dir='$ac_aux_dir'
21776xsi_shell='$xsi_shell'
21777lt_shell_append='$lt_shell_append'
21778
21779# See if we are running on zsh, and set the options which allow our
21780# commands through without removal of \ escapes INIT.
21781if test -n "\${ZSH_VERSION+set}" ; then
21782   setopt NO_GLOB_SUBST
21783fi
21784
21785
21786    PACKAGE='$PACKAGE'
21787    VERSION='$VERSION'
21788    TIMESTAMP='$TIMESTAMP'
21789    RM='$RM'
21790    ofile='$ofile'
21791
21792
21793
21794
21795_ACEOF
21796
21797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21798
21799# Handling of arguments.
21800for ac_config_target in $ac_config_targets
21801do
21802  case $ac_config_target in
21803    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21804    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21805    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21806    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21807    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21808    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21809    "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
21810    "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
21811    "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
21812    "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
21813    "src/sna/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/Makefile" ;;
21814    "src/sna/brw/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/brw/Makefile" ;;
21815    "src/sna/fb/Makefile") CONFIG_FILES="$CONFIG_FILES src/sna/fb/Makefile" ;;
21816    "src/uxa/Makefile") CONFIG_FILES="$CONFIG_FILES src/uxa/Makefile" ;;
21817    "xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/Makefile" ;;
21818    "xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/Makefile" ;;
21819    "xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/mc/Makefile" ;;
21820    "xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES xvmc/shader/vld/Makefile" ;;
21821    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21822
21823  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21824  esac
21825done
21826
21827
21828# If the user did not use the arguments to specify the items to instantiate,
21829# then the envvar interface is used.  Set only those that are not.
21830# We use the long form for the default assignment because of an extremely
21831# bizarre bug on SunOS 4.1.3.
21832if $ac_need_defaults; then
21833  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21834  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21835  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21836fi
21837
21838# Have a temporary directory for convenience.  Make it in the build tree
21839# simply because there is no reason against having it here, and in addition,
21840# creating and moving files from /tmp can sometimes cause problems.
21841# Hook for its removal unless debugging.
21842# Note that there is a small window in which the directory will not be cleaned:
21843# after its creation but before its name has been assigned to `$tmp'.
21844$debug ||
21845{
21846  tmp= ac_tmp=
21847  trap 'exit_status=$?
21848  : "${ac_tmp:=$tmp}"
21849  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21850' 0
21851  trap 'as_fn_exit 1' 1 2 13 15
21852}
21853# Create a (secure) tmp directory for tmp files.
21854
21855{
21856  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21857  test -d "$tmp"
21858}  ||
21859{
21860  tmp=./conf$$-$RANDOM
21861  (umask 077 && mkdir "$tmp")
21862} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21863ac_tmp=$tmp
21864
21865# Set up the scripts for CONFIG_FILES section.
21866# No need to generate them if there are no CONFIG_FILES.
21867# This happens for instance with `./config.status config.h'.
21868if test -n "$CONFIG_FILES"; then
21869
21870
21871ac_cr=`echo X | tr X '\015'`
21872# On cygwin, bash can eat \r inside `` if the user requested igncr.
21873# But we know of no other shell where ac_cr would be empty at this
21874# point, so we can use a bashism as a fallback.
21875if test "x$ac_cr" = x; then
21876  eval ac_cr=\$\'\\r\'
21877fi
21878ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21879if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21880  ac_cs_awk_cr='\\r'
21881else
21882  ac_cs_awk_cr=$ac_cr
21883fi
21884
21885echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21886_ACEOF
21887
21888
21889{
21890  echo "cat >conf$$subs.awk <<_ACEOF" &&
21891  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21892  echo "_ACEOF"
21893} >conf$$subs.sh ||
21894  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21895ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21896ac_delim='%!_!# '
21897for ac_last_try in false false false false false :; do
21898  . ./conf$$subs.sh ||
21899    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21900
21901  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21902  if test $ac_delim_n = $ac_delim_num; then
21903    break
21904  elif $ac_last_try; then
21905    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21906  else
21907    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21908  fi
21909done
21910rm -f conf$$subs.sh
21911
21912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21913cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21914_ACEOF
21915sed -n '
21916h
21917s/^/S["/; s/!.*/"]=/
21918p
21919g
21920s/^[^!]*!//
21921:repl
21922t repl
21923s/'"$ac_delim"'$//
21924t delim
21925:nl
21926h
21927s/\(.\{148\}\)..*/\1/
21928t more1
21929s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21930p
21931n
21932b repl
21933:more1
21934s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21935p
21936g
21937s/.\{148\}//
21938t nl
21939:delim
21940h
21941s/\(.\{148\}\)..*/\1/
21942t more2
21943s/["\\]/\\&/g; s/^/"/; s/$/"/
21944p
21945b
21946:more2
21947s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21948p
21949g
21950s/.\{148\}//
21951t delim
21952' <conf$$subs.awk | sed '
21953/^[^""]/{
21954  N
21955  s/\n//
21956}
21957' >>$CONFIG_STATUS || ac_write_fail=1
21958rm -f conf$$subs.awk
21959cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21960_ACAWK
21961cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21962  for (key in S) S_is_set[key] = 1
21963  FS = ""
21964
21965}
21966{
21967  line = $ 0
21968  nfields = split(line, field, "@")
21969  substed = 0
21970  len = length(field[1])
21971  for (i = 2; i < nfields; i++) {
21972    key = field[i]
21973    keylen = length(key)
21974    if (S_is_set[key]) {
21975      value = S[key]
21976      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21977      len += length(value) + length(field[++i])
21978      substed = 1
21979    } else
21980      len += 1 + keylen
21981  }
21982
21983  print line
21984}
21985
21986_ACAWK
21987_ACEOF
21988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21989if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21990  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21991else
21992  cat
21993fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21994  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21995_ACEOF
21996
21997# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21998# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21999# trailing colons and then remove the whole line if VPATH becomes empty
22000# (actually we leave an empty line to preserve line numbers).
22001if test "x$srcdir" = x.; then
22002  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22003h
22004s///
22005s/^/:/
22006s/[	 ]*$/:/
22007s/:\$(srcdir):/:/g
22008s/:\${srcdir}:/:/g
22009s/:@srcdir@:/:/g
22010s/^:*//
22011s/:*$//
22012x
22013s/\(=[	 ]*\).*/\1/
22014G
22015s/\n//
22016s/^[^=]*=[	 ]*$//
22017}'
22018fi
22019
22020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22021fi # test -n "$CONFIG_FILES"
22022
22023# Set up the scripts for CONFIG_HEADERS section.
22024# No need to generate them if there are no CONFIG_HEADERS.
22025# This happens for instance with `./config.status Makefile'.
22026if test -n "$CONFIG_HEADERS"; then
22027cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22028BEGIN {
22029_ACEOF
22030
22031# Transform confdefs.h into an awk script `defines.awk', embedded as
22032# here-document in config.status, that substitutes the proper values into
22033# config.h.in to produce config.h.
22034
22035# Create a delimiter string that does not exist in confdefs.h, to ease
22036# handling of long lines.
22037ac_delim='%!_!# '
22038for ac_last_try in false false :; do
22039  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22040  if test -z "$ac_tt"; then
22041    break
22042  elif $ac_last_try; then
22043    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22044  else
22045    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22046  fi
22047done
22048
22049# For the awk script, D is an array of macro values keyed by name,
22050# likewise P contains macro parameters if any.  Preserve backslash
22051# newline sequences.
22052
22053ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22054sed -n '
22055s/.\{148\}/&'"$ac_delim"'/g
22056t rset
22057:rset
22058s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22059t def
22060d
22061:def
22062s/\\$//
22063t bsnl
22064s/["\\]/\\&/g
22065s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22066D["\1"]=" \3"/p
22067s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22068d
22069:bsnl
22070s/["\\]/\\&/g
22071s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22072D["\1"]=" \3\\\\\\n"\\/p
22073t cont
22074s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22075t cont
22076d
22077:cont
22078n
22079s/.\{148\}/&'"$ac_delim"'/g
22080t clear
22081:clear
22082s/\\$//
22083t bsnlc
22084s/["\\]/\\&/g; s/^/"/; s/$/"/p
22085d
22086:bsnlc
22087s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22088b cont
22089' <confdefs.h | sed '
22090s/'"$ac_delim"'/"\\\
22091"/g' >>$CONFIG_STATUS || ac_write_fail=1
22092
22093cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22094  for (key in D) D_is_set[key] = 1
22095  FS = ""
22096}
22097/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22098  line = \$ 0
22099  split(line, arg, " ")
22100  if (arg[1] == "#") {
22101    defundef = arg[2]
22102    mac1 = arg[3]
22103  } else {
22104    defundef = substr(arg[1], 2)
22105    mac1 = arg[2]
22106  }
22107  split(mac1, mac2, "(") #)
22108  macro = mac2[1]
22109  prefix = substr(line, 1, index(line, defundef) - 1)
22110  if (D_is_set[macro]) {
22111    # Preserve the white space surrounding the "#".
22112    print prefix "define", macro P[macro] D[macro]
22113    next
22114  } else {
22115    # Replace #undef with comments.  This is necessary, for example,
22116    # in the case of _POSIX_SOURCE, which is predefined and required
22117    # on some systems where configure will not decide to define it.
22118    if (defundef == "undef") {
22119      print "/*", prefix defundef, macro, "*/"
22120      next
22121    }
22122  }
22123}
22124{ print }
22125_ACAWK
22126_ACEOF
22127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22128  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22129fi # test -n "$CONFIG_HEADERS"
22130
22131
22132eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22133shift
22134for ac_tag
22135do
22136  case $ac_tag in
22137  :[FHLC]) ac_mode=$ac_tag; continue;;
22138  esac
22139  case $ac_mode$ac_tag in
22140  :[FHL]*:*);;
22141  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22142  :[FH]-) ac_tag=-:-;;
22143  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22144  esac
22145  ac_save_IFS=$IFS
22146  IFS=:
22147  set x $ac_tag
22148  IFS=$ac_save_IFS
22149  shift
22150  ac_file=$1
22151  shift
22152
22153  case $ac_mode in
22154  :L) ac_source=$1;;
22155  :[FH])
22156    ac_file_inputs=
22157    for ac_f
22158    do
22159      case $ac_f in
22160      -) ac_f="$ac_tmp/stdin";;
22161      *) # Look for the file first in the build tree, then in the source tree
22162	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22163	 # because $ac_f cannot contain `:'.
22164	 test -f "$ac_f" ||
22165	   case $ac_f in
22166	   [\\/$]*) false;;
22167	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22168	   esac ||
22169	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22170      esac
22171      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22172      as_fn_append ac_file_inputs " '$ac_f'"
22173    done
22174
22175    # Let's still pretend it is `configure' which instantiates (i.e., don't
22176    # use $as_me), people would be surprised to read:
22177    #    /* config.h.  Generated by config.status.  */
22178    configure_input='Generated from '`
22179	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22180	`' by configure.'
22181    if test x"$ac_file" != x-; then
22182      configure_input="$ac_file.  $configure_input"
22183      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22184$as_echo "$as_me: creating $ac_file" >&6;}
22185    fi
22186    # Neutralize special characters interpreted by sed in replacement strings.
22187    case $configure_input in #(
22188    *\&* | *\|* | *\\* )
22189       ac_sed_conf_input=`$as_echo "$configure_input" |
22190       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22191    *) ac_sed_conf_input=$configure_input;;
22192    esac
22193
22194    case $ac_tag in
22195    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22196      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22197    esac
22198    ;;
22199  esac
22200
22201  ac_dir=`$as_dirname -- "$ac_file" ||
22202$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22203	 X"$ac_file" : 'X\(//\)[^/]' \| \
22204	 X"$ac_file" : 'X\(//\)$' \| \
22205	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22206$as_echo X"$ac_file" |
22207    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22208	    s//\1/
22209	    q
22210	  }
22211	  /^X\(\/\/\)[^/].*/{
22212	    s//\1/
22213	    q
22214	  }
22215	  /^X\(\/\/\)$/{
22216	    s//\1/
22217	    q
22218	  }
22219	  /^X\(\/\).*/{
22220	    s//\1/
22221	    q
22222	  }
22223	  s/.*/./; q'`
22224  as_dir="$ac_dir"; as_fn_mkdir_p
22225  ac_builddir=.
22226
22227case "$ac_dir" in
22228.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22229*)
22230  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22231  # A ".." for each directory in $ac_dir_suffix.
22232  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22233  case $ac_top_builddir_sub in
22234  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22235  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22236  esac ;;
22237esac
22238ac_abs_top_builddir=$ac_pwd
22239ac_abs_builddir=$ac_pwd$ac_dir_suffix
22240# for backward compatibility:
22241ac_top_builddir=$ac_top_build_prefix
22242
22243case $srcdir in
22244  .)  # We are building in place.
22245    ac_srcdir=.
22246    ac_top_srcdir=$ac_top_builddir_sub
22247    ac_abs_top_srcdir=$ac_pwd ;;
22248  [\\/]* | ?:[\\/]* )  # Absolute name.
22249    ac_srcdir=$srcdir$ac_dir_suffix;
22250    ac_top_srcdir=$srcdir
22251    ac_abs_top_srcdir=$srcdir ;;
22252  *) # Relative name.
22253    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22254    ac_top_srcdir=$ac_top_build_prefix$srcdir
22255    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22256esac
22257ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22258
22259
22260  case $ac_mode in
22261  :F)
22262  #
22263  # CONFIG_FILE
22264  #
22265
22266  case $INSTALL in
22267  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22268  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22269  esac
22270  ac_MKDIR_P=$MKDIR_P
22271  case $MKDIR_P in
22272  [\\/$]* | ?:[\\/]* ) ;;
22273  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22274  esac
22275_ACEOF
22276
22277cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22278# If the template does not know about datarootdir, expand it.
22279# FIXME: This hack should be removed a few years after 2.60.
22280ac_datarootdir_hack=; ac_datarootdir_seen=
22281ac_sed_dataroot='
22282/datarootdir/ {
22283  p
22284  q
22285}
22286/@datadir@/p
22287/@docdir@/p
22288/@infodir@/p
22289/@localedir@/p
22290/@mandir@/p'
22291case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22292*datarootdir*) ac_datarootdir_seen=yes;;
22293*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22294  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22295$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22296_ACEOF
22297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22298  ac_datarootdir_hack='
22299  s&@datadir@&$datadir&g
22300  s&@docdir@&$docdir&g
22301  s&@infodir@&$infodir&g
22302  s&@localedir@&$localedir&g
22303  s&@mandir@&$mandir&g
22304  s&\\\${datarootdir}&$datarootdir&g' ;;
22305esac
22306_ACEOF
22307
22308# Neutralize VPATH when `$srcdir' = `.'.
22309# Shell code in configure.ac might set extrasub.
22310# FIXME: do we really want to maintain this feature?
22311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22312ac_sed_extra="$ac_vpsub
22313$extrasub
22314_ACEOF
22315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22316:t
22317/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22318s|@configure_input@|$ac_sed_conf_input|;t t
22319s&@top_builddir@&$ac_top_builddir_sub&;t t
22320s&@top_build_prefix@&$ac_top_build_prefix&;t t
22321s&@srcdir@&$ac_srcdir&;t t
22322s&@abs_srcdir@&$ac_abs_srcdir&;t t
22323s&@top_srcdir@&$ac_top_srcdir&;t t
22324s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22325s&@builddir@&$ac_builddir&;t t
22326s&@abs_builddir@&$ac_abs_builddir&;t t
22327s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22328s&@INSTALL@&$ac_INSTALL&;t t
22329s&@MKDIR_P@&$ac_MKDIR_P&;t t
22330$ac_datarootdir_hack
22331"
22332eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22333  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22334
22335test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22336  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22337  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22338      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22339  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22340which seems to be undefined.  Please make sure it is defined" >&5
22341$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22342which seems to be undefined.  Please make sure it is defined" >&2;}
22343
22344  rm -f "$ac_tmp/stdin"
22345  case $ac_file in
22346  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22347  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22348  esac \
22349  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22350 ;;
22351  :H)
22352  #
22353  # CONFIG_HEADER
22354  #
22355  if test x"$ac_file" != x-; then
22356    {
22357      $as_echo "/* $configure_input  */" \
22358      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22359    } >"$ac_tmp/config.h" \
22360      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22361    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22362      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22363$as_echo "$as_me: $ac_file is unchanged" >&6;}
22364    else
22365      rm -f "$ac_file"
22366      mv "$ac_tmp/config.h" "$ac_file" \
22367	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22368    fi
22369  else
22370    $as_echo "/* $configure_input  */" \
22371      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22372      || as_fn_error $? "could not create -" "$LINENO" 5
22373  fi
22374# Compute "$ac_file"'s index in $config_headers.
22375_am_arg="$ac_file"
22376_am_stamp_count=1
22377for _am_header in $config_headers :; do
22378  case $_am_header in
22379    $_am_arg | $_am_arg:* )
22380      break ;;
22381    * )
22382      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22383  esac
22384done
22385echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22386$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22387	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22388	 X"$_am_arg" : 'X\(//\)$' \| \
22389	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22390$as_echo X"$_am_arg" |
22391    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22392	    s//\1/
22393	    q
22394	  }
22395	  /^X\(\/\/\)[^/].*/{
22396	    s//\1/
22397	    q
22398	  }
22399	  /^X\(\/\/\)$/{
22400	    s//\1/
22401	    q
22402	  }
22403	  /^X\(\/\).*/{
22404	    s//\1/
22405	    q
22406	  }
22407	  s/.*/./; q'`/stamp-h$_am_stamp_count
22408 ;;
22409
22410  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22411$as_echo "$as_me: executing $ac_file commands" >&6;}
22412 ;;
22413  esac
22414
22415
22416  case $ac_file$ac_mode in
22417    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22418  # Older Autoconf quotes --file arguments for eval, but not when files
22419  # are listed without --file.  Let's play safe and only enable the eval
22420  # if we detect the quoting.
22421  case $CONFIG_FILES in
22422  *\'*) eval set x "$CONFIG_FILES" ;;
22423  *)   set x $CONFIG_FILES ;;
22424  esac
22425  shift
22426  for mf
22427  do
22428    # Strip MF so we end up with the name of the file.
22429    mf=`echo "$mf" | sed -e 's/:.*$//'`
22430    # Check whether this is an Automake generated Makefile or not.
22431    # We used to match only the files named 'Makefile.in', but
22432    # some people rename them; so instead we look at the file content.
22433    # Grep'ing the first line is not enough: some people post-process
22434    # each Makefile.in and add a new line on top of each file to say so.
22435    # Grep'ing the whole file is not good either: AIX grep has a line
22436    # limit of 2048, but all sed's we know have understand at least 4000.
22437    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22438      dirpart=`$as_dirname -- "$mf" ||
22439$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22440	 X"$mf" : 'X\(//\)[^/]' \| \
22441	 X"$mf" : 'X\(//\)$' \| \
22442	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22443$as_echo X"$mf" |
22444    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22445	    s//\1/
22446	    q
22447	  }
22448	  /^X\(\/\/\)[^/].*/{
22449	    s//\1/
22450	    q
22451	  }
22452	  /^X\(\/\/\)$/{
22453	    s//\1/
22454	    q
22455	  }
22456	  /^X\(\/\).*/{
22457	    s//\1/
22458	    q
22459	  }
22460	  s/.*/./; q'`
22461    else
22462      continue
22463    fi
22464    # Extract the definition of DEPDIR, am__include, and am__quote
22465    # from the Makefile without running 'make'.
22466    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22467    test -z "$DEPDIR" && continue
22468    am__include=`sed -n 's/^am__include = //p' < "$mf"`
22469    test -z "$am__include" && continue
22470    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22471    # Find all dependency output files, they are included files with
22472    # $(DEPDIR) in their names.  We invoke sed twice because it is the
22473    # simplest approach to changing $(DEPDIR) to its actual value in the
22474    # expansion.
22475    for file in `sed -n "
22476      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22477	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22478      # Make sure the directory exists.
22479      test -f "$dirpart/$file" && continue
22480      fdir=`$as_dirname -- "$file" ||
22481$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22482	 X"$file" : 'X\(//\)[^/]' \| \
22483	 X"$file" : 'X\(//\)$' \| \
22484	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22485$as_echo X"$file" |
22486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22487	    s//\1/
22488	    q
22489	  }
22490	  /^X\(\/\/\)[^/].*/{
22491	    s//\1/
22492	    q
22493	  }
22494	  /^X\(\/\/\)$/{
22495	    s//\1/
22496	    q
22497	  }
22498	  /^X\(\/\).*/{
22499	    s//\1/
22500	    q
22501	  }
22502	  s/.*/./; q'`
22503      as_dir=$dirpart/$fdir; as_fn_mkdir_p
22504      # echo "creating $dirpart/$file"
22505      echo '# dummy' > "$dirpart/$file"
22506    done
22507  done
22508}
22509 ;;
22510    "libtool":C)
22511
22512    # See if we are running on zsh, and set the options which allow our
22513    # commands through without removal of \ escapes.
22514    if test -n "${ZSH_VERSION+set}" ; then
22515      setopt NO_GLOB_SUBST
22516    fi
22517
22518    cfgfile="${ofile}T"
22519    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22520    $RM "$cfgfile"
22521
22522    cat <<_LT_EOF >> "$cfgfile"
22523#! $SHELL
22524
22525# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22526# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22528# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22529#
22530#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22531#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
22532#                 Inc.
22533#   Written by Gordon Matzigkeit, 1996
22534#
22535#   This file is part of GNU Libtool.
22536#
22537# GNU Libtool is free software; you can redistribute it and/or
22538# modify it under the terms of the GNU General Public License as
22539# published by the Free Software Foundation; either version 2 of
22540# the License, or (at your option) any later version.
22541#
22542# As a special exception to the GNU General Public License,
22543# if you distribute this file as part of a program or library that
22544# is built using GNU Libtool, you may include this file under the
22545# same distribution terms that you use for the rest of that program.
22546#
22547# GNU Libtool is distributed in the hope that it will be useful,
22548# but WITHOUT ANY WARRANTY; without even the implied warranty of
22549# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22550# GNU General Public License for more details.
22551#
22552# You should have received a copy of the GNU General Public License
22553# along with GNU Libtool; see the file COPYING.  If not, a copy
22554# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22555# obtained by writing to the Free Software Foundation, Inc.,
22556# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22557
22558
22559# The names of the tagged configurations supported by this script.
22560available_tags=""
22561
22562# ### BEGIN LIBTOOL CONFIG
22563
22564# Whether or not to build static libraries.
22565build_old_libs=$enable_static
22566
22567# Which release of libtool.m4 was used?
22568macro_version=$macro_version
22569macro_revision=$macro_revision
22570
22571# Whether or not to build shared libraries.
22572build_libtool_libs=$enable_shared
22573
22574# What type of objects to build.
22575pic_mode=$pic_mode
22576
22577# Whether or not to optimize for fast installation.
22578fast_install=$enable_fast_install
22579
22580# Shell to use when invoking shell scripts.
22581SHELL=$lt_SHELL
22582
22583# An echo program that protects backslashes.
22584ECHO=$lt_ECHO
22585
22586# The host system.
22587host_alias=$host_alias
22588host=$host
22589host_os=$host_os
22590
22591# The build system.
22592build_alias=$build_alias
22593build=$build
22594build_os=$build_os
22595
22596# A sed program that does not truncate output.
22597SED=$lt_SED
22598
22599# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22600Xsed="\$SED -e 1s/^X//"
22601
22602# A grep program that handles long lines.
22603GREP=$lt_GREP
22604
22605# An ERE matcher.
22606EGREP=$lt_EGREP
22607
22608# A literal string matcher.
22609FGREP=$lt_FGREP
22610
22611# A BSD- or MS-compatible name lister.
22612NM=$lt_NM
22613
22614# Whether we need soft or hard links.
22615LN_S=$lt_LN_S
22616
22617# What is the maximum length of a command?
22618max_cmd_len=$max_cmd_len
22619
22620# Object file suffix (normally "o").
22621objext=$ac_objext
22622
22623# Executable file suffix (normally "").
22624exeext=$exeext
22625
22626# whether the shell understands "unset".
22627lt_unset=$lt_unset
22628
22629# turn spaces into newlines.
22630SP2NL=$lt_lt_SP2NL
22631
22632# turn newlines into spaces.
22633NL2SP=$lt_lt_NL2SP
22634
22635# convert \$build file names to \$host format.
22636to_host_file_cmd=$lt_cv_to_host_file_cmd
22637
22638# convert \$build files to toolchain format.
22639to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22640
22641# An object symbol dumper.
22642OBJDUMP=$lt_OBJDUMP
22643
22644# Method to check whether dependent libraries are shared objects.
22645deplibs_check_method=$lt_deplibs_check_method
22646
22647# Command to use when deplibs_check_method = "file_magic".
22648file_magic_cmd=$lt_file_magic_cmd
22649
22650# How to find potential files when deplibs_check_method = "file_magic".
22651file_magic_glob=$lt_file_magic_glob
22652
22653# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22654want_nocaseglob=$lt_want_nocaseglob
22655
22656# DLL creation program.
22657DLLTOOL=$lt_DLLTOOL
22658
22659# Command to associate shared and link libraries.
22660sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22661
22662# The archiver.
22663AR=$lt_AR
22664
22665# Flags to create an archive.
22666AR_FLAGS=$lt_AR_FLAGS
22667
22668# How to feed a file listing to the archiver.
22669archiver_list_spec=$lt_archiver_list_spec
22670
22671# A symbol stripping program.
22672STRIP=$lt_STRIP
22673
22674# Commands used to install an old-style archive.
22675RANLIB=$lt_RANLIB
22676old_postinstall_cmds=$lt_old_postinstall_cmds
22677old_postuninstall_cmds=$lt_old_postuninstall_cmds
22678
22679# Whether to use a lock for old archive extraction.
22680lock_old_archive_extraction=$lock_old_archive_extraction
22681
22682# A C compiler.
22683LTCC=$lt_CC
22684
22685# LTCC compiler flags.
22686LTCFLAGS=$lt_CFLAGS
22687
22688# Take the output of nm and produce a listing of raw symbols and C names.
22689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22690
22691# Transform the output of nm in a proper C declaration.
22692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22693
22694# Transform the output of nm in a C name address pair.
22695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22696
22697# Transform the output of nm in a C name address pair when lib prefix is needed.
22698global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22699
22700# Specify filename containing input files for \$NM.
22701nm_file_list_spec=$lt_nm_file_list_spec
22702
22703# The root where to search for dependent libraries,and in which our libraries should be installed.
22704lt_sysroot=$lt_sysroot
22705
22706# The name of the directory that contains temporary libtool files.
22707objdir=$objdir
22708
22709# Used to examine libraries when file_magic_cmd begins with "file".
22710MAGIC_CMD=$MAGIC_CMD
22711
22712# Must we lock files when doing compilation?
22713need_locks=$lt_need_locks
22714
22715# Manifest tool.
22716MANIFEST_TOOL=$lt_MANIFEST_TOOL
22717
22718# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22719DSYMUTIL=$lt_DSYMUTIL
22720
22721# Tool to change global to local symbols on Mac OS X.
22722NMEDIT=$lt_NMEDIT
22723
22724# Tool to manipulate fat objects and archives on Mac OS X.
22725LIPO=$lt_LIPO
22726
22727# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22728OTOOL=$lt_OTOOL
22729
22730# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22731OTOOL64=$lt_OTOOL64
22732
22733# Old archive suffix (normally "a").
22734libext=$libext
22735
22736# Shared library suffix (normally ".so").
22737shrext_cmds=$lt_shrext_cmds
22738
22739# The commands to extract the exported symbol list from a shared archive.
22740extract_expsyms_cmds=$lt_extract_expsyms_cmds
22741
22742# Variables whose values should be saved in libtool wrapper scripts and
22743# restored at link time.
22744variables_saved_for_relink=$lt_variables_saved_for_relink
22745
22746# Do we need the "lib" prefix for modules?
22747need_lib_prefix=$need_lib_prefix
22748
22749# Do we need a version for libraries?
22750need_version=$need_version
22751
22752# Library versioning type.
22753version_type=$version_type
22754
22755# Shared library runtime path variable.
22756runpath_var=$runpath_var
22757
22758# Shared library path variable.
22759shlibpath_var=$shlibpath_var
22760
22761# Is shlibpath searched before the hard-coded library search path?
22762shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22763
22764# Format of library name prefix.
22765libname_spec=$lt_libname_spec
22766
22767# List of archive names.  First name is the real one, the rest are links.
22768# The last name is the one that the linker finds with -lNAME
22769library_names_spec=$lt_library_names_spec
22770
22771# The coded name of the library, if different from the real name.
22772soname_spec=$lt_soname_spec
22773
22774# Permission mode override for installation of shared libraries.
22775install_override_mode=$lt_install_override_mode
22776
22777# Command to use after installation of a shared archive.
22778postinstall_cmds=$lt_postinstall_cmds
22779
22780# Command to use after uninstallation of a shared archive.
22781postuninstall_cmds=$lt_postuninstall_cmds
22782
22783# Commands used to finish a libtool library installation in a directory.
22784finish_cmds=$lt_finish_cmds
22785
22786# As "finish_cmds", except a single script fragment to be evaled but
22787# not shown.
22788finish_eval=$lt_finish_eval
22789
22790# Whether we should hardcode library paths into libraries.
22791hardcode_into_libs=$hardcode_into_libs
22792
22793# Compile-time system search path for libraries.
22794sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22795
22796# Run-time system search path for libraries.
22797sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22798
22799# Whether dlopen is supported.
22800dlopen_support=$enable_dlopen
22801
22802# Whether dlopen of programs is supported.
22803dlopen_self=$enable_dlopen_self
22804
22805# Whether dlopen of statically linked programs is supported.
22806dlopen_self_static=$enable_dlopen_self_static
22807
22808# Commands to strip libraries.
22809old_striplib=$lt_old_striplib
22810striplib=$lt_striplib
22811
22812
22813# The linker used to build libraries.
22814LD=$lt_LD
22815
22816# How to create reloadable object files.
22817reload_flag=$lt_reload_flag
22818reload_cmds=$lt_reload_cmds
22819
22820# Commands used to build an old-style archive.
22821old_archive_cmds=$lt_old_archive_cmds
22822
22823# A language specific compiler.
22824CC=$lt_compiler
22825
22826# Is the compiler the GNU compiler?
22827with_gcc=$GCC
22828
22829# Compiler flag to turn off builtin functions.
22830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22831
22832# Additional compiler flags for building library objects.
22833pic_flag=$lt_lt_prog_compiler_pic
22834
22835# How to pass a linker flag through the compiler.
22836wl=$lt_lt_prog_compiler_wl
22837
22838# Compiler flag to prevent dynamic linking.
22839link_static_flag=$lt_lt_prog_compiler_static
22840
22841# Does compiler simultaneously support -c and -o options?
22842compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22843
22844# Whether or not to add -lc for building shared libraries.
22845build_libtool_need_lc=$archive_cmds_need_lc
22846
22847# Whether or not to disallow shared libs when runtime libs are static.
22848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22849
22850# Compiler flag to allow reflexive dlopens.
22851export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22852
22853# Compiler flag to generate shared objects directly from archives.
22854whole_archive_flag_spec=$lt_whole_archive_flag_spec
22855
22856# Whether the compiler copes with passing no objects directly.
22857compiler_needs_object=$lt_compiler_needs_object
22858
22859# Create an old-style archive from a shared archive.
22860old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22861
22862# Create a temporary old-style archive to link instead of a shared archive.
22863old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22864
22865# Commands used to build a shared archive.
22866archive_cmds=$lt_archive_cmds
22867archive_expsym_cmds=$lt_archive_expsym_cmds
22868
22869# Commands used to build a loadable module if different from building
22870# a shared archive.
22871module_cmds=$lt_module_cmds
22872module_expsym_cmds=$lt_module_expsym_cmds
22873
22874# Whether we are building with GNU ld or not.
22875with_gnu_ld=$lt_with_gnu_ld
22876
22877# Flag that allows shared libraries with undefined symbols to be built.
22878allow_undefined_flag=$lt_allow_undefined_flag
22879
22880# Flag that enforces no undefined symbols.
22881no_undefined_flag=$lt_no_undefined_flag
22882
22883# Flag to hardcode \$libdir into a binary during linking.
22884# This must work even if \$libdir does not exist
22885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22886
22887# If ld is used when linking, flag to hardcode \$libdir into a binary
22888# during linking.  This must work even if \$libdir does not exist.
22889hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22890
22891# Whether we need a single "-rpath" flag with a separated argument.
22892hardcode_libdir_separator=$lt_hardcode_libdir_separator
22893
22894# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22895# DIR into the resulting binary.
22896hardcode_direct=$hardcode_direct
22897
22898# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22899# DIR into the resulting binary and the resulting library dependency is
22900# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22901# library is relocated.
22902hardcode_direct_absolute=$hardcode_direct_absolute
22903
22904# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22905# into the resulting binary.
22906hardcode_minus_L=$hardcode_minus_L
22907
22908# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22909# into the resulting binary.
22910hardcode_shlibpath_var=$hardcode_shlibpath_var
22911
22912# Set to "yes" if building a shared library automatically hardcodes DIR
22913# into the library and all subsequent libraries and executables linked
22914# against it.
22915hardcode_automatic=$hardcode_automatic
22916
22917# Set to yes if linker adds runtime paths of dependent libraries
22918# to runtime path list.
22919inherit_rpath=$inherit_rpath
22920
22921# Whether libtool must link a program against all its dependency libraries.
22922link_all_deplibs=$link_all_deplibs
22923
22924# Set to "yes" if exported symbols are required.
22925always_export_symbols=$always_export_symbols
22926
22927# The commands to list exported symbols.
22928export_symbols_cmds=$lt_export_symbols_cmds
22929
22930# Symbols that should not be listed in the preloaded symbols.
22931exclude_expsyms=$lt_exclude_expsyms
22932
22933# Symbols that must always be exported.
22934include_expsyms=$lt_include_expsyms
22935
22936# Commands necessary for linking programs (against libraries) with templates.
22937prelink_cmds=$lt_prelink_cmds
22938
22939# Commands necessary for finishing linking programs.
22940postlink_cmds=$lt_postlink_cmds
22941
22942# Specify filename containing input files.
22943file_list_spec=$lt_file_list_spec
22944
22945# How to hardcode a shared library path into an executable.
22946hardcode_action=$hardcode_action
22947
22948# ### END LIBTOOL CONFIG
22949
22950_LT_EOF
22951
22952  case $host_os in
22953  aix3*)
22954    cat <<\_LT_EOF >> "$cfgfile"
22955# AIX sometimes has problems with the GCC collect2 program.  For some
22956# reason, if we set the COLLECT_NAMES environment variable, the problems
22957# vanish in a puff of smoke.
22958if test "X${COLLECT_NAMES+set}" != Xset; then
22959  COLLECT_NAMES=
22960  export COLLECT_NAMES
22961fi
22962_LT_EOF
22963    ;;
22964  esac
22965
22966
22967ltmain="$ac_aux_dir/ltmain.sh"
22968
22969
22970  # We use sed instead of cat because bash on DJGPP gets confused if
22971  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22972  # text mode, it properly converts lines to CR/LF.  This bash problem
22973  # is reportedly fixed, but why not run on old versions too?
22974  sed '$q' "$ltmain" >> "$cfgfile" \
22975     || (rm -f "$cfgfile"; exit 1)
22976
22977  if test x"$xsi_shell" = xyes; then
22978  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22979func_dirname ()\
22980{\
22981\    case ${1} in\
22982\      */*) func_dirname_result="${1%/*}${2}" ;;\
22983\      *  ) func_dirname_result="${3}" ;;\
22984\    esac\
22985} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22986  && mv -f "$cfgfile.tmp" "$cfgfile" \
22987    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22988test 0 -eq $? || _lt_function_replace_fail=:
22989
22990
22991  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22992func_basename ()\
22993{\
22994\    func_basename_result="${1##*/}"\
22995} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22996  && mv -f "$cfgfile.tmp" "$cfgfile" \
22997    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22998test 0 -eq $? || _lt_function_replace_fail=:
22999
23000
23001  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23002func_dirname_and_basename ()\
23003{\
23004\    case ${1} in\
23005\      */*) func_dirname_result="${1%/*}${2}" ;;\
23006\      *  ) func_dirname_result="${3}" ;;\
23007\    esac\
23008\    func_basename_result="${1##*/}"\
23009} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23010  && mv -f "$cfgfile.tmp" "$cfgfile" \
23011    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23012test 0 -eq $? || _lt_function_replace_fail=:
23013
23014
23015  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23016func_stripname ()\
23017{\
23018\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23019\    # positional parameters, so assign one to ordinary parameter first.\
23020\    func_stripname_result=${3}\
23021\    func_stripname_result=${func_stripname_result#"${1}"}\
23022\    func_stripname_result=${func_stripname_result%"${2}"}\
23023} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23024  && mv -f "$cfgfile.tmp" "$cfgfile" \
23025    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23026test 0 -eq $? || _lt_function_replace_fail=:
23027
23028
23029  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23030func_split_long_opt ()\
23031{\
23032\    func_split_long_opt_name=${1%%=*}\
23033\    func_split_long_opt_arg=${1#*=}\
23034} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23035  && mv -f "$cfgfile.tmp" "$cfgfile" \
23036    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23037test 0 -eq $? || _lt_function_replace_fail=:
23038
23039
23040  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23041func_split_short_opt ()\
23042{\
23043\    func_split_short_opt_arg=${1#??}\
23044\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23045} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23046  && mv -f "$cfgfile.tmp" "$cfgfile" \
23047    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23048test 0 -eq $? || _lt_function_replace_fail=:
23049
23050
23051  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23052func_lo2o ()\
23053{\
23054\    case ${1} in\
23055\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23056\      *)    func_lo2o_result=${1} ;;\
23057\    esac\
23058} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23059  && mv -f "$cfgfile.tmp" "$cfgfile" \
23060    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23061test 0 -eq $? || _lt_function_replace_fail=:
23062
23063
23064  sed -e '/^func_xform ()$/,/^} # func_xform /c\
23065func_xform ()\
23066{\
23067    func_xform_result=${1%.*}.lo\
23068} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23069  && mv -f "$cfgfile.tmp" "$cfgfile" \
23070    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23071test 0 -eq $? || _lt_function_replace_fail=:
23072
23073
23074  sed -e '/^func_arith ()$/,/^} # func_arith /c\
23075func_arith ()\
23076{\
23077    func_arith_result=$(( $* ))\
23078} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
23079  && mv -f "$cfgfile.tmp" "$cfgfile" \
23080    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23081test 0 -eq $? || _lt_function_replace_fail=:
23082
23083
23084  sed -e '/^func_len ()$/,/^} # func_len /c\
23085func_len ()\
23086{\
23087    func_len_result=${#1}\
23088} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
23089  && mv -f "$cfgfile.tmp" "$cfgfile" \
23090    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23091test 0 -eq $? || _lt_function_replace_fail=:
23092
23093fi
23094
23095if test x"$lt_shell_append" = xyes; then
23096  sed -e '/^func_append ()$/,/^} # func_append /c\
23097func_append ()\
23098{\
23099    eval "${1}+=\\${2}"\
23100} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
23101  && mv -f "$cfgfile.tmp" "$cfgfile" \
23102    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23103test 0 -eq $? || _lt_function_replace_fail=:
23104
23105
23106  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
23107func_append_quoted ()\
23108{\
23109\    func_quote_for_eval "${2}"\
23110\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
23111} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
23112  && mv -f "$cfgfile.tmp" "$cfgfile" \
23113    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23114test 0 -eq $? || _lt_function_replace_fail=:
23115
23116
23117  # Save a `func_append' function call where possible by direct use of '+='
23118  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
23119    && mv -f "$cfgfile.tmp" "$cfgfile" \
23120      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23121  test 0 -eq $? || _lt_function_replace_fail=:
23122else
23123  # Save a `func_append' function call even when '+=' is not available
23124  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
23125    && mv -f "$cfgfile.tmp" "$cfgfile" \
23126      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23127  test 0 -eq $? || _lt_function_replace_fail=:
23128fi
23129
23130if test x"$_lt_function_replace_fail" = x":"; then
23131  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
23132$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
23133fi
23134
23135
23136   mv -f "$cfgfile" "$ofile" ||
23137    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23138  chmod +x "$ofile"
23139
23140 ;;
23141
23142  esac
23143done # for ac_tag
23144
23145
23146as_fn_exit 0
23147_ACEOF
23148ac_clean_files=$ac_clean_files_save
23149
23150test $ac_write_fail = 0 ||
23151  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23152
23153
23154# configure is writing to config.log, and then calls config.status.
23155# config.status does its own redirection, appending to config.log.
23156# Unfortunately, on DOS this fails, as config.log is still kept open
23157# by configure, so config.status won't be able to write to it; its
23158# output is simply discarded.  So we exec the FD to /dev/null,
23159# effectively closing config.log, so it can be properly (re)opened and
23160# appended to by config.status.  When coming back to configure, we
23161# need to make the FD available again.
23162if test "$no_create" != yes; then
23163  ac_cs_success=:
23164  ac_config_status_args=
23165  test "$silent" = yes &&
23166    ac_config_status_args="$ac_config_status_args --quiet"
23167  exec 5>/dev/null
23168  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23169  exec 5>>config.log
23170  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23171  # would make configure fail if this is the last instruction.
23172  $ac_cs_success || as_fn_exit 1
23173fi
23174if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23175  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23176$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23177fi
23178
23179
23180accel_msg=""
23181if test "x$SNA" != "xno"; then
23182	if test "$accel" = "sna"; then
23183		accel_msg="$accel_msg *sna"
23184	else
23185		accel_msg="$accel_msg sna"
23186	fi
23187fi
23188if test "x$UXA" != "xno"; then
23189	if test "$accel" = "uxa"; then
23190		accel_msg="$accel_msg *uxa"
23191	else
23192		accel_msg="$accel_msg uxa"
23193	fi
23194fi
23195if test "x$GLAMOR" != "xno"; then
23196	if test "$accel" = "glamor"; then
23197		accel_msg="$accel_msg *glamor"
23198	else
23199		accel_msg="$accel_msg glamor"
23200	fi
23201fi
23202
23203if test "x$dri_msg" = x; then
23204	dri_msg=" none"
23205fi
23206
23207echo ""
23208echo "xf86-video-intel 2.21.15 will be compiled with:"
23209echo "  Acceleration backends:$accel_msg"
23210echo "  Additional debugging support?$debug_msg"
23211echo "  Support for Direct Rendering Infrastructure:$dri_msg"
23212echo "  Support for Xv motion compensation (XvMC and libXvMC):$xvmc_msg"
23213if test -n "$xp_msg"; then
23214echo "  Experimental support:$xp_msg"
23215fi
23216echo ""
23217