configure revision 3ed65abb
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-ati 7.9.0.
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-ati'
593PACKAGE_TARNAME='xf86-video-ati'
594PACKAGE_VERSION='7.9.0'
595PACKAGE_STRING='xf86-video-ati 7.9.0'
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
640DRIVER_NAME
641moduledir
642PCIACCESS_LIBS
643PCIACCESS_CFLAGS
644GLAMOR_FALSE
645GLAMOR_TRUE
646LIBGLAMOR_EGL_LIBS
647LIBGLAMOR_EGL_CFLAGS
648LIBGLAMOR_LIBS
649LIBGLAMOR_CFLAGS
650LIBUDEV_FALSE
651LIBUDEV_TRUE
652LIBUDEV_LIBS
653LIBUDEV_CFLAGS
654configdir
655HAS_XORG_CONF_DIR_FALSE
656HAS_XORG_CONF_DIR_TRUE
657HAVE_XEXTPROTO_71_FALSE
658HAVE_XEXTPROTO_71_TRUE
659XEXT_LIBS
660XEXT_CFLAGS
661XORG_LIBS
662XORG_CFLAGS
663LIBDRM_RADEON_LIBS
664LIBDRM_RADEON_CFLAGS
665LIBDRM_LIBS
666LIBDRM_CFLAGS
667LT_SYS_LIBRARY_PATH
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
673MANIFEST_TOOL
674RANLIB
675ac_ct_AR
676AR
677DLLTOOL
678OBJDUMP
679LN_S
680NM
681ac_ct_DUMPBIN
682DUMPBIN
683LD
684FGREP
685LIBTOOL
686MAN_SUBSTS
687XORG_MAN_PAGE
688ADMIN_MAN_DIR
689DRIVER_MAN_DIR
690MISC_MAN_DIR
691FILE_MAN_DIR
692LIB_MAN_DIR
693APP_MAN_DIR
694ADMIN_MAN_SUFFIX
695DRIVER_MAN_SUFFIX
696MISC_MAN_SUFFIX
697FILE_MAN_SUFFIX
698LIB_MAN_SUFFIX
699APP_MAN_SUFFIX
700SED
701host_os
702host_vendor
703host_cpu
704host
705build_os
706build_vendor
707build_cpu
708build
709INSTALL_CMD
710PKG_CONFIG_LIBDIR
711PKG_CONFIG_PATH
712PKG_CONFIG
713CHANGELOG_CMD
714STRICT_CFLAGS
715CWARNFLAGS
716BASE_CFLAGS
717EGREP
718GREP
719CPP
720am__fastdepCC_FALSE
721am__fastdepCC_TRUE
722CCDEPMODE
723am__nodep
724AMDEPBACKSLASH
725AMDEP_FALSE
726AMDEP_TRUE
727am__quote
728am__include
729DEPDIR
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737AM_BACKSLASH
738AM_DEFAULT_VERBOSITY
739AM_DEFAULT_V
740AM_V
741am__untar
742am__tar
743AMTAR
744am__leading_dot
745SET_MAKE
746AWK
747mkdir_p
748MKDIR_P
749INSTALL_STRIP_PROGRAM
750STRIP
751install_sh
752MAKEINFO
753AUTOHEADER
754AUTOMAKE
755AUTOCONF
756ACLOCAL
757VERSION
758PACKAGE
759CYGPATH_W
760am__isrc
761INSTALL_DATA
762INSTALL_SCRIPT
763INSTALL_PROGRAM
764target_alias
765host_alias
766build_alias
767LIBS
768ECHO_T
769ECHO_N
770ECHO_C
771DEFS
772mandir
773localedir
774libdir
775psdir
776pdfdir
777dvidir
778htmldir
779infodir
780docdir
781oldincludedir
782includedir
783runstatedir
784localstatedir
785sharedstatedir
786sysconfdir
787datadir
788datarootdir
789libexecdir
790sbindir
791bindir
792program_transform_name
793prefix
794exec_prefix
795PACKAGE_URL
796PACKAGE_BUGREPORT
797PACKAGE_STRING
798PACKAGE_VERSION
799PACKAGE_TARNAME
800PACKAGE_NAME
801PATH_SEPARATOR
802SHELL'
803ac_subst_files=''
804ac_user_opts='
805enable_option_checking
806enable_silent_rules
807enable_largefile
808enable_dependency_tracking
809enable_selective_werror
810enable_strict_compilation
811enable_static
812enable_shared
813with_pic
814enable_fast_install
815with_aix_soname
816with_gnu_ld
817with_sysroot
818enable_libtool_lock
819with_xorg_module_dir
820with_xorg_conf_dir
821enable_udev
822enable_glamor
823'
824      ac_precious_vars='build_alias
825host_alias
826target_alias
827CC
828CFLAGS
829LDFLAGS
830LIBS
831CPPFLAGS
832CPP
833PKG_CONFIG
834PKG_CONFIG_PATH
835PKG_CONFIG_LIBDIR
836LT_SYS_LIBRARY_PATH
837LIBDRM_CFLAGS
838LIBDRM_LIBS
839LIBDRM_RADEON_CFLAGS
840LIBDRM_RADEON_LIBS
841XORG_CFLAGS
842XORG_LIBS
843XEXT_CFLAGS
844XEXT_LIBS
845LIBUDEV_CFLAGS
846LIBUDEV_LIBS
847LIBGLAMOR_CFLAGS
848LIBGLAMOR_LIBS
849LIBGLAMOR_EGL_CFLAGS
850LIBGLAMOR_EGL_LIBS
851PCIACCESS_CFLAGS
852PCIACCESS_LIBS'
853
854
855# Initialize some variables set by options.
856ac_init_help=
857ac_init_version=false
858ac_unrecognized_opts=
859ac_unrecognized_sep=
860# The variables have the same names as the options, with
861# dashes changed to underlines.
862cache_file=/dev/null
863exec_prefix=NONE
864no_create=
865no_recursion=
866prefix=NONE
867program_prefix=NONE
868program_suffix=NONE
869program_transform_name=s,x,x,
870silent=
871site=
872srcdir=
873verbose=
874x_includes=NONE
875x_libraries=NONE
876
877# Installation directory options.
878# These are left unexpanded so users can "make install exec_prefix=/foo"
879# and all the variables that are supposed to be based on exec_prefix
880# by default will actually change.
881# Use braces instead of parens because sh, perl, etc. also accept them.
882# (The list follows the same order as the GNU Coding Standards.)
883bindir='${exec_prefix}/bin'
884sbindir='${exec_prefix}/sbin'
885libexecdir='${exec_prefix}/libexec'
886datarootdir='${prefix}/share'
887datadir='${datarootdir}'
888sysconfdir='${prefix}/etc'
889sharedstatedir='${prefix}/com'
890localstatedir='${prefix}/var'
891runstatedir='${localstatedir}/run'
892includedir='${prefix}/include'
893oldincludedir='/usr/include'
894docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
895infodir='${datarootdir}/info'
896htmldir='${docdir}'
897dvidir='${docdir}'
898pdfdir='${docdir}'
899psdir='${docdir}'
900libdir='${exec_prefix}/lib'
901localedir='${datarootdir}/locale'
902mandir='${datarootdir}/man'
903
904ac_prev=
905ac_dashdash=
906for ac_option
907do
908  # If the previous option needs an argument, assign it.
909  if test -n "$ac_prev"; then
910    eval $ac_prev=\$ac_option
911    ac_prev=
912    continue
913  fi
914
915  case $ac_option in
916  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917  *=)   ac_optarg= ;;
918  *)    ac_optarg=yes ;;
919  esac
920
921  # Accept the important Cygnus configure options, so we can diagnose typos.
922
923  case $ac_dashdash$ac_option in
924  --)
925    ac_dashdash=yes ;;
926
927  -bindir | --bindir | --bindi | --bind | --bin | --bi)
928    ac_prev=bindir ;;
929  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930    bindir=$ac_optarg ;;
931
932  -build | --build | --buil | --bui | --bu)
933    ac_prev=build_alias ;;
934  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935    build_alias=$ac_optarg ;;
936
937  -cache-file | --cache-file | --cache-fil | --cache-fi \
938  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939    ac_prev=cache_file ;;
940  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942    cache_file=$ac_optarg ;;
943
944  --config-cache | -C)
945    cache_file=config.cache ;;
946
947  -datadir | --datadir | --datadi | --datad)
948    ac_prev=datadir ;;
949  -datadir=* | --datadir=* | --datadi=* | --datad=*)
950    datadir=$ac_optarg ;;
951
952  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953  | --dataroo | --dataro | --datar)
954    ac_prev=datarootdir ;;
955  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957    datarootdir=$ac_optarg ;;
958
959  -disable-* | --disable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=no ;;
974
975  -docdir | --docdir | --docdi | --doc | --do)
976    ac_prev=docdir ;;
977  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
978    docdir=$ac_optarg ;;
979
980  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
981    ac_prev=dvidir ;;
982  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
983    dvidir=$ac_optarg ;;
984
985  -enable-* | --enable-*)
986    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987    # Reject names that are not valid shell variable names.
988    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989      as_fn_error $? "invalid feature name: $ac_useropt"
990    ac_useropt_orig=$ac_useropt
991    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992    case $ac_user_opts in
993      *"
994"enable_$ac_useropt"
995"*) ;;
996      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997	 ac_unrecognized_sep=', ';;
998    esac
999    eval enable_$ac_useropt=\$ac_optarg ;;
1000
1001  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003  | --exec | --exe | --ex)
1004    ac_prev=exec_prefix ;;
1005  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007  | --exec=* | --exe=* | --ex=*)
1008    exec_prefix=$ac_optarg ;;
1009
1010  -gas | --gas | --ga | --g)
1011    # Obsolete; use --with-gas.
1012    with_gas=yes ;;
1013
1014  -help | --help | --hel | --he | -h)
1015    ac_init_help=long ;;
1016  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017    ac_init_help=recursive ;;
1018  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019    ac_init_help=short ;;
1020
1021  -host | --host | --hos | --ho)
1022    ac_prev=host_alias ;;
1023  -host=* | --host=* | --hos=* | --ho=*)
1024    host_alias=$ac_optarg ;;
1025
1026  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1027    ac_prev=htmldir ;;
1028  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1029  | --ht=*)
1030    htmldir=$ac_optarg ;;
1031
1032  -includedir | --includedir | --includedi | --included | --include \
1033  | --includ | --inclu | --incl | --inc)
1034    ac_prev=includedir ;;
1035  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036  | --includ=* | --inclu=* | --incl=* | --inc=*)
1037    includedir=$ac_optarg ;;
1038
1039  -infodir | --infodir | --infodi | --infod | --info | --inf)
1040    ac_prev=infodir ;;
1041  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042    infodir=$ac_optarg ;;
1043
1044  -libdir | --libdir | --libdi | --libd)
1045    ac_prev=libdir ;;
1046  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047    libdir=$ac_optarg ;;
1048
1049  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050  | --libexe | --libex | --libe)
1051    ac_prev=libexecdir ;;
1052  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053  | --libexe=* | --libex=* | --libe=*)
1054    libexecdir=$ac_optarg ;;
1055
1056  -localedir | --localedir | --localedi | --localed | --locale)
1057    ac_prev=localedir ;;
1058  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059    localedir=$ac_optarg ;;
1060
1061  -localstatedir | --localstatedir | --localstatedi | --localstated \
1062  | --localstate | --localstat | --localsta | --localst | --locals)
1063    ac_prev=localstatedir ;;
1064  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066    localstatedir=$ac_optarg ;;
1067
1068  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1069    ac_prev=mandir ;;
1070  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071    mandir=$ac_optarg ;;
1072
1073  -nfp | --nfp | --nf)
1074    # Obsolete; use --without-fp.
1075    with_fp=no ;;
1076
1077  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078  | --no-cr | --no-c | -n)
1079    no_create=yes ;;
1080
1081  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1083    no_recursion=yes ;;
1084
1085  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087  | --oldin | --oldi | --old | --ol | --o)
1088    ac_prev=oldincludedir ;;
1089  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092    oldincludedir=$ac_optarg ;;
1093
1094  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1095    ac_prev=prefix ;;
1096  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097    prefix=$ac_optarg ;;
1098
1099  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100  | --program-pre | --program-pr | --program-p)
1101    ac_prev=program_prefix ;;
1102  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104    program_prefix=$ac_optarg ;;
1105
1106  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107  | --program-suf | --program-su | --program-s)
1108    ac_prev=program_suffix ;;
1109  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111    program_suffix=$ac_optarg ;;
1112
1113  -program-transform-name | --program-transform-name \
1114  | --program-transform-nam | --program-transform-na \
1115  | --program-transform-n | --program-transform- \
1116  | --program-transform | --program-transfor \
1117  | --program-transfo | --program-transf \
1118  | --program-trans | --program-tran \
1119  | --progr-tra | --program-tr | --program-t)
1120    ac_prev=program_transform_name ;;
1121  -program-transform-name=* | --program-transform-name=* \
1122  | --program-transform-nam=* | --program-transform-na=* \
1123  | --program-transform-n=* | --program-transform-=* \
1124  | --program-transform=* | --program-transfor=* \
1125  | --program-transfo=* | --program-transf=* \
1126  | --program-trans=* | --program-tran=* \
1127  | --progr-tra=* | --program-tr=* | --program-t=*)
1128    program_transform_name=$ac_optarg ;;
1129
1130  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1131    ac_prev=pdfdir ;;
1132  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133    pdfdir=$ac_optarg ;;
1134
1135  -psdir | --psdir | --psdi | --psd | --ps)
1136    ac_prev=psdir ;;
1137  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1138    psdir=$ac_optarg ;;
1139
1140  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141  | -silent | --silent | --silen | --sile | --sil)
1142    silent=yes ;;
1143
1144  -runstatedir | --runstatedir | --runstatedi | --runstated \
1145  | --runstate | --runstat | --runsta | --runst | --runs \
1146  | --run | --ru | --r)
1147    ac_prev=runstatedir ;;
1148  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150  | --run=* | --ru=* | --r=*)
1151    runstatedir=$ac_optarg ;;
1152
1153  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154    ac_prev=sbindir ;;
1155  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156  | --sbi=* | --sb=*)
1157    sbindir=$ac_optarg ;;
1158
1159  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161  | --sharedst | --shareds | --shared | --share | --shar \
1162  | --sha | --sh)
1163    ac_prev=sharedstatedir ;;
1164  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167  | --sha=* | --sh=*)
1168    sharedstatedir=$ac_optarg ;;
1169
1170  -site | --site | --sit)
1171    ac_prev=site ;;
1172  -site=* | --site=* | --sit=*)
1173    site=$ac_optarg ;;
1174
1175  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176    ac_prev=srcdir ;;
1177  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178    srcdir=$ac_optarg ;;
1179
1180  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181  | --syscon | --sysco | --sysc | --sys | --sy)
1182    ac_prev=sysconfdir ;;
1183  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185    sysconfdir=$ac_optarg ;;
1186
1187  -target | --target | --targe | --targ | --tar | --ta | --t)
1188    ac_prev=target_alias ;;
1189  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190    target_alias=$ac_optarg ;;
1191
1192  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193    verbose=yes ;;
1194
1195  -version | --version | --versio | --versi | --vers | -V)
1196    ac_init_version=: ;;
1197
1198  -with-* | --with-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: $ac_useropt"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=\$ac_optarg ;;
1213
1214  -without-* | --without-*)
1215    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216    # Reject names that are not valid shell variable names.
1217    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218      as_fn_error $? "invalid package name: $ac_useropt"
1219    ac_useropt_orig=$ac_useropt
1220    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221    case $ac_user_opts in
1222      *"
1223"with_$ac_useropt"
1224"*) ;;
1225      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226	 ac_unrecognized_sep=', ';;
1227    esac
1228    eval with_$ac_useropt=no ;;
1229
1230  --x)
1231    # Obsolete; use --with-x.
1232    with_x=yes ;;
1233
1234  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235  | --x-incl | --x-inc | --x-in | --x-i)
1236    ac_prev=x_includes ;;
1237  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239    x_includes=$ac_optarg ;;
1240
1241  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243    ac_prev=x_libraries ;;
1244  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246    x_libraries=$ac_optarg ;;
1247
1248  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249Try \`$0 --help' for more information"
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    case $ac_envvar in #(
1256      '' | [0-9]* | *[!_$as_cr_alnum]* )
1257      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1258    esac
1259    eval $ac_envvar=\$ac_optarg
1260    export $ac_envvar ;;
1261
1262  *)
1263    # FIXME: should be removed in autoconf 3.0.
1264    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1265    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1267    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1268    ;;
1269
1270  esac
1271done
1272
1273if test -n "$ac_prev"; then
1274  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275  as_fn_error $? "missing argument to $ac_option"
1276fi
1277
1278if test -n "$ac_unrecognized_opts"; then
1279  case $enable_option_checking in
1280    no) ;;
1281    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283  esac
1284fi
1285
1286# Check all directory arguments for consistency.
1287for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288		datadir sysconfdir sharedstatedir localstatedir includedir \
1289		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290		libdir localedir mandir runstatedir
1291do
1292  eval ac_val=\$$ac_var
1293  # Remove trailing slashes.
1294  case $ac_val in
1295    */ )
1296      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297      eval $ac_var=\$ac_val;;
1298  esac
1299  # Be sure to have absolute directory names.
1300  case $ac_val in
1301    [\\/$]* | ?:[\\/]* )  continue;;
1302    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303  esac
1304  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1305done
1306
1307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
1313
1314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316  if test "x$build_alias" = x; then
1317    cross_compiling=maybe
1318  elif test "x$build_alias" != "x$host_alias"; then
1319    cross_compiling=yes
1320  fi
1321fi
1322
1323ac_tool_prefix=
1324test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326test "$silent" = yes && exec 6>/dev/null
1327
1328
1329ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330ac_ls_di=`ls -di .` &&
1331ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332  as_fn_error $? "working directory cannot be determined"
1333test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334  as_fn_error $? "pwd does not report name of working directory"
1335
1336
1337# Find the source files, if location was not specified.
1338if test -z "$srcdir"; then
1339  ac_srcdir_defaulted=yes
1340  # Try the directory containing this script, then the parent directory.
1341  ac_confdir=`$as_dirname -- "$as_myself" ||
1342$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343	 X"$as_myself" : 'X\(//\)[^/]' \| \
1344	 X"$as_myself" : 'X\(//\)$' \| \
1345	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346$as_echo X"$as_myself" |
1347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\/\)[^/].*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  /^X\(\/\/\)$/{
1356	    s//\1/
1357	    q
1358	  }
1359	  /^X\(\/\).*/{
1360	    s//\1/
1361	    q
1362	  }
1363	  s/.*/./; q'`
1364  srcdir=$ac_confdir
1365  if test ! -r "$srcdir/$ac_unique_file"; then
1366    srcdir=..
1367  fi
1368else
1369  ac_srcdir_defaulted=no
1370fi
1371if test ! -r "$srcdir/$ac_unique_file"; then
1372  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1374fi
1375ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376ac_abs_confdir=`(
1377	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1378	pwd)`
1379# When building in place, set srcdir=.
1380if test "$ac_abs_confdir" = "$ac_pwd"; then
1381  srcdir=.
1382fi
1383# Remove unnecessary trailing slashes from srcdir.
1384# Double slashes in file names in object file debugging info
1385# mess up M-x gdb in Emacs.
1386case $srcdir in
1387*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388esac
1389for ac_var in $ac_precious_vars; do
1390  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391  eval ac_env_${ac_var}_value=\$${ac_var}
1392  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1394done
1395
1396#
1397# Report the --help message.
1398#
1399if test "$ac_init_help" = "long"; then
1400  # Omit some internal or obsolete options to make the list less imposing.
1401  # This message is too long to be a string in the A/UX 3.1 sh.
1402  cat <<_ACEOF
1403\`configure' configures xf86-video-ati 7.9.0 to adapt to many kinds of systems.
1404
1405Usage: $0 [OPTION]... [VAR=VALUE]...
1406
1407To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408VAR=VALUE.  See below for descriptions of some of the useful variables.
1409
1410Defaults for the options are specified in brackets.
1411
1412Configuration:
1413  -h, --help              display this help and exit
1414      --help=short        display options specific to this package
1415      --help=recursive    display the short help of all the included packages
1416  -V, --version           display version information and exit
1417  -q, --quiet, --silent   do not print \`checking ...' messages
1418      --cache-file=FILE   cache test results in FILE [disabled]
1419  -C, --config-cache      alias for \`--cache-file=config.cache'
1420  -n, --no-create         do not create output files
1421      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1422
1423Installation directories:
1424  --prefix=PREFIX         install architecture-independent files in PREFIX
1425                          [$ac_default_prefix]
1426  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1427                          [PREFIX]
1428
1429By default, \`make install' will install all the files in
1430\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1431an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432for instance \`--prefix=\$HOME'.
1433
1434For better control, use the options below.
1435
1436Fine tuning of the installation directories:
1437  --bindir=DIR            user executables [EPREFIX/bin]
1438  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1439  --libexecdir=DIR        program executables [EPREFIX/libexec]
1440  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1441  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1442  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1443  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1444  --libdir=DIR            object code libraries [EPREFIX/lib]
1445  --includedir=DIR        C header files [PREFIX/include]
1446  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449  --infodir=DIR           info documentation [DATAROOTDIR/info]
1450  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451  --mandir=DIR            man documentation [DATAROOTDIR/man]
1452  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ati]
1453  --htmldir=DIR           html documentation [DOCDIR]
1454  --dvidir=DIR            dvi documentation [DOCDIR]
1455  --pdfdir=DIR            pdf documentation [DOCDIR]
1456  --psdir=DIR             ps documentation [DOCDIR]
1457_ACEOF
1458
1459  cat <<\_ACEOF
1460
1461Program names:
1462  --program-prefix=PREFIX            prepend PREFIX to installed program names
1463  --program-suffix=SUFFIX            append SUFFIX to installed program names
1464  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466System types:
1467  --build=BUILD     configure for building on BUILD [guessed]
1468  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473  case $ac_init_help in
1474     short | recursive ) echo "Configuration of xf86-video-ati 7.9.0:";;
1475   esac
1476  cat <<\_ACEOF
1477
1478Optional Features:
1479  --disable-option-checking  ignore unrecognized --enable/--with options
1480  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1481  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1482  --enable-silent-rules   less verbose build output (undo: "make V=1")
1483  --disable-silent-rules  verbose build output (undo: "make V=0")
1484  --disable-largefile     omit support for large files
1485  --enable-dependency-tracking
1486                          do not reject slow dependency extractors
1487  --disable-dependency-tracking
1488                          speeds up one-time build
1489  --disable-selective-werror
1490                          Turn off selective compiler errors. (default:
1491                          enabled)
1492  --enable-strict-compilation
1493                          Enable all warnings from compiler and make them
1494                          errors (default: disabled)
1495  --enable-static[=PKGS]  build static libraries [default=no]
1496  --enable-shared[=PKGS]  build shared libraries [default=yes]
1497  --enable-fast-install[=PKGS]
1498                          optimize for fast installation [default=yes]
1499  --disable-libtool-lock  avoid locking (might break parallel builds)
1500  --disable-udev          Disable libudev support [default=auto]
1501  --disable-glamor        Disable glamor, a new GL-based acceleration
1502                          [default=enabled]
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-aix-soname=aix|svr4|both
1510                          shared library versioning (aka "SONAME") variant to
1511                          provide on AIX, [default=aix].
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1514                          compiler's sysroot if not specified).
1515  --with-xorg-module-dir=DIR
1516                          Default xorg module directory
1517                          [[default=$libdir/xorg/modules]]
1518  --with-xorg-conf-dir=DIR
1519                          Default xorg.conf.d directory
1520                          [[default=${prefix}/share/X11/xorg.conf.d]]
1521
1522Some influential environment variables:
1523  CC          C compiler command
1524  CFLAGS      C compiler flags
1525  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1526              nonstandard directory <lib dir>
1527  LIBS        libraries to pass to the linker, e.g. -l<library>
1528  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1529              you have headers in a nonstandard directory <include dir>
1530  CPP         C preprocessor
1531  PKG_CONFIG  path to pkg-config utility
1532  PKG_CONFIG_PATH
1533              directories to add to pkg-config's search path
1534  PKG_CONFIG_LIBDIR
1535              path overriding pkg-config's built-in search path
1536  LT_SYS_LIBRARY_PATH
1537              User-defined run-time library search path.
1538  LIBDRM_CFLAGS
1539              C compiler flags for LIBDRM, overriding pkg-config
1540  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1541  LIBDRM_RADEON_CFLAGS
1542              C compiler flags for LIBDRM_RADEON, overriding pkg-config
1543  LIBDRM_RADEON_LIBS
1544              linker flags for LIBDRM_RADEON, overriding pkg-config
1545  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1546  XORG_LIBS   linker flags for XORG, overriding pkg-config
1547  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1548  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1549  LIBUDEV_CFLAGS
1550              C compiler flags for LIBUDEV, overriding pkg-config
1551  LIBUDEV_LIBS
1552              linker flags for LIBUDEV, overriding pkg-config
1553  LIBGLAMOR_CFLAGS
1554              C compiler flags for LIBGLAMOR, overriding pkg-config
1555  LIBGLAMOR_LIBS
1556              linker flags for LIBGLAMOR, overriding pkg-config
1557  LIBGLAMOR_EGL_CFLAGS
1558              C compiler flags for LIBGLAMOR_EGL, overriding pkg-config
1559  LIBGLAMOR_EGL_LIBS
1560              linker flags for LIBGLAMOR_EGL, overriding pkg-config
1561  PCIACCESS_CFLAGS
1562              C compiler flags for PCIACCESS, overriding pkg-config
1563  PCIACCESS_LIBS
1564              linker flags for PCIACCESS, overriding pkg-config
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
1569Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1570_ACEOF
1571ac_status=$?
1572fi
1573
1574if test "$ac_init_help" = "recursive"; then
1575  # If there are subdirs, report their specific --help.
1576  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577    test -d "$ac_dir" ||
1578      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1579      continue
1580    ac_builddir=.
1581
1582case "$ac_dir" in
1583.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584*)
1585  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1586  # A ".." for each directory in $ac_dir_suffix.
1587  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1588  case $ac_top_builddir_sub in
1589  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1590  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591  esac ;;
1592esac
1593ac_abs_top_builddir=$ac_pwd
1594ac_abs_builddir=$ac_pwd$ac_dir_suffix
1595# for backward compatibility:
1596ac_top_builddir=$ac_top_build_prefix
1597
1598case $srcdir in
1599  .)  # We are building in place.
1600    ac_srcdir=.
1601    ac_top_srcdir=$ac_top_builddir_sub
1602    ac_abs_top_srcdir=$ac_pwd ;;
1603  [\\/]* | ?:[\\/]* )  # Absolute name.
1604    ac_srcdir=$srcdir$ac_dir_suffix;
1605    ac_top_srcdir=$srcdir
1606    ac_abs_top_srcdir=$srcdir ;;
1607  *) # Relative name.
1608    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1609    ac_top_srcdir=$ac_top_build_prefix$srcdir
1610    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1611esac
1612ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1613
1614    cd "$ac_dir" || { ac_status=$?; continue; }
1615    # Check for guested configure.
1616    if test -f "$ac_srcdir/configure.gnu"; then
1617      echo &&
1618      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1619    elif test -f "$ac_srcdir/configure"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure" --help=recursive
1622    else
1623      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1624    fi || ac_status=$?
1625    cd "$ac_pwd" || { ac_status=$?; break; }
1626  done
1627fi
1628
1629test -n "$ac_init_help" && exit $ac_status
1630if $ac_init_version; then
1631  cat <<\_ACEOF
1632xf86-video-ati configure 7.9.0
1633generated by GNU Autoconf 2.69
1634
1635Copyright (C) 2012 Free Software Foundation, Inc.
1636This configure script is free software; the Free Software Foundation
1637gives unlimited permission to copy, distribute and modify it.
1638_ACEOF
1639  exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
1645
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
1649ac_fn_c_try_compile ()
1650{
1651  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652  rm -f conftest.$ac_objext
1653  if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_compile") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } && {
1669	 test -z "$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       } && test -s conftest.$ac_objext; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677	ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_compile
1683
1684# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1685# ---------------------------------------------
1686# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1687# accordingly.
1688ac_fn_c_check_decl ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  as_decl_name=`echo $2|sed 's/ *(.*//'`
1692  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1694$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1695if eval \${$3+:} false; then :
1696  $as_echo_n "(cached) " >&6
1697else
1698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699/* end confdefs.h.  */
1700$4
1701int
1702main ()
1703{
1704#ifndef $as_decl_name
1705#ifdef __cplusplus
1706  (void) $as_decl_use;
1707#else
1708  (void) $as_decl_name;
1709#endif
1710#endif
1711
1712  ;
1713  return 0;
1714}
1715_ACEOF
1716if ac_fn_c_try_compile "$LINENO"; then :
1717  eval "$3=yes"
1718else
1719  eval "$3=no"
1720fi
1721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722fi
1723eval ac_res=\$$3
1724	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725$as_echo "$ac_res" >&6; }
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728} # ac_fn_c_check_decl
1729
1730# ac_fn_c_try_cpp LINENO
1731# ----------------------
1732# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_cpp ()
1734{
1735  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736  if { { ac_try="$ac_cpp conftest.$ac_ext"
1737case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744  ac_status=$?
1745  if test -s conftest.err; then
1746    grep -v '^ *+' conftest.err >conftest.er1
1747    cat conftest.er1 >&5
1748    mv -f conftest.er1 conftest.err
1749  fi
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; } > conftest.i && {
1752	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753	 test ! -s conftest.err
1754       }; then :
1755  ac_retval=0
1756else
1757  $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760    ac_retval=1
1761fi
1762  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763  as_fn_set_status $ac_retval
1764
1765} # ac_fn_c_try_cpp
1766
1767# ac_fn_c_try_run LINENO
1768# ----------------------
1769# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770# that executables *can* be run.
1771ac_fn_c_try_run ()
1772{
1773  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774  if { { ac_try="$ac_link"
1775case "(($ac_try" in
1776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777  *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781  (eval "$ac_link") 2>&5
1782  ac_status=$?
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785  { { case "(($ac_try" in
1786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787  *) ac_try_echo=$ac_try;;
1788esac
1789eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790$as_echo "$ac_try_echo"; } >&5
1791  (eval "$ac_try") 2>&5
1792  ac_status=$?
1793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794  test $ac_status = 0; }; }; then :
1795  ac_retval=0
1796else
1797  $as_echo "$as_me: program exited with status $ac_status" >&5
1798       $as_echo "$as_me: failed program was:" >&5
1799sed 's/^/| /' conftest.$ac_ext >&5
1800
1801       ac_retval=$ac_status
1802fi
1803  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805  as_fn_set_status $ac_retval
1806
1807} # ac_fn_c_try_run
1808
1809# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810# -------------------------------------------------------
1811# Tests whether HEADER exists and can be compiled using the include files in
1812# INCLUDES, setting the cache variable VAR accordingly.
1813ac_fn_c_check_header_compile ()
1814{
1815  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817$as_echo_n "checking for $2... " >&6; }
1818if eval \${$3+:} false; then :
1819  $as_echo_n "(cached) " >&6
1820else
1821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h.  */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827  eval "$3=yes"
1828else
1829  eval "$3=no"
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832fi
1833eval ac_res=\$$3
1834	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835$as_echo "$ac_res" >&6; }
1836  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838} # ac_fn_c_check_header_compile
1839
1840# ac_fn_c_try_link LINENO
1841# -----------------------
1842# Try to link conftest.$ac_ext, and return whether this succeeded.
1843ac_fn_c_try_link ()
1844{
1845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846  rm -f conftest.$ac_objext conftest$ac_exeext
1847  if { { ac_try="$ac_link"
1848case "(($ac_try" in
1849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850  *) ac_try_echo=$ac_try;;
1851esac
1852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853$as_echo "$ac_try_echo"; } >&5
1854  (eval "$ac_link") 2>conftest.err
1855  ac_status=$?
1856  if test -s conftest.err; then
1857    grep -v '^ *+' conftest.err >conftest.er1
1858    cat conftest.er1 >&5
1859    mv -f conftest.er1 conftest.err
1860  fi
1861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862  test $ac_status = 0; } && {
1863	 test -z "$ac_c_werror_flag" ||
1864	 test ! -s conftest.err
1865       } && test -s conftest$ac_exeext && {
1866	 test "$cross_compiling" = yes ||
1867	 test -x conftest$ac_exeext
1868       }; then :
1869  ac_retval=0
1870else
1871  $as_echo "$as_me: failed program was:" >&5
1872sed 's/^/| /' conftest.$ac_ext >&5
1873
1874	ac_retval=1
1875fi
1876  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878  # interfere with the next link command; also delete a directory that is
1879  # left behind by Apple's compiler.  We do this before executing the actions.
1880  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882  as_fn_set_status $ac_retval
1883
1884} # ac_fn_c_try_link
1885
1886# ac_fn_c_check_func LINENO FUNC VAR
1887# ----------------------------------
1888# Tests whether FUNC exists, setting the cache variable VAR accordingly
1889ac_fn_c_check_func ()
1890{
1891  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
1894if eval \${$3+:} false; then :
1895  $as_echo_n "(cached) " >&6
1896else
1897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1901#define $2 innocuous_$2
1902
1903/* System header to define __stub macros and hopefully few prototypes,
1904    which can conflict with char $2 (); below.
1905    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906    <limits.h> exists even on freestanding compilers.  */
1907
1908#ifdef __STDC__
1909# include <limits.h>
1910#else
1911# include <assert.h>
1912#endif
1913
1914#undef $2
1915
1916/* Override any GCC internal prototype to avoid an error.
1917   Use char because int might match the return type of a GCC
1918   builtin and then its argument prototype would still apply.  */
1919#ifdef __cplusplus
1920extern "C"
1921#endif
1922char $2 ();
1923/* The GNU C library defines this for functions which it implements
1924    to always fail with ENOSYS.  Some functions are actually named
1925    something starting with __ and the normal name is an alias.  */
1926#if defined __stub_$2 || defined __stub___$2
1927choke me
1928#endif
1929
1930int
1931main ()
1932{
1933return $2 ();
1934  ;
1935  return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_link "$LINENO"; then :
1939  eval "$3=yes"
1940else
1941  eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext \
1944    conftest$ac_exeext conftest.$ac_ext
1945fi
1946eval ac_res=\$$3
1947	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950
1951} # ac_fn_c_check_func
1952
1953# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954# -------------------------------------------------------
1955# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956# the include files in INCLUDES and setting the cache variable VAR
1957# accordingly.
1958ac_fn_c_check_header_mongrel ()
1959{
1960  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961  if eval \${$3+:} false; then :
1962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
1964if eval \${$3+:} false; then :
1965  $as_echo_n "(cached) " >&6
1966fi
1967eval ac_res=\$$3
1968	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970else
1971  # Is the header compilable?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973$as_echo_n "checking $2 usability... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h.  */
1976$4
1977#include <$2>
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980  ac_header_compiler=yes
1981else
1982  ac_header_compiler=no
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986$as_echo "$ac_header_compiler" >&6; }
1987
1988# Is the header present?
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990$as_echo_n "checking $2 presence... " >&6; }
1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993#include <$2>
1994_ACEOF
1995if ac_fn_c_try_cpp "$LINENO"; then :
1996  ac_header_preproc=yes
1997else
1998  ac_header_preproc=no
1999fi
2000rm -f conftest.err conftest.i conftest.$ac_ext
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002$as_echo "$ac_header_preproc" >&6; }
2003
2004# So?  What about this header?
2005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006  yes:no: )
2007    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011    ;;
2012  no:yes:* )
2013    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2016$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2020$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2021    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023( $as_echo "## ---------------------------------------------------------------------- ##
2024## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
2025## ---------------------------------------------------------------------- ##"
2026     ) | sed "s/^/$as_me: WARNING:     /" >&2
2027    ;;
2028esac
2029  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if eval \${$3+:} false; then :
2032  $as_echo_n "(cached) " >&6
2033else
2034  eval "$3=\$ac_header_compiler"
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039fi
2040  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042} # ac_fn_c_check_header_mongrel
2043cat >config.log <<_ACEOF
2044This file contains any messages produced by compilers while
2045running configure, to aid debugging if configure makes a mistake.
2046
2047It was created by xf86-video-ati $as_me 7.9.0, which was
2048generated by GNU Autoconf 2.69.  Invocation command line was
2049
2050  $ $0 $@
2051
2052_ACEOF
2053exec 5>>config.log
2054{
2055cat <<_ASUNAME
2056## --------- ##
2057## Platform. ##
2058## --------- ##
2059
2060hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2061uname -m = `(uname -m) 2>/dev/null || echo unknown`
2062uname -r = `(uname -r) 2>/dev/null || echo unknown`
2063uname -s = `(uname -s) 2>/dev/null || echo unknown`
2064uname -v = `(uname -v) 2>/dev/null || echo unknown`
2065
2066/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2067/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2068
2069/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2070/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2071/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2072/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2073/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2074/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2075/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2076
2077_ASUNAME
2078
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082  IFS=$as_save_IFS
2083  test -z "$as_dir" && as_dir=.
2084    $as_echo "PATH: $as_dir"
2085  done
2086IFS=$as_save_IFS
2087
2088} >&5
2089
2090cat >&5 <<_ACEOF
2091
2092
2093## ----------- ##
2094## Core tests. ##
2095## ----------- ##
2096
2097_ACEOF
2098
2099
2100# Keep a trace of the command line.
2101# Strip out --no-create and --no-recursion so they do not pile up.
2102# Strip out --silent because we don't want to record it for future runs.
2103# Also quote any args containing shell meta-characters.
2104# Make two passes to allow for proper duplicate-argument suppression.
2105ac_configure_args=
2106ac_configure_args0=
2107ac_configure_args1=
2108ac_must_keep_next=false
2109for ac_pass in 1 2
2110do
2111  for ac_arg
2112  do
2113    case $ac_arg in
2114    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2115    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2116    | -silent | --silent | --silen | --sile | --sil)
2117      continue ;;
2118    *\'*)
2119      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2120    esac
2121    case $ac_pass in
2122    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123    2)
2124      as_fn_append ac_configure_args1 " '$ac_arg'"
2125      if test $ac_must_keep_next = true; then
2126	ac_must_keep_next=false # Got value, back to normal.
2127      else
2128	case $ac_arg in
2129	  *=* | --config-cache | -C | -disable-* | --disable-* \
2130	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2131	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2132	  | -with-* | --with-* | -without-* | --without-* | --x)
2133	    case "$ac_configure_args0 " in
2134	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2135	    esac
2136	    ;;
2137	  -* ) ac_must_keep_next=true ;;
2138	esac
2139      fi
2140      as_fn_append ac_configure_args " '$ac_arg'"
2141      ;;
2142    esac
2143  done
2144done
2145{ ac_configure_args0=; unset ac_configure_args0;}
2146{ ac_configure_args1=; unset ac_configure_args1;}
2147
2148# When interrupted or exit'd, cleanup temporary files, and complete
2149# config.log.  We remove comments because anyway the quotes in there
2150# would cause problems or look ugly.
2151# WARNING: Use '\'' to represent an apostrophe within the trap.
2152# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2153trap 'exit_status=$?
2154  # Save into config.log some information that might help in debugging.
2155  {
2156    echo
2157
2158    $as_echo "## ---------------- ##
2159## Cache variables. ##
2160## ---------------- ##"
2161    echo
2162    # The following way of writing the cache mishandles newlines in values,
2163(
2164  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2165    eval ac_val=\$$ac_var
2166    case $ac_val in #(
2167    *${as_nl}*)
2168      case $ac_var in #(
2169      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2170$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2171      esac
2172      case $ac_var in #(
2173      _ | IFS | as_nl) ;; #(
2174      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2175      *) { eval $ac_var=; unset $ac_var;} ;;
2176      esac ;;
2177    esac
2178  done
2179  (set) 2>&1 |
2180    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2181    *${as_nl}ac_space=\ *)
2182      sed -n \
2183	"s/'\''/'\''\\\\'\'''\''/g;
2184	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2185      ;; #(
2186    *)
2187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2188      ;;
2189    esac |
2190    sort
2191)
2192    echo
2193
2194    $as_echo "## ----------------- ##
2195## Output variables. ##
2196## ----------------- ##"
2197    echo
2198    for ac_var in $ac_subst_vars
2199    do
2200      eval ac_val=\$$ac_var
2201      case $ac_val in
2202      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2203      esac
2204      $as_echo "$ac_var='\''$ac_val'\''"
2205    done | sort
2206    echo
2207
2208    if test -n "$ac_subst_files"; then
2209      $as_echo "## ------------------- ##
2210## File substitutions. ##
2211## ------------------- ##"
2212      echo
2213      for ac_var in $ac_subst_files
2214      do
2215	eval ac_val=\$$ac_var
2216	case $ac_val in
2217	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218	esac
2219	$as_echo "$ac_var='\''$ac_val'\''"
2220      done | sort
2221      echo
2222    fi
2223
2224    if test -s confdefs.h; then
2225      $as_echo "## ----------- ##
2226## confdefs.h. ##
2227## ----------- ##"
2228      echo
2229      cat confdefs.h
2230      echo
2231    fi
2232    test "$ac_signal" != 0 &&
2233      $as_echo "$as_me: caught signal $ac_signal"
2234    $as_echo "$as_me: exit $exit_status"
2235  } >&5
2236  rm -f core *.core core.conftest.* &&
2237    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2238    exit $exit_status
2239' 0
2240for ac_signal in 1 2 13 15; do
2241  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2242done
2243ac_signal=0
2244
2245# confdefs.h avoids OS command line length limits that DEFS can exceed.
2246rm -f -r conftest* confdefs.h
2247
2248$as_echo "/* confdefs.h */" > confdefs.h
2249
2250# Predefined preprocessor variables.
2251
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_NAME "$PACKAGE_NAME"
2254_ACEOF
2255
2256cat >>confdefs.h <<_ACEOF
2257#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2258_ACEOF
2259
2260cat >>confdefs.h <<_ACEOF
2261#define PACKAGE_VERSION "$PACKAGE_VERSION"
2262_ACEOF
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_STRING "$PACKAGE_STRING"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_URL "$PACKAGE_URL"
2274_ACEOF
2275
2276
2277# Let the site file select an alternate cache file if it wants to.
2278# Prefer an explicitly selected file to automatically selected ones.
2279ac_site_file1=NONE
2280ac_site_file2=NONE
2281if test -n "$CONFIG_SITE"; then
2282  # We do not want a PATH search for config.site.
2283  case $CONFIG_SITE in #((
2284    -*)  ac_site_file1=./$CONFIG_SITE;;
2285    */*) ac_site_file1=$CONFIG_SITE;;
2286    *)   ac_site_file1=./$CONFIG_SITE;;
2287  esac
2288elif test "x$prefix" != xNONE; then
2289  ac_site_file1=$prefix/share/config.site
2290  ac_site_file2=$prefix/etc/config.site
2291else
2292  ac_site_file1=$ac_default_prefix/share/config.site
2293  ac_site_file2=$ac_default_prefix/etc/config.site
2294fi
2295for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2296do
2297  test "x$ac_site_file" = xNONE && continue
2298  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2299    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2301    sed 's/^/| /' "$ac_site_file" >&5
2302    . "$ac_site_file" \
2303      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305as_fn_error $? "failed to load site script $ac_site_file
2306See \`config.log' for more details" "$LINENO" 5; }
2307  fi
2308done
2309
2310if test -r "$cache_file"; then
2311  # Some versions of bash will fail to source /dev/null (special files
2312  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2313  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315$as_echo "$as_me: loading cache $cache_file" >&6;}
2316    case $cache_file in
2317      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318      *)                      . "./$cache_file";;
2319    esac
2320  fi
2321else
2322  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323$as_echo "$as_me: creating cache $cache_file" >&6;}
2324  >$cache_file
2325fi
2326
2327# Check that the precious variables saved in the cache have kept the same
2328# value.
2329ac_cache_corrupted=false
2330for ac_var in $ac_precious_vars; do
2331  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2332  eval ac_new_set=\$ac_env_${ac_var}_set
2333  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2334  eval ac_new_val=\$ac_env_${ac_var}_value
2335  case $ac_old_set,$ac_new_set in
2336    set,)
2337      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2338$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2339      ac_cache_corrupted=: ;;
2340    ,set)
2341      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2342$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2343      ac_cache_corrupted=: ;;
2344    ,);;
2345    *)
2346      if test "x$ac_old_val" != "x$ac_new_val"; then
2347	# differences in whitespace do not lead to failure.
2348	ac_old_val_w=`echo x $ac_old_val`
2349	ac_new_val_w=`echo x $ac_new_val`
2350	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2351	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2352$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2353	  ac_cache_corrupted=:
2354	else
2355	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2356$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2357	  eval $ac_var=\$ac_old_val
2358	fi
2359	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2360$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2361	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2362$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2363      fi;;
2364  esac
2365  # Pass precious variables to config.status.
2366  if test "$ac_new_set" = set; then
2367    case $ac_new_val in
2368    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2369    *) ac_arg=$ac_var=$ac_new_val ;;
2370    esac
2371    case " $ac_configure_args " in
2372      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2373      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2374    esac
2375  fi
2376done
2377if $ac_cache_corrupted; then
2378  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2380  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2381$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2382  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2383fi
2384## -------------------- ##
2385## Main body of script. ##
2386## -------------------- ##
2387
2388ac_ext=c
2389ac_cpp='$CPP $CPPFLAGS'
2390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393
2394
2395
2396
2397ac_config_headers="$ac_config_headers config.h"
2398
2399
2400ac_aux_dir=
2401for ac_dir in . "$srcdir"/.; do
2402  if test -f "$ac_dir/install-sh"; then
2403    ac_aux_dir=$ac_dir
2404    ac_install_sh="$ac_aux_dir/install-sh -c"
2405    break
2406  elif test -f "$ac_dir/install.sh"; then
2407    ac_aux_dir=$ac_dir
2408    ac_install_sh="$ac_aux_dir/install.sh -c"
2409    break
2410  elif test -f "$ac_dir/shtool"; then
2411    ac_aux_dir=$ac_dir
2412    ac_install_sh="$ac_aux_dir/shtool install -c"
2413    break
2414  fi
2415done
2416if test -z "$ac_aux_dir"; then
2417  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2418fi
2419
2420# These three variables are undocumented and unsupported,
2421# and are intended to be withdrawn in a future Autoconf release.
2422# They can cause serious problems if a builder's source tree is in a directory
2423# whose full name contains unusual characters.
2424ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2425ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2426ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2427
2428
2429
2430# Initialize Automake
2431am__api_version='1.15'
2432
2433# Find a good install program.  We prefer a C program (faster),
2434# so one script is as good as another.  But avoid the broken or
2435# incompatible versions:
2436# SysV /etc/install, /usr/sbin/install
2437# SunOS /usr/etc/install
2438# IRIX /sbin/install
2439# AIX /bin/install
2440# AmigaOS /C/install, which installs bootblocks on floppy discs
2441# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2442# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2443# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2444# OS/2's system install, which has a completely different semantic
2445# ./install, which can be erroneously created by make from ./install.sh.
2446# Reject install programs that cannot install multiple files.
2447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2448$as_echo_n "checking for a BSD-compatible install... " >&6; }
2449if test -z "$INSTALL"; then
2450if ${ac_cv_path_install+:} false; then :
2451  $as_echo_n "(cached) " >&6
2452else
2453  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456  IFS=$as_save_IFS
2457  test -z "$as_dir" && as_dir=.
2458    # Account for people who put trailing slashes in PATH elements.
2459case $as_dir/ in #((
2460  ./ | .// | /[cC]/* | \
2461  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2462  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2463  /usr/ucb/* ) ;;
2464  *)
2465    # OSF1 and SCO ODT 3.0 have their own names for install.
2466    # Don't use installbsd from OSF since it installs stuff as root
2467    # by default.
2468    for ac_prog in ginstall scoinst install; do
2469      for ac_exec_ext in '' $ac_executable_extensions; do
2470	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2471	  if test $ac_prog = install &&
2472	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2473	    # AIX install.  It has an incompatible calling convention.
2474	    :
2475	  elif test $ac_prog = install &&
2476	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477	    # program-specific install script used by HP pwplus--don't use.
2478	    :
2479	  else
2480	    rm -rf conftest.one conftest.two conftest.dir
2481	    echo one > conftest.one
2482	    echo two > conftest.two
2483	    mkdir conftest.dir
2484	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2485	      test -s conftest.one && test -s conftest.two &&
2486	      test -s conftest.dir/conftest.one &&
2487	      test -s conftest.dir/conftest.two
2488	    then
2489	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2490	      break 3
2491	    fi
2492	  fi
2493	fi
2494      done
2495    done
2496    ;;
2497esac
2498
2499  done
2500IFS=$as_save_IFS
2501
2502rm -rf conftest.one conftest.two conftest.dir
2503
2504fi
2505  if test "${ac_cv_path_install+set}" = set; then
2506    INSTALL=$ac_cv_path_install
2507  else
2508    # As a last resort, use the slow shell script.  Don't cache a
2509    # value for INSTALL within a source directory, because that will
2510    # break other packages using the cache if that directory is
2511    # removed, or if the value is a relative name.
2512    INSTALL=$ac_install_sh
2513  fi
2514fi
2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2516$as_echo "$INSTALL" >&6; }
2517
2518# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2519# It thinks the first close brace ends the variable substitution.
2520test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2521
2522test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2523
2524test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2525
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2527$as_echo_n "checking whether build environment is sane... " >&6; }
2528# Reject unsafe characters in $srcdir or the absolute working directory
2529# name.  Accept space and tab only in the latter.
2530am_lf='
2531'
2532case `pwd` in
2533  *[\\\"\#\$\&\'\`$am_lf]*)
2534    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2535esac
2536case $srcdir in
2537  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2538    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2539esac
2540
2541# Do 'set' in a subshell so we don't clobber the current shell's
2542# arguments.  Must try -L first in case configure is actually a
2543# symlink; some systems play weird games with the mod time of symlinks
2544# (eg FreeBSD returns the mod time of the symlink's containing
2545# directory).
2546if (
2547   am_has_slept=no
2548   for am_try in 1 2; do
2549     echo "timestamp, slept: $am_has_slept" > conftest.file
2550     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2551     if test "$*" = "X"; then
2552	# -L didn't work.
2553	set X `ls -t "$srcdir/configure" conftest.file`
2554     fi
2555     if test "$*" != "X $srcdir/configure conftest.file" \
2556	&& test "$*" != "X conftest.file $srcdir/configure"; then
2557
2558	# If neither matched, then we have a broken ls.  This can happen
2559	# if, for instance, CONFIG_SHELL is bash and it inherits a
2560	# broken ls alias from the environment.  This has actually
2561	# happened.  Such a system could not be considered "sane".
2562	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2563  alias in your environment" "$LINENO" 5
2564     fi
2565     if test "$2" = conftest.file || test $am_try -eq 2; then
2566       break
2567     fi
2568     # Just in case.
2569     sleep 1
2570     am_has_slept=yes
2571   done
2572   test "$2" = conftest.file
2573   )
2574then
2575   # Ok.
2576   :
2577else
2578   as_fn_error $? "newly created file is older than distributed files!
2579Check your system clock" "$LINENO" 5
2580fi
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2582$as_echo "yes" >&6; }
2583# If we didn't sleep, we still need to ensure time stamps of config.status and
2584# generated files are strictly newer.
2585am_sleep_pid=
2586if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2587  ( sleep 1 ) &
2588  am_sleep_pid=$!
2589fi
2590
2591rm -f conftest.file
2592
2593test "$program_prefix" != NONE &&
2594  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2595# Use a double $ so make ignores it.
2596test "$program_suffix" != NONE &&
2597  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2598# Double any \ or $.
2599# By default was `s,x,x', remove it if useless.
2600ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2601program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2602
2603# Expand $ac_aux_dir to an absolute path.
2604am_aux_dir=`cd "$ac_aux_dir" && pwd`
2605
2606if test x"${MISSING+set}" != xset; then
2607  case $am_aux_dir in
2608  *\ * | *\	*)
2609    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2610  *)
2611    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2612  esac
2613fi
2614# Use eval to expand $SHELL
2615if eval "$MISSING --is-lightweight"; then
2616  am_missing_run="$MISSING "
2617else
2618  am_missing_run=
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2620$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2621fi
2622
2623if test x"${install_sh+set}" != xset; then
2624  case $am_aux_dir in
2625  *\ * | *\	*)
2626    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2627  *)
2628    install_sh="\${SHELL} $am_aux_dir/install-sh"
2629  esac
2630fi
2631
2632# Installed binaries are usually stripped using 'strip' when the user
2633# run "make install-strip".  However 'strip' might not be the right
2634# tool to use in cross-compilation environments, therefore Automake
2635# will honor the 'STRIP' environment variable to overrule this program.
2636if test "$cross_compiling" != no; then
2637  if test -n "$ac_tool_prefix"; then
2638  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639set dummy ${ac_tool_prefix}strip; ac_word=$2
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641$as_echo_n "checking for $ac_word... " >&6; }
2642if ${ac_cv_prog_STRIP+:} false; then :
2643  $as_echo_n "(cached) " >&6
2644else
2645  if test -n "$STRIP"; then
2646  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651  IFS=$as_save_IFS
2652  test -z "$as_dir" && as_dir=.
2653    for ac_exec_ext in '' $ac_executable_extensions; do
2654  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657    break 2
2658  fi
2659done
2660  done
2661IFS=$as_save_IFS
2662
2663fi
2664fi
2665STRIP=$ac_cv_prog_STRIP
2666if test -n "$STRIP"; then
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2668$as_echo "$STRIP" >&6; }
2669else
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671$as_echo "no" >&6; }
2672fi
2673
2674
2675fi
2676if test -z "$ac_cv_prog_STRIP"; then
2677  ac_ct_STRIP=$STRIP
2678  # Extract the first word of "strip", so it can be a program name with args.
2679set dummy strip; ac_word=$2
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681$as_echo_n "checking for $ac_word... " >&6; }
2682if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2683  $as_echo_n "(cached) " >&6
2684else
2685  if test -n "$ac_ct_STRIP"; then
2686  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2687else
2688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH
2690do
2691  IFS=$as_save_IFS
2692  test -z "$as_dir" && as_dir=.
2693    for ac_exec_ext in '' $ac_executable_extensions; do
2694  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2695    ac_cv_prog_ac_ct_STRIP="strip"
2696    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697    break 2
2698  fi
2699done
2700  done
2701IFS=$as_save_IFS
2702
2703fi
2704fi
2705ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706if test -n "$ac_ct_STRIP"; then
2707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2708$as_echo "$ac_ct_STRIP" >&6; }
2709else
2710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711$as_echo "no" >&6; }
2712fi
2713
2714  if test "x$ac_ct_STRIP" = x; then
2715    STRIP=":"
2716  else
2717    case $cross_compiling:$ac_tool_warned in
2718yes:)
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721ac_tool_warned=yes ;;
2722esac
2723    STRIP=$ac_ct_STRIP
2724  fi
2725else
2726  STRIP="$ac_cv_prog_STRIP"
2727fi
2728
2729fi
2730INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2731
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2733$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2734if test -z "$MKDIR_P"; then
2735  if ${ac_cv_path_mkdir+:} false; then :
2736  $as_echo_n "(cached) " >&6
2737else
2738  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743    for ac_prog in mkdir gmkdir; do
2744	 for ac_exec_ext in '' $ac_executable_extensions; do
2745	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2746	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2747	     'mkdir (GNU coreutils) '* | \
2748	     'mkdir (coreutils) '* | \
2749	     'mkdir (fileutils) '4.1*)
2750	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2751	       break 3;;
2752	   esac
2753	 done
2754       done
2755  done
2756IFS=$as_save_IFS
2757
2758fi
2759
2760  test -d ./--version && rmdir ./--version
2761  if test "${ac_cv_path_mkdir+set}" = set; then
2762    MKDIR_P="$ac_cv_path_mkdir -p"
2763  else
2764    # As a last resort, use the slow shell script.  Don't cache a
2765    # value for MKDIR_P within a source directory, because that will
2766    # break other packages using the cache if that directory is
2767    # removed, or if the value is a relative name.
2768    MKDIR_P="$ac_install_sh -d"
2769  fi
2770fi
2771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2772$as_echo "$MKDIR_P" >&6; }
2773
2774for ac_prog in gawk mawk nawk awk
2775do
2776  # Extract the first word of "$ac_prog", so it can be a program name with args.
2777set dummy $ac_prog; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if ${ac_cv_prog_AWK+:} false; then :
2781  $as_echo_n "(cached) " >&6
2782else
2783  if test -n "$AWK"; then
2784  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789  IFS=$as_save_IFS
2790  test -z "$as_dir" && as_dir=.
2791    for ac_exec_ext in '' $ac_executable_extensions; do
2792  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793    ac_cv_prog_AWK="$ac_prog"
2794    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795    break 2
2796  fi
2797done
2798  done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803AWK=$ac_cv_prog_AWK
2804if test -n "$AWK"; then
2805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806$as_echo "$AWK" >&6; }
2807else
2808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813  test -n "$AWK" && break
2814done
2815
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2817$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2818set x ${MAKE-make}
2819ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2820if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2821  $as_echo_n "(cached) " >&6
2822else
2823  cat >conftest.make <<\_ACEOF
2824SHELL = /bin/sh
2825all:
2826	@echo '@@@%%%=$(MAKE)=@@@%%%'
2827_ACEOF
2828# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2829case `${MAKE-make} -f conftest.make 2>/dev/null` in
2830  *@@@%%%=?*=@@@%%%*)
2831    eval ac_cv_prog_make_${ac_make}_set=yes;;
2832  *)
2833    eval ac_cv_prog_make_${ac_make}_set=no;;
2834esac
2835rm -f conftest.make
2836fi
2837if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839$as_echo "yes" >&6; }
2840  SET_MAKE=
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844  SET_MAKE="MAKE=${MAKE-make}"
2845fi
2846
2847rm -rf .tst 2>/dev/null
2848mkdir .tst 2>/dev/null
2849if test -d .tst; then
2850  am__leading_dot=.
2851else
2852  am__leading_dot=_
2853fi
2854rmdir .tst 2>/dev/null
2855
2856# Check whether --enable-silent-rules was given.
2857if test "${enable_silent_rules+set}" = set; then :
2858  enableval=$enable_silent_rules;
2859fi
2860
2861case $enable_silent_rules in # (((
2862  yes) AM_DEFAULT_VERBOSITY=0;;
2863   no) AM_DEFAULT_VERBOSITY=1;;
2864    *) AM_DEFAULT_VERBOSITY=1;;
2865esac
2866am_make=${MAKE-make}
2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2868$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2869if ${am_cv_make_support_nested_variables+:} false; then :
2870  $as_echo_n "(cached) " >&6
2871else
2872  if $as_echo 'TRUE=$(BAR$(V))
2873BAR0=false
2874BAR1=true
2875V=1
2876am__doit:
2877	@$(TRUE)
2878.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2879  am_cv_make_support_nested_variables=yes
2880else
2881  am_cv_make_support_nested_variables=no
2882fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2885$as_echo "$am_cv_make_support_nested_variables" >&6; }
2886if test $am_cv_make_support_nested_variables = yes; then
2887    AM_V='$(V)'
2888  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2889else
2890  AM_V=$AM_DEFAULT_VERBOSITY
2891  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2892fi
2893AM_BACKSLASH='\'
2894
2895if test "`cd $srcdir && pwd`" != "`pwd`"; then
2896  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2897  # is not polluted with repeated "-I."
2898  am__isrc=' -I$(srcdir)'
2899  # test to see if srcdir already configured
2900  if test -f $srcdir/config.status; then
2901    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2902  fi
2903fi
2904
2905# test whether we have cygpath
2906if test -z "$CYGPATH_W"; then
2907  if (cygpath --version) >/dev/null 2>/dev/null; then
2908    CYGPATH_W='cygpath -w'
2909  else
2910    CYGPATH_W=echo
2911  fi
2912fi
2913
2914
2915# Define the identity of the package.
2916 PACKAGE='xf86-video-ati'
2917 VERSION='7.9.0'
2918
2919
2920cat >>confdefs.h <<_ACEOF
2921#define PACKAGE "$PACKAGE"
2922_ACEOF
2923
2924
2925cat >>confdefs.h <<_ACEOF
2926#define VERSION "$VERSION"
2927_ACEOF
2928
2929# Some tools Automake needs.
2930
2931ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2932
2933
2934AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2935
2936
2937AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2938
2939
2940AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2941
2942
2943MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2944
2945# For better backward compatibility.  To be removed once Automake 1.9.x
2946# dies out for good.  For more background, see:
2947# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2948# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2949mkdir_p='$(MKDIR_P)'
2950
2951# We need awk for the "check" target (and possibly the TAP driver).  The
2952# system "awk" is bad on some platforms.
2953# Always define AMTAR for backward compatibility.  Yes, it's still used
2954# in the wild :-(  We should find a proper way to deprecate it ...
2955AMTAR='$${TAR-tar}'
2956
2957
2958# We'll loop over all known methods to create a tar archive until one works.
2959_am_tools='gnutar  pax cpio none'
2960
2961am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2962
2963
2964
2965
2966
2967
2968# POSIX will say in a future version that running "rm -f" with no argument
2969# is OK; and we want to be able to make that assumption in our Makefile
2970# recipes.  So use an aggressive probe to check that the usage we want is
2971# actually supported "in the wild" to an acceptable degree.
2972# See automake bug#10828.
2973# To make any issue more visible, cause the running configure to be aborted
2974# by default if the 'rm' program in use doesn't match our expectations; the
2975# user can still override this though.
2976if rm -f && rm -fr && rm -rf; then : OK; else
2977  cat >&2 <<'END'
2978Oops!
2979
2980Your 'rm' program seems unable to run without file operands specified
2981on the command line, even when the '-f' option is present.  This is contrary
2982to the behaviour of most rm programs out there, and not conforming with
2983the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2984
2985Please tell bug-automake@gnu.org about your system, including the value
2986of your $PATH and any error possibly output before this message.  This
2987can help us improve future automake versions.
2988
2989END
2990  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2991    echo 'Configuration will proceed anyway, since you have set the' >&2
2992    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2993    echo >&2
2994  else
2995    cat >&2 <<'END'
2996Aborting the configuration process, to ensure you take notice of the issue.
2997
2998You can download and install GNU coreutils to get an 'rm' implementation
2999that behaves properly: <http://www.gnu.org/software/coreutils/>.
3000
3001If you want to complete the configuration process using your problematic
3002'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3003to "yes", and re-run configure.
3004
3005END
3006    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3007  fi
3008fi
3009
3010DEPDIR="${am__leading_dot}deps"
3011
3012ac_config_commands="$ac_config_commands depfiles"
3013
3014
3015am_make=${MAKE-make}
3016cat > confinc << 'END'
3017am__doit:
3018	@echo this is the am__doit target
3019.PHONY: am__doit
3020END
3021# If we don't find an include directive, just comment out the code.
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3023$as_echo_n "checking for style of include used by $am_make... " >&6; }
3024am__include="#"
3025am__quote=
3026_am_result=none
3027# First try GNU make style include.
3028echo "include confinc" > confmf
3029# Ignore all kinds of additional output from 'make'.
3030case `$am_make -s -f confmf 2> /dev/null` in #(
3031*the\ am__doit\ target*)
3032  am__include=include
3033  am__quote=
3034  _am_result=GNU
3035  ;;
3036esac
3037# Now try BSD make style include.
3038if test "$am__include" = "#"; then
3039   echo '.include "confinc"' > confmf
3040   case `$am_make -s -f confmf 2> /dev/null` in #(
3041   *the\ am__doit\ target*)
3042     am__include=.include
3043     am__quote="\""
3044     _am_result=BSD
3045     ;;
3046   esac
3047fi
3048
3049
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3051$as_echo "$_am_result" >&6; }
3052rm -f confinc confmf
3053
3054# Check whether --enable-dependency-tracking was given.
3055if test "${enable_dependency_tracking+set}" = set; then :
3056  enableval=$enable_dependency_tracking;
3057fi
3058
3059if test "x$enable_dependency_tracking" != xno; then
3060  am_depcomp="$ac_aux_dir/depcomp"
3061  AMDEPBACKSLASH='\'
3062  am__nodep='_no'
3063fi
3064 if test "x$enable_dependency_tracking" != xno; then
3065  AMDEP_TRUE=
3066  AMDEP_FALSE='#'
3067else
3068  AMDEP_TRUE='#'
3069  AMDEP_FALSE=
3070fi
3071
3072
3073ac_ext=c
3074ac_cpp='$CPP $CPPFLAGS'
3075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078if test -n "$ac_tool_prefix"; then
3079  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3080set dummy ${ac_tool_prefix}gcc; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
3083if ${ac_cv_prog_CC+:} false; then :
3084  $as_echo_n "(cached) " >&6
3085else
3086  if test -n "$CC"; then
3087  ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092  IFS=$as_save_IFS
3093  test -z "$as_dir" && as_dir=.
3094    for ac_exec_ext in '' $ac_executable_extensions; do
3095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098    break 2
3099  fi
3100done
3101  done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109$as_echo "$CC" >&6; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116fi
3117if test -z "$ac_cv_prog_CC"; then
3118  ac_ct_CC=$CC
3119  # Extract the first word of "gcc", so it can be a program name with args.
3120set dummy gcc; ac_word=$2
3121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122$as_echo_n "checking for $ac_word... " >&6; }
3123if ${ac_cv_prog_ac_ct_CC+:} false; then :
3124  $as_echo_n "(cached) " >&6
3125else
3126  if test -n "$ac_ct_CC"; then
3127  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132  IFS=$as_save_IFS
3133  test -z "$as_dir" && as_dir=.
3134    for ac_exec_ext in '' $ac_executable_extensions; do
3135  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136    ac_cv_prog_ac_ct_CC="gcc"
3137    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138    break 2
3139  fi
3140done
3141  done
3142IFS=$as_save_IFS
3143
3144fi
3145fi
3146ac_ct_CC=$ac_cv_prog_ac_ct_CC
3147if test -n "$ac_ct_CC"; then
3148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3149$as_echo "$ac_ct_CC" >&6; }
3150else
3151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152$as_echo "no" >&6; }
3153fi
3154
3155  if test "x$ac_ct_CC" = x; then
3156    CC=""
3157  else
3158    case $cross_compiling:$ac_tool_warned in
3159yes:)
3160{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3162ac_tool_warned=yes ;;
3163esac
3164    CC=$ac_ct_CC
3165  fi
3166else
3167  CC="$ac_cv_prog_CC"
3168fi
3169
3170if test -z "$CC"; then
3171          if test -n "$ac_tool_prefix"; then
3172    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3173set dummy ${ac_tool_prefix}cc; ac_word=$2
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175$as_echo_n "checking for $ac_word... " >&6; }
3176if ${ac_cv_prog_CC+:} false; then :
3177  $as_echo_n "(cached) " >&6
3178else
3179  if test -n "$CC"; then
3180  ac_cv_prog_CC="$CC" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185  IFS=$as_save_IFS
3186  test -z "$as_dir" && as_dir=.
3187    for ac_exec_ext in '' $ac_executable_extensions; do
3188  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189    ac_cv_prog_CC="${ac_tool_prefix}cc"
3190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191    break 2
3192  fi
3193done
3194  done
3195IFS=$as_save_IFS
3196
3197fi
3198fi
3199CC=$ac_cv_prog_CC
3200if test -n "$CC"; then
3201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202$as_echo "$CC" >&6; }
3203else
3204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206fi
3207
3208
3209  fi
3210fi
3211if test -z "$CC"; then
3212  # Extract the first word of "cc", so it can be a program name with args.
3213set dummy cc; ac_word=$2
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215$as_echo_n "checking for $ac_word... " >&6; }
3216if ${ac_cv_prog_CC+:} false; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  if test -n "$CC"; then
3220  ac_cv_prog_CC="$CC" # Let the user override the test.
3221else
3222  ac_prog_rejected=no
3223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224for as_dir in $PATH
3225do
3226  IFS=$as_save_IFS
3227  test -z "$as_dir" && as_dir=.
3228    for ac_exec_ext in '' $ac_executable_extensions; do
3229  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3231       ac_prog_rejected=yes
3232       continue
3233     fi
3234    ac_cv_prog_CC="cc"
3235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3236    break 2
3237  fi
3238done
3239  done
3240IFS=$as_save_IFS
3241
3242if test $ac_prog_rejected = yes; then
3243  # We found a bogon in the path, so make sure we never use it.
3244  set dummy $ac_cv_prog_CC
3245  shift
3246  if test $# != 0; then
3247    # We chose a different compiler from the bogus one.
3248    # However, it has the same basename, so the bogon will be chosen
3249    # first if we set CC to just the basename; use the full file name.
3250    shift
3251    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3252  fi
3253fi
3254fi
3255fi
3256CC=$ac_cv_prog_CC
3257if test -n "$CC"; then
3258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3259$as_echo "$CC" >&6; }
3260else
3261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262$as_echo "no" >&6; }
3263fi
3264
3265
3266fi
3267if test -z "$CC"; then
3268  if test -n "$ac_tool_prefix"; then
3269  for ac_prog in cl.exe
3270  do
3271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274$as_echo_n "checking for $ac_word... " >&6; }
3275if ${ac_cv_prog_CC+:} false; then :
3276  $as_echo_n "(cached) " >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286    for ac_exec_ext in '' $ac_executable_extensions; do
3287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293  done
3294IFS=$as_save_IFS
3295
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301$as_echo "$CC" >&6; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
3306
3307
3308    test -n "$CC" && break
3309  done
3310fi
3311if test -z "$CC"; then
3312  ac_ct_CC=$CC
3313  for ac_prog in cl.exe
3314do
3315  # Extract the first word of "$ac_prog", so it can be a program name with args.
3316set dummy $ac_prog; ac_word=$2
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318$as_echo_n "checking for $ac_word... " >&6; }
3319if ${ac_cv_prog_ac_ct_CC+:} false; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  if test -n "$ac_ct_CC"; then
3323  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324else
3325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326for as_dir in $PATH
3327do
3328  IFS=$as_save_IFS
3329  test -z "$as_dir" && as_dir=.
3330    for ac_exec_ext in '' $ac_executable_extensions; do
3331  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332    ac_cv_prog_ac_ct_CC="$ac_prog"
3333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334    break 2
3335  fi
3336done
3337  done
3338IFS=$as_save_IFS
3339
3340fi
3341fi
3342ac_ct_CC=$ac_cv_prog_ac_ct_CC
3343if test -n "$ac_ct_CC"; then
3344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3345$as_echo "$ac_ct_CC" >&6; }
3346else
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348$as_echo "no" >&6; }
3349fi
3350
3351
3352  test -n "$ac_ct_CC" && break
3353done
3354
3355  if test "x$ac_ct_CC" = x; then
3356    CC=""
3357  else
3358    case $cross_compiling:$ac_tool_warned in
3359yes:)
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3362ac_tool_warned=yes ;;
3363esac
3364    CC=$ac_ct_CC
3365  fi
3366fi
3367
3368fi
3369
3370
3371test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373as_fn_error $? "no acceptable C compiler found in \$PATH
3374See \`config.log' for more details" "$LINENO" 5; }
3375
3376# Provide some information about the compiler.
3377$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3378set X $ac_compile
3379ac_compiler=$2
3380for ac_option in --version -v -V -qversion; do
3381  { { ac_try="$ac_compiler $ac_option >&5"
3382case "(($ac_try" in
3383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384  *) ac_try_echo=$ac_try;;
3385esac
3386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387$as_echo "$ac_try_echo"; } >&5
3388  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3389  ac_status=$?
3390  if test -s conftest.err; then
3391    sed '10a\
3392... rest of stderr output deleted ...
3393         10q' conftest.err >conftest.er1
3394    cat conftest.er1 >&5
3395  fi
3396  rm -f conftest.er1 conftest.err
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }
3399done
3400
3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412ac_clean_files_save=$ac_clean_files
3413ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3414# Try to create an executable without -o first, disregard a.out.
3415# It will help us diagnose broken compilers, and finding out an intuition
3416# of exeext.
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3418$as_echo_n "checking whether the C compiler works... " >&6; }
3419ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3420
3421# The possible output files:
3422ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3423
3424ac_rmfiles=
3425for ac_file in $ac_files
3426do
3427  case $ac_file in
3428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3429    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3430  esac
3431done
3432rm -f $ac_rmfiles
3433
3434if { { ac_try="$ac_link_default"
3435case "(($ac_try" in
3436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437  *) ac_try_echo=$ac_try;;
3438esac
3439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
3441  (eval "$ac_link_default") 2>&5
3442  ac_status=$?
3443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444  test $ac_status = 0; }; then :
3445  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3446# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3447# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3448# so that the user can short-circuit this test for compilers unknown to
3449# Autoconf.
3450for ac_file in $ac_files ''
3451do
3452  test -f "$ac_file" || continue
3453  case $ac_file in
3454    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3455	;;
3456    [ab].out )
3457	# We found the default executable, but exeext='' is most
3458	# certainly right.
3459	break;;
3460    *.* )
3461	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3462	then :; else
3463	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3464	fi
3465	# We set ac_cv_exeext here because the later test for it is not
3466	# safe: cross compilers may not add the suffix if given an `-o'
3467	# argument, so we may need to know it at that point already.
3468	# Even if this section looks crufty: it has the advantage of
3469	# actually working.
3470	break;;
3471    * )
3472	break;;
3473  esac
3474done
3475test "$ac_cv_exeext" = no && ac_cv_exeext=
3476
3477else
3478  ac_file=''
3479fi
3480if test -z "$ac_file"; then :
3481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482$as_echo "no" >&6; }
3483$as_echo "$as_me: failed program was:" >&5
3484sed 's/^/| /' conftest.$ac_ext >&5
3485
3486{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3487$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3488as_fn_error 77 "C compiler cannot create executables
3489See \`config.log' for more details" "$LINENO" 5; }
3490else
3491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3492$as_echo "yes" >&6; }
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3495$as_echo_n "checking for C compiler default output file name... " >&6; }
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3497$as_echo "$ac_file" >&6; }
3498ac_exeext=$ac_cv_exeext
3499
3500rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3501ac_clean_files=$ac_clean_files_save
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3503$as_echo_n "checking for suffix of executables... " >&6; }
3504if { { ac_try="$ac_link"
3505case "(($ac_try" in
3506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507  *) ac_try_echo=$ac_try;;
3508esac
3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510$as_echo "$ac_try_echo"; } >&5
3511  (eval "$ac_link") 2>&5
3512  ac_status=$?
3513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514  test $ac_status = 0; }; then :
3515  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3516# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3517# work properly (i.e., refer to `conftest.exe'), while it won't with
3518# `rm'.
3519for ac_file in conftest.exe conftest conftest.*; do
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    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3524	  break;;
3525    * ) break;;
3526  esac
3527done
3528else
3529  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3532See \`config.log' for more details" "$LINENO" 5; }
3533fi
3534rm -f conftest conftest$ac_cv_exeext
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3536$as_echo "$ac_cv_exeext" >&6; }
3537
3538rm -f conftest.$ac_ext
3539EXEEXT=$ac_cv_exeext
3540ac_exeext=$EXEEXT
3541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542/* end confdefs.h.  */
3543#include <stdio.h>
3544int
3545main ()
3546{
3547FILE *f = fopen ("conftest.out", "w");
3548 return ferror (f) || fclose (f) != 0;
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554ac_clean_files="$ac_clean_files conftest.out"
3555# Check that the compiler produces executables we can run.  If not, either
3556# the compiler is broken, or we cross compile.
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3558$as_echo_n "checking whether we are cross compiling... " >&6; }
3559if test "$cross_compiling" != yes; then
3560  { { ac_try="$ac_link"
3561case "(($ac_try" in
3562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563  *) ac_try_echo=$ac_try;;
3564esac
3565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566$as_echo "$ac_try_echo"; } >&5
3567  (eval "$ac_link") 2>&5
3568  ac_status=$?
3569  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570  test $ac_status = 0; }
3571  if { ac_try='./conftest$ac_cv_exeext'
3572  { { case "(($ac_try" in
3573  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574  *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578  (eval "$ac_try") 2>&5
3579  ac_status=$?
3580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581  test $ac_status = 0; }; }; then
3582    cross_compiling=no
3583  else
3584    if test "$cross_compiling" = maybe; then
3585	cross_compiling=yes
3586    else
3587	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589as_fn_error $? "cannot run C compiled programs.
3590If you meant to cross compile, use \`--host'.
3591See \`config.log' for more details" "$LINENO" 5; }
3592    fi
3593  fi
3594fi
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3596$as_echo "$cross_compiling" >&6; }
3597
3598rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3599ac_clean_files=$ac_clean_files_save
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3601$as_echo_n "checking for suffix of object files... " >&6; }
3602if ${ac_cv_objext+:} false; then :
3603  $as_echo_n "(cached) " >&6
3604else
3605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606/* end confdefs.h.  */
3607
3608int
3609main ()
3610{
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.o conftest.obj
3617if { { ac_try="$ac_compile"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623$as_echo "$ac_try_echo"; } >&5
3624  (eval "$ac_compile") 2>&5
3625  ac_status=$?
3626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627  test $ac_status = 0; }; then :
3628  for ac_file in conftest.o conftest.obj conftest.*; do
3629  test -f "$ac_file" || continue;
3630  case $ac_file in
3631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3632    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3633       break;;
3634  esac
3635done
3636else
3637  $as_echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3642as_fn_error $? "cannot compute suffix of object files: cannot compile
3643See \`config.log' for more details" "$LINENO" 5; }
3644fi
3645rm -f conftest.$ac_cv_objext conftest.$ac_ext
3646fi
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3648$as_echo "$ac_cv_objext" >&6; }
3649OBJEXT=$ac_cv_objext
3650ac_objext=$OBJEXT
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3652$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3653if ${ac_cv_c_compiler_gnu+:} false; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657/* end confdefs.h.  */
3658
3659int
3660main ()
3661{
3662#ifndef __GNUC__
3663       choke me
3664#endif
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670if ac_fn_c_try_compile "$LINENO"; then :
3671  ac_compiler_gnu=yes
3672else
3673  ac_compiler_gnu=no
3674fi
3675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676ac_cv_c_compiler_gnu=$ac_compiler_gnu
3677
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3680$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3681if test $ac_compiler_gnu = yes; then
3682  GCC=yes
3683else
3684  GCC=
3685fi
3686ac_test_CFLAGS=${CFLAGS+set}
3687ac_save_CFLAGS=$CFLAGS
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3689$as_echo_n "checking whether $CC accepts -g... " >&6; }
3690if ${ac_cv_prog_cc_g+:} false; then :
3691  $as_echo_n "(cached) " >&6
3692else
3693  ac_save_c_werror_flag=$ac_c_werror_flag
3694   ac_c_werror_flag=yes
3695   ac_cv_prog_cc_g=no
3696   CFLAGS="-g"
3697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708if ac_fn_c_try_compile "$LINENO"; then :
3709  ac_cv_prog_cc_g=yes
3710else
3711  CFLAGS=""
3712      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713/* end confdefs.h.  */
3714
3715int
3716main ()
3717{
3718
3719  ;
3720  return 0;
3721}
3722_ACEOF
3723if ac_fn_c_try_compile "$LINENO"; then :
3724
3725else
3726  ac_c_werror_flag=$ac_save_c_werror_flag
3727	 CFLAGS="-g"
3728	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h.  */
3730
3731int
3732main ()
3733{
3734
3735  ;
3736  return 0;
3737}
3738_ACEOF
3739if ac_fn_c_try_compile "$LINENO"; then :
3740  ac_cv_prog_cc_g=yes
3741fi
3742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743fi
3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745fi
3746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747   ac_c_werror_flag=$ac_save_c_werror_flag
3748fi
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3750$as_echo "$ac_cv_prog_cc_g" >&6; }
3751if test "$ac_test_CFLAGS" = set; then
3752  CFLAGS=$ac_save_CFLAGS
3753elif test $ac_cv_prog_cc_g = yes; then
3754  if test "$GCC" = yes; then
3755    CFLAGS="-g -O2"
3756  else
3757    CFLAGS="-g"
3758  fi
3759else
3760  if test "$GCC" = yes; then
3761    CFLAGS="-O2"
3762  else
3763    CFLAGS=
3764  fi
3765fi
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3767$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3768if ${ac_cv_prog_cc_c89+:} false; then :
3769  $as_echo_n "(cached) " >&6
3770else
3771  ac_cv_prog_cc_c89=no
3772ac_save_CC=$CC
3773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775#include <stdarg.h>
3776#include <stdio.h>
3777struct stat;
3778/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3779struct buf { int x; };
3780FILE * (*rcsopen) (struct buf *, struct stat *, int);
3781static char *e (p, i)
3782     char **p;
3783     int i;
3784{
3785  return p[i];
3786}
3787static char *f (char * (*g) (char **, int), char **p, ...)
3788{
3789  char *s;
3790  va_list v;
3791  va_start (v,p);
3792  s = g (p, va_arg (v,int));
3793  va_end (v);
3794  return s;
3795}
3796
3797/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3798   function prototypes and stuff, but not '\xHH' hex character constants.
3799   These don't provoke an error unfortunately, instead are silently treated
3800   as 'x'.  The following induces an error, until -std is added to get
3801   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3802   array size at least.  It's necessary to write '\x00'==0 to get something
3803   that's true only with -std.  */
3804int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3805
3806/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3807   inside strings and character constants.  */
3808#define FOO(x) 'x'
3809int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3810
3811int test (int i, double x);
3812struct s1 {int (*f) (int a);};
3813struct s2 {int (*f) (double a);};
3814int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3815int argc;
3816char **argv;
3817int
3818main ()
3819{
3820return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3826	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3827do
3828  CC="$ac_save_CC $ac_arg"
3829  if ac_fn_c_try_compile "$LINENO"; then :
3830  ac_cv_prog_cc_c89=$ac_arg
3831fi
3832rm -f core conftest.err conftest.$ac_objext
3833  test "x$ac_cv_prog_cc_c89" != "xno" && break
3834done
3835rm -f conftest.$ac_ext
3836CC=$ac_save_CC
3837
3838fi
3839# AC_CACHE_VAL
3840case "x$ac_cv_prog_cc_c89" in
3841  x)
3842    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3843$as_echo "none needed" >&6; } ;;
3844  xno)
3845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3846$as_echo "unsupported" >&6; } ;;
3847  *)
3848    CC="$CC $ac_cv_prog_cc_c89"
3849    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3850$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3851esac
3852if test "x$ac_cv_prog_cc_c89" != xno; then :
3853
3854fi
3855
3856ac_ext=c
3857ac_cpp='$CPP $CPPFLAGS'
3858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860ac_compiler_gnu=$ac_cv_c_compiler_gnu
3861
3862ac_ext=c
3863ac_cpp='$CPP $CPPFLAGS'
3864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3868$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3869if ${am_cv_prog_cc_c_o+:} false; then :
3870  $as_echo_n "(cached) " >&6
3871else
3872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874
3875int
3876main ()
3877{
3878
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883  # Make sure it works both with $CC and with simple cc.
3884  # Following AC_PROG_CC_C_O, we do the test twice because some
3885  # compilers refuse to overwrite an existing .o file with -o,
3886  # though they will create one.
3887  am_cv_prog_cc_c_o=yes
3888  for am_i in 1 2; do
3889    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3890   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3891   ac_status=$?
3892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893   (exit $ac_status); } \
3894         && test -f conftest2.$ac_objext; then
3895      : OK
3896    else
3897      am_cv_prog_cc_c_o=no
3898      break
3899    fi
3900  done
3901  rm -f core conftest*
3902  unset am_i
3903fi
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3905$as_echo "$am_cv_prog_cc_c_o" >&6; }
3906if test "$am_cv_prog_cc_c_o" != yes; then
3907   # Losing compiler, so override with the script.
3908   # FIXME: It is wrong to rewrite CC.
3909   # But if we don't then we get into trouble of one sort or another.
3910   # A longer-term fix would be to have automake use am__CC in this case,
3911   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3912   CC="$am_aux_dir/compile $CC"
3913fi
3914ac_ext=c
3915ac_cpp='$CPP $CPPFLAGS'
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920
3921depcc="$CC"   am_compiler_list=
3922
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3924$as_echo_n "checking dependency style of $depcc... " >&6; }
3925if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3926  $as_echo_n "(cached) " >&6
3927else
3928  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3929  # We make a subdir and do the tests there.  Otherwise we can end up
3930  # making bogus files that we don't know about and never remove.  For
3931  # instance it was reported that on HP-UX the gcc test will end up
3932  # making a dummy file named 'D' -- because '-MD' means "put the output
3933  # in D".
3934  rm -rf conftest.dir
3935  mkdir conftest.dir
3936  # Copy depcomp to subdir because otherwise we won't find it if we're
3937  # using a relative directory.
3938  cp "$am_depcomp" conftest.dir
3939  cd conftest.dir
3940  # We will build objects and dependencies in a subdirectory because
3941  # it helps to detect inapplicable dependency modes.  For instance
3942  # both Tru64's cc and ICC support -MD to output dependencies as a
3943  # side effect of compilation, but ICC will put the dependencies in
3944  # the current directory while Tru64 will put them in the object
3945  # directory.
3946  mkdir sub
3947
3948  am_cv_CC_dependencies_compiler_type=none
3949  if test "$am_compiler_list" = ""; then
3950     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3951  fi
3952  am__universal=false
3953  case " $depcc " in #(
3954     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3955     esac
3956
3957  for depmode in $am_compiler_list; do
3958    # Setup a source with many dependencies, because some compilers
3959    # like to wrap large dependency lists on column 80 (with \), and
3960    # we should not choose a depcomp mode which is confused by this.
3961    #
3962    # We need to recreate these files for each test, as the compiler may
3963    # overwrite some of them when testing with obscure command lines.
3964    # This happens at least with the AIX C compiler.
3965    : > sub/conftest.c
3966    for i in 1 2 3 4 5 6; do
3967      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3968      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3969      # Solaris 10 /bin/sh.
3970      echo '/* dummy */' > sub/conftst$i.h
3971    done
3972    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3973
3974    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3975    # mode.  It turns out that the SunPro C++ compiler does not properly
3976    # handle '-M -o', and we need to detect this.  Also, some Intel
3977    # versions had trouble with output in subdirs.
3978    am__obj=sub/conftest.${OBJEXT-o}
3979    am__minus_obj="-o $am__obj"
3980    case $depmode in
3981    gcc)
3982      # This depmode causes a compiler race in universal mode.
3983      test "$am__universal" = false || continue
3984      ;;
3985    nosideeffect)
3986      # After this tag, mechanisms are not by side-effect, so they'll
3987      # only be used when explicitly requested.
3988      if test "x$enable_dependency_tracking" = xyes; then
3989	continue
3990      else
3991	break
3992      fi
3993      ;;
3994    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3995      # This compiler won't grok '-c -o', but also, the minuso test has
3996      # not run yet.  These depmodes are late enough in the game, and
3997      # so weak that their functioning should not be impacted.
3998      am__obj=conftest.${OBJEXT-o}
3999      am__minus_obj=
4000      ;;
4001    none) break ;;
4002    esac
4003    if depmode=$depmode \
4004       source=sub/conftest.c object=$am__obj \
4005       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4006       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4007         >/dev/null 2>conftest.err &&
4008       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4009       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4010       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4011       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4012      # icc doesn't choke on unknown options, it will just issue warnings
4013      # or remarks (even with -Werror).  So we grep stderr for any message
4014      # that says an option was ignored or not supported.
4015      # When given -MP, icc 7.0 and 7.1 complain thusly:
4016      #   icc: Command line warning: ignoring option '-M'; no argument required
4017      # The diagnosis changed in icc 8.0:
4018      #   icc: Command line remark: option '-MP' not supported
4019      if (grep 'ignoring option' conftest.err ||
4020          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4021        am_cv_CC_dependencies_compiler_type=$depmode
4022        break
4023      fi
4024    fi
4025  done
4026
4027  cd ..
4028  rm -rf conftest.dir
4029else
4030  am_cv_CC_dependencies_compiler_type=none
4031fi
4032
4033fi
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4035$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4036CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4037
4038 if
4039  test "x$enable_dependency_tracking" != xno \
4040  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4041  am__fastdepCC_TRUE=
4042  am__fastdepCC_FALSE='#'
4043else
4044  am__fastdepCC_TRUE='#'
4045  am__fastdepCC_FALSE=
4046fi
4047
4048
4049
4050# Check whether --enable-largefile was given.
4051if test "${enable_largefile+set}" = set; then :
4052  enableval=$enable_largefile;
4053fi
4054
4055if test "$enable_largefile" != no; then
4056
4057  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4058$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4059if ${ac_cv_sys_largefile_CC+:} false; then :
4060  $as_echo_n "(cached) " >&6
4061else
4062  ac_cv_sys_largefile_CC=no
4063     if test "$GCC" != yes; then
4064       ac_save_CC=$CC
4065       while :; do
4066	 # IRIX 6.2 and later do not support large files by default,
4067	 # so use the C compiler's -n32 option if that helps.
4068	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069/* end confdefs.h.  */
4070#include <sys/types.h>
4071 /* Check that off_t can represent 2**63 - 1 correctly.
4072    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4073    since some C++ compilers masquerading as C compilers
4074    incorrectly reject 9223372036854775807.  */
4075#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4076  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4077		       && LARGE_OFF_T % 2147483647 == 1)
4078		      ? 1 : -1];
4079int
4080main ()
4081{
4082
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087	 if ac_fn_c_try_compile "$LINENO"; then :
4088  break
4089fi
4090rm -f core conftest.err conftest.$ac_objext
4091	 CC="$CC -n32"
4092	 if ac_fn_c_try_compile "$LINENO"; then :
4093  ac_cv_sys_largefile_CC=' -n32'; break
4094fi
4095rm -f core conftest.err conftest.$ac_objext
4096	 break
4097       done
4098       CC=$ac_save_CC
4099       rm -f conftest.$ac_ext
4100    fi
4101fi
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4103$as_echo "$ac_cv_sys_largefile_CC" >&6; }
4104  if test "$ac_cv_sys_largefile_CC" != no; then
4105    CC=$CC$ac_cv_sys_largefile_CC
4106  fi
4107
4108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4109$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4110if ${ac_cv_sys_file_offset_bits+:} false; then :
4111  $as_echo_n "(cached) " >&6
4112else
4113  while :; do
4114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115/* end confdefs.h.  */
4116#include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119    since some C++ compilers masquerading as C compilers
4120    incorrectly reject 9223372036854775807.  */
4121#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4122  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123		       && LARGE_OFF_T % 2147483647 == 1)
4124		      ? 1 : -1];
4125int
4126main ()
4127{
4128
4129  ;
4130  return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"; then :
4134  ac_cv_sys_file_offset_bits=no; break
4135fi
4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139#define _FILE_OFFSET_BITS 64
4140#include <sys/types.h>
4141 /* Check that off_t can represent 2**63 - 1 correctly.
4142    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4143    since some C++ compilers masquerading as C compilers
4144    incorrectly reject 9223372036854775807.  */
4145#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4146  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4147		       && LARGE_OFF_T % 2147483647 == 1)
4148		      ? 1 : -1];
4149int
4150main ()
4151{
4152
4153  ;
4154  return 0;
4155}
4156_ACEOF
4157if ac_fn_c_try_compile "$LINENO"; then :
4158  ac_cv_sys_file_offset_bits=64; break
4159fi
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161  ac_cv_sys_file_offset_bits=unknown
4162  break
4163done
4164fi
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4166$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4167case $ac_cv_sys_file_offset_bits in #(
4168  no | unknown) ;;
4169  *)
4170cat >>confdefs.h <<_ACEOF
4171#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4172_ACEOF
4173;;
4174esac
4175rm -rf conftest*
4176  if test $ac_cv_sys_file_offset_bits = unknown; then
4177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4178$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4179if ${ac_cv_sys_large_files+:} false; then :
4180  $as_echo_n "(cached) " >&6
4181else
4182  while :; do
4183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185#include <sys/types.h>
4186 /* Check that off_t can represent 2**63 - 1 correctly.
4187    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4188    since some C++ compilers masquerading as C compilers
4189    incorrectly reject 9223372036854775807.  */
4190#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4191  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4192		       && LARGE_OFF_T % 2147483647 == 1)
4193		      ? 1 : -1];
4194int
4195main ()
4196{
4197
4198  ;
4199  return 0;
4200}
4201_ACEOF
4202if ac_fn_c_try_compile "$LINENO"; then :
4203  ac_cv_sys_large_files=no; break
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207/* end confdefs.h.  */
4208#define _LARGE_FILES 1
4209#include <sys/types.h>
4210 /* Check that off_t can represent 2**63 - 1 correctly.
4211    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4212    since some C++ compilers masquerading as C compilers
4213    incorrectly reject 9223372036854775807.  */
4214#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4215  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4216		       && LARGE_OFF_T % 2147483647 == 1)
4217		      ? 1 : -1];
4218int
4219main ()
4220{
4221
4222  ;
4223  return 0;
4224}
4225_ACEOF
4226if ac_fn_c_try_compile "$LINENO"; then :
4227  ac_cv_sys_large_files=1; break
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230  ac_cv_sys_large_files=unknown
4231  break
4232done
4233fi
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4235$as_echo "$ac_cv_sys_large_files" >&6; }
4236case $ac_cv_sys_large_files in #(
4237  no | unknown) ;;
4238  *)
4239cat >>confdefs.h <<_ACEOF
4240#define _LARGE_FILES $ac_cv_sys_large_files
4241_ACEOF
4242;;
4243esac
4244rm -rf conftest*
4245  fi
4246
4247
4248fi
4249
4250
4251# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4264$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4265if ${ac_cv_prog_cc_c99+:} false; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268  ac_cv_prog_cc_c99=no
4269ac_save_CC=$CC
4270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271/* end confdefs.h.  */
4272#include <stdarg.h>
4273#include <stdbool.h>
4274#include <stdlib.h>
4275#include <wchar.h>
4276#include <stdio.h>
4277
4278// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4279#define debug(...) fprintf (stderr, __VA_ARGS__)
4280#define showlist(...) puts (#__VA_ARGS__)
4281#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4282static void
4283test_varargs_macros (void)
4284{
4285  int x = 1234;
4286  int y = 5678;
4287  debug ("Flag");
4288  debug ("X = %d\n", x);
4289  showlist (The first, second, and third items.);
4290  report (x>y, "x is %d but y is %d", x, y);
4291}
4292
4293// Check long long types.
4294#define BIG64 18446744073709551615ull
4295#define BIG32 4294967295ul
4296#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4297#if !BIG_OK
4298  your preprocessor is broken;
4299#endif
4300#if BIG_OK
4301#else
4302  your preprocessor is broken;
4303#endif
4304static long long int bignum = -9223372036854775807LL;
4305static unsigned long long int ubignum = BIG64;
4306
4307struct incomplete_array
4308{
4309  int datasize;
4310  double data[];
4311};
4312
4313struct named_init {
4314  int number;
4315  const wchar_t *name;
4316  double average;
4317};
4318
4319typedef const char *ccp;
4320
4321static inline int
4322test_restrict (ccp restrict text)
4323{
4324  // See if C++-style comments work.
4325  // Iterate through items via the restricted pointer.
4326  // Also check for declarations in for loops.
4327  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4328    continue;
4329  return 0;
4330}
4331
4332// Check varargs and va_copy.
4333static void
4334test_varargs (const char *format, ...)
4335{
4336  va_list args;
4337  va_start (args, format);
4338  va_list args_copy;
4339  va_copy (args_copy, args);
4340
4341  const char *str;
4342  int number;
4343  float fnumber;
4344
4345  while (*format)
4346    {
4347      switch (*format++)
4348	{
4349	case 's': // string
4350	  str = va_arg (args_copy, const char *);
4351	  break;
4352	case 'd': // int
4353	  number = va_arg (args_copy, int);
4354	  break;
4355	case 'f': // float
4356	  fnumber = va_arg (args_copy, double);
4357	  break;
4358	default:
4359	  break;
4360	}
4361    }
4362  va_end (args_copy);
4363  va_end (args);
4364}
4365
4366int
4367main ()
4368{
4369
4370  // Check bool.
4371  _Bool success = false;
4372
4373  // Check restrict.
4374  if (test_restrict ("String literal") == 0)
4375    success = true;
4376  char *restrict newvar = "Another string";
4377
4378  // Check varargs.
4379  test_varargs ("s, d' f .", "string", 65, 34.234);
4380  test_varargs_macros ();
4381
4382  // Check flexible array members.
4383  struct incomplete_array *ia =
4384    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4385  ia->datasize = 10;
4386  for (int i = 0; i < ia->datasize; ++i)
4387    ia->data[i] = i * 1.234;
4388
4389  // Check named initializers.
4390  struct named_init ni = {
4391    .number = 34,
4392    .name = L"Test wide string",
4393    .average = 543.34343,
4394  };
4395
4396  ni.number = 58;
4397
4398  int dynamic_array[ni.number];
4399  dynamic_array[ni.number - 1] = 543;
4400
4401  // work around unused variable warnings
4402  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4403	  || dynamic_array[ni.number - 1] != 543);
4404
4405  ;
4406  return 0;
4407}
4408_ACEOF
4409for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4410do
4411  CC="$ac_save_CC $ac_arg"
4412  if ac_fn_c_try_compile "$LINENO"; then :
4413  ac_cv_prog_cc_c99=$ac_arg
4414fi
4415rm -f core conftest.err conftest.$ac_objext
4416  test "x$ac_cv_prog_cc_c99" != "xno" && break
4417done
4418rm -f conftest.$ac_ext
4419CC=$ac_save_CC
4420
4421fi
4422# AC_CACHE_VAL
4423case "x$ac_cv_prog_cc_c99" in
4424  x)
4425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426$as_echo "none needed" >&6; } ;;
4427  xno)
4428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4429$as_echo "unsupported" >&6; } ;;
4430  *)
4431    CC="$CC $ac_cv_prog_cc_c99"
4432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4433$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4434esac
4435if test "x$ac_cv_prog_cc_c99" != xno; then :
4436
4437fi
4438
4439
4440ac_ext=c
4441ac_cpp='$CPP $CPPFLAGS'
4442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444ac_compiler_gnu=$ac_cv_c_compiler_gnu
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4446$as_echo_n "checking how to run the C preprocessor... " >&6; }
4447# On Suns, sometimes $CPP names a directory.
4448if test -n "$CPP" && test -d "$CPP"; then
4449  CPP=
4450fi
4451if test -z "$CPP"; then
4452  if ${ac_cv_prog_CPP+:} false; then :
4453  $as_echo_n "(cached) " >&6
4454else
4455      # Double quotes because CPP needs to be expanded
4456    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4457    do
4458      ac_preproc_ok=false
4459for ac_c_preproc_warn_flag in '' yes
4460do
4461  # Use a header file that comes with gcc, so configuring glibc
4462  # with a fresh cross-compiler works.
4463  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4464  # <limits.h> exists even on freestanding compilers.
4465  # On the NeXT, cc -E runs the code through the compiler's parser,
4466  # not just through cpp. "Syntax error" is here to catch this case.
4467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h.  */
4469#ifdef __STDC__
4470# include <limits.h>
4471#else
4472# include <assert.h>
4473#endif
4474		     Syntax error
4475_ACEOF
4476if ac_fn_c_try_cpp "$LINENO"; then :
4477
4478else
4479  # Broken: fails on valid input.
4480continue
4481fi
4482rm -f conftest.err conftest.i conftest.$ac_ext
4483
4484  # OK, works on sane cases.  Now check whether nonexistent headers
4485  # can be detected and how.
4486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488#include <ac_nonexistent.h>
4489_ACEOF
4490if ac_fn_c_try_cpp "$LINENO"; then :
4491  # Broken: success on invalid input.
4492continue
4493else
4494  # Passes both tests.
4495ac_preproc_ok=:
4496break
4497fi
4498rm -f conftest.err conftest.i conftest.$ac_ext
4499
4500done
4501# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4502rm -f conftest.i conftest.err conftest.$ac_ext
4503if $ac_preproc_ok; then :
4504  break
4505fi
4506
4507    done
4508    ac_cv_prog_CPP=$CPP
4509
4510fi
4511  CPP=$ac_cv_prog_CPP
4512else
4513  ac_cv_prog_CPP=$CPP
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4516$as_echo "$CPP" >&6; }
4517ac_preproc_ok=false
4518for ac_c_preproc_warn_flag in '' yes
4519do
4520  # Use a header file that comes with gcc, so configuring glibc
4521  # with a fresh cross-compiler works.
4522  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4523  # <limits.h> exists even on freestanding compilers.
4524  # On the NeXT, cc -E runs the code through the compiler's parser,
4525  # not just through cpp. "Syntax error" is here to catch this case.
4526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527/* end confdefs.h.  */
4528#ifdef __STDC__
4529# include <limits.h>
4530#else
4531# include <assert.h>
4532#endif
4533		     Syntax error
4534_ACEOF
4535if ac_fn_c_try_cpp "$LINENO"; then :
4536
4537else
4538  # Broken: fails on valid input.
4539continue
4540fi
4541rm -f conftest.err conftest.i conftest.$ac_ext
4542
4543  # OK, works on sane cases.  Now check whether nonexistent headers
4544  # can be detected and how.
4545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h.  */
4547#include <ac_nonexistent.h>
4548_ACEOF
4549if ac_fn_c_try_cpp "$LINENO"; then :
4550  # Broken: success on invalid input.
4551continue
4552else
4553  # Passes both tests.
4554ac_preproc_ok=:
4555break
4556fi
4557rm -f conftest.err conftest.i conftest.$ac_ext
4558
4559done
4560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4561rm -f conftest.i conftest.err conftest.$ac_ext
4562if $ac_preproc_ok; then :
4563
4564else
4565  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4568See \`config.log' for more details" "$LINENO" 5; }
4569fi
4570
4571ac_ext=c
4572ac_cpp='$CPP $CPPFLAGS'
4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4579$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4580if ${ac_cv_path_GREP+:} false; then :
4581  $as_echo_n "(cached) " >&6
4582else
4583  if test -z "$GREP"; then
4584  ac_path_GREP_found=false
4585  # Loop through the user's path and test for each of PROGNAME-LIST
4586  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588do
4589  IFS=$as_save_IFS
4590  test -z "$as_dir" && as_dir=.
4591    for ac_prog in grep ggrep; do
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4594      as_fn_executable_p "$ac_path_GREP" || continue
4595# Check for GNU ac_path_GREP and select it if it is found.
4596  # Check for GNU $ac_path_GREP
4597case `"$ac_path_GREP" --version 2>&1` in
4598*GNU*)
4599  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4600*)
4601  ac_count=0
4602  $as_echo_n 0123456789 >"conftest.in"
4603  while :
4604  do
4605    cat "conftest.in" "conftest.in" >"conftest.tmp"
4606    mv "conftest.tmp" "conftest.in"
4607    cp "conftest.in" "conftest.nl"
4608    $as_echo 'GREP' >> "conftest.nl"
4609    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611    as_fn_arith $ac_count + 1 && ac_count=$as_val
4612    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4613      # Best one so far, save it but keep looking for a better one
4614      ac_cv_path_GREP="$ac_path_GREP"
4615      ac_path_GREP_max=$ac_count
4616    fi
4617    # 10*(2^10) chars as input seems more than enough
4618    test $ac_count -gt 10 && break
4619  done
4620  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621esac
4622
4623      $ac_path_GREP_found && break 3
4624    done
4625  done
4626  done
4627IFS=$as_save_IFS
4628  if test -z "$ac_cv_path_GREP"; then
4629    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630  fi
4631else
4632  ac_cv_path_GREP=$GREP
4633fi
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4637$as_echo "$ac_cv_path_GREP" >&6; }
4638 GREP="$ac_cv_path_GREP"
4639
4640
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4642$as_echo_n "checking for egrep... " >&6; }
4643if ${ac_cv_path_EGREP+:} false; then :
4644  $as_echo_n "(cached) " >&6
4645else
4646  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4647   then ac_cv_path_EGREP="$GREP -E"
4648   else
4649     if test -z "$EGREP"; then
4650  ac_path_EGREP_found=false
4651  # Loop through the user's path and test for each of PROGNAME-LIST
4652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4654do
4655  IFS=$as_save_IFS
4656  test -z "$as_dir" && as_dir=.
4657    for ac_prog in egrep; do
4658    for ac_exec_ext in '' $ac_executable_extensions; do
4659      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4660      as_fn_executable_p "$ac_path_EGREP" || continue
4661# Check for GNU ac_path_EGREP and select it if it is found.
4662  # Check for GNU $ac_path_EGREP
4663case `"$ac_path_EGREP" --version 2>&1` in
4664*GNU*)
4665  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4666*)
4667  ac_count=0
4668  $as_echo_n 0123456789 >"conftest.in"
4669  while :
4670  do
4671    cat "conftest.in" "conftest.in" >"conftest.tmp"
4672    mv "conftest.tmp" "conftest.in"
4673    cp "conftest.in" "conftest.nl"
4674    $as_echo 'EGREP' >> "conftest.nl"
4675    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677    as_fn_arith $ac_count + 1 && ac_count=$as_val
4678    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4679      # Best one so far, save it but keep looking for a better one
4680      ac_cv_path_EGREP="$ac_path_EGREP"
4681      ac_path_EGREP_max=$ac_count
4682    fi
4683    # 10*(2^10) chars as input seems more than enough
4684    test $ac_count -gt 10 && break
4685  done
4686  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4687esac
4688
4689      $ac_path_EGREP_found && break 3
4690    done
4691  done
4692  done
4693IFS=$as_save_IFS
4694  if test -z "$ac_cv_path_EGREP"; then
4695    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4696  fi
4697else
4698  ac_cv_path_EGREP=$EGREP
4699fi
4700
4701   fi
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4704$as_echo "$ac_cv_path_EGREP" >&6; }
4705 EGREP="$ac_cv_path_EGREP"
4706
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4709$as_echo_n "checking for ANSI C header files... " >&6; }
4710if ${ac_cv_header_stdc+:} false; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4714/* end confdefs.h.  */
4715#include <stdlib.h>
4716#include <stdarg.h>
4717#include <string.h>
4718#include <float.h>
4719
4720int
4721main ()
4722{
4723
4724  ;
4725  return 0;
4726}
4727_ACEOF
4728if ac_fn_c_try_compile "$LINENO"; then :
4729  ac_cv_header_stdc=yes
4730else
4731  ac_cv_header_stdc=no
4732fi
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734
4735if test $ac_cv_header_stdc = yes; then
4736  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h.  */
4739#include <string.h>
4740
4741_ACEOF
4742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4743  $EGREP "memchr" >/dev/null 2>&1; then :
4744
4745else
4746  ac_cv_header_stdc=no
4747fi
4748rm -f conftest*
4749
4750fi
4751
4752if test $ac_cv_header_stdc = yes; then
4753  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755/* end confdefs.h.  */
4756#include <stdlib.h>
4757
4758_ACEOF
4759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4760  $EGREP "free" >/dev/null 2>&1; then :
4761
4762else
4763  ac_cv_header_stdc=no
4764fi
4765rm -f conftest*
4766
4767fi
4768
4769if test $ac_cv_header_stdc = yes; then
4770  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4771  if test "$cross_compiling" = yes; then :
4772  :
4773else
4774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776#include <ctype.h>
4777#include <stdlib.h>
4778#if ((' ' & 0x0FF) == 0x020)
4779# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4780# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4781#else
4782# define ISLOWER(c) \
4783		   (('a' <= (c) && (c) <= 'i') \
4784		     || ('j' <= (c) && (c) <= 'r') \
4785		     || ('s' <= (c) && (c) <= 'z'))
4786# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4787#endif
4788
4789#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4790int
4791main ()
4792{
4793  int i;
4794  for (i = 0; i < 256; i++)
4795    if (XOR (islower (i), ISLOWER (i))
4796	|| toupper (i) != TOUPPER (i))
4797      return 2;
4798  return 0;
4799}
4800_ACEOF
4801if ac_fn_c_try_run "$LINENO"; then :
4802
4803else
4804  ac_cv_header_stdc=no
4805fi
4806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4807  conftest.$ac_objext conftest.beam conftest.$ac_ext
4808fi
4809
4810fi
4811fi
4812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4813$as_echo "$ac_cv_header_stdc" >&6; }
4814if test $ac_cv_header_stdc = yes; then
4815
4816$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4817
4818fi
4819
4820# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4821for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4822		  inttypes.h stdint.h unistd.h
4823do :
4824  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4825ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4826"
4827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4828  cat >>confdefs.h <<_ACEOF
4829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4830_ACEOF
4831
4832fi
4833
4834done
4835
4836
4837
4838
4839
4840
4841ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4842if test "x$ac_cv_have_decl___clang__" = xyes; then :
4843  CLANGCC="yes"
4844else
4845  CLANGCC="no"
4846fi
4847
4848ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4849if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4850  INTELCC="yes"
4851else
4852  INTELCC="no"
4853fi
4854
4855ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4856if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4857  SUNCC="yes"
4858else
4859  SUNCC="no"
4860fi
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4871	if test -n "$ac_tool_prefix"; then
4872  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4873set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if ${ac_cv_path_PKG_CONFIG+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  case $PKG_CONFIG in
4880  [\\/]* | ?:[\\/]*)
4881  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4882  ;;
4883  *)
4884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887  IFS=$as_save_IFS
4888  test -z "$as_dir" && as_dir=.
4889    for ac_exec_ext in '' $ac_executable_extensions; do
4890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893    break 2
4894  fi
4895done
4896  done
4897IFS=$as_save_IFS
4898
4899  ;;
4900esac
4901fi
4902PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4903if test -n "$PKG_CONFIG"; then
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4905$as_echo "$PKG_CONFIG" >&6; }
4906else
4907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908$as_echo "no" >&6; }
4909fi
4910
4911
4912fi
4913if test -z "$ac_cv_path_PKG_CONFIG"; then
4914  ac_pt_PKG_CONFIG=$PKG_CONFIG
4915  # Extract the first word of "pkg-config", so it can be a program name with args.
4916set dummy pkg-config; ac_word=$2
4917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918$as_echo_n "checking for $ac_word... " >&6; }
4919if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4920  $as_echo_n "(cached) " >&6
4921else
4922  case $ac_pt_PKG_CONFIG in
4923  [\\/]* | ?:[\\/]*)
4924  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4925  ;;
4926  *)
4927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930  IFS=$as_save_IFS
4931  test -z "$as_dir" && as_dir=.
4932    for ac_exec_ext in '' $ac_executable_extensions; do
4933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4934    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936    break 2
4937  fi
4938done
4939  done
4940IFS=$as_save_IFS
4941
4942  ;;
4943esac
4944fi
4945ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4946if test -n "$ac_pt_PKG_CONFIG"; then
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4948$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4949else
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951$as_echo "no" >&6; }
4952fi
4953
4954  if test "x$ac_pt_PKG_CONFIG" = x; then
4955    PKG_CONFIG=""
4956  else
4957    case $cross_compiling:$ac_tool_warned in
4958yes:)
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961ac_tool_warned=yes ;;
4962esac
4963    PKG_CONFIG=$ac_pt_PKG_CONFIG
4964  fi
4965else
4966  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4967fi
4968
4969fi
4970if test -n "$PKG_CONFIG"; then
4971	_pkg_min_version=0.9.0
4972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4973$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4974	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4975		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4976$as_echo "yes" >&6; }
4977	else
4978		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979$as_echo "no" >&6; }
4980		PKG_CONFIG=""
4981	fi
4982fi
4983# Make sure we can run config.sub.
4984$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4985  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4986
4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4988$as_echo_n "checking build system type... " >&6; }
4989if ${ac_cv_build+:} false; then :
4990  $as_echo_n "(cached) " >&6
4991else
4992  ac_build_alias=$build_alias
4993test "x$ac_build_alias" = x &&
4994  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4995test "x$ac_build_alias" = x &&
4996  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4997ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4998  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4999
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5002$as_echo "$ac_cv_build" >&6; }
5003case $ac_cv_build in
5004*-*-*) ;;
5005*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5006esac
5007build=$ac_cv_build
5008ac_save_IFS=$IFS; IFS='-'
5009set x $ac_cv_build
5010shift
5011build_cpu=$1
5012build_vendor=$2
5013shift; shift
5014# Remember, the first character of IFS is used to create $*,
5015# except with old shells:
5016build_os=$*
5017IFS=$ac_save_IFS
5018case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5019
5020
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5022$as_echo_n "checking host system type... " >&6; }
5023if ${ac_cv_host+:} false; then :
5024  $as_echo_n "(cached) " >&6
5025else
5026  if test "x$host_alias" = x; then
5027  ac_cv_host=$ac_cv_build
5028else
5029  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5030    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5031fi
5032
5033fi
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5035$as_echo "$ac_cv_host" >&6; }
5036case $ac_cv_host in
5037*-*-*) ;;
5038*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5039esac
5040host=$ac_cv_host
5041ac_save_IFS=$IFS; IFS='-'
5042set x $ac_cv_host
5043shift
5044host_cpu=$1
5045host_vendor=$2
5046shift; shift
5047# Remember, the first character of IFS is used to create $*,
5048# except with old shells:
5049host_os=$*
5050IFS=$ac_save_IFS
5051case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5052
5053
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5055$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5056if ${ac_cv_path_SED+:} false; then :
5057  $as_echo_n "(cached) " >&6
5058else
5059            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5060     for ac_i in 1 2 3 4 5 6 7; do
5061       ac_script="$ac_script$as_nl$ac_script"
5062     done
5063     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5064     { ac_script=; unset ac_script;}
5065     if test -z "$SED"; then
5066  ac_path_SED_found=false
5067  # Loop through the user's path and test for each of PROGNAME-LIST
5068  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071  IFS=$as_save_IFS
5072  test -z "$as_dir" && as_dir=.
5073    for ac_prog in sed gsed; do
5074    for ac_exec_ext in '' $ac_executable_extensions; do
5075      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5076      as_fn_executable_p "$ac_path_SED" || continue
5077# Check for GNU ac_path_SED and select it if it is found.
5078  # Check for GNU $ac_path_SED
5079case `"$ac_path_SED" --version 2>&1` in
5080*GNU*)
5081  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5082*)
5083  ac_count=0
5084  $as_echo_n 0123456789 >"conftest.in"
5085  while :
5086  do
5087    cat "conftest.in" "conftest.in" >"conftest.tmp"
5088    mv "conftest.tmp" "conftest.in"
5089    cp "conftest.in" "conftest.nl"
5090    $as_echo '' >> "conftest.nl"
5091    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5092    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5093    as_fn_arith $ac_count + 1 && ac_count=$as_val
5094    if test $ac_count -gt ${ac_path_SED_max-0}; then
5095      # Best one so far, save it but keep looking for a better one
5096      ac_cv_path_SED="$ac_path_SED"
5097      ac_path_SED_max=$ac_count
5098    fi
5099    # 10*(2^10) chars as input seems more than enough
5100    test $ac_count -gt 10 && break
5101  done
5102  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5103esac
5104
5105      $ac_path_SED_found && break 3
5106    done
5107  done
5108  done
5109IFS=$as_save_IFS
5110  if test -z "$ac_cv_path_SED"; then
5111    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5112  fi
5113else
5114  ac_cv_path_SED=$SED
5115fi
5116
5117fi
5118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5119$as_echo "$ac_cv_path_SED" >&6; }
5120 SED="$ac_cv_path_SED"
5121  rm -f conftest.sed
5122
5123
5124
5125
5126
5127
5128# Check whether --enable-selective-werror was given.
5129if test "${enable_selective_werror+set}" = set; then :
5130  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5131else
5132  SELECTIVE_WERROR=yes
5133fi
5134
5135
5136
5137
5138
5139# -v is too short to test reliably with XORG_TESTSET_CFLAG
5140if test "x$SUNCC" = "xyes"; then
5141    BASE_CFLAGS="-v"
5142else
5143    BASE_CFLAGS=""
5144fi
5145
5146# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160xorg_testset_save_CFLAGS="$CFLAGS"
5161
5162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5163	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5167  $as_echo_n "(cached) " >&6
5168else
5169  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170/* end confdefs.h.  */
5171int i;
5172_ACEOF
5173if ac_fn_c_try_compile "$LINENO"; then :
5174  xorg_cv_cc_flag_unknown_warning_option=yes
5175else
5176  xorg_cv_cc_flag_unknown_warning_option=no
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179fi
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5182	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5183	CFLAGS="$xorg_testset_save_CFLAGS"
5184fi
5185
5186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5187	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5188		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189	fi
5190	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5194  $as_echo_n "(cached) " >&6
5195else
5196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197/* end confdefs.h.  */
5198int i;
5199_ACEOF
5200if ac_fn_c_try_compile "$LINENO"; then :
5201  xorg_cv_cc_flag_unused_command_line_argument=yes
5202else
5203  xorg_cv_cc_flag_unused_command_line_argument=no
5204fi
5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206fi
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5209	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5210	CFLAGS="$xorg_testset_save_CFLAGS"
5211fi
5212
5213found="no"
5214
5215	if test $found = "no" ; then
5216		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5217			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5218		fi
5219
5220		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5221			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5222		fi
5223
5224		CFLAGS="$CFLAGS -Wall"
5225
5226		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5227$as_echo_n "checking if $CC supports -Wall... " >&6; }
5228		cacheid=xorg_cv_cc_flag__Wall
5229		if eval \${$cacheid+:} false; then :
5230  $as_echo_n "(cached) " >&6
5231else
5232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h.  */
5234int i;
5235int
5236main ()
5237{
5238
5239  ;
5240  return 0;
5241}
5242_ACEOF
5243if ac_fn_c_try_link "$LINENO"; then :
5244  eval $cacheid=yes
5245else
5246  eval $cacheid=no
5247fi
5248rm -f core conftest.err conftest.$ac_objext \
5249    conftest$ac_exeext conftest.$ac_ext
5250fi
5251
5252
5253		CFLAGS="$xorg_testset_save_CFLAGS"
5254
5255		eval supported=\$$cacheid
5256		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5257$as_echo "$supported" >&6; }
5258		if test "$supported" = "yes" ; then
5259			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5260			found="yes"
5261		fi
5262	fi
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278xorg_testset_save_CFLAGS="$CFLAGS"
5279
5280if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5281	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5283$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5284if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5285  $as_echo_n "(cached) " >&6
5286else
5287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h.  */
5289int i;
5290_ACEOF
5291if ac_fn_c_try_compile "$LINENO"; then :
5292  xorg_cv_cc_flag_unknown_warning_option=yes
5293else
5294  xorg_cv_cc_flag_unknown_warning_option=no
5295fi
5296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297fi
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5299$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5300	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5301	CFLAGS="$xorg_testset_save_CFLAGS"
5302fi
5303
5304if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5305	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5306		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5307	fi
5308	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5310$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5311if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5312  $as_echo_n "(cached) " >&6
5313else
5314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h.  */
5316int i;
5317_ACEOF
5318if ac_fn_c_try_compile "$LINENO"; then :
5319  xorg_cv_cc_flag_unused_command_line_argument=yes
5320else
5321  xorg_cv_cc_flag_unused_command_line_argument=no
5322fi
5323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324fi
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5326$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5327	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5328	CFLAGS="$xorg_testset_save_CFLAGS"
5329fi
5330
5331found="no"
5332
5333	if test $found = "no" ; then
5334		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336		fi
5337
5338		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5339			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5340		fi
5341
5342		CFLAGS="$CFLAGS -Wpointer-arith"
5343
5344		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5345$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5346		cacheid=xorg_cv_cc_flag__Wpointer_arith
5347		if eval \${$cacheid+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351/* end confdefs.h.  */
5352int i;
5353int
5354main ()
5355{
5356
5357  ;
5358  return 0;
5359}
5360_ACEOF
5361if ac_fn_c_try_link "$LINENO"; then :
5362  eval $cacheid=yes
5363else
5364  eval $cacheid=no
5365fi
5366rm -f core conftest.err conftest.$ac_objext \
5367    conftest$ac_exeext conftest.$ac_ext
5368fi
5369
5370
5371		CFLAGS="$xorg_testset_save_CFLAGS"
5372
5373		eval supported=\$$cacheid
5374		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5375$as_echo "$supported" >&6; }
5376		if test "$supported" = "yes" ; then
5377			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5378			found="yes"
5379		fi
5380	fi
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396xorg_testset_save_CFLAGS="$CFLAGS"
5397
5398if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5399	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5400	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5401$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5402if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406/* end confdefs.h.  */
5407int i;
5408_ACEOF
5409if ac_fn_c_try_compile "$LINENO"; then :
5410  xorg_cv_cc_flag_unknown_warning_option=yes
5411else
5412  xorg_cv_cc_flag_unknown_warning_option=no
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5417$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5418	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5419	CFLAGS="$xorg_testset_save_CFLAGS"
5420fi
5421
5422if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5423	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5424		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	fi
5426	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5428$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5429if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5430  $as_echo_n "(cached) " >&6
5431else
5432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h.  */
5434int i;
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437  xorg_cv_cc_flag_unused_command_line_argument=yes
5438else
5439  xorg_cv_cc_flag_unused_command_line_argument=no
5440fi
5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442fi
5443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5444$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5446	CFLAGS="$xorg_testset_save_CFLAGS"
5447fi
5448
5449found="no"
5450
5451	if test $found = "no" ; then
5452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454		fi
5455
5456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5458		fi
5459
5460		CFLAGS="$CFLAGS -Wmissing-declarations"
5461
5462		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5463$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5464		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5465		if eval \${$cacheid+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471int
5472main ()
5473{
5474
5475  ;
5476  return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_link "$LINENO"; then :
5480  eval $cacheid=yes
5481else
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493$as_echo "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514xorg_testset_save_CFLAGS="$CFLAGS"
5515
5516if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5517	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5518	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5519$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5520if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524/* end confdefs.h.  */
5525int i;
5526_ACEOF
5527if ac_fn_c_try_compile "$LINENO"; then :
5528  xorg_cv_cc_flag_unknown_warning_option=yes
5529else
5530  xorg_cv_cc_flag_unknown_warning_option=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533fi
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	fi
5544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5548  $as_echo_n "(cached) " >&6
5549else
5550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551/* end confdefs.h.  */
5552int i;
5553_ACEOF
5554if ac_fn_c_try_compile "$LINENO"; then :
5555  xorg_cv_cc_flag_unused_command_line_argument=yes
5556else
5557  xorg_cv_cc_flag_unused_command_line_argument=no
5558fi
5559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5562$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5563	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5564	CFLAGS="$xorg_testset_save_CFLAGS"
5565fi
5566
5567found="no"
5568
5569	if test $found = "no" ; then
5570		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572		fi
5573
5574		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5575			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576		fi
5577
5578		CFLAGS="$CFLAGS -Wformat=2"
5579
5580		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5581$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5582		cacheid=xorg_cv_cc_flag__Wformat_2
5583		if eval \${$cacheid+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589int
5590main ()
5591{
5592
5593  ;
5594  return 0;
5595}
5596_ACEOF
5597if ac_fn_c_try_link "$LINENO"; then :
5598  eval $cacheid=yes
5599else
5600  eval $cacheid=no
5601fi
5602rm -f core conftest.err conftest.$ac_objext \
5603    conftest$ac_exeext conftest.$ac_ext
5604fi
5605
5606
5607		CFLAGS="$xorg_testset_save_CFLAGS"
5608
5609		eval supported=\$$cacheid
5610		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5611$as_echo "$supported" >&6; }
5612		if test "$supported" = "yes" ; then
5613			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5614			found="yes"
5615		fi
5616	fi
5617
5618	if test $found = "no" ; then
5619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621		fi
5622
5623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5625		fi
5626
5627		CFLAGS="$CFLAGS -Wformat"
5628
5629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5630$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5631		cacheid=xorg_cv_cc_flag__Wformat
5632		if eval \${$cacheid+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637int i;
5638int
5639main ()
5640{
5641
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_link "$LINENO"; then :
5647  eval $cacheid=yes
5648else
5649  eval $cacheid=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext \
5652    conftest$ac_exeext conftest.$ac_ext
5653fi
5654
5655
5656		CFLAGS="$xorg_testset_save_CFLAGS"
5657
5658		eval supported=\$$cacheid
5659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5660$as_echo "$supported" >&6; }
5661		if test "$supported" = "yes" ; then
5662			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5663			found="yes"
5664		fi
5665	fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683xorg_testset_save_CFLAGS="$CFLAGS"
5684
5685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693/* end confdefs.h.  */
5694int i;
5695_ACEOF
5696if ac_fn_c_try_compile "$LINENO"; then :
5697  xorg_cv_cc_flag_unknown_warning_option=yes
5698else
5699  xorg_cv_cc_flag_unknown_warning_option=no
5700fi
5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702fi
5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5706	CFLAGS="$xorg_testset_save_CFLAGS"
5707fi
5708
5709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5712	fi
5713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720/* end confdefs.h.  */
5721int i;
5722_ACEOF
5723if ac_fn_c_try_compile "$LINENO"; then :
5724  xorg_cv_cc_flag_unused_command_line_argument=yes
5725else
5726  xorg_cv_cc_flag_unused_command_line_argument=no
5727fi
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5733	CFLAGS="$xorg_testset_save_CFLAGS"
5734fi
5735
5736found="no"
5737
5738	if test $found = "no" ; then
5739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5741		fi
5742
5743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5745		fi
5746
5747		CFLAGS="$CFLAGS -Wstrict-prototypes"
5748
5749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5750$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5751		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5752		if eval \${$cacheid+:} false; then :
5753  $as_echo_n "(cached) " >&6
5754else
5755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756/* end confdefs.h.  */
5757int i;
5758int
5759main ()
5760{
5761
5762  ;
5763  return 0;
5764}
5765_ACEOF
5766if ac_fn_c_try_link "$LINENO"; then :
5767  eval $cacheid=yes
5768else
5769  eval $cacheid=no
5770fi
5771rm -f core conftest.err conftest.$ac_objext \
5772    conftest$ac_exeext conftest.$ac_ext
5773fi
5774
5775
5776		CFLAGS="$xorg_testset_save_CFLAGS"
5777
5778		eval supported=\$$cacheid
5779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5780$as_echo "$supported" >&6; }
5781		if test "$supported" = "yes" ; then
5782			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5783			found="yes"
5784		fi
5785	fi
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801xorg_testset_save_CFLAGS="$CFLAGS"
5802
5803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5808  $as_echo_n "(cached) " >&6
5809else
5810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812int i;
5813_ACEOF
5814if ac_fn_c_try_compile "$LINENO"; then :
5815  xorg_cv_cc_flag_unknown_warning_option=yes
5816else
5817  xorg_cv_cc_flag_unknown_warning_option=no
5818fi
5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820fi
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5824	CFLAGS="$xorg_testset_save_CFLAGS"
5825fi
5826
5827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830	fi
5831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5835  $as_echo_n "(cached) " >&6
5836else
5837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839int i;
5840_ACEOF
5841if ac_fn_c_try_compile "$LINENO"; then :
5842  xorg_cv_cc_flag_unused_command_line_argument=yes
5843else
5844  xorg_cv_cc_flag_unused_command_line_argument=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847fi
5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5851	CFLAGS="$xorg_testset_save_CFLAGS"
5852fi
5853
5854found="no"
5855
5856	if test $found = "no" ; then
5857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859		fi
5860
5861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863		fi
5864
5865		CFLAGS="$CFLAGS -Wmissing-prototypes"
5866
5867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5868$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5869		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5870		if eval \${$cacheid+:} false; then :
5871  $as_echo_n "(cached) " >&6
5872else
5873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h.  */
5875int i;
5876int
5877main ()
5878{
5879
5880  ;
5881  return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_link "$LINENO"; then :
5885  eval $cacheid=yes
5886else
5887  eval $cacheid=no
5888fi
5889rm -f core conftest.err conftest.$ac_objext \
5890    conftest$ac_exeext conftest.$ac_ext
5891fi
5892
5893
5894		CFLAGS="$xorg_testset_save_CFLAGS"
5895
5896		eval supported=\$$cacheid
5897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5898$as_echo "$supported" >&6; }
5899		if test "$supported" = "yes" ; then
5900			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5901			found="yes"
5902		fi
5903	fi
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919xorg_testset_save_CFLAGS="$CFLAGS"
5920
5921if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5922	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5923	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5924$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5925if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5926  $as_echo_n "(cached) " >&6
5927else
5928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929/* end confdefs.h.  */
5930int i;
5931_ACEOF
5932if ac_fn_c_try_compile "$LINENO"; then :
5933  xorg_cv_cc_flag_unknown_warning_option=yes
5934else
5935  xorg_cv_cc_flag_unknown_warning_option=no
5936fi
5937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5938fi
5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5940$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5941	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5942	CFLAGS="$xorg_testset_save_CFLAGS"
5943fi
5944
5945if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5946	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5947		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5948	fi
5949	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5951$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5952if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5953  $as_echo_n "(cached) " >&6
5954else
5955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h.  */
5957int i;
5958_ACEOF
5959if ac_fn_c_try_compile "$LINENO"; then :
5960  xorg_cv_cc_flag_unused_command_line_argument=yes
5961else
5962  xorg_cv_cc_flag_unused_command_line_argument=no
5963fi
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965fi
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5967$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5968	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5969	CFLAGS="$xorg_testset_save_CFLAGS"
5970fi
5971
5972found="no"
5973
5974	if test $found = "no" ; then
5975		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5976			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977		fi
5978
5979		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5980			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981		fi
5982
5983		CFLAGS="$CFLAGS -Wnested-externs"
5984
5985		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5986$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5987		cacheid=xorg_cv_cc_flag__Wnested_externs
5988		if eval \${$cacheid+:} false; then :
5989  $as_echo_n "(cached) " >&6
5990else
5991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h.  */
5993int i;
5994int
5995main ()
5996{
5997
5998  ;
5999  return 0;
6000}
6001_ACEOF
6002if ac_fn_c_try_link "$LINENO"; then :
6003  eval $cacheid=yes
6004else
6005  eval $cacheid=no
6006fi
6007rm -f core conftest.err conftest.$ac_objext \
6008    conftest$ac_exeext conftest.$ac_ext
6009fi
6010
6011
6012		CFLAGS="$xorg_testset_save_CFLAGS"
6013
6014		eval supported=\$$cacheid
6015		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6016$as_echo "$supported" >&6; }
6017		if test "$supported" = "yes" ; then
6018			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6019			found="yes"
6020		fi
6021	fi
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037xorg_testset_save_CFLAGS="$CFLAGS"
6038
6039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6042$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6043if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6044  $as_echo_n "(cached) " >&6
6045else
6046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h.  */
6048int i;
6049_ACEOF
6050if ac_fn_c_try_compile "$LINENO"; then :
6051  xorg_cv_cc_flag_unknown_warning_option=yes
6052else
6053  xorg_cv_cc_flag_unknown_warning_option=no
6054fi
6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056fi
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6058$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6059	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6060	CFLAGS="$xorg_testset_save_CFLAGS"
6061fi
6062
6063if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6064	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6065		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6066	fi
6067	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6069$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6070if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6071  $as_echo_n "(cached) " >&6
6072else
6073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h.  */
6075int i;
6076_ACEOF
6077if ac_fn_c_try_compile "$LINENO"; then :
6078  xorg_cv_cc_flag_unused_command_line_argument=yes
6079else
6080  xorg_cv_cc_flag_unused_command_line_argument=no
6081fi
6082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6083fi
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6085$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6086	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6087	CFLAGS="$xorg_testset_save_CFLAGS"
6088fi
6089
6090found="no"
6091
6092	if test $found = "no" ; then
6093		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6094			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095		fi
6096
6097		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6098			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099		fi
6100
6101		CFLAGS="$CFLAGS -Wbad-function-cast"
6102
6103		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6104$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
6105		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6106		if eval \${$cacheid+:} false; then :
6107  $as_echo_n "(cached) " >&6
6108else
6109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h.  */
6111int i;
6112int
6113main ()
6114{
6115
6116  ;
6117  return 0;
6118}
6119_ACEOF
6120if ac_fn_c_try_link "$LINENO"; then :
6121  eval $cacheid=yes
6122else
6123  eval $cacheid=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext \
6126    conftest$ac_exeext conftest.$ac_ext
6127fi
6128
6129
6130		CFLAGS="$xorg_testset_save_CFLAGS"
6131
6132		eval supported=\$$cacheid
6133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6134$as_echo "$supported" >&6; }
6135		if test "$supported" = "yes" ; then
6136			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6137			found="yes"
6138		fi
6139	fi
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155xorg_testset_save_CFLAGS="$CFLAGS"
6156
6157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6159	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6160$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6161if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165/* end confdefs.h.  */
6166int i;
6167_ACEOF
6168if ac_fn_c_try_compile "$LINENO"; then :
6169  xorg_cv_cc_flag_unknown_warning_option=yes
6170else
6171  xorg_cv_cc_flag_unknown_warning_option=no
6172fi
6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174fi
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6176$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6177	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6178	CFLAGS="$xorg_testset_save_CFLAGS"
6179fi
6180
6181if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6182	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184	fi
6185	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6187$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6188if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6189  $as_echo_n "(cached) " >&6
6190else
6191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193int i;
6194_ACEOF
6195if ac_fn_c_try_compile "$LINENO"; then :
6196  xorg_cv_cc_flag_unused_command_line_argument=yes
6197else
6198  xorg_cv_cc_flag_unused_command_line_argument=no
6199fi
6200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6203$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6204	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6205	CFLAGS="$xorg_testset_save_CFLAGS"
6206fi
6207
6208found="no"
6209
6210	if test $found = "no" ; then
6211		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6212			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6213		fi
6214
6215		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6216			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6217		fi
6218
6219		CFLAGS="$CFLAGS -Wold-style-definition"
6220
6221		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6222$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
6223		cacheid=xorg_cv_cc_flag__Wold_style_definition
6224		if eval \${$cacheid+:} false; then :
6225  $as_echo_n "(cached) " >&6
6226else
6227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228/* end confdefs.h.  */
6229int i;
6230int
6231main ()
6232{
6233
6234  ;
6235  return 0;
6236}
6237_ACEOF
6238if ac_fn_c_try_link "$LINENO"; then :
6239  eval $cacheid=yes
6240else
6241  eval $cacheid=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext \
6244    conftest$ac_exeext conftest.$ac_ext
6245fi
6246
6247
6248		CFLAGS="$xorg_testset_save_CFLAGS"
6249
6250		eval supported=\$$cacheid
6251		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6252$as_echo "$supported" >&6; }
6253		if test "$supported" = "yes" ; then
6254			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6255			found="yes"
6256		fi
6257	fi
6258
6259	if test $found = "no" ; then
6260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262		fi
6263
6264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266		fi
6267
6268		CFLAGS="$CFLAGS -fd"
6269
6270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6271$as_echo_n "checking if $CC supports -fd... " >&6; }
6272		cacheid=xorg_cv_cc_flag__fd
6273		if eval \${$cacheid+:} false; then :
6274  $as_echo_n "(cached) " >&6
6275else
6276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277/* end confdefs.h.  */
6278int i;
6279int
6280main ()
6281{
6282
6283  ;
6284  return 0;
6285}
6286_ACEOF
6287if ac_fn_c_try_link "$LINENO"; then :
6288  eval $cacheid=yes
6289else
6290  eval $cacheid=no
6291fi
6292rm -f core conftest.err conftest.$ac_objext \
6293    conftest$ac_exeext conftest.$ac_ext
6294fi
6295
6296
6297		CFLAGS="$xorg_testset_save_CFLAGS"
6298
6299		eval supported=\$$cacheid
6300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6301$as_echo "$supported" >&6; }
6302		if test "$supported" = "yes" ; then
6303			BASE_CFLAGS="$BASE_CFLAGS -fd"
6304			found="yes"
6305		fi
6306	fi
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322xorg_testset_save_CFLAGS="$CFLAGS"
6323
6324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332/* end confdefs.h.  */
6333int i;
6334_ACEOF
6335if ac_fn_c_try_compile "$LINENO"; then :
6336  xorg_cv_cc_flag_unknown_warning_option=yes
6337else
6338  xorg_cv_cc_flag_unknown_warning_option=no
6339fi
6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341fi
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6345	CFLAGS="$xorg_testset_save_CFLAGS"
6346fi
6347
6348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6351	fi
6352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359/* end confdefs.h.  */
6360int i;
6361_ACEOF
6362if ac_fn_c_try_compile "$LINENO"; then :
6363  xorg_cv_cc_flag_unused_command_line_argument=yes
6364else
6365  xorg_cv_cc_flag_unused_command_line_argument=no
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368fi
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6372	CFLAGS="$xorg_testset_save_CFLAGS"
6373fi
6374
6375found="no"
6376
6377	if test $found = "no" ; then
6378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380		fi
6381
6382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6384		fi
6385
6386		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6387
6388		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6389$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6390		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6391		if eval \${$cacheid+:} false; then :
6392  $as_echo_n "(cached) " >&6
6393else
6394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395/* end confdefs.h.  */
6396int i;
6397int
6398main ()
6399{
6400
6401  ;
6402  return 0;
6403}
6404_ACEOF
6405if ac_fn_c_try_link "$LINENO"; then :
6406  eval $cacheid=yes
6407else
6408  eval $cacheid=no
6409fi
6410rm -f core conftest.err conftest.$ac_objext \
6411    conftest$ac_exeext conftest.$ac_ext
6412fi
6413
6414
6415		CFLAGS="$xorg_testset_save_CFLAGS"
6416
6417		eval supported=\$$cacheid
6418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6419$as_echo "$supported" >&6; }
6420		if test "$supported" = "yes" ; then
6421			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6422			found="yes"
6423		fi
6424	fi
6425
6426
6427
6428
6429
6430# This chunk adds additional warnings that could catch undesired effects.
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444xorg_testset_save_CFLAGS="$CFLAGS"
6445
6446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6447	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6448	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6451  $as_echo_n "(cached) " >&6
6452else
6453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h.  */
6455int i;
6456_ACEOF
6457if ac_fn_c_try_compile "$LINENO"; then :
6458  xorg_cv_cc_flag_unknown_warning_option=yes
6459else
6460  xorg_cv_cc_flag_unknown_warning_option=no
6461fi
6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463fi
6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6466	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6467	CFLAGS="$xorg_testset_save_CFLAGS"
6468fi
6469
6470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6471	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6472		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6473	fi
6474	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6481/* end confdefs.h.  */
6482int i;
6483_ACEOF
6484if ac_fn_c_try_compile "$LINENO"; then :
6485  xorg_cv_cc_flag_unused_command_line_argument=yes
6486else
6487  xorg_cv_cc_flag_unused_command_line_argument=no
6488fi
6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490fi
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6493	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6494	CFLAGS="$xorg_testset_save_CFLAGS"
6495fi
6496
6497found="no"
6498
6499	if test $found = "no" ; then
6500		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6501			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6502		fi
6503
6504		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6505			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6506		fi
6507
6508		CFLAGS="$CFLAGS -Wunused"
6509
6510		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6511$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6512		cacheid=xorg_cv_cc_flag__Wunused
6513		if eval \${$cacheid+:} false; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518int i;
6519int
6520main ()
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"; then :
6528  eval $cacheid=yes
6529else
6530  eval $cacheid=no
6531fi
6532rm -f core conftest.err conftest.$ac_objext \
6533    conftest$ac_exeext conftest.$ac_ext
6534fi
6535
6536
6537		CFLAGS="$xorg_testset_save_CFLAGS"
6538
6539		eval supported=\$$cacheid
6540		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6541$as_echo "$supported" >&6; }
6542		if test "$supported" = "yes" ; then
6543			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6544			found="yes"
6545		fi
6546	fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562xorg_testset_save_CFLAGS="$CFLAGS"
6563
6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6569  $as_echo_n "(cached) " >&6
6570else
6571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h.  */
6573int i;
6574_ACEOF
6575if ac_fn_c_try_compile "$LINENO"; then :
6576  xorg_cv_cc_flag_unknown_warning_option=yes
6577else
6578  xorg_cv_cc_flag_unknown_warning_option=no
6579fi
6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581fi
6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585	CFLAGS="$xorg_testset_save_CFLAGS"
6586fi
6587
6588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6591	fi
6592	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6596  $as_echo_n "(cached) " >&6
6597else
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600int i;
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"; then :
6603  xorg_cv_cc_flag_unused_command_line_argument=yes
6604else
6605  xorg_cv_cc_flag_unused_command_line_argument=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6612	CFLAGS="$xorg_testset_save_CFLAGS"
6613fi
6614
6615found="no"
6616
6617	if test $found = "no" ; then
6618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6620		fi
6621
6622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6624		fi
6625
6626		CFLAGS="$CFLAGS -Wuninitialized"
6627
6628		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6629$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6630		cacheid=xorg_cv_cc_flag__Wuninitialized
6631		if eval \${$cacheid+:} false; then :
6632  $as_echo_n "(cached) " >&6
6633else
6634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635/* end confdefs.h.  */
6636int i;
6637int
6638main ()
6639{
6640
6641  ;
6642  return 0;
6643}
6644_ACEOF
6645if ac_fn_c_try_link "$LINENO"; then :
6646  eval $cacheid=yes
6647else
6648  eval $cacheid=no
6649fi
6650rm -f core conftest.err conftest.$ac_objext \
6651    conftest$ac_exeext conftest.$ac_ext
6652fi
6653
6654
6655		CFLAGS="$xorg_testset_save_CFLAGS"
6656
6657		eval supported=\$$cacheid
6658		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659$as_echo "$supported" >&6; }
6660		if test "$supported" = "yes" ; then
6661			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6662			found="yes"
6663		fi
6664	fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680xorg_testset_save_CFLAGS="$CFLAGS"
6681
6682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6683	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6687  $as_echo_n "(cached) " >&6
6688else
6689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h.  */
6691int i;
6692_ACEOF
6693if ac_fn_c_try_compile "$LINENO"; then :
6694  xorg_cv_cc_flag_unknown_warning_option=yes
6695else
6696  xorg_cv_cc_flag_unknown_warning_option=no
6697fi
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699fi
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6703	CFLAGS="$xorg_testset_save_CFLAGS"
6704fi
6705
6706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6709	fi
6710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6711	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717/* end confdefs.h.  */
6718int i;
6719_ACEOF
6720if ac_fn_c_try_compile "$LINENO"; then :
6721  xorg_cv_cc_flag_unused_command_line_argument=yes
6722else
6723  xorg_cv_cc_flag_unused_command_line_argument=no
6724fi
6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6726fi
6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6729	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6730	CFLAGS="$xorg_testset_save_CFLAGS"
6731fi
6732
6733found="no"
6734
6735	if test $found = "no" ; then
6736		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6737			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6738		fi
6739
6740		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6741			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6742		fi
6743
6744		CFLAGS="$CFLAGS -Wshadow"
6745
6746		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6747$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6748		cacheid=xorg_cv_cc_flag__Wshadow
6749		if eval \${$cacheid+:} false; then :
6750  $as_echo_n "(cached) " >&6
6751else
6752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753/* end confdefs.h.  */
6754int i;
6755int
6756main ()
6757{
6758
6759  ;
6760  return 0;
6761}
6762_ACEOF
6763if ac_fn_c_try_link "$LINENO"; then :
6764  eval $cacheid=yes
6765else
6766  eval $cacheid=no
6767fi
6768rm -f core conftest.err conftest.$ac_objext \
6769    conftest$ac_exeext conftest.$ac_ext
6770fi
6771
6772
6773		CFLAGS="$xorg_testset_save_CFLAGS"
6774
6775		eval supported=\$$cacheid
6776		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6777$as_echo "$supported" >&6; }
6778		if test "$supported" = "yes" ; then
6779			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6780			found="yes"
6781		fi
6782	fi
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798xorg_testset_save_CFLAGS="$CFLAGS"
6799
6800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6801	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6805  $as_echo_n "(cached) " >&6
6806else
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809int i;
6810_ACEOF
6811if ac_fn_c_try_compile "$LINENO"; then :
6812  xorg_cv_cc_flag_unknown_warning_option=yes
6813else
6814  xorg_cv_cc_flag_unknown_warning_option=no
6815fi
6816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817fi
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6820	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6821	CFLAGS="$xorg_testset_save_CFLAGS"
6822fi
6823
6824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6825	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6826		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6827	fi
6828	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6829	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6832  $as_echo_n "(cached) " >&6
6833else
6834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h.  */
6836int i;
6837_ACEOF
6838if ac_fn_c_try_compile "$LINENO"; then :
6839  xorg_cv_cc_flag_unused_command_line_argument=yes
6840else
6841  xorg_cv_cc_flag_unused_command_line_argument=no
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6847	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6848	CFLAGS="$xorg_testset_save_CFLAGS"
6849fi
6850
6851found="no"
6852
6853	if test $found = "no" ; then
6854		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6855			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6856		fi
6857
6858		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6859			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6860		fi
6861
6862		CFLAGS="$CFLAGS -Wmissing-noreturn"
6863
6864		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6865$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6866		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6867		if eval \${$cacheid+:} false; then :
6868  $as_echo_n "(cached) " >&6
6869else
6870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871/* end confdefs.h.  */
6872int i;
6873int
6874main ()
6875{
6876
6877  ;
6878  return 0;
6879}
6880_ACEOF
6881if ac_fn_c_try_link "$LINENO"; then :
6882  eval $cacheid=yes
6883else
6884  eval $cacheid=no
6885fi
6886rm -f core conftest.err conftest.$ac_objext \
6887    conftest$ac_exeext conftest.$ac_ext
6888fi
6889
6890
6891		CFLAGS="$xorg_testset_save_CFLAGS"
6892
6893		eval supported=\$$cacheid
6894		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6895$as_echo "$supported" >&6; }
6896		if test "$supported" = "yes" ; then
6897			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6898			found="yes"
6899		fi
6900	fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916xorg_testset_save_CFLAGS="$CFLAGS"
6917
6918if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6919	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6921$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6922if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926/* end confdefs.h.  */
6927int i;
6928_ACEOF
6929if ac_fn_c_try_compile "$LINENO"; then :
6930  xorg_cv_cc_flag_unknown_warning_option=yes
6931else
6932  xorg_cv_cc_flag_unknown_warning_option=no
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935fi
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6937$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6938	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6939	CFLAGS="$xorg_testset_save_CFLAGS"
6940fi
6941
6942if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6943	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6944		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6945	fi
6946	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6948$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6949if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6950  $as_echo_n "(cached) " >&6
6951else
6952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954int i;
6955_ACEOF
6956if ac_fn_c_try_compile "$LINENO"; then :
6957  xorg_cv_cc_flag_unused_command_line_argument=yes
6958else
6959  xorg_cv_cc_flag_unused_command_line_argument=no
6960fi
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962fi
6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6964$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6965	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6966	CFLAGS="$xorg_testset_save_CFLAGS"
6967fi
6968
6969found="no"
6970
6971	if test $found = "no" ; then
6972		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6973			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974		fi
6975
6976		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6977			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6978		fi
6979
6980		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6981
6982		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6983$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6984		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6985		if eval \${$cacheid+:} false; then :
6986  $as_echo_n "(cached) " >&6
6987else
6988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989/* end confdefs.h.  */
6990int i;
6991int
6992main ()
6993{
6994
6995  ;
6996  return 0;
6997}
6998_ACEOF
6999if ac_fn_c_try_link "$LINENO"; then :
7000  eval $cacheid=yes
7001else
7002  eval $cacheid=no
7003fi
7004rm -f core conftest.err conftest.$ac_objext \
7005    conftest$ac_exeext conftest.$ac_ext
7006fi
7007
7008
7009		CFLAGS="$xorg_testset_save_CFLAGS"
7010
7011		eval supported=\$$cacheid
7012		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7013$as_echo "$supported" >&6; }
7014		if test "$supported" = "yes" ; then
7015			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7016			found="yes"
7017		fi
7018	fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034xorg_testset_save_CFLAGS="$CFLAGS"
7035
7036if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7037	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7039$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7040if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7041  $as_echo_n "(cached) " >&6
7042else
7043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h.  */
7045int i;
7046_ACEOF
7047if ac_fn_c_try_compile "$LINENO"; then :
7048  xorg_cv_cc_flag_unknown_warning_option=yes
7049else
7050  xorg_cv_cc_flag_unknown_warning_option=no
7051fi
7052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053fi
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7055$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7056	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7057	CFLAGS="$xorg_testset_save_CFLAGS"
7058fi
7059
7060if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7061	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7062		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7063	fi
7064	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7065	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7066$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7067if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7068  $as_echo_n "(cached) " >&6
7069else
7070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071/* end confdefs.h.  */
7072int i;
7073_ACEOF
7074if ac_fn_c_try_compile "$LINENO"; then :
7075  xorg_cv_cc_flag_unused_command_line_argument=yes
7076else
7077  xorg_cv_cc_flag_unused_command_line_argument=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080fi
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7082$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7083	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7084	CFLAGS="$xorg_testset_save_CFLAGS"
7085fi
7086
7087found="no"
7088
7089	if test $found = "no" ; then
7090		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7091			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7092		fi
7093
7094		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7095			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7096		fi
7097
7098		CFLAGS="$CFLAGS -Wredundant-decls"
7099
7100		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7101$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
7102		cacheid=xorg_cv_cc_flag__Wredundant_decls
7103		if eval \${$cacheid+:} false; then :
7104  $as_echo_n "(cached) " >&6
7105else
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108int i;
7109int
7110main ()
7111{
7112
7113  ;
7114  return 0;
7115}
7116_ACEOF
7117if ac_fn_c_try_link "$LINENO"; then :
7118  eval $cacheid=yes
7119else
7120  eval $cacheid=no
7121fi
7122rm -f core conftest.err conftest.$ac_objext \
7123    conftest$ac_exeext conftest.$ac_ext
7124fi
7125
7126
7127		CFLAGS="$xorg_testset_save_CFLAGS"
7128
7129		eval supported=\$$cacheid
7130		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7131$as_echo "$supported" >&6; }
7132		if test "$supported" = "yes" ; then
7133			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7134			found="yes"
7135		fi
7136	fi
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152xorg_testset_save_CFLAGS="$CFLAGS"
7153
7154if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7155	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7157$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7158if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7159  $as_echo_n "(cached) " >&6
7160else
7161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h.  */
7163int i;
7164_ACEOF
7165if ac_fn_c_try_compile "$LINENO"; then :
7166  xorg_cv_cc_flag_unknown_warning_option=yes
7167else
7168  xorg_cv_cc_flag_unknown_warning_option=no
7169fi
7170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7173$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7174	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7175	CFLAGS="$xorg_testset_save_CFLAGS"
7176fi
7177
7178if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7179	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7180		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7181	fi
7182	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7183	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7184$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7185if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7186  $as_echo_n "(cached) " >&6
7187else
7188  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189/* end confdefs.h.  */
7190int i;
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"; then :
7193  xorg_cv_cc_flag_unused_command_line_argument=yes
7194else
7195  xorg_cv_cc_flag_unused_command_line_argument=no
7196fi
7197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7200$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7201	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7202	CFLAGS="$xorg_testset_save_CFLAGS"
7203fi
7204
7205found="no"
7206
7207	if test $found = "no" ; then
7208		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7209			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210		fi
7211
7212		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7213			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7214		fi
7215
7216		CFLAGS="$CFLAGS -Wlogical-op"
7217
7218		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7219$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
7220		cacheid=xorg_cv_cc_flag__Wlogical_op
7221		if eval \${$cacheid+:} false; then :
7222  $as_echo_n "(cached) " >&6
7223else
7224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225/* end confdefs.h.  */
7226int i;
7227int
7228main ()
7229{
7230
7231  ;
7232  return 0;
7233}
7234_ACEOF
7235if ac_fn_c_try_link "$LINENO"; then :
7236  eval $cacheid=yes
7237else
7238  eval $cacheid=no
7239fi
7240rm -f core conftest.err conftest.$ac_objext \
7241    conftest$ac_exeext conftest.$ac_ext
7242fi
7243
7244
7245		CFLAGS="$xorg_testset_save_CFLAGS"
7246
7247		eval supported=\$$cacheid
7248		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7249$as_echo "$supported" >&6; }
7250		if test "$supported" = "yes" ; then
7251			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7252			found="yes"
7253		fi
7254	fi
7255
7256
7257
7258# These are currently disabled because they are noisy.  They will be enabled
7259# in the future once the codebase is sufficiently modernized to silence
7260# them.  For now, I don't want them to drown out the other warnings.
7261# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7262# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7263# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7264
7265# Turn some warnings into errors, so we don't accidently get successful builds
7266# when there are problems that should be fixed.
7267
7268if test "x$SELECTIVE_WERROR" = "xyes" ; then
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282xorg_testset_save_CFLAGS="$CFLAGS"
7283
7284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h.  */
7293int i;
7294_ACEOF
7295if ac_fn_c_try_compile "$LINENO"; then :
7296  xorg_cv_cc_flag_unknown_warning_option=yes
7297else
7298  xorg_cv_cc_flag_unknown_warning_option=no
7299fi
7300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7305	CFLAGS="$xorg_testset_save_CFLAGS"
7306fi
7307
7308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7311	fi
7312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7316  $as_echo_n "(cached) " >&6
7317else
7318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h.  */
7320int i;
7321_ACEOF
7322if ac_fn_c_try_compile "$LINENO"; then :
7323  xorg_cv_cc_flag_unused_command_line_argument=yes
7324else
7325  xorg_cv_cc_flag_unused_command_line_argument=no
7326fi
7327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328fi
7329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7332	CFLAGS="$xorg_testset_save_CFLAGS"
7333fi
7334
7335found="no"
7336
7337	if test $found = "no" ; then
7338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7340		fi
7341
7342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7344		fi
7345
7346		CFLAGS="$CFLAGS -Werror=implicit"
7347
7348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7349$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7350		cacheid=xorg_cv_cc_flag__Werror_implicit
7351		if eval \${$cacheid+:} false; then :
7352  $as_echo_n "(cached) " >&6
7353else
7354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355/* end confdefs.h.  */
7356int i;
7357int
7358main ()
7359{
7360
7361  ;
7362  return 0;
7363}
7364_ACEOF
7365if ac_fn_c_try_link "$LINENO"; then :
7366  eval $cacheid=yes
7367else
7368  eval $cacheid=no
7369fi
7370rm -f core conftest.err conftest.$ac_objext \
7371    conftest$ac_exeext conftest.$ac_ext
7372fi
7373
7374
7375		CFLAGS="$xorg_testset_save_CFLAGS"
7376
7377		eval supported=\$$cacheid
7378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7379$as_echo "$supported" >&6; }
7380		if test "$supported" = "yes" ; then
7381			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7382			found="yes"
7383		fi
7384	fi
7385
7386	if test $found = "no" ; then
7387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389		fi
7390
7391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393		fi
7394
7395		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7396
7397		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7398$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7399		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7400		if eval \${$cacheid+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405int i;
7406int
7407main ()
7408{
7409
7410  ;
7411  return 0;
7412}
7413_ACEOF
7414if ac_fn_c_try_link "$LINENO"; then :
7415  eval $cacheid=yes
7416else
7417  eval $cacheid=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext \
7420    conftest$ac_exeext conftest.$ac_ext
7421fi
7422
7423
7424		CFLAGS="$xorg_testset_save_CFLAGS"
7425
7426		eval supported=\$$cacheid
7427		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7428$as_echo "$supported" >&6; }
7429		if test "$supported" = "yes" ; then
7430			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7431			found="yes"
7432		fi
7433	fi
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449xorg_testset_save_CFLAGS="$CFLAGS"
7450
7451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459/* end confdefs.h.  */
7460int i;
7461_ACEOF
7462if ac_fn_c_try_compile "$LINENO"; then :
7463  xorg_cv_cc_flag_unknown_warning_option=yes
7464else
7465  xorg_cv_cc_flag_unknown_warning_option=no
7466fi
7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7472	CFLAGS="$xorg_testset_save_CFLAGS"
7473fi
7474
7475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7478	fi
7479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7480	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7483  $as_echo_n "(cached) " >&6
7484else
7485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486/* end confdefs.h.  */
7487int i;
7488_ACEOF
7489if ac_fn_c_try_compile "$LINENO"; then :
7490  xorg_cv_cc_flag_unused_command_line_argument=yes
7491else
7492  xorg_cv_cc_flag_unused_command_line_argument=no
7493fi
7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495fi
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7498	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7499	CFLAGS="$xorg_testset_save_CFLAGS"
7500fi
7501
7502found="no"
7503
7504	if test $found = "no" ; then
7505		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7507		fi
7508
7509		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7511		fi
7512
7513		CFLAGS="$CFLAGS -Werror=nonnull"
7514
7515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7516$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7517		cacheid=xorg_cv_cc_flag__Werror_nonnull
7518		if eval \${$cacheid+:} false; then :
7519  $as_echo_n "(cached) " >&6
7520else
7521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522/* end confdefs.h.  */
7523int i;
7524int
7525main ()
7526{
7527
7528  ;
7529  return 0;
7530}
7531_ACEOF
7532if ac_fn_c_try_link "$LINENO"; then :
7533  eval $cacheid=yes
7534else
7535  eval $cacheid=no
7536fi
7537rm -f core conftest.err conftest.$ac_objext \
7538    conftest$ac_exeext conftest.$ac_ext
7539fi
7540
7541
7542		CFLAGS="$xorg_testset_save_CFLAGS"
7543
7544		eval supported=\$$cacheid
7545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7546$as_echo "$supported" >&6; }
7547		if test "$supported" = "yes" ; then
7548			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7549			found="yes"
7550		fi
7551	fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567xorg_testset_save_CFLAGS="$CFLAGS"
7568
7569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7570	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7571	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7574  $as_echo_n "(cached) " >&6
7575else
7576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h.  */
7578int i;
7579_ACEOF
7580if ac_fn_c_try_compile "$LINENO"; then :
7581  xorg_cv_cc_flag_unknown_warning_option=yes
7582else
7583  xorg_cv_cc_flag_unknown_warning_option=no
7584fi
7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586fi
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7589	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7590	CFLAGS="$xorg_testset_save_CFLAGS"
7591fi
7592
7593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7594	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7595		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7596	fi
7597	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7601  $as_echo_n "(cached) " >&6
7602else
7603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604/* end confdefs.h.  */
7605int i;
7606_ACEOF
7607if ac_fn_c_try_compile "$LINENO"; then :
7608  xorg_cv_cc_flag_unused_command_line_argument=yes
7609else
7610  xorg_cv_cc_flag_unused_command_line_argument=no
7611fi
7612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613fi
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7617	CFLAGS="$xorg_testset_save_CFLAGS"
7618fi
7619
7620found="no"
7621
7622	if test $found = "no" ; then
7623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625		fi
7626
7627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7629		fi
7630
7631		CFLAGS="$CFLAGS -Werror=init-self"
7632
7633		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7634$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7635		cacheid=xorg_cv_cc_flag__Werror_init_self
7636		if eval \${$cacheid+:} false; then :
7637  $as_echo_n "(cached) " >&6
7638else
7639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h.  */
7641int i;
7642int
7643main ()
7644{
7645
7646  ;
7647  return 0;
7648}
7649_ACEOF
7650if ac_fn_c_try_link "$LINENO"; then :
7651  eval $cacheid=yes
7652else
7653  eval $cacheid=no
7654fi
7655rm -f core conftest.err conftest.$ac_objext \
7656    conftest$ac_exeext conftest.$ac_ext
7657fi
7658
7659
7660		CFLAGS="$xorg_testset_save_CFLAGS"
7661
7662		eval supported=\$$cacheid
7663		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7664$as_echo "$supported" >&6; }
7665		if test "$supported" = "yes" ; then
7666			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7667			found="yes"
7668		fi
7669	fi
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685xorg_testset_save_CFLAGS="$CFLAGS"
7686
7687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7688	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7689	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695/* end confdefs.h.  */
7696int i;
7697_ACEOF
7698if ac_fn_c_try_compile "$LINENO"; then :
7699  xorg_cv_cc_flag_unknown_warning_option=yes
7700else
7701  xorg_cv_cc_flag_unknown_warning_option=no
7702fi
7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704fi
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7708	CFLAGS="$xorg_testset_save_CFLAGS"
7709fi
7710
7711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7714	fi
7715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7716	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7719  $as_echo_n "(cached) " >&6
7720else
7721  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h.  */
7723int i;
7724_ACEOF
7725if ac_fn_c_try_compile "$LINENO"; then :
7726  xorg_cv_cc_flag_unused_command_line_argument=yes
7727else
7728  xorg_cv_cc_flag_unused_command_line_argument=no
7729fi
7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731fi
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7734	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7735	CFLAGS="$xorg_testset_save_CFLAGS"
7736fi
7737
7738found="no"
7739
7740	if test $found = "no" ; then
7741		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7742			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7743		fi
7744
7745		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7746			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7747		fi
7748
7749		CFLAGS="$CFLAGS -Werror=main"
7750
7751		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7752$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7753		cacheid=xorg_cv_cc_flag__Werror_main
7754		if eval \${$cacheid+:} false; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759int i;
7760int
7761main ()
7762{
7763
7764  ;
7765  return 0;
7766}
7767_ACEOF
7768if ac_fn_c_try_link "$LINENO"; then :
7769  eval $cacheid=yes
7770else
7771  eval $cacheid=no
7772fi
7773rm -f core conftest.err conftest.$ac_objext \
7774    conftest$ac_exeext conftest.$ac_ext
7775fi
7776
7777
7778		CFLAGS="$xorg_testset_save_CFLAGS"
7779
7780		eval supported=\$$cacheid
7781		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7782$as_echo "$supported" >&6; }
7783		if test "$supported" = "yes" ; then
7784			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7785			found="yes"
7786		fi
7787	fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803xorg_testset_save_CFLAGS="$CFLAGS"
7804
7805if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7806	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7808$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7809if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7810  $as_echo_n "(cached) " >&6
7811else
7812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h.  */
7814int i;
7815_ACEOF
7816if ac_fn_c_try_compile "$LINENO"; then :
7817  xorg_cv_cc_flag_unknown_warning_option=yes
7818else
7819  xorg_cv_cc_flag_unknown_warning_option=no
7820fi
7821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7824$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7826	CFLAGS="$xorg_testset_save_CFLAGS"
7827fi
7828
7829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832	fi
7833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7835$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7836if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840/* end confdefs.h.  */
7841int i;
7842_ACEOF
7843if ac_fn_c_try_compile "$LINENO"; then :
7844  xorg_cv_cc_flag_unused_command_line_argument=yes
7845else
7846  xorg_cv_cc_flag_unused_command_line_argument=no
7847fi
7848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7851$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7852	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7853	CFLAGS="$xorg_testset_save_CFLAGS"
7854fi
7855
7856found="no"
7857
7858	if test $found = "no" ; then
7859		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7860			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7861		fi
7862
7863		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7864			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7865		fi
7866
7867		CFLAGS="$CFLAGS -Werror=missing-braces"
7868
7869		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7870$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7871		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7872		if eval \${$cacheid+:} false; then :
7873  $as_echo_n "(cached) " >&6
7874else
7875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876/* end confdefs.h.  */
7877int i;
7878int
7879main ()
7880{
7881
7882  ;
7883  return 0;
7884}
7885_ACEOF
7886if ac_fn_c_try_link "$LINENO"; then :
7887  eval $cacheid=yes
7888else
7889  eval $cacheid=no
7890fi
7891rm -f core conftest.err conftest.$ac_objext \
7892    conftest$ac_exeext conftest.$ac_ext
7893fi
7894
7895
7896		CFLAGS="$xorg_testset_save_CFLAGS"
7897
7898		eval supported=\$$cacheid
7899		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7900$as_echo "$supported" >&6; }
7901		if test "$supported" = "yes" ; then
7902			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7903			found="yes"
7904		fi
7905	fi
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921xorg_testset_save_CFLAGS="$CFLAGS"
7922
7923if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7924	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7925	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7926$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7927if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931/* end confdefs.h.  */
7932int i;
7933_ACEOF
7934if ac_fn_c_try_compile "$LINENO"; then :
7935  xorg_cv_cc_flag_unknown_warning_option=yes
7936else
7937  xorg_cv_cc_flag_unknown_warning_option=no
7938fi
7939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940fi
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7942$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7943	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7944	CFLAGS="$xorg_testset_save_CFLAGS"
7945fi
7946
7947if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7948	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7949		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7950	fi
7951	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7952	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7953$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7954if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7955  $as_echo_n "(cached) " >&6
7956else
7957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958/* end confdefs.h.  */
7959int i;
7960_ACEOF
7961if ac_fn_c_try_compile "$LINENO"; then :
7962  xorg_cv_cc_flag_unused_command_line_argument=yes
7963else
7964  xorg_cv_cc_flag_unused_command_line_argument=no
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7969$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7970	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7971	CFLAGS="$xorg_testset_save_CFLAGS"
7972fi
7973
7974found="no"
7975
7976	if test $found = "no" ; then
7977		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979		fi
7980
7981		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7982			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983		fi
7984
7985		CFLAGS="$CFLAGS -Werror=sequence-point"
7986
7987		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7988$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7989		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7990		if eval \${$cacheid+:} false; then :
7991  $as_echo_n "(cached) " >&6
7992else
7993  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994/* end confdefs.h.  */
7995int i;
7996int
7997main ()
7998{
7999
8000  ;
8001  return 0;
8002}
8003_ACEOF
8004if ac_fn_c_try_link "$LINENO"; then :
8005  eval $cacheid=yes
8006else
8007  eval $cacheid=no
8008fi
8009rm -f core conftest.err conftest.$ac_objext \
8010    conftest$ac_exeext conftest.$ac_ext
8011fi
8012
8013
8014		CFLAGS="$xorg_testset_save_CFLAGS"
8015
8016		eval supported=\$$cacheid
8017		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8018$as_echo "$supported" >&6; }
8019		if test "$supported" = "yes" ; then
8020			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8021			found="yes"
8022		fi
8023	fi
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039xorg_testset_save_CFLAGS="$CFLAGS"
8040
8041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8046  $as_echo_n "(cached) " >&6
8047else
8048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049/* end confdefs.h.  */
8050int i;
8051_ACEOF
8052if ac_fn_c_try_compile "$LINENO"; then :
8053  xorg_cv_cc_flag_unknown_warning_option=yes
8054else
8055  xorg_cv_cc_flag_unknown_warning_option=no
8056fi
8057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058fi
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8062	CFLAGS="$xorg_testset_save_CFLAGS"
8063fi
8064
8065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8068	fi
8069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8073  $as_echo_n "(cached) " >&6
8074else
8075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8076/* end confdefs.h.  */
8077int i;
8078_ACEOF
8079if ac_fn_c_try_compile "$LINENO"; then :
8080  xorg_cv_cc_flag_unused_command_line_argument=yes
8081else
8082  xorg_cv_cc_flag_unused_command_line_argument=no
8083fi
8084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085fi
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8089	CFLAGS="$xorg_testset_save_CFLAGS"
8090fi
8091
8092found="no"
8093
8094	if test $found = "no" ; then
8095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097		fi
8098
8099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101		fi
8102
8103		CFLAGS="$CFLAGS -Werror=return-type"
8104
8105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8106$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
8107		cacheid=xorg_cv_cc_flag__Werror_return_type
8108		if eval \${$cacheid+:} false; then :
8109  $as_echo_n "(cached) " >&6
8110else
8111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8112/* end confdefs.h.  */
8113int i;
8114int
8115main ()
8116{
8117
8118  ;
8119  return 0;
8120}
8121_ACEOF
8122if ac_fn_c_try_link "$LINENO"; then :
8123  eval $cacheid=yes
8124else
8125  eval $cacheid=no
8126fi
8127rm -f core conftest.err conftest.$ac_objext \
8128    conftest$ac_exeext conftest.$ac_ext
8129fi
8130
8131
8132		CFLAGS="$xorg_testset_save_CFLAGS"
8133
8134		eval supported=\$$cacheid
8135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8136$as_echo "$supported" >&6; }
8137		if test "$supported" = "yes" ; then
8138			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8139			found="yes"
8140		fi
8141	fi
8142
8143	if test $found = "no" ; then
8144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146		fi
8147
8148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150		fi
8151
8152		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8153
8154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8155$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8156		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8157		if eval \${$cacheid+:} false; then :
8158  $as_echo_n "(cached) " >&6
8159else
8160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8161/* end confdefs.h.  */
8162int i;
8163int
8164main ()
8165{
8166
8167  ;
8168  return 0;
8169}
8170_ACEOF
8171if ac_fn_c_try_link "$LINENO"; then :
8172  eval $cacheid=yes
8173else
8174  eval $cacheid=no
8175fi
8176rm -f core conftest.err conftest.$ac_objext \
8177    conftest$ac_exeext conftest.$ac_ext
8178fi
8179
8180
8181		CFLAGS="$xorg_testset_save_CFLAGS"
8182
8183		eval supported=\$$cacheid
8184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8185$as_echo "$supported" >&6; }
8186		if test "$supported" = "yes" ; then
8187			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8188			found="yes"
8189		fi
8190	fi
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206xorg_testset_save_CFLAGS="$CFLAGS"
8207
8208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8213  $as_echo_n "(cached) " >&6
8214else
8215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216/* end confdefs.h.  */
8217int i;
8218_ACEOF
8219if ac_fn_c_try_compile "$LINENO"; then :
8220  xorg_cv_cc_flag_unknown_warning_option=yes
8221else
8222  xorg_cv_cc_flag_unknown_warning_option=no
8223fi
8224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225fi
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8229	CFLAGS="$xorg_testset_save_CFLAGS"
8230fi
8231
8232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8235	fi
8236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243/* end confdefs.h.  */
8244int i;
8245_ACEOF
8246if ac_fn_c_try_compile "$LINENO"; then :
8247  xorg_cv_cc_flag_unused_command_line_argument=yes
8248else
8249  xorg_cv_cc_flag_unused_command_line_argument=no
8250fi
8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252fi
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8256	CFLAGS="$xorg_testset_save_CFLAGS"
8257fi
8258
8259found="no"
8260
8261	if test $found = "no" ; then
8262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8264		fi
8265
8266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8268		fi
8269
8270		CFLAGS="$CFLAGS -Werror=trigraphs"
8271
8272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8273$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8274		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8275		if eval \${$cacheid+:} false; then :
8276  $as_echo_n "(cached) " >&6
8277else
8278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h.  */
8280int i;
8281int
8282main ()
8283{
8284
8285  ;
8286  return 0;
8287}
8288_ACEOF
8289if ac_fn_c_try_link "$LINENO"; then :
8290  eval $cacheid=yes
8291else
8292  eval $cacheid=no
8293fi
8294rm -f core conftest.err conftest.$ac_objext \
8295    conftest$ac_exeext conftest.$ac_ext
8296fi
8297
8298
8299		CFLAGS="$xorg_testset_save_CFLAGS"
8300
8301		eval supported=\$$cacheid
8302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8303$as_echo "$supported" >&6; }
8304		if test "$supported" = "yes" ; then
8305			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8306			found="yes"
8307		fi
8308	fi
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324xorg_testset_save_CFLAGS="$CFLAGS"
8325
8326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8331  $as_echo_n "(cached) " >&6
8332else
8333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334/* end confdefs.h.  */
8335int i;
8336_ACEOF
8337if ac_fn_c_try_compile "$LINENO"; then :
8338  xorg_cv_cc_flag_unknown_warning_option=yes
8339else
8340  xorg_cv_cc_flag_unknown_warning_option=no
8341fi
8342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343fi
8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8347	CFLAGS="$xorg_testset_save_CFLAGS"
8348fi
8349
8350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8353	fi
8354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h.  */
8362int i;
8363_ACEOF
8364if ac_fn_c_try_compile "$LINENO"; then :
8365  xorg_cv_cc_flag_unused_command_line_argument=yes
8366else
8367  xorg_cv_cc_flag_unused_command_line_argument=no
8368fi
8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370fi
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8374	CFLAGS="$xorg_testset_save_CFLAGS"
8375fi
8376
8377found="no"
8378
8379	if test $found = "no" ; then
8380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8382		fi
8383
8384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8386		fi
8387
8388		CFLAGS="$CFLAGS -Werror=array-bounds"
8389
8390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8391$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8392		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8393		if eval \${$cacheid+:} false; then :
8394  $as_echo_n "(cached) " >&6
8395else
8396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h.  */
8398int i;
8399int
8400main ()
8401{
8402
8403  ;
8404  return 0;
8405}
8406_ACEOF
8407if ac_fn_c_try_link "$LINENO"; then :
8408  eval $cacheid=yes
8409else
8410  eval $cacheid=no
8411fi
8412rm -f core conftest.err conftest.$ac_objext \
8413    conftest$ac_exeext conftest.$ac_ext
8414fi
8415
8416
8417		CFLAGS="$xorg_testset_save_CFLAGS"
8418
8419		eval supported=\$$cacheid
8420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8421$as_echo "$supported" >&6; }
8422		if test "$supported" = "yes" ; then
8423			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8424			found="yes"
8425		fi
8426	fi
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442xorg_testset_save_CFLAGS="$CFLAGS"
8443
8444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8449  $as_echo_n "(cached) " >&6
8450else
8451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h.  */
8453int i;
8454_ACEOF
8455if ac_fn_c_try_compile "$LINENO"; then :
8456  xorg_cv_cc_flag_unknown_warning_option=yes
8457else
8458  xorg_cv_cc_flag_unknown_warning_option=no
8459fi
8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8465	CFLAGS="$xorg_testset_save_CFLAGS"
8466fi
8467
8468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471	fi
8472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8476  $as_echo_n "(cached) " >&6
8477else
8478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479/* end confdefs.h.  */
8480int i;
8481_ACEOF
8482if ac_fn_c_try_compile "$LINENO"; then :
8483  xorg_cv_cc_flag_unused_command_line_argument=yes
8484else
8485  xorg_cv_cc_flag_unused_command_line_argument=no
8486fi
8487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488fi
8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8492	CFLAGS="$xorg_testset_save_CFLAGS"
8493fi
8494
8495found="no"
8496
8497	if test $found = "no" ; then
8498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8500		fi
8501
8502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504		fi
8505
8506		CFLAGS="$CFLAGS -Werror=write-strings"
8507
8508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8509$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8510		cacheid=xorg_cv_cc_flag__Werror_write_strings
8511		if eval \${$cacheid+:} false; then :
8512  $as_echo_n "(cached) " >&6
8513else
8514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515/* end confdefs.h.  */
8516int i;
8517int
8518main ()
8519{
8520
8521  ;
8522  return 0;
8523}
8524_ACEOF
8525if ac_fn_c_try_link "$LINENO"; then :
8526  eval $cacheid=yes
8527else
8528  eval $cacheid=no
8529fi
8530rm -f core conftest.err conftest.$ac_objext \
8531    conftest$ac_exeext conftest.$ac_ext
8532fi
8533
8534
8535		CFLAGS="$xorg_testset_save_CFLAGS"
8536
8537		eval supported=\$$cacheid
8538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8539$as_echo "$supported" >&6; }
8540		if test "$supported" = "yes" ; then
8541			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8542			found="yes"
8543		fi
8544	fi
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560xorg_testset_save_CFLAGS="$CFLAGS"
8561
8562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8567  $as_echo_n "(cached) " >&6
8568else
8569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570/* end confdefs.h.  */
8571int i;
8572_ACEOF
8573if ac_fn_c_try_compile "$LINENO"; then :
8574  xorg_cv_cc_flag_unknown_warning_option=yes
8575else
8576  xorg_cv_cc_flag_unknown_warning_option=no
8577fi
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579fi
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8583	CFLAGS="$xorg_testset_save_CFLAGS"
8584fi
8585
8586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589	fi
8590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8594  $as_echo_n "(cached) " >&6
8595else
8596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597/* end confdefs.h.  */
8598int i;
8599_ACEOF
8600if ac_fn_c_try_compile "$LINENO"; then :
8601  xorg_cv_cc_flag_unused_command_line_argument=yes
8602else
8603  xorg_cv_cc_flag_unused_command_line_argument=no
8604fi
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606fi
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8610	CFLAGS="$xorg_testset_save_CFLAGS"
8611fi
8612
8613found="no"
8614
8615	if test $found = "no" ; then
8616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618		fi
8619
8620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8622		fi
8623
8624		CFLAGS="$CFLAGS -Werror=address"
8625
8626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8627$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8628		cacheid=xorg_cv_cc_flag__Werror_address
8629		if eval \${$cacheid+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8633/* end confdefs.h.  */
8634int i;
8635int
8636main ()
8637{
8638
8639  ;
8640  return 0;
8641}
8642_ACEOF
8643if ac_fn_c_try_link "$LINENO"; then :
8644  eval $cacheid=yes
8645else
8646  eval $cacheid=no
8647fi
8648rm -f core conftest.err conftest.$ac_objext \
8649    conftest$ac_exeext conftest.$ac_ext
8650fi
8651
8652
8653		CFLAGS="$xorg_testset_save_CFLAGS"
8654
8655		eval supported=\$$cacheid
8656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8657$as_echo "$supported" >&6; }
8658		if test "$supported" = "yes" ; then
8659			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8660			found="yes"
8661		fi
8662	fi
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678xorg_testset_save_CFLAGS="$CFLAGS"
8679
8680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692  xorg_cv_cc_flag_unknown_warning_option=yes
8693else
8694  xorg_cv_cc_flag_unknown_warning_option=no
8695fi
8696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697fi
8698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8701	CFLAGS="$xorg_testset_save_CFLAGS"
8702fi
8703
8704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8707	fi
8708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8715/* end confdefs.h.  */
8716int i;
8717_ACEOF
8718if ac_fn_c_try_compile "$LINENO"; then :
8719  xorg_cv_cc_flag_unused_command_line_argument=yes
8720else
8721  xorg_cv_cc_flag_unused_command_line_argument=no
8722fi
8723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8724fi
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8728	CFLAGS="$xorg_testset_save_CFLAGS"
8729fi
8730
8731found="no"
8732
8733	if test $found = "no" ; then
8734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8736		fi
8737
8738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8740		fi
8741
8742		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8743
8744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8745$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8746		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8747		if eval \${$cacheid+:} false; then :
8748  $as_echo_n "(cached) " >&6
8749else
8750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751/* end confdefs.h.  */
8752int i;
8753int
8754main ()
8755{
8756
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761if ac_fn_c_try_link "$LINENO"; then :
8762  eval $cacheid=yes
8763else
8764  eval $cacheid=no
8765fi
8766rm -f core conftest.err conftest.$ac_objext \
8767    conftest$ac_exeext conftest.$ac_ext
8768fi
8769
8770
8771		CFLAGS="$xorg_testset_save_CFLAGS"
8772
8773		eval supported=\$$cacheid
8774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8775$as_echo "$supported" >&6; }
8776		if test "$supported" = "yes" ; then
8777			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8778			found="yes"
8779		fi
8780	fi
8781
8782	if test $found = "no" ; then
8783		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8785		fi
8786
8787		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8789		fi
8790
8791		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8792
8793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8794$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8795		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8796		if eval \${$cacheid+:} false; then :
8797  $as_echo_n "(cached) " >&6
8798else
8799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800/* end confdefs.h.  */
8801int i;
8802int
8803main ()
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_link "$LINENO"; then :
8811  eval $cacheid=yes
8812else
8813  eval $cacheid=no
8814fi
8815rm -f core conftest.err conftest.$ac_objext \
8816    conftest$ac_exeext conftest.$ac_ext
8817fi
8818
8819
8820		CFLAGS="$xorg_testset_save_CFLAGS"
8821
8822		eval supported=\$$cacheid
8823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8824$as_echo "$supported" >&6; }
8825		if test "$supported" = "yes" ; then
8826			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8827			found="yes"
8828		fi
8829	fi
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845xorg_testset_save_CFLAGS="$CFLAGS"
8846
8847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856int i;
8857_ACEOF
8858if ac_fn_c_try_compile "$LINENO"; then :
8859  xorg_cv_cc_flag_unknown_warning_option=yes
8860else
8861  xorg_cv_cc_flag_unknown_warning_option=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868	CFLAGS="$xorg_testset_save_CFLAGS"
8869fi
8870
8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	fi
8875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8879  $as_echo_n "(cached) " >&6
8880else
8881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882/* end confdefs.h.  */
8883int i;
8884_ACEOF
8885if ac_fn_c_try_compile "$LINENO"; then :
8886  xorg_cv_cc_flag_unused_command_line_argument=yes
8887else
8888  xorg_cv_cc_flag_unused_command_line_argument=no
8889fi
8890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891fi
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8895	CFLAGS="$xorg_testset_save_CFLAGS"
8896fi
8897
8898found="no"
8899
8900	if test $found = "no" ; then
8901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8903		fi
8904
8905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8907		fi
8908
8909		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8910
8911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8912$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8913		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8914		if eval \${$cacheid+:} false; then :
8915  $as_echo_n "(cached) " >&6
8916else
8917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919int i;
8920int
8921main ()
8922{
8923
8924  ;
8925  return 0;
8926}
8927_ACEOF
8928if ac_fn_c_try_link "$LINENO"; then :
8929  eval $cacheid=yes
8930else
8931  eval $cacheid=no
8932fi
8933rm -f core conftest.err conftest.$ac_objext \
8934    conftest$ac_exeext conftest.$ac_ext
8935fi
8936
8937
8938		CFLAGS="$xorg_testset_save_CFLAGS"
8939
8940		eval supported=\$$cacheid
8941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8942$as_echo "$supported" >&6; }
8943		if test "$supported" = "yes" ; then
8944			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8945			found="yes"
8946		fi
8947	fi
8948
8949 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8950else
8951{ $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
8952$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;}
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8973  $as_echo_n "(cached) " >&6
8974else
8975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976/* end confdefs.h.  */
8977int i;
8978_ACEOF
8979if ac_fn_c_try_compile "$LINENO"; then :
8980  xorg_cv_cc_flag_unknown_warning_option=yes
8981else
8982  xorg_cv_cc_flag_unknown_warning_option=no
8983fi
8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8988	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8989	CFLAGS="$xorg_testset_save_CFLAGS"
8990fi
8991
8992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8993	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995	fi
8996	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8997	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9000  $as_echo_n "(cached) " >&6
9001else
9002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h.  */
9004int i;
9005_ACEOF
9006if ac_fn_c_try_compile "$LINENO"; then :
9007  xorg_cv_cc_flag_unused_command_line_argument=yes
9008else
9009  xorg_cv_cc_flag_unused_command_line_argument=no
9010fi
9011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012fi
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9016	CFLAGS="$xorg_testset_save_CFLAGS"
9017fi
9018
9019found="no"
9020
9021	if test $found = "no" ; then
9022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9024		fi
9025
9026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9028		fi
9029
9030		CFLAGS="$CFLAGS -Wimplicit"
9031
9032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9033$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
9034		cacheid=xorg_cv_cc_flag__Wimplicit
9035		if eval \${$cacheid+:} false; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039/* end confdefs.h.  */
9040int i;
9041int
9042main ()
9043{
9044
9045  ;
9046  return 0;
9047}
9048_ACEOF
9049if ac_fn_c_try_link "$LINENO"; then :
9050  eval $cacheid=yes
9051else
9052  eval $cacheid=no
9053fi
9054rm -f core conftest.err conftest.$ac_objext \
9055    conftest$ac_exeext conftest.$ac_ext
9056fi
9057
9058
9059		CFLAGS="$xorg_testset_save_CFLAGS"
9060
9061		eval supported=\$$cacheid
9062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9063$as_echo "$supported" >&6; }
9064		if test "$supported" = "yes" ; then
9065			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9066			found="yes"
9067		fi
9068	fi
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084xorg_testset_save_CFLAGS="$CFLAGS"
9085
9086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9091  $as_echo_n "(cached) " >&6
9092else
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095int i;
9096_ACEOF
9097if ac_fn_c_try_compile "$LINENO"; then :
9098  xorg_cv_cc_flag_unknown_warning_option=yes
9099else
9100  xorg_cv_cc_flag_unknown_warning_option=no
9101fi
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9107	CFLAGS="$xorg_testset_save_CFLAGS"
9108fi
9109
9110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9113	fi
9114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9118  $as_echo_n "(cached) " >&6
9119else
9120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121/* end confdefs.h.  */
9122int i;
9123_ACEOF
9124if ac_fn_c_try_compile "$LINENO"; then :
9125  xorg_cv_cc_flag_unused_command_line_argument=yes
9126else
9127  xorg_cv_cc_flag_unused_command_line_argument=no
9128fi
9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130fi
9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9134	CFLAGS="$xorg_testset_save_CFLAGS"
9135fi
9136
9137found="no"
9138
9139	if test $found = "no" ; then
9140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9142		fi
9143
9144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9146		fi
9147
9148		CFLAGS="$CFLAGS -Wnonnull"
9149
9150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9151$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
9152		cacheid=xorg_cv_cc_flag__Wnonnull
9153		if eval \${$cacheid+:} false; then :
9154  $as_echo_n "(cached) " >&6
9155else
9156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157/* end confdefs.h.  */
9158int i;
9159int
9160main ()
9161{
9162
9163  ;
9164  return 0;
9165}
9166_ACEOF
9167if ac_fn_c_try_link "$LINENO"; then :
9168  eval $cacheid=yes
9169else
9170  eval $cacheid=no
9171fi
9172rm -f core conftest.err conftest.$ac_objext \
9173    conftest$ac_exeext conftest.$ac_ext
9174fi
9175
9176
9177		CFLAGS="$xorg_testset_save_CFLAGS"
9178
9179		eval supported=\$$cacheid
9180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9181$as_echo "$supported" >&6; }
9182		if test "$supported" = "yes" ; then
9183			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9184			found="yes"
9185		fi
9186	fi
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202xorg_testset_save_CFLAGS="$CFLAGS"
9203
9204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9206	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9209  $as_echo_n "(cached) " >&6
9210else
9211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212/* end confdefs.h.  */
9213int i;
9214_ACEOF
9215if ac_fn_c_try_compile "$LINENO"; then :
9216  xorg_cv_cc_flag_unknown_warning_option=yes
9217else
9218  xorg_cv_cc_flag_unknown_warning_option=no
9219fi
9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9221fi
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9224	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9225	CFLAGS="$xorg_testset_save_CFLAGS"
9226fi
9227
9228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9229	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9230		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9231	fi
9232	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9233	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9236  $as_echo_n "(cached) " >&6
9237else
9238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239/* end confdefs.h.  */
9240int i;
9241_ACEOF
9242if ac_fn_c_try_compile "$LINENO"; then :
9243  xorg_cv_cc_flag_unused_command_line_argument=yes
9244else
9245  xorg_cv_cc_flag_unused_command_line_argument=no
9246fi
9247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9248fi
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9251	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9252	CFLAGS="$xorg_testset_save_CFLAGS"
9253fi
9254
9255found="no"
9256
9257	if test $found = "no" ; then
9258		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9259			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9260		fi
9261
9262		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9263			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264		fi
9265
9266		CFLAGS="$CFLAGS -Winit-self"
9267
9268		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9269$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9270		cacheid=xorg_cv_cc_flag__Winit_self
9271		if eval \${$cacheid+:} false; then :
9272  $as_echo_n "(cached) " >&6
9273else
9274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275/* end confdefs.h.  */
9276int i;
9277int
9278main ()
9279{
9280
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285if ac_fn_c_try_link "$LINENO"; then :
9286  eval $cacheid=yes
9287else
9288  eval $cacheid=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext \
9291    conftest$ac_exeext conftest.$ac_ext
9292fi
9293
9294
9295		CFLAGS="$xorg_testset_save_CFLAGS"
9296
9297		eval supported=\$$cacheid
9298		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9299$as_echo "$supported" >&6; }
9300		if test "$supported" = "yes" ; then
9301			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9302			found="yes"
9303		fi
9304	fi
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320xorg_testset_save_CFLAGS="$CFLAGS"
9321
9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9323	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9324	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330/* end confdefs.h.  */
9331int i;
9332_ACEOF
9333if ac_fn_c_try_compile "$LINENO"; then :
9334  xorg_cv_cc_flag_unknown_warning_option=yes
9335else
9336  xorg_cv_cc_flag_unknown_warning_option=no
9337fi
9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339fi
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9342	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9343	CFLAGS="$xorg_testset_save_CFLAGS"
9344fi
9345
9346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9347	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9348		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349	fi
9350	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h.  */
9358int i;
9359_ACEOF
9360if ac_fn_c_try_compile "$LINENO"; then :
9361  xorg_cv_cc_flag_unused_command_line_argument=yes
9362else
9363  xorg_cv_cc_flag_unused_command_line_argument=no
9364fi
9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366fi
9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370	CFLAGS="$xorg_testset_save_CFLAGS"
9371fi
9372
9373found="no"
9374
9375	if test $found = "no" ; then
9376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378		fi
9379
9380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382		fi
9383
9384		CFLAGS="$CFLAGS -Wmain"
9385
9386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9387$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9388		cacheid=xorg_cv_cc_flag__Wmain
9389		if eval \${$cacheid+:} false; then :
9390  $as_echo_n "(cached) " >&6
9391else
9392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h.  */
9394int i;
9395int
9396main ()
9397{
9398
9399  ;
9400  return 0;
9401}
9402_ACEOF
9403if ac_fn_c_try_link "$LINENO"; then :
9404  eval $cacheid=yes
9405else
9406  eval $cacheid=no
9407fi
9408rm -f core conftest.err conftest.$ac_objext \
9409    conftest$ac_exeext conftest.$ac_ext
9410fi
9411
9412
9413		CFLAGS="$xorg_testset_save_CFLAGS"
9414
9415		eval supported=\$$cacheid
9416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9417$as_echo "$supported" >&6; }
9418		if test "$supported" = "yes" ; then
9419			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9420			found="yes"
9421		fi
9422	fi
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438xorg_testset_save_CFLAGS="$CFLAGS"
9439
9440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9441	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9442	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9445  $as_echo_n "(cached) " >&6
9446else
9447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448/* end confdefs.h.  */
9449int i;
9450_ACEOF
9451if ac_fn_c_try_compile "$LINENO"; then :
9452  xorg_cv_cc_flag_unknown_warning_option=yes
9453else
9454  xorg_cv_cc_flag_unknown_warning_option=no
9455fi
9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457fi
9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9460	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9461	CFLAGS="$xorg_testset_save_CFLAGS"
9462fi
9463
9464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9465	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9466		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9467	fi
9468	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9469	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9475/* end confdefs.h.  */
9476int i;
9477_ACEOF
9478if ac_fn_c_try_compile "$LINENO"; then :
9479  xorg_cv_cc_flag_unused_command_line_argument=yes
9480else
9481  xorg_cv_cc_flag_unused_command_line_argument=no
9482fi
9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9487	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9488	CFLAGS="$xorg_testset_save_CFLAGS"
9489fi
9490
9491found="no"
9492
9493	if test $found = "no" ; then
9494		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9495			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496		fi
9497
9498		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9499			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500		fi
9501
9502		CFLAGS="$CFLAGS -Wmissing-braces"
9503
9504		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9505$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9506		cacheid=xorg_cv_cc_flag__Wmissing_braces
9507		if eval \${$cacheid+:} false; then :
9508  $as_echo_n "(cached) " >&6
9509else
9510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511/* end confdefs.h.  */
9512int i;
9513int
9514main ()
9515{
9516
9517  ;
9518  return 0;
9519}
9520_ACEOF
9521if ac_fn_c_try_link "$LINENO"; then :
9522  eval $cacheid=yes
9523else
9524  eval $cacheid=no
9525fi
9526rm -f core conftest.err conftest.$ac_objext \
9527    conftest$ac_exeext conftest.$ac_ext
9528fi
9529
9530
9531		CFLAGS="$xorg_testset_save_CFLAGS"
9532
9533		eval supported=\$$cacheid
9534		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9535$as_echo "$supported" >&6; }
9536		if test "$supported" = "yes" ; then
9537			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9538			found="yes"
9539		fi
9540	fi
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556xorg_testset_save_CFLAGS="$CFLAGS"
9557
9558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9559	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9563  $as_echo_n "(cached) " >&6
9564else
9565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566/* end confdefs.h.  */
9567int i;
9568_ACEOF
9569if ac_fn_c_try_compile "$LINENO"; then :
9570  xorg_cv_cc_flag_unknown_warning_option=yes
9571else
9572  xorg_cv_cc_flag_unknown_warning_option=no
9573fi
9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9575fi
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9579	CFLAGS="$xorg_testset_save_CFLAGS"
9580fi
9581
9582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	fi
9586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9590  $as_echo_n "(cached) " >&6
9591else
9592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593/* end confdefs.h.  */
9594int i;
9595_ACEOF
9596if ac_fn_c_try_compile "$LINENO"; then :
9597  xorg_cv_cc_flag_unused_command_line_argument=yes
9598else
9599  xorg_cv_cc_flag_unused_command_line_argument=no
9600fi
9601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9605	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9606	CFLAGS="$xorg_testset_save_CFLAGS"
9607fi
9608
9609found="no"
9610
9611	if test $found = "no" ; then
9612		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9613			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614		fi
9615
9616		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9618		fi
9619
9620		CFLAGS="$CFLAGS -Wsequence-point"
9621
9622		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9623$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9624		cacheid=xorg_cv_cc_flag__Wsequence_point
9625		if eval \${$cacheid+:} false; then :
9626  $as_echo_n "(cached) " >&6
9627else
9628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629/* end confdefs.h.  */
9630int i;
9631int
9632main ()
9633{
9634
9635  ;
9636  return 0;
9637}
9638_ACEOF
9639if ac_fn_c_try_link "$LINENO"; then :
9640  eval $cacheid=yes
9641else
9642  eval $cacheid=no
9643fi
9644rm -f core conftest.err conftest.$ac_objext \
9645    conftest$ac_exeext conftest.$ac_ext
9646fi
9647
9648
9649		CFLAGS="$xorg_testset_save_CFLAGS"
9650
9651		eval supported=\$$cacheid
9652		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9653$as_echo "$supported" >&6; }
9654		if test "$supported" = "yes" ; then
9655			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9656			found="yes"
9657		fi
9658	fi
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674xorg_testset_save_CFLAGS="$CFLAGS"
9675
9676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9677	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9678	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684/* end confdefs.h.  */
9685int i;
9686_ACEOF
9687if ac_fn_c_try_compile "$LINENO"; then :
9688  xorg_cv_cc_flag_unknown_warning_option=yes
9689else
9690  xorg_cv_cc_flag_unknown_warning_option=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693fi
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9696	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9697	CFLAGS="$xorg_testset_save_CFLAGS"
9698fi
9699
9700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9701	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9702		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9703	fi
9704	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9705	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9708  $as_echo_n "(cached) " >&6
9709else
9710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711/* end confdefs.h.  */
9712int i;
9713_ACEOF
9714if ac_fn_c_try_compile "$LINENO"; then :
9715  xorg_cv_cc_flag_unused_command_line_argument=yes
9716else
9717  xorg_cv_cc_flag_unused_command_line_argument=no
9718fi
9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9720fi
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9723	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9724	CFLAGS="$xorg_testset_save_CFLAGS"
9725fi
9726
9727found="no"
9728
9729	if test $found = "no" ; then
9730		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9731			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9732		fi
9733
9734		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9735			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736		fi
9737
9738		CFLAGS="$CFLAGS -Wreturn-type"
9739
9740		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9741$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9742		cacheid=xorg_cv_cc_flag__Wreturn_type
9743		if eval \${$cacheid+:} false; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748int i;
9749int
9750main ()
9751{
9752
9753  ;
9754  return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758  eval $cacheid=yes
9759else
9760  eval $cacheid=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763    conftest$ac_exeext conftest.$ac_ext
9764fi
9765
9766
9767		CFLAGS="$xorg_testset_save_CFLAGS"
9768
9769		eval supported=\$$cacheid
9770		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9771$as_echo "$supported" >&6; }
9772		if test "$supported" = "yes" ; then
9773			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9774			found="yes"
9775		fi
9776	fi
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792xorg_testset_save_CFLAGS="$CFLAGS"
9793
9794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9795	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9796	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9799  $as_echo_n "(cached) " >&6
9800else
9801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h.  */
9803int i;
9804_ACEOF
9805if ac_fn_c_try_compile "$LINENO"; then :
9806  xorg_cv_cc_flag_unknown_warning_option=yes
9807else
9808  xorg_cv_cc_flag_unknown_warning_option=no
9809fi
9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9811fi
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9814	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9815	CFLAGS="$xorg_testset_save_CFLAGS"
9816fi
9817
9818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9819	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9820		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9821	fi
9822	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9823	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829/* end confdefs.h.  */
9830int i;
9831_ACEOF
9832if ac_fn_c_try_compile "$LINENO"; then :
9833  xorg_cv_cc_flag_unused_command_line_argument=yes
9834else
9835  xorg_cv_cc_flag_unused_command_line_argument=no
9836fi
9837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9838fi
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9841	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9842	CFLAGS="$xorg_testset_save_CFLAGS"
9843fi
9844
9845found="no"
9846
9847	if test $found = "no" ; then
9848		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9849			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9850		fi
9851
9852		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9853			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854		fi
9855
9856		CFLAGS="$CFLAGS -Wtrigraphs"
9857
9858		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9859$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9860		cacheid=xorg_cv_cc_flag__Wtrigraphs
9861		if eval \${$cacheid+:} false; then :
9862  $as_echo_n "(cached) " >&6
9863else
9864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865/* end confdefs.h.  */
9866int i;
9867int
9868main ()
9869{
9870
9871  ;
9872  return 0;
9873}
9874_ACEOF
9875if ac_fn_c_try_link "$LINENO"; then :
9876  eval $cacheid=yes
9877else
9878  eval $cacheid=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext \
9881    conftest$ac_exeext conftest.$ac_ext
9882fi
9883
9884
9885		CFLAGS="$xorg_testset_save_CFLAGS"
9886
9887		eval supported=\$$cacheid
9888		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9889$as_echo "$supported" >&6; }
9890		if test "$supported" = "yes" ; then
9891			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9892			found="yes"
9893		fi
9894	fi
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910xorg_testset_save_CFLAGS="$CFLAGS"
9911
9912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9913	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9914	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9917  $as_echo_n "(cached) " >&6
9918else
9919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h.  */
9921int i;
9922_ACEOF
9923if ac_fn_c_try_compile "$LINENO"; then :
9924  xorg_cv_cc_flag_unknown_warning_option=yes
9925else
9926  xorg_cv_cc_flag_unknown_warning_option=no
9927fi
9928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929fi
9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9932	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9933	CFLAGS="$xorg_testset_save_CFLAGS"
9934fi
9935
9936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9937	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9938		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939	fi
9940	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9941	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9944  $as_echo_n "(cached) " >&6
9945else
9946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9947/* end confdefs.h.  */
9948int i;
9949_ACEOF
9950if ac_fn_c_try_compile "$LINENO"; then :
9951  xorg_cv_cc_flag_unused_command_line_argument=yes
9952else
9953  xorg_cv_cc_flag_unused_command_line_argument=no
9954fi
9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9956fi
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9960	CFLAGS="$xorg_testset_save_CFLAGS"
9961fi
9962
9963found="no"
9964
9965	if test $found = "no" ; then
9966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9968		fi
9969
9970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9972		fi
9973
9974		CFLAGS="$CFLAGS -Warray-bounds"
9975
9976		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9977$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9978		cacheid=xorg_cv_cc_flag__Warray_bounds
9979		if eval \${$cacheid+:} false; then :
9980  $as_echo_n "(cached) " >&6
9981else
9982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h.  */
9984int i;
9985int
9986main ()
9987{
9988
9989  ;
9990  return 0;
9991}
9992_ACEOF
9993if ac_fn_c_try_link "$LINENO"; then :
9994  eval $cacheid=yes
9995else
9996  eval $cacheid=no
9997fi
9998rm -f core conftest.err conftest.$ac_objext \
9999    conftest$ac_exeext conftest.$ac_ext
10000fi
10001
10002
10003		CFLAGS="$xorg_testset_save_CFLAGS"
10004
10005		eval supported=\$$cacheid
10006		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10007$as_echo "$supported" >&6; }
10008		if test "$supported" = "yes" ; then
10009			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10010			found="yes"
10011		fi
10012	fi
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028xorg_testset_save_CFLAGS="$CFLAGS"
10029
10030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10031	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10032	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10035  $as_echo_n "(cached) " >&6
10036else
10037  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038/* end confdefs.h.  */
10039int i;
10040_ACEOF
10041if ac_fn_c_try_compile "$LINENO"; then :
10042  xorg_cv_cc_flag_unknown_warning_option=yes
10043else
10044  xorg_cv_cc_flag_unknown_warning_option=no
10045fi
10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10047fi
10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10051	CFLAGS="$xorg_testset_save_CFLAGS"
10052fi
10053
10054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10057	fi
10058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10059	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10062  $as_echo_n "(cached) " >&6
10063else
10064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065/* end confdefs.h.  */
10066int i;
10067_ACEOF
10068if ac_fn_c_try_compile "$LINENO"; then :
10069  xorg_cv_cc_flag_unused_command_line_argument=yes
10070else
10071  xorg_cv_cc_flag_unused_command_line_argument=no
10072fi
10073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074fi
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10077	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10078	CFLAGS="$xorg_testset_save_CFLAGS"
10079fi
10080
10081found="no"
10082
10083	if test $found = "no" ; then
10084		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10085			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10086		fi
10087
10088		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10089			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10090		fi
10091
10092		CFLAGS="$CFLAGS -Wwrite-strings"
10093
10094		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10095$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
10096		cacheid=xorg_cv_cc_flag__Wwrite_strings
10097		if eval \${$cacheid+:} false; then :
10098  $as_echo_n "(cached) " >&6
10099else
10100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101/* end confdefs.h.  */
10102int i;
10103int
10104main ()
10105{
10106
10107  ;
10108  return 0;
10109}
10110_ACEOF
10111if ac_fn_c_try_link "$LINENO"; then :
10112  eval $cacheid=yes
10113else
10114  eval $cacheid=no
10115fi
10116rm -f core conftest.err conftest.$ac_objext \
10117    conftest$ac_exeext conftest.$ac_ext
10118fi
10119
10120
10121		CFLAGS="$xorg_testset_save_CFLAGS"
10122
10123		eval supported=\$$cacheid
10124		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10125$as_echo "$supported" >&6; }
10126		if test "$supported" = "yes" ; then
10127			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10128			found="yes"
10129		fi
10130	fi
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146xorg_testset_save_CFLAGS="$CFLAGS"
10147
10148if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10149	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10151$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10152if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10153  $as_echo_n "(cached) " >&6
10154else
10155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156/* end confdefs.h.  */
10157int i;
10158_ACEOF
10159if ac_fn_c_try_compile "$LINENO"; then :
10160  xorg_cv_cc_flag_unknown_warning_option=yes
10161else
10162  xorg_cv_cc_flag_unknown_warning_option=no
10163fi
10164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10165fi
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169	CFLAGS="$xorg_testset_save_CFLAGS"
10170fi
10171
10172if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175	fi
10176	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10180  $as_echo_n "(cached) " >&6
10181else
10182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183/* end confdefs.h.  */
10184int i;
10185_ACEOF
10186if ac_fn_c_try_compile "$LINENO"; then :
10187  xorg_cv_cc_flag_unused_command_line_argument=yes
10188else
10189  xorg_cv_cc_flag_unused_command_line_argument=no
10190fi
10191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10192fi
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10194$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10195	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10196	CFLAGS="$xorg_testset_save_CFLAGS"
10197fi
10198
10199found="no"
10200
10201	if test $found = "no" ; then
10202		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204		fi
10205
10206		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10207			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10208		fi
10209
10210		CFLAGS="$CFLAGS -Waddress"
10211
10212		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10213$as_echo_n "checking if $CC supports -Waddress... " >&6; }
10214		cacheid=xorg_cv_cc_flag__Waddress
10215		if eval \${$cacheid+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221int
10222main ()
10223{
10224
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229if ac_fn_c_try_link "$LINENO"; then :
10230  eval $cacheid=yes
10231else
10232  eval $cacheid=no
10233fi
10234rm -f core conftest.err conftest.$ac_objext \
10235    conftest$ac_exeext conftest.$ac_ext
10236fi
10237
10238
10239		CFLAGS="$xorg_testset_save_CFLAGS"
10240
10241		eval supported=\$$cacheid
10242		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10243$as_echo "$supported" >&6; }
10244		if test "$supported" = "yes" ; then
10245			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10246			found="yes"
10247		fi
10248	fi
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264xorg_testset_save_CFLAGS="$CFLAGS"
10265
10266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10268	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10269$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10270if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10271  $as_echo_n "(cached) " >&6
10272else
10273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275int i;
10276_ACEOF
10277if ac_fn_c_try_compile "$LINENO"; then :
10278  xorg_cv_cc_flag_unknown_warning_option=yes
10279else
10280  xorg_cv_cc_flag_unknown_warning_option=no
10281fi
10282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10283fi
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287	CFLAGS="$xorg_testset_save_CFLAGS"
10288fi
10289
10290if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293	fi
10294	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10298  $as_echo_n "(cached) " >&6
10299else
10300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302int i;
10303_ACEOF
10304if ac_fn_c_try_compile "$LINENO"; then :
10305  xorg_cv_cc_flag_unused_command_line_argument=yes
10306else
10307  xorg_cv_cc_flag_unused_command_line_argument=no
10308fi
10309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10310fi
10311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10312$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10313	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10314	CFLAGS="$xorg_testset_save_CFLAGS"
10315fi
10316
10317found="no"
10318
10319	if test $found = "no" ; then
10320		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10322		fi
10323
10324		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326		fi
10327
10328		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10329
10330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10331$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10332		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10333		if eval \${$cacheid+:} false; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338int i;
10339int
10340main ()
10341{
10342
10343  ;
10344  return 0;
10345}
10346_ACEOF
10347if ac_fn_c_try_link "$LINENO"; then :
10348  eval $cacheid=yes
10349else
10350  eval $cacheid=no
10351fi
10352rm -f core conftest.err conftest.$ac_objext \
10353    conftest$ac_exeext conftest.$ac_ext
10354fi
10355
10356
10357		CFLAGS="$xorg_testset_save_CFLAGS"
10358
10359		eval supported=\$$cacheid
10360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10361$as_echo "$supported" >&6; }
10362		if test "$supported" = "yes" ; then
10363			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10364			found="yes"
10365		fi
10366	fi
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382xorg_testset_save_CFLAGS="$CFLAGS"
10383
10384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10389  $as_echo_n "(cached) " >&6
10390else
10391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h.  */
10393int i;
10394_ACEOF
10395if ac_fn_c_try_compile "$LINENO"; then :
10396  xorg_cv_cc_flag_unknown_warning_option=yes
10397else
10398  xorg_cv_cc_flag_unknown_warning_option=no
10399fi
10400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401fi
10402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10405	CFLAGS="$xorg_testset_save_CFLAGS"
10406fi
10407
10408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411	fi
10412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10416  $as_echo_n "(cached) " >&6
10417else
10418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419/* end confdefs.h.  */
10420int i;
10421_ACEOF
10422if ac_fn_c_try_compile "$LINENO"; then :
10423  xorg_cv_cc_flag_unused_command_line_argument=yes
10424else
10425  xorg_cv_cc_flag_unused_command_line_argument=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10432	CFLAGS="$xorg_testset_save_CFLAGS"
10433fi
10434
10435found="no"
10436
10437	if test $found = "no" ; then
10438		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10440		fi
10441
10442		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444		fi
10445
10446		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10447
10448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10449$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10450		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10451		if eval \${$cacheid+:} false; then :
10452  $as_echo_n "(cached) " >&6
10453else
10454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455/* end confdefs.h.  */
10456int i;
10457int
10458main ()
10459{
10460
10461  ;
10462  return 0;
10463}
10464_ACEOF
10465if ac_fn_c_try_link "$LINENO"; then :
10466  eval $cacheid=yes
10467else
10468  eval $cacheid=no
10469fi
10470rm -f core conftest.err conftest.$ac_objext \
10471    conftest$ac_exeext conftest.$ac_ext
10472fi
10473
10474
10475		CFLAGS="$xorg_testset_save_CFLAGS"
10476
10477		eval supported=\$$cacheid
10478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10479$as_echo "$supported" >&6; }
10480		if test "$supported" = "yes" ; then
10481			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10482			found="yes"
10483		fi
10484	fi
10485
10486
10487fi
10488
10489
10490
10491
10492
10493
10494
10495		CWARNFLAGS="$BASE_CFLAGS"
10496		if  test "x$GCC" = xyes ; then
10497		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10498		fi
10499
10500
10501
10502
10503
10504
10505
10506
10507# Check whether --enable-strict-compilation was given.
10508if test "${enable_strict_compilation+set}" = set; then :
10509  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10510else
10511  STRICT_COMPILE=no
10512fi
10513
10514
10515
10516
10517
10518
10519STRICT_CFLAGS=""
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533xorg_testset_save_CFLAGS="$CFLAGS"
10534
10535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10537	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10538$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10539if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10540  $as_echo_n "(cached) " >&6
10541else
10542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h.  */
10544int i;
10545_ACEOF
10546if ac_fn_c_try_compile "$LINENO"; then :
10547  xorg_cv_cc_flag_unknown_warning_option=yes
10548else
10549  xorg_cv_cc_flag_unknown_warning_option=no
10550fi
10551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10552fi
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10554$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10555	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10556	CFLAGS="$xorg_testset_save_CFLAGS"
10557fi
10558
10559if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10560	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10561		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10562	fi
10563	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10565$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10566if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10567  $as_echo_n "(cached) " >&6
10568else
10569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h.  */
10571int i;
10572_ACEOF
10573if ac_fn_c_try_compile "$LINENO"; then :
10574  xorg_cv_cc_flag_unused_command_line_argument=yes
10575else
10576  xorg_cv_cc_flag_unused_command_line_argument=no
10577fi
10578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10581$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10582	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10583	CFLAGS="$xorg_testset_save_CFLAGS"
10584fi
10585
10586found="no"
10587
10588	if test $found = "no" ; then
10589		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10590			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10591		fi
10592
10593		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10594			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10595		fi
10596
10597		CFLAGS="$CFLAGS -pedantic"
10598
10599		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10600$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10601		cacheid=xorg_cv_cc_flag__pedantic
10602		if eval \${$cacheid+:} false; then :
10603  $as_echo_n "(cached) " >&6
10604else
10605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606/* end confdefs.h.  */
10607int i;
10608int
10609main ()
10610{
10611
10612  ;
10613  return 0;
10614}
10615_ACEOF
10616if ac_fn_c_try_link "$LINENO"; then :
10617  eval $cacheid=yes
10618else
10619  eval $cacheid=no
10620fi
10621rm -f core conftest.err conftest.$ac_objext \
10622    conftest$ac_exeext conftest.$ac_ext
10623fi
10624
10625
10626		CFLAGS="$xorg_testset_save_CFLAGS"
10627
10628		eval supported=\$$cacheid
10629		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10630$as_echo "$supported" >&6; }
10631		if test "$supported" = "yes" ; then
10632			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10633			found="yes"
10634		fi
10635	fi
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651xorg_testset_save_CFLAGS="$CFLAGS"
10652
10653if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10654	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10656$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10657if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10658  $as_echo_n "(cached) " >&6
10659else
10660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661/* end confdefs.h.  */
10662int i;
10663_ACEOF
10664if ac_fn_c_try_compile "$LINENO"; then :
10665  xorg_cv_cc_flag_unknown_warning_option=yes
10666else
10667  xorg_cv_cc_flag_unknown_warning_option=no
10668fi
10669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670fi
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10672$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10674	CFLAGS="$xorg_testset_save_CFLAGS"
10675fi
10676
10677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10680	fi
10681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10683$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10684if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10685  $as_echo_n "(cached) " >&6
10686else
10687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10688/* end confdefs.h.  */
10689int i;
10690_ACEOF
10691if ac_fn_c_try_compile "$LINENO"; then :
10692  xorg_cv_cc_flag_unused_command_line_argument=yes
10693else
10694  xorg_cv_cc_flag_unused_command_line_argument=no
10695fi
10696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10697fi
10698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10699$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10701	CFLAGS="$xorg_testset_save_CFLAGS"
10702fi
10703
10704found="no"
10705
10706	if test $found = "no" ; then
10707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10709		fi
10710
10711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10713		fi
10714
10715		CFLAGS="$CFLAGS -Werror"
10716
10717		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10718$as_echo_n "checking if $CC supports -Werror... " >&6; }
10719		cacheid=xorg_cv_cc_flag__Werror
10720		if eval \${$cacheid+:} false; then :
10721  $as_echo_n "(cached) " >&6
10722else
10723  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724/* end confdefs.h.  */
10725int i;
10726int
10727main ()
10728{
10729
10730  ;
10731  return 0;
10732}
10733_ACEOF
10734if ac_fn_c_try_link "$LINENO"; then :
10735  eval $cacheid=yes
10736else
10737  eval $cacheid=no
10738fi
10739rm -f core conftest.err conftest.$ac_objext \
10740    conftest$ac_exeext conftest.$ac_ext
10741fi
10742
10743
10744		CFLAGS="$xorg_testset_save_CFLAGS"
10745
10746		eval supported=\$$cacheid
10747		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10748$as_echo "$supported" >&6; }
10749		if test "$supported" = "yes" ; then
10750			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10751			found="yes"
10752		fi
10753	fi
10754
10755	if test $found = "no" ; then
10756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10758		fi
10759
10760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10762		fi
10763
10764		CFLAGS="$CFLAGS -errwarn"
10765
10766		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10767$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10768		cacheid=xorg_cv_cc_flag__errwarn
10769		if eval \${$cacheid+:} false; then :
10770  $as_echo_n "(cached) " >&6
10771else
10772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h.  */
10774int i;
10775int
10776main ()
10777{
10778
10779  ;
10780  return 0;
10781}
10782_ACEOF
10783if ac_fn_c_try_link "$LINENO"; then :
10784  eval $cacheid=yes
10785else
10786  eval $cacheid=no
10787fi
10788rm -f core conftest.err conftest.$ac_objext \
10789    conftest$ac_exeext conftest.$ac_ext
10790fi
10791
10792
10793		CFLAGS="$xorg_testset_save_CFLAGS"
10794
10795		eval supported=\$$cacheid
10796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10797$as_echo "$supported" >&6; }
10798		if test "$supported" = "yes" ; then
10799			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10800			found="yes"
10801		fi
10802	fi
10803
10804
10805
10806# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10807# activate it with -Werror, so we add it here explicitly.
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821xorg_testset_save_CFLAGS="$CFLAGS"
10822
10823if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10824	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10826$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10827if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10828  $as_echo_n "(cached) " >&6
10829else
10830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831/* end confdefs.h.  */
10832int i;
10833_ACEOF
10834if ac_fn_c_try_compile "$LINENO"; then :
10835  xorg_cv_cc_flag_unknown_warning_option=yes
10836else
10837  xorg_cv_cc_flag_unknown_warning_option=no
10838fi
10839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10840fi
10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10842$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10843	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10844	CFLAGS="$xorg_testset_save_CFLAGS"
10845fi
10846
10847if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10848	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10849		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10850	fi
10851	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10853$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10854if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10855  $as_echo_n "(cached) " >&6
10856else
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860_ACEOF
10861if ac_fn_c_try_compile "$LINENO"; then :
10862  xorg_cv_cc_flag_unused_command_line_argument=yes
10863else
10864  xorg_cv_cc_flag_unused_command_line_argument=no
10865fi
10866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10867fi
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10869$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10870	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10871	CFLAGS="$xorg_testset_save_CFLAGS"
10872fi
10873
10874found="no"
10875
10876	if test $found = "no" ; then
10877		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10878			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10879		fi
10880
10881		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10882			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10883		fi
10884
10885		CFLAGS="$CFLAGS -Werror=attributes"
10886
10887		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10888$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10889		cacheid=xorg_cv_cc_flag__Werror_attributes
10890		if eval \${$cacheid+:} false; then :
10891  $as_echo_n "(cached) " >&6
10892else
10893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894/* end confdefs.h.  */
10895int i;
10896int
10897main ()
10898{
10899
10900  ;
10901  return 0;
10902}
10903_ACEOF
10904if ac_fn_c_try_link "$LINENO"; then :
10905  eval $cacheid=yes
10906else
10907  eval $cacheid=no
10908fi
10909rm -f core conftest.err conftest.$ac_objext \
10910    conftest$ac_exeext conftest.$ac_ext
10911fi
10912
10913
10914		CFLAGS="$xorg_testset_save_CFLAGS"
10915
10916		eval supported=\$$cacheid
10917		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10918$as_echo "$supported" >&6; }
10919		if test "$supported" = "yes" ; then
10920			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10921			found="yes"
10922		fi
10923	fi
10924
10925
10926
10927if test "x$STRICT_COMPILE" = "xyes"; then
10928    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10929    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10930fi
10931
10932
10933
10934
10935
10936
10937cat >>confdefs.h <<_ACEOF
10938#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10939_ACEOF
10940
10941	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10942	if test "x$PVM" = "x"; then
10943		PVM="0"
10944	fi
10945
10946cat >>confdefs.h <<_ACEOF
10947#define PACKAGE_VERSION_MINOR $PVM
10948_ACEOF
10949
10950	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10951	if test "x$PVP" = "x"; then
10952		PVP="0"
10953	fi
10954
10955cat >>confdefs.h <<_ACEOF
10956#define PACKAGE_VERSION_PATCHLEVEL $PVP
10957_ACEOF
10958
10959
10960
10961CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10962mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10963|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10964echo 'git directory not found: installing possibly empty changelog.' >&2)"
10965
10966
10967
10968
10969macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10970INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10971mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10972|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10973echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10974
10975
10976
10977
10978
10979
10980if test x$APP_MAN_SUFFIX = x    ; then
10981    APP_MAN_SUFFIX=1
10982fi
10983if test x$APP_MAN_DIR = x    ; then
10984    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10985fi
10986
10987if test x$LIB_MAN_SUFFIX = x    ; then
10988    LIB_MAN_SUFFIX=3
10989fi
10990if test x$LIB_MAN_DIR = x    ; then
10991    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10992fi
10993
10994if test x$FILE_MAN_SUFFIX = x    ; then
10995    case $host_os in
10996	solaris*)	FILE_MAN_SUFFIX=4  ;;
10997	*)		FILE_MAN_SUFFIX=5  ;;
10998    esac
10999fi
11000if test x$FILE_MAN_DIR = x    ; then
11001    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11002fi
11003
11004if test x$MISC_MAN_SUFFIX = x    ; then
11005    case $host_os in
11006	solaris*)	MISC_MAN_SUFFIX=5  ;;
11007	*)		MISC_MAN_SUFFIX=7  ;;
11008    esac
11009fi
11010if test x$MISC_MAN_DIR = x    ; then
11011    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11012fi
11013
11014if test x$DRIVER_MAN_SUFFIX = x    ; then
11015    case $host_os in
11016	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
11017	*)		DRIVER_MAN_SUFFIX=4  ;;
11018    esac
11019fi
11020if test x$DRIVER_MAN_DIR = x    ; then
11021    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11022fi
11023
11024if test x$ADMIN_MAN_SUFFIX = x    ; then
11025    case $host_os in
11026	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
11027	*)		ADMIN_MAN_SUFFIX=8  ;;
11028    esac
11029fi
11030if test x$ADMIN_MAN_DIR = x    ; then
11031    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11032fi
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048XORG_MAN_PAGE="X Version 11"
11049
11050MAN_SUBSTS="\
11051	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11052	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11053	-e 's|__xservername__|Xorg|g' \
11054	-e 's|__xconfigfile__|xorg.conf|g' \
11055	-e 's|__projectroot__|\$(prefix)|g' \
11056	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11057	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11058	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11059	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11060	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11061	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11062	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11063
11064
11065
11066# Check whether --enable-silent-rules was given.
11067if test "${enable_silent_rules+set}" = set; then :
11068  enableval=$enable_silent_rules;
11069fi
11070
11071case $enable_silent_rules in # (((
11072  yes) AM_DEFAULT_VERBOSITY=0;;
11073   no) AM_DEFAULT_VERBOSITY=1;;
11074    *) AM_DEFAULT_VERBOSITY=0;;
11075esac
11076am_make=${MAKE-make}
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11078$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11079if ${am_cv_make_support_nested_variables+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  if $as_echo 'TRUE=$(BAR$(V))
11083BAR0=false
11084BAR1=true
11085V=1
11086am__doit:
11087	@$(TRUE)
11088.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11089  am_cv_make_support_nested_variables=yes
11090else
11091  am_cv_make_support_nested_variables=no
11092fi
11093fi
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11095$as_echo "$am_cv_make_support_nested_variables" >&6; }
11096if test $am_cv_make_support_nested_variables = yes; then
11097    AM_V='$(V)'
11098  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11099else
11100  AM_V=$AM_DEFAULT_VERBOSITY
11101  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11102fi
11103AM_BACKSLASH='\'
11104
11105
11106
11107# Initialize libtool
11108# Check whether --enable-static was given.
11109if test "${enable_static+set}" = set; then :
11110  enableval=$enable_static; p=${PACKAGE-default}
11111    case $enableval in
11112    yes) enable_static=yes ;;
11113    no) enable_static=no ;;
11114    *)
11115     enable_static=no
11116      # Look at the argument we got.  We use all the common list separators.
11117      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11118      for pkg in $enableval; do
11119	IFS=$lt_save_ifs
11120	if test "X$pkg" = "X$p"; then
11121	  enable_static=yes
11122	fi
11123      done
11124      IFS=$lt_save_ifs
11125      ;;
11126    esac
11127else
11128  enable_static=no
11129fi
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139case `pwd` in
11140  *\ * | *\	*)
11141    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11142$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11143esac
11144
11145
11146
11147macro_version='2.4.6'
11148macro_revision='2.4.6'
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162ltmain=$ac_aux_dir/ltmain.sh
11163
11164# Backslashify metacharacters that are still active within
11165# double-quoted strings.
11166sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11167
11168# Same as above, but do not quote variable references.
11169double_quote_subst='s/\(["`\\]\)/\\\1/g'
11170
11171# Sed substitution to delay expansion of an escaped shell variable in a
11172# double_quote_subst'ed string.
11173delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11174
11175# Sed substitution to delay expansion of an escaped single quote.
11176delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11177
11178# Sed substitution to avoid accidental globbing in evaled expressions
11179no_glob_subst='s/\*/\\\*/g'
11180
11181ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11182ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11183ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11184
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11186$as_echo_n "checking how to print strings... " >&6; }
11187# Test print first, because it will be a builtin if present.
11188if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11189   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11190  ECHO='print -r --'
11191elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11192  ECHO='printf %s\n'
11193else
11194  # Use this function as a fallback that always works.
11195  func_fallback_echo ()
11196  {
11197    eval 'cat <<_LTECHO_EOF
11198$1
11199_LTECHO_EOF'
11200  }
11201  ECHO='func_fallback_echo'
11202fi
11203
11204# func_echo_all arg...
11205# Invoke $ECHO with all args, space-separated.
11206func_echo_all ()
11207{
11208    $ECHO ""
11209}
11210
11211case $ECHO in
11212  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11213$as_echo "printf" >&6; } ;;
11214  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11215$as_echo "print -r" >&6; } ;;
11216  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11217$as_echo "cat" >&6; } ;;
11218esac
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11234$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11235if ${ac_cv_path_SED+:} false; then :
11236  $as_echo_n "(cached) " >&6
11237else
11238            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11239     for ac_i in 1 2 3 4 5 6 7; do
11240       ac_script="$ac_script$as_nl$ac_script"
11241     done
11242     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11243     { ac_script=; unset ac_script;}
11244     if test -z "$SED"; then
11245  ac_path_SED_found=false
11246  # Loop through the user's path and test for each of PROGNAME-LIST
11247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248for as_dir in $PATH
11249do
11250  IFS=$as_save_IFS
11251  test -z "$as_dir" && as_dir=.
11252    for ac_prog in sed gsed; do
11253    for ac_exec_ext in '' $ac_executable_extensions; do
11254      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11255      as_fn_executable_p "$ac_path_SED" || continue
11256# Check for GNU ac_path_SED and select it if it is found.
11257  # Check for GNU $ac_path_SED
11258case `"$ac_path_SED" --version 2>&1` in
11259*GNU*)
11260  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11261*)
11262  ac_count=0
11263  $as_echo_n 0123456789 >"conftest.in"
11264  while :
11265  do
11266    cat "conftest.in" "conftest.in" >"conftest.tmp"
11267    mv "conftest.tmp" "conftest.in"
11268    cp "conftest.in" "conftest.nl"
11269    $as_echo '' >> "conftest.nl"
11270    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11271    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11272    as_fn_arith $ac_count + 1 && ac_count=$as_val
11273    if test $ac_count -gt ${ac_path_SED_max-0}; then
11274      # Best one so far, save it but keep looking for a better one
11275      ac_cv_path_SED="$ac_path_SED"
11276      ac_path_SED_max=$ac_count
11277    fi
11278    # 10*(2^10) chars as input seems more than enough
11279    test $ac_count -gt 10 && break
11280  done
11281  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11282esac
11283
11284      $ac_path_SED_found && break 3
11285    done
11286  done
11287  done
11288IFS=$as_save_IFS
11289  if test -z "$ac_cv_path_SED"; then
11290    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11291  fi
11292else
11293  ac_cv_path_SED=$SED
11294fi
11295
11296fi
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11298$as_echo "$ac_cv_path_SED" >&6; }
11299 SED="$ac_cv_path_SED"
11300  rm -f conftest.sed
11301
11302test -z "$SED" && SED=sed
11303Xsed="$SED -e 1s/^X//"
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11316$as_echo_n "checking for fgrep... " >&6; }
11317if ${ac_cv_path_FGREP+:} false; then :
11318  $as_echo_n "(cached) " >&6
11319else
11320  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11321   then ac_cv_path_FGREP="$GREP -F"
11322   else
11323     if test -z "$FGREP"; then
11324  ac_path_FGREP_found=false
11325  # Loop through the user's path and test for each of PROGNAME-LIST
11326  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11328do
11329  IFS=$as_save_IFS
11330  test -z "$as_dir" && as_dir=.
11331    for ac_prog in fgrep; do
11332    for ac_exec_ext in '' $ac_executable_extensions; do
11333      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11334      as_fn_executable_p "$ac_path_FGREP" || continue
11335# Check for GNU ac_path_FGREP and select it if it is found.
11336  # Check for GNU $ac_path_FGREP
11337case `"$ac_path_FGREP" --version 2>&1` in
11338*GNU*)
11339  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11340*)
11341  ac_count=0
11342  $as_echo_n 0123456789 >"conftest.in"
11343  while :
11344  do
11345    cat "conftest.in" "conftest.in" >"conftest.tmp"
11346    mv "conftest.tmp" "conftest.in"
11347    cp "conftest.in" "conftest.nl"
11348    $as_echo 'FGREP' >> "conftest.nl"
11349    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11350    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11351    as_fn_arith $ac_count + 1 && ac_count=$as_val
11352    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11353      # Best one so far, save it but keep looking for a better one
11354      ac_cv_path_FGREP="$ac_path_FGREP"
11355      ac_path_FGREP_max=$ac_count
11356    fi
11357    # 10*(2^10) chars as input seems more than enough
11358    test $ac_count -gt 10 && break
11359  done
11360  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11361esac
11362
11363      $ac_path_FGREP_found && break 3
11364    done
11365  done
11366  done
11367IFS=$as_save_IFS
11368  if test -z "$ac_cv_path_FGREP"; then
11369    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11370  fi
11371else
11372  ac_cv_path_FGREP=$FGREP
11373fi
11374
11375   fi
11376fi
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11378$as_echo "$ac_cv_path_FGREP" >&6; }
11379 FGREP="$ac_cv_path_FGREP"
11380
11381
11382test -z "$GREP" && GREP=grep
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402# Check whether --with-gnu-ld was given.
11403if test "${with_gnu_ld+set}" = set; then :
11404  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11405else
11406  with_gnu_ld=no
11407fi
11408
11409ac_prog=ld
11410if test yes = "$GCC"; then
11411  # Check if gcc -print-prog-name=ld gives a path.
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11413$as_echo_n "checking for ld used by $CC... " >&6; }
11414  case $host in
11415  *-*-mingw*)
11416    # gcc leaves a trailing carriage return, which upsets mingw
11417    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11418  *)
11419    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11420  esac
11421  case $ac_prog in
11422    # Accept absolute paths.
11423    [\\/]* | ?:[\\/]*)
11424      re_direlt='/[^/][^/]*/\.\./'
11425      # Canonicalize the pathname of ld
11426      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11427      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11428	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11429      done
11430      test -z "$LD" && LD=$ac_prog
11431      ;;
11432  "")
11433    # If it fails, then pretend we aren't using GCC.
11434    ac_prog=ld
11435    ;;
11436  *)
11437    # If it is relative, then search for the first ld in PATH.
11438    with_gnu_ld=unknown
11439    ;;
11440  esac
11441elif test yes = "$with_gnu_ld"; then
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11443$as_echo_n "checking for GNU ld... " >&6; }
11444else
11445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11446$as_echo_n "checking for non-GNU ld... " >&6; }
11447fi
11448if ${lt_cv_path_LD+:} false; then :
11449  $as_echo_n "(cached) " >&6
11450else
11451  if test -z "$LD"; then
11452  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11453  for ac_dir in $PATH; do
11454    IFS=$lt_save_ifs
11455    test -z "$ac_dir" && ac_dir=.
11456    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11457      lt_cv_path_LD=$ac_dir/$ac_prog
11458      # Check to see if the program is GNU ld.  I'd rather use --version,
11459      # but apparently some variants of GNU ld only accept -v.
11460      # Break only if it was the GNU/non-GNU ld that we prefer.
11461      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11462      *GNU* | *'with BFD'*)
11463	test no != "$with_gnu_ld" && break
11464	;;
11465      *)
11466	test yes != "$with_gnu_ld" && break
11467	;;
11468      esac
11469    fi
11470  done
11471  IFS=$lt_save_ifs
11472else
11473  lt_cv_path_LD=$LD # Let the user override the test with a path.
11474fi
11475fi
11476
11477LD=$lt_cv_path_LD
11478if test -n "$LD"; then
11479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11480$as_echo "$LD" >&6; }
11481else
11482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
11484fi
11485test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11487$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11488if ${lt_cv_prog_gnu_ld+:} false; then :
11489  $as_echo_n "(cached) " >&6
11490else
11491  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11492case `$LD -v 2>&1 </dev/null` in
11493*GNU* | *'with BFD'*)
11494  lt_cv_prog_gnu_ld=yes
11495  ;;
11496*)
11497  lt_cv_prog_gnu_ld=no
11498  ;;
11499esac
11500fi
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11502$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11503with_gnu_ld=$lt_cv_prog_gnu_ld
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11514$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11515if ${lt_cv_path_NM+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518  if test -n "$NM"; then
11519  # Let the user override the test.
11520  lt_cv_path_NM=$NM
11521else
11522  lt_nm_to_check=${ac_tool_prefix}nm
11523  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11524    lt_nm_to_check="$lt_nm_to_check nm"
11525  fi
11526  for lt_tmp_nm in $lt_nm_to_check; do
11527    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11528    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11529      IFS=$lt_save_ifs
11530      test -z "$ac_dir" && ac_dir=.
11531      tmp_nm=$ac_dir/$lt_tmp_nm
11532      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11533	# Check to see if the nm accepts a BSD-compat flag.
11534	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11535	#   nm: unknown option "B" ignored
11536	# Tru64's nm complains that /dev/null is an invalid object file
11537	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11538	case $build_os in
11539	mingw*) lt_bad_file=conftest.nm/nofile ;;
11540	*) lt_bad_file=/dev/null ;;
11541	esac
11542	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11543	*$lt_bad_file* | *'Invalid file or object type'*)
11544	  lt_cv_path_NM="$tmp_nm -B"
11545	  break 2
11546	  ;;
11547	*)
11548	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11549	  */dev/null*)
11550	    lt_cv_path_NM="$tmp_nm -p"
11551	    break 2
11552	    ;;
11553	  *)
11554	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11555	    continue # so that we can try to find one that supports BSD flags
11556	    ;;
11557	  esac
11558	  ;;
11559	esac
11560      fi
11561    done
11562    IFS=$lt_save_ifs
11563  done
11564  : ${lt_cv_path_NM=no}
11565fi
11566fi
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11568$as_echo "$lt_cv_path_NM" >&6; }
11569if test no != "$lt_cv_path_NM"; then
11570  NM=$lt_cv_path_NM
11571else
11572  # Didn't find any BSD compatible name lister, look for dumpbin.
11573  if test -n "$DUMPBIN"; then :
11574    # Let the user override the test.
11575  else
11576    if test -n "$ac_tool_prefix"; then
11577  for ac_prog in dumpbin "link -dump"
11578  do
11579    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11580set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582$as_echo_n "checking for $ac_word... " >&6; }
11583if ${ac_cv_prog_DUMPBIN+:} false; then :
11584  $as_echo_n "(cached) " >&6
11585else
11586  if test -n "$DUMPBIN"; then
11587  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11588else
11589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590for as_dir in $PATH
11591do
11592  IFS=$as_save_IFS
11593  test -z "$as_dir" && as_dir=.
11594    for ac_exec_ext in '' $ac_executable_extensions; do
11595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11596    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11598    break 2
11599  fi
11600done
11601  done
11602IFS=$as_save_IFS
11603
11604fi
11605fi
11606DUMPBIN=$ac_cv_prog_DUMPBIN
11607if test -n "$DUMPBIN"; then
11608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11609$as_echo "$DUMPBIN" >&6; }
11610else
11611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
11613fi
11614
11615
11616    test -n "$DUMPBIN" && break
11617  done
11618fi
11619if test -z "$DUMPBIN"; then
11620  ac_ct_DUMPBIN=$DUMPBIN
11621  for ac_prog in dumpbin "link -dump"
11622do
11623  # Extract the first word of "$ac_prog", so it can be a program name with args.
11624set dummy $ac_prog; ac_word=$2
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626$as_echo_n "checking for $ac_word... " >&6; }
11627if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11628  $as_echo_n "(cached) " >&6
11629else
11630  if test -n "$ac_ct_DUMPBIN"; then
11631  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11632else
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636  IFS=$as_save_IFS
11637  test -z "$as_dir" && as_dir=.
11638    for ac_exec_ext in '' $ac_executable_extensions; do
11639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642    break 2
11643  fi
11644done
11645  done
11646IFS=$as_save_IFS
11647
11648fi
11649fi
11650ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11651if test -n "$ac_ct_DUMPBIN"; then
11652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11653$as_echo "$ac_ct_DUMPBIN" >&6; }
11654else
11655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656$as_echo "no" >&6; }
11657fi
11658
11659
11660  test -n "$ac_ct_DUMPBIN" && break
11661done
11662
11663  if test "x$ac_ct_DUMPBIN" = x; then
11664    DUMPBIN=":"
11665  else
11666    case $cross_compiling:$ac_tool_warned in
11667yes:)
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11670ac_tool_warned=yes ;;
11671esac
11672    DUMPBIN=$ac_ct_DUMPBIN
11673  fi
11674fi
11675
11676    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11677    *COFF*)
11678      DUMPBIN="$DUMPBIN -symbols -headers"
11679      ;;
11680    *)
11681      DUMPBIN=:
11682      ;;
11683    esac
11684  fi
11685
11686  if test : != "$DUMPBIN"; then
11687    NM=$DUMPBIN
11688  fi
11689fi
11690test -z "$NM" && NM=nm
11691
11692
11693
11694
11695
11696
11697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11698$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11699if ${lt_cv_nm_interface+:} false; then :
11700  $as_echo_n "(cached) " >&6
11701else
11702  lt_cv_nm_interface="BSD nm"
11703  echo "int some_variable = 0;" > conftest.$ac_ext
11704  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11705  (eval "$ac_compile" 2>conftest.err)
11706  cat conftest.err >&5
11707  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11708  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11709  cat conftest.err >&5
11710  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11711  cat conftest.out >&5
11712  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11713    lt_cv_nm_interface="MS dumpbin"
11714  fi
11715  rm -f conftest*
11716fi
11717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11718$as_echo "$lt_cv_nm_interface" >&6; }
11719
11720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11721$as_echo_n "checking whether ln -s works... " >&6; }
11722LN_S=$as_ln_s
11723if test "$LN_S" = "ln -s"; then
11724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11725$as_echo "yes" >&6; }
11726else
11727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11728$as_echo "no, using $LN_S" >&6; }
11729fi
11730
11731# find the maximum length of command line arguments
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11733$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11734if ${lt_cv_sys_max_cmd_len+:} false; then :
11735  $as_echo_n "(cached) " >&6
11736else
11737    i=0
11738  teststring=ABCD
11739
11740  case $build_os in
11741  msdosdjgpp*)
11742    # On DJGPP, this test can blow up pretty badly due to problems in libc
11743    # (any single argument exceeding 2000 bytes causes a buffer overrun
11744    # during glob expansion).  Even if it were fixed, the result of this
11745    # check would be larger than it should be.
11746    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11747    ;;
11748
11749  gnu*)
11750    # Under GNU Hurd, this test is not required because there is
11751    # no limit to the length of command line arguments.
11752    # Libtool will interpret -1 as no limit whatsoever
11753    lt_cv_sys_max_cmd_len=-1;
11754    ;;
11755
11756  cygwin* | mingw* | cegcc*)
11757    # On Win9x/ME, this test blows up -- it succeeds, but takes
11758    # about 5 minutes as the teststring grows exponentially.
11759    # Worse, since 9x/ME are not pre-emptively multitasking,
11760    # you end up with a "frozen" computer, even though with patience
11761    # the test eventually succeeds (with a max line length of 256k).
11762    # Instead, let's just punt: use the minimum linelength reported by
11763    # all of the supported platforms: 8192 (on NT/2K/XP).
11764    lt_cv_sys_max_cmd_len=8192;
11765    ;;
11766
11767  mint*)
11768    # On MiNT this can take a long time and run out of memory.
11769    lt_cv_sys_max_cmd_len=8192;
11770    ;;
11771
11772  amigaos*)
11773    # On AmigaOS with pdksh, this test takes hours, literally.
11774    # So we just punt and use a minimum line length of 8192.
11775    lt_cv_sys_max_cmd_len=8192;
11776    ;;
11777
11778  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11779    # This has been around since 386BSD, at least.  Likely further.
11780    if test -x /sbin/sysctl; then
11781      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11782    elif test -x /usr/sbin/sysctl; then
11783      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11784    else
11785      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11786    fi
11787    # And add a safety zone
11788    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11789    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11790    ;;
11791
11792  interix*)
11793    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11794    lt_cv_sys_max_cmd_len=196608
11795    ;;
11796
11797  os2*)
11798    # The test takes a long time on OS/2.
11799    lt_cv_sys_max_cmd_len=8192
11800    ;;
11801
11802  osf*)
11803    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11804    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11805    # nice to cause kernel panics so lets avoid the loop below.
11806    # First set a reasonable default.
11807    lt_cv_sys_max_cmd_len=16384
11808    #
11809    if test -x /sbin/sysconfig; then
11810      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11811        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11812      esac
11813    fi
11814    ;;
11815  sco3.2v5*)
11816    lt_cv_sys_max_cmd_len=102400
11817    ;;
11818  sysv5* | sco5v6* | sysv4.2uw2*)
11819    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11820    if test -n "$kargmax"; then
11821      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11822    else
11823      lt_cv_sys_max_cmd_len=32768
11824    fi
11825    ;;
11826  *)
11827    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11828    if test -n "$lt_cv_sys_max_cmd_len" && \
11829       test undefined != "$lt_cv_sys_max_cmd_len"; then
11830      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11831      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11832    else
11833      # Make teststring a little bigger before we do anything with it.
11834      # a 1K string should be a reasonable start.
11835      for i in 1 2 3 4 5 6 7 8; do
11836        teststring=$teststring$teststring
11837      done
11838      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11839      # If test is not a shell built-in, we'll probably end up computing a
11840      # maximum length that is only half of the actual maximum length, but
11841      # we can't tell.
11842      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11843	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11844	      test 17 != "$i" # 1/2 MB should be enough
11845      do
11846        i=`expr $i + 1`
11847        teststring=$teststring$teststring
11848      done
11849      # Only check the string length outside the loop.
11850      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11851      teststring=
11852      # Add a significant safety factor because C++ compilers can tack on
11853      # massive amounts of additional arguments before passing them to the
11854      # linker.  It appears as though 1/2 is a usable value.
11855      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11856    fi
11857    ;;
11858  esac
11859
11860fi
11861
11862if test -n "$lt_cv_sys_max_cmd_len"; then
11863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11864$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11865else
11866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11867$as_echo "none" >&6; }
11868fi
11869max_cmd_len=$lt_cv_sys_max_cmd_len
11870
11871
11872
11873
11874
11875
11876: ${CP="cp -f"}
11877: ${MV="mv -f"}
11878: ${RM="rm -f"}
11879
11880if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11881  lt_unset=unset
11882else
11883  lt_unset=false
11884fi
11885
11886
11887
11888
11889
11890# test EBCDIC or ASCII
11891case `echo X|tr X '\101'` in
11892 A) # ASCII based system
11893    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11894  lt_SP2NL='tr \040 \012'
11895  lt_NL2SP='tr \015\012 \040\040'
11896  ;;
11897 *) # EBCDIC based system
11898  lt_SP2NL='tr \100 \n'
11899  lt_NL2SP='tr \r\n \100\100'
11900  ;;
11901esac
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11912$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11913if ${lt_cv_to_host_file_cmd+:} false; then :
11914  $as_echo_n "(cached) " >&6
11915else
11916  case $host in
11917  *-*-mingw* )
11918    case $build in
11919      *-*-mingw* ) # actually msys
11920        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11921        ;;
11922      *-*-cygwin* )
11923        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11924        ;;
11925      * ) # otherwise, assume *nix
11926        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11927        ;;
11928    esac
11929    ;;
11930  *-*-cygwin* )
11931    case $build in
11932      *-*-mingw* ) # actually msys
11933        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11934        ;;
11935      *-*-cygwin* )
11936        lt_cv_to_host_file_cmd=func_convert_file_noop
11937        ;;
11938      * ) # otherwise, assume *nix
11939        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11940        ;;
11941    esac
11942    ;;
11943  * ) # unhandled hosts (and "normal" native builds)
11944    lt_cv_to_host_file_cmd=func_convert_file_noop
11945    ;;
11946esac
11947
11948fi
11949
11950to_host_file_cmd=$lt_cv_to_host_file_cmd
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11952$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11953
11954
11955
11956
11957
11958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11959$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11960if ${lt_cv_to_tool_file_cmd+:} false; then :
11961  $as_echo_n "(cached) " >&6
11962else
11963  #assume ordinary cross tools, or native build.
11964lt_cv_to_tool_file_cmd=func_convert_file_noop
11965case $host in
11966  *-*-mingw* )
11967    case $build in
11968      *-*-mingw* ) # actually msys
11969        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11970        ;;
11971    esac
11972    ;;
11973esac
11974
11975fi
11976
11977to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11979$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11980
11981
11982
11983
11984
11985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11986$as_echo_n "checking for $LD option to reload object files... " >&6; }
11987if ${lt_cv_ld_reload_flag+:} false; then :
11988  $as_echo_n "(cached) " >&6
11989else
11990  lt_cv_ld_reload_flag='-r'
11991fi
11992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11993$as_echo "$lt_cv_ld_reload_flag" >&6; }
11994reload_flag=$lt_cv_ld_reload_flag
11995case $reload_flag in
11996"" | " "*) ;;
11997*) reload_flag=" $reload_flag" ;;
11998esac
11999reload_cmds='$LD$reload_flag -o $output$reload_objs'
12000case $host_os in
12001  cygwin* | mingw* | pw32* | cegcc*)
12002    if test yes != "$GCC"; then
12003      reload_cmds=false
12004    fi
12005    ;;
12006  darwin*)
12007    if test yes = "$GCC"; then
12008      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12009    else
12010      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12011    fi
12012    ;;
12013esac
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023if test -n "$ac_tool_prefix"; then
12024  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12025set dummy ${ac_tool_prefix}objdump; ac_word=$2
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12027$as_echo_n "checking for $ac_word... " >&6; }
12028if ${ac_cv_prog_OBJDUMP+:} false; then :
12029  $as_echo_n "(cached) " >&6
12030else
12031  if test -n "$OBJDUMP"; then
12032  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12033else
12034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035for as_dir in $PATH
12036do
12037  IFS=$as_save_IFS
12038  test -z "$as_dir" && as_dir=.
12039    for ac_exec_ext in '' $ac_executable_extensions; do
12040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043    break 2
12044  fi
12045done
12046  done
12047IFS=$as_save_IFS
12048
12049fi
12050fi
12051OBJDUMP=$ac_cv_prog_OBJDUMP
12052if test -n "$OBJDUMP"; then
12053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12054$as_echo "$OBJDUMP" >&6; }
12055else
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057$as_echo "no" >&6; }
12058fi
12059
12060
12061fi
12062if test -z "$ac_cv_prog_OBJDUMP"; then
12063  ac_ct_OBJDUMP=$OBJDUMP
12064  # Extract the first word of "objdump", so it can be a program name with args.
12065set dummy objdump; ac_word=$2
12066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12067$as_echo_n "checking for $ac_word... " >&6; }
12068if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12069  $as_echo_n "(cached) " >&6
12070else
12071  if test -n "$ac_ct_OBJDUMP"; then
12072  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12073else
12074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075for as_dir in $PATH
12076do
12077  IFS=$as_save_IFS
12078  test -z "$as_dir" && as_dir=.
12079    for ac_exec_ext in '' $ac_executable_extensions; do
12080  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12081    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083    break 2
12084  fi
12085done
12086  done
12087IFS=$as_save_IFS
12088
12089fi
12090fi
12091ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12092if test -n "$ac_ct_OBJDUMP"; then
12093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12094$as_echo "$ac_ct_OBJDUMP" >&6; }
12095else
12096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12097$as_echo "no" >&6; }
12098fi
12099
12100  if test "x$ac_ct_OBJDUMP" = x; then
12101    OBJDUMP="false"
12102  else
12103    case $cross_compiling:$ac_tool_warned in
12104yes:)
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12107ac_tool_warned=yes ;;
12108esac
12109    OBJDUMP=$ac_ct_OBJDUMP
12110  fi
12111else
12112  OBJDUMP="$ac_cv_prog_OBJDUMP"
12113fi
12114
12115test -z "$OBJDUMP" && OBJDUMP=objdump
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12126$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12127if ${lt_cv_deplibs_check_method+:} false; then :
12128  $as_echo_n "(cached) " >&6
12129else
12130  lt_cv_file_magic_cmd='$MAGIC_CMD'
12131lt_cv_file_magic_test_file=
12132lt_cv_deplibs_check_method='unknown'
12133# Need to set the preceding variable on all platforms that support
12134# interlibrary dependencies.
12135# 'none' -- dependencies not supported.
12136# 'unknown' -- same as none, but documents that we really don't know.
12137# 'pass_all' -- all dependencies passed with no checks.
12138# 'test_compile' -- check by making test program.
12139# 'file_magic [[regex]]' -- check by looking for files in library path
12140# that responds to the $file_magic_cmd with a given extended regex.
12141# If you have 'file' or equivalent on your system and you're not sure
12142# whether 'pass_all' will *always* work, you probably want this one.
12143
12144case $host_os in
12145aix[4-9]*)
12146  lt_cv_deplibs_check_method=pass_all
12147  ;;
12148
12149beos*)
12150  lt_cv_deplibs_check_method=pass_all
12151  ;;
12152
12153bsdi[45]*)
12154  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12155  lt_cv_file_magic_cmd='/usr/bin/file -L'
12156  lt_cv_file_magic_test_file=/shlib/libc.so
12157  ;;
12158
12159cygwin*)
12160  # func_win32_libid is a shell function defined in ltmain.sh
12161  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12162  lt_cv_file_magic_cmd='func_win32_libid'
12163  ;;
12164
12165mingw* | pw32*)
12166  # Base MSYS/MinGW do not provide the 'file' command needed by
12167  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12168  # unless we find 'file', for example because we are cross-compiling.
12169  if ( file / ) >/dev/null 2>&1; then
12170    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12171    lt_cv_file_magic_cmd='func_win32_libid'
12172  else
12173    # Keep this pattern in sync with the one in func_win32_libid.
12174    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12175    lt_cv_file_magic_cmd='$OBJDUMP -f'
12176  fi
12177  ;;
12178
12179cegcc*)
12180  # use the weaker test based on 'objdump'. See mingw*.
12181  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12182  lt_cv_file_magic_cmd='$OBJDUMP -f'
12183  ;;
12184
12185darwin* | rhapsody*)
12186  lt_cv_deplibs_check_method=pass_all
12187  ;;
12188
12189freebsd* | dragonfly*)
12190  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12191    case $host_cpu in
12192    i*86 )
12193      # Not sure whether the presence of OpenBSD here was a mistake.
12194      # Let's accept both of them until this is cleared up.
12195      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12196      lt_cv_file_magic_cmd=/usr/bin/file
12197      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12198      ;;
12199    esac
12200  else
12201    lt_cv_deplibs_check_method=pass_all
12202  fi
12203  ;;
12204
12205haiku*)
12206  lt_cv_deplibs_check_method=pass_all
12207  ;;
12208
12209hpux10.20* | hpux11*)
12210  lt_cv_file_magic_cmd=/usr/bin/file
12211  case $host_cpu in
12212  ia64*)
12213    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12214    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12215    ;;
12216  hppa*64*)
12217    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]'
12218    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12219    ;;
12220  *)
12221    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12222    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12223    ;;
12224  esac
12225  ;;
12226
12227interix[3-9]*)
12228  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12229  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12230  ;;
12231
12232irix5* | irix6* | nonstopux*)
12233  case $LD in
12234  *-32|*"-32 ") libmagic=32-bit;;
12235  *-n32|*"-n32 ") libmagic=N32;;
12236  *-64|*"-64 ") libmagic=64-bit;;
12237  *) libmagic=never-match;;
12238  esac
12239  lt_cv_deplibs_check_method=pass_all
12240  ;;
12241
12242# This must be glibc/ELF.
12243linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12244  lt_cv_deplibs_check_method=pass_all
12245  ;;
12246
12247netbsd* | netbsdelf*-gnu)
12248  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12249    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12250  else
12251    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12252  fi
12253  ;;
12254
12255newos6*)
12256  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12257  lt_cv_file_magic_cmd=/usr/bin/file
12258  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12259  ;;
12260
12261*nto* | *qnx*)
12262  lt_cv_deplibs_check_method=pass_all
12263  ;;
12264
12265openbsd* | bitrig*)
12266  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12267    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12268  else
12269    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12270  fi
12271  ;;
12272
12273osf3* | osf4* | osf5*)
12274  lt_cv_deplibs_check_method=pass_all
12275  ;;
12276
12277rdos*)
12278  lt_cv_deplibs_check_method=pass_all
12279  ;;
12280
12281solaris*)
12282  lt_cv_deplibs_check_method=pass_all
12283  ;;
12284
12285sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12286  lt_cv_deplibs_check_method=pass_all
12287  ;;
12288
12289sysv4 | sysv4.3*)
12290  case $host_vendor in
12291  motorola)
12292    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]'
12293    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12294    ;;
12295  ncr)
12296    lt_cv_deplibs_check_method=pass_all
12297    ;;
12298  sequent)
12299    lt_cv_file_magic_cmd='/bin/file'
12300    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12301    ;;
12302  sni)
12303    lt_cv_file_magic_cmd='/bin/file'
12304    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12305    lt_cv_file_magic_test_file=/lib/libc.so
12306    ;;
12307  siemens)
12308    lt_cv_deplibs_check_method=pass_all
12309    ;;
12310  pc)
12311    lt_cv_deplibs_check_method=pass_all
12312    ;;
12313  esac
12314  ;;
12315
12316tpf*)
12317  lt_cv_deplibs_check_method=pass_all
12318  ;;
12319os2*)
12320  lt_cv_deplibs_check_method=pass_all
12321  ;;
12322esac
12323
12324fi
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12326$as_echo "$lt_cv_deplibs_check_method" >&6; }
12327
12328file_magic_glob=
12329want_nocaseglob=no
12330if test "$build" = "$host"; then
12331  case $host_os in
12332  mingw* | pw32*)
12333    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12334      want_nocaseglob=yes
12335    else
12336      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12337    fi
12338    ;;
12339  esac
12340fi
12341
12342file_magic_cmd=$lt_cv_file_magic_cmd
12343deplibs_check_method=$lt_cv_deplibs_check_method
12344test -z "$deplibs_check_method" && deplibs_check_method=unknown
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367if test -n "$ac_tool_prefix"; then
12368  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12369set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
12372if ${ac_cv_prog_DLLTOOL+:} false; then :
12373  $as_echo_n "(cached) " >&6
12374else
12375  if test -n "$DLLTOOL"; then
12376  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12377else
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381  IFS=$as_save_IFS
12382  test -z "$as_dir" && as_dir=.
12383    for ac_exec_ext in '' $ac_executable_extensions; do
12384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12385    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387    break 2
12388  fi
12389done
12390  done
12391IFS=$as_save_IFS
12392
12393fi
12394fi
12395DLLTOOL=$ac_cv_prog_DLLTOOL
12396if test -n "$DLLTOOL"; then
12397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12398$as_echo "$DLLTOOL" >&6; }
12399else
12400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
12402fi
12403
12404
12405fi
12406if test -z "$ac_cv_prog_DLLTOOL"; then
12407  ac_ct_DLLTOOL=$DLLTOOL
12408  # Extract the first word of "dlltool", so it can be a program name with args.
12409set dummy dlltool; ac_word=$2
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12411$as_echo_n "checking for $ac_word... " >&6; }
12412if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12413  $as_echo_n "(cached) " >&6
12414else
12415  if test -n "$ac_ct_DLLTOOL"; then
12416  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12417else
12418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12419for as_dir in $PATH
12420do
12421  IFS=$as_save_IFS
12422  test -z "$as_dir" && as_dir=.
12423    for ac_exec_ext in '' $ac_executable_extensions; do
12424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12425    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427    break 2
12428  fi
12429done
12430  done
12431IFS=$as_save_IFS
12432
12433fi
12434fi
12435ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12436if test -n "$ac_ct_DLLTOOL"; then
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12438$as_echo "$ac_ct_DLLTOOL" >&6; }
12439else
12440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12441$as_echo "no" >&6; }
12442fi
12443
12444  if test "x$ac_ct_DLLTOOL" = x; then
12445    DLLTOOL="false"
12446  else
12447    case $cross_compiling:$ac_tool_warned in
12448yes:)
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12451ac_tool_warned=yes ;;
12452esac
12453    DLLTOOL=$ac_ct_DLLTOOL
12454  fi
12455else
12456  DLLTOOL="$ac_cv_prog_DLLTOOL"
12457fi
12458
12459test -z "$DLLTOOL" && DLLTOOL=dlltool
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12471$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12472if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12473  $as_echo_n "(cached) " >&6
12474else
12475  lt_cv_sharedlib_from_linklib_cmd='unknown'
12476
12477case $host_os in
12478cygwin* | mingw* | pw32* | cegcc*)
12479  # two different shell functions defined in ltmain.sh;
12480  # decide which one to use based on capabilities of $DLLTOOL
12481  case `$DLLTOOL --help 2>&1` in
12482  *--identify-strict*)
12483    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12484    ;;
12485  *)
12486    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12487    ;;
12488  esac
12489  ;;
12490*)
12491  # fallback: assume linklib IS sharedlib
12492  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12493  ;;
12494esac
12495
12496fi
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12498$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12499sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12500test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12501
12502
12503
12504
12505
12506
12507
12508if test -n "$ac_tool_prefix"; then
12509  for ac_prog in ar
12510  do
12511    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514$as_echo_n "checking for $ac_word... " >&6; }
12515if ${ac_cv_prog_AR+:} false; then :
12516  $as_echo_n "(cached) " >&6
12517else
12518  if test -n "$AR"; then
12519  ac_cv_prog_AR="$AR" # Let the user override the test.
12520else
12521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522for as_dir in $PATH
12523do
12524  IFS=$as_save_IFS
12525  test -z "$as_dir" && as_dir=.
12526    for ac_exec_ext in '' $ac_executable_extensions; do
12527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530    break 2
12531  fi
12532done
12533  done
12534IFS=$as_save_IFS
12535
12536fi
12537fi
12538AR=$ac_cv_prog_AR
12539if test -n "$AR"; then
12540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12541$as_echo "$AR" >&6; }
12542else
12543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544$as_echo "no" >&6; }
12545fi
12546
12547
12548    test -n "$AR" && break
12549  done
12550fi
12551if test -z "$AR"; then
12552  ac_ct_AR=$AR
12553  for ac_prog in ar
12554do
12555  # Extract the first word of "$ac_prog", so it can be a program name with args.
12556set dummy $ac_prog; ac_word=$2
12557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558$as_echo_n "checking for $ac_word... " >&6; }
12559if ${ac_cv_prog_ac_ct_AR+:} false; then :
12560  $as_echo_n "(cached) " >&6
12561else
12562  if test -n "$ac_ct_AR"; then
12563  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12564else
12565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12566for as_dir in $PATH
12567do
12568  IFS=$as_save_IFS
12569  test -z "$as_dir" && as_dir=.
12570    for ac_exec_ext in '' $ac_executable_extensions; do
12571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12572    ac_cv_prog_ac_ct_AR="$ac_prog"
12573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574    break 2
12575  fi
12576done
12577  done
12578IFS=$as_save_IFS
12579
12580fi
12581fi
12582ac_ct_AR=$ac_cv_prog_ac_ct_AR
12583if test -n "$ac_ct_AR"; then
12584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12585$as_echo "$ac_ct_AR" >&6; }
12586else
12587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12588$as_echo "no" >&6; }
12589fi
12590
12591
12592  test -n "$ac_ct_AR" && break
12593done
12594
12595  if test "x$ac_ct_AR" = x; then
12596    AR="false"
12597  else
12598    case $cross_compiling:$ac_tool_warned in
12599yes:)
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12602ac_tool_warned=yes ;;
12603esac
12604    AR=$ac_ct_AR
12605  fi
12606fi
12607
12608: ${AR=ar}
12609: ${AR_FLAGS=cru}
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12622$as_echo_n "checking for archiver @FILE support... " >&6; }
12623if ${lt_cv_ar_at_file+:} false; then :
12624  $as_echo_n "(cached) " >&6
12625else
12626  lt_cv_ar_at_file=no
12627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628/* end confdefs.h.  */
12629
12630int
12631main ()
12632{
12633
12634  ;
12635  return 0;
12636}
12637_ACEOF
12638if ac_fn_c_try_compile "$LINENO"; then :
12639  echo conftest.$ac_objext > conftest.lst
12640      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12641      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12642  (eval $lt_ar_try) 2>&5
12643  ac_status=$?
12644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12645  test $ac_status = 0; }
12646      if test 0 -eq "$ac_status"; then
12647	# Ensure the archiver fails upon bogus file names.
12648	rm -f conftest.$ac_objext libconftest.a
12649	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12650  (eval $lt_ar_try) 2>&5
12651  ac_status=$?
12652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12653  test $ac_status = 0; }
12654	if test 0 -ne "$ac_status"; then
12655          lt_cv_ar_at_file=@
12656        fi
12657      fi
12658      rm -f conftest.* libconftest.a
12659
12660fi
12661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662
12663fi
12664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12665$as_echo "$lt_cv_ar_at_file" >&6; }
12666
12667if test no = "$lt_cv_ar_at_file"; then
12668  archiver_list_spec=
12669else
12670  archiver_list_spec=$lt_cv_ar_at_file
12671fi
12672
12673
12674
12675
12676
12677
12678
12679if test -n "$ac_tool_prefix"; then
12680  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12681set dummy ${ac_tool_prefix}strip; ac_word=$2
12682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683$as_echo_n "checking for $ac_word... " >&6; }
12684if ${ac_cv_prog_STRIP+:} false; then :
12685  $as_echo_n "(cached) " >&6
12686else
12687  if test -n "$STRIP"; then
12688  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12689else
12690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691for as_dir in $PATH
12692do
12693  IFS=$as_save_IFS
12694  test -z "$as_dir" && as_dir=.
12695    for ac_exec_ext in '' $ac_executable_extensions; do
12696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12697    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12699    break 2
12700  fi
12701done
12702  done
12703IFS=$as_save_IFS
12704
12705fi
12706fi
12707STRIP=$ac_cv_prog_STRIP
12708if test -n "$STRIP"; then
12709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12710$as_echo "$STRIP" >&6; }
12711else
12712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713$as_echo "no" >&6; }
12714fi
12715
12716
12717fi
12718if test -z "$ac_cv_prog_STRIP"; then
12719  ac_ct_STRIP=$STRIP
12720  # Extract the first word of "strip", so it can be a program name with args.
12721set dummy strip; ac_word=$2
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723$as_echo_n "checking for $ac_word... " >&6; }
12724if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12725  $as_echo_n "(cached) " >&6
12726else
12727  if test -n "$ac_ct_STRIP"; then
12728  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12729else
12730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731for as_dir in $PATH
12732do
12733  IFS=$as_save_IFS
12734  test -z "$as_dir" && as_dir=.
12735    for ac_exec_ext in '' $ac_executable_extensions; do
12736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12737    ac_cv_prog_ac_ct_STRIP="strip"
12738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12739    break 2
12740  fi
12741done
12742  done
12743IFS=$as_save_IFS
12744
12745fi
12746fi
12747ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12748if test -n "$ac_ct_STRIP"; then
12749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12750$as_echo "$ac_ct_STRIP" >&6; }
12751else
12752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
12754fi
12755
12756  if test "x$ac_ct_STRIP" = x; then
12757    STRIP=":"
12758  else
12759    case $cross_compiling:$ac_tool_warned in
12760yes:)
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12763ac_tool_warned=yes ;;
12764esac
12765    STRIP=$ac_ct_STRIP
12766  fi
12767else
12768  STRIP="$ac_cv_prog_STRIP"
12769fi
12770
12771test -z "$STRIP" && STRIP=:
12772
12773
12774
12775
12776
12777
12778if test -n "$ac_tool_prefix"; then
12779  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12780set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12782$as_echo_n "checking for $ac_word... " >&6; }
12783if ${ac_cv_prog_RANLIB+:} false; then :
12784  $as_echo_n "(cached) " >&6
12785else
12786  if test -n "$RANLIB"; then
12787  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12788else
12789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790for as_dir in $PATH
12791do
12792  IFS=$as_save_IFS
12793  test -z "$as_dir" && as_dir=.
12794    for ac_exec_ext in '' $ac_executable_extensions; do
12795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12796    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12798    break 2
12799  fi
12800done
12801  done
12802IFS=$as_save_IFS
12803
12804fi
12805fi
12806RANLIB=$ac_cv_prog_RANLIB
12807if test -n "$RANLIB"; then
12808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12809$as_echo "$RANLIB" >&6; }
12810else
12811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812$as_echo "no" >&6; }
12813fi
12814
12815
12816fi
12817if test -z "$ac_cv_prog_RANLIB"; then
12818  ac_ct_RANLIB=$RANLIB
12819  # Extract the first word of "ranlib", so it can be a program name with args.
12820set dummy ranlib; ac_word=$2
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822$as_echo_n "checking for $ac_word... " >&6; }
12823if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12824  $as_echo_n "(cached) " >&6
12825else
12826  if test -n "$ac_ct_RANLIB"; then
12827  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12828else
12829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830for as_dir in $PATH
12831do
12832  IFS=$as_save_IFS
12833  test -z "$as_dir" && as_dir=.
12834    for ac_exec_ext in '' $ac_executable_extensions; do
12835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12836    ac_cv_prog_ac_ct_RANLIB="ranlib"
12837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838    break 2
12839  fi
12840done
12841  done
12842IFS=$as_save_IFS
12843
12844fi
12845fi
12846ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12847if test -n "$ac_ct_RANLIB"; then
12848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12849$as_echo "$ac_ct_RANLIB" >&6; }
12850else
12851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852$as_echo "no" >&6; }
12853fi
12854
12855  if test "x$ac_ct_RANLIB" = x; then
12856    RANLIB=":"
12857  else
12858    case $cross_compiling:$ac_tool_warned in
12859yes:)
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12862ac_tool_warned=yes ;;
12863esac
12864    RANLIB=$ac_ct_RANLIB
12865  fi
12866else
12867  RANLIB="$ac_cv_prog_RANLIB"
12868fi
12869
12870test -z "$RANLIB" && RANLIB=:
12871
12872
12873
12874
12875
12876
12877# Determine commands to create old-style static archives.
12878old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12879old_postinstall_cmds='chmod 644 $oldlib'
12880old_postuninstall_cmds=
12881
12882if test -n "$RANLIB"; then
12883  case $host_os in
12884  bitrig* | openbsd*)
12885    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12886    ;;
12887  *)
12888    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12889    ;;
12890  esac
12891  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12892fi
12893
12894case $host_os in
12895  darwin*)
12896    lock_old_archive_extraction=yes ;;
12897  *)
12898    lock_old_archive_extraction=no ;;
12899esac
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939# If no C compiler was specified, use CC.
12940LTCC=${LTCC-"$CC"}
12941
12942# If no C compiler flags were specified, use CFLAGS.
12943LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12944
12945# Allow CC to be a program name with arguments.
12946compiler=$CC
12947
12948
12949# Check for command to grab the raw symbol name followed by C symbol from nm.
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12951$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12952if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12953  $as_echo_n "(cached) " >&6
12954else
12955
12956# These are sane defaults that work on at least a few old systems.
12957# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12958
12959# Character class describing NM global symbol codes.
12960symcode='[BCDEGRST]'
12961
12962# Regexp to match symbols that can be accessed directly from C.
12963sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12964
12965# Define system-specific variables.
12966case $host_os in
12967aix*)
12968  symcode='[BCDT]'
12969  ;;
12970cygwin* | mingw* | pw32* | cegcc*)
12971  symcode='[ABCDGISTW]'
12972  ;;
12973hpux*)
12974  if test ia64 = "$host_cpu"; then
12975    symcode='[ABCDEGRST]'
12976  fi
12977  ;;
12978irix* | nonstopux*)
12979  symcode='[BCDEGRST]'
12980  ;;
12981osf*)
12982  symcode='[BCDEGQRST]'
12983  ;;
12984solaris*)
12985  symcode='[BDRT]'
12986  ;;
12987sco3.2v5*)
12988  symcode='[DT]'
12989  ;;
12990sysv4.2uw2*)
12991  symcode='[DT]'
12992  ;;
12993sysv5* | sco5v6* | unixware* | OpenUNIX*)
12994  symcode='[ABDT]'
12995  ;;
12996sysv4)
12997  symcode='[DFNSTU]'
12998  ;;
12999esac
13000
13001# If we're using GNU nm, then use its standard symbol codes.
13002case `$NM -V 2>&1` in
13003*GNU* | *'with BFD'*)
13004  symcode='[ABCDGIRSTW]' ;;
13005esac
13006
13007if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13008  # Gets list of data symbols to import.
13009  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13010  # Adjust the below global symbol transforms to fixup imported variables.
13011  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13012  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13013  lt_c_name_lib_hook="\
13014  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13015  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13016else
13017  # Disable hooks by default.
13018  lt_cv_sys_global_symbol_to_import=
13019  lt_cdecl_hook=
13020  lt_c_name_hook=
13021  lt_c_name_lib_hook=
13022fi
13023
13024# Transform an extracted symbol line into a proper C declaration.
13025# Some systems (esp. on ia64) link data and code symbols differently,
13026# so use this general approach.
13027lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13028$lt_cdecl_hook\
13029" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13030" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13031
13032# Transform an extracted symbol line into symbol name and symbol address
13033lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13034$lt_c_name_hook\
13035" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13036" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13037
13038# Transform an extracted symbol line into symbol name with lib prefix and
13039# symbol address.
13040lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13041$lt_c_name_lib_hook\
13042" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13043" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13044" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13045
13046# Handle CRLF in mingw tool chain
13047opt_cr=
13048case $build_os in
13049mingw*)
13050  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13051  ;;
13052esac
13053
13054# Try without a prefix underscore, then with it.
13055for ac_symprfx in "" "_"; do
13056
13057  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13058  symxfrm="\\1 $ac_symprfx\\2 \\2"
13059
13060  # Write the raw and C identifiers.
13061  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13062    # Fake it for dumpbin and say T for any non-static function,
13063    # D for any global variable and I for any imported variable.
13064    # Also find C++ and __fastcall symbols from MSVC++,
13065    # which start with @ or ?.
13066    lt_cv_sys_global_symbol_pipe="$AWK '"\
13067"     {last_section=section; section=\$ 3};"\
13068"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13069"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13070"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13071"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13072"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13073"     \$ 0!~/External *\|/{next};"\
13074"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13075"     {if(hide[section]) next};"\
13076"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13077"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13078"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13079"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13080"     ' prfx=^$ac_symprfx"
13081  else
13082    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13083  fi
13084  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13085
13086  # Check to see that the pipe works correctly.
13087  pipe_works=no
13088
13089  rm -f conftest*
13090  cat > conftest.$ac_ext <<_LT_EOF
13091#ifdef __cplusplus
13092extern "C" {
13093#endif
13094char nm_test_var;
13095void nm_test_func(void);
13096void nm_test_func(void){}
13097#ifdef __cplusplus
13098}
13099#endif
13100int main(){nm_test_var='a';nm_test_func();return(0);}
13101_LT_EOF
13102
13103  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13104  (eval $ac_compile) 2>&5
13105  ac_status=$?
13106  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107  test $ac_status = 0; }; then
13108    # Now try to grab the symbols.
13109    nlist=conftest.nm
13110    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13111  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13112  ac_status=$?
13113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114  test $ac_status = 0; } && test -s "$nlist"; then
13115      # Try sorting and uniquifying the output.
13116      if sort "$nlist" | uniq > "$nlist"T; then
13117	mv -f "$nlist"T "$nlist"
13118      else
13119	rm -f "$nlist"T
13120      fi
13121
13122      # Make sure that we snagged all the symbols we need.
13123      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13124	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13125	  cat <<_LT_EOF > conftest.$ac_ext
13126/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13127#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13128/* DATA imports from DLLs on WIN32 can't be const, because runtime
13129   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13130# define LT_DLSYM_CONST
13131#elif defined __osf__
13132/* This system does not cope well with relocations in const data.  */
13133# define LT_DLSYM_CONST
13134#else
13135# define LT_DLSYM_CONST const
13136#endif
13137
13138#ifdef __cplusplus
13139extern "C" {
13140#endif
13141
13142_LT_EOF
13143	  # Now generate the symbol file.
13144	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13145
13146	  cat <<_LT_EOF >> conftest.$ac_ext
13147
13148/* The mapping between symbol names and symbols.  */
13149LT_DLSYM_CONST struct {
13150  const char *name;
13151  void       *address;
13152}
13153lt__PROGRAM__LTX_preloaded_symbols[] =
13154{
13155  { "@PROGRAM@", (void *) 0 },
13156_LT_EOF
13157	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13158	  cat <<\_LT_EOF >> conftest.$ac_ext
13159  {0, (void *) 0}
13160};
13161
13162/* This works around a problem in FreeBSD linker */
13163#ifdef FREEBSD_WORKAROUND
13164static const void *lt_preloaded_setup() {
13165  return lt__PROGRAM__LTX_preloaded_symbols;
13166}
13167#endif
13168
13169#ifdef __cplusplus
13170}
13171#endif
13172_LT_EOF
13173	  # Now try linking the two files.
13174	  mv conftest.$ac_objext conftstm.$ac_objext
13175	  lt_globsym_save_LIBS=$LIBS
13176	  lt_globsym_save_CFLAGS=$CFLAGS
13177	  LIBS=conftstm.$ac_objext
13178	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13179	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13180  (eval $ac_link) 2>&5
13181  ac_status=$?
13182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13184	    pipe_works=yes
13185	  fi
13186	  LIBS=$lt_globsym_save_LIBS
13187	  CFLAGS=$lt_globsym_save_CFLAGS
13188	else
13189	  echo "cannot find nm_test_func in $nlist" >&5
13190	fi
13191      else
13192	echo "cannot find nm_test_var in $nlist" >&5
13193      fi
13194    else
13195      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13196    fi
13197  else
13198    echo "$progname: failed program was:" >&5
13199    cat conftest.$ac_ext >&5
13200  fi
13201  rm -rf conftest* conftst*
13202
13203  # Do not use the global_symbol_pipe unless it works.
13204  if test yes = "$pipe_works"; then
13205    break
13206  else
13207    lt_cv_sys_global_symbol_pipe=
13208  fi
13209done
13210
13211fi
13212
13213if test -z "$lt_cv_sys_global_symbol_pipe"; then
13214  lt_cv_sys_global_symbol_to_cdecl=
13215fi
13216if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13218$as_echo "failed" >&6; }
13219else
13220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13221$as_echo "ok" >&6; }
13222fi
13223
13224# Response file support.
13225if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13226  nm_file_list_spec='@'
13227elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13228  nm_file_list_spec='@'
13229fi
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13268$as_echo_n "checking for sysroot... " >&6; }
13269
13270# Check whether --with-sysroot was given.
13271if test "${with_sysroot+set}" = set; then :
13272  withval=$with_sysroot;
13273else
13274  with_sysroot=no
13275fi
13276
13277
13278lt_sysroot=
13279case $with_sysroot in #(
13280 yes)
13281   if test yes = "$GCC"; then
13282     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13283   fi
13284   ;; #(
13285 /*)
13286   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13287   ;; #(
13288 no|'')
13289   ;; #(
13290 *)
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13292$as_echo "$with_sysroot" >&6; }
13293   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13294   ;;
13295esac
13296
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13298$as_echo "${lt_sysroot:-no}" >&6; }
13299
13300
13301
13302
13303
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13305$as_echo_n "checking for a working dd... " >&6; }
13306if ${ac_cv_path_lt_DD+:} false; then :
13307  $as_echo_n "(cached) " >&6
13308else
13309  printf 0123456789abcdef0123456789abcdef >conftest.i
13310cat conftest.i conftest.i >conftest2.i
13311: ${lt_DD:=$DD}
13312if test -z "$lt_DD"; then
13313  ac_path_lt_DD_found=false
13314  # Loop through the user's path and test for each of PROGNAME-LIST
13315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316for as_dir in $PATH
13317do
13318  IFS=$as_save_IFS
13319  test -z "$as_dir" && as_dir=.
13320    for ac_prog in dd; do
13321    for ac_exec_ext in '' $ac_executable_extensions; do
13322      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13323      as_fn_executable_p "$ac_path_lt_DD" || continue
13324if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13325  cmp -s conftest.i conftest.out \
13326  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13327fi
13328      $ac_path_lt_DD_found && break 3
13329    done
13330  done
13331  done
13332IFS=$as_save_IFS
13333  if test -z "$ac_cv_path_lt_DD"; then
13334    :
13335  fi
13336else
13337  ac_cv_path_lt_DD=$lt_DD
13338fi
13339
13340rm -f conftest.i conftest2.i conftest.out
13341fi
13342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13343$as_echo "$ac_cv_path_lt_DD" >&6; }
13344
13345
13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13347$as_echo_n "checking how to truncate binary pipes... " >&6; }
13348if ${lt_cv_truncate_bin+:} false; then :
13349  $as_echo_n "(cached) " >&6
13350else
13351  printf 0123456789abcdef0123456789abcdef >conftest.i
13352cat conftest.i conftest.i >conftest2.i
13353lt_cv_truncate_bin=
13354if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13355  cmp -s conftest.i conftest.out \
13356  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13357fi
13358rm -f conftest.i conftest2.i conftest.out
13359test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13360fi
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13362$as_echo "$lt_cv_truncate_bin" >&6; }
13363
13364
13365
13366
13367
13368
13369
13370# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13371func_cc_basename ()
13372{
13373    for cc_temp in $*""; do
13374      case $cc_temp in
13375        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13376        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13377        \-*) ;;
13378        *) break;;
13379      esac
13380    done
13381    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
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 no = "$enable_libtool_lock" || 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 what ABI is being produced by ac_compile, and set mode
13396  # options accordingly.
13397  echo 'int i;' > conftest.$ac_ext
13398  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13399  (eval $ac_compile) 2>&5
13400  ac_status=$?
13401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13402  test $ac_status = 0; }; then
13403    case `/usr/bin/file conftest.$ac_objext` in
13404      *ELF-32*)
13405	HPUX_IA64_MODE=32
13406	;;
13407      *ELF-64*)
13408	HPUX_IA64_MODE=64
13409	;;
13410    esac
13411  fi
13412  rm -rf conftest*
13413  ;;
13414*-*-irix6*)
13415  # Find out what ABI is being produced by ac_compile, and set linker
13416  # options accordingly.
13417  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13418  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419  (eval $ac_compile) 2>&5
13420  ac_status=$?
13421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422  test $ac_status = 0; }; then
13423    if test yes = "$lt_cv_prog_gnu_ld"; then
13424      case `/usr/bin/file conftest.$ac_objext` in
13425	*32-bit*)
13426	  LD="${LD-ld} -melf32bsmip"
13427	  ;;
13428	*N32*)
13429	  LD="${LD-ld} -melf32bmipn32"
13430	  ;;
13431	*64-bit*)
13432	  LD="${LD-ld} -melf64bmip"
13433	;;
13434      esac
13435    else
13436      case `/usr/bin/file conftest.$ac_objext` in
13437	*32-bit*)
13438	  LD="${LD-ld} -32"
13439	  ;;
13440	*N32*)
13441	  LD="${LD-ld} -n32"
13442	  ;;
13443	*64-bit*)
13444	  LD="${LD-ld} -64"
13445	  ;;
13446      esac
13447    fi
13448  fi
13449  rm -rf conftest*
13450  ;;
13451
13452mips64*-*linux*)
13453  # Find out what ABI is being produced by ac_compile, and set linker
13454  # options accordingly.
13455  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13456  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13457  (eval $ac_compile) 2>&5
13458  ac_status=$?
13459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13460  test $ac_status = 0; }; then
13461    emul=elf
13462    case `/usr/bin/file conftest.$ac_objext` in
13463      *32-bit*)
13464	emul="${emul}32"
13465	;;
13466      *64-bit*)
13467	emul="${emul}64"
13468	;;
13469    esac
13470    case `/usr/bin/file conftest.$ac_objext` in
13471      *MSB*)
13472	emul="${emul}btsmip"
13473	;;
13474      *LSB*)
13475	emul="${emul}ltsmip"
13476	;;
13477    esac
13478    case `/usr/bin/file conftest.$ac_objext` in
13479      *N32*)
13480	emul="${emul}n32"
13481	;;
13482    esac
13483    LD="${LD-ld} -m $emul"
13484  fi
13485  rm -rf conftest*
13486  ;;
13487
13488x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13489s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13490  # Find out what ABI is being produced by ac_compile, and set linker
13491  # options accordingly.  Note that the listed cases only cover the
13492  # situations where additional linker options are needed (such as when
13493  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13494  # vice versa); the common cases where no linker options are needed do
13495  # not appear in the list.
13496  echo 'int i;' > conftest.$ac_ext
13497  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13498  (eval $ac_compile) 2>&5
13499  ac_status=$?
13500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13501  test $ac_status = 0; }; then
13502    case `/usr/bin/file conftest.o` in
13503      *32-bit*)
13504	case $host in
13505	  x86_64-*kfreebsd*-gnu)
13506	    LD="${LD-ld} -m elf_i386_fbsd"
13507	    ;;
13508	  x86_64-*linux*)
13509	    case `/usr/bin/file conftest.o` in
13510	      *x86-64*)
13511		LD="${LD-ld} -m elf32_x86_64"
13512		;;
13513	      *)
13514		LD="${LD-ld} -m elf_i386"
13515		;;
13516	    esac
13517	    ;;
13518	  powerpc64le-*linux*)
13519	    LD="${LD-ld} -m elf32lppclinux"
13520	    ;;
13521	  powerpc64-*linux*)
13522	    LD="${LD-ld} -m elf32ppclinux"
13523	    ;;
13524	  s390x-*linux*)
13525	    LD="${LD-ld} -m elf_s390"
13526	    ;;
13527	  sparc64-*linux*)
13528	    LD="${LD-ld} -m elf32_sparc"
13529	    ;;
13530	esac
13531	;;
13532      *64-bit*)
13533	case $host in
13534	  x86_64-*kfreebsd*-gnu)
13535	    LD="${LD-ld} -m elf_x86_64_fbsd"
13536	    ;;
13537	  x86_64-*linux*)
13538	    LD="${LD-ld} -m elf_x86_64"
13539	    ;;
13540	  powerpcle-*linux*)
13541	    LD="${LD-ld} -m elf64lppc"
13542	    ;;
13543	  powerpc-*linux*)
13544	    LD="${LD-ld} -m elf64ppc"
13545	    ;;
13546	  s390*-*linux*|s390*-*tpf*)
13547	    LD="${LD-ld} -m elf64_s390"
13548	    ;;
13549	  sparc*-*linux*)
13550	    LD="${LD-ld} -m elf64_sparc"
13551	    ;;
13552	esac
13553	;;
13554    esac
13555  fi
13556  rm -rf conftest*
13557  ;;
13558
13559*-*-sco3.2v5*)
13560  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13561  SAVE_CFLAGS=$CFLAGS
13562  CFLAGS="$CFLAGS -belf"
13563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13564$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13565if ${lt_cv_cc_needs_belf+:} false; then :
13566  $as_echo_n "(cached) " >&6
13567else
13568  ac_ext=c
13569ac_cpp='$CPP $CPPFLAGS'
13570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572ac_compiler_gnu=$ac_cv_c_compiler_gnu
13573
13574     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575/* end confdefs.h.  */
13576
13577int
13578main ()
13579{
13580
13581  ;
13582  return 0;
13583}
13584_ACEOF
13585if ac_fn_c_try_link "$LINENO"; then :
13586  lt_cv_cc_needs_belf=yes
13587else
13588  lt_cv_cc_needs_belf=no
13589fi
13590rm -f core conftest.err conftest.$ac_objext \
13591    conftest$ac_exeext conftest.$ac_ext
13592     ac_ext=c
13593ac_cpp='$CPP $CPPFLAGS'
13594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13596ac_compiler_gnu=$ac_cv_c_compiler_gnu
13597
13598fi
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13600$as_echo "$lt_cv_cc_needs_belf" >&6; }
13601  if test yes != "$lt_cv_cc_needs_belf"; then
13602    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13603    CFLAGS=$SAVE_CFLAGS
13604  fi
13605  ;;
13606*-*solaris*)
13607  # Find out what ABI is being produced by ac_compile, and set linker
13608  # options accordingly.
13609  echo 'int i;' > conftest.$ac_ext
13610  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13611  (eval $ac_compile) 2>&5
13612  ac_status=$?
13613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13614  test $ac_status = 0; }; then
13615    case `/usr/bin/file conftest.o` in
13616    *64-bit*)
13617      case $lt_cv_prog_gnu_ld in
13618      yes*)
13619        case $host in
13620        i?86-*-solaris*|x86_64-*-solaris*)
13621          LD="${LD-ld} -m elf_x86_64"
13622          ;;
13623        sparc*-*-solaris*)
13624          LD="${LD-ld} -m elf64_sparc"
13625          ;;
13626        esac
13627        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13628        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13629          LD=${LD-ld}_sol2
13630        fi
13631        ;;
13632      *)
13633	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13634	  LD="${LD-ld} -64"
13635	fi
13636	;;
13637      esac
13638      ;;
13639    esac
13640  fi
13641  rm -rf conftest*
13642  ;;
13643esac
13644
13645need_locks=$enable_libtool_lock
13646
13647if test -n "$ac_tool_prefix"; then
13648  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13649set dummy ${ac_tool_prefix}mt; ac_word=$2
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13651$as_echo_n "checking for $ac_word... " >&6; }
13652if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13653  $as_echo_n "(cached) " >&6
13654else
13655  if test -n "$MANIFEST_TOOL"; then
13656  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13657else
13658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13659for as_dir in $PATH
13660do
13661  IFS=$as_save_IFS
13662  test -z "$as_dir" && as_dir=.
13663    for ac_exec_ext in '' $ac_executable_extensions; do
13664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13665    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13667    break 2
13668  fi
13669done
13670  done
13671IFS=$as_save_IFS
13672
13673fi
13674fi
13675MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13676if test -n "$MANIFEST_TOOL"; then
13677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13678$as_echo "$MANIFEST_TOOL" >&6; }
13679else
13680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13681$as_echo "no" >&6; }
13682fi
13683
13684
13685fi
13686if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13687  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13688  # Extract the first word of "mt", so it can be a program name with args.
13689set dummy mt; ac_word=$2
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13691$as_echo_n "checking for $ac_word... " >&6; }
13692if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13693  $as_echo_n "(cached) " >&6
13694else
13695  if test -n "$ac_ct_MANIFEST_TOOL"; then
13696  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13697else
13698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13699for as_dir in $PATH
13700do
13701  IFS=$as_save_IFS
13702  test -z "$as_dir" && as_dir=.
13703    for ac_exec_ext in '' $ac_executable_extensions; do
13704  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13705    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13706    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13707    break 2
13708  fi
13709done
13710  done
13711IFS=$as_save_IFS
13712
13713fi
13714fi
13715ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13716if test -n "$ac_ct_MANIFEST_TOOL"; then
13717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13718$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13719else
13720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721$as_echo "no" >&6; }
13722fi
13723
13724  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13725    MANIFEST_TOOL=":"
13726  else
13727    case $cross_compiling:$ac_tool_warned in
13728yes:)
13729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13731ac_tool_warned=yes ;;
13732esac
13733    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13734  fi
13735else
13736  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13737fi
13738
13739test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13741$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13742if ${lt_cv_path_mainfest_tool+:} false; then :
13743  $as_echo_n "(cached) " >&6
13744else
13745  lt_cv_path_mainfest_tool=no
13746  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13747  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13748  cat conftest.err >&5
13749  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13750    lt_cv_path_mainfest_tool=yes
13751  fi
13752  rm -f conftest*
13753fi
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13755$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13756if test yes != "$lt_cv_path_mainfest_tool"; then
13757  MANIFEST_TOOL=:
13758fi
13759
13760
13761
13762
13763
13764
13765  case $host_os in
13766    rhapsody* | darwin*)
13767    if test -n "$ac_tool_prefix"; then
13768  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13769set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771$as_echo_n "checking for $ac_word... " >&6; }
13772if ${ac_cv_prog_DSYMUTIL+:} false; then :
13773  $as_echo_n "(cached) " >&6
13774else
13775  if test -n "$DSYMUTIL"; then
13776  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13777else
13778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13779for as_dir in $PATH
13780do
13781  IFS=$as_save_IFS
13782  test -z "$as_dir" && as_dir=.
13783    for ac_exec_ext in '' $ac_executable_extensions; do
13784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13785    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13787    break 2
13788  fi
13789done
13790  done
13791IFS=$as_save_IFS
13792
13793fi
13794fi
13795DSYMUTIL=$ac_cv_prog_DSYMUTIL
13796if test -n "$DSYMUTIL"; then
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13798$as_echo "$DSYMUTIL" >&6; }
13799else
13800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13801$as_echo "no" >&6; }
13802fi
13803
13804
13805fi
13806if test -z "$ac_cv_prog_DSYMUTIL"; then
13807  ac_ct_DSYMUTIL=$DSYMUTIL
13808  # Extract the first word of "dsymutil", so it can be a program name with args.
13809set dummy dsymutil; ac_word=$2
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811$as_echo_n "checking for $ac_word... " >&6; }
13812if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13813  $as_echo_n "(cached) " >&6
13814else
13815  if test -n "$ac_ct_DSYMUTIL"; then
13816  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13817else
13818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819for as_dir in $PATH
13820do
13821  IFS=$as_save_IFS
13822  test -z "$as_dir" && as_dir=.
13823    for ac_exec_ext in '' $ac_executable_extensions; do
13824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827    break 2
13828  fi
13829done
13830  done
13831IFS=$as_save_IFS
13832
13833fi
13834fi
13835ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13836if test -n "$ac_ct_DSYMUTIL"; then
13837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13838$as_echo "$ac_ct_DSYMUTIL" >&6; }
13839else
13840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841$as_echo "no" >&6; }
13842fi
13843
13844  if test "x$ac_ct_DSYMUTIL" = x; then
13845    DSYMUTIL=":"
13846  else
13847    case $cross_compiling:$ac_tool_warned in
13848yes:)
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13851ac_tool_warned=yes ;;
13852esac
13853    DSYMUTIL=$ac_ct_DSYMUTIL
13854  fi
13855else
13856  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13857fi
13858
13859    if test -n "$ac_tool_prefix"; then
13860  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13861set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13863$as_echo_n "checking for $ac_word... " >&6; }
13864if ${ac_cv_prog_NMEDIT+:} false; then :
13865  $as_echo_n "(cached) " >&6
13866else
13867  if test -n "$NMEDIT"; then
13868  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13869else
13870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871for as_dir in $PATH
13872do
13873  IFS=$as_save_IFS
13874  test -z "$as_dir" && as_dir=.
13875    for ac_exec_ext in '' $ac_executable_extensions; do
13876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13877    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13879    break 2
13880  fi
13881done
13882  done
13883IFS=$as_save_IFS
13884
13885fi
13886fi
13887NMEDIT=$ac_cv_prog_NMEDIT
13888if test -n "$NMEDIT"; then
13889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13890$as_echo "$NMEDIT" >&6; }
13891else
13892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893$as_echo "no" >&6; }
13894fi
13895
13896
13897fi
13898if test -z "$ac_cv_prog_NMEDIT"; then
13899  ac_ct_NMEDIT=$NMEDIT
13900  # Extract the first word of "nmedit", so it can be a program name with args.
13901set dummy nmedit; ac_word=$2
13902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903$as_echo_n "checking for $ac_word... " >&6; }
13904if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13905  $as_echo_n "(cached) " >&6
13906else
13907  if test -n "$ac_ct_NMEDIT"; then
13908  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13909else
13910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911for as_dir in $PATH
13912do
13913  IFS=$as_save_IFS
13914  test -z "$as_dir" && as_dir=.
13915    for ac_exec_ext in '' $ac_executable_extensions; do
13916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13917    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919    break 2
13920  fi
13921done
13922  done
13923IFS=$as_save_IFS
13924
13925fi
13926fi
13927ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13928if test -n "$ac_ct_NMEDIT"; then
13929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13930$as_echo "$ac_ct_NMEDIT" >&6; }
13931else
13932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933$as_echo "no" >&6; }
13934fi
13935
13936  if test "x$ac_ct_NMEDIT" = x; then
13937    NMEDIT=":"
13938  else
13939    case $cross_compiling:$ac_tool_warned in
13940yes:)
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13943ac_tool_warned=yes ;;
13944esac
13945    NMEDIT=$ac_ct_NMEDIT
13946  fi
13947else
13948  NMEDIT="$ac_cv_prog_NMEDIT"
13949fi
13950
13951    if test -n "$ac_tool_prefix"; then
13952  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13953set dummy ${ac_tool_prefix}lipo; ac_word=$2
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13955$as_echo_n "checking for $ac_word... " >&6; }
13956if ${ac_cv_prog_LIPO+:} false; then :
13957  $as_echo_n "(cached) " >&6
13958else
13959  if test -n "$LIPO"; then
13960  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13961else
13962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13963for as_dir in $PATH
13964do
13965  IFS=$as_save_IFS
13966  test -z "$as_dir" && as_dir=.
13967    for ac_exec_ext in '' $ac_executable_extensions; do
13968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13969    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13971    break 2
13972  fi
13973done
13974  done
13975IFS=$as_save_IFS
13976
13977fi
13978fi
13979LIPO=$ac_cv_prog_LIPO
13980if test -n "$LIPO"; then
13981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13982$as_echo "$LIPO" >&6; }
13983else
13984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13985$as_echo "no" >&6; }
13986fi
13987
13988
13989fi
13990if test -z "$ac_cv_prog_LIPO"; then
13991  ac_ct_LIPO=$LIPO
13992  # Extract the first word of "lipo", so it can be a program name with args.
13993set dummy lipo; ac_word=$2
13994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13995$as_echo_n "checking for $ac_word... " >&6; }
13996if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13997  $as_echo_n "(cached) " >&6
13998else
13999  if test -n "$ac_ct_LIPO"; then
14000  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14001else
14002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003for as_dir in $PATH
14004do
14005  IFS=$as_save_IFS
14006  test -z "$as_dir" && as_dir=.
14007    for ac_exec_ext in '' $ac_executable_extensions; do
14008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009    ac_cv_prog_ac_ct_LIPO="lipo"
14010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14011    break 2
14012  fi
14013done
14014  done
14015IFS=$as_save_IFS
14016
14017fi
14018fi
14019ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14020if test -n "$ac_ct_LIPO"; then
14021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14022$as_echo "$ac_ct_LIPO" >&6; }
14023else
14024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14025$as_echo "no" >&6; }
14026fi
14027
14028  if test "x$ac_ct_LIPO" = x; then
14029    LIPO=":"
14030  else
14031    case $cross_compiling:$ac_tool_warned in
14032yes:)
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14035ac_tool_warned=yes ;;
14036esac
14037    LIPO=$ac_ct_LIPO
14038  fi
14039else
14040  LIPO="$ac_cv_prog_LIPO"
14041fi
14042
14043    if test -n "$ac_tool_prefix"; then
14044  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14045set dummy ${ac_tool_prefix}otool; ac_word=$2
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14047$as_echo_n "checking for $ac_word... " >&6; }
14048if ${ac_cv_prog_OTOOL+:} false; then :
14049  $as_echo_n "(cached) " >&6
14050else
14051  if test -n "$OTOOL"; then
14052  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14053else
14054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14055for as_dir in $PATH
14056do
14057  IFS=$as_save_IFS
14058  test -z "$as_dir" && as_dir=.
14059    for ac_exec_ext in '' $ac_executable_extensions; do
14060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14061    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14063    break 2
14064  fi
14065done
14066  done
14067IFS=$as_save_IFS
14068
14069fi
14070fi
14071OTOOL=$ac_cv_prog_OTOOL
14072if test -n "$OTOOL"; then
14073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14074$as_echo "$OTOOL" >&6; }
14075else
14076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077$as_echo "no" >&6; }
14078fi
14079
14080
14081fi
14082if test -z "$ac_cv_prog_OTOOL"; then
14083  ac_ct_OTOOL=$OTOOL
14084  # Extract the first word of "otool", so it can be a program name with args.
14085set dummy otool; ac_word=$2
14086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14087$as_echo_n "checking for $ac_word... " >&6; }
14088if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  if test -n "$ac_ct_OTOOL"; then
14092  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14093else
14094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095for as_dir in $PATH
14096do
14097  IFS=$as_save_IFS
14098  test -z "$as_dir" && as_dir=.
14099    for ac_exec_ext in '' $ac_executable_extensions; do
14100  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101    ac_cv_prog_ac_ct_OTOOL="otool"
14102    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14103    break 2
14104  fi
14105done
14106  done
14107IFS=$as_save_IFS
14108
14109fi
14110fi
14111ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14112if test -n "$ac_ct_OTOOL"; then
14113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14114$as_echo "$ac_ct_OTOOL" >&6; }
14115else
14116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14117$as_echo "no" >&6; }
14118fi
14119
14120  if test "x$ac_ct_OTOOL" = x; then
14121    OTOOL=":"
14122  else
14123    case $cross_compiling:$ac_tool_warned in
14124yes:)
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14127ac_tool_warned=yes ;;
14128esac
14129    OTOOL=$ac_ct_OTOOL
14130  fi
14131else
14132  OTOOL="$ac_cv_prog_OTOOL"
14133fi
14134
14135    if test -n "$ac_tool_prefix"; then
14136  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14137set dummy ${ac_tool_prefix}otool64; ac_word=$2
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139$as_echo_n "checking for $ac_word... " >&6; }
14140if ${ac_cv_prog_OTOOL64+:} false; then :
14141  $as_echo_n "(cached) " >&6
14142else
14143  if test -n "$OTOOL64"; then
14144  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14145else
14146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147for as_dir in $PATH
14148do
14149  IFS=$as_save_IFS
14150  test -z "$as_dir" && as_dir=.
14151    for ac_exec_ext in '' $ac_executable_extensions; do
14152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14153    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155    break 2
14156  fi
14157done
14158  done
14159IFS=$as_save_IFS
14160
14161fi
14162fi
14163OTOOL64=$ac_cv_prog_OTOOL64
14164if test -n "$OTOOL64"; then
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14166$as_echo "$OTOOL64" >&6; }
14167else
14168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169$as_echo "no" >&6; }
14170fi
14171
14172
14173fi
14174if test -z "$ac_cv_prog_OTOOL64"; then
14175  ac_ct_OTOOL64=$OTOOL64
14176  # Extract the first word of "otool64", so it can be a program name with args.
14177set dummy otool64; ac_word=$2
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14179$as_echo_n "checking for $ac_word... " >&6; }
14180if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14181  $as_echo_n "(cached) " >&6
14182else
14183  if test -n "$ac_ct_OTOOL64"; then
14184  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14185else
14186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14187for as_dir in $PATH
14188do
14189  IFS=$as_save_IFS
14190  test -z "$as_dir" && as_dir=.
14191    for ac_exec_ext in '' $ac_executable_extensions; do
14192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14193    ac_cv_prog_ac_ct_OTOOL64="otool64"
14194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14195    break 2
14196  fi
14197done
14198  done
14199IFS=$as_save_IFS
14200
14201fi
14202fi
14203ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14204if test -n "$ac_ct_OTOOL64"; then
14205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14206$as_echo "$ac_ct_OTOOL64" >&6; }
14207else
14208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209$as_echo "no" >&6; }
14210fi
14211
14212  if test "x$ac_ct_OTOOL64" = x; then
14213    OTOOL64=":"
14214  else
14215    case $cross_compiling:$ac_tool_warned in
14216yes:)
14217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14219ac_tool_warned=yes ;;
14220esac
14221    OTOOL64=$ac_ct_OTOOL64
14222  fi
14223else
14224  OTOOL64="$ac_cv_prog_OTOOL64"
14225fi
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14254$as_echo_n "checking for -single_module linker flag... " >&6; }
14255if ${lt_cv_apple_cc_single_mod+:} false; then :
14256  $as_echo_n "(cached) " >&6
14257else
14258  lt_cv_apple_cc_single_mod=no
14259      if test -z "$LT_MULTI_MODULE"; then
14260	# By default we will add the -single_module flag. You can override
14261	# by either setting the environment variable LT_MULTI_MODULE
14262	# non-empty at configure time, or by adding -multi_module to the
14263	# link flags.
14264	rm -rf libconftest.dylib*
14265	echo "int foo(void){return 1;}" > conftest.c
14266	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14267-dynamiclib -Wl,-single_module conftest.c" >&5
14268	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14269	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14270        _lt_result=$?
14271	# If there is a non-empty error log, and "single_module"
14272	# appears in it, assume the flag caused a linker warning
14273        if test -s conftest.err && $GREP single_module conftest.err; then
14274	  cat conftest.err >&5
14275	# Otherwise, if the output was created with a 0 exit code from
14276	# the compiler, it worked.
14277	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14278	  lt_cv_apple_cc_single_mod=yes
14279	else
14280	  cat conftest.err >&5
14281	fi
14282	rm -rf libconftest.dylib*
14283	rm -f conftest.*
14284      fi
14285fi
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14287$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14288
14289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14290$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14291if ${lt_cv_ld_exported_symbols_list+:} false; then :
14292  $as_echo_n "(cached) " >&6
14293else
14294  lt_cv_ld_exported_symbols_list=no
14295      save_LDFLAGS=$LDFLAGS
14296      echo "_main" > conftest.sym
14297      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14298      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299/* end confdefs.h.  */
14300
14301int
14302main ()
14303{
14304
14305  ;
14306  return 0;
14307}
14308_ACEOF
14309if ac_fn_c_try_link "$LINENO"; then :
14310  lt_cv_ld_exported_symbols_list=yes
14311else
14312  lt_cv_ld_exported_symbols_list=no
14313fi
14314rm -f core conftest.err conftest.$ac_objext \
14315    conftest$ac_exeext conftest.$ac_ext
14316	LDFLAGS=$save_LDFLAGS
14317
14318fi
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14320$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14321
14322    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14323$as_echo_n "checking for -force_load linker flag... " >&6; }
14324if ${lt_cv_ld_force_load+:} false; then :
14325  $as_echo_n "(cached) " >&6
14326else
14327  lt_cv_ld_force_load=no
14328      cat > conftest.c << _LT_EOF
14329int forced_loaded() { return 2;}
14330_LT_EOF
14331      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14332      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14333      echo "$AR cru libconftest.a conftest.o" >&5
14334      $AR cru libconftest.a conftest.o 2>&5
14335      echo "$RANLIB libconftest.a" >&5
14336      $RANLIB libconftest.a 2>&5
14337      cat > conftest.c << _LT_EOF
14338int main() { return 0;}
14339_LT_EOF
14340      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14341      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14342      _lt_result=$?
14343      if test -s conftest.err && $GREP force_load conftest.err; then
14344	cat conftest.err >&5
14345      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14346	lt_cv_ld_force_load=yes
14347      else
14348	cat conftest.err >&5
14349      fi
14350        rm -f conftest.err libconftest.a conftest conftest.c
14351        rm -rf conftest.dSYM
14352
14353fi
14354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14355$as_echo "$lt_cv_ld_force_load" >&6; }
14356    case $host_os in
14357    rhapsody* | darwin1.[012])
14358      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14359    darwin1.*)
14360      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14361    darwin*) # darwin 5.x on
14362      # if running on 10.5 or later, the deployment target defaults
14363      # to the OS version, if on x86, and 10.4, the deployment
14364      # target defaults to 10.4. Don't you love it?
14365      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14366	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14367	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14368	10.[012][,.]*)
14369	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14370	10.*)
14371	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14372      esac
14373    ;;
14374  esac
14375    if test yes = "$lt_cv_apple_cc_single_mod"; then
14376      _lt_dar_single_mod='$single_module'
14377    fi
14378    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14379      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14380    else
14381      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14382    fi
14383    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14384      _lt_dsymutil='~$DSYMUTIL $lib || :'
14385    else
14386      _lt_dsymutil=
14387    fi
14388    ;;
14389  esac
14390
14391# func_munge_path_list VARIABLE PATH
14392# -----------------------------------
14393# VARIABLE is name of variable containing _space_ separated list of
14394# directories to be munged by the contents of PATH, which is string
14395# having a format:
14396# "DIR[:DIR]:"
14397#       string "DIR[ DIR]" will be prepended to VARIABLE
14398# ":DIR[:DIR]"
14399#       string "DIR[ DIR]" will be appended to VARIABLE
14400# "DIRP[:DIRP]::[DIRA:]DIRA"
14401#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14402#       "DIRA[ DIRA]" will be appended to VARIABLE
14403# "DIR[:DIR]"
14404#       VARIABLE will be replaced by "DIR[ DIR]"
14405func_munge_path_list ()
14406{
14407    case x$2 in
14408    x)
14409        ;;
14410    *:)
14411        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14412        ;;
14413    x:*)
14414        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14415        ;;
14416    *::*)
14417        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14418        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14419        ;;
14420    *)
14421        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14422        ;;
14423    esac
14424}
14425
14426for ac_header in dlfcn.h
14427do :
14428  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14429"
14430if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14431  cat >>confdefs.h <<_ACEOF
14432#define HAVE_DLFCN_H 1
14433_ACEOF
14434
14435fi
14436
14437done
14438
14439
14440
14441
14442
14443# Set options
14444
14445
14446
14447        enable_dlopen=no
14448
14449
14450  enable_win32_dll=no
14451
14452
14453            # Check whether --enable-shared was given.
14454if test "${enable_shared+set}" = set; then :
14455  enableval=$enable_shared; p=${PACKAGE-default}
14456    case $enableval in
14457    yes) enable_shared=yes ;;
14458    no) enable_shared=no ;;
14459    *)
14460      enable_shared=no
14461      # Look at the argument we got.  We use all the common list separators.
14462      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14463      for pkg in $enableval; do
14464	IFS=$lt_save_ifs
14465	if test "X$pkg" = "X$p"; then
14466	  enable_shared=yes
14467	fi
14468      done
14469      IFS=$lt_save_ifs
14470      ;;
14471    esac
14472else
14473  enable_shared=yes
14474fi
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486# Check whether --with-pic was given.
14487if test "${with_pic+set}" = set; then :
14488  withval=$with_pic; lt_p=${PACKAGE-default}
14489    case $withval in
14490    yes|no) pic_mode=$withval ;;
14491    *)
14492      pic_mode=default
14493      # Look at the argument we got.  We use all the common list separators.
14494      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14495      for lt_pkg in $withval; do
14496	IFS=$lt_save_ifs
14497	if test "X$lt_pkg" = "X$lt_p"; then
14498	  pic_mode=yes
14499	fi
14500      done
14501      IFS=$lt_save_ifs
14502      ;;
14503    esac
14504else
14505  pic_mode=default
14506fi
14507
14508
14509
14510
14511
14512
14513
14514
14515  # Check whether --enable-fast-install was given.
14516if test "${enable_fast_install+set}" = set; then :
14517  enableval=$enable_fast_install; p=${PACKAGE-default}
14518    case $enableval in
14519    yes) enable_fast_install=yes ;;
14520    no) enable_fast_install=no ;;
14521    *)
14522      enable_fast_install=no
14523      # Look at the argument we got.  We use all the common list separators.
14524      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14525      for pkg in $enableval; do
14526	IFS=$lt_save_ifs
14527	if test "X$pkg" = "X$p"; then
14528	  enable_fast_install=yes
14529	fi
14530      done
14531      IFS=$lt_save_ifs
14532      ;;
14533    esac
14534else
14535  enable_fast_install=yes
14536fi
14537
14538
14539
14540
14541
14542
14543
14544
14545  shared_archive_member_spec=
14546case $host,$enable_shared in
14547power*-*-aix[5-9]*,yes)
14548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14549$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14550
14551# Check whether --with-aix-soname was given.
14552if test "${with_aix_soname+set}" = set; then :
14553  withval=$with_aix_soname; case $withval in
14554    aix|svr4|both)
14555      ;;
14556    *)
14557      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14558      ;;
14559    esac
14560    lt_cv_with_aix_soname=$with_aix_soname
14561else
14562  if ${lt_cv_with_aix_soname+:} false; then :
14563  $as_echo_n "(cached) " >&6
14564else
14565  lt_cv_with_aix_soname=aix
14566fi
14567
14568    with_aix_soname=$lt_cv_with_aix_soname
14569fi
14570
14571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14572$as_echo "$with_aix_soname" >&6; }
14573  if test aix != "$with_aix_soname"; then
14574    # For the AIX way of multilib, we name the shared archive member
14575    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14576    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14577    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14578    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14579    if test 64 = "${OBJECT_MODE-32}"; then
14580      shared_archive_member_spec=shr_64
14581    else
14582      shared_archive_member_spec=shr
14583    fi
14584  fi
14585  ;;
14586*)
14587  with_aix_soname=aix
14588  ;;
14589esac
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600# This can be used to rebuild libtool when needed
14601LIBTOOL_DEPS=$ltmain
14602
14603# Always use our own libtool.
14604LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635test -z "$LN_S" && LN_S="ln -s"
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650if test -n "${ZSH_VERSION+set}"; then
14651   setopt NO_GLOB_SUBST
14652fi
14653
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14655$as_echo_n "checking for objdir... " >&6; }
14656if ${lt_cv_objdir+:} false; then :
14657  $as_echo_n "(cached) " >&6
14658else
14659  rm -f .libs 2>/dev/null
14660mkdir .libs 2>/dev/null
14661if test -d .libs; then
14662  lt_cv_objdir=.libs
14663else
14664  # MS-DOS does not allow filenames that begin with a dot.
14665  lt_cv_objdir=_libs
14666fi
14667rmdir .libs 2>/dev/null
14668fi
14669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14670$as_echo "$lt_cv_objdir" >&6; }
14671objdir=$lt_cv_objdir
14672
14673
14674
14675
14676
14677cat >>confdefs.h <<_ACEOF
14678#define LT_OBJDIR "$lt_cv_objdir/"
14679_ACEOF
14680
14681
14682
14683
14684case $host_os in
14685aix3*)
14686  # AIX sometimes has problems with the GCC collect2 program.  For some
14687  # reason, if we set the COLLECT_NAMES environment variable, the problems
14688  # vanish in a puff of smoke.
14689  if test set != "${COLLECT_NAMES+set}"; then
14690    COLLECT_NAMES=
14691    export COLLECT_NAMES
14692  fi
14693  ;;
14694esac
14695
14696# Global variables:
14697ofile=libtool
14698can_build_shared=yes
14699
14700# All known linkers require a '.a' archive for static linking (except MSVC,
14701# which needs '.lib').
14702libext=a
14703
14704with_gnu_ld=$lt_cv_prog_gnu_ld
14705
14706old_CC=$CC
14707old_CFLAGS=$CFLAGS
14708
14709# Set sane defaults for various variables
14710test -z "$CC" && CC=cc
14711test -z "$LTCC" && LTCC=$CC
14712test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14713test -z "$LD" && LD=ld
14714test -z "$ac_objext" && ac_objext=o
14715
14716func_cc_basename $compiler
14717cc_basename=$func_cc_basename_result
14718
14719
14720# Only perform the check for file, if the check method requires it
14721test -z "$MAGIC_CMD" && MAGIC_CMD=file
14722case $deplibs_check_method in
14723file_magic*)
14724  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14726$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14727if ${lt_cv_path_MAGIC_CMD+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730  case $MAGIC_CMD in
14731[\\/*] |  ?:[\\/]*)
14732  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14733  ;;
14734*)
14735  lt_save_MAGIC_CMD=$MAGIC_CMD
14736  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14737  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14738  for ac_dir in $ac_dummy; do
14739    IFS=$lt_save_ifs
14740    test -z "$ac_dir" && ac_dir=.
14741    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14742      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14743      if test -n "$file_magic_test_file"; then
14744	case $deplibs_check_method in
14745	"file_magic "*)
14746	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14747	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14748	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14749	    $EGREP "$file_magic_regex" > /dev/null; then
14750	    :
14751	  else
14752	    cat <<_LT_EOF 1>&2
14753
14754*** Warning: the command libtool uses to detect shared libraries,
14755*** $file_magic_cmd, produces output that libtool cannot recognize.
14756*** The result is that libtool may fail to recognize shared libraries
14757*** as such.  This will affect the creation of libtool libraries that
14758*** depend on shared libraries, but programs linked with such libtool
14759*** libraries will work regardless of this problem.  Nevertheless, you
14760*** may want to report the problem to your system manager and/or to
14761*** bug-libtool@gnu.org
14762
14763_LT_EOF
14764	  fi ;;
14765	esac
14766      fi
14767      break
14768    fi
14769  done
14770  IFS=$lt_save_ifs
14771  MAGIC_CMD=$lt_save_MAGIC_CMD
14772  ;;
14773esac
14774fi
14775
14776MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14777if test -n "$MAGIC_CMD"; then
14778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14779$as_echo "$MAGIC_CMD" >&6; }
14780else
14781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14782$as_echo "no" >&6; }
14783fi
14784
14785
14786
14787
14788
14789if test -z "$lt_cv_path_MAGIC_CMD"; then
14790  if test -n "$ac_tool_prefix"; then
14791    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14792$as_echo_n "checking for file... " >&6; }
14793if ${lt_cv_path_MAGIC_CMD+:} false; then :
14794  $as_echo_n "(cached) " >&6
14795else
14796  case $MAGIC_CMD in
14797[\\/*] |  ?:[\\/]*)
14798  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14799  ;;
14800*)
14801  lt_save_MAGIC_CMD=$MAGIC_CMD
14802  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14803  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14804  for ac_dir in $ac_dummy; do
14805    IFS=$lt_save_ifs
14806    test -z "$ac_dir" && ac_dir=.
14807    if test -f "$ac_dir/file"; then
14808      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14809      if test -n "$file_magic_test_file"; then
14810	case $deplibs_check_method in
14811	"file_magic "*)
14812	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14813	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14814	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14815	    $EGREP "$file_magic_regex" > /dev/null; then
14816	    :
14817	  else
14818	    cat <<_LT_EOF 1>&2
14819
14820*** Warning: the command libtool uses to detect shared libraries,
14821*** $file_magic_cmd, produces output that libtool cannot recognize.
14822*** The result is that libtool may fail to recognize shared libraries
14823*** as such.  This will affect the creation of libtool libraries that
14824*** depend on shared libraries, but programs linked with such libtool
14825*** libraries will work regardless of this problem.  Nevertheless, you
14826*** may want to report the problem to your system manager and/or to
14827*** bug-libtool@gnu.org
14828
14829_LT_EOF
14830	  fi ;;
14831	esac
14832      fi
14833      break
14834    fi
14835  done
14836  IFS=$lt_save_ifs
14837  MAGIC_CMD=$lt_save_MAGIC_CMD
14838  ;;
14839esac
14840fi
14841
14842MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14843if test -n "$MAGIC_CMD"; then
14844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14845$as_echo "$MAGIC_CMD" >&6; }
14846else
14847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14848$as_echo "no" >&6; }
14849fi
14850
14851
14852  else
14853    MAGIC_CMD=:
14854  fi
14855fi
14856
14857  fi
14858  ;;
14859esac
14860
14861# Use C for the default configuration in the libtool script
14862
14863lt_save_CC=$CC
14864ac_ext=c
14865ac_cpp='$CPP $CPPFLAGS'
14866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14868ac_compiler_gnu=$ac_cv_c_compiler_gnu
14869
14870
14871# Source file extension for C test sources.
14872ac_ext=c
14873
14874# Object file extension for compiled C test sources.
14875objext=o
14876objext=$objext
14877
14878# Code to be used in simple compile tests
14879lt_simple_compile_test_code="int some_variable = 0;"
14880
14881# Code to be used in simple link tests
14882lt_simple_link_test_code='int main(){return(0);}'
14883
14884
14885
14886
14887
14888
14889
14890# If no C compiler was specified, use CC.
14891LTCC=${LTCC-"$CC"}
14892
14893# If no C compiler flags were specified, use CFLAGS.
14894LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14895
14896# Allow CC to be a program name with arguments.
14897compiler=$CC
14898
14899# Save the default compiler, since it gets overwritten when the other
14900# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14901compiler_DEFAULT=$CC
14902
14903# save warnings/boilerplate of simple test code
14904ac_outfile=conftest.$ac_objext
14905echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14906eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14907_lt_compiler_boilerplate=`cat conftest.err`
14908$RM conftest*
14909
14910ac_outfile=conftest.$ac_objext
14911echo "$lt_simple_link_test_code" >conftest.$ac_ext
14912eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14913_lt_linker_boilerplate=`cat conftest.err`
14914$RM -r conftest*
14915
14916
14917if test -n "$compiler"; then
14918
14919lt_prog_compiler_no_builtin_flag=
14920
14921if test yes = "$GCC"; then
14922  case $cc_basename in
14923  nvcc*)
14924    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14925  *)
14926    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14927  esac
14928
14929  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14930$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14931if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14932  $as_echo_n "(cached) " >&6
14933else
14934  lt_cv_prog_compiler_rtti_exceptions=no
14935   ac_outfile=conftest.$ac_objext
14936   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14937   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14938   # Insert the option either (1) after the last *FLAGS variable, or
14939   # (2) before a word containing "conftest.", or (3) at the end.
14940   # Note that $ac_compile itself does not contain backslashes and begins
14941   # with a dollar sign (not a hyphen), so the echo should work correctly.
14942   # The option is referenced via a variable to avoid confusing sed.
14943   lt_compile=`echo "$ac_compile" | $SED \
14944   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14945   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14946   -e 's:$: $lt_compiler_flag:'`
14947   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14948   (eval "$lt_compile" 2>conftest.err)
14949   ac_status=$?
14950   cat conftest.err >&5
14951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952   if (exit $ac_status) && test -s "$ac_outfile"; then
14953     # The compiler can only warn and ignore the option if not recognized
14954     # So say no if there are warnings other than the usual output.
14955     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14956     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14957     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14958       lt_cv_prog_compiler_rtti_exceptions=yes
14959     fi
14960   fi
14961   $RM conftest*
14962
14963fi
14964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14965$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14966
14967if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14968    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14969else
14970    :
14971fi
14972
14973fi
14974
14975
14976
14977
14978
14979
14980  lt_prog_compiler_wl=
14981lt_prog_compiler_pic=
14982lt_prog_compiler_static=
14983
14984
14985  if test yes = "$GCC"; then
14986    lt_prog_compiler_wl='-Wl,'
14987    lt_prog_compiler_static='-static'
14988
14989    case $host_os in
14990      aix*)
14991      # All AIX code is PIC.
14992      if test ia64 = "$host_cpu"; then
14993	# AIX 5 now supports IA64 processor
14994	lt_prog_compiler_static='-Bstatic'
14995      fi
14996      lt_prog_compiler_pic='-fPIC'
14997      ;;
14998
14999    amigaos*)
15000      case $host_cpu in
15001      powerpc)
15002            # see comment about AmigaOS4 .so support
15003            lt_prog_compiler_pic='-fPIC'
15004        ;;
15005      m68k)
15006            # FIXME: we need at least 68020 code to build shared libraries, but
15007            # adding the '-m68020' flag to GCC prevents building anything better,
15008            # like '-m68040'.
15009            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15010        ;;
15011      esac
15012      ;;
15013
15014    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15015      # PIC is the default for these OSes.
15016      ;;
15017
15018    mingw* | cygwin* | pw32* | os2* | cegcc*)
15019      # This hack is so that the source file can tell whether it is being
15020      # built for inclusion in a dll (and should export symbols for example).
15021      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15022      # (--disable-auto-import) libraries
15023      lt_prog_compiler_pic='-DDLL_EXPORT'
15024      case $host_os in
15025      os2*)
15026	lt_prog_compiler_static='$wl-static'
15027	;;
15028      esac
15029      ;;
15030
15031    darwin* | rhapsody*)
15032      # PIC is the default on this platform
15033      # Common symbols not allowed in MH_DYLIB files
15034      lt_prog_compiler_pic='-fno-common'
15035      ;;
15036
15037    haiku*)
15038      # PIC is the default for Haiku.
15039      # The "-static" flag exists, but is broken.
15040      lt_prog_compiler_static=
15041      ;;
15042
15043    hpux*)
15044      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15045      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15046      # sets the default TLS model and affects inlining.
15047      case $host_cpu in
15048      hppa*64*)
15049	# +Z the default
15050	;;
15051      *)
15052	lt_prog_compiler_pic='-fPIC'
15053	;;
15054      esac
15055      ;;
15056
15057    interix[3-9]*)
15058      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15059      # Instead, we relocate shared libraries at runtime.
15060      ;;
15061
15062    msdosdjgpp*)
15063      # Just because we use GCC doesn't mean we suddenly get shared libraries
15064      # on systems that don't support them.
15065      lt_prog_compiler_can_build_shared=no
15066      enable_shared=no
15067      ;;
15068
15069    *nto* | *qnx*)
15070      # QNX uses GNU C++, but need to define -shared option too, otherwise
15071      # it will coredump.
15072      lt_prog_compiler_pic='-fPIC -shared'
15073      ;;
15074
15075    sysv4*MP*)
15076      if test -d /usr/nec; then
15077	lt_prog_compiler_pic=-Kconform_pic
15078      fi
15079      ;;
15080
15081    *)
15082      lt_prog_compiler_pic='-fPIC'
15083      ;;
15084    esac
15085
15086    case $cc_basename in
15087    nvcc*) # Cuda Compiler Driver 2.2
15088      lt_prog_compiler_wl='-Xlinker '
15089      if test -n "$lt_prog_compiler_pic"; then
15090        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15091      fi
15092      ;;
15093    esac
15094  else
15095    # PORTME Check for flag to pass linker flags through the system compiler.
15096    case $host_os in
15097    aix*)
15098      lt_prog_compiler_wl='-Wl,'
15099      if test ia64 = "$host_cpu"; then
15100	# AIX 5 now supports IA64 processor
15101	lt_prog_compiler_static='-Bstatic'
15102      else
15103	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15104      fi
15105      ;;
15106
15107    darwin* | rhapsody*)
15108      # PIC is the default on this platform
15109      # Common symbols not allowed in MH_DYLIB files
15110      lt_prog_compiler_pic='-fno-common'
15111      case $cc_basename in
15112      nagfor*)
15113        # NAG Fortran compiler
15114        lt_prog_compiler_wl='-Wl,-Wl,,'
15115        lt_prog_compiler_pic='-PIC'
15116        lt_prog_compiler_static='-Bstatic'
15117        ;;
15118      esac
15119      ;;
15120
15121    mingw* | cygwin* | pw32* | os2* | cegcc*)
15122      # This hack is so that the source file can tell whether it is being
15123      # built for inclusion in a dll (and should export symbols for example).
15124      lt_prog_compiler_pic='-DDLL_EXPORT'
15125      case $host_os in
15126      os2*)
15127	lt_prog_compiler_static='$wl-static'
15128	;;
15129      esac
15130      ;;
15131
15132    hpux9* | hpux10* | hpux11*)
15133      lt_prog_compiler_wl='-Wl,'
15134      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15135      # not for PA HP-UX.
15136      case $host_cpu in
15137      hppa*64*|ia64*)
15138	# +Z the default
15139	;;
15140      *)
15141	lt_prog_compiler_pic='+Z'
15142	;;
15143      esac
15144      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15145      lt_prog_compiler_static='$wl-a ${wl}archive'
15146      ;;
15147
15148    irix5* | irix6* | nonstopux*)
15149      lt_prog_compiler_wl='-Wl,'
15150      # PIC (with -KPIC) is the default.
15151      lt_prog_compiler_static='-non_shared'
15152      ;;
15153
15154    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15155      case $cc_basename in
15156      # old Intel for x86_64, which still supported -KPIC.
15157      ecc*)
15158	lt_prog_compiler_wl='-Wl,'
15159	lt_prog_compiler_pic='-KPIC'
15160	lt_prog_compiler_static='-static'
15161        ;;
15162      # icc used to be incompatible with GCC.
15163      # ICC 10 doesn't accept -KPIC any more.
15164      icc* | ifort*)
15165	lt_prog_compiler_wl='-Wl,'
15166	lt_prog_compiler_pic='-fPIC'
15167	lt_prog_compiler_static='-static'
15168        ;;
15169      # Lahey Fortran 8.1.
15170      lf95*)
15171	lt_prog_compiler_wl='-Wl,'
15172	lt_prog_compiler_pic='--shared'
15173	lt_prog_compiler_static='--static'
15174	;;
15175      nagfor*)
15176	# NAG Fortran compiler
15177	lt_prog_compiler_wl='-Wl,-Wl,,'
15178	lt_prog_compiler_pic='-PIC'
15179	lt_prog_compiler_static='-Bstatic'
15180	;;
15181      tcc*)
15182	# Fabrice Bellard et al's Tiny C Compiler
15183	lt_prog_compiler_wl='-Wl,'
15184	lt_prog_compiler_pic='-fPIC'
15185	lt_prog_compiler_static='-static'
15186	;;
15187      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15188        # Portland Group compilers (*not* the Pentium gcc compiler,
15189	# which looks to be a dead project)
15190	lt_prog_compiler_wl='-Wl,'
15191	lt_prog_compiler_pic='-fpic'
15192	lt_prog_compiler_static='-Bstatic'
15193        ;;
15194      ccc*)
15195        lt_prog_compiler_wl='-Wl,'
15196        # All Alpha code is PIC.
15197        lt_prog_compiler_static='-non_shared'
15198        ;;
15199      xl* | bgxl* | bgf* | mpixl*)
15200	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15201	lt_prog_compiler_wl='-Wl,'
15202	lt_prog_compiler_pic='-qpic'
15203	lt_prog_compiler_static='-qstaticlink'
15204	;;
15205      *)
15206	case `$CC -V 2>&1 | sed 5q` in
15207	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15208	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15209	  lt_prog_compiler_pic='-KPIC'
15210	  lt_prog_compiler_static='-Bstatic'
15211	  lt_prog_compiler_wl=''
15212	  ;;
15213	*Sun\ F* | *Sun*Fortran*)
15214	  lt_prog_compiler_pic='-KPIC'
15215	  lt_prog_compiler_static='-Bstatic'
15216	  lt_prog_compiler_wl='-Qoption ld '
15217	  ;;
15218	*Sun\ C*)
15219	  # Sun C 5.9
15220	  lt_prog_compiler_pic='-KPIC'
15221	  lt_prog_compiler_static='-Bstatic'
15222	  lt_prog_compiler_wl='-Wl,'
15223	  ;;
15224        *Intel*\ [CF]*Compiler*)
15225	  lt_prog_compiler_wl='-Wl,'
15226	  lt_prog_compiler_pic='-fPIC'
15227	  lt_prog_compiler_static='-static'
15228	  ;;
15229	*Portland\ Group*)
15230	  lt_prog_compiler_wl='-Wl,'
15231	  lt_prog_compiler_pic='-fpic'
15232	  lt_prog_compiler_static='-Bstatic'
15233	  ;;
15234	esac
15235	;;
15236      esac
15237      ;;
15238
15239    newsos6)
15240      lt_prog_compiler_pic='-KPIC'
15241      lt_prog_compiler_static='-Bstatic'
15242      ;;
15243
15244    *nto* | *qnx*)
15245      # QNX uses GNU C++, but need to define -shared option too, otherwise
15246      # it will coredump.
15247      lt_prog_compiler_pic='-fPIC -shared'
15248      ;;
15249
15250    osf3* | osf4* | osf5*)
15251      lt_prog_compiler_wl='-Wl,'
15252      # All OSF/1 code is PIC.
15253      lt_prog_compiler_static='-non_shared'
15254      ;;
15255
15256    rdos*)
15257      lt_prog_compiler_static='-non_shared'
15258      ;;
15259
15260    solaris*)
15261      lt_prog_compiler_pic='-KPIC'
15262      lt_prog_compiler_static='-Bstatic'
15263      case $cc_basename in
15264      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15265	lt_prog_compiler_wl='-Qoption ld ';;
15266      *)
15267	lt_prog_compiler_wl='-Wl,';;
15268      esac
15269      ;;
15270
15271    sunos4*)
15272      lt_prog_compiler_wl='-Qoption ld '
15273      lt_prog_compiler_pic='-PIC'
15274      lt_prog_compiler_static='-Bstatic'
15275      ;;
15276
15277    sysv4 | sysv4.2uw2* | sysv4.3*)
15278      lt_prog_compiler_wl='-Wl,'
15279      lt_prog_compiler_pic='-KPIC'
15280      lt_prog_compiler_static='-Bstatic'
15281      ;;
15282
15283    sysv4*MP*)
15284      if test -d /usr/nec; then
15285	lt_prog_compiler_pic='-Kconform_pic'
15286	lt_prog_compiler_static='-Bstatic'
15287      fi
15288      ;;
15289
15290    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15291      lt_prog_compiler_wl='-Wl,'
15292      lt_prog_compiler_pic='-KPIC'
15293      lt_prog_compiler_static='-Bstatic'
15294      ;;
15295
15296    unicos*)
15297      lt_prog_compiler_wl='-Wl,'
15298      lt_prog_compiler_can_build_shared=no
15299      ;;
15300
15301    uts4*)
15302      lt_prog_compiler_pic='-pic'
15303      lt_prog_compiler_static='-Bstatic'
15304      ;;
15305
15306    *)
15307      lt_prog_compiler_can_build_shared=no
15308      ;;
15309    esac
15310  fi
15311
15312case $host_os in
15313  # For platforms that do not support PIC, -DPIC is meaningless:
15314  *djgpp*)
15315    lt_prog_compiler_pic=
15316    ;;
15317  *)
15318    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15319    ;;
15320esac
15321
15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15323$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15324if ${lt_cv_prog_compiler_pic+:} false; then :
15325  $as_echo_n "(cached) " >&6
15326else
15327  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15328fi
15329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15330$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15331lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15332
15333#
15334# Check to make sure the PIC flag actually works.
15335#
15336if test -n "$lt_prog_compiler_pic"; then
15337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15338$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15339if ${lt_cv_prog_compiler_pic_works+:} false; then :
15340  $as_echo_n "(cached) " >&6
15341else
15342  lt_cv_prog_compiler_pic_works=no
15343   ac_outfile=conftest.$ac_objext
15344   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15345   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15346   # Insert the option either (1) after the last *FLAGS variable, or
15347   # (2) before a word containing "conftest.", or (3) at the end.
15348   # Note that $ac_compile itself does not contain backslashes and begins
15349   # with a dollar sign (not a hyphen), so the echo should work correctly.
15350   # The option is referenced via a variable to avoid confusing sed.
15351   lt_compile=`echo "$ac_compile" | $SED \
15352   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15353   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15354   -e 's:$: $lt_compiler_flag:'`
15355   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15356   (eval "$lt_compile" 2>conftest.err)
15357   ac_status=$?
15358   cat conftest.err >&5
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   if (exit $ac_status) && test -s "$ac_outfile"; then
15361     # The compiler can only warn and ignore the option if not recognized
15362     # So say no if there are warnings other than the usual output.
15363     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15364     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15365     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15366       lt_cv_prog_compiler_pic_works=yes
15367     fi
15368   fi
15369   $RM conftest*
15370
15371fi
15372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15373$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15374
15375if test yes = "$lt_cv_prog_compiler_pic_works"; then
15376    case $lt_prog_compiler_pic in
15377     "" | " "*) ;;
15378     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15379     esac
15380else
15381    lt_prog_compiler_pic=
15382     lt_prog_compiler_can_build_shared=no
15383fi
15384
15385fi
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397#
15398# Check to make sure the static flag actually works.
15399#
15400wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15402$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15403if ${lt_cv_prog_compiler_static_works+:} false; then :
15404  $as_echo_n "(cached) " >&6
15405else
15406  lt_cv_prog_compiler_static_works=no
15407   save_LDFLAGS=$LDFLAGS
15408   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15409   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15410   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15411     # The linker can only warn and ignore the option if not recognized
15412     # So say no if there are warnings
15413     if test -s conftest.err; then
15414       # Append any errors to the config.log.
15415       cat conftest.err 1>&5
15416       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15417       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15418       if diff conftest.exp conftest.er2 >/dev/null; then
15419         lt_cv_prog_compiler_static_works=yes
15420       fi
15421     else
15422       lt_cv_prog_compiler_static_works=yes
15423     fi
15424   fi
15425   $RM -r conftest*
15426   LDFLAGS=$save_LDFLAGS
15427
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15430$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15431
15432if test yes = "$lt_cv_prog_compiler_static_works"; then
15433    :
15434else
15435    lt_prog_compiler_static=
15436fi
15437
15438
15439
15440
15441
15442
15443
15444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15445$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15446if ${lt_cv_prog_compiler_c_o+:} false; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  lt_cv_prog_compiler_c_o=no
15450   $RM -r conftest 2>/dev/null
15451   mkdir conftest
15452   cd conftest
15453   mkdir out
15454   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15455
15456   lt_compiler_flag="-o out/conftest2.$ac_objext"
15457   # Insert the option either (1) after the last *FLAGS variable, or
15458   # (2) before a word containing "conftest.", or (3) at the end.
15459   # Note that $ac_compile itself does not contain backslashes and begins
15460   # with a dollar sign (not a hyphen), so the echo should work correctly.
15461   lt_compile=`echo "$ac_compile" | $SED \
15462   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15463   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15464   -e 's:$: $lt_compiler_flag:'`
15465   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15466   (eval "$lt_compile" 2>out/conftest.err)
15467   ac_status=$?
15468   cat out/conftest.err >&5
15469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15471   then
15472     # The compiler can only warn and ignore the option if not recognized
15473     # So say no if there are warnings
15474     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15475     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15476     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15477       lt_cv_prog_compiler_c_o=yes
15478     fi
15479   fi
15480   chmod u+w . 2>&5
15481   $RM conftest*
15482   # SGI C++ compiler will create directory out/ii_files/ for
15483   # template instantiation
15484   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15485   $RM out/* && rmdir out
15486   cd ..
15487   $RM -r conftest
15488   $RM conftest*
15489
15490fi
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15492$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15493
15494
15495
15496
15497
15498
15499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15500$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15501if ${lt_cv_prog_compiler_c_o+:} false; then :
15502  $as_echo_n "(cached) " >&6
15503else
15504  lt_cv_prog_compiler_c_o=no
15505   $RM -r conftest 2>/dev/null
15506   mkdir conftest
15507   cd conftest
15508   mkdir out
15509   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15510
15511   lt_compiler_flag="-o out/conftest2.$ac_objext"
15512   # Insert the option either (1) after the last *FLAGS variable, or
15513   # (2) before a word containing "conftest.", or (3) at the end.
15514   # Note that $ac_compile itself does not contain backslashes and begins
15515   # with a dollar sign (not a hyphen), so the echo should work correctly.
15516   lt_compile=`echo "$ac_compile" | $SED \
15517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15519   -e 's:$: $lt_compiler_flag:'`
15520   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15521   (eval "$lt_compile" 2>out/conftest.err)
15522   ac_status=$?
15523   cat out/conftest.err >&5
15524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15526   then
15527     # The compiler can only warn and ignore the option if not recognized
15528     # So say no if there are warnings
15529     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15530     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15531     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15532       lt_cv_prog_compiler_c_o=yes
15533     fi
15534   fi
15535   chmod u+w . 2>&5
15536   $RM conftest*
15537   # SGI C++ compiler will create directory out/ii_files/ for
15538   # template instantiation
15539   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15540   $RM out/* && rmdir out
15541   cd ..
15542   $RM -r conftest
15543   $RM conftest*
15544
15545fi
15546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15547$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15548
15549
15550
15551
15552hard_links=nottested
15553if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15554  # do not overwrite the value of need_locks provided by the user
15555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15556$as_echo_n "checking if we can lock with hard links... " >&6; }
15557  hard_links=yes
15558  $RM conftest*
15559  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15560  touch conftest.a
15561  ln conftest.a conftest.b 2>&5 || hard_links=no
15562  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15564$as_echo "$hard_links" >&6; }
15565  if test no = "$hard_links"; then
15566    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15567$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15568    need_locks=warn
15569  fi
15570else
15571  need_locks=no
15572fi
15573
15574
15575
15576
15577
15578
15579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15580$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15581
15582  runpath_var=
15583  allow_undefined_flag=
15584  always_export_symbols=no
15585  archive_cmds=
15586  archive_expsym_cmds=
15587  compiler_needs_object=no
15588  enable_shared_with_static_runtimes=no
15589  export_dynamic_flag_spec=
15590  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15591  hardcode_automatic=no
15592  hardcode_direct=no
15593  hardcode_direct_absolute=no
15594  hardcode_libdir_flag_spec=
15595  hardcode_libdir_separator=
15596  hardcode_minus_L=no
15597  hardcode_shlibpath_var=unsupported
15598  inherit_rpath=no
15599  link_all_deplibs=unknown
15600  module_cmds=
15601  module_expsym_cmds=
15602  old_archive_from_new_cmds=
15603  old_archive_from_expsyms_cmds=
15604  thread_safe_flag_spec=
15605  whole_archive_flag_spec=
15606  # include_expsyms should be a list of space-separated symbols to be *always*
15607  # included in the symbol list
15608  include_expsyms=
15609  # exclude_expsyms can be an extended regexp of symbols to exclude
15610  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15611  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15612  # as well as any symbol that contains 'd'.
15613  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15614  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15615  # platforms (ab)use it in PIC code, but their linkers get confused if
15616  # the symbol is explicitly referenced.  Since portable code cannot
15617  # rely on this symbol name, it's probably fine to never include it in
15618  # preloaded symbol tables.
15619  # Exclude shared library initialization/finalization symbols.
15620  extract_expsyms_cmds=
15621
15622  case $host_os in
15623  cygwin* | mingw* | pw32* | cegcc*)
15624    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15625    # When not using gcc, we currently assume that we are using
15626    # Microsoft Visual C++.
15627    if test yes != "$GCC"; then
15628      with_gnu_ld=no
15629    fi
15630    ;;
15631  interix*)
15632    # we just hope/assume this is gcc and not c89 (= MSVC++)
15633    with_gnu_ld=yes
15634    ;;
15635  openbsd* | bitrig*)
15636    with_gnu_ld=no
15637    ;;
15638  linux* | k*bsd*-gnu | gnu*)
15639    link_all_deplibs=no
15640    ;;
15641  esac
15642
15643  ld_shlibs=yes
15644
15645  # On some targets, GNU ld is compatible enough with the native linker
15646  # that we're better off using the native interface for both.
15647  lt_use_gnu_ld_interface=no
15648  if test yes = "$with_gnu_ld"; then
15649    case $host_os in
15650      aix*)
15651	# The AIX port of GNU ld has always aspired to compatibility
15652	# with the native linker.  However, as the warning in the GNU ld
15653	# block says, versions before 2.19.5* couldn't really create working
15654	# shared libraries, regardless of the interface used.
15655	case `$LD -v 2>&1` in
15656	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15657	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15658	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15659	  *)
15660	    lt_use_gnu_ld_interface=yes
15661	    ;;
15662	esac
15663	;;
15664      *)
15665	lt_use_gnu_ld_interface=yes
15666	;;
15667    esac
15668  fi
15669
15670  if test yes = "$lt_use_gnu_ld_interface"; then
15671    # If archive_cmds runs LD, not CC, wlarc should be empty
15672    wlarc='$wl'
15673
15674    # Set some defaults for GNU ld with shared library support. These
15675    # are reset later if shared libraries are not supported. Putting them
15676    # here allows them to be overridden if necessary.
15677    runpath_var=LD_RUN_PATH
15678    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15679    export_dynamic_flag_spec='$wl--export-dynamic'
15680    # ancient GNU ld didn't support --whole-archive et. al.
15681    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15682      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15683    else
15684      whole_archive_flag_spec=
15685    fi
15686    supports_anon_versioning=no
15687    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15688      *GNU\ gold*) supports_anon_versioning=yes ;;
15689      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15690      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15691      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15692      *\ 2.11.*) ;; # other 2.11 versions
15693      *) supports_anon_versioning=yes ;;
15694    esac
15695
15696    # See if GNU ld supports shared libraries.
15697    case $host_os in
15698    aix[3-9]*)
15699      # On AIX/PPC, the GNU linker is very broken
15700      if test ia64 != "$host_cpu"; then
15701	ld_shlibs=no
15702	cat <<_LT_EOF 1>&2
15703
15704*** Warning: the GNU linker, at least up to release 2.19, is reported
15705*** to be unable to reliably create shared libraries on AIX.
15706*** Therefore, libtool is disabling shared libraries support.  If you
15707*** really care for shared libraries, you may want to install binutils
15708*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15709*** You will then need to restart the configuration process.
15710
15711_LT_EOF
15712      fi
15713      ;;
15714
15715    amigaos*)
15716      case $host_cpu in
15717      powerpc)
15718            # see comment about AmigaOS4 .so support
15719            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15720            archive_expsym_cmds=''
15721        ;;
15722      m68k)
15723            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)'
15724            hardcode_libdir_flag_spec='-L$libdir'
15725            hardcode_minus_L=yes
15726        ;;
15727      esac
15728      ;;
15729
15730    beos*)
15731      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15732	allow_undefined_flag=unsupported
15733	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15734	# support --undefined.  This deserves some investigation.  FIXME
15735	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15736      else
15737	ld_shlibs=no
15738      fi
15739      ;;
15740
15741    cygwin* | mingw* | pw32* | cegcc*)
15742      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15743      # as there is no search path for DLLs.
15744      hardcode_libdir_flag_spec='-L$libdir'
15745      export_dynamic_flag_spec='$wl--export-all-symbols'
15746      allow_undefined_flag=unsupported
15747      always_export_symbols=no
15748      enable_shared_with_static_runtimes=yes
15749      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'
15750      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15751
15752      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15753        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15754	# If the export-symbols file already is a .def file, use it as
15755	# is; otherwise, prepend EXPORTS...
15756	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15757          cp $export_symbols $output_objdir/$soname.def;
15758        else
15759          echo EXPORTS > $output_objdir/$soname.def;
15760          cat $export_symbols >> $output_objdir/$soname.def;
15761        fi~
15762        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15763      else
15764	ld_shlibs=no
15765      fi
15766      ;;
15767
15768    haiku*)
15769      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15770      link_all_deplibs=yes
15771      ;;
15772
15773    os2*)
15774      hardcode_libdir_flag_spec='-L$libdir'
15775      hardcode_minus_L=yes
15776      allow_undefined_flag=unsupported
15777      shrext_cmds=.dll
15778      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15779	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15780	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15781	$ECHO EXPORTS >> $output_objdir/$libname.def~
15782	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15783	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15784	emximp -o $lib $output_objdir/$libname.def'
15785      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15786	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15787	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15788	$ECHO EXPORTS >> $output_objdir/$libname.def~
15789	prefix_cmds="$SED"~
15790	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15791	  prefix_cmds="$prefix_cmds -e 1d";
15792	fi~
15793	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15794	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15795	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15796	emximp -o $lib $output_objdir/$libname.def'
15797      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15798      enable_shared_with_static_runtimes=yes
15799      ;;
15800
15801    interix[3-9]*)
15802      hardcode_direct=no
15803      hardcode_shlibpath_var=no
15804      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15805      export_dynamic_flag_spec='$wl-E'
15806      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15807      # Instead, shared libraries are loaded at an image base (0x10000000 by
15808      # default) and relocated if they conflict, which is a slow very memory
15809      # consuming and fragmenting process.  To avoid this, we pick a random,
15810      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15811      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15812      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15813      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'
15814      ;;
15815
15816    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15817      tmp_diet=no
15818      if test linux-dietlibc = "$host_os"; then
15819	case $cc_basename in
15820	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15821	esac
15822      fi
15823      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15824	 && test no = "$tmp_diet"
15825      then
15826	tmp_addflag=' $pic_flag'
15827	tmp_sharedflag='-shared'
15828	case $cc_basename,$host_cpu in
15829        pgcc*)				# Portland Group C compiler
15830	  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'
15831	  tmp_addflag=' $pic_flag'
15832	  ;;
15833	pgf77* | pgf90* | pgf95* | pgfortran*)
15834					# Portland Group f77 and f90 compilers
15835	  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'
15836	  tmp_addflag=' $pic_flag -Mnomain' ;;
15837	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15838	  tmp_addflag=' -i_dynamic' ;;
15839	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15840	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15841	ifc* | ifort*)			# Intel Fortran compiler
15842	  tmp_addflag=' -nofor_main' ;;
15843	lf95*)				# Lahey Fortran 8.1
15844	  whole_archive_flag_spec=
15845	  tmp_sharedflag='--shared' ;;
15846        nagfor*)                        # NAGFOR 5.3
15847          tmp_sharedflag='-Wl,-shared' ;;
15848	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15849	  tmp_sharedflag='-qmkshrobj'
15850	  tmp_addflag= ;;
15851	nvcc*)	# Cuda Compiler Driver 2.2
15852	  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'
15853	  compiler_needs_object=yes
15854	  ;;
15855	esac
15856	case `$CC -V 2>&1 | sed 5q` in
15857	*Sun\ C*)			# Sun C 5.9
15858	  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'
15859	  compiler_needs_object=yes
15860	  tmp_sharedflag='-G' ;;
15861	*Sun\ F*)			# Sun Fortran 8.3
15862	  tmp_sharedflag='-G' ;;
15863	esac
15864	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15865
15866        if test yes = "$supports_anon_versioning"; then
15867          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15868            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15869            echo "local: *; };" >> $output_objdir/$libname.ver~
15870            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15871        fi
15872
15873	case $cc_basename in
15874	tcc*)
15875	  export_dynamic_flag_spec='-rdynamic'
15876	  ;;
15877	xlf* | bgf* | bgxlf* | mpixlf*)
15878	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15879	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15880	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15881	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15882	  if test yes = "$supports_anon_versioning"; then
15883	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15884              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15885              echo "local: *; };" >> $output_objdir/$libname.ver~
15886              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15887	  fi
15888	  ;;
15889	esac
15890      else
15891        ld_shlibs=no
15892      fi
15893      ;;
15894
15895    netbsd* | netbsdelf*-gnu)
15896      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15897	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15898	wlarc=
15899      else
15900	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15901	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15902      fi
15903      ;;
15904
15905    solaris*)
15906      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15907	ld_shlibs=no
15908	cat <<_LT_EOF 1>&2
15909
15910*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15911*** create shared libraries on Solaris systems.  Therefore, libtool
15912*** is disabling shared libraries support.  We urge you to upgrade GNU
15913*** binutils to release 2.9.1 or newer.  Another option is to modify
15914*** your PATH or compiler configuration so that the native linker is
15915*** used, and then restart.
15916
15917_LT_EOF
15918      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15919	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15920	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15921      else
15922	ld_shlibs=no
15923      fi
15924      ;;
15925
15926    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15927      case `$LD -v 2>&1` in
15928        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15929	ld_shlibs=no
15930	cat <<_LT_EOF 1>&2
15931
15932*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15933*** reliably create shared libraries on SCO systems.  Therefore, libtool
15934*** is disabling shared libraries support.  We urge you to upgrade GNU
15935*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15936*** your PATH or compiler configuration so that the native linker is
15937*** used, and then restart.
15938
15939_LT_EOF
15940	;;
15941	*)
15942	  # For security reasons, it is highly recommended that you always
15943	  # use absolute paths for naming shared libraries, and exclude the
15944	  # DT_RUNPATH tag from executables and libraries.  But doing so
15945	  # requires that you compile everything twice, which is a pain.
15946	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15947	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15948	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15949	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15950	  else
15951	    ld_shlibs=no
15952	  fi
15953	;;
15954      esac
15955      ;;
15956
15957    sunos4*)
15958      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15959      wlarc=
15960      hardcode_direct=yes
15961      hardcode_shlibpath_var=no
15962      ;;
15963
15964    *)
15965      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15966	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15967	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15968      else
15969	ld_shlibs=no
15970      fi
15971      ;;
15972    esac
15973
15974    if test no = "$ld_shlibs"; then
15975      runpath_var=
15976      hardcode_libdir_flag_spec=
15977      export_dynamic_flag_spec=
15978      whole_archive_flag_spec=
15979    fi
15980  else
15981    # PORTME fill in a description of your system's linker (not GNU ld)
15982    case $host_os in
15983    aix3*)
15984      allow_undefined_flag=unsupported
15985      always_export_symbols=yes
15986      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'
15987      # Note: this linker hardcodes the directories in LIBPATH if there
15988      # are no directories specified by -L.
15989      hardcode_minus_L=yes
15990      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15991	# Neither direct hardcoding nor static linking is supported with a
15992	# broken collect2.
15993	hardcode_direct=unsupported
15994      fi
15995      ;;
15996
15997    aix[4-9]*)
15998      if test ia64 = "$host_cpu"; then
15999	# On IA64, the linker does run time linking by default, so we don't
16000	# have to do anything special.
16001	aix_use_runtimelinking=no
16002	exp_sym_flag='-Bexport'
16003	no_entry_flag=
16004      else
16005	# If we're using GNU nm, then we don't want the "-C" option.
16006	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16007	# Without the "-l" option, or with the "-B" option, AIX nm treats
16008	# weak defined symbols like other global defined symbols, whereas
16009	# GNU nm marks them as "W".
16010	# While the 'weak' keyword is ignored in the Export File, we need
16011	# it in the Import File for the 'aix-soname' feature, so we have
16012	# to replace the "-B" option with "-P" for AIX nm.
16013	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16014	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16015	else
16016	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16017	fi
16018	aix_use_runtimelinking=no
16019
16020	# Test if we are trying to use run time linking or normal
16021	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16022	# have runtime linking enabled, and use it for executables.
16023	# For shared libraries, we enable/disable runtime linking
16024	# depending on the kind of the shared library created -
16025	# when "with_aix_soname,aix_use_runtimelinking" is:
16026	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16027	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16028	#            lib.a           static archive
16029	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16030	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16031	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16032	#            lib.a(lib.so.V) shared, rtl:no
16033	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16034	#            lib.a           static archive
16035	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16036	  for ld_flag in $LDFLAGS; do
16037	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16038	    aix_use_runtimelinking=yes
16039	    break
16040	  fi
16041	  done
16042	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16043	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16044	    # so we don't have lib.a shared libs to link our executables.
16045	    # We have to force runtime linking in this case.
16046	    aix_use_runtimelinking=yes
16047	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16048	  fi
16049	  ;;
16050	esac
16051
16052	exp_sym_flag='-bexport'
16053	no_entry_flag='-bnoentry'
16054      fi
16055
16056      # When large executables or shared objects are built, AIX ld can
16057      # have problems creating the table of contents.  If linking a library
16058      # or program results in "error TOC overflow" add -mminimal-toc to
16059      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16060      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16061
16062      archive_cmds=''
16063      hardcode_direct=yes
16064      hardcode_direct_absolute=yes
16065      hardcode_libdir_separator=':'
16066      link_all_deplibs=yes
16067      file_list_spec='$wl-f,'
16068      case $with_aix_soname,$aix_use_runtimelinking in
16069      aix,*) ;; # traditional, no import file
16070      svr4,* | *,yes) # use import file
16071	# The Import File defines what to hardcode.
16072	hardcode_direct=no
16073	hardcode_direct_absolute=no
16074	;;
16075      esac
16076
16077      if test yes = "$GCC"; then
16078	case $host_os in aix4.[012]|aix4.[012].*)
16079	# We only want to do this on AIX 4.2 and lower, the check
16080	# below for broken collect2 doesn't work under 4.3+
16081	  collect2name=`$CC -print-prog-name=collect2`
16082	  if test -f "$collect2name" &&
16083	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16084	  then
16085	  # We have reworked collect2
16086	  :
16087	  else
16088	  # We have old collect2
16089	  hardcode_direct=unsupported
16090	  # It fails to find uninstalled libraries when the uninstalled
16091	  # path is not listed in the libpath.  Setting hardcode_minus_L
16092	  # to unsupported forces relinking
16093	  hardcode_minus_L=yes
16094	  hardcode_libdir_flag_spec='-L$libdir'
16095	  hardcode_libdir_separator=
16096	  fi
16097	  ;;
16098	esac
16099	shared_flag='-shared'
16100	if test yes = "$aix_use_runtimelinking"; then
16101	  shared_flag="$shared_flag "'$wl-G'
16102	fi
16103	# Need to ensure runtime linking is disabled for the traditional
16104	# shared library, or the linker may eventually find shared libraries
16105	# /with/ Import File - we do not want to mix them.
16106	shared_flag_aix='-shared'
16107	shared_flag_svr4='-shared $wl-G'
16108      else
16109	# not using gcc
16110	if test ia64 = "$host_cpu"; then
16111	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16112	# chokes on -Wl,-G. The following line is correct:
16113	  shared_flag='-G'
16114	else
16115	  if test yes = "$aix_use_runtimelinking"; then
16116	    shared_flag='$wl-G'
16117	  else
16118	    shared_flag='$wl-bM:SRE'
16119	  fi
16120	  shared_flag_aix='$wl-bM:SRE'
16121	  shared_flag_svr4='$wl-G'
16122	fi
16123      fi
16124
16125      export_dynamic_flag_spec='$wl-bexpall'
16126      # It seems that -bexpall does not export symbols beginning with
16127      # underscore (_), so it is better to generate a list of symbols to export.
16128      always_export_symbols=yes
16129      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16130	# Warning - without using the other runtime loading flags (-brtl),
16131	# -berok will link without error, but may produce a broken library.
16132	allow_undefined_flag='-berok'
16133        # Determine the default libpath from the value encoded in an
16134        # empty executable.
16135        if test set = "${lt_cv_aix_libpath+set}"; then
16136  aix_libpath=$lt_cv_aix_libpath
16137else
16138  if ${lt_cv_aix_libpath_+:} false; then :
16139  $as_echo_n "(cached) " >&6
16140else
16141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142/* end confdefs.h.  */
16143
16144int
16145main ()
16146{
16147
16148  ;
16149  return 0;
16150}
16151_ACEOF
16152if ac_fn_c_try_link "$LINENO"; then :
16153
16154  lt_aix_libpath_sed='
16155      /Import File Strings/,/^$/ {
16156	  /^0/ {
16157	      s/^0  *\([^ ]*\) *$/\1/
16158	      p
16159	  }
16160      }'
16161  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16162  # Check for a 64-bit object if we didn't find anything.
16163  if test -z "$lt_cv_aix_libpath_"; then
16164    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16165  fi
16166fi
16167rm -f core conftest.err conftest.$ac_objext \
16168    conftest$ac_exeext conftest.$ac_ext
16169  if test -z "$lt_cv_aix_libpath_"; then
16170    lt_cv_aix_libpath_=/usr/lib:/lib
16171  fi
16172
16173fi
16174
16175  aix_libpath=$lt_cv_aix_libpath_
16176fi
16177
16178        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16179        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
16180      else
16181	if test ia64 = "$host_cpu"; then
16182	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16183	  allow_undefined_flag="-z nodefs"
16184	  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"
16185	else
16186	 # Determine the default libpath from the value encoded in an
16187	 # empty executable.
16188	 if test set = "${lt_cv_aix_libpath+set}"; then
16189  aix_libpath=$lt_cv_aix_libpath
16190else
16191  if ${lt_cv_aix_libpath_+:} false; then :
16192  $as_echo_n "(cached) " >&6
16193else
16194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16195/* end confdefs.h.  */
16196
16197int
16198main ()
16199{
16200
16201  ;
16202  return 0;
16203}
16204_ACEOF
16205if ac_fn_c_try_link "$LINENO"; then :
16206
16207  lt_aix_libpath_sed='
16208      /Import File Strings/,/^$/ {
16209	  /^0/ {
16210	      s/^0  *\([^ ]*\) *$/\1/
16211	      p
16212	  }
16213      }'
16214  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16215  # Check for a 64-bit object if we didn't find anything.
16216  if test -z "$lt_cv_aix_libpath_"; then
16217    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16218  fi
16219fi
16220rm -f core conftest.err conftest.$ac_objext \
16221    conftest$ac_exeext conftest.$ac_ext
16222  if test -z "$lt_cv_aix_libpath_"; then
16223    lt_cv_aix_libpath_=/usr/lib:/lib
16224  fi
16225
16226fi
16227
16228  aix_libpath=$lt_cv_aix_libpath_
16229fi
16230
16231	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16232	  # Warning - without using the other run time loading flags,
16233	  # -berok will link without error, but may produce a broken library.
16234	  no_undefined_flag=' $wl-bernotok'
16235	  allow_undefined_flag=' $wl-berok'
16236	  if test yes = "$with_gnu_ld"; then
16237	    # We only use this code for GNU lds that support --whole-archive.
16238	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16239	  else
16240	    # Exported symbols can be pulled into shared objects from archives
16241	    whole_archive_flag_spec='$convenience'
16242	  fi
16243	  archive_cmds_need_lc=yes
16244	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16245	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16246	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16247	  if test svr4 != "$with_aix_soname"; then
16248	    # This is similar to how AIX traditionally builds its shared libraries.
16249	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16250	  fi
16251	  if test aix != "$with_aix_soname"; then
16252	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16253	  else
16254	    # used by -dlpreopen to get the symbols
16255	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16256	  fi
16257	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16258	fi
16259      fi
16260      ;;
16261
16262    amigaos*)
16263      case $host_cpu in
16264      powerpc)
16265            # see comment about AmigaOS4 .so support
16266            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16267            archive_expsym_cmds=''
16268        ;;
16269      m68k)
16270            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)'
16271            hardcode_libdir_flag_spec='-L$libdir'
16272            hardcode_minus_L=yes
16273        ;;
16274      esac
16275      ;;
16276
16277    bsdi[45]*)
16278      export_dynamic_flag_spec=-rdynamic
16279      ;;
16280
16281    cygwin* | mingw* | pw32* | cegcc*)
16282      # When not using gcc, we currently assume that we are using
16283      # Microsoft Visual C++.
16284      # hardcode_libdir_flag_spec is actually meaningless, as there is
16285      # no search path for DLLs.
16286      case $cc_basename in
16287      cl*)
16288	# Native MSVC
16289	hardcode_libdir_flag_spec=' '
16290	allow_undefined_flag=unsupported
16291	always_export_symbols=yes
16292	file_list_spec='@'
16293	# Tell ltmain to make .lib files, not .a files.
16294	libext=lib
16295	# Tell ltmain to make .dll files, not .so files.
16296	shrext_cmds=.dll
16297	# FIXME: Setting linknames here is a bad hack.
16298	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16299	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16300            cp "$export_symbols" "$output_objdir/$soname.def";
16301            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16302          else
16303            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16304          fi~
16305          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16306          linknames='
16307	# The linker will not automatically build a static lib if we build a DLL.
16308	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16309	enable_shared_with_static_runtimes=yes
16310	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16311	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16312	# Don't use ranlib
16313	old_postinstall_cmds='chmod 644 $oldlib'
16314	postlink_cmds='lt_outputfile="@OUTPUT@"~
16315          lt_tool_outputfile="@TOOL_OUTPUT@"~
16316          case $lt_outputfile in
16317            *.exe|*.EXE) ;;
16318            *)
16319              lt_outputfile=$lt_outputfile.exe
16320              lt_tool_outputfile=$lt_tool_outputfile.exe
16321              ;;
16322          esac~
16323          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16324            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16325            $RM "$lt_outputfile.manifest";
16326          fi'
16327	;;
16328      *)
16329	# Assume MSVC wrapper
16330	hardcode_libdir_flag_spec=' '
16331	allow_undefined_flag=unsupported
16332	# Tell ltmain to make .lib files, not .a files.
16333	libext=lib
16334	# Tell ltmain to make .dll files, not .so files.
16335	shrext_cmds=.dll
16336	# FIXME: Setting linknames here is a bad hack.
16337	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16338	# The linker will automatically build a .lib file if we build a DLL.
16339	old_archive_from_new_cmds='true'
16340	# FIXME: Should let the user specify the lib program.
16341	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16342	enable_shared_with_static_runtimes=yes
16343	;;
16344      esac
16345      ;;
16346
16347    darwin* | rhapsody*)
16348
16349
16350  archive_cmds_need_lc=no
16351  hardcode_direct=no
16352  hardcode_automatic=yes
16353  hardcode_shlibpath_var=unsupported
16354  if test yes = "$lt_cv_ld_force_load"; then
16355    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\"`'
16356
16357  else
16358    whole_archive_flag_spec=''
16359  fi
16360  link_all_deplibs=yes
16361  allow_undefined_flag=$_lt_dar_allow_undefined
16362  case $cc_basename in
16363     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16364     *) _lt_dar_can_shared=$GCC ;;
16365  esac
16366  if test yes = "$_lt_dar_can_shared"; then
16367    output_verbose_link_cmd=func_echo_all
16368    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16369    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16370    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"
16371    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"
16372
16373  else
16374  ld_shlibs=no
16375  fi
16376
16377      ;;
16378
16379    dgux*)
16380      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381      hardcode_libdir_flag_spec='-L$libdir'
16382      hardcode_shlibpath_var=no
16383      ;;
16384
16385    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16386    # support.  Future versions do this automatically, but an explicit c++rt0.o
16387    # does not break anything, and helps significantly (at the cost of a little
16388    # extra space).
16389    freebsd2.2*)
16390      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16391      hardcode_libdir_flag_spec='-R$libdir'
16392      hardcode_direct=yes
16393      hardcode_shlibpath_var=no
16394      ;;
16395
16396    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16397    freebsd2.*)
16398      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16399      hardcode_direct=yes
16400      hardcode_minus_L=yes
16401      hardcode_shlibpath_var=no
16402      ;;
16403
16404    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16405    freebsd* | dragonfly*)
16406      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16407      hardcode_libdir_flag_spec='-R$libdir'
16408      hardcode_direct=yes
16409      hardcode_shlibpath_var=no
16410      ;;
16411
16412    hpux9*)
16413      if test yes = "$GCC"; then
16414	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16415      else
16416	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16417      fi
16418      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16419      hardcode_libdir_separator=:
16420      hardcode_direct=yes
16421
16422      # hardcode_minus_L: Not really in the search PATH,
16423      # but as the default location of the library.
16424      hardcode_minus_L=yes
16425      export_dynamic_flag_spec='$wl-E'
16426      ;;
16427
16428    hpux10*)
16429      if test yes,no = "$GCC,$with_gnu_ld"; then
16430	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16431      else
16432	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16433      fi
16434      if test no = "$with_gnu_ld"; then
16435	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16436	hardcode_libdir_separator=:
16437	hardcode_direct=yes
16438	hardcode_direct_absolute=yes
16439	export_dynamic_flag_spec='$wl-E'
16440	# hardcode_minus_L: Not really in the search PATH,
16441	# but as the default location of the library.
16442	hardcode_minus_L=yes
16443      fi
16444      ;;
16445
16446    hpux11*)
16447      if test yes,no = "$GCC,$with_gnu_ld"; then
16448	case $host_cpu in
16449	hppa*64*)
16450	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16451	  ;;
16452	ia64*)
16453	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16454	  ;;
16455	*)
16456	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16457	  ;;
16458	esac
16459      else
16460	case $host_cpu in
16461	hppa*64*)
16462	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16463	  ;;
16464	ia64*)
16465	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16466	  ;;
16467	*)
16468
16469	  # Older versions of the 11.00 compiler do not understand -b yet
16470	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16471	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16472$as_echo_n "checking if $CC understands -b... " >&6; }
16473if ${lt_cv_prog_compiler__b+:} false; then :
16474  $as_echo_n "(cached) " >&6
16475else
16476  lt_cv_prog_compiler__b=no
16477   save_LDFLAGS=$LDFLAGS
16478   LDFLAGS="$LDFLAGS -b"
16479   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16480   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16481     # The linker can only warn and ignore the option if not recognized
16482     # So say no if there are warnings
16483     if test -s conftest.err; then
16484       # Append any errors to the config.log.
16485       cat conftest.err 1>&5
16486       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16487       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488       if diff conftest.exp conftest.er2 >/dev/null; then
16489         lt_cv_prog_compiler__b=yes
16490       fi
16491     else
16492       lt_cv_prog_compiler__b=yes
16493     fi
16494   fi
16495   $RM -r conftest*
16496   LDFLAGS=$save_LDFLAGS
16497
16498fi
16499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16500$as_echo "$lt_cv_prog_compiler__b" >&6; }
16501
16502if test yes = "$lt_cv_prog_compiler__b"; then
16503    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16504else
16505    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16506fi
16507
16508	  ;;
16509	esac
16510      fi
16511      if test no = "$with_gnu_ld"; then
16512	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16513	hardcode_libdir_separator=:
16514
16515	case $host_cpu in
16516	hppa*64*|ia64*)
16517	  hardcode_direct=no
16518	  hardcode_shlibpath_var=no
16519	  ;;
16520	*)
16521	  hardcode_direct=yes
16522	  hardcode_direct_absolute=yes
16523	  export_dynamic_flag_spec='$wl-E'
16524
16525	  # hardcode_minus_L: Not really in the search PATH,
16526	  # but as the default location of the library.
16527	  hardcode_minus_L=yes
16528	  ;;
16529	esac
16530      fi
16531      ;;
16532
16533    irix5* | irix6* | nonstopux*)
16534      if test yes = "$GCC"; then
16535	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'
16536	# Try to use the -exported_symbol ld option, if it does not
16537	# work, assume that -exports_file does not work either and
16538	# implicitly export all symbols.
16539	# This should be the same for all languages, so no per-tag cache variable.
16540	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16541$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16542if ${lt_cv_irix_exported_symbol+:} false; then :
16543  $as_echo_n "(cached) " >&6
16544else
16545  save_LDFLAGS=$LDFLAGS
16546	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16547	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548/* end confdefs.h.  */
16549int foo (void) { return 0; }
16550_ACEOF
16551if ac_fn_c_try_link "$LINENO"; then :
16552  lt_cv_irix_exported_symbol=yes
16553else
16554  lt_cv_irix_exported_symbol=no
16555fi
16556rm -f core conftest.err conftest.$ac_objext \
16557    conftest$ac_exeext conftest.$ac_ext
16558           LDFLAGS=$save_LDFLAGS
16559fi
16560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16561$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16562	if test yes = "$lt_cv_irix_exported_symbol"; then
16563          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'
16564	fi
16565	link_all_deplibs=no
16566      else
16567	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'
16568	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'
16569      fi
16570      archive_cmds_need_lc='no'
16571      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16572      hardcode_libdir_separator=:
16573      inherit_rpath=yes
16574      link_all_deplibs=yes
16575      ;;
16576
16577    linux*)
16578      case $cc_basename in
16579      tcc*)
16580	# Fabrice Bellard et al's Tiny C Compiler
16581	ld_shlibs=yes
16582	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16583	;;
16584      esac
16585      ;;
16586
16587    netbsd* | netbsdelf*-gnu)
16588      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16589	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16590      else
16591	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16592      fi
16593      hardcode_libdir_flag_spec='-R$libdir'
16594      hardcode_direct=yes
16595      hardcode_shlibpath_var=no
16596      ;;
16597
16598    newsos6)
16599      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16600      hardcode_direct=yes
16601      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16602      hardcode_libdir_separator=:
16603      hardcode_shlibpath_var=no
16604      ;;
16605
16606    *nto* | *qnx*)
16607      ;;
16608
16609    openbsd* | bitrig*)
16610      if test -f /usr/libexec/ld.so; then
16611	hardcode_direct=yes
16612	hardcode_shlibpath_var=no
16613	hardcode_direct_absolute=yes
16614	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16615	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16616	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16617	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16618	  export_dynamic_flag_spec='$wl-E'
16619	else
16620	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16621	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16622	fi
16623      else
16624	ld_shlibs=no
16625      fi
16626      ;;
16627
16628    os2*)
16629      hardcode_libdir_flag_spec='-L$libdir'
16630      hardcode_minus_L=yes
16631      allow_undefined_flag=unsupported
16632      shrext_cmds=.dll
16633      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16634	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16635	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16636	$ECHO EXPORTS >> $output_objdir/$libname.def~
16637	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16638	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16639	emximp -o $lib $output_objdir/$libname.def'
16640      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16641	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16642	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16643	$ECHO EXPORTS >> $output_objdir/$libname.def~
16644	prefix_cmds="$SED"~
16645	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16646	  prefix_cmds="$prefix_cmds -e 1d";
16647	fi~
16648	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16649	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16650	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16651	emximp -o $lib $output_objdir/$libname.def'
16652      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16653      enable_shared_with_static_runtimes=yes
16654      ;;
16655
16656    osf3*)
16657      if test yes = "$GCC"; then
16658	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16659	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'
16660      else
16661	allow_undefined_flag=' -expect_unresolved \*'
16662	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'
16663      fi
16664      archive_cmds_need_lc='no'
16665      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16666      hardcode_libdir_separator=:
16667      ;;
16668
16669    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16670      if test yes = "$GCC"; then
16671	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16672	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'
16673	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16674      else
16675	allow_undefined_flag=' -expect_unresolved \*'
16676	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'
16677	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~
16678          $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'
16679
16680	# Both c and cxx compiler support -rpath directly
16681	hardcode_libdir_flag_spec='-rpath $libdir'
16682      fi
16683      archive_cmds_need_lc='no'
16684      hardcode_libdir_separator=:
16685      ;;
16686
16687    solaris*)
16688      no_undefined_flag=' -z defs'
16689      if test yes = "$GCC"; then
16690	wlarc='$wl'
16691	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16692	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16693          $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'
16694      else
16695	case `$CC -V 2>&1` in
16696	*"Compilers 5.0"*)
16697	  wlarc=''
16698	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16700            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16701	  ;;
16702	*)
16703	  wlarc='$wl'
16704	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16705	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16706            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16707	  ;;
16708	esac
16709      fi
16710      hardcode_libdir_flag_spec='-R$libdir'
16711      hardcode_shlibpath_var=no
16712      case $host_os in
16713      solaris2.[0-5] | solaris2.[0-5].*) ;;
16714      *)
16715	# The compiler driver will combine and reorder linker options,
16716	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16717	# but is careful enough not to reorder.
16718	# Supported since Solaris 2.6 (maybe 2.5.1?)
16719	if test yes = "$GCC"; then
16720	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16721	else
16722	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16723	fi
16724	;;
16725      esac
16726      link_all_deplibs=yes
16727      ;;
16728
16729    sunos4*)
16730      if test sequent = "$host_vendor"; then
16731	# Use $CC to link under sequent, because it throws in some extra .o
16732	# files that make .init and .fini sections work.
16733	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16734      else
16735	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16736      fi
16737      hardcode_libdir_flag_spec='-L$libdir'
16738      hardcode_direct=yes
16739      hardcode_minus_L=yes
16740      hardcode_shlibpath_var=no
16741      ;;
16742
16743    sysv4)
16744      case $host_vendor in
16745	sni)
16746	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747	  hardcode_direct=yes # is this really true???
16748	;;
16749	siemens)
16750	  ## LD is ld it makes a PLAMLIB
16751	  ## CC just makes a GrossModule.
16752	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16753	  reload_cmds='$CC -r -o $output$reload_objs'
16754	  hardcode_direct=no
16755        ;;
16756	motorola)
16757	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16758	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16759	;;
16760      esac
16761      runpath_var='LD_RUN_PATH'
16762      hardcode_shlibpath_var=no
16763      ;;
16764
16765    sysv4.3*)
16766      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16767      hardcode_shlibpath_var=no
16768      export_dynamic_flag_spec='-Bexport'
16769      ;;
16770
16771    sysv4*MP*)
16772      if test -d /usr/nec; then
16773	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774	hardcode_shlibpath_var=no
16775	runpath_var=LD_RUN_PATH
16776	hardcode_runpath_var=yes
16777	ld_shlibs=yes
16778      fi
16779      ;;
16780
16781    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16782      no_undefined_flag='$wl-z,text'
16783      archive_cmds_need_lc=no
16784      hardcode_shlibpath_var=no
16785      runpath_var='LD_RUN_PATH'
16786
16787      if test yes = "$GCC"; then
16788	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16789	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16790      else
16791	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16792	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16793      fi
16794      ;;
16795
16796    sysv5* | sco3.2v5* | sco5v6*)
16797      # Note: We CANNOT use -z defs as we might desire, because we do not
16798      # link with -lc, and that would cause any symbols used from libc to
16799      # always be unresolved, which means just about no library would
16800      # ever link correctly.  If we're not using GNU ld we use -z text
16801      # though, which does catch some bad symbols but isn't as heavy-handed
16802      # as -z defs.
16803      no_undefined_flag='$wl-z,text'
16804      allow_undefined_flag='$wl-z,nodefs'
16805      archive_cmds_need_lc=no
16806      hardcode_shlibpath_var=no
16807      hardcode_libdir_flag_spec='$wl-R,$libdir'
16808      hardcode_libdir_separator=':'
16809      link_all_deplibs=yes
16810      export_dynamic_flag_spec='$wl-Bexport'
16811      runpath_var='LD_RUN_PATH'
16812
16813      if test yes = "$GCC"; then
16814	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16815	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16816      else
16817	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16818	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16819      fi
16820      ;;
16821
16822    uts4*)
16823      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16824      hardcode_libdir_flag_spec='-L$libdir'
16825      hardcode_shlibpath_var=no
16826      ;;
16827
16828    *)
16829      ld_shlibs=no
16830      ;;
16831    esac
16832
16833    if test sni = "$host_vendor"; then
16834      case $host in
16835      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16836	export_dynamic_flag_spec='$wl-Blargedynsym'
16837	;;
16838      esac
16839    fi
16840  fi
16841
16842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16843$as_echo "$ld_shlibs" >&6; }
16844test no = "$ld_shlibs" && can_build_shared=no
16845
16846with_gnu_ld=$with_gnu_ld
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862#
16863# Do we need to explicitly link libc?
16864#
16865case "x$archive_cmds_need_lc" in
16866x|xyes)
16867  # Assume -lc should be added
16868  archive_cmds_need_lc=yes
16869
16870  if test yes,yes = "$GCC,$enable_shared"; then
16871    case $archive_cmds in
16872    *'~'*)
16873      # FIXME: we may have to deal with multi-command sequences.
16874      ;;
16875    '$CC '*)
16876      # Test whether the compiler implicitly links with -lc since on some
16877      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16878      # to ld, don't add -lc before -lgcc.
16879      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16880$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16881if ${lt_cv_archive_cmds_need_lc+:} false; then :
16882  $as_echo_n "(cached) " >&6
16883else
16884  $RM conftest*
16885	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16886
16887	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16888  (eval $ac_compile) 2>&5
16889  ac_status=$?
16890  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16891  test $ac_status = 0; } 2>conftest.err; then
16892	  soname=conftest
16893	  lib=conftest
16894	  libobjs=conftest.$ac_objext
16895	  deplibs=
16896	  wl=$lt_prog_compiler_wl
16897	  pic_flag=$lt_prog_compiler_pic
16898	  compiler_flags=-v
16899	  linker_flags=-v
16900	  verstring=
16901	  output_objdir=.
16902	  libname=conftest
16903	  lt_save_allow_undefined_flag=$allow_undefined_flag
16904	  allow_undefined_flag=
16905	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16906  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16907  ac_status=$?
16908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16909  test $ac_status = 0; }
16910	  then
16911	    lt_cv_archive_cmds_need_lc=no
16912	  else
16913	    lt_cv_archive_cmds_need_lc=yes
16914	  fi
16915	  allow_undefined_flag=$lt_save_allow_undefined_flag
16916	else
16917	  cat conftest.err 1>&5
16918	fi
16919	$RM conftest*
16920
16921fi
16922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16923$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16924      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16925      ;;
16926    esac
16927  fi
16928  ;;
16929esac
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17083$as_echo_n "checking dynamic linker characteristics... " >&6; }
17084
17085if test yes = "$GCC"; then
17086  case $host_os in
17087    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17088    *) lt_awk_arg='/^libraries:/' ;;
17089  esac
17090  case $host_os in
17091    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17092    *) lt_sed_strip_eq='s|=/|/|g' ;;
17093  esac
17094  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17095  case $lt_search_path_spec in
17096  *\;*)
17097    # if the path contains ";" then we assume it to be the separator
17098    # otherwise default to the standard path separator (i.e. ":") - it is
17099    # assumed that no part of a normal pathname contains ";" but that should
17100    # okay in the real world where ";" in dirpaths is itself problematic.
17101    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17102    ;;
17103  *)
17104    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17105    ;;
17106  esac
17107  # Ok, now we have the path, separated by spaces, we can step through it
17108  # and add multilib dir if necessary...
17109  lt_tmp_lt_search_path_spec=
17110  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17111  # ...but if some path component already ends with the multilib dir we assume
17112  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17113  case "$lt_multi_os_dir; $lt_search_path_spec " in
17114  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17115    lt_multi_os_dir=
17116    ;;
17117  esac
17118  for lt_sys_path in $lt_search_path_spec; do
17119    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17120      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17121    elif test -n "$lt_multi_os_dir"; then
17122      test -d "$lt_sys_path" && \
17123	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17124    fi
17125  done
17126  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17127BEGIN {RS = " "; FS = "/|\n";} {
17128  lt_foo = "";
17129  lt_count = 0;
17130  for (lt_i = NF; lt_i > 0; lt_i--) {
17131    if ($lt_i != "" && $lt_i != ".") {
17132      if ($lt_i == "..") {
17133        lt_count++;
17134      } else {
17135        if (lt_count == 0) {
17136          lt_foo = "/" $lt_i lt_foo;
17137        } else {
17138          lt_count--;
17139        }
17140      }
17141    }
17142  }
17143  if (lt_foo != "") { lt_freq[lt_foo]++; }
17144  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17145}'`
17146  # AWK program above erroneously prepends '/' to C:/dos/paths
17147  # for these hosts.
17148  case $host_os in
17149    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17150      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17151  esac
17152  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17153else
17154  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17155fi
17156library_names_spec=
17157libname_spec='lib$name'
17158soname_spec=
17159shrext_cmds=.so
17160postinstall_cmds=
17161postuninstall_cmds=
17162finish_cmds=
17163finish_eval=
17164shlibpath_var=
17165shlibpath_overrides_runpath=unknown
17166version_type=none
17167dynamic_linker="$host_os ld.so"
17168sys_lib_dlsearch_path_spec="/lib /usr/lib"
17169need_lib_prefix=unknown
17170hardcode_into_libs=no
17171
17172# when you set need_version to no, make sure it does not cause -set_version
17173# flags to be left without arguments
17174need_version=unknown
17175
17176
17177
17178case $host_os in
17179aix3*)
17180  version_type=linux # correct to gnu/linux during the next big refactor
17181  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17182  shlibpath_var=LIBPATH
17183
17184  # AIX 3 has no versioning support, so we append a major version to the name.
17185  soname_spec='$libname$release$shared_ext$major'
17186  ;;
17187
17188aix[4-9]*)
17189  version_type=linux # correct to gnu/linux during the next big refactor
17190  need_lib_prefix=no
17191  need_version=no
17192  hardcode_into_libs=yes
17193  if test ia64 = "$host_cpu"; then
17194    # AIX 5 supports IA64
17195    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17196    shlibpath_var=LD_LIBRARY_PATH
17197  else
17198    # With GCC up to 2.95.x, collect2 would create an import file
17199    # for dependence libraries.  The import file would start with
17200    # the line '#! .'.  This would cause the generated library to
17201    # depend on '.', always an invalid library.  This was fixed in
17202    # development snapshots of GCC prior to 3.0.
17203    case $host_os in
17204      aix4 | aix4.[01] | aix4.[01].*)
17205      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17206	   echo ' yes '
17207	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17208	:
17209      else
17210	can_build_shared=no
17211      fi
17212      ;;
17213    esac
17214    # Using Import Files as archive members, it is possible to support
17215    # filename-based versioning of shared library archives on AIX. While
17216    # this would work for both with and without runtime linking, it will
17217    # prevent static linking of such archives. So we do filename-based
17218    # shared library versioning with .so extension only, which is used
17219    # when both runtime linking and shared linking is enabled.
17220    # Unfortunately, runtime linking may impact performance, so we do
17221    # not want this to be the default eventually. Also, we use the
17222    # versioned .so libs for executables only if there is the -brtl
17223    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17224    # To allow for filename-based versioning support, we need to create
17225    # libNAME.so.V as an archive file, containing:
17226    # *) an Import File, referring to the versioned filename of the
17227    #    archive as well as the shared archive member, telling the
17228    #    bitwidth (32 or 64) of that shared object, and providing the
17229    #    list of exported symbols of that shared object, eventually
17230    #    decorated with the 'weak' keyword
17231    # *) the shared object with the F_LOADONLY flag set, to really avoid
17232    #    it being seen by the linker.
17233    # At run time we better use the real file rather than another symlink,
17234    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17235
17236    case $with_aix_soname,$aix_use_runtimelinking in
17237    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17238    # soname into executable. Probably we can add versioning support to
17239    # collect2, so additional links can be useful in future.
17240    aix,yes) # traditional libtool
17241      dynamic_linker='AIX unversionable lib.so'
17242      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17243      # instead of lib<name>.a to let people know that these are not
17244      # typical AIX shared libraries.
17245      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17246      ;;
17247    aix,no) # traditional AIX only
17248      dynamic_linker='AIX lib.a(lib.so.V)'
17249      # We preserve .a as extension for shared libraries through AIX4.2
17250      # and later when we are not doing run time linking.
17251      library_names_spec='$libname$release.a $libname.a'
17252      soname_spec='$libname$release$shared_ext$major'
17253      ;;
17254    svr4,*) # full svr4 only
17255      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17256      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17257      # We do not specify a path in Import Files, so LIBPATH fires.
17258      shlibpath_overrides_runpath=yes
17259      ;;
17260    *,yes) # both, prefer svr4
17261      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17262      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17263      # unpreferred sharedlib libNAME.a needs extra handling
17264      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17265      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17266      # We do not specify a path in Import Files, so LIBPATH fires.
17267      shlibpath_overrides_runpath=yes
17268      ;;
17269    *,no) # both, prefer aix
17270      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17271      library_names_spec='$libname$release.a $libname.a'
17272      soname_spec='$libname$release$shared_ext$major'
17273      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17274      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17275      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17276      ;;
17277    esac
17278    shlibpath_var=LIBPATH
17279  fi
17280  ;;
17281
17282amigaos*)
17283  case $host_cpu in
17284  powerpc)
17285    # Since July 2007 AmigaOS4 officially supports .so libraries.
17286    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17287    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17288    ;;
17289  m68k)
17290    library_names_spec='$libname.ixlibrary $libname.a'
17291    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17292    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17293    ;;
17294  esac
17295  ;;
17296
17297beos*)
17298  library_names_spec='$libname$shared_ext'
17299  dynamic_linker="$host_os ld.so"
17300  shlibpath_var=LIBRARY_PATH
17301  ;;
17302
17303bsdi[45]*)
17304  version_type=linux # correct to gnu/linux during the next big refactor
17305  need_version=no
17306  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17307  soname_spec='$libname$release$shared_ext$major'
17308  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17309  shlibpath_var=LD_LIBRARY_PATH
17310  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17311  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17312  # the default ld.so.conf also contains /usr/contrib/lib and
17313  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17314  # libtool to hard-code these into programs
17315  ;;
17316
17317cygwin* | mingw* | pw32* | cegcc*)
17318  version_type=windows
17319  shrext_cmds=.dll
17320  need_version=no
17321  need_lib_prefix=no
17322
17323  case $GCC,$cc_basename in
17324  yes,*)
17325    # gcc
17326    library_names_spec='$libname.dll.a'
17327    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17328    postinstall_cmds='base_file=`basename \$file`~
17329      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17330      dldir=$destdir/`dirname \$dlpath`~
17331      test -d \$dldir || mkdir -p \$dldir~
17332      $install_prog $dir/$dlname \$dldir/$dlname~
17333      chmod a+x \$dldir/$dlname~
17334      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17335        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17336      fi'
17337    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17338      dlpath=$dir/\$dldll~
17339       $RM \$dlpath'
17340    shlibpath_overrides_runpath=yes
17341
17342    case $host_os in
17343    cygwin*)
17344      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17345      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17346
17347      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17348      ;;
17349    mingw* | cegcc*)
17350      # MinGW DLLs use traditional 'lib' prefix
17351      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17352      ;;
17353    pw32*)
17354      # pw32 DLLs use 'pw' prefix rather than 'lib'
17355      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17356      ;;
17357    esac
17358    dynamic_linker='Win32 ld.exe'
17359    ;;
17360
17361  *,cl*)
17362    # Native MSVC
17363    libname_spec='$name'
17364    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17365    library_names_spec='$libname.dll.lib'
17366
17367    case $build_os in
17368    mingw*)
17369      sys_lib_search_path_spec=
17370      lt_save_ifs=$IFS
17371      IFS=';'
17372      for lt_path in $LIB
17373      do
17374        IFS=$lt_save_ifs
17375        # Let DOS variable expansion print the short 8.3 style file name.
17376        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17377        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17378      done
17379      IFS=$lt_save_ifs
17380      # Convert to MSYS style.
17381      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17382      ;;
17383    cygwin*)
17384      # Convert to unix form, then to dos form, then back to unix form
17385      # but this time dos style (no spaces!) so that the unix form looks
17386      # like /cygdrive/c/PROGRA~1:/cygdr...
17387      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17388      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17389      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17390      ;;
17391    *)
17392      sys_lib_search_path_spec=$LIB
17393      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17394        # It is most probably a Windows format PATH.
17395        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17396      else
17397        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17398      fi
17399      # FIXME: find the short name or the path components, as spaces are
17400      # common. (e.g. "Program Files" -> "PROGRA~1")
17401      ;;
17402    esac
17403
17404    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17405    postinstall_cmds='base_file=`basename \$file`~
17406      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17407      dldir=$destdir/`dirname \$dlpath`~
17408      test -d \$dldir || mkdir -p \$dldir~
17409      $install_prog $dir/$dlname \$dldir/$dlname'
17410    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17411      dlpath=$dir/\$dldll~
17412       $RM \$dlpath'
17413    shlibpath_overrides_runpath=yes
17414    dynamic_linker='Win32 link.exe'
17415    ;;
17416
17417  *)
17418    # Assume MSVC wrapper
17419    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17420    dynamic_linker='Win32 ld.exe'
17421    ;;
17422  esac
17423  # FIXME: first we should search . and the directory the executable is in
17424  shlibpath_var=PATH
17425  ;;
17426
17427darwin* | rhapsody*)
17428  dynamic_linker="$host_os dyld"
17429  version_type=darwin
17430  need_lib_prefix=no
17431  need_version=no
17432  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17433  soname_spec='$libname$release$major$shared_ext'
17434  shlibpath_overrides_runpath=yes
17435  shlibpath_var=DYLD_LIBRARY_PATH
17436  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17437
17438  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17439  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17440  ;;
17441
17442dgux*)
17443  version_type=linux # correct to gnu/linux during the next big refactor
17444  need_lib_prefix=no
17445  need_version=no
17446  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17447  soname_spec='$libname$release$shared_ext$major'
17448  shlibpath_var=LD_LIBRARY_PATH
17449  ;;
17450
17451freebsd* | dragonfly*)
17452  # DragonFly does not have aout.  When/if they implement a new
17453  # versioning mechanism, adjust this.
17454  if test -x /usr/bin/objformat; then
17455    objformat=`/usr/bin/objformat`
17456  else
17457    case $host_os in
17458    freebsd[23].*) objformat=aout ;;
17459    *) objformat=elf ;;
17460    esac
17461  fi
17462  version_type=freebsd-$objformat
17463  case $version_type in
17464    freebsd-elf*)
17465      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17466      soname_spec='$libname$release$shared_ext$major'
17467      need_version=no
17468      need_lib_prefix=no
17469      ;;
17470    freebsd-*)
17471      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17472      need_version=yes
17473      ;;
17474  esac
17475  shlibpath_var=LD_LIBRARY_PATH
17476  case $host_os in
17477  freebsd2.*)
17478    shlibpath_overrides_runpath=yes
17479    ;;
17480  freebsd3.[01]* | freebsdelf3.[01]*)
17481    shlibpath_overrides_runpath=yes
17482    hardcode_into_libs=yes
17483    ;;
17484  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17485  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17486    shlibpath_overrides_runpath=no
17487    hardcode_into_libs=yes
17488    ;;
17489  *) # from 4.6 on, and DragonFly
17490    shlibpath_overrides_runpath=yes
17491    hardcode_into_libs=yes
17492    ;;
17493  esac
17494  ;;
17495
17496haiku*)
17497  version_type=linux # correct to gnu/linux during the next big refactor
17498  need_lib_prefix=no
17499  need_version=no
17500  dynamic_linker="$host_os runtime_loader"
17501  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17502  soname_spec='$libname$release$shared_ext$major'
17503  shlibpath_var=LIBRARY_PATH
17504  shlibpath_overrides_runpath=no
17505  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17506  hardcode_into_libs=yes
17507  ;;
17508
17509hpux9* | hpux10* | hpux11*)
17510  # Give a soname corresponding to the major version so that dld.sl refuses to
17511  # link against other versions.
17512  version_type=sunos
17513  need_lib_prefix=no
17514  need_version=no
17515  case $host_cpu in
17516  ia64*)
17517    shrext_cmds='.so'
17518    hardcode_into_libs=yes
17519    dynamic_linker="$host_os dld.so"
17520    shlibpath_var=LD_LIBRARY_PATH
17521    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17522    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17523    soname_spec='$libname$release$shared_ext$major'
17524    if test 32 = "$HPUX_IA64_MODE"; then
17525      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17526      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17527    else
17528      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17529      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17530    fi
17531    ;;
17532  hppa*64*)
17533    shrext_cmds='.sl'
17534    hardcode_into_libs=yes
17535    dynamic_linker="$host_os dld.sl"
17536    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17537    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17538    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17539    soname_spec='$libname$release$shared_ext$major'
17540    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17541    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17542    ;;
17543  *)
17544    shrext_cmds='.sl'
17545    dynamic_linker="$host_os dld.sl"
17546    shlibpath_var=SHLIB_PATH
17547    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17548    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17549    soname_spec='$libname$release$shared_ext$major'
17550    ;;
17551  esac
17552  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17553  postinstall_cmds='chmod 555 $lib'
17554  # or fails outright, so override atomically:
17555  install_override_mode=555
17556  ;;
17557
17558interix[3-9]*)
17559  version_type=linux # correct to gnu/linux during the next big refactor
17560  need_lib_prefix=no
17561  need_version=no
17562  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17563  soname_spec='$libname$release$shared_ext$major'
17564  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17565  shlibpath_var=LD_LIBRARY_PATH
17566  shlibpath_overrides_runpath=no
17567  hardcode_into_libs=yes
17568  ;;
17569
17570irix5* | irix6* | nonstopux*)
17571  case $host_os in
17572    nonstopux*) version_type=nonstopux ;;
17573    *)
17574	if test yes = "$lt_cv_prog_gnu_ld"; then
17575		version_type=linux # correct to gnu/linux during the next big refactor
17576	else
17577		version_type=irix
17578	fi ;;
17579  esac
17580  need_lib_prefix=no
17581  need_version=no
17582  soname_spec='$libname$release$shared_ext$major'
17583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17584  case $host_os in
17585  irix5* | nonstopux*)
17586    libsuff= shlibsuff=
17587    ;;
17588  *)
17589    case $LD in # libtool.m4 will add one of these switches to LD
17590    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17591      libsuff= shlibsuff= libmagic=32-bit;;
17592    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17593      libsuff=32 shlibsuff=N32 libmagic=N32;;
17594    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17595      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17596    *) libsuff= shlibsuff= libmagic=never-match;;
17597    esac
17598    ;;
17599  esac
17600  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17601  shlibpath_overrides_runpath=no
17602  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17603  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17604  hardcode_into_libs=yes
17605  ;;
17606
17607# No shared lib support for Linux oldld, aout, or coff.
17608linux*oldld* | linux*aout* | linux*coff*)
17609  dynamic_linker=no
17610  ;;
17611
17612linux*android*)
17613  version_type=none # Android doesn't support versioned libraries.
17614  need_lib_prefix=no
17615  need_version=no
17616  library_names_spec='$libname$release$shared_ext'
17617  soname_spec='$libname$release$shared_ext'
17618  finish_cmds=
17619  shlibpath_var=LD_LIBRARY_PATH
17620  shlibpath_overrides_runpath=yes
17621
17622  # This implies no fast_install, which is unacceptable.
17623  # Some rework will be needed to allow for fast_install
17624  # before this can be enabled.
17625  hardcode_into_libs=yes
17626
17627  dynamic_linker='Android linker'
17628  # Don't embed -rpath directories since the linker doesn't support them.
17629  hardcode_libdir_flag_spec='-L$libdir'
17630  ;;
17631
17632# This must be glibc/ELF.
17633linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17634  version_type=linux # correct to gnu/linux during the next big refactor
17635  need_lib_prefix=no
17636  need_version=no
17637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17638  soname_spec='$libname$release$shared_ext$major'
17639  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17640  shlibpath_var=LD_LIBRARY_PATH
17641  shlibpath_overrides_runpath=no
17642
17643  # Some binutils ld are patched to set DT_RUNPATH
17644  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17645  $as_echo_n "(cached) " >&6
17646else
17647  lt_cv_shlibpath_overrides_runpath=no
17648    save_LDFLAGS=$LDFLAGS
17649    save_libdir=$libdir
17650    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17651	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17652    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h.  */
17654
17655int
17656main ()
17657{
17658
17659  ;
17660  return 0;
17661}
17662_ACEOF
17663if ac_fn_c_try_link "$LINENO"; then :
17664  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17665  lt_cv_shlibpath_overrides_runpath=yes
17666fi
17667fi
17668rm -f core conftest.err conftest.$ac_objext \
17669    conftest$ac_exeext conftest.$ac_ext
17670    LDFLAGS=$save_LDFLAGS
17671    libdir=$save_libdir
17672
17673fi
17674
17675  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17676
17677  # This implies no fast_install, which is unacceptable.
17678  # Some rework will be needed to allow for fast_install
17679  # before this can be enabled.
17680  hardcode_into_libs=yes
17681
17682  # Ideally, we could use ldconfig to report *all* directores which are
17683  # searched for libraries, however this is still not possible.  Aside from not
17684  # being certain /sbin/ldconfig is available, command
17685  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17686  # even though it is searched at run-time.  Try to do the best guess by
17687  # appending ld.so.conf contents (and includes) to the search path.
17688  if test -f /etc/ld.so.conf; then
17689    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' ' '`
17690    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17691  fi
17692
17693  # We used to test for /lib/ld.so.1 and disable shared libraries on
17694  # powerpc, because MkLinux only supported shared libraries with the
17695  # GNU dynamic linker.  Since this was broken with cross compilers,
17696  # most powerpc-linux boxes support dynamic linking these days and
17697  # people can always --disable-shared, the test was removed, and we
17698  # assume the GNU/Linux dynamic linker is in use.
17699  dynamic_linker='GNU/Linux ld.so'
17700  ;;
17701
17702netbsdelf*-gnu)
17703  version_type=linux
17704  need_lib_prefix=no
17705  need_version=no
17706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17707  soname_spec='${libname}${release}${shared_ext}$major'
17708  shlibpath_var=LD_LIBRARY_PATH
17709  shlibpath_overrides_runpath=no
17710  hardcode_into_libs=yes
17711  dynamic_linker='NetBSD ld.elf_so'
17712  ;;
17713
17714netbsd*)
17715  version_type=sunos
17716  need_lib_prefix=no
17717  need_version=no
17718  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17719    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17720    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17721    dynamic_linker='NetBSD (a.out) ld.so'
17722  else
17723    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17724    soname_spec='$libname$release$shared_ext$major'
17725    dynamic_linker='NetBSD ld.elf_so'
17726  fi
17727  shlibpath_var=LD_LIBRARY_PATH
17728  shlibpath_overrides_runpath=yes
17729  hardcode_into_libs=yes
17730  ;;
17731
17732newsos6)
17733  version_type=linux # correct to gnu/linux during the next big refactor
17734  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17735  shlibpath_var=LD_LIBRARY_PATH
17736  shlibpath_overrides_runpath=yes
17737  ;;
17738
17739*nto* | *qnx*)
17740  version_type=qnx
17741  need_lib_prefix=no
17742  need_version=no
17743  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17744  soname_spec='$libname$release$shared_ext$major'
17745  shlibpath_var=LD_LIBRARY_PATH
17746  shlibpath_overrides_runpath=no
17747  hardcode_into_libs=yes
17748  dynamic_linker='ldqnx.so'
17749  ;;
17750
17751openbsd* | bitrig*)
17752  version_type=sunos
17753  sys_lib_dlsearch_path_spec=/usr/lib
17754  need_lib_prefix=no
17755  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17756    need_version=no
17757  else
17758    need_version=yes
17759  fi
17760  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17761  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17762  shlibpath_var=LD_LIBRARY_PATH
17763  shlibpath_overrides_runpath=yes
17764  ;;
17765
17766os2*)
17767  libname_spec='$name'
17768  version_type=windows
17769  shrext_cmds=.dll
17770  need_version=no
17771  need_lib_prefix=no
17772  # OS/2 can only load a DLL with a base name of 8 characters or less.
17773  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17774    v=$($ECHO $release$versuffix | tr -d .-);
17775    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17776    $ECHO $n$v`$shared_ext'
17777  library_names_spec='${libname}_dll.$libext'
17778  dynamic_linker='OS/2 ld.exe'
17779  shlibpath_var=BEGINLIBPATH
17780  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17781  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17782  postinstall_cmds='base_file=`basename \$file`~
17783    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17784    dldir=$destdir/`dirname \$dlpath`~
17785    test -d \$dldir || mkdir -p \$dldir~
17786    $install_prog $dir/$dlname \$dldir/$dlname~
17787    chmod a+x \$dldir/$dlname~
17788    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17789      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17790    fi'
17791  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17792    dlpath=$dir/\$dldll~
17793    $RM \$dlpath'
17794  ;;
17795
17796osf3* | osf4* | osf5*)
17797  version_type=osf
17798  need_lib_prefix=no
17799  need_version=no
17800  soname_spec='$libname$release$shared_ext$major'
17801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17802  shlibpath_var=LD_LIBRARY_PATH
17803  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17804  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17805  ;;
17806
17807rdos*)
17808  dynamic_linker=no
17809  ;;
17810
17811solaris*)
17812  version_type=linux # correct to gnu/linux during the next big refactor
17813  need_lib_prefix=no
17814  need_version=no
17815  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17816  soname_spec='$libname$release$shared_ext$major'
17817  shlibpath_var=LD_LIBRARY_PATH
17818  shlibpath_overrides_runpath=yes
17819  hardcode_into_libs=yes
17820  # ldd complains unless libraries are executable
17821  postinstall_cmds='chmod +x $lib'
17822  ;;
17823
17824sunos4*)
17825  version_type=sunos
17826  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17827  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17828  shlibpath_var=LD_LIBRARY_PATH
17829  shlibpath_overrides_runpath=yes
17830  if test yes = "$with_gnu_ld"; then
17831    need_lib_prefix=no
17832  fi
17833  need_version=yes
17834  ;;
17835
17836sysv4 | sysv4.3*)
17837  version_type=linux # correct to gnu/linux during the next big refactor
17838  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17839  soname_spec='$libname$release$shared_ext$major'
17840  shlibpath_var=LD_LIBRARY_PATH
17841  case $host_vendor in
17842    sni)
17843      shlibpath_overrides_runpath=no
17844      need_lib_prefix=no
17845      runpath_var=LD_RUN_PATH
17846      ;;
17847    siemens)
17848      need_lib_prefix=no
17849      ;;
17850    motorola)
17851      need_lib_prefix=no
17852      need_version=no
17853      shlibpath_overrides_runpath=no
17854      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17855      ;;
17856  esac
17857  ;;
17858
17859sysv4*MP*)
17860  if test -d /usr/nec; then
17861    version_type=linux # correct to gnu/linux during the next big refactor
17862    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17863    soname_spec='$libname$shared_ext.$major'
17864    shlibpath_var=LD_LIBRARY_PATH
17865  fi
17866  ;;
17867
17868sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17869  version_type=sco
17870  need_lib_prefix=no
17871  need_version=no
17872  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17873  soname_spec='$libname$release$shared_ext$major'
17874  shlibpath_var=LD_LIBRARY_PATH
17875  shlibpath_overrides_runpath=yes
17876  hardcode_into_libs=yes
17877  if test yes = "$with_gnu_ld"; then
17878    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17879  else
17880    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17881    case $host_os in
17882      sco3.2v5*)
17883        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17884	;;
17885    esac
17886  fi
17887  sys_lib_dlsearch_path_spec='/usr/lib'
17888  ;;
17889
17890tpf*)
17891  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17892  version_type=linux # correct to gnu/linux during the next big refactor
17893  need_lib_prefix=no
17894  need_version=no
17895  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17896  shlibpath_var=LD_LIBRARY_PATH
17897  shlibpath_overrides_runpath=no
17898  hardcode_into_libs=yes
17899  ;;
17900
17901uts4*)
17902  version_type=linux # correct to gnu/linux during the next big refactor
17903  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17904  soname_spec='$libname$release$shared_ext$major'
17905  shlibpath_var=LD_LIBRARY_PATH
17906  ;;
17907
17908*)
17909  dynamic_linker=no
17910  ;;
17911esac
17912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17913$as_echo "$dynamic_linker" >&6; }
17914test no = "$dynamic_linker" && can_build_shared=no
17915
17916variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17917if test yes = "$GCC"; then
17918  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17919fi
17920
17921if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17922  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17923fi
17924
17925if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17926  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17927fi
17928
17929# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17930configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17931
17932# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17933func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17934
17935# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17936configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18035$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18036hardcode_action=
18037if test -n "$hardcode_libdir_flag_spec" ||
18038   test -n "$runpath_var" ||
18039   test yes = "$hardcode_automatic"; then
18040
18041  # We can hardcode non-existent directories.
18042  if test no != "$hardcode_direct" &&
18043     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18044     # have to relink, otherwise we might link with an installed library
18045     # when we should be linking with a yet-to-be-installed one
18046     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18047     test no != "$hardcode_minus_L"; then
18048    # Linking always hardcodes the temporary library directory.
18049    hardcode_action=relink
18050  else
18051    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18052    hardcode_action=immediate
18053  fi
18054else
18055  # We cannot hardcode anything, or else we can only hardcode existing
18056  # directories.
18057  hardcode_action=unsupported
18058fi
18059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18060$as_echo "$hardcode_action" >&6; }
18061
18062if test relink = "$hardcode_action" ||
18063   test yes = "$inherit_rpath"; then
18064  # Fast installation is not supported
18065  enable_fast_install=no
18066elif test yes = "$shlibpath_overrides_runpath" ||
18067     test no = "$enable_shared"; then
18068  # Fast installation is not necessary
18069  enable_fast_install=needless
18070fi
18071
18072
18073
18074
18075
18076
18077  if test yes != "$enable_dlopen"; then
18078  enable_dlopen=unknown
18079  enable_dlopen_self=unknown
18080  enable_dlopen_self_static=unknown
18081else
18082  lt_cv_dlopen=no
18083  lt_cv_dlopen_libs=
18084
18085  case $host_os in
18086  beos*)
18087    lt_cv_dlopen=load_add_on
18088    lt_cv_dlopen_libs=
18089    lt_cv_dlopen_self=yes
18090    ;;
18091
18092  mingw* | pw32* | cegcc*)
18093    lt_cv_dlopen=LoadLibrary
18094    lt_cv_dlopen_libs=
18095    ;;
18096
18097  cygwin*)
18098    lt_cv_dlopen=dlopen
18099    lt_cv_dlopen_libs=
18100    ;;
18101
18102  darwin*)
18103    # if libdl is installed we need to link against it
18104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18105$as_echo_n "checking for dlopen in -ldl... " >&6; }
18106if ${ac_cv_lib_dl_dlopen+:} false; then :
18107  $as_echo_n "(cached) " >&6
18108else
18109  ac_check_lib_save_LIBS=$LIBS
18110LIBS="-ldl  $LIBS"
18111cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18112/* end confdefs.h.  */
18113
18114/* Override any GCC internal prototype to avoid an error.
18115   Use char because int might match the return type of a GCC
18116   builtin and then its argument prototype would still apply.  */
18117#ifdef __cplusplus
18118extern "C"
18119#endif
18120char dlopen ();
18121int
18122main ()
18123{
18124return dlopen ();
18125  ;
18126  return 0;
18127}
18128_ACEOF
18129if ac_fn_c_try_link "$LINENO"; then :
18130  ac_cv_lib_dl_dlopen=yes
18131else
18132  ac_cv_lib_dl_dlopen=no
18133fi
18134rm -f core conftest.err conftest.$ac_objext \
18135    conftest$ac_exeext conftest.$ac_ext
18136LIBS=$ac_check_lib_save_LIBS
18137fi
18138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18139$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18140if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18141  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18142else
18143
18144    lt_cv_dlopen=dyld
18145    lt_cv_dlopen_libs=
18146    lt_cv_dlopen_self=yes
18147
18148fi
18149
18150    ;;
18151
18152  tpf*)
18153    # Don't try to run any link tests for TPF.  We know it's impossible
18154    # because TPF is a cross-compiler, and we know how we open DSOs.
18155    lt_cv_dlopen=dlopen
18156    lt_cv_dlopen_libs=
18157    lt_cv_dlopen_self=no
18158    ;;
18159
18160  *)
18161    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18162if test "x$ac_cv_func_shl_load" = xyes; then :
18163  lt_cv_dlopen=shl_load
18164else
18165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18166$as_echo_n "checking for shl_load in -ldld... " >&6; }
18167if ${ac_cv_lib_dld_shl_load+:} false; then :
18168  $as_echo_n "(cached) " >&6
18169else
18170  ac_check_lib_save_LIBS=$LIBS
18171LIBS="-ldld  $LIBS"
18172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18173/* end confdefs.h.  */
18174
18175/* Override any GCC internal prototype to avoid an error.
18176   Use char because int might match the return type of a GCC
18177   builtin and then its argument prototype would still apply.  */
18178#ifdef __cplusplus
18179extern "C"
18180#endif
18181char shl_load ();
18182int
18183main ()
18184{
18185return shl_load ();
18186  ;
18187  return 0;
18188}
18189_ACEOF
18190if ac_fn_c_try_link "$LINENO"; then :
18191  ac_cv_lib_dld_shl_load=yes
18192else
18193  ac_cv_lib_dld_shl_load=no
18194fi
18195rm -f core conftest.err conftest.$ac_objext \
18196    conftest$ac_exeext conftest.$ac_ext
18197LIBS=$ac_check_lib_save_LIBS
18198fi
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18200$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18201if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18202  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18203else
18204  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18205if test "x$ac_cv_func_dlopen" = xyes; then :
18206  lt_cv_dlopen=dlopen
18207else
18208  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18209$as_echo_n "checking for dlopen in -ldl... " >&6; }
18210if ${ac_cv_lib_dl_dlopen+:} false; then :
18211  $as_echo_n "(cached) " >&6
18212else
18213  ac_check_lib_save_LIBS=$LIBS
18214LIBS="-ldl  $LIBS"
18215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217
18218/* Override any GCC internal prototype to avoid an error.
18219   Use char because int might match the return type of a GCC
18220   builtin and then its argument prototype would still apply.  */
18221#ifdef __cplusplus
18222extern "C"
18223#endif
18224char dlopen ();
18225int
18226main ()
18227{
18228return dlopen ();
18229  ;
18230  return 0;
18231}
18232_ACEOF
18233if ac_fn_c_try_link "$LINENO"; then :
18234  ac_cv_lib_dl_dlopen=yes
18235else
18236  ac_cv_lib_dl_dlopen=no
18237fi
18238rm -f core conftest.err conftest.$ac_objext \
18239    conftest$ac_exeext conftest.$ac_ext
18240LIBS=$ac_check_lib_save_LIBS
18241fi
18242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18243$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18244if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18245  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18246else
18247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18248$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18249if ${ac_cv_lib_svld_dlopen+:} false; then :
18250  $as_echo_n "(cached) " >&6
18251else
18252  ac_check_lib_save_LIBS=$LIBS
18253LIBS="-lsvld  $LIBS"
18254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255/* end confdefs.h.  */
18256
18257/* Override any GCC internal prototype to avoid an error.
18258   Use char because int might match the return type of a GCC
18259   builtin and then its argument prototype would still apply.  */
18260#ifdef __cplusplus
18261extern "C"
18262#endif
18263char dlopen ();
18264int
18265main ()
18266{
18267return dlopen ();
18268  ;
18269  return 0;
18270}
18271_ACEOF
18272if ac_fn_c_try_link "$LINENO"; then :
18273  ac_cv_lib_svld_dlopen=yes
18274else
18275  ac_cv_lib_svld_dlopen=no
18276fi
18277rm -f core conftest.err conftest.$ac_objext \
18278    conftest$ac_exeext conftest.$ac_ext
18279LIBS=$ac_check_lib_save_LIBS
18280fi
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18282$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18283if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18284  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18285else
18286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18287$as_echo_n "checking for dld_link in -ldld... " >&6; }
18288if ${ac_cv_lib_dld_dld_link+:} false; then :
18289  $as_echo_n "(cached) " >&6
18290else
18291  ac_check_lib_save_LIBS=$LIBS
18292LIBS="-ldld  $LIBS"
18293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294/* end confdefs.h.  */
18295
18296/* Override any GCC internal prototype to avoid an error.
18297   Use char because int might match the return type of a GCC
18298   builtin and then its argument prototype would still apply.  */
18299#ifdef __cplusplus
18300extern "C"
18301#endif
18302char dld_link ();
18303int
18304main ()
18305{
18306return dld_link ();
18307  ;
18308  return 0;
18309}
18310_ACEOF
18311if ac_fn_c_try_link "$LINENO"; then :
18312  ac_cv_lib_dld_dld_link=yes
18313else
18314  ac_cv_lib_dld_dld_link=no
18315fi
18316rm -f core conftest.err conftest.$ac_objext \
18317    conftest$ac_exeext conftest.$ac_ext
18318LIBS=$ac_check_lib_save_LIBS
18319fi
18320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18321$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18322if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18323  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18324fi
18325
18326
18327fi
18328
18329
18330fi
18331
18332
18333fi
18334
18335
18336fi
18337
18338
18339fi
18340
18341    ;;
18342  esac
18343
18344  if test no = "$lt_cv_dlopen"; then
18345    enable_dlopen=no
18346  else
18347    enable_dlopen=yes
18348  fi
18349
18350  case $lt_cv_dlopen in
18351  dlopen)
18352    save_CPPFLAGS=$CPPFLAGS
18353    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18354
18355    save_LDFLAGS=$LDFLAGS
18356    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18357
18358    save_LIBS=$LIBS
18359    LIBS="$lt_cv_dlopen_libs $LIBS"
18360
18361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18362$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18363if ${lt_cv_dlopen_self+:} false; then :
18364  $as_echo_n "(cached) " >&6
18365else
18366  	  if test yes = "$cross_compiling"; then :
18367  lt_cv_dlopen_self=cross
18368else
18369  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18370  lt_status=$lt_dlunknown
18371  cat > conftest.$ac_ext <<_LT_EOF
18372#line $LINENO "configure"
18373#include "confdefs.h"
18374
18375#if HAVE_DLFCN_H
18376#include <dlfcn.h>
18377#endif
18378
18379#include <stdio.h>
18380
18381#ifdef RTLD_GLOBAL
18382#  define LT_DLGLOBAL		RTLD_GLOBAL
18383#else
18384#  ifdef DL_GLOBAL
18385#    define LT_DLGLOBAL		DL_GLOBAL
18386#  else
18387#    define LT_DLGLOBAL		0
18388#  endif
18389#endif
18390
18391/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18392   find out it does not work in some platform. */
18393#ifndef LT_DLLAZY_OR_NOW
18394#  ifdef RTLD_LAZY
18395#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18396#  else
18397#    ifdef DL_LAZY
18398#      define LT_DLLAZY_OR_NOW		DL_LAZY
18399#    else
18400#      ifdef RTLD_NOW
18401#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18402#      else
18403#        ifdef DL_NOW
18404#          define LT_DLLAZY_OR_NOW	DL_NOW
18405#        else
18406#          define LT_DLLAZY_OR_NOW	0
18407#        endif
18408#      endif
18409#    endif
18410#  endif
18411#endif
18412
18413/* When -fvisibility=hidden is used, assume the code has been annotated
18414   correspondingly for the symbols needed.  */
18415#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18416int fnord () __attribute__((visibility("default")));
18417#endif
18418
18419int fnord () { return 42; }
18420int main ()
18421{
18422  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18423  int status = $lt_dlunknown;
18424
18425  if (self)
18426    {
18427      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18428      else
18429        {
18430	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18431          else puts (dlerror ());
18432	}
18433      /* dlclose (self); */
18434    }
18435  else
18436    puts (dlerror ());
18437
18438  return status;
18439}
18440_LT_EOF
18441  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18442  (eval $ac_link) 2>&5
18443  ac_status=$?
18444  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18445  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18446    (./conftest; exit; ) >&5 2>/dev/null
18447    lt_status=$?
18448    case x$lt_status in
18449      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18450      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18451      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18452    esac
18453  else :
18454    # compilation failed
18455    lt_cv_dlopen_self=no
18456  fi
18457fi
18458rm -fr conftest*
18459
18460
18461fi
18462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18463$as_echo "$lt_cv_dlopen_self" >&6; }
18464
18465    if test yes = "$lt_cv_dlopen_self"; then
18466      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18467      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18468$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18469if ${lt_cv_dlopen_self_static+:} false; then :
18470  $as_echo_n "(cached) " >&6
18471else
18472  	  if test yes = "$cross_compiling"; then :
18473  lt_cv_dlopen_self_static=cross
18474else
18475  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18476  lt_status=$lt_dlunknown
18477  cat > conftest.$ac_ext <<_LT_EOF
18478#line $LINENO "configure"
18479#include "confdefs.h"
18480
18481#if HAVE_DLFCN_H
18482#include <dlfcn.h>
18483#endif
18484
18485#include <stdio.h>
18486
18487#ifdef RTLD_GLOBAL
18488#  define LT_DLGLOBAL		RTLD_GLOBAL
18489#else
18490#  ifdef DL_GLOBAL
18491#    define LT_DLGLOBAL		DL_GLOBAL
18492#  else
18493#    define LT_DLGLOBAL		0
18494#  endif
18495#endif
18496
18497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18498   find out it does not work in some platform. */
18499#ifndef LT_DLLAZY_OR_NOW
18500#  ifdef RTLD_LAZY
18501#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18502#  else
18503#    ifdef DL_LAZY
18504#      define LT_DLLAZY_OR_NOW		DL_LAZY
18505#    else
18506#      ifdef RTLD_NOW
18507#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18508#      else
18509#        ifdef DL_NOW
18510#          define LT_DLLAZY_OR_NOW	DL_NOW
18511#        else
18512#          define LT_DLLAZY_OR_NOW	0
18513#        endif
18514#      endif
18515#    endif
18516#  endif
18517#endif
18518
18519/* When -fvisibility=hidden is used, assume the code has been annotated
18520   correspondingly for the symbols needed.  */
18521#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18522int fnord () __attribute__((visibility("default")));
18523#endif
18524
18525int fnord () { return 42; }
18526int main ()
18527{
18528  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18529  int status = $lt_dlunknown;
18530
18531  if (self)
18532    {
18533      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18534      else
18535        {
18536	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18537          else puts (dlerror ());
18538	}
18539      /* dlclose (self); */
18540    }
18541  else
18542    puts (dlerror ());
18543
18544  return status;
18545}
18546_LT_EOF
18547  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18548  (eval $ac_link) 2>&5
18549  ac_status=$?
18550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18552    (./conftest; exit; ) >&5 2>/dev/null
18553    lt_status=$?
18554    case x$lt_status in
18555      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18556      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18557      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18558    esac
18559  else :
18560    # compilation failed
18561    lt_cv_dlopen_self_static=no
18562  fi
18563fi
18564rm -fr conftest*
18565
18566
18567fi
18568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18569$as_echo "$lt_cv_dlopen_self_static" >&6; }
18570    fi
18571
18572    CPPFLAGS=$save_CPPFLAGS
18573    LDFLAGS=$save_LDFLAGS
18574    LIBS=$save_LIBS
18575    ;;
18576  esac
18577
18578  case $lt_cv_dlopen_self in
18579  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18580  *) enable_dlopen_self=unknown ;;
18581  esac
18582
18583  case $lt_cv_dlopen_self_static in
18584  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18585  *) enable_dlopen_self_static=unknown ;;
18586  esac
18587fi
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605striplib=
18606old_striplib=
18607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18608$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18609if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18610  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18611  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18613$as_echo "yes" >&6; }
18614else
18615# FIXME - insert some real tests, host_os isn't really good enough
18616  case $host_os in
18617  darwin*)
18618    if test -n "$STRIP"; then
18619      striplib="$STRIP -x"
18620      old_striplib="$STRIP -S"
18621      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18622$as_echo "yes" >&6; }
18623    else
18624      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18625$as_echo "no" >&6; }
18626    fi
18627    ;;
18628  *)
18629    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18630$as_echo "no" >&6; }
18631    ;;
18632  esac
18633fi
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646  # Report what library types will actually be built
18647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18648$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18650$as_echo "$can_build_shared" >&6; }
18651
18652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18653$as_echo_n "checking whether to build shared libraries... " >&6; }
18654  test no = "$can_build_shared" && enable_shared=no
18655
18656  # On AIX, shared libraries and static libraries use the same namespace, and
18657  # are all built from PIC.
18658  case $host_os in
18659  aix3*)
18660    test yes = "$enable_shared" && enable_static=no
18661    if test -n "$RANLIB"; then
18662      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18663      postinstall_cmds='$RANLIB $lib'
18664    fi
18665    ;;
18666
18667  aix[4-9]*)
18668    if test ia64 != "$host_cpu"; then
18669      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18670      yes,aix,yes) ;;			# shared object as lib.so file only
18671      yes,svr4,*) ;;			# shared object as lib.so archive member only
18672      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18673      esac
18674    fi
18675    ;;
18676  esac
18677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18678$as_echo "$enable_shared" >&6; }
18679
18680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18681$as_echo_n "checking whether to build static libraries... " >&6; }
18682  # Make sure either enable_shared or enable_static is yes.
18683  test yes = "$enable_shared" || enable_static=yes
18684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18685$as_echo "$enable_static" >&6; }
18686
18687
18688
18689
18690fi
18691ac_ext=c
18692ac_cpp='$CPP $CPPFLAGS'
18693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18695ac_compiler_gnu=$ac_cv_c_compiler_gnu
18696
18697CC=$lt_save_CC
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713        ac_config_commands="$ac_config_commands libtool"
18714
18715
18716
18717
18718# Only expand once:
18719
18720
18721
18722# Checks for programs.
18723
18724
18725if test "x$GCC" = "xyes"; then
18726	CPPFLAGS="$CPPFLAGS -Wall"
18727fi
18728
18729
18730
18731# Define a configure option for an alternate module directory
18732
18733# Check whether --with-xorg-module-dir was given.
18734if test "${with_xorg_module_dir+set}" = set; then :
18735  withval=$with_xorg_module_dir; moduledir="$withval"
18736else
18737  moduledir="$libdir/xorg/modules"
18738fi
18739
18740
18741# Store the list of server defined optional extensions in REQUIRED_MODULES
18742
18743
18744	SAVE_CFLAGS="$CFLAGS"
18745	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18746	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18747/* end confdefs.h.  */
18748
18749#include "xorg-server.h"
18750#if !defined RANDR
18751#error RANDR not defined
18752#endif
18753
18754int
18755main ()
18756{
18757
18758  ;
18759  return 0;
18760}
18761_ACEOF
18762if ac_fn_c_try_compile "$LINENO"; then :
18763  _EXT_CHECK=yes
18764else
18765  _EXT_CHECK=no
18766fi
18767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768	CFLAGS="$SAVE_CFLAGS"
18769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18770$as_echo_n "checking if RANDR is defined... " >&6; }
18771	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18772$as_echo "$_EXT_CHECK" >&6; }
18773	if test "$_EXT_CHECK" != no; then
18774		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18775	fi
18776
18777
18778
18779	SAVE_CFLAGS="$CFLAGS"
18780	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18781	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18782/* end confdefs.h.  */
18783
18784#include "xorg-server.h"
18785#if !defined RENDER
18786#error RENDER not defined
18787#endif
18788
18789int
18790main ()
18791{
18792
18793  ;
18794  return 0;
18795}
18796_ACEOF
18797if ac_fn_c_try_compile "$LINENO"; then :
18798  _EXT_CHECK=yes
18799else
18800  _EXT_CHECK=no
18801fi
18802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18803	CFLAGS="$SAVE_CFLAGS"
18804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18805$as_echo_n "checking if RENDER is defined... " >&6; }
18806	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18807$as_echo "$_EXT_CHECK" >&6; }
18808	if test "$_EXT_CHECK" != no; then
18809		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18810	fi
18811
18812
18813
18814	SAVE_CFLAGS="$CFLAGS"
18815	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18816	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817/* end confdefs.h.  */
18818
18819#include "xorg-server.h"
18820#if !defined XV
18821#error XV not defined
18822#endif
18823
18824int
18825main ()
18826{
18827
18828  ;
18829  return 0;
18830}
18831_ACEOF
18832if ac_fn_c_try_compile "$LINENO"; then :
18833  _EXT_CHECK=yes
18834else
18835  _EXT_CHECK=no
18836fi
18837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18838	CFLAGS="$SAVE_CFLAGS"
18839	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18840$as_echo_n "checking if XV is defined... " >&6; }
18841	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18842$as_echo "$_EXT_CHECK" >&6; }
18843	if test "$_EXT_CHECK" != no; then
18844		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18845	fi
18846
18847
18848
18849	SAVE_CFLAGS="$CFLAGS"
18850	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18851	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853
18854#include "xorg-server.h"
18855#if !defined DPMSExtension
18856#error DPMSExtension not defined
18857#endif
18858
18859int
18860main ()
18861{
18862
18863  ;
18864  return 0;
18865}
18866_ACEOF
18867if ac_fn_c_try_compile "$LINENO"; then :
18868  _EXT_CHECK=yes
18869else
18870  _EXT_CHECK=no
18871fi
18872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873	CFLAGS="$SAVE_CFLAGS"
18874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18875$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18876	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18877$as_echo "$_EXT_CHECK" >&6; }
18878	if test "$_EXT_CHECK" != no; then
18879		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18880	fi
18881
18882
18883# Checks for libraries.
18884
18885pkg_failed=no
18886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18887$as_echo_n "checking for LIBDRM... " >&6; }
18888
18889if test -n "$LIBDRM_CFLAGS"; then
18890    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18891 elif test -n "$PKG_CONFIG"; then
18892    if test -n "$PKG_CONFIG" && \
18893    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
18894  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
18895  ac_status=$?
18896  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18897  test $ac_status = 0; }; then
18898  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.60" 2>/dev/null`
18899		      test "x$?" != "x0" && pkg_failed=yes
18900else
18901  pkg_failed=yes
18902fi
18903 else
18904    pkg_failed=untried
18905fi
18906if test -n "$LIBDRM_LIBS"; then
18907    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18908 elif test -n "$PKG_CONFIG"; then
18909    if test -n "$PKG_CONFIG" && \
18910    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.60\""; } >&5
18911  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.60") 2>&5
18912  ac_status=$?
18913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18914  test $ac_status = 0; }; then
18915  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.60" 2>/dev/null`
18916		      test "x$?" != "x0" && pkg_failed=yes
18917else
18918  pkg_failed=yes
18919fi
18920 else
18921    pkg_failed=untried
18922fi
18923
18924
18925
18926if test $pkg_failed = yes; then
18927   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18928$as_echo "no" >&6; }
18929
18930if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18931        _pkg_short_errors_supported=yes
18932else
18933        _pkg_short_errors_supported=no
18934fi
18935        if test $_pkg_short_errors_supported = yes; then
18936	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
18937        else
18938	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.4.60" 2>&1`
18939        fi
18940	# Put the nasty error message in config.log where it belongs
18941	echo "$LIBDRM_PKG_ERRORS" >&5
18942
18943	as_fn_error $? "Package requirements (libdrm >= 2.4.60) were not met:
18944
18945$LIBDRM_PKG_ERRORS
18946
18947Consider adjusting the PKG_CONFIG_PATH environment variable if you
18948installed software in a non-standard prefix.
18949
18950Alternatively, you may set the environment variables LIBDRM_CFLAGS
18951and LIBDRM_LIBS to avoid the need to call pkg-config.
18952See the pkg-config man page for more details." "$LINENO" 5
18953elif test $pkg_failed = untried; then
18954     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18955$as_echo "no" >&6; }
18956	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18957$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18958as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18959is in your PATH or set the PKG_CONFIG environment variable to the full
18960path to pkg-config.
18961
18962Alternatively, you may set the environment variables LIBDRM_CFLAGS
18963and LIBDRM_LIBS to avoid the need to call pkg-config.
18964See the pkg-config man page for more details.
18965
18966To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18967See \`config.log' for more details" "$LINENO" 5; }
18968else
18969	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18970	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18971        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18972$as_echo "yes" >&6; }
18973
18974fi
18975
18976pkg_failed=no
18977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM_RADEON" >&5
18978$as_echo_n "checking for LIBDRM_RADEON... " >&6; }
18979
18980if test -n "$LIBDRM_RADEON_CFLAGS"; then
18981    pkg_cv_LIBDRM_RADEON_CFLAGS="$LIBDRM_RADEON_CFLAGS"
18982 elif test -n "$PKG_CONFIG"; then
18983    if test -n "$PKG_CONFIG" && \
18984    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
18985  ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
18986  ac_status=$?
18987  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18988  test $ac_status = 0; }; then
18989  pkg_cv_LIBDRM_RADEON_CFLAGS=`$PKG_CONFIG --cflags "libdrm_radeon" 2>/dev/null`
18990		      test "x$?" != "x0" && pkg_failed=yes
18991else
18992  pkg_failed=yes
18993fi
18994 else
18995    pkg_failed=untried
18996fi
18997if test -n "$LIBDRM_RADEON_LIBS"; then
18998    pkg_cv_LIBDRM_RADEON_LIBS="$LIBDRM_RADEON_LIBS"
18999 elif test -n "$PKG_CONFIG"; then
19000    if test -n "$PKG_CONFIG" && \
19001    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm_radeon\""; } >&5
19002  ($PKG_CONFIG --exists --print-errors "libdrm_radeon") 2>&5
19003  ac_status=$?
19004  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005  test $ac_status = 0; }; then
19006  pkg_cv_LIBDRM_RADEON_LIBS=`$PKG_CONFIG --libs "libdrm_radeon" 2>/dev/null`
19007		      test "x$?" != "x0" && pkg_failed=yes
19008else
19009  pkg_failed=yes
19010fi
19011 else
19012    pkg_failed=untried
19013fi
19014
19015
19016
19017if test $pkg_failed = yes; then
19018   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19019$as_echo "no" >&6; }
19020
19021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19022        _pkg_short_errors_supported=yes
19023else
19024        _pkg_short_errors_supported=no
19025fi
19026        if test $_pkg_short_errors_supported = yes; then
19027	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19028        else
19029	        LIBDRM_RADEON_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm_radeon" 2>&1`
19030        fi
19031	# Put the nasty error message in config.log where it belongs
19032	echo "$LIBDRM_RADEON_PKG_ERRORS" >&5
19033
19034	as_fn_error $? "Package requirements (libdrm_radeon) were not met:
19035
19036$LIBDRM_RADEON_PKG_ERRORS
19037
19038Consider adjusting the PKG_CONFIG_PATH environment variable if you
19039installed software in a non-standard prefix.
19040
19041Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19042and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19043See the pkg-config man page for more details." "$LINENO" 5
19044elif test $pkg_failed = untried; then
19045     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19046$as_echo "no" >&6; }
19047	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19048$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19049as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19050is in your PATH or set the PKG_CONFIG environment variable to the full
19051path to pkg-config.
19052
19053Alternatively, you may set the environment variables LIBDRM_RADEON_CFLAGS
19054and LIBDRM_RADEON_LIBS to avoid the need to call pkg-config.
19055See the pkg-config man page for more details.
19056
19057To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19058See \`config.log' for more details" "$LINENO" 5; }
19059else
19060	LIBDRM_RADEON_CFLAGS=$pkg_cv_LIBDRM_RADEON_CFLAGS
19061	LIBDRM_RADEON_LIBS=$pkg_cv_LIBDRM_RADEON_LIBS
19062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19063$as_echo "yes" >&6; }
19064
19065fi
19066
19067# Obtain compiler/linker options for the driver dependencies
19068
19069pkg_failed=no
19070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19071$as_echo_n "checking for XORG... " >&6; }
19072
19073if test -n "$XORG_CFLAGS"; then
19074    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19075 elif test -n "$PKG_CONFIG"; then
19076    if test -n "$PKG_CONFIG" && \
19077    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19078  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19079  ac_status=$?
19080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19081  test $ac_status = 0; }; then
19082  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19083		      test "x$?" != "x0" && pkg_failed=yes
19084else
19085  pkg_failed=yes
19086fi
19087 else
19088    pkg_failed=untried
19089fi
19090if test -n "$XORG_LIBS"; then
19091    pkg_cv_XORG_LIBS="$XORG_LIBS"
19092 elif test -n "$PKG_CONFIG"; then
19093    if test -n "$PKG_CONFIG" && \
19094    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.10 xproto fontsproto xf86driproto \$REQUIRED_MODULES\""; } >&5
19095  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES") 2>&5
19096  ac_status=$?
19097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19098  test $ac_status = 0; }; then
19099  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>/dev/null`
19100		      test "x$?" != "x0" && pkg_failed=yes
19101else
19102  pkg_failed=yes
19103fi
19104 else
19105    pkg_failed=untried
19106fi
19107
19108
19109
19110if test $pkg_failed = yes; then
19111   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19112$as_echo "no" >&6; }
19113
19114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19115        _pkg_short_errors_supported=yes
19116else
19117        _pkg_short_errors_supported=no
19118fi
19119        if test $_pkg_short_errors_supported = yes; then
19120	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19121        else
19122	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES" 2>&1`
19123        fi
19124	# Put the nasty error message in config.log where it belongs
19125	echo "$XORG_PKG_ERRORS" >&5
19126
19127	as_fn_error $? "Package requirements (xorg-server >= 1.10 xproto fontsproto xf86driproto $REQUIRED_MODULES) were not met:
19128
19129$XORG_PKG_ERRORS
19130
19131Consider adjusting the PKG_CONFIG_PATH environment variable if you
19132installed software in a non-standard prefix.
19133
19134Alternatively, you may set the environment variables XORG_CFLAGS
19135and XORG_LIBS to avoid the need to call pkg-config.
19136See the pkg-config man page for more details." "$LINENO" 5
19137elif test $pkg_failed = untried; then
19138     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19139$as_echo "no" >&6; }
19140	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19142as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19143is in your PATH or set the PKG_CONFIG environment variable to the full
19144path to pkg-config.
19145
19146Alternatively, you may set the environment variables XORG_CFLAGS
19147and XORG_LIBS to avoid the need to call pkg-config.
19148See the pkg-config man page for more details.
19149
19150To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19151See \`config.log' for more details" "$LINENO" 5; }
19152else
19153	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19154	XORG_LIBS=$pkg_cv_XORG_LIBS
19155        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19156$as_echo "yes" >&6; }
19157
19158fi
19159
19160pkg_failed=no
19161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19162$as_echo_n "checking for XEXT... " >&6; }
19163
19164if test -n "$XEXT_CFLAGS"; then
19165    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19166 elif test -n "$PKG_CONFIG"; then
19167    if test -n "$PKG_CONFIG" && \
19168    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19169  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19170  ac_status=$?
19171  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19172  test $ac_status = 0; }; then
19173  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19174		      test "x$?" != "x0" && pkg_failed=yes
19175else
19176  pkg_failed=yes
19177fi
19178 else
19179    pkg_failed=untried
19180fi
19181if test -n "$XEXT_LIBS"; then
19182    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19183 elif test -n "$PKG_CONFIG"; then
19184    if test -n "$PKG_CONFIG" && \
19185    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19186  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19187  ac_status=$?
19188  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19189  test $ac_status = 0; }; then
19190  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19191		      test "x$?" != "x0" && pkg_failed=yes
19192else
19193  pkg_failed=yes
19194fi
19195 else
19196    pkg_failed=untried
19197fi
19198
19199
19200
19201if test $pkg_failed = yes; then
19202   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19203$as_echo "no" >&6; }
19204
19205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19206        _pkg_short_errors_supported=yes
19207else
19208        _pkg_short_errors_supported=no
19209fi
19210        if test $_pkg_short_errors_supported = yes; then
19211	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19212        else
19213	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19214        fi
19215	# Put the nasty error message in config.log where it belongs
19216	echo "$XEXT_PKG_ERRORS" >&5
19217
19218	HAVE_XEXTPROTO_71="no"
19219elif test $pkg_failed = untried; then
19220     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221$as_echo "no" >&6; }
19222	HAVE_XEXTPROTO_71="no"
19223else
19224	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19225	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19226        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19227$as_echo "yes" >&6; }
19228	HAVE_XEXTPROTO_71="yes";
19229$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19230
19231fi
19232 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19233  HAVE_XEXTPROTO_71_TRUE=
19234  HAVE_XEXTPROTO_71_FALSE='#'
19235else
19236  HAVE_XEXTPROTO_71_TRUE='#'
19237  HAVE_XEXTPROTO_71_FALSE=
19238fi
19239
19240
19241# Section "OutputClass" is only supported as of xserver 1.16
19242if test -n "$PKG_CONFIG" && \
19243    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.16\""; } >&5
19244  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.16") 2>&5
19245  ac_status=$?
19246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247  test $ac_status = 0; }; then
19248  sysconfigdir=`$PKG_CONFIG --variable=sysconfigdir xorg-server`
19249else
19250  sysconfigdir=""
19251fi
19252 if test "x$sysconfigdir" != "x"; then
19253  HAS_XORG_CONF_DIR_TRUE=
19254  HAS_XORG_CONF_DIR_FALSE='#'
19255else
19256  HAS_XORG_CONF_DIR_TRUE='#'
19257  HAS_XORG_CONF_DIR_FALSE=
19258fi
19259
19260
19261# Define a configure option for an alternate X Server configuration directory
19262
19263# Check whether --with-xorg-conf-dir was given.
19264if test "${with_xorg_conf_dir+set}" = set; then :
19265  withval=$with_xorg_conf_dir; configdir="$withval"
19266else
19267  configdir='${prefix}/share/X11/xorg.conf.d'
19268fi
19269
19270
19271
19272# Check whether --enable-udev was given.
19273if test "${enable_udev+set}" = set; then :
19274  enableval=$enable_udev; enable_udev="$enableval"
19275else
19276  enable_udev=auto
19277fi
19278
19279if test "x$enable_udev" != "xno"; then
19280
19281pkg_failed=no
19282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
19283$as_echo_n "checking for LIBUDEV... " >&6; }
19284
19285if test -n "$LIBUDEV_CFLAGS"; then
19286    pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
19287 elif test -n "$PKG_CONFIG"; then
19288    if test -n "$PKG_CONFIG" && \
19289    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19290  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19291  ac_status=$?
19292  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19293  test $ac_status = 0; }; then
19294  pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
19295		      test "x$?" != "x0" && pkg_failed=yes
19296else
19297  pkg_failed=yes
19298fi
19299 else
19300    pkg_failed=untried
19301fi
19302if test -n "$LIBUDEV_LIBS"; then
19303    pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
19304 elif test -n "$PKG_CONFIG"; then
19305    if test -n "$PKG_CONFIG" && \
19306    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
19307  ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
19308  ac_status=$?
19309  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19310  test $ac_status = 0; }; then
19311  pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
19312		      test "x$?" != "x0" && pkg_failed=yes
19313else
19314  pkg_failed=yes
19315fi
19316 else
19317    pkg_failed=untried
19318fi
19319
19320
19321
19322if test $pkg_failed = yes; then
19323   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324$as_echo "no" >&6; }
19325
19326if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19327        _pkg_short_errors_supported=yes
19328else
19329        _pkg_short_errors_supported=no
19330fi
19331        if test $_pkg_short_errors_supported = yes; then
19332	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
19333        else
19334	        LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
19335        fi
19336	# Put the nasty error message in config.log where it belongs
19337	echo "$LIBUDEV_PKG_ERRORS" >&5
19338
19339	LIBUDEV=no
19340elif test $pkg_failed = untried; then
19341     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342$as_echo "no" >&6; }
19343	LIBUDEV=no
19344else
19345	LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
19346	LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
19347        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19348$as_echo "yes" >&6; }
19349	LIBUDEV=yes
19350fi
19351	if test "x$LIBUDEV" = xyes; then
19352
19353$as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
19354
19355	elif test "x$enable_udev" != "xauto"; then
19356		as_fn_error $? "Building with udev requested but libudev not found" "$LINENO" 5
19357	fi
19358fi
19359 if test x$LIBUDEV = xyes; then
19360  LIBUDEV_TRUE=
19361  LIBUDEV_FALSE='#'
19362else
19363  LIBUDEV_TRUE='#'
19364  LIBUDEV_FALSE=
19365fi
19366
19367
19368SAVE_CPPFLAGS="$CPPFLAGS"
19369CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19370
19371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include GLAMOR support" >&5
19372$as_echo_n "checking whether to include GLAMOR support... " >&6; }
19373# Check whether --enable-glamor was given.
19374if test "${enable_glamor+set}" = set; then :
19375  enableval=$enable_glamor; GLAMOR="$enableval"
19376else
19377  GLAMOR=yes
19378fi
19379
19380
19381if test "x$GLAMOR" != "xno"; then
19382	for ac_header in glamor.h
19383do :
19384  ac_fn_c_check_header_compile "$LINENO" "glamor.h" "ac_cv_header_glamor_h" "#include \"xorg-server.h\"
19385"
19386if test "x$ac_cv_header_glamor_h" = xyes; then :
19387  cat >>confdefs.h <<_ACEOF
19388#define HAVE_GLAMOR_H 1
19389_ACEOF
19390 GLAMOR_H="yes"
19391else
19392  GLAMOR_H="no"
19393fi
19394
19395done
19396
19397
19398	if test "x$GLAMOR_H" = xyes; then
19399		ac_fn_c_check_decl "$LINENO" "GLAMOR_NO_DRI3" "ac_cv_have_decl_GLAMOR_NO_DRI3" "#include \"xorg-server.h\"
19400			       #include \"glamor.h\"
19401"
19402if test "x$ac_cv_have_decl_GLAMOR_NO_DRI3" = xyes; then :
19403  GLAMOR_XSERVER="yes"
19404else
19405  GLAMOR_XSERVER="no"
19406fi
19407
19408
19409		ac_fn_c_check_decl "$LINENO" "glamor_glyphs_init" "ac_cv_have_decl_glamor_glyphs_init" "#include \"xorg-server.h\"
19410			       #include \"glamor.h\"
19411"
19412if test "x$ac_cv_have_decl_glamor_glyphs_init" = xyes; then :
19413
19414$as_echo "#define HAVE_GLAMOR_GLYPHS_INIT 1" >>confdefs.h
19415
19416fi
19417
19418
19419		ac_fn_c_check_decl "$LINENO" "glamor_egl_destroy_textured_pixmap" "ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" "#include \"xorg-server.h\"
19420			       #include \"glamor.h\"
19421"
19422if test "x$ac_cv_have_decl_glamor_egl_destroy_textured_pixmap" = xyes; then :
19423
19424$as_echo "#define HAVE_GLAMOR_EGL_DESTROY_TEXTURED_PIXMAP 1" >>confdefs.h
19425
19426fi
19427
19428	fi
19429
19430	if test "x$GLAMOR_XSERVER" != xyes; then
19431
19432pkg_failed=no
19433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR" >&5
19434$as_echo_n "checking for LIBGLAMOR... " >&6; }
19435
19436if test -n "$LIBGLAMOR_CFLAGS"; then
19437    pkg_cv_LIBGLAMOR_CFLAGS="$LIBGLAMOR_CFLAGS"
19438 elif test -n "$PKG_CONFIG"; then
19439    if test -n "$PKG_CONFIG" && \
19440    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19441  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19442  ac_status=$?
19443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19444  test $ac_status = 0; }; then
19445  pkg_cv_LIBGLAMOR_CFLAGS=`$PKG_CONFIG --cflags "glamor >= 0.6.0" 2>/dev/null`
19446		      test "x$?" != "x0" && pkg_failed=yes
19447else
19448  pkg_failed=yes
19449fi
19450 else
19451    pkg_failed=untried
19452fi
19453if test -n "$LIBGLAMOR_LIBS"; then
19454    pkg_cv_LIBGLAMOR_LIBS="$LIBGLAMOR_LIBS"
19455 elif test -n "$PKG_CONFIG"; then
19456    if test -n "$PKG_CONFIG" && \
19457    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor >= 0.6.0\""; } >&5
19458  ($PKG_CONFIG --exists --print-errors "glamor >= 0.6.0") 2>&5
19459  ac_status=$?
19460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19461  test $ac_status = 0; }; then
19462  pkg_cv_LIBGLAMOR_LIBS=`$PKG_CONFIG --libs "glamor >= 0.6.0" 2>/dev/null`
19463		      test "x$?" != "x0" && pkg_failed=yes
19464else
19465  pkg_failed=yes
19466fi
19467 else
19468    pkg_failed=untried
19469fi
19470
19471
19472
19473if test $pkg_failed = yes; then
19474   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19475$as_echo "no" >&6; }
19476
19477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19478        _pkg_short_errors_supported=yes
19479else
19480        _pkg_short_errors_supported=no
19481fi
19482        if test $_pkg_short_errors_supported = yes; then
19483	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19484        else
19485	        LIBGLAMOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor >= 0.6.0" 2>&1`
19486        fi
19487	# Put the nasty error message in config.log where it belongs
19488	echo "$LIBGLAMOR_PKG_ERRORS" >&5
19489
19490	as_fn_error $? "Package requirements (glamor >= 0.6.0) were not met:
19491
19492$LIBGLAMOR_PKG_ERRORS
19493
19494Consider adjusting the PKG_CONFIG_PATH environment variable if you
19495installed software in a non-standard prefix.
19496
19497Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19498and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19499See the pkg-config man page for more details." "$LINENO" 5
19500elif test $pkg_failed = untried; then
19501     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19502$as_echo "no" >&6; }
19503	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19505as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19506is in your PATH or set the PKG_CONFIG environment variable to the full
19507path to pkg-config.
19508
19509Alternatively, you may set the environment variables LIBGLAMOR_CFLAGS
19510and LIBGLAMOR_LIBS to avoid the need to call pkg-config.
19511See the pkg-config man page for more details.
19512
19513To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19514See \`config.log' for more details" "$LINENO" 5; }
19515else
19516	LIBGLAMOR_CFLAGS=$pkg_cv_LIBGLAMOR_CFLAGS
19517	LIBGLAMOR_LIBS=$pkg_cv_LIBGLAMOR_LIBS
19518        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19519$as_echo "yes" >&6; }
19520
19521fi
19522
19523pkg_failed=no
19524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGLAMOR_EGL" >&5
19525$as_echo_n "checking for LIBGLAMOR_EGL... " >&6; }
19526
19527if test -n "$LIBGLAMOR_EGL_CFLAGS"; then
19528    pkg_cv_LIBGLAMOR_EGL_CFLAGS="$LIBGLAMOR_EGL_CFLAGS"
19529 elif test -n "$PKG_CONFIG"; then
19530    if test -n "$PKG_CONFIG" && \
19531    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19532  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19533  ac_status=$?
19534  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19535  test $ac_status = 0; }; then
19536  pkg_cv_LIBGLAMOR_EGL_CFLAGS=`$PKG_CONFIG --cflags "glamor-egl" 2>/dev/null`
19537		      test "x$?" != "x0" && pkg_failed=yes
19538else
19539  pkg_failed=yes
19540fi
19541 else
19542    pkg_failed=untried
19543fi
19544if test -n "$LIBGLAMOR_EGL_LIBS"; then
19545    pkg_cv_LIBGLAMOR_EGL_LIBS="$LIBGLAMOR_EGL_LIBS"
19546 elif test -n "$PKG_CONFIG"; then
19547    if test -n "$PKG_CONFIG" && \
19548    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glamor-egl\""; } >&5
19549  ($PKG_CONFIG --exists --print-errors "glamor-egl") 2>&5
19550  ac_status=$?
19551  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19552  test $ac_status = 0; }; then
19553  pkg_cv_LIBGLAMOR_EGL_LIBS=`$PKG_CONFIG --libs "glamor-egl" 2>/dev/null`
19554		      test "x$?" != "x0" && pkg_failed=yes
19555else
19556  pkg_failed=yes
19557fi
19558 else
19559    pkg_failed=untried
19560fi
19561
19562
19563
19564if test $pkg_failed = yes; then
19565   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19566$as_echo "no" >&6; }
19567
19568if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19569        _pkg_short_errors_supported=yes
19570else
19571        _pkg_short_errors_supported=no
19572fi
19573        if test $_pkg_short_errors_supported = yes; then
19574	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glamor-egl" 2>&1`
19575        else
19576	        LIBGLAMOR_EGL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glamor-egl" 2>&1`
19577        fi
19578	# Put the nasty error message in config.log where it belongs
19579	echo "$LIBGLAMOR_EGL_PKG_ERRORS" >&5
19580
19581	as_fn_error $? "Package requirements (glamor-egl) were not met:
19582
19583$LIBGLAMOR_EGL_PKG_ERRORS
19584
19585Consider adjusting the PKG_CONFIG_PATH environment variable if you
19586installed software in a non-standard prefix.
19587
19588Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19589and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19590See the pkg-config man page for more details." "$LINENO" 5
19591elif test $pkg_failed = untried; then
19592     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19593$as_echo "no" >&6; }
19594	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19596as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19597is in your PATH or set the PKG_CONFIG environment variable to the full
19598path to pkg-config.
19599
19600Alternatively, you may set the environment variables LIBGLAMOR_EGL_CFLAGS
19601and LIBGLAMOR_EGL_LIBS to avoid the need to call pkg-config.
19602See the pkg-config man page for more details.
19603
19604To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19605See \`config.log' for more details" "$LINENO" 5; }
19606else
19607	LIBGLAMOR_EGL_CFLAGS=$pkg_cv_LIBGLAMOR_EGL_CFLAGS
19608	LIBGLAMOR_EGL_LIBS=$pkg_cv_LIBGLAMOR_EGL_LIBS
19609        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19610$as_echo "yes" >&6; }
19611
19612fi
19613	fi
19614
19615$as_echo "#define USE_GLAMOR 1" >>confdefs.h
19616
19617else
19618	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLAMOR" >&5
19619$as_echo "$GLAMOR" >&6; }
19620fi
19621 if test x$GLAMOR != xno; then
19622  GLAMOR_TRUE=
19623  GLAMOR_FALSE='#'
19624else
19625  GLAMOR_TRUE='#'
19626  GLAMOR_FALSE=
19627fi
19628
19629
19630ac_fn_c_check_decl "$LINENO" "RegionDuplicate" "ac_cv_have_decl_RegionDuplicate" "#include <xorg-server.h>
19631	       #include <regionstr.h>
19632"
19633if test "x$ac_cv_have_decl_RegionDuplicate" = xyes; then :
19634
19635$as_echo "#define HAVE_REGIONDUPLICATE 1" >>confdefs.h
19636
19637fi
19638
19639
19640ac_fn_c_check_decl "$LINENO" "fbGlyphs" "ac_cv_have_decl_fbGlyphs" "#include <X11/Xmd.h>
19641	       #include <X11/Xfuncproto.h>
19642	       #include <X11/extensions/renderproto.h>
19643	       #include <xorg-server.h>
19644	       #include <picture.h>
19645	       #include <glyphstr.h>
19646	       #include <fbpict.h>
19647"
19648if test "x$ac_cv_have_decl_fbGlyphs" = xyes; then :
19649
19650$as_echo "#define HAVE_FBGLYPHS 1" >>confdefs.h
19651
19652fi
19653
19654
19655ac_fn_c_check_decl "$LINENO" "xf86CursorResetCursor" "ac_cv_have_decl_xf86CursorResetCursor" "#include <xorg-server.h>
19656	       #include <xf86Cursor.h>
19657"
19658if test "x$ac_cv_have_decl_xf86CursorResetCursor" = xyes; then :
19659
19660$as_echo "#define HAVE_XF86_CURSOR_RESET_CURSOR 1" >>confdefs.h
19661
19662fi
19663
19664
19665ac_fn_c_check_decl "$LINENO" "xorg_list_init" "ac_cv_have_decl_xorg_list_init" "#include <X11/Xdefs.h>
19666	      #include \"xorg-server.h\"
19667	      #include \"list.h\"
19668"
19669if test "x$ac_cv_have_decl_xorg_list_init" = xyes; then :
19670
19671$as_echo "#define HAVE_XORG_LIST 1" >>confdefs.h
19672
19673fi
19674
19675
19676for ac_header in misyncshm.h
19677do :
19678  ac_fn_c_check_header_compile "$LINENO" "misyncshm.h" "ac_cv_header_misyncshm_h" "#include <X11/Xdefs.h>
19679	          #include <X11/Xfuncproto.h>
19680	          #include <xorg-server.h>
19681		  #include <screenint.h>
19682"
19683if test "x$ac_cv_header_misyncshm_h" = xyes; then :
19684  cat >>confdefs.h <<_ACEOF
19685#define HAVE_MISYNCSHM_H 1
19686_ACEOF
19687
19688fi
19689
19690done
19691
19692
19693for ac_header in present.h
19694do :
19695  ac_fn_c_check_header_compile "$LINENO" "present.h" "ac_cv_header_present_h" "#include <X11/Xmd.h>
19696		 #include <X11/Xproto.h>
19697		 #include <X11/X.h>
19698		 #include \"xorg-server.h\"
19699"
19700if test "x$ac_cv_header_present_h" = xyes; then :
19701  cat >>confdefs.h <<_ACEOF
19702#define HAVE_PRESENT_H 1
19703_ACEOF
19704
19705fi
19706
19707done
19708
19709
19710for ac_header in dri3.h
19711do :
19712  ac_fn_c_check_header_compile "$LINENO" "dri3.h" "ac_cv_header_dri3_h" "#include <X11/Xmd.h>
19713		 #include <xorg-server.h>
19714"
19715if test "x$ac_cv_header_dri3_h" = xyes; then :
19716  cat >>confdefs.h <<_ACEOF
19717#define HAVE_DRI3_H 1
19718_ACEOF
19719
19720fi
19721
19722done
19723
19724
19725CPPFLAGS="$SAVE_CPPFLAGS"
19726
19727
19728pkg_failed=no
19729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19730$as_echo_n "checking for PCIACCESS... " >&6; }
19731
19732if test -n "$PCIACCESS_CFLAGS"; then
19733    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19734 elif test -n "$PKG_CONFIG"; then
19735    if test -n "$PKG_CONFIG" && \
19736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19737  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19738  ac_status=$?
19739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19740  test $ac_status = 0; }; then
19741  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19742		      test "x$?" != "x0" && pkg_failed=yes
19743else
19744  pkg_failed=yes
19745fi
19746 else
19747    pkg_failed=untried
19748fi
19749if test -n "$PCIACCESS_LIBS"; then
19750    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19751 elif test -n "$PKG_CONFIG"; then
19752    if test -n "$PKG_CONFIG" && \
19753    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19754  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19755  ac_status=$?
19756  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19757  test $ac_status = 0; }; then
19758  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19759		      test "x$?" != "x0" && pkg_failed=yes
19760else
19761  pkg_failed=yes
19762fi
19763 else
19764    pkg_failed=untried
19765fi
19766
19767
19768
19769if test $pkg_failed = yes; then
19770   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19771$as_echo "no" >&6; }
19772
19773if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19774        _pkg_short_errors_supported=yes
19775else
19776        _pkg_short_errors_supported=no
19777fi
19778        if test $_pkg_short_errors_supported = yes; then
19779	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19780        else
19781	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19782        fi
19783	# Put the nasty error message in config.log where it belongs
19784	echo "$PCIACCESS_PKG_ERRORS" >&5
19785
19786	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19787
19788$PCIACCESS_PKG_ERRORS
19789
19790Consider adjusting the PKG_CONFIG_PATH environment variable if you
19791installed software in a non-standard prefix.
19792
19793Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19794and PCIACCESS_LIBS to avoid the need to call pkg-config.
19795See the pkg-config man page for more details." "$LINENO" 5
19796elif test $pkg_failed = untried; then
19797     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19798$as_echo "no" >&6; }
19799	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19801as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19802is in your PATH or set the PKG_CONFIG environment variable to the full
19803path to pkg-config.
19804
19805Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19806and PCIACCESS_LIBS to avoid the need to call pkg-config.
19807See the pkg-config man page for more details.
19808
19809To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19810See \`config.log' for more details" "$LINENO" 5; }
19811else
19812	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19813	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19814        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19815$as_echo "yes" >&6; }
19816
19817fi
19818XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19819
19820# Checks for headers/macros for byte swapping
19821# Known variants:
19822#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
19823#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19824#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19825#	and a fallback to local macros if none of the above are found
19826
19827# if <byteswap.h> is found, assume it's the correct version
19828for ac_header in byteswap.h
19829do :
19830  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19831if test "x$ac_cv_header_byteswap_h" = xyes; then :
19832  cat >>confdefs.h <<_ACEOF
19833#define HAVE_BYTESWAP_H 1
19834_ACEOF
19835
19836fi
19837
19838done
19839
19840
19841# if <sys/endian.h> is found, have to check which version
19842ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19843if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19844  HAVE_SYS_ENDIAN_H="yes"
19845else
19846  HAVE_SYS_ENDIAN_H="no"
19847fi
19848
19849
19850
19851if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19852	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19853$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19854	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19855/* end confdefs.h.  */
19856
19857#include <sys/types.h>
19858#include <sys/endian.h>
19859
19860int
19861main ()
19862{
19863
19864int a = 1, b;
19865b = __swap16(a);
19866
19867  ;
19868  return 0;
19869}
19870
19871_ACEOF
19872if ac_fn_c_try_link "$LINENO"; then :
19873  SYS_ENDIAN__SWAP='yes'
19874else
19875  SYS_ENDIAN__SWAP='no'
19876fi
19877rm -f core conftest.err conftest.$ac_objext \
19878    conftest$ac_exeext conftest.$ac_ext
19879	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
19880$as_echo "$SYS_ENDIAN__SWAP" >&6; }
19881
19882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
19883$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19884	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885/* end confdefs.h.  */
19886
19887#include <sys/types.h>
19888#include <sys/endian.h>
19889
19890int
19891main ()
19892{
19893
19894int a = 1, b;
19895b = bswap16(a);
19896
19897  ;
19898  return 0;
19899}
19900
19901_ACEOF
19902if ac_fn_c_try_link "$LINENO"; then :
19903  SYS_ENDIAN_BSWAP='yes'
19904else
19905  SYS_ENDIAN_BSWAP='no'
19906fi
19907rm -f core conftest.err conftest.$ac_objext \
19908    conftest$ac_exeext conftest.$ac_ext
19909	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
19910$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
19911
19912    	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
19913		USE_SYS_ENDIAN_H=yes
19914		BSWAP=bswap
19915	else
19916	    	if test "$SYS_ENDIAN__SWAP" = "yes" ; then
19917			USE_SYS_ENDIAN_H=yes
19918			BSWAP=__swap
19919		else
19920			USE_SYS_ENDIAN_H=no
19921		fi
19922	fi
19923
19924	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
19925
19926$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
19927
19928
19929cat >>confdefs.h <<_ACEOF
19930#define bswap_16 ${BSWAP}16
19931_ACEOF
19932
19933
19934cat >>confdefs.h <<_ACEOF
19935#define bswap_32 ${BSWAP}32
19936_ACEOF
19937
19938
19939cat >>confdefs.h <<_ACEOF
19940#define bswap_64 ${BSWAP}64
19941_ACEOF
19942
19943	fi
19944fi
19945
19946
19947
19948DRIVER_NAME=ati
19949
19950
19951{ $as_echo "$as_me:${as_lineno-$LINENO}: The atimisc sub-driver has been split out to xf86-video-mach64:
19952    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
19953Please install that driver as well for mach64-based cards.
19954" >&5
19955$as_echo "$as_me: The atimisc sub-driver has been split out to xf86-video-mach64:
19956    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-mach64
19957Please install that driver as well for mach64-based cards.
19958" >&6;}
19959
19960{ $as_echo "$as_me:${as_lineno-$LINENO}: The r128 sub-driver has been split out to xf86-video-r128:
19961    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
19962Please install that driver as well for rage128-based cards.
19963" >&5
19964$as_echo "$as_me: The r128 sub-driver has been split out to xf86-video-r128:
19965    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-r128
19966Please install that driver as well for rage128-based cards.
19967" >&6;}
19968
19969ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile conf/Makefile"
19970
19971cat >confcache <<\_ACEOF
19972# This file is a shell script that caches the results of configure
19973# tests run on this system so they can be shared between configure
19974# scripts and configure runs, see configure's option --config-cache.
19975# It is not useful on other systems.  If it contains results you don't
19976# want to keep, you may remove or edit it.
19977#
19978# config.status only pays attention to the cache file if you give it
19979# the --recheck option to rerun configure.
19980#
19981# `ac_cv_env_foo' variables (set or unset) will be overridden when
19982# loading this file, other *unset* `ac_cv_foo' will be assigned the
19983# following values.
19984
19985_ACEOF
19986
19987# The following way of writing the cache mishandles newlines in values,
19988# but we know of no workaround that is simple, portable, and efficient.
19989# So, we kill variables containing newlines.
19990# Ultrix sh set writes to stderr and can't be redirected directly,
19991# and sets the high bit in the cache file unless we assign to the vars.
19992(
19993  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19994    eval ac_val=\$$ac_var
19995    case $ac_val in #(
19996    *${as_nl}*)
19997      case $ac_var in #(
19998      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19999$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20000      esac
20001      case $ac_var in #(
20002      _ | IFS | as_nl) ;; #(
20003      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20004      *) { eval $ac_var=; unset $ac_var;} ;;
20005      esac ;;
20006    esac
20007  done
20008
20009  (set) 2>&1 |
20010    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20011    *${as_nl}ac_space=\ *)
20012      # `set' does not quote correctly, so add quotes: double-quote
20013      # substitution turns \\\\ into \\, and sed turns \\ into \.
20014      sed -n \
20015	"s/'/'\\\\''/g;
20016	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20017      ;; #(
20018    *)
20019      # `set' quotes correctly as required by POSIX, so do not add quotes.
20020      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20021      ;;
20022    esac |
20023    sort
20024) |
20025  sed '
20026     /^ac_cv_env_/b end
20027     t clear
20028     :clear
20029     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20030     t end
20031     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20032     :end' >>confcache
20033if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20034  if test -w "$cache_file"; then
20035    if test "x$cache_file" != "x/dev/null"; then
20036      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20037$as_echo "$as_me: updating cache $cache_file" >&6;}
20038      if test ! -f "$cache_file" || test -h "$cache_file"; then
20039	cat confcache >"$cache_file"
20040      else
20041        case $cache_file in #(
20042        */* | ?:*)
20043	  mv -f confcache "$cache_file"$$ &&
20044	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20045        *)
20046	  mv -f confcache "$cache_file" ;;
20047	esac
20048      fi
20049    fi
20050  else
20051    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20052$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20053  fi
20054fi
20055rm -f confcache
20056
20057test "x$prefix" = xNONE && prefix=$ac_default_prefix
20058# Let make expand exec_prefix.
20059test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20060
20061DEFS=-DHAVE_CONFIG_H
20062
20063ac_libobjs=
20064ac_ltlibobjs=
20065U=
20066for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20067  # 1. Remove the extension, and $U if already installed.
20068  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20069  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20070  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20071  #    will be set to the directory where LIBOBJS objects are built.
20072  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20073  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20074done
20075LIBOBJS=$ac_libobjs
20076
20077LTLIBOBJS=$ac_ltlibobjs
20078
20079
20080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20081$as_echo_n "checking that generated files are newer than configure... " >&6; }
20082   if test -n "$am_sleep_pid"; then
20083     # Hide warnings about reused PIDs.
20084     wait $am_sleep_pid 2>/dev/null
20085   fi
20086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20087$as_echo "done" >&6; }
20088 if test -n "$EXEEXT"; then
20089  am__EXEEXT_TRUE=
20090  am__EXEEXT_FALSE='#'
20091else
20092  am__EXEEXT_TRUE='#'
20093  am__EXEEXT_FALSE=
20094fi
20095
20096if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20097  as_fn_error $? "conditional \"AMDEP\" was never defined.
20098Usually this means the macro was only invoked conditionally." "$LINENO" 5
20099fi
20100if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20101  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20102Usually this means the macro was only invoked conditionally." "$LINENO" 5
20103fi
20104if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20105  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20106Usually this means the macro was only invoked conditionally." "$LINENO" 5
20107fi
20108if test -z "${HAS_XORG_CONF_DIR_TRUE}" && test -z "${HAS_XORG_CONF_DIR_FALSE}"; then
20109  as_fn_error $? "conditional \"HAS_XORG_CONF_DIR\" was never defined.
20110Usually this means the macro was only invoked conditionally." "$LINENO" 5
20111fi
20112if test -z "${LIBUDEV_TRUE}" && test -z "${LIBUDEV_FALSE}"; then
20113  as_fn_error $? "conditional \"LIBUDEV\" was never defined.
20114Usually this means the macro was only invoked conditionally." "$LINENO" 5
20115fi
20116if test -z "${GLAMOR_TRUE}" && test -z "${GLAMOR_FALSE}"; then
20117  as_fn_error $? "conditional \"GLAMOR\" was never defined.
20118Usually this means the macro was only invoked conditionally." "$LINENO" 5
20119fi
20120
20121: "${CONFIG_STATUS=./config.status}"
20122ac_write_fail=0
20123ac_clean_files_save=$ac_clean_files
20124ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20125{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20126$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20127as_write_fail=0
20128cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20129#! $SHELL
20130# Generated by $as_me.
20131# Run this file to recreate the current configuration.
20132# Compiler output produced by configure, useful for debugging
20133# configure, is in config.log if it exists.
20134
20135debug=false
20136ac_cs_recheck=false
20137ac_cs_silent=false
20138
20139SHELL=\${CONFIG_SHELL-$SHELL}
20140export SHELL
20141_ASEOF
20142cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20143## -------------------- ##
20144## M4sh Initialization. ##
20145## -------------------- ##
20146
20147# Be more Bourne compatible
20148DUALCASE=1; export DUALCASE # for MKS sh
20149if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20150  emulate sh
20151  NULLCMD=:
20152  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20153  # is contrary to our usage.  Disable this feature.
20154  alias -g '${1+"$@"}'='"$@"'
20155  setopt NO_GLOB_SUBST
20156else
20157  case `(set -o) 2>/dev/null` in #(
20158  *posix*) :
20159    set -o posix ;; #(
20160  *) :
20161     ;;
20162esac
20163fi
20164
20165
20166as_nl='
20167'
20168export as_nl
20169# Printing a long string crashes Solaris 7 /usr/bin/printf.
20170as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20171as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20172as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20173# Prefer a ksh shell builtin over an external printf program on Solaris,
20174# but without wasting forks for bash or zsh.
20175if test -z "$BASH_VERSION$ZSH_VERSION" \
20176    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20177  as_echo='print -r --'
20178  as_echo_n='print -rn --'
20179elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20180  as_echo='printf %s\n'
20181  as_echo_n='printf %s'
20182else
20183  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20184    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20185    as_echo_n='/usr/ucb/echo -n'
20186  else
20187    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20188    as_echo_n_body='eval
20189      arg=$1;
20190      case $arg in #(
20191      *"$as_nl"*)
20192	expr "X$arg" : "X\\(.*\\)$as_nl";
20193	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20194      esac;
20195      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20196    '
20197    export as_echo_n_body
20198    as_echo_n='sh -c $as_echo_n_body as_echo'
20199  fi
20200  export as_echo_body
20201  as_echo='sh -c $as_echo_body as_echo'
20202fi
20203
20204# The user is always right.
20205if test "${PATH_SEPARATOR+set}" != set; then
20206  PATH_SEPARATOR=:
20207  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20208    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20209      PATH_SEPARATOR=';'
20210  }
20211fi
20212
20213
20214# IFS
20215# We need space, tab and new line, in precisely that order.  Quoting is
20216# there to prevent editors from complaining about space-tab.
20217# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20218# splitting by setting IFS to empty value.)
20219IFS=" ""	$as_nl"
20220
20221# Find who we are.  Look in the path if we contain no directory separator.
20222as_myself=
20223case $0 in #((
20224  *[\\/]* ) as_myself=$0 ;;
20225  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20226for as_dir in $PATH
20227do
20228  IFS=$as_save_IFS
20229  test -z "$as_dir" && as_dir=.
20230    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20231  done
20232IFS=$as_save_IFS
20233
20234     ;;
20235esac
20236# We did not find ourselves, most probably we were run as `sh COMMAND'
20237# in which case we are not to be found in the path.
20238if test "x$as_myself" = x; then
20239  as_myself=$0
20240fi
20241if test ! -f "$as_myself"; then
20242  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20243  exit 1
20244fi
20245
20246# Unset variables that we do not need and which cause bugs (e.g. in
20247# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20248# suppresses any "Segmentation fault" message there.  '((' could
20249# trigger a bug in pdksh 5.2.14.
20250for as_var in BASH_ENV ENV MAIL MAILPATH
20251do eval test x\${$as_var+set} = xset \
20252  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20253done
20254PS1='$ '
20255PS2='> '
20256PS4='+ '
20257
20258# NLS nuisances.
20259LC_ALL=C
20260export LC_ALL
20261LANGUAGE=C
20262export LANGUAGE
20263
20264# CDPATH.
20265(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20266
20267
20268# as_fn_error STATUS ERROR [LINENO LOG_FD]
20269# ----------------------------------------
20270# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20271# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20272# script with STATUS, using 1 if that was 0.
20273as_fn_error ()
20274{
20275  as_status=$1; test $as_status -eq 0 && as_status=1
20276  if test "$4"; then
20277    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20278    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20279  fi
20280  $as_echo "$as_me: error: $2" >&2
20281  as_fn_exit $as_status
20282} # as_fn_error
20283
20284
20285# as_fn_set_status STATUS
20286# -----------------------
20287# Set $? to STATUS, without forking.
20288as_fn_set_status ()
20289{
20290  return $1
20291} # as_fn_set_status
20292
20293# as_fn_exit STATUS
20294# -----------------
20295# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20296as_fn_exit ()
20297{
20298  set +e
20299  as_fn_set_status $1
20300  exit $1
20301} # as_fn_exit
20302
20303# as_fn_unset VAR
20304# ---------------
20305# Portably unset VAR.
20306as_fn_unset ()
20307{
20308  { eval $1=; unset $1;}
20309}
20310as_unset=as_fn_unset
20311# as_fn_append VAR VALUE
20312# ----------------------
20313# Append the text in VALUE to the end of the definition contained in VAR. Take
20314# advantage of any shell optimizations that allow amortized linear growth over
20315# repeated appends, instead of the typical quadratic growth present in naive
20316# implementations.
20317if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20318  eval 'as_fn_append ()
20319  {
20320    eval $1+=\$2
20321  }'
20322else
20323  as_fn_append ()
20324  {
20325    eval $1=\$$1\$2
20326  }
20327fi # as_fn_append
20328
20329# as_fn_arith ARG...
20330# ------------------
20331# Perform arithmetic evaluation on the ARGs, and store the result in the
20332# global $as_val. Take advantage of shells that can avoid forks. The arguments
20333# must be portable across $(()) and expr.
20334if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20335  eval 'as_fn_arith ()
20336  {
20337    as_val=$(( $* ))
20338  }'
20339else
20340  as_fn_arith ()
20341  {
20342    as_val=`expr "$@" || test $? -eq 1`
20343  }
20344fi # as_fn_arith
20345
20346
20347if expr a : '\(a\)' >/dev/null 2>&1 &&
20348   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20349  as_expr=expr
20350else
20351  as_expr=false
20352fi
20353
20354if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20355  as_basename=basename
20356else
20357  as_basename=false
20358fi
20359
20360if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20361  as_dirname=dirname
20362else
20363  as_dirname=false
20364fi
20365
20366as_me=`$as_basename -- "$0" ||
20367$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20368	 X"$0" : 'X\(//\)$' \| \
20369	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20370$as_echo X/"$0" |
20371    sed '/^.*\/\([^/][^/]*\)\/*$/{
20372	    s//\1/
20373	    q
20374	  }
20375	  /^X\/\(\/\/\)$/{
20376	    s//\1/
20377	    q
20378	  }
20379	  /^X\/\(\/\).*/{
20380	    s//\1/
20381	    q
20382	  }
20383	  s/.*/./; q'`
20384
20385# Avoid depending upon Character Ranges.
20386as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20387as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20388as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20389as_cr_digits='0123456789'
20390as_cr_alnum=$as_cr_Letters$as_cr_digits
20391
20392ECHO_C= ECHO_N= ECHO_T=
20393case `echo -n x` in #(((((
20394-n*)
20395  case `echo 'xy\c'` in
20396  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20397  xy)  ECHO_C='\c';;
20398  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20399       ECHO_T='	';;
20400  esac;;
20401*)
20402  ECHO_N='-n';;
20403esac
20404
20405rm -f conf$$ conf$$.exe conf$$.file
20406if test -d conf$$.dir; then
20407  rm -f conf$$.dir/conf$$.file
20408else
20409  rm -f conf$$.dir
20410  mkdir conf$$.dir 2>/dev/null
20411fi
20412if (echo >conf$$.file) 2>/dev/null; then
20413  if ln -s conf$$.file conf$$ 2>/dev/null; then
20414    as_ln_s='ln -s'
20415    # ... but there are two gotchas:
20416    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20417    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20418    # In both cases, we have to default to `cp -pR'.
20419    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20420      as_ln_s='cp -pR'
20421  elif ln conf$$.file conf$$ 2>/dev/null; then
20422    as_ln_s=ln
20423  else
20424    as_ln_s='cp -pR'
20425  fi
20426else
20427  as_ln_s='cp -pR'
20428fi
20429rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20430rmdir conf$$.dir 2>/dev/null
20431
20432
20433# as_fn_mkdir_p
20434# -------------
20435# Create "$as_dir" as a directory, including parents if necessary.
20436as_fn_mkdir_p ()
20437{
20438
20439  case $as_dir in #(
20440  -*) as_dir=./$as_dir;;
20441  esac
20442  test -d "$as_dir" || eval $as_mkdir_p || {
20443    as_dirs=
20444    while :; do
20445      case $as_dir in #(
20446      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20447      *) as_qdir=$as_dir;;
20448      esac
20449      as_dirs="'$as_qdir' $as_dirs"
20450      as_dir=`$as_dirname -- "$as_dir" ||
20451$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20452	 X"$as_dir" : 'X\(//\)[^/]' \| \
20453	 X"$as_dir" : 'X\(//\)$' \| \
20454	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20455$as_echo X"$as_dir" |
20456    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20457	    s//\1/
20458	    q
20459	  }
20460	  /^X\(\/\/\)[^/].*/{
20461	    s//\1/
20462	    q
20463	  }
20464	  /^X\(\/\/\)$/{
20465	    s//\1/
20466	    q
20467	  }
20468	  /^X\(\/\).*/{
20469	    s//\1/
20470	    q
20471	  }
20472	  s/.*/./; q'`
20473      test -d "$as_dir" && break
20474    done
20475    test -z "$as_dirs" || eval "mkdir $as_dirs"
20476  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20477
20478
20479} # as_fn_mkdir_p
20480if mkdir -p . 2>/dev/null; then
20481  as_mkdir_p='mkdir -p "$as_dir"'
20482else
20483  test -d ./-p && rmdir ./-p
20484  as_mkdir_p=false
20485fi
20486
20487
20488# as_fn_executable_p FILE
20489# -----------------------
20490# Test if FILE is an executable regular file.
20491as_fn_executable_p ()
20492{
20493  test -f "$1" && test -x "$1"
20494} # as_fn_executable_p
20495as_test_x='test -x'
20496as_executable_p=as_fn_executable_p
20497
20498# Sed expression to map a string onto a valid CPP name.
20499as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20500
20501# Sed expression to map a string onto a valid variable name.
20502as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20503
20504
20505exec 6>&1
20506## ----------------------------------- ##
20507## Main body of $CONFIG_STATUS script. ##
20508## ----------------------------------- ##
20509_ASEOF
20510test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20511
20512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20513# Save the log message, to keep $0 and so on meaningful, and to
20514# report actual input values of CONFIG_FILES etc. instead of their
20515# values after options handling.
20516ac_log="
20517This file was extended by xf86-video-ati $as_me 7.9.0, which was
20518generated by GNU Autoconf 2.69.  Invocation command line was
20519
20520  CONFIG_FILES    = $CONFIG_FILES
20521  CONFIG_HEADERS  = $CONFIG_HEADERS
20522  CONFIG_LINKS    = $CONFIG_LINKS
20523  CONFIG_COMMANDS = $CONFIG_COMMANDS
20524  $ $0 $@
20525
20526on `(hostname || uname -n) 2>/dev/null | sed 1q`
20527"
20528
20529_ACEOF
20530
20531case $ac_config_files in *"
20532"*) set x $ac_config_files; shift; ac_config_files=$*;;
20533esac
20534
20535case $ac_config_headers in *"
20536"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20537esac
20538
20539
20540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20541# Files that config.status was made for.
20542config_files="$ac_config_files"
20543config_headers="$ac_config_headers"
20544config_commands="$ac_config_commands"
20545
20546_ACEOF
20547
20548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20549ac_cs_usage="\
20550\`$as_me' instantiates files and other configuration actions
20551from templates according to the current configuration.  Unless the files
20552and actions are specified as TAGs, all are instantiated by default.
20553
20554Usage: $0 [OPTION]... [TAG]...
20555
20556  -h, --help       print this help, then exit
20557  -V, --version    print version number and configuration settings, then exit
20558      --config     print configuration, then exit
20559  -q, --quiet, --silent
20560                   do not print progress messages
20561  -d, --debug      don't remove temporary files
20562      --recheck    update $as_me by reconfiguring in the same conditions
20563      --file=FILE[:TEMPLATE]
20564                   instantiate the configuration file FILE
20565      --header=FILE[:TEMPLATE]
20566                   instantiate the configuration header FILE
20567
20568Configuration files:
20569$config_files
20570
20571Configuration headers:
20572$config_headers
20573
20574Configuration commands:
20575$config_commands
20576
20577Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20578
20579_ACEOF
20580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20581ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20582ac_cs_version="\\
20583xf86-video-ati config.status 7.9.0
20584configured by $0, generated by GNU Autoconf 2.69,
20585  with options \\"\$ac_cs_config\\"
20586
20587Copyright (C) 2012 Free Software Foundation, Inc.
20588This config.status script is free software; the Free Software Foundation
20589gives unlimited permission to copy, distribute and modify it."
20590
20591ac_pwd='$ac_pwd'
20592srcdir='$srcdir'
20593INSTALL='$INSTALL'
20594MKDIR_P='$MKDIR_P'
20595AWK='$AWK'
20596test -n "\$AWK" || AWK=awk
20597_ACEOF
20598
20599cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20600# The default lists apply if the user does not specify any file.
20601ac_need_defaults=:
20602while test $# != 0
20603do
20604  case $1 in
20605  --*=?*)
20606    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20607    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20608    ac_shift=:
20609    ;;
20610  --*=)
20611    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20612    ac_optarg=
20613    ac_shift=:
20614    ;;
20615  *)
20616    ac_option=$1
20617    ac_optarg=$2
20618    ac_shift=shift
20619    ;;
20620  esac
20621
20622  case $ac_option in
20623  # Handling of the options.
20624  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20625    ac_cs_recheck=: ;;
20626  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20627    $as_echo "$ac_cs_version"; exit ;;
20628  --config | --confi | --conf | --con | --co | --c )
20629    $as_echo "$ac_cs_config"; exit ;;
20630  --debug | --debu | --deb | --de | --d | -d )
20631    debug=: ;;
20632  --file | --fil | --fi | --f )
20633    $ac_shift
20634    case $ac_optarg in
20635    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20636    '') as_fn_error $? "missing file argument" ;;
20637    esac
20638    as_fn_append CONFIG_FILES " '$ac_optarg'"
20639    ac_need_defaults=false;;
20640  --header | --heade | --head | --hea )
20641    $ac_shift
20642    case $ac_optarg in
20643    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20644    esac
20645    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20646    ac_need_defaults=false;;
20647  --he | --h)
20648    # Conflict between --help and --header
20649    as_fn_error $? "ambiguous option: \`$1'
20650Try \`$0 --help' for more information.";;
20651  --help | --hel | -h )
20652    $as_echo "$ac_cs_usage"; exit ;;
20653  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20654  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20655    ac_cs_silent=: ;;
20656
20657  # This is an error.
20658  -*) as_fn_error $? "unrecognized option: \`$1'
20659Try \`$0 --help' for more information." ;;
20660
20661  *) as_fn_append ac_config_targets " $1"
20662     ac_need_defaults=false ;;
20663
20664  esac
20665  shift
20666done
20667
20668ac_configure_extra_args=
20669
20670if $ac_cs_silent; then
20671  exec 6>/dev/null
20672  ac_configure_extra_args="$ac_configure_extra_args --silent"
20673fi
20674
20675_ACEOF
20676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20677if \$ac_cs_recheck; then
20678  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20679  shift
20680  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20681  CONFIG_SHELL='$SHELL'
20682  export CONFIG_SHELL
20683  exec "\$@"
20684fi
20685
20686_ACEOF
20687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20688exec 5>>config.log
20689{
20690  echo
20691  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20692## Running $as_me. ##
20693_ASBOX
20694  $as_echo "$ac_log"
20695} >&5
20696
20697_ACEOF
20698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20699#
20700# INIT-COMMANDS
20701#
20702AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20703
20704
20705# The HP-UX ksh and POSIX shell print the target directory to stdout
20706# if CDPATH is set.
20707(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20708
20709sed_quote_subst='$sed_quote_subst'
20710double_quote_subst='$double_quote_subst'
20711delay_variable_subst='$delay_variable_subst'
20712enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20713macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20714macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20715enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20716pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20717enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20718shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20719SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20720ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20721PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20722host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20723host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20724host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20725build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20726build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20727build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20728SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20729Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20730GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20731EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20732FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20733LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20734NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20735LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20736max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20737ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20738exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20739lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20740lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20741lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20742lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20743lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20744reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20745reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20746OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20747deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20748file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20749file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20750want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20751DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20752sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20753AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20754AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20755archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20756STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20757RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20758old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20759old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20760old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20761lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20762CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20763CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20764compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20765GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20766lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20767lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20768lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20769lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20770lt_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"`'
20771lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20772nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20773lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20774lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20775objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20776MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20777lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20778lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20779lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20780lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20781lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20782need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20783MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20784DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20785NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20786LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20787OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20788OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20789libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20790shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20791extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20792archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20793enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20794export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20795whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20796compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20797old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20798old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20799archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20800archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20801module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20802module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20803with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20804allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20805no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20806hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20807hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20808hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20809hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20810hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20811hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20812hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20813inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20814link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20815always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20816export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20817exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20818include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20819prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20820postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20821file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20822variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20823need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20824need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20825version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20826runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20827shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20828shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20829libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20830library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20831soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20832install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20833postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20834postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20835finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20836finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20837hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20838sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20839configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20840configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20841hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20842enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20843enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20844enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20845old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20846striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20847
20848LTCC='$LTCC'
20849LTCFLAGS='$LTCFLAGS'
20850compiler='$compiler_DEFAULT'
20851
20852# A function that is used when there is no print builtin or printf.
20853func_fallback_echo ()
20854{
20855  eval 'cat <<_LTECHO_EOF
20856\$1
20857_LTECHO_EOF'
20858}
20859
20860# Quote evaled strings.
20861for var in SHELL \
20862ECHO \
20863PATH_SEPARATOR \
20864SED \
20865GREP \
20866EGREP \
20867FGREP \
20868LD \
20869NM \
20870LN_S \
20871lt_SP2NL \
20872lt_NL2SP \
20873reload_flag \
20874OBJDUMP \
20875deplibs_check_method \
20876file_magic_cmd \
20877file_magic_glob \
20878want_nocaseglob \
20879DLLTOOL \
20880sharedlib_from_linklib_cmd \
20881AR \
20882AR_FLAGS \
20883archiver_list_spec \
20884STRIP \
20885RANLIB \
20886CC \
20887CFLAGS \
20888compiler \
20889lt_cv_sys_global_symbol_pipe \
20890lt_cv_sys_global_symbol_to_cdecl \
20891lt_cv_sys_global_symbol_to_import \
20892lt_cv_sys_global_symbol_to_c_name_address \
20893lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20894lt_cv_nm_interface \
20895nm_file_list_spec \
20896lt_cv_truncate_bin \
20897lt_prog_compiler_no_builtin_flag \
20898lt_prog_compiler_pic \
20899lt_prog_compiler_wl \
20900lt_prog_compiler_static \
20901lt_cv_prog_compiler_c_o \
20902need_locks \
20903MANIFEST_TOOL \
20904DSYMUTIL \
20905NMEDIT \
20906LIPO \
20907OTOOL \
20908OTOOL64 \
20909shrext_cmds \
20910export_dynamic_flag_spec \
20911whole_archive_flag_spec \
20912compiler_needs_object \
20913with_gnu_ld \
20914allow_undefined_flag \
20915no_undefined_flag \
20916hardcode_libdir_flag_spec \
20917hardcode_libdir_separator \
20918exclude_expsyms \
20919include_expsyms \
20920file_list_spec \
20921variables_saved_for_relink \
20922libname_spec \
20923library_names_spec \
20924soname_spec \
20925install_override_mode \
20926finish_eval \
20927old_striplib \
20928striplib; do
20929    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20930    *[\\\\\\\`\\"\\\$]*)
20931      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20932      ;;
20933    *)
20934      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20935      ;;
20936    esac
20937done
20938
20939# Double-quote double-evaled strings.
20940for var in reload_cmds \
20941old_postinstall_cmds \
20942old_postuninstall_cmds \
20943old_archive_cmds \
20944extract_expsyms_cmds \
20945old_archive_from_new_cmds \
20946old_archive_from_expsyms_cmds \
20947archive_cmds \
20948archive_expsym_cmds \
20949module_cmds \
20950module_expsym_cmds \
20951export_symbols_cmds \
20952prelink_cmds \
20953postlink_cmds \
20954postinstall_cmds \
20955postuninstall_cmds \
20956finish_cmds \
20957sys_lib_search_path_spec \
20958configure_time_dlsearch_path \
20959configure_time_lt_sys_library_path; do
20960    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20961    *[\\\\\\\`\\"\\\$]*)
20962      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20963      ;;
20964    *)
20965      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20966      ;;
20967    esac
20968done
20969
20970ac_aux_dir='$ac_aux_dir'
20971
20972# See if we are running on zsh, and set the options that allow our
20973# commands through without removal of \ escapes INIT.
20974if test -n "\${ZSH_VERSION+set}"; then
20975   setopt NO_GLOB_SUBST
20976fi
20977
20978
20979    PACKAGE='$PACKAGE'
20980    VERSION='$VERSION'
20981    RM='$RM'
20982    ofile='$ofile'
20983
20984
20985
20986
20987_ACEOF
20988
20989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20990
20991# Handling of arguments.
20992for ac_config_target in $ac_config_targets
20993do
20994  case $ac_config_target in
20995    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20996    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20997    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20998    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20999    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21000    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21001    "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
21002
21003  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21004  esac
21005done
21006
21007
21008# If the user did not use the arguments to specify the items to instantiate,
21009# then the envvar interface is used.  Set only those that are not.
21010# We use the long form for the default assignment because of an extremely
21011# bizarre bug on SunOS 4.1.3.
21012if $ac_need_defaults; then
21013  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21014  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21015  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21016fi
21017
21018# Have a temporary directory for convenience.  Make it in the build tree
21019# simply because there is no reason against having it here, and in addition,
21020# creating and moving files from /tmp can sometimes cause problems.
21021# Hook for its removal unless debugging.
21022# Note that there is a small window in which the directory will not be cleaned:
21023# after its creation but before its name has been assigned to `$tmp'.
21024$debug ||
21025{
21026  tmp= ac_tmp=
21027  trap 'exit_status=$?
21028  : "${ac_tmp:=$tmp}"
21029  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21030' 0
21031  trap 'as_fn_exit 1' 1 2 13 15
21032}
21033# Create a (secure) tmp directory for tmp files.
21034
21035{
21036  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21037  test -d "$tmp"
21038}  ||
21039{
21040  tmp=./conf$$-$RANDOM
21041  (umask 077 && mkdir "$tmp")
21042} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21043ac_tmp=$tmp
21044
21045# Set up the scripts for CONFIG_FILES section.
21046# No need to generate them if there are no CONFIG_FILES.
21047# This happens for instance with `./config.status config.h'.
21048if test -n "$CONFIG_FILES"; then
21049
21050
21051ac_cr=`echo X | tr X '\015'`
21052# On cygwin, bash can eat \r inside `` if the user requested igncr.
21053# But we know of no other shell where ac_cr would be empty at this
21054# point, so we can use a bashism as a fallback.
21055if test "x$ac_cr" = x; then
21056  eval ac_cr=\$\'\\r\'
21057fi
21058ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21059if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21060  ac_cs_awk_cr='\\r'
21061else
21062  ac_cs_awk_cr=$ac_cr
21063fi
21064
21065echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21066_ACEOF
21067
21068
21069{
21070  echo "cat >conf$$subs.awk <<_ACEOF" &&
21071  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21072  echo "_ACEOF"
21073} >conf$$subs.sh ||
21074  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21075ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21076ac_delim='%!_!# '
21077for ac_last_try in false false false false false :; do
21078  . ./conf$$subs.sh ||
21079    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21080
21081  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21082  if test $ac_delim_n = $ac_delim_num; then
21083    break
21084  elif $ac_last_try; then
21085    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21086  else
21087    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21088  fi
21089done
21090rm -f conf$$subs.sh
21091
21092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21093cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21094_ACEOF
21095sed -n '
21096h
21097s/^/S["/; s/!.*/"]=/
21098p
21099g
21100s/^[^!]*!//
21101:repl
21102t repl
21103s/'"$ac_delim"'$//
21104t delim
21105:nl
21106h
21107s/\(.\{148\}\)..*/\1/
21108t more1
21109s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21110p
21111n
21112b repl
21113:more1
21114s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21115p
21116g
21117s/.\{148\}//
21118t nl
21119:delim
21120h
21121s/\(.\{148\}\)..*/\1/
21122t more2
21123s/["\\]/\\&/g; s/^/"/; s/$/"/
21124p
21125b
21126:more2
21127s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21128p
21129g
21130s/.\{148\}//
21131t delim
21132' <conf$$subs.awk | sed '
21133/^[^""]/{
21134  N
21135  s/\n//
21136}
21137' >>$CONFIG_STATUS || ac_write_fail=1
21138rm -f conf$$subs.awk
21139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21140_ACAWK
21141cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21142  for (key in S) S_is_set[key] = 1
21143  FS = ""
21144
21145}
21146{
21147  line = $ 0
21148  nfields = split(line, field, "@")
21149  substed = 0
21150  len = length(field[1])
21151  for (i = 2; i < nfields; i++) {
21152    key = field[i]
21153    keylen = length(key)
21154    if (S_is_set[key]) {
21155      value = S[key]
21156      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21157      len += length(value) + length(field[++i])
21158      substed = 1
21159    } else
21160      len += 1 + keylen
21161  }
21162
21163  print line
21164}
21165
21166_ACAWK
21167_ACEOF
21168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21169if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21170  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21171else
21172  cat
21173fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21174  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21175_ACEOF
21176
21177# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21178# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21179# trailing colons and then remove the whole line if VPATH becomes empty
21180# (actually we leave an empty line to preserve line numbers).
21181if test "x$srcdir" = x.; then
21182  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21183h
21184s///
21185s/^/:/
21186s/[	 ]*$/:/
21187s/:\$(srcdir):/:/g
21188s/:\${srcdir}:/:/g
21189s/:@srcdir@:/:/g
21190s/^:*//
21191s/:*$//
21192x
21193s/\(=[	 ]*\).*/\1/
21194G
21195s/\n//
21196s/^[^=]*=[	 ]*$//
21197}'
21198fi
21199
21200cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21201fi # test -n "$CONFIG_FILES"
21202
21203# Set up the scripts for CONFIG_HEADERS section.
21204# No need to generate them if there are no CONFIG_HEADERS.
21205# This happens for instance with `./config.status Makefile'.
21206if test -n "$CONFIG_HEADERS"; then
21207cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21208BEGIN {
21209_ACEOF
21210
21211# Transform confdefs.h into an awk script `defines.awk', embedded as
21212# here-document in config.status, that substitutes the proper values into
21213# config.h.in to produce config.h.
21214
21215# Create a delimiter string that does not exist in confdefs.h, to ease
21216# handling of long lines.
21217ac_delim='%!_!# '
21218for ac_last_try in false false :; do
21219  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21220  if test -z "$ac_tt"; then
21221    break
21222  elif $ac_last_try; then
21223    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21224  else
21225    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21226  fi
21227done
21228
21229# For the awk script, D is an array of macro values keyed by name,
21230# likewise P contains macro parameters if any.  Preserve backslash
21231# newline sequences.
21232
21233ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21234sed -n '
21235s/.\{148\}/&'"$ac_delim"'/g
21236t rset
21237:rset
21238s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21239t def
21240d
21241:def
21242s/\\$//
21243t bsnl
21244s/["\\]/\\&/g
21245s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21246D["\1"]=" \3"/p
21247s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21248d
21249:bsnl
21250s/["\\]/\\&/g
21251s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21252D["\1"]=" \3\\\\\\n"\\/p
21253t cont
21254s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21255t cont
21256d
21257:cont
21258n
21259s/.\{148\}/&'"$ac_delim"'/g
21260t clear
21261:clear
21262s/\\$//
21263t bsnlc
21264s/["\\]/\\&/g; s/^/"/; s/$/"/p
21265d
21266:bsnlc
21267s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21268b cont
21269' <confdefs.h | sed '
21270s/'"$ac_delim"'/"\\\
21271"/g' >>$CONFIG_STATUS || ac_write_fail=1
21272
21273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21274  for (key in D) D_is_set[key] = 1
21275  FS = ""
21276}
21277/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21278  line = \$ 0
21279  split(line, arg, " ")
21280  if (arg[1] == "#") {
21281    defundef = arg[2]
21282    mac1 = arg[3]
21283  } else {
21284    defundef = substr(arg[1], 2)
21285    mac1 = arg[2]
21286  }
21287  split(mac1, mac2, "(") #)
21288  macro = mac2[1]
21289  prefix = substr(line, 1, index(line, defundef) - 1)
21290  if (D_is_set[macro]) {
21291    # Preserve the white space surrounding the "#".
21292    print prefix "define", macro P[macro] D[macro]
21293    next
21294  } else {
21295    # Replace #undef with comments.  This is necessary, for example,
21296    # in the case of _POSIX_SOURCE, which is predefined and required
21297    # on some systems where configure will not decide to define it.
21298    if (defundef == "undef") {
21299      print "/*", prefix defundef, macro, "*/"
21300      next
21301    }
21302  }
21303}
21304{ print }
21305_ACAWK
21306_ACEOF
21307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21308  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21309fi # test -n "$CONFIG_HEADERS"
21310
21311
21312eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21313shift
21314for ac_tag
21315do
21316  case $ac_tag in
21317  :[FHLC]) ac_mode=$ac_tag; continue;;
21318  esac
21319  case $ac_mode$ac_tag in
21320  :[FHL]*:*);;
21321  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21322  :[FH]-) ac_tag=-:-;;
21323  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21324  esac
21325  ac_save_IFS=$IFS
21326  IFS=:
21327  set x $ac_tag
21328  IFS=$ac_save_IFS
21329  shift
21330  ac_file=$1
21331  shift
21332
21333  case $ac_mode in
21334  :L) ac_source=$1;;
21335  :[FH])
21336    ac_file_inputs=
21337    for ac_f
21338    do
21339      case $ac_f in
21340      -) ac_f="$ac_tmp/stdin";;
21341      *) # Look for the file first in the build tree, then in the source tree
21342	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21343	 # because $ac_f cannot contain `:'.
21344	 test -f "$ac_f" ||
21345	   case $ac_f in
21346	   [\\/$]*) false;;
21347	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21348	   esac ||
21349	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21350      esac
21351      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21352      as_fn_append ac_file_inputs " '$ac_f'"
21353    done
21354
21355    # Let's still pretend it is `configure' which instantiates (i.e., don't
21356    # use $as_me), people would be surprised to read:
21357    #    /* config.h.  Generated by config.status.  */
21358    configure_input='Generated from '`
21359	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21360	`' by configure.'
21361    if test x"$ac_file" != x-; then
21362      configure_input="$ac_file.  $configure_input"
21363      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21364$as_echo "$as_me: creating $ac_file" >&6;}
21365    fi
21366    # Neutralize special characters interpreted by sed in replacement strings.
21367    case $configure_input in #(
21368    *\&* | *\|* | *\\* )
21369       ac_sed_conf_input=`$as_echo "$configure_input" |
21370       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21371    *) ac_sed_conf_input=$configure_input;;
21372    esac
21373
21374    case $ac_tag in
21375    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21376      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21377    esac
21378    ;;
21379  esac
21380
21381  ac_dir=`$as_dirname -- "$ac_file" ||
21382$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383	 X"$ac_file" : 'X\(//\)[^/]' \| \
21384	 X"$ac_file" : 'X\(//\)$' \| \
21385	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21386$as_echo X"$ac_file" |
21387    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21388	    s//\1/
21389	    q
21390	  }
21391	  /^X\(\/\/\)[^/].*/{
21392	    s//\1/
21393	    q
21394	  }
21395	  /^X\(\/\/\)$/{
21396	    s//\1/
21397	    q
21398	  }
21399	  /^X\(\/\).*/{
21400	    s//\1/
21401	    q
21402	  }
21403	  s/.*/./; q'`
21404  as_dir="$ac_dir"; as_fn_mkdir_p
21405  ac_builddir=.
21406
21407case "$ac_dir" in
21408.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21409*)
21410  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21411  # A ".." for each directory in $ac_dir_suffix.
21412  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21413  case $ac_top_builddir_sub in
21414  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21415  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21416  esac ;;
21417esac
21418ac_abs_top_builddir=$ac_pwd
21419ac_abs_builddir=$ac_pwd$ac_dir_suffix
21420# for backward compatibility:
21421ac_top_builddir=$ac_top_build_prefix
21422
21423case $srcdir in
21424  .)  # We are building in place.
21425    ac_srcdir=.
21426    ac_top_srcdir=$ac_top_builddir_sub
21427    ac_abs_top_srcdir=$ac_pwd ;;
21428  [\\/]* | ?:[\\/]* )  # Absolute name.
21429    ac_srcdir=$srcdir$ac_dir_suffix;
21430    ac_top_srcdir=$srcdir
21431    ac_abs_top_srcdir=$srcdir ;;
21432  *) # Relative name.
21433    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21434    ac_top_srcdir=$ac_top_build_prefix$srcdir
21435    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21436esac
21437ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21438
21439
21440  case $ac_mode in
21441  :F)
21442  #
21443  # CONFIG_FILE
21444  #
21445
21446  case $INSTALL in
21447  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21448  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21449  esac
21450  ac_MKDIR_P=$MKDIR_P
21451  case $MKDIR_P in
21452  [\\/$]* | ?:[\\/]* ) ;;
21453  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21454  esac
21455_ACEOF
21456
21457cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21458# If the template does not know about datarootdir, expand it.
21459# FIXME: This hack should be removed a few years after 2.60.
21460ac_datarootdir_hack=; ac_datarootdir_seen=
21461ac_sed_dataroot='
21462/datarootdir/ {
21463  p
21464  q
21465}
21466/@datadir@/p
21467/@docdir@/p
21468/@infodir@/p
21469/@localedir@/p
21470/@mandir@/p'
21471case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21472*datarootdir*) ac_datarootdir_seen=yes;;
21473*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21474  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21475$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21476_ACEOF
21477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21478  ac_datarootdir_hack='
21479  s&@datadir@&$datadir&g
21480  s&@docdir@&$docdir&g
21481  s&@infodir@&$infodir&g
21482  s&@localedir@&$localedir&g
21483  s&@mandir@&$mandir&g
21484  s&\\\${datarootdir}&$datarootdir&g' ;;
21485esac
21486_ACEOF
21487
21488# Neutralize VPATH when `$srcdir' = `.'.
21489# Shell code in configure.ac might set extrasub.
21490# FIXME: do we really want to maintain this feature?
21491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21492ac_sed_extra="$ac_vpsub
21493$extrasub
21494_ACEOF
21495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21496:t
21497/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21498s|@configure_input@|$ac_sed_conf_input|;t t
21499s&@top_builddir@&$ac_top_builddir_sub&;t t
21500s&@top_build_prefix@&$ac_top_build_prefix&;t t
21501s&@srcdir@&$ac_srcdir&;t t
21502s&@abs_srcdir@&$ac_abs_srcdir&;t t
21503s&@top_srcdir@&$ac_top_srcdir&;t t
21504s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21505s&@builddir@&$ac_builddir&;t t
21506s&@abs_builddir@&$ac_abs_builddir&;t t
21507s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21508s&@INSTALL@&$ac_INSTALL&;t t
21509s&@MKDIR_P@&$ac_MKDIR_P&;t t
21510$ac_datarootdir_hack
21511"
21512eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21513  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21514
21515test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21516  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21517  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21518      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21519  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21520which seems to be undefined.  Please make sure it is defined" >&5
21521$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21522which seems to be undefined.  Please make sure it is defined" >&2;}
21523
21524  rm -f "$ac_tmp/stdin"
21525  case $ac_file in
21526  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21527  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21528  esac \
21529  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21530 ;;
21531  :H)
21532  #
21533  # CONFIG_HEADER
21534  #
21535  if test x"$ac_file" != x-; then
21536    {
21537      $as_echo "/* $configure_input  */" \
21538      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21539    } >"$ac_tmp/config.h" \
21540      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21541    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21542      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21543$as_echo "$as_me: $ac_file is unchanged" >&6;}
21544    else
21545      rm -f "$ac_file"
21546      mv "$ac_tmp/config.h" "$ac_file" \
21547	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21548    fi
21549  else
21550    $as_echo "/* $configure_input  */" \
21551      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21552      || as_fn_error $? "could not create -" "$LINENO" 5
21553  fi
21554# Compute "$ac_file"'s index in $config_headers.
21555_am_arg="$ac_file"
21556_am_stamp_count=1
21557for _am_header in $config_headers :; do
21558  case $_am_header in
21559    $_am_arg | $_am_arg:* )
21560      break ;;
21561    * )
21562      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21563  esac
21564done
21565echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21566$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21567	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21568	 X"$_am_arg" : 'X\(//\)$' \| \
21569	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21570$as_echo X"$_am_arg" |
21571    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21572	    s//\1/
21573	    q
21574	  }
21575	  /^X\(\/\/\)[^/].*/{
21576	    s//\1/
21577	    q
21578	  }
21579	  /^X\(\/\/\)$/{
21580	    s//\1/
21581	    q
21582	  }
21583	  /^X\(\/\).*/{
21584	    s//\1/
21585	    q
21586	  }
21587	  s/.*/./; q'`/stamp-h$_am_stamp_count
21588 ;;
21589
21590  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21591$as_echo "$as_me: executing $ac_file commands" >&6;}
21592 ;;
21593  esac
21594
21595
21596  case $ac_file$ac_mode in
21597    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21598  # Older Autoconf quotes --file arguments for eval, but not when files
21599  # are listed without --file.  Let's play safe and only enable the eval
21600  # if we detect the quoting.
21601  case $CONFIG_FILES in
21602  *\'*) eval set x "$CONFIG_FILES" ;;
21603  *)   set x $CONFIG_FILES ;;
21604  esac
21605  shift
21606  for mf
21607  do
21608    # Strip MF so we end up with the name of the file.
21609    mf=`echo "$mf" | sed -e 's/:.*$//'`
21610    # Check whether this is an Automake generated Makefile or not.
21611    # We used to match only the files named 'Makefile.in', but
21612    # some people rename them; so instead we look at the file content.
21613    # Grep'ing the first line is not enough: some people post-process
21614    # each Makefile.in and add a new line on top of each file to say so.
21615    # Grep'ing the whole file is not good either: AIX grep has a line
21616    # limit of 2048, but all sed's we know have understand at least 4000.
21617    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21618      dirpart=`$as_dirname -- "$mf" ||
21619$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21620	 X"$mf" : 'X\(//\)[^/]' \| \
21621	 X"$mf" : 'X\(//\)$' \| \
21622	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21623$as_echo X"$mf" |
21624    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21625	    s//\1/
21626	    q
21627	  }
21628	  /^X\(\/\/\)[^/].*/{
21629	    s//\1/
21630	    q
21631	  }
21632	  /^X\(\/\/\)$/{
21633	    s//\1/
21634	    q
21635	  }
21636	  /^X\(\/\).*/{
21637	    s//\1/
21638	    q
21639	  }
21640	  s/.*/./; q'`
21641    else
21642      continue
21643    fi
21644    # Extract the definition of DEPDIR, am__include, and am__quote
21645    # from the Makefile without running 'make'.
21646    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21647    test -z "$DEPDIR" && continue
21648    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21649    test -z "$am__include" && continue
21650    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21651    # Find all dependency output files, they are included files with
21652    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21653    # simplest approach to changing $(DEPDIR) to its actual value in the
21654    # expansion.
21655    for file in `sed -n "
21656      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21657	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21658      # Make sure the directory exists.
21659      test -f "$dirpart/$file" && continue
21660      fdir=`$as_dirname -- "$file" ||
21661$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21662	 X"$file" : 'X\(//\)[^/]' \| \
21663	 X"$file" : 'X\(//\)$' \| \
21664	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21665$as_echo X"$file" |
21666    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21667	    s//\1/
21668	    q
21669	  }
21670	  /^X\(\/\/\)[^/].*/{
21671	    s//\1/
21672	    q
21673	  }
21674	  /^X\(\/\/\)$/{
21675	    s//\1/
21676	    q
21677	  }
21678	  /^X\(\/\).*/{
21679	    s//\1/
21680	    q
21681	  }
21682	  s/.*/./; q'`
21683      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21684      # echo "creating $dirpart/$file"
21685      echo '# dummy' > "$dirpart/$file"
21686    done
21687  done
21688}
21689 ;;
21690    "libtool":C)
21691
21692    # See if we are running on zsh, and set the options that allow our
21693    # commands through without removal of \ escapes.
21694    if test -n "${ZSH_VERSION+set}"; then
21695      setopt NO_GLOB_SUBST
21696    fi
21697
21698    cfgfile=${ofile}T
21699    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21700    $RM "$cfgfile"
21701
21702    cat <<_LT_EOF >> "$cfgfile"
21703#! $SHELL
21704# Generated automatically by $as_me ($PACKAGE) $VERSION
21705# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21706
21707# Provide generalized library-building support services.
21708# Written by Gordon Matzigkeit, 1996
21709
21710# Copyright (C) 2014 Free Software Foundation, Inc.
21711# This is free software; see the source for copying conditions.  There is NO
21712# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21713
21714# GNU Libtool is free software; you can redistribute it and/or modify
21715# it under the terms of the GNU General Public License as published by
21716# the Free Software Foundation; either version 2 of of the License, or
21717# (at your option) any later version.
21718#
21719# As a special exception to the GNU General Public License, if you
21720# distribute this file as part of a program or library that is built
21721# using GNU Libtool, you may include this file under the  same
21722# distribution terms that you use for the rest of that program.
21723#
21724# GNU Libtool is distributed in the hope that it will be useful, but
21725# WITHOUT ANY WARRANTY; without even the implied warranty of
21726# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21727# GNU General Public License for more details.
21728#
21729# You should have received a copy of the GNU General Public License
21730# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21731
21732
21733# The names of the tagged configurations supported by this script.
21734available_tags=''
21735
21736# Configured defaults for sys_lib_dlsearch_path munging.
21737: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21738
21739# ### BEGIN LIBTOOL CONFIG
21740
21741# Whether or not to build static libraries.
21742build_old_libs=$enable_static
21743
21744# Which release of libtool.m4 was used?
21745macro_version=$macro_version
21746macro_revision=$macro_revision
21747
21748# Whether or not to build shared libraries.
21749build_libtool_libs=$enable_shared
21750
21751# What type of objects to build.
21752pic_mode=$pic_mode
21753
21754# Whether or not to optimize for fast installation.
21755fast_install=$enable_fast_install
21756
21757# Shared archive member basename,for filename based shared library versioning on AIX.
21758shared_archive_member_spec=$shared_archive_member_spec
21759
21760# Shell to use when invoking shell scripts.
21761SHELL=$lt_SHELL
21762
21763# An echo program that protects backslashes.
21764ECHO=$lt_ECHO
21765
21766# The PATH separator for the build system.
21767PATH_SEPARATOR=$lt_PATH_SEPARATOR
21768
21769# The host system.
21770host_alias=$host_alias
21771host=$host
21772host_os=$host_os
21773
21774# The build system.
21775build_alias=$build_alias
21776build=$build
21777build_os=$build_os
21778
21779# A sed program that does not truncate output.
21780SED=$lt_SED
21781
21782# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21783Xsed="\$SED -e 1s/^X//"
21784
21785# A grep program that handles long lines.
21786GREP=$lt_GREP
21787
21788# An ERE matcher.
21789EGREP=$lt_EGREP
21790
21791# A literal string matcher.
21792FGREP=$lt_FGREP
21793
21794# A BSD- or MS-compatible name lister.
21795NM=$lt_NM
21796
21797# Whether we need soft or hard links.
21798LN_S=$lt_LN_S
21799
21800# What is the maximum length of a command?
21801max_cmd_len=$max_cmd_len
21802
21803# Object file suffix (normally "o").
21804objext=$ac_objext
21805
21806# Executable file suffix (normally "").
21807exeext=$exeext
21808
21809# whether the shell understands "unset".
21810lt_unset=$lt_unset
21811
21812# turn spaces into newlines.
21813SP2NL=$lt_lt_SP2NL
21814
21815# turn newlines into spaces.
21816NL2SP=$lt_lt_NL2SP
21817
21818# convert \$build file names to \$host format.
21819to_host_file_cmd=$lt_cv_to_host_file_cmd
21820
21821# convert \$build files to toolchain format.
21822to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21823
21824# An object symbol dumper.
21825OBJDUMP=$lt_OBJDUMP
21826
21827# Method to check whether dependent libraries are shared objects.
21828deplibs_check_method=$lt_deplibs_check_method
21829
21830# Command to use when deplibs_check_method = "file_magic".
21831file_magic_cmd=$lt_file_magic_cmd
21832
21833# How to find potential files when deplibs_check_method = "file_magic".
21834file_magic_glob=$lt_file_magic_glob
21835
21836# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21837want_nocaseglob=$lt_want_nocaseglob
21838
21839# DLL creation program.
21840DLLTOOL=$lt_DLLTOOL
21841
21842# Command to associate shared and link libraries.
21843sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21844
21845# The archiver.
21846AR=$lt_AR
21847
21848# Flags to create an archive.
21849AR_FLAGS=$lt_AR_FLAGS
21850
21851# How to feed a file listing to the archiver.
21852archiver_list_spec=$lt_archiver_list_spec
21853
21854# A symbol stripping program.
21855STRIP=$lt_STRIP
21856
21857# Commands used to install an old-style archive.
21858RANLIB=$lt_RANLIB
21859old_postinstall_cmds=$lt_old_postinstall_cmds
21860old_postuninstall_cmds=$lt_old_postuninstall_cmds
21861
21862# Whether to use a lock for old archive extraction.
21863lock_old_archive_extraction=$lock_old_archive_extraction
21864
21865# A C compiler.
21866LTCC=$lt_CC
21867
21868# LTCC compiler flags.
21869LTCFLAGS=$lt_CFLAGS
21870
21871# Take the output of nm and produce a listing of raw symbols and C names.
21872global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21873
21874# Transform the output of nm in a proper C declaration.
21875global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21876
21877# Transform the output of nm into a list of symbols to manually relocate.
21878global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21879
21880# Transform the output of nm in a C name address pair.
21881global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21882
21883# Transform the output of nm in a C name address pair when lib prefix is needed.
21884global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21885
21886# The name lister interface.
21887nm_interface=$lt_lt_cv_nm_interface
21888
21889# Specify filename containing input files for \$NM.
21890nm_file_list_spec=$lt_nm_file_list_spec
21891
21892# The root where to search for dependent libraries,and where our libraries should be installed.
21893lt_sysroot=$lt_sysroot
21894
21895# Command to truncate a binary pipe.
21896lt_truncate_bin=$lt_lt_cv_truncate_bin
21897
21898# The name of the directory that contains temporary libtool files.
21899objdir=$objdir
21900
21901# Used to examine libraries when file_magic_cmd begins with "file".
21902MAGIC_CMD=$MAGIC_CMD
21903
21904# Must we lock files when doing compilation?
21905need_locks=$lt_need_locks
21906
21907# Manifest tool.
21908MANIFEST_TOOL=$lt_MANIFEST_TOOL
21909
21910# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21911DSYMUTIL=$lt_DSYMUTIL
21912
21913# Tool to change global to local symbols on Mac OS X.
21914NMEDIT=$lt_NMEDIT
21915
21916# Tool to manipulate fat objects and archives on Mac OS X.
21917LIPO=$lt_LIPO
21918
21919# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21920OTOOL=$lt_OTOOL
21921
21922# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21923OTOOL64=$lt_OTOOL64
21924
21925# Old archive suffix (normally "a").
21926libext=$libext
21927
21928# Shared library suffix (normally ".so").
21929shrext_cmds=$lt_shrext_cmds
21930
21931# The commands to extract the exported symbol list from a shared archive.
21932extract_expsyms_cmds=$lt_extract_expsyms_cmds
21933
21934# Variables whose values should be saved in libtool wrapper scripts and
21935# restored at link time.
21936variables_saved_for_relink=$lt_variables_saved_for_relink
21937
21938# Do we need the "lib" prefix for modules?
21939need_lib_prefix=$need_lib_prefix
21940
21941# Do we need a version for libraries?
21942need_version=$need_version
21943
21944# Library versioning type.
21945version_type=$version_type
21946
21947# Shared library runtime path variable.
21948runpath_var=$runpath_var
21949
21950# Shared library path variable.
21951shlibpath_var=$shlibpath_var
21952
21953# Is shlibpath searched before the hard-coded library search path?
21954shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21955
21956# Format of library name prefix.
21957libname_spec=$lt_libname_spec
21958
21959# List of archive names.  First name is the real one, the rest are links.
21960# The last name is the one that the linker finds with -lNAME
21961library_names_spec=$lt_library_names_spec
21962
21963# The coded name of the library, if different from the real name.
21964soname_spec=$lt_soname_spec
21965
21966# Permission mode override for installation of shared libraries.
21967install_override_mode=$lt_install_override_mode
21968
21969# Command to use after installation of a shared archive.
21970postinstall_cmds=$lt_postinstall_cmds
21971
21972# Command to use after uninstallation of a shared archive.
21973postuninstall_cmds=$lt_postuninstall_cmds
21974
21975# Commands used to finish a libtool library installation in a directory.
21976finish_cmds=$lt_finish_cmds
21977
21978# As "finish_cmds", except a single script fragment to be evaled but
21979# not shown.
21980finish_eval=$lt_finish_eval
21981
21982# Whether we should hardcode library paths into libraries.
21983hardcode_into_libs=$hardcode_into_libs
21984
21985# Compile-time system search path for libraries.
21986sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21987
21988# Detected run-time system search path for libraries.
21989sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21990
21991# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21992configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21993
21994# Whether dlopen is supported.
21995dlopen_support=$enable_dlopen
21996
21997# Whether dlopen of programs is supported.
21998dlopen_self=$enable_dlopen_self
21999
22000# Whether dlopen of statically linked programs is supported.
22001dlopen_self_static=$enable_dlopen_self_static
22002
22003# Commands to strip libraries.
22004old_striplib=$lt_old_striplib
22005striplib=$lt_striplib
22006
22007
22008# The linker used to build libraries.
22009LD=$lt_LD
22010
22011# How to create reloadable object files.
22012reload_flag=$lt_reload_flag
22013reload_cmds=$lt_reload_cmds
22014
22015# Commands used to build an old-style archive.
22016old_archive_cmds=$lt_old_archive_cmds
22017
22018# A language specific compiler.
22019CC=$lt_compiler
22020
22021# Is the compiler the GNU compiler?
22022with_gcc=$GCC
22023
22024# Compiler flag to turn off builtin functions.
22025no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22026
22027# Additional compiler flags for building library objects.
22028pic_flag=$lt_lt_prog_compiler_pic
22029
22030# How to pass a linker flag through the compiler.
22031wl=$lt_lt_prog_compiler_wl
22032
22033# Compiler flag to prevent dynamic linking.
22034link_static_flag=$lt_lt_prog_compiler_static
22035
22036# Does compiler simultaneously support -c and -o options?
22037compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22038
22039# Whether or not to add -lc for building shared libraries.
22040build_libtool_need_lc=$archive_cmds_need_lc
22041
22042# Whether or not to disallow shared libs when runtime libs are static.
22043allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22044
22045# Compiler flag to allow reflexive dlopens.
22046export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22047
22048# Compiler flag to generate shared objects directly from archives.
22049whole_archive_flag_spec=$lt_whole_archive_flag_spec
22050
22051# Whether the compiler copes with passing no objects directly.
22052compiler_needs_object=$lt_compiler_needs_object
22053
22054# Create an old-style archive from a shared archive.
22055old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22056
22057# Create a temporary old-style archive to link instead of a shared archive.
22058old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22059
22060# Commands used to build a shared archive.
22061archive_cmds=$lt_archive_cmds
22062archive_expsym_cmds=$lt_archive_expsym_cmds
22063
22064# Commands used to build a loadable module if different from building
22065# a shared archive.
22066module_cmds=$lt_module_cmds
22067module_expsym_cmds=$lt_module_expsym_cmds
22068
22069# Whether we are building with GNU ld or not.
22070with_gnu_ld=$lt_with_gnu_ld
22071
22072# Flag that allows shared libraries with undefined symbols to be built.
22073allow_undefined_flag=$lt_allow_undefined_flag
22074
22075# Flag that enforces no undefined symbols.
22076no_undefined_flag=$lt_no_undefined_flag
22077
22078# Flag to hardcode \$libdir into a binary during linking.
22079# This must work even if \$libdir does not exist
22080hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22081
22082# Whether we need a single "-rpath" flag with a separated argument.
22083hardcode_libdir_separator=$lt_hardcode_libdir_separator
22084
22085# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22086# DIR into the resulting binary.
22087hardcode_direct=$hardcode_direct
22088
22089# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22090# DIR into the resulting binary and the resulting library dependency is
22091# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22092# library is relocated.
22093hardcode_direct_absolute=$hardcode_direct_absolute
22094
22095# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22096# into the resulting binary.
22097hardcode_minus_L=$hardcode_minus_L
22098
22099# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22100# into the resulting binary.
22101hardcode_shlibpath_var=$hardcode_shlibpath_var
22102
22103# Set to "yes" if building a shared library automatically hardcodes DIR
22104# into the library and all subsequent libraries and executables linked
22105# against it.
22106hardcode_automatic=$hardcode_automatic
22107
22108# Set to yes if linker adds runtime paths of dependent libraries
22109# to runtime path list.
22110inherit_rpath=$inherit_rpath
22111
22112# Whether libtool must link a program against all its dependency libraries.
22113link_all_deplibs=$link_all_deplibs
22114
22115# Set to "yes" if exported symbols are required.
22116always_export_symbols=$always_export_symbols
22117
22118# The commands to list exported symbols.
22119export_symbols_cmds=$lt_export_symbols_cmds
22120
22121# Symbols that should not be listed in the preloaded symbols.
22122exclude_expsyms=$lt_exclude_expsyms
22123
22124# Symbols that must always be exported.
22125include_expsyms=$lt_include_expsyms
22126
22127# Commands necessary for linking programs (against libraries) with templates.
22128prelink_cmds=$lt_prelink_cmds
22129
22130# Commands necessary for finishing linking programs.
22131postlink_cmds=$lt_postlink_cmds
22132
22133# Specify filename containing input files.
22134file_list_spec=$lt_file_list_spec
22135
22136# How to hardcode a shared library path into an executable.
22137hardcode_action=$hardcode_action
22138
22139# ### END LIBTOOL CONFIG
22140
22141_LT_EOF
22142
22143    cat <<'_LT_EOF' >> "$cfgfile"
22144
22145# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22146
22147# func_munge_path_list VARIABLE PATH
22148# -----------------------------------
22149# VARIABLE is name of variable containing _space_ separated list of
22150# directories to be munged by the contents of PATH, which is string
22151# having a format:
22152# "DIR[:DIR]:"
22153#       string "DIR[ DIR]" will be prepended to VARIABLE
22154# ":DIR[:DIR]"
22155#       string "DIR[ DIR]" will be appended to VARIABLE
22156# "DIRP[:DIRP]::[DIRA:]DIRA"
22157#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22158#       "DIRA[ DIRA]" will be appended to VARIABLE
22159# "DIR[:DIR]"
22160#       VARIABLE will be replaced by "DIR[ DIR]"
22161func_munge_path_list ()
22162{
22163    case x$2 in
22164    x)
22165        ;;
22166    *:)
22167        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22168        ;;
22169    x:*)
22170        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22171        ;;
22172    *::*)
22173        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22174        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22175        ;;
22176    *)
22177        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22178        ;;
22179    esac
22180}
22181
22182
22183# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22184func_cc_basename ()
22185{
22186    for cc_temp in $*""; do
22187      case $cc_temp in
22188        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22189        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22190        \-*) ;;
22191        *) break;;
22192      esac
22193    done
22194    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22195}
22196
22197
22198# ### END FUNCTIONS SHARED WITH CONFIGURE
22199
22200_LT_EOF
22201
22202  case $host_os in
22203  aix3*)
22204    cat <<\_LT_EOF >> "$cfgfile"
22205# AIX sometimes has problems with the GCC collect2 program.  For some
22206# reason, if we set the COLLECT_NAMES environment variable, the problems
22207# vanish in a puff of smoke.
22208if test set != "${COLLECT_NAMES+set}"; then
22209  COLLECT_NAMES=
22210  export COLLECT_NAMES
22211fi
22212_LT_EOF
22213    ;;
22214  esac
22215
22216
22217ltmain=$ac_aux_dir/ltmain.sh
22218
22219
22220  # We use sed instead of cat because bash on DJGPP gets confused if
22221  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22222  # text mode, it properly converts lines to CR/LF.  This bash problem
22223  # is reportedly fixed, but why not run on old versions too?
22224  sed '$q' "$ltmain" >> "$cfgfile" \
22225     || (rm -f "$cfgfile"; exit 1)
22226
22227   mv -f "$cfgfile" "$ofile" ||
22228    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22229  chmod +x "$ofile"
22230
22231 ;;
22232
22233  esac
22234done # for ac_tag
22235
22236
22237as_fn_exit 0
22238_ACEOF
22239ac_clean_files=$ac_clean_files_save
22240
22241test $ac_write_fail = 0 ||
22242  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22243
22244
22245# configure is writing to config.log, and then calls config.status.
22246# config.status does its own redirection, appending to config.log.
22247# Unfortunately, on DOS this fails, as config.log is still kept open
22248# by configure, so config.status won't be able to write to it; its
22249# output is simply discarded.  So we exec the FD to /dev/null,
22250# effectively closing config.log, so it can be properly (re)opened and
22251# appended to by config.status.  When coming back to configure, we
22252# need to make the FD available again.
22253if test "$no_create" != yes; then
22254  ac_cs_success=:
22255  ac_config_status_args=
22256  test "$silent" = yes &&
22257    ac_config_status_args="$ac_config_status_args --quiet"
22258  exec 5>/dev/null
22259  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22260  exec 5>>config.log
22261  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22262  # would make configure fail if this is the last instruction.
22263  $ac_cs_success || as_fn_exit 1
22264fi
22265if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22266  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22267$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22268fi
22269
22270
22271echo ""
22272echo "        prefix:              $prefix"
22273echo "        exec_prefix:         $exec_prefix"
22274echo "        libdir:              $libdir"
22275echo "        includedir:          $includedir"
22276echo "        configdir:           $configdir"
22277
22278echo ""
22279echo "        CFLAGS:              $CFLAGS"
22280echo "        CXXFLAGS:            $CXXFLAGS"
22281echo "        Macros:              $DEFINES"
22282
22283echo ""
22284echo "        Run '${MAKE-make}' to build xf86-video-ati"
22285echo ""
22286