configure revision a56d54ac
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-r128 6.10.2.
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-r128'
593PACKAGE_TARNAME='xf86-video-r128'
594PACKAGE_VERSION='6.10.2'
595PACKAGE_STRING='xf86-video-r128 6.10.2'
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
642XSERVER_LIBPCIACCESS_FALSE
643XSERVER_LIBPCIACCESS_TRUE
644PCIACCESS_LIBS
645PCIACCESS_CFLAGS
646USE_EXA_FALSE
647USE_EXA_TRUE
648XAA_FALSE
649XAA_TRUE
650DRI_LIBS
651DRI_CFLAGS
652DRI_FALSE
653DRI_TRUE
654HAVE_XEXTPROTO_71_FALSE
655HAVE_XEXTPROTO_71_TRUE
656XEXT_LIBS
657XEXT_CFLAGS
658XORG_LIBS
659XORG_CFLAGS
660LT_SYS_LIBRARY_PATH
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666MANIFEST_TOOL
667RANLIB
668ac_ct_AR
669AR
670DLLTOOL
671OBJDUMP
672LN_S
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
678LIBTOOL
679MAINT
680MAINTAINER_MODE_FALSE
681MAINTAINER_MODE_TRUE
682MAN_SUBSTS
683XORG_MAN_PAGE
684ADMIN_MAN_DIR
685DRIVER_MAN_DIR
686MISC_MAN_DIR
687FILE_MAN_DIR
688LIB_MAN_DIR
689APP_MAN_DIR
690ADMIN_MAN_SUFFIX
691DRIVER_MAN_SUFFIX
692MISC_MAN_SUFFIX
693FILE_MAN_SUFFIX
694LIB_MAN_SUFFIX
695APP_MAN_SUFFIX
696SED
697host_os
698host_vendor
699host_cpu
700host
701build_os
702build_vendor
703build_cpu
704build
705INSTALL_CMD
706PKG_CONFIG_LIBDIR
707PKG_CONFIG_PATH
708PKG_CONFIG
709CHANGELOG_CMD
710STRICT_CFLAGS
711CWARNFLAGS
712BASE_CFLAGS
713EGREP
714GREP
715CPP
716am__fastdepCC_FALSE
717am__fastdepCC_TRUE
718CCDEPMODE
719am__nodep
720AMDEPBACKSLASH
721AMDEP_FALSE
722AMDEP_TRUE
723am__quote
724am__include
725DEPDIR
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733AM_BACKSLASH
734AM_DEFAULT_VERBOSITY
735AM_DEFAULT_V
736AM_V
737am__untar
738am__tar
739AMTAR
740am__leading_dot
741SET_MAKE
742AWK
743mkdir_p
744MKDIR_P
745INSTALL_STRIP_PROGRAM
746STRIP
747install_sh
748MAKEINFO
749AUTOHEADER
750AUTOMAKE
751AUTOCONF
752ACLOCAL
753VERSION
754PACKAGE
755CYGPATH_W
756am__isrc
757INSTALL_DATA
758INSTALL_SCRIPT
759INSTALL_PROGRAM
760target_alias
761host_alias
762build_alias
763LIBS
764ECHO_T
765ECHO_N
766ECHO_C
767DEFS
768mandir
769localedir
770libdir
771psdir
772pdfdir
773dvidir
774htmldir
775infodir
776docdir
777oldincludedir
778includedir
779localstatedir
780sharedstatedir
781sysconfdir
782datadir
783datarootdir
784libexecdir
785sbindir
786bindir
787program_transform_name
788prefix
789exec_prefix
790PACKAGE_URL
791PACKAGE_BUGREPORT
792PACKAGE_STRING
793PACKAGE_VERSION
794PACKAGE_TARNAME
795PACKAGE_NAME
796PATH_SEPARATOR
797SHELL'
798ac_subst_files=''
799ac_user_opts='
800enable_option_checking
801enable_silent_rules
802enable_dependency_tracking
803enable_selective_werror
804enable_strict_compilation
805enable_maintainer_mode
806enable_static
807enable_shared
808with_pic
809enable_fast_install
810with_aix_soname
811with_gnu_ld
812with_sysroot
813enable_libtool_lock
814with_xorg_module_dir
815enable_dri
816enable_exa
817enable_xaa
818'
819      ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
825LIBS
826CPPFLAGS
827CPP
828PKG_CONFIG
829PKG_CONFIG_PATH
830PKG_CONFIG_LIBDIR
831LT_SYS_LIBRARY_PATH
832XORG_CFLAGS
833XORG_LIBS
834XEXT_CFLAGS
835XEXT_LIBS
836DRI_CFLAGS
837DRI_LIBS
838PCIACCESS_CFLAGS
839PCIACCESS_LIBS'
840
841
842# Initialize some variables set by options.
843ac_init_help=
844ac_init_version=false
845ac_unrecognized_opts=
846ac_unrecognized_sep=
847# The variables have the same names as the options, with
848# dashes changed to underlines.
849cache_file=/dev/null
850exec_prefix=NONE
851no_create=
852no_recursion=
853prefix=NONE
854program_prefix=NONE
855program_suffix=NONE
856program_transform_name=s,x,x,
857silent=
858site=
859srcdir=
860verbose=
861x_includes=NONE
862x_libraries=NONE
863
864# Installation directory options.
865# These are left unexpanded so users can "make install exec_prefix=/foo"
866# and all the variables that are supposed to be based on exec_prefix
867# by default will actually change.
868# Use braces instead of parens because sh, perl, etc. also accept them.
869# (The list follows the same order as the GNU Coding Standards.)
870bindir='${exec_prefix}/bin'
871sbindir='${exec_prefix}/sbin'
872libexecdir='${exec_prefix}/libexec'
873datarootdir='${prefix}/share'
874datadir='${datarootdir}'
875sysconfdir='${prefix}/etc'
876sharedstatedir='${prefix}/com'
877localstatedir='${prefix}/var'
878includedir='${prefix}/include'
879oldincludedir='/usr/include'
880docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881infodir='${datarootdir}/info'
882htmldir='${docdir}'
883dvidir='${docdir}'
884pdfdir='${docdir}'
885psdir='${docdir}'
886libdir='${exec_prefix}/lib'
887localedir='${datarootdir}/locale'
888mandir='${datarootdir}/man'
889
890ac_prev=
891ac_dashdash=
892for ac_option
893do
894  # If the previous option needs an argument, assign it.
895  if test -n "$ac_prev"; then
896    eval $ac_prev=\$ac_option
897    ac_prev=
898    continue
899  fi
900
901  case $ac_option in
902  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903  *=)   ac_optarg= ;;
904  *)    ac_optarg=yes ;;
905  esac
906
907  # Accept the important Cygnus configure options, so we can diagnose typos.
908
909  case $ac_dashdash$ac_option in
910  --)
911    ac_dashdash=yes ;;
912
913  -bindir | --bindir | --bindi | --bind | --bin | --bi)
914    ac_prev=bindir ;;
915  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916    bindir=$ac_optarg ;;
917
918  -build | --build | --buil | --bui | --bu)
919    ac_prev=build_alias ;;
920  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921    build_alias=$ac_optarg ;;
922
923  -cache-file | --cache-file | --cache-fil | --cache-fi \
924  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925    ac_prev=cache_file ;;
926  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928    cache_file=$ac_optarg ;;
929
930  --config-cache | -C)
931    cache_file=config.cache ;;
932
933  -datadir | --datadir | --datadi | --datad)
934    ac_prev=datadir ;;
935  -datadir=* | --datadir=* | --datadi=* | --datad=*)
936    datadir=$ac_optarg ;;
937
938  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939  | --dataroo | --dataro | --datar)
940    ac_prev=datarootdir ;;
941  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943    datarootdir=$ac_optarg ;;
944
945  -disable-* | --disable-*)
946    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947    # Reject names that are not valid shell variable names.
948    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949      as_fn_error $? "invalid feature name: $ac_useropt"
950    ac_useropt_orig=$ac_useropt
951    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952    case $ac_user_opts in
953      *"
954"enable_$ac_useropt"
955"*) ;;
956      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957	 ac_unrecognized_sep=', ';;
958    esac
959    eval enable_$ac_useropt=no ;;
960
961  -docdir | --docdir | --docdi | --doc | --do)
962    ac_prev=docdir ;;
963  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964    docdir=$ac_optarg ;;
965
966  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967    ac_prev=dvidir ;;
968  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969    dvidir=$ac_optarg ;;
970
971  -enable-* | --enable-*)
972    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973    # Reject names that are not valid shell variable names.
974    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975      as_fn_error $? "invalid feature name: $ac_useropt"
976    ac_useropt_orig=$ac_useropt
977    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978    case $ac_user_opts in
979      *"
980"enable_$ac_useropt"
981"*) ;;
982      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983	 ac_unrecognized_sep=', ';;
984    esac
985    eval enable_$ac_useropt=\$ac_optarg ;;
986
987  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989  | --exec | --exe | --ex)
990    ac_prev=exec_prefix ;;
991  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993  | --exec=* | --exe=* | --ex=*)
994    exec_prefix=$ac_optarg ;;
995
996  -gas | --gas | --ga | --g)
997    # Obsolete; use --with-gas.
998    with_gas=yes ;;
999
1000  -help | --help | --hel | --he | -h)
1001    ac_init_help=long ;;
1002  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003    ac_init_help=recursive ;;
1004  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005    ac_init_help=short ;;
1006
1007  -host | --host | --hos | --ho)
1008    ac_prev=host_alias ;;
1009  -host=* | --host=* | --hos=* | --ho=*)
1010    host_alias=$ac_optarg ;;
1011
1012  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013    ac_prev=htmldir ;;
1014  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015  | --ht=*)
1016    htmldir=$ac_optarg ;;
1017
1018  -includedir | --includedir | --includedi | --included | --include \
1019  | --includ | --inclu | --incl | --inc)
1020    ac_prev=includedir ;;
1021  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022  | --includ=* | --inclu=* | --incl=* | --inc=*)
1023    includedir=$ac_optarg ;;
1024
1025  -infodir | --infodir | --infodi | --infod | --info | --inf)
1026    ac_prev=infodir ;;
1027  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028    infodir=$ac_optarg ;;
1029
1030  -libdir | --libdir | --libdi | --libd)
1031    ac_prev=libdir ;;
1032  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033    libdir=$ac_optarg ;;
1034
1035  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036  | --libexe | --libex | --libe)
1037    ac_prev=libexecdir ;;
1038  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039  | --libexe=* | --libex=* | --libe=*)
1040    libexecdir=$ac_optarg ;;
1041
1042  -localedir | --localedir | --localedi | --localed | --locale)
1043    ac_prev=localedir ;;
1044  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045    localedir=$ac_optarg ;;
1046
1047  -localstatedir | --localstatedir | --localstatedi | --localstated \
1048  | --localstate | --localstat | --localsta | --localst | --locals)
1049    ac_prev=localstatedir ;;
1050  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052    localstatedir=$ac_optarg ;;
1053
1054  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055    ac_prev=mandir ;;
1056  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057    mandir=$ac_optarg ;;
1058
1059  -nfp | --nfp | --nf)
1060    # Obsolete; use --without-fp.
1061    with_fp=no ;;
1062
1063  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064  | --no-cr | --no-c | -n)
1065    no_create=yes ;;
1066
1067  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069    no_recursion=yes ;;
1070
1071  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073  | --oldin | --oldi | --old | --ol | --o)
1074    ac_prev=oldincludedir ;;
1075  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078    oldincludedir=$ac_optarg ;;
1079
1080  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081    ac_prev=prefix ;;
1082  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083    prefix=$ac_optarg ;;
1084
1085  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086  | --program-pre | --program-pr | --program-p)
1087    ac_prev=program_prefix ;;
1088  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090    program_prefix=$ac_optarg ;;
1091
1092  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093  | --program-suf | --program-su | --program-s)
1094    ac_prev=program_suffix ;;
1095  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097    program_suffix=$ac_optarg ;;
1098
1099  -program-transform-name | --program-transform-name \
1100  | --program-transform-nam | --program-transform-na \
1101  | --program-transform-n | --program-transform- \
1102  | --program-transform | --program-transfor \
1103  | --program-transfo | --program-transf \
1104  | --program-trans | --program-tran \
1105  | --progr-tra | --program-tr | --program-t)
1106    ac_prev=program_transform_name ;;
1107  -program-transform-name=* | --program-transform-name=* \
1108  | --program-transform-nam=* | --program-transform-na=* \
1109  | --program-transform-n=* | --program-transform-=* \
1110  | --program-transform=* | --program-transfor=* \
1111  | --program-transfo=* | --program-transf=* \
1112  | --program-trans=* | --program-tran=* \
1113  | --progr-tra=* | --program-tr=* | --program-t=*)
1114    program_transform_name=$ac_optarg ;;
1115
1116  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117    ac_prev=pdfdir ;;
1118  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119    pdfdir=$ac_optarg ;;
1120
1121  -psdir | --psdir | --psdi | --psd | --ps)
1122    ac_prev=psdir ;;
1123  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124    psdir=$ac_optarg ;;
1125
1126  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127  | -silent | --silent | --silen | --sile | --sil)
1128    silent=yes ;;
1129
1130  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131    ac_prev=sbindir ;;
1132  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133  | --sbi=* | --sb=*)
1134    sbindir=$ac_optarg ;;
1135
1136  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138  | --sharedst | --shareds | --shared | --share | --shar \
1139  | --sha | --sh)
1140    ac_prev=sharedstatedir ;;
1141  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144  | --sha=* | --sh=*)
1145    sharedstatedir=$ac_optarg ;;
1146
1147  -site | --site | --sit)
1148    ac_prev=site ;;
1149  -site=* | --site=* | --sit=*)
1150    site=$ac_optarg ;;
1151
1152  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153    ac_prev=srcdir ;;
1154  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155    srcdir=$ac_optarg ;;
1156
1157  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158  | --syscon | --sysco | --sysc | --sys | --sy)
1159    ac_prev=sysconfdir ;;
1160  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162    sysconfdir=$ac_optarg ;;
1163
1164  -target | --target | --targe | --targ | --tar | --ta | --t)
1165    ac_prev=target_alias ;;
1166  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167    target_alias=$ac_optarg ;;
1168
1169  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170    verbose=yes ;;
1171
1172  -version | --version | --versio | --versi | --vers | -V)
1173    ac_init_version=: ;;
1174
1175  -with-* | --with-*)
1176    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177    # Reject names that are not valid shell variable names.
1178    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179      as_fn_error $? "invalid package name: $ac_useropt"
1180    ac_useropt_orig=$ac_useropt
1181    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182    case $ac_user_opts in
1183      *"
1184"with_$ac_useropt"
1185"*) ;;
1186      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187	 ac_unrecognized_sep=', ';;
1188    esac
1189    eval with_$ac_useropt=\$ac_optarg ;;
1190
1191  -without-* | --without-*)
1192    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193    # Reject names that are not valid shell variable names.
1194    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195      as_fn_error $? "invalid package name: $ac_useropt"
1196    ac_useropt_orig=$ac_useropt
1197    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198    case $ac_user_opts in
1199      *"
1200"with_$ac_useropt"
1201"*) ;;
1202      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203	 ac_unrecognized_sep=', ';;
1204    esac
1205    eval with_$ac_useropt=no ;;
1206
1207  --x)
1208    # Obsolete; use --with-x.
1209    with_x=yes ;;
1210
1211  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212  | --x-incl | --x-inc | --x-in | --x-i)
1213    ac_prev=x_includes ;;
1214  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216    x_includes=$ac_optarg ;;
1217
1218  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220    ac_prev=x_libraries ;;
1221  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223    x_libraries=$ac_optarg ;;
1224
1225  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information"
1227    ;;
1228
1229  *=*)
1230    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231    # Reject names that are not valid shell variable names.
1232    case $ac_envvar in #(
1233      '' | [0-9]* | *[!_$as_cr_alnum]* )
1234      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235    esac
1236    eval $ac_envvar=\$ac_optarg
1237    export $ac_envvar ;;
1238
1239  *)
1240    # FIXME: should be removed in autoconf 3.0.
1241    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245    ;;
1246
1247  esac
1248done
1249
1250if test -n "$ac_prev"; then
1251  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252  as_fn_error $? "missing argument to $ac_option"
1253fi
1254
1255if test -n "$ac_unrecognized_opts"; then
1256  case $enable_option_checking in
1257    no) ;;
1258    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260  esac
1261fi
1262
1263# Check all directory arguments for consistency.
1264for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265		datadir sysconfdir sharedstatedir localstatedir includedir \
1266		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267		libdir localedir mandir
1268do
1269  eval ac_val=\$$ac_var
1270  # Remove trailing slashes.
1271  case $ac_val in
1272    */ )
1273      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274      eval $ac_var=\$ac_val;;
1275  esac
1276  # Be sure to have absolute directory names.
1277  case $ac_val in
1278    [\\/$]* | ?:[\\/]* )  continue;;
1279    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280  esac
1281  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282done
1283
1284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
1290
1291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293  if test "x$build_alias" = x; then
1294    cross_compiling=maybe
1295  elif test "x$build_alias" != "x$host_alias"; then
1296    cross_compiling=yes
1297  fi
1298fi
1299
1300ac_tool_prefix=
1301test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303test "$silent" = yes && exec 6>/dev/null
1304
1305
1306ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307ac_ls_di=`ls -di .` &&
1308ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309  as_fn_error $? "working directory cannot be determined"
1310test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311  as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314# Find the source files, if location was not specified.
1315if test -z "$srcdir"; then
1316  ac_srcdir_defaulted=yes
1317  # Try the directory containing this script, then the parent directory.
1318  ac_confdir=`$as_dirname -- "$as_myself" ||
1319$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320	 X"$as_myself" : 'X\(//\)[^/]' \| \
1321	 X"$as_myself" : 'X\(//\)$' \| \
1322	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323$as_echo X"$as_myself" |
1324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\/\)[^/].*/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)$/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\).*/{
1337	    s//\1/
1338	    q
1339	  }
1340	  s/.*/./; q'`
1341  srcdir=$ac_confdir
1342  if test ! -r "$srcdir/$ac_unique_file"; then
1343    srcdir=..
1344  fi
1345else
1346  ac_srcdir_defaulted=no
1347fi
1348if test ! -r "$srcdir/$ac_unique_file"; then
1349  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351fi
1352ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353ac_abs_confdir=`(
1354	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355	pwd)`
1356# When building in place, set srcdir=.
1357if test "$ac_abs_confdir" = "$ac_pwd"; then
1358  srcdir=.
1359fi
1360# Remove unnecessary trailing slashes from srcdir.
1361# Double slashes in file names in object file debugging info
1362# mess up M-x gdb in Emacs.
1363case $srcdir in
1364*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365esac
1366for ac_var in $ac_precious_vars; do
1367  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368  eval ac_env_${ac_var}_value=\$${ac_var}
1369  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371done
1372
1373#
1374# Report the --help message.
1375#
1376if test "$ac_init_help" = "long"; then
1377  # Omit some internal or obsolete options to make the list less imposing.
1378  # This message is too long to be a string in the A/UX 3.1 sh.
1379  cat <<_ACEOF
1380\`configure' configures xf86-video-r128 6.10.2 to adapt to many kinds of systems.
1381
1382Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387Defaults for the options are specified in brackets.
1388
1389Configuration:
1390  -h, --help              display this help and exit
1391      --help=short        display options specific to this package
1392      --help=recursive    display the short help of all the included packages
1393  -V, --version           display version information and exit
1394  -q, --quiet, --silent   do not print \`checking ...' messages
1395      --cache-file=FILE   cache test results in FILE [disabled]
1396  -C, --config-cache      alias for \`--cache-file=config.cache'
1397  -n, --no-create         do not create output files
1398      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400Installation directories:
1401  --prefix=PREFIX         install architecture-independent files in PREFIX
1402                          [$ac_default_prefix]
1403  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                          [PREFIX]
1405
1406By default, \`make install' will install all the files in
1407\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409for instance \`--prefix=\$HOME'.
1410
1411For better control, use the options below.
1412
1413Fine tuning of the installation directories:
1414  --bindir=DIR            user executables [EPREFIX/bin]
1415  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416  --libexecdir=DIR        program executables [EPREFIX/libexec]
1417  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420  --libdir=DIR            object code libraries [EPREFIX/lib]
1421  --includedir=DIR        C header files [PREFIX/include]
1422  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1423  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1424  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1425  --infodir=DIR           info documentation [DATAROOTDIR/info]
1426  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1427  --mandir=DIR            man documentation [DATAROOTDIR/man]
1428  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-r128]
1429  --htmldir=DIR           html documentation [DOCDIR]
1430  --dvidir=DIR            dvi documentation [DOCDIR]
1431  --pdfdir=DIR            pdf documentation [DOCDIR]
1432  --psdir=DIR             ps documentation [DOCDIR]
1433_ACEOF
1434
1435  cat <<\_ACEOF
1436
1437Program names:
1438  --program-prefix=PREFIX            prepend PREFIX to installed program names
1439  --program-suffix=SUFFIX            append SUFFIX to installed program names
1440  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441
1442System types:
1443  --build=BUILD     configure for building on BUILD [guessed]
1444  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449  case $ac_init_help in
1450     short | recursive ) echo "Configuration of xf86-video-r128 6.10.2:";;
1451   esac
1452  cat <<\_ACEOF
1453
1454Optional Features:
1455  --disable-option-checking  ignore unrecognized --enable/--with options
1456  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1457  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1458  --enable-silent-rules   less verbose build output (undo: "make V=1")
1459  --disable-silent-rules  verbose build output (undo: "make V=0")
1460  --enable-dependency-tracking
1461                          do not reject slow dependency extractors
1462  --disable-dependency-tracking
1463                          speeds up one-time build
1464  --disable-selective-werror
1465                          Turn off selective compiler errors. (default:
1466                          enabled)
1467  --enable-strict-compilation
1468                          Enable all warnings from compiler and make them
1469                          errors (default: disabled)
1470  --enable-maintainer-mode
1471                          enable make rules and dependencies not useful (and
1472                          sometimes confusing) to the casual installer
1473  --enable-static[=PKGS]  build static libraries [default=no]
1474  --enable-shared[=PKGS]  build shared libraries [default=yes]
1475  --enable-fast-install[=PKGS]
1476                          optimize for fast installation [default=yes]
1477  --disable-libtool-lock  avoid locking (might break parallel builds)
1478  --disable-dri           Disable DRI support [[default=auto]]
1479  --disable-exa           Disable EXA support [[default=enabled]]
1480  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1481                          [default=auto]
1482
1483Optional Packages:
1484  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1485  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1486  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1487                          both]
1488  --with-aix-soname=aix|svr4|both
1489                          shared library versioning (aka "SONAME") variant to
1490                          provide on AIX, [default=aix].
1491  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1493                          compiler's sysroot if not specified).
1494  --with-xorg-module-dir=DIR
1495                          Default xorg module directory
1496                          [[default=$libdir/xorg/modules]]
1497
1498Some influential environment variables:
1499  CC          C compiler command
1500  CFLAGS      C compiler flags
1501  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502              nonstandard directory <lib dir>
1503  LIBS        libraries to pass to the linker, e.g. -l<library>
1504  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505              you have headers in a nonstandard directory <include dir>
1506  CPP         C preprocessor
1507  PKG_CONFIG  path to pkg-config utility
1508  PKG_CONFIG_PATH
1509              directories to add to pkg-config's search path
1510  PKG_CONFIG_LIBDIR
1511              path overriding pkg-config's built-in search path
1512  LT_SYS_LIBRARY_PATH
1513              User-defined run-time library search path.
1514  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1515  XORG_LIBS   linker flags for XORG, overriding pkg-config
1516  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1517  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1518  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1519  DRI_LIBS    linker flags for DRI, overriding pkg-config
1520  PCIACCESS_CFLAGS
1521              C compiler flags for PCIACCESS, overriding pkg-config
1522  PCIACCESS_LIBS
1523              linker flags for PCIACCESS, overriding pkg-config
1524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
1528Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1529_ACEOF
1530ac_status=$?
1531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534  # If there are subdirs, report their specific --help.
1535  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536    test -d "$ac_dir" ||
1537      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538      continue
1539    ac_builddir=.
1540
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545  # A ".." for each directory in $ac_dir_suffix.
1546  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547  case $ac_top_builddir_sub in
1548  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550  esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
1556
1557case $srcdir in
1558  .)  # We are building in place.
1559    ac_srcdir=.
1560    ac_top_srcdir=$ac_top_builddir_sub
1561    ac_abs_top_srcdir=$ac_pwd ;;
1562  [\\/]* | ?:[\\/]* )  # Absolute name.
1563    ac_srcdir=$srcdir$ac_dir_suffix;
1564    ac_top_srcdir=$srcdir
1565    ac_abs_top_srcdir=$srcdir ;;
1566  *) # Relative name.
1567    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568    ac_top_srcdir=$ac_top_build_prefix$srcdir
1569    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570esac
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573    cd "$ac_dir" || { ac_status=$?; continue; }
1574    # Check for guested configure.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591xf86-video-r128 configure 6.10.2
1592generated by GNU Autoconf 2.69
1593
1594Copyright (C) 2012 Free Software Foundation, Inc.
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597_ACEOF
1598  exit
1599fi
1600
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
1604
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext
1612  if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_compile") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest.$ac_objext; then :
1631  ac_retval=0
1632else
1633  $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636	ac_retval=1
1637fi
1638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639  as_fn_set_status $ac_retval
1640
1641} # ac_fn_c_try_compile
1642
1643# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1644# ---------------------------------------------
1645# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1646# accordingly.
1647ac_fn_c_check_decl ()
1648{
1649  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650  as_decl_name=`echo $2|sed 's/ *(.*//'`
1651  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1653$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1654if eval \${$3+:} false; then :
1655  $as_echo_n "(cached) " >&6
1656else
1657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h.  */
1659$4
1660int
1661main ()
1662{
1663#ifndef $as_decl_name
1664#ifdef __cplusplus
1665  (void) $as_decl_use;
1666#else
1667  (void) $as_decl_name;
1668#endif
1669#endif
1670
1671  ;
1672  return 0;
1673}
1674_ACEOF
1675if ac_fn_c_try_compile "$LINENO"; then :
1676  eval "$3=yes"
1677else
1678  eval "$3=no"
1679fi
1680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1681fi
1682eval ac_res=\$$3
1683	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684$as_echo "$ac_res" >&6; }
1685  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687} # ac_fn_c_check_decl
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } > conftest.i && {
1711	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719    ac_retval=1
1720fi
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_c_try_run LINENO
1727# ----------------------
1728# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729# that executables *can* be run.
1730ac_fn_c_try_run ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  if { { ac_try="$ac_link"
1734case "(($ac_try" in
1735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736  *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740  (eval "$ac_link") 2>&5
1741  ac_status=$?
1742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744  { { case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750  (eval "$ac_try") 2>&5
1751  ac_status=$?
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; }; }; then :
1754  ac_retval=0
1755else
1756  $as_echo "$as_me: program exited with status $ac_status" >&5
1757       $as_echo "$as_me: failed program was:" >&5
1758sed 's/^/| /' conftest.$ac_ext >&5
1759
1760       ac_retval=$ac_status
1761fi
1762  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764  as_fn_set_status $ac_retval
1765
1766} # ac_fn_c_try_run
1767
1768# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769# -------------------------------------------------------
1770# Tests whether HEADER exists and can be compiled using the include files in
1771# INCLUDES, setting the cache variable VAR accordingly.
1772ac_fn_c_check_header_compile ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776$as_echo_n "checking for $2... " >&6; }
1777if eval \${$3+:} false; then :
1778  $as_echo_n "(cached) " >&6
1779else
1780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781/* end confdefs.h.  */
1782$4
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786  eval "$3=yes"
1787else
1788  eval "$3=no"
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797} # ac_fn_c_check_header_compile
1798
1799# ac_fn_c_try_link LINENO
1800# -----------------------
1801# Try to link conftest.$ac_ext, and return whether this succeeded.
1802ac_fn_c_try_link ()
1803{
1804  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805  rm -f conftest.$ac_objext conftest$ac_exeext
1806  if { { ac_try="$ac_link"
1807case "(($ac_try" in
1808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809  *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813  (eval "$ac_link") 2>conftest.err
1814  ac_status=$?
1815  if test -s conftest.err; then
1816    grep -v '^ *+' conftest.err >conftest.er1
1817    cat conftest.er1 >&5
1818    mv -f conftest.er1 conftest.err
1819  fi
1820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821  test $ac_status = 0; } && {
1822	 test -z "$ac_c_werror_flag" ||
1823	 test ! -s conftest.err
1824       } && test -s conftest$ac_exeext && {
1825	 test "$cross_compiling" = yes ||
1826	 test -x conftest$ac_exeext
1827       }; then :
1828  ac_retval=0
1829else
1830  $as_echo "$as_me: failed program was:" >&5
1831sed 's/^/| /' conftest.$ac_ext >&5
1832
1833	ac_retval=1
1834fi
1835  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1836  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1837  # interfere with the next link command; also delete a directory that is
1838  # left behind by Apple's compiler.  We do this before executing the actions.
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_link
1844
1845# ac_fn_c_check_func LINENO FUNC VAR
1846# ----------------------------------
1847# Tests whether FUNC exists, setting the cache variable VAR accordingly
1848ac_fn_c_check_func ()
1849{
1850  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852$as_echo_n "checking for $2... " >&6; }
1853if eval \${$3+:} false; then :
1854  $as_echo_n "(cached) " >&6
1855else
1856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h.  */
1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860#define $2 innocuous_$2
1861
1862/* System header to define __stub macros and hopefully few prototypes,
1863    which can conflict with char $2 (); below.
1864    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865    <limits.h> exists even on freestanding compilers.  */
1866
1867#ifdef __STDC__
1868# include <limits.h>
1869#else
1870# include <assert.h>
1871#endif
1872
1873#undef $2
1874
1875/* Override any GCC internal prototype to avoid an error.
1876   Use char because int might match the return type of a GCC
1877   builtin and then its argument prototype would still apply.  */
1878#ifdef __cplusplus
1879extern "C"
1880#endif
1881char $2 ();
1882/* The GNU C library defines this for functions which it implements
1883    to always fail with ENOSYS.  Some functions are actually named
1884    something starting with __ and the normal name is an alias.  */
1885#if defined __stub_$2 || defined __stub___$2
1886choke me
1887#endif
1888
1889int
1890main ()
1891{
1892return $2 ();
1893  ;
1894  return 0;
1895}
1896_ACEOF
1897if ac_fn_c_try_link "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext \
1903    conftest$ac_exeext conftest.$ac_ext
1904fi
1905eval ac_res=\$$3
1906	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907$as_echo "$ac_res" >&6; }
1908  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910} # ac_fn_c_check_func
1911
1912# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913# -------------------------------------------------------
1914# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915# the include files in INCLUDES and setting the cache variable VAR
1916# accordingly.
1917ac_fn_c_check_header_mongrel ()
1918{
1919  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920  if eval \${$3+:} false; then :
1921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922$as_echo_n "checking for $2... " >&6; }
1923if eval \${$3+:} false; then :
1924  $as_echo_n "(cached) " >&6
1925fi
1926eval ac_res=\$$3
1927	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929else
1930  # Is the header compilable?
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932$as_echo_n "checking $2 usability... " >&6; }
1933cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935$4
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_compile "$LINENO"; then :
1939  ac_header_compiler=yes
1940else
1941  ac_header_compiler=no
1942fi
1943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945$as_echo "$ac_header_compiler" >&6; }
1946
1947# Is the header present?
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949$as_echo_n "checking $2 presence... " >&6; }
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h.  */
1952#include <$2>
1953_ACEOF
1954if ac_fn_c_try_cpp "$LINENO"; then :
1955  ac_header_preproc=yes
1956else
1957  ac_header_preproc=no
1958fi
1959rm -f conftest.err conftest.i conftest.$ac_ext
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961$as_echo "$ac_header_preproc" >&6; }
1962
1963# So?  What about this header?
1964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1965  yes:no: )
1966    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970    ;;
1971  no:yes:* )
1972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1975$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1976    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1979$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1980    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1982( $as_echo "## ---------------------------------------------------------------------- ##
1983## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1984## ---------------------------------------------------------------------- ##"
1985     ) | sed "s/^/$as_me: WARNING:     /" >&2
1986    ;;
1987esac
1988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989$as_echo_n "checking for $2... " >&6; }
1990if eval \${$3+:} false; then :
1991  $as_echo_n "(cached) " >&6
1992else
1993  eval "$3=\$ac_header_compiler"
1994fi
1995eval ac_res=\$$3
1996	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997$as_echo "$ac_res" >&6; }
1998fi
1999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001} # ac_fn_c_check_header_mongrel
2002cat >config.log <<_ACEOF
2003This file contains any messages produced by compilers while
2004running configure, to aid debugging if configure makes a mistake.
2005
2006It was created by xf86-video-r128 $as_me 6.10.2, which was
2007generated by GNU Autoconf 2.69.  Invocation command line was
2008
2009  $ $0 $@
2010
2011_ACEOF
2012exec 5>>config.log
2013{
2014cat <<_ASUNAME
2015## --------- ##
2016## Platform. ##
2017## --------- ##
2018
2019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2020uname -m = `(uname -m) 2>/dev/null || echo unknown`
2021uname -r = `(uname -r) 2>/dev/null || echo unknown`
2022uname -s = `(uname -s) 2>/dev/null || echo unknown`
2023uname -v = `(uname -v) 2>/dev/null || echo unknown`
2024
2025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2026/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2027
2028/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2029/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2031/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2032/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2033/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2034/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2035
2036_ASUNAME
2037
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043    $as_echo "PATH: $as_dir"
2044  done
2045IFS=$as_save_IFS
2046
2047} >&5
2048
2049cat >&5 <<_ACEOF
2050
2051
2052## ----------- ##
2053## Core tests. ##
2054## ----------- ##
2055
2056_ACEOF
2057
2058
2059# Keep a trace of the command line.
2060# Strip out --no-create and --no-recursion so they do not pile up.
2061# Strip out --silent because we don't want to record it for future runs.
2062# Also quote any args containing shell meta-characters.
2063# Make two passes to allow for proper duplicate-argument suppression.
2064ac_configure_args=
2065ac_configure_args0=
2066ac_configure_args1=
2067ac_must_keep_next=false
2068for ac_pass in 1 2
2069do
2070  for ac_arg
2071  do
2072    case $ac_arg in
2073    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2074    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2075    | -silent | --silent | --silen | --sile | --sil)
2076      continue ;;
2077    *\'*)
2078      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2079    esac
2080    case $ac_pass in
2081    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2082    2)
2083      as_fn_append ac_configure_args1 " '$ac_arg'"
2084      if test $ac_must_keep_next = true; then
2085	ac_must_keep_next=false # Got value, back to normal.
2086      else
2087	case $ac_arg in
2088	  *=* | --config-cache | -C | -disable-* | --disable-* \
2089	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2090	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2091	  | -with-* | --with-* | -without-* | --without-* | --x)
2092	    case "$ac_configure_args0 " in
2093	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2094	    esac
2095	    ;;
2096	  -* ) ac_must_keep_next=true ;;
2097	esac
2098      fi
2099      as_fn_append ac_configure_args " '$ac_arg'"
2100      ;;
2101    esac
2102  done
2103done
2104{ ac_configure_args0=; unset ac_configure_args0;}
2105{ ac_configure_args1=; unset ac_configure_args1;}
2106
2107# When interrupted or exit'd, cleanup temporary files, and complete
2108# config.log.  We remove comments because anyway the quotes in there
2109# would cause problems or look ugly.
2110# WARNING: Use '\'' to represent an apostrophe within the trap.
2111# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2112trap 'exit_status=$?
2113  # Save into config.log some information that might help in debugging.
2114  {
2115    echo
2116
2117    $as_echo "## ---------------- ##
2118## Cache variables. ##
2119## ---------------- ##"
2120    echo
2121    # The following way of writing the cache mishandles newlines in values,
2122(
2123  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2124    eval ac_val=\$$ac_var
2125    case $ac_val in #(
2126    *${as_nl}*)
2127      case $ac_var in #(
2128      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2129$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2130      esac
2131      case $ac_var in #(
2132      _ | IFS | as_nl) ;; #(
2133      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2134      *) { eval $ac_var=; unset $ac_var;} ;;
2135      esac ;;
2136    esac
2137  done
2138  (set) 2>&1 |
2139    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2140    *${as_nl}ac_space=\ *)
2141      sed -n \
2142	"s/'\''/'\''\\\\'\'''\''/g;
2143	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2144      ;; #(
2145    *)
2146      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2147      ;;
2148    esac |
2149    sort
2150)
2151    echo
2152
2153    $as_echo "## ----------------- ##
2154## Output variables. ##
2155## ----------------- ##"
2156    echo
2157    for ac_var in $ac_subst_vars
2158    do
2159      eval ac_val=\$$ac_var
2160      case $ac_val in
2161      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162      esac
2163      $as_echo "$ac_var='\''$ac_val'\''"
2164    done | sort
2165    echo
2166
2167    if test -n "$ac_subst_files"; then
2168      $as_echo "## ------------------- ##
2169## File substitutions. ##
2170## ------------------- ##"
2171      echo
2172      for ac_var in $ac_subst_files
2173      do
2174	eval ac_val=\$$ac_var
2175	case $ac_val in
2176	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177	esac
2178	$as_echo "$ac_var='\''$ac_val'\''"
2179      done | sort
2180      echo
2181    fi
2182
2183    if test -s confdefs.h; then
2184      $as_echo "## ----------- ##
2185## confdefs.h. ##
2186## ----------- ##"
2187      echo
2188      cat confdefs.h
2189      echo
2190    fi
2191    test "$ac_signal" != 0 &&
2192      $as_echo "$as_me: caught signal $ac_signal"
2193    $as_echo "$as_me: exit $exit_status"
2194  } >&5
2195  rm -f core *.core core.conftest.* &&
2196    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2197    exit $exit_status
2198' 0
2199for ac_signal in 1 2 13 15; do
2200  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2201done
2202ac_signal=0
2203
2204# confdefs.h avoids OS command line length limits that DEFS can exceed.
2205rm -f -r conftest* confdefs.h
2206
2207$as_echo "/* confdefs.h */" > confdefs.h
2208
2209# Predefined preprocessor variables.
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_NAME "$PACKAGE_NAME"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2217_ACEOF
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_VERSION "$PACKAGE_VERSION"
2221_ACEOF
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_STRING "$PACKAGE_STRING"
2225_ACEOF
2226
2227cat >>confdefs.h <<_ACEOF
2228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2229_ACEOF
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_URL "$PACKAGE_URL"
2233_ACEOF
2234
2235
2236# Let the site file select an alternate cache file if it wants to.
2237# Prefer an explicitly selected file to automatically selected ones.
2238ac_site_file1=NONE
2239ac_site_file2=NONE
2240if test -n "$CONFIG_SITE"; then
2241  # We do not want a PATH search for config.site.
2242  case $CONFIG_SITE in #((
2243    -*)  ac_site_file1=./$CONFIG_SITE;;
2244    */*) ac_site_file1=$CONFIG_SITE;;
2245    *)   ac_site_file1=./$CONFIG_SITE;;
2246  esac
2247elif test "x$prefix" != xNONE; then
2248  ac_site_file1=$prefix/share/config.site
2249  ac_site_file2=$prefix/etc/config.site
2250else
2251  ac_site_file1=$ac_default_prefix/share/config.site
2252  ac_site_file2=$ac_default_prefix/etc/config.site
2253fi
2254for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2255do
2256  test "x$ac_site_file" = xNONE && continue
2257  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2258    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2259$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2260    sed 's/^/| /' "$ac_site_file" >&5
2261    . "$ac_site_file" \
2262      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2264as_fn_error $? "failed to load site script $ac_site_file
2265See \`config.log' for more details" "$LINENO" 5; }
2266  fi
2267done
2268
2269if test -r "$cache_file"; then
2270  # Some versions of bash will fail to source /dev/null (special files
2271  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2272  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2273    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2274$as_echo "$as_me: loading cache $cache_file" >&6;}
2275    case $cache_file in
2276      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2277      *)                      . "./$cache_file";;
2278    esac
2279  fi
2280else
2281  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2282$as_echo "$as_me: creating cache $cache_file" >&6;}
2283  >$cache_file
2284fi
2285
2286# Check that the precious variables saved in the cache have kept the same
2287# value.
2288ac_cache_corrupted=false
2289for ac_var in $ac_precious_vars; do
2290  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2291  eval ac_new_set=\$ac_env_${ac_var}_set
2292  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2293  eval ac_new_val=\$ac_env_${ac_var}_value
2294  case $ac_old_set,$ac_new_set in
2295    set,)
2296      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2297$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2298      ac_cache_corrupted=: ;;
2299    ,set)
2300      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2301$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2302      ac_cache_corrupted=: ;;
2303    ,);;
2304    *)
2305      if test "x$ac_old_val" != "x$ac_new_val"; then
2306	# differences in whitespace do not lead to failure.
2307	ac_old_val_w=`echo x $ac_old_val`
2308	ac_new_val_w=`echo x $ac_new_val`
2309	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2310	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2311$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2312	  ac_cache_corrupted=:
2313	else
2314	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2315$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2316	  eval $ac_var=\$ac_old_val
2317	fi
2318	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2319$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2320	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2321$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2322      fi;;
2323  esac
2324  # Pass precious variables to config.status.
2325  if test "$ac_new_set" = set; then
2326    case $ac_new_val in
2327    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2328    *) ac_arg=$ac_var=$ac_new_val ;;
2329    esac
2330    case " $ac_configure_args " in
2331      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2332      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2333    esac
2334  fi
2335done
2336if $ac_cache_corrupted; then
2337  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2340$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2341  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2342fi
2343## -------------------- ##
2344## Main body of script. ##
2345## -------------------- ##
2346
2347ac_ext=c
2348ac_cpp='$CPP $CPPFLAGS'
2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351ac_compiler_gnu=$ac_cv_c_compiler_gnu
2352
2353
2354
2355ac_config_headers="$ac_config_headers config.h"
2356
2357ac_aux_dir=
2358for ac_dir in . "$srcdir"/.; do
2359  if test -f "$ac_dir/install-sh"; then
2360    ac_aux_dir=$ac_dir
2361    ac_install_sh="$ac_aux_dir/install-sh -c"
2362    break
2363  elif test -f "$ac_dir/install.sh"; then
2364    ac_aux_dir=$ac_dir
2365    ac_install_sh="$ac_aux_dir/install.sh -c"
2366    break
2367  elif test -f "$ac_dir/shtool"; then
2368    ac_aux_dir=$ac_dir
2369    ac_install_sh="$ac_aux_dir/shtool install -c"
2370    break
2371  fi
2372done
2373if test -z "$ac_aux_dir"; then
2374  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2375fi
2376
2377# These three variables are undocumented and unsupported,
2378# and are intended to be withdrawn in a future Autoconf release.
2379# They can cause serious problems if a builder's source tree is in a directory
2380# whose full name contains unusual characters.
2381ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2382ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2383ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2384
2385
2386
2387# Initialize Automake
2388am__api_version='1.15'
2389
2390# Find a good install program.  We prefer a C program (faster),
2391# so one script is as good as another.  But avoid the broken or
2392# incompatible versions:
2393# SysV /etc/install, /usr/sbin/install
2394# SunOS /usr/etc/install
2395# IRIX /sbin/install
2396# AIX /bin/install
2397# AmigaOS /C/install, which installs bootblocks on floppy discs
2398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2399# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2401# OS/2's system install, which has a completely different semantic
2402# ./install, which can be erroneously created by make from ./install.sh.
2403# Reject install programs that cannot install multiple files.
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2405$as_echo_n "checking for a BSD-compatible install... " >&6; }
2406if test -z "$INSTALL"; then
2407if ${ac_cv_path_install+:} false; then :
2408  $as_echo_n "(cached) " >&6
2409else
2410  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413  IFS=$as_save_IFS
2414  test -z "$as_dir" && as_dir=.
2415    # Account for people who put trailing slashes in PATH elements.
2416case $as_dir/ in #((
2417  ./ | .// | /[cC]/* | \
2418  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2419  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2420  /usr/ucb/* ) ;;
2421  *)
2422    # OSF1 and SCO ODT 3.0 have their own names for install.
2423    # Don't use installbsd from OSF since it installs stuff as root
2424    # by default.
2425    for ac_prog in ginstall scoinst install; do
2426      for ac_exec_ext in '' $ac_executable_extensions; do
2427	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2428	  if test $ac_prog = install &&
2429	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2430	    # AIX install.  It has an incompatible calling convention.
2431	    :
2432	  elif test $ac_prog = install &&
2433	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2434	    # program-specific install script used by HP pwplus--don't use.
2435	    :
2436	  else
2437	    rm -rf conftest.one conftest.two conftest.dir
2438	    echo one > conftest.one
2439	    echo two > conftest.two
2440	    mkdir conftest.dir
2441	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2442	      test -s conftest.one && test -s conftest.two &&
2443	      test -s conftest.dir/conftest.one &&
2444	      test -s conftest.dir/conftest.two
2445	    then
2446	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2447	      break 3
2448	    fi
2449	  fi
2450	fi
2451      done
2452    done
2453    ;;
2454esac
2455
2456  done
2457IFS=$as_save_IFS
2458
2459rm -rf conftest.one conftest.two conftest.dir
2460
2461fi
2462  if test "${ac_cv_path_install+set}" = set; then
2463    INSTALL=$ac_cv_path_install
2464  else
2465    # As a last resort, use the slow shell script.  Don't cache a
2466    # value for INSTALL within a source directory, because that will
2467    # break other packages using the cache if that directory is
2468    # removed, or if the value is a relative name.
2469    INSTALL=$ac_install_sh
2470  fi
2471fi
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2473$as_echo "$INSTALL" >&6; }
2474
2475# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2476# It thinks the first close brace ends the variable substitution.
2477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2478
2479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2480
2481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2482
2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2484$as_echo_n "checking whether build environment is sane... " >&6; }
2485# Reject unsafe characters in $srcdir or the absolute working directory
2486# name.  Accept space and tab only in the latter.
2487am_lf='
2488'
2489case `pwd` in
2490  *[\\\"\#\$\&\'\`$am_lf]*)
2491    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2492esac
2493case $srcdir in
2494  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2495    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2496esac
2497
2498# Do 'set' in a subshell so we don't clobber the current shell's
2499# arguments.  Must try -L first in case configure is actually a
2500# symlink; some systems play weird games with the mod time of symlinks
2501# (eg FreeBSD returns the mod time of the symlink's containing
2502# directory).
2503if (
2504   am_has_slept=no
2505   for am_try in 1 2; do
2506     echo "timestamp, slept: $am_has_slept" > conftest.file
2507     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2508     if test "$*" = "X"; then
2509	# -L didn't work.
2510	set X `ls -t "$srcdir/configure" conftest.file`
2511     fi
2512     if test "$*" != "X $srcdir/configure conftest.file" \
2513	&& test "$*" != "X conftest.file $srcdir/configure"; then
2514
2515	# If neither matched, then we have a broken ls.  This can happen
2516	# if, for instance, CONFIG_SHELL is bash and it inherits a
2517	# broken ls alias from the environment.  This has actually
2518	# happened.  Such a system could not be considered "sane".
2519	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2520  alias in your environment" "$LINENO" 5
2521     fi
2522     if test "$2" = conftest.file || test $am_try -eq 2; then
2523       break
2524     fi
2525     # Just in case.
2526     sleep 1
2527     am_has_slept=yes
2528   done
2529   test "$2" = conftest.file
2530   )
2531then
2532   # Ok.
2533   :
2534else
2535   as_fn_error $? "newly created file is older than distributed files!
2536Check your system clock" "$LINENO" 5
2537fi
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2539$as_echo "yes" >&6; }
2540# If we didn't sleep, we still need to ensure time stamps of config.status and
2541# generated files are strictly newer.
2542am_sleep_pid=
2543if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2544  ( sleep 1 ) &
2545  am_sleep_pid=$!
2546fi
2547
2548rm -f conftest.file
2549
2550test "$program_prefix" != NONE &&
2551  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2552# Use a double $ so make ignores it.
2553test "$program_suffix" != NONE &&
2554  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2555# Double any \ or $.
2556# By default was `s,x,x', remove it if useless.
2557ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2558program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2559
2560# Expand $ac_aux_dir to an absolute path.
2561am_aux_dir=`cd "$ac_aux_dir" && pwd`
2562
2563if test x"${MISSING+set}" != xset; then
2564  case $am_aux_dir in
2565  *\ * | *\	*)
2566    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2567  *)
2568    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2569  esac
2570fi
2571# Use eval to expand $SHELL
2572if eval "$MISSING --is-lightweight"; then
2573  am_missing_run="$MISSING "
2574else
2575  am_missing_run=
2576  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2577$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2578fi
2579
2580if test x"${install_sh+set}" != xset; then
2581  case $am_aux_dir in
2582  *\ * | *\	*)
2583    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2584  *)
2585    install_sh="\${SHELL} $am_aux_dir/install-sh"
2586  esac
2587fi
2588
2589# Installed binaries are usually stripped using 'strip' when the user
2590# run "make install-strip".  However 'strip' might not be the right
2591# tool to use in cross-compilation environments, therefore Automake
2592# will honor the 'STRIP' environment variable to overrule this program.
2593if test "$cross_compiling" != no; then
2594  if test -n "$ac_tool_prefix"; then
2595  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2596set dummy ${ac_tool_prefix}strip; ac_word=$2
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598$as_echo_n "checking for $ac_word... " >&6; }
2599if ${ac_cv_prog_STRIP+:} false; then :
2600  $as_echo_n "(cached) " >&6
2601else
2602  if test -n "$STRIP"; then
2603  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2604else
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610    for ac_exec_ext in '' $ac_executable_extensions; do
2611  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2612    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2614    break 2
2615  fi
2616done
2617  done
2618IFS=$as_save_IFS
2619
2620fi
2621fi
2622STRIP=$ac_cv_prog_STRIP
2623if test -n "$STRIP"; then
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2625$as_echo "$STRIP" >&6; }
2626else
2627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628$as_echo "no" >&6; }
2629fi
2630
2631
2632fi
2633if test -z "$ac_cv_prog_STRIP"; then
2634  ac_ct_STRIP=$STRIP
2635  # Extract the first word of "strip", so it can be a program name with args.
2636set dummy strip; ac_word=$2
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638$as_echo_n "checking for $ac_word... " >&6; }
2639if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2640  $as_echo_n "(cached) " >&6
2641else
2642  if test -n "$ac_ct_STRIP"; then
2643  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2644else
2645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646for as_dir in $PATH
2647do
2648  IFS=$as_save_IFS
2649  test -z "$as_dir" && as_dir=.
2650    for ac_exec_ext in '' $ac_executable_extensions; do
2651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652    ac_cv_prog_ac_ct_STRIP="strip"
2653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654    break 2
2655  fi
2656done
2657  done
2658IFS=$as_save_IFS
2659
2660fi
2661fi
2662ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2663if test -n "$ac_ct_STRIP"; then
2664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2665$as_echo "$ac_ct_STRIP" >&6; }
2666else
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668$as_echo "no" >&6; }
2669fi
2670
2671  if test "x$ac_ct_STRIP" = x; then
2672    STRIP=":"
2673  else
2674    case $cross_compiling:$ac_tool_warned in
2675yes:)
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2678ac_tool_warned=yes ;;
2679esac
2680    STRIP=$ac_ct_STRIP
2681  fi
2682else
2683  STRIP="$ac_cv_prog_STRIP"
2684fi
2685
2686fi
2687INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2688
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2690$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2691if test -z "$MKDIR_P"; then
2692  if ${ac_cv_path_mkdir+:} false; then :
2693  $as_echo_n "(cached) " >&6
2694else
2695  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2697do
2698  IFS=$as_save_IFS
2699  test -z "$as_dir" && as_dir=.
2700    for ac_prog in mkdir gmkdir; do
2701	 for ac_exec_ext in '' $ac_executable_extensions; do
2702	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2703	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2704	     'mkdir (GNU coreutils) '* | \
2705	     'mkdir (coreutils) '* | \
2706	     'mkdir (fileutils) '4.1*)
2707	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2708	       break 3;;
2709	   esac
2710	 done
2711       done
2712  done
2713IFS=$as_save_IFS
2714
2715fi
2716
2717  test -d ./--version && rmdir ./--version
2718  if test "${ac_cv_path_mkdir+set}" = set; then
2719    MKDIR_P="$ac_cv_path_mkdir -p"
2720  else
2721    # As a last resort, use the slow shell script.  Don't cache a
2722    # value for MKDIR_P within a source directory, because that will
2723    # break other packages using the cache if that directory is
2724    # removed, or if the value is a relative name.
2725    MKDIR_P="$ac_install_sh -d"
2726  fi
2727fi
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2729$as_echo "$MKDIR_P" >&6; }
2730
2731for ac_prog in gawk mawk nawk awk
2732do
2733  # Extract the first word of "$ac_prog", so it can be a program name with args.
2734set dummy $ac_prog; ac_word=$2
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736$as_echo_n "checking for $ac_word... " >&6; }
2737if ${ac_cv_prog_AWK+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  if test -n "$AWK"; then
2741  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2742else
2743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744for as_dir in $PATH
2745do
2746  IFS=$as_save_IFS
2747  test -z "$as_dir" && as_dir=.
2748    for ac_exec_ext in '' $ac_executable_extensions; do
2749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2750    ac_cv_prog_AWK="$ac_prog"
2751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2752    break 2
2753  fi
2754done
2755  done
2756IFS=$as_save_IFS
2757
2758fi
2759fi
2760AWK=$ac_cv_prog_AWK
2761if test -n "$AWK"; then
2762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2763$as_echo "$AWK" >&6; }
2764else
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2766$as_echo "no" >&6; }
2767fi
2768
2769
2770  test -n "$AWK" && break
2771done
2772
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2774$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2775set x ${MAKE-make}
2776ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2777if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2778  $as_echo_n "(cached) " >&6
2779else
2780  cat >conftest.make <<\_ACEOF
2781SHELL = /bin/sh
2782all:
2783	@echo '@@@%%%=$(MAKE)=@@@%%%'
2784_ACEOF
2785# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2786case `${MAKE-make} -f conftest.make 2>/dev/null` in
2787  *@@@%%%=?*=@@@%%%*)
2788    eval ac_cv_prog_make_${ac_make}_set=yes;;
2789  *)
2790    eval ac_cv_prog_make_${ac_make}_set=no;;
2791esac
2792rm -f conftest.make
2793fi
2794if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2796$as_echo "yes" >&6; }
2797  SET_MAKE=
2798else
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801  SET_MAKE="MAKE=${MAKE-make}"
2802fi
2803
2804rm -rf .tst 2>/dev/null
2805mkdir .tst 2>/dev/null
2806if test -d .tst; then
2807  am__leading_dot=.
2808else
2809  am__leading_dot=_
2810fi
2811rmdir .tst 2>/dev/null
2812
2813# Check whether --enable-silent-rules was given.
2814if test "${enable_silent_rules+set}" = set; then :
2815  enableval=$enable_silent_rules;
2816fi
2817
2818case $enable_silent_rules in # (((
2819  yes) AM_DEFAULT_VERBOSITY=0;;
2820   no) AM_DEFAULT_VERBOSITY=1;;
2821    *) AM_DEFAULT_VERBOSITY=1;;
2822esac
2823am_make=${MAKE-make}
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2825$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2826if ${am_cv_make_support_nested_variables+:} false; then :
2827  $as_echo_n "(cached) " >&6
2828else
2829  if $as_echo 'TRUE=$(BAR$(V))
2830BAR0=false
2831BAR1=true
2832V=1
2833am__doit:
2834	@$(TRUE)
2835.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2836  am_cv_make_support_nested_variables=yes
2837else
2838  am_cv_make_support_nested_variables=no
2839fi
2840fi
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2842$as_echo "$am_cv_make_support_nested_variables" >&6; }
2843if test $am_cv_make_support_nested_variables = yes; then
2844    AM_V='$(V)'
2845  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2846else
2847  AM_V=$AM_DEFAULT_VERBOSITY
2848  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2849fi
2850AM_BACKSLASH='\'
2851
2852if test "`cd $srcdir && pwd`" != "`pwd`"; then
2853  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2854  # is not polluted with repeated "-I."
2855  am__isrc=' -I$(srcdir)'
2856  # test to see if srcdir already configured
2857  if test -f $srcdir/config.status; then
2858    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2859  fi
2860fi
2861
2862# test whether we have cygpath
2863if test -z "$CYGPATH_W"; then
2864  if (cygpath --version) >/dev/null 2>/dev/null; then
2865    CYGPATH_W='cygpath -w'
2866  else
2867    CYGPATH_W=echo
2868  fi
2869fi
2870
2871
2872# Define the identity of the package.
2873 PACKAGE='xf86-video-r128'
2874 VERSION='6.10.2'
2875
2876
2877cat >>confdefs.h <<_ACEOF
2878#define PACKAGE "$PACKAGE"
2879_ACEOF
2880
2881
2882cat >>confdefs.h <<_ACEOF
2883#define VERSION "$VERSION"
2884_ACEOF
2885
2886# Some tools Automake needs.
2887
2888ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2889
2890
2891AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2892
2893
2894AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2895
2896
2897AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2898
2899
2900MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2901
2902# For better backward compatibility.  To be removed once Automake 1.9.x
2903# dies out for good.  For more background, see:
2904# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2905# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2906mkdir_p='$(MKDIR_P)'
2907
2908# We need awk for the "check" target (and possibly the TAP driver).  The
2909# system "awk" is bad on some platforms.
2910# Always define AMTAR for backward compatibility.  Yes, it's still used
2911# in the wild :-(  We should find a proper way to deprecate it ...
2912AMTAR='$${TAR-tar}'
2913
2914
2915# We'll loop over all known methods to create a tar archive until one works.
2916_am_tools='gnutar  pax cpio none'
2917
2918am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2919
2920
2921
2922
2923
2924
2925# POSIX will say in a future version that running "rm -f" with no argument
2926# is OK; and we want to be able to make that assumption in our Makefile
2927# recipes.  So use an aggressive probe to check that the usage we want is
2928# actually supported "in the wild" to an acceptable degree.
2929# See automake bug#10828.
2930# To make any issue more visible, cause the running configure to be aborted
2931# by default if the 'rm' program in use doesn't match our expectations; the
2932# user can still override this though.
2933if rm -f && rm -fr && rm -rf; then : OK; else
2934  cat >&2 <<'END'
2935Oops!
2936
2937Your 'rm' program seems unable to run without file operands specified
2938on the command line, even when the '-f' option is present.  This is contrary
2939to the behaviour of most rm programs out there, and not conforming with
2940the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2941
2942Please tell bug-automake@gnu.org about your system, including the value
2943of your $PATH and any error possibly output before this message.  This
2944can help us improve future automake versions.
2945
2946END
2947  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2948    echo 'Configuration will proceed anyway, since you have set the' >&2
2949    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2950    echo >&2
2951  else
2952    cat >&2 <<'END'
2953Aborting the configuration process, to ensure you take notice of the issue.
2954
2955You can download and install GNU coreutils to get an 'rm' implementation
2956that behaves properly: <http://www.gnu.org/software/coreutils/>.
2957
2958If you want to complete the configuration process using your problematic
2959'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2960to "yes", and re-run configure.
2961
2962END
2963    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2964  fi
2965fi
2966
2967
2968# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980DEPDIR="${am__leading_dot}deps"
2981
2982ac_config_commands="$ac_config_commands depfiles"
2983
2984
2985am_make=${MAKE-make}
2986cat > confinc << 'END'
2987am__doit:
2988	@echo this is the am__doit target
2989.PHONY: am__doit
2990END
2991# If we don't find an include directive, just comment out the code.
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2993$as_echo_n "checking for style of include used by $am_make... " >&6; }
2994am__include="#"
2995am__quote=
2996_am_result=none
2997# First try GNU make style include.
2998echo "include confinc" > confmf
2999# Ignore all kinds of additional output from 'make'.
3000case `$am_make -s -f confmf 2> /dev/null` in #(
3001*the\ am__doit\ target*)
3002  am__include=include
3003  am__quote=
3004  _am_result=GNU
3005  ;;
3006esac
3007# Now try BSD make style include.
3008if test "$am__include" = "#"; then
3009   echo '.include "confinc"' > confmf
3010   case `$am_make -s -f confmf 2> /dev/null` in #(
3011   *the\ am__doit\ target*)
3012     am__include=.include
3013     am__quote="\""
3014     _am_result=BSD
3015     ;;
3016   esac
3017fi
3018
3019
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3021$as_echo "$_am_result" >&6; }
3022rm -f confinc confmf
3023
3024# Check whether --enable-dependency-tracking was given.
3025if test "${enable_dependency_tracking+set}" = set; then :
3026  enableval=$enable_dependency_tracking;
3027fi
3028
3029if test "x$enable_dependency_tracking" != xno; then
3030  am_depcomp="$ac_aux_dir/depcomp"
3031  AMDEPBACKSLASH='\'
3032  am__nodep='_no'
3033fi
3034 if test "x$enable_dependency_tracking" != xno; then
3035  AMDEP_TRUE=
3036  AMDEP_FALSE='#'
3037else
3038  AMDEP_TRUE='#'
3039  AMDEP_FALSE=
3040fi
3041
3042
3043ac_ext=c
3044ac_cpp='$CPP $CPPFLAGS'
3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048if test -n "$ac_tool_prefix"; then
3049  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3050set dummy ${ac_tool_prefix}gcc; ac_word=$2
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052$as_echo_n "checking for $ac_word... " >&6; }
3053if ${ac_cv_prog_CC+:} false; then :
3054  $as_echo_n "(cached) " >&6
3055else
3056  if test -n "$CC"; then
3057  ac_cv_prog_CC="$CC" # Let the user override the test.
3058else
3059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060for as_dir in $PATH
3061do
3062  IFS=$as_save_IFS
3063  test -z "$as_dir" && as_dir=.
3064    for ac_exec_ext in '' $ac_executable_extensions; do
3065  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068    break 2
3069  fi
3070done
3071  done
3072IFS=$as_save_IFS
3073
3074fi
3075fi
3076CC=$ac_cv_prog_CC
3077if test -n "$CC"; then
3078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079$as_echo "$CC" >&6; }
3080else
3081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082$as_echo "no" >&6; }
3083fi
3084
3085
3086fi
3087if test -z "$ac_cv_prog_CC"; then
3088  ac_ct_CC=$CC
3089  # Extract the first word of "gcc", so it can be a program name with args.
3090set dummy gcc; ac_word=$2
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092$as_echo_n "checking for $ac_word... " >&6; }
3093if ${ac_cv_prog_ac_ct_CC+:} false; then :
3094  $as_echo_n "(cached) " >&6
3095else
3096  if test -n "$ac_ct_CC"; then
3097  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3098else
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102  IFS=$as_save_IFS
3103  test -z "$as_dir" && as_dir=.
3104    for ac_exec_ext in '' $ac_executable_extensions; do
3105  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106    ac_cv_prog_ac_ct_CC="gcc"
3107    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108    break 2
3109  fi
3110done
3111  done
3112IFS=$as_save_IFS
3113
3114fi
3115fi
3116ac_ct_CC=$ac_cv_prog_ac_ct_CC
3117if test -n "$ac_ct_CC"; then
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3119$as_echo "$ac_ct_CC" >&6; }
3120else
3121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122$as_echo "no" >&6; }
3123fi
3124
3125  if test "x$ac_ct_CC" = x; then
3126    CC=""
3127  else
3128    case $cross_compiling:$ac_tool_warned in
3129yes:)
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132ac_tool_warned=yes ;;
3133esac
3134    CC=$ac_ct_CC
3135  fi
3136else
3137  CC="$ac_cv_prog_CC"
3138fi
3139
3140if test -z "$CC"; then
3141          if test -n "$ac_tool_prefix"; then
3142    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3143set dummy ${ac_tool_prefix}cc; ac_word=$2
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; }
3146if ${ac_cv_prog_CC+:} false; then :
3147  $as_echo_n "(cached) " >&6
3148else
3149  if test -n "$CC"; then
3150  ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155  IFS=$as_save_IFS
3156  test -z "$as_dir" && as_dir=.
3157    for ac_exec_ext in '' $ac_executable_extensions; do
3158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159    ac_cv_prog_CC="${ac_tool_prefix}cc"
3160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161    break 2
3162  fi
3163done
3164  done
3165IFS=$as_save_IFS
3166
3167fi
3168fi
3169CC=$ac_cv_prog_CC
3170if test -n "$CC"; then
3171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172$as_echo "$CC" >&6; }
3173else
3174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
3176fi
3177
3178
3179  fi
3180fi
3181if test -z "$CC"; then
3182  # Extract the first word of "cc", so it can be a program name with args.
3183set dummy cc; ac_word=$2
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_CC+:} false; then :
3187  $as_echo_n "(cached) " >&6
3188else
3189  if test -n "$CC"; then
3190  ac_cv_prog_CC="$CC" # Let the user override the test.
3191else
3192  ac_prog_rejected=no
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196  IFS=$as_save_IFS
3197  test -z "$as_dir" && as_dir=.
3198    for ac_exec_ext in '' $ac_executable_extensions; do
3199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3201       ac_prog_rejected=yes
3202       continue
3203     fi
3204    ac_cv_prog_CC="cc"
3205    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206    break 2
3207  fi
3208done
3209  done
3210IFS=$as_save_IFS
3211
3212if test $ac_prog_rejected = yes; then
3213  # We found a bogon in the path, so make sure we never use it.
3214  set dummy $ac_cv_prog_CC
3215  shift
3216  if test $# != 0; then
3217    # We chose a different compiler from the bogus one.
3218    # However, it has the same basename, so the bogon will be chosen
3219    # first if we set CC to just the basename; use the full file name.
3220    shift
3221    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3222  fi
3223fi
3224fi
3225fi
3226CC=$ac_cv_prog_CC
3227if test -n "$CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229$as_echo "$CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236fi
3237if test -z "$CC"; then
3238  if test -n "$ac_tool_prefix"; then
3239  for ac_prog in cl.exe
3240  do
3241    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if ${ac_cv_prog_CC+:} false; then :
3246  $as_echo_n "(cached) " >&6
3247else
3248  if test -n "$CC"; then
3249  ac_cv_prog_CC="$CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256    for ac_exec_ext in '' $ac_executable_extensions; do
3257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263  done
3264IFS=$as_save_IFS
3265
3266fi
3267fi
3268CC=$ac_cv_prog_CC
3269if test -n "$CC"; then
3270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271$as_echo "$CC" >&6; }
3272else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275fi
3276
3277
3278    test -n "$CC" && break
3279  done
3280fi
3281if test -z "$CC"; then
3282  ac_ct_CC=$CC
3283  for ac_prog in cl.exe
3284do
3285  # Extract the first word of "$ac_prog", so it can be a program name with args.
3286set dummy $ac_prog; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290  $as_echo_n "(cached) " >&6
3291else
3292  if test -n "$ac_ct_CC"; then
3293  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298  IFS=$as_save_IFS
3299  test -z "$as_dir" && as_dir=.
3300    for ac_exec_ext in '' $ac_executable_extensions; do
3301  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302    ac_cv_prog_ac_ct_CC="$ac_prog"
3303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304    break 2
3305  fi
3306done
3307  done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313if test -n "$ac_ct_CC"; then
3314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315$as_echo "$ac_ct_CC" >&6; }
3316else
3317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321
3322  test -n "$ac_ct_CC" && break
3323done
3324
3325  if test "x$ac_ct_CC" = x; then
3326    CC=""
3327  else
3328    case $cross_compiling:$ac_tool_warned in
3329yes:)
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3332ac_tool_warned=yes ;;
3333esac
3334    CC=$ac_ct_CC
3335  fi
3336fi
3337
3338fi
3339
3340
3341test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343as_fn_error $? "no acceptable C compiler found in \$PATH
3344See \`config.log' for more details" "$LINENO" 5; }
3345
3346# Provide some information about the compiler.
3347$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3348set X $ac_compile
3349ac_compiler=$2
3350for ac_option in --version -v -V -qversion; do
3351  { { ac_try="$ac_compiler $ac_option >&5"
3352case "(($ac_try" in
3353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354  *) ac_try_echo=$ac_try;;
3355esac
3356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357$as_echo "$ac_try_echo"; } >&5
3358  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3359  ac_status=$?
3360  if test -s conftest.err; then
3361    sed '10a\
3362... rest of stderr output deleted ...
3363         10q' conftest.err >conftest.er1
3364    cat conftest.er1 >&5
3365  fi
3366  rm -f conftest.er1 conftest.err
3367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }
3369done
3370
3371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h.  */
3373
3374int
3375main ()
3376{
3377
3378  ;
3379  return 0;
3380}
3381_ACEOF
3382ac_clean_files_save=$ac_clean_files
3383ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3384# Try to create an executable without -o first, disregard a.out.
3385# It will help us diagnose broken compilers, and finding out an intuition
3386# of exeext.
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3388$as_echo_n "checking whether the C compiler works... " >&6; }
3389ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3390
3391# The possible output files:
3392ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3393
3394ac_rmfiles=
3395for ac_file in $ac_files
3396do
3397  case $ac_file in
3398    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3400  esac
3401done
3402rm -f $ac_rmfiles
3403
3404if { { ac_try="$ac_link_default"
3405case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_link_default") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; then :
3415  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3416# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3417# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3418# so that the user can short-circuit this test for compilers unknown to
3419# Autoconf.
3420for ac_file in $ac_files ''
3421do
3422  test -f "$ac_file" || continue
3423  case $ac_file in
3424    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3425	;;
3426    [ab].out )
3427	# We found the default executable, but exeext='' is most
3428	# certainly right.
3429	break;;
3430    *.* )
3431	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3432	then :; else
3433	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434	fi
3435	# We set ac_cv_exeext here because the later test for it is not
3436	# safe: cross compilers may not add the suffix if given an `-o'
3437	# argument, so we may need to know it at that point already.
3438	# Even if this section looks crufty: it has the advantage of
3439	# actually working.
3440	break;;
3441    * )
3442	break;;
3443  esac
3444done
3445test "$ac_cv_exeext" = no && ac_cv_exeext=
3446
3447else
3448  ac_file=''
3449fi
3450if test -z "$ac_file"; then :
3451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453$as_echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3458as_fn_error 77 "C compiler cannot create executables
3459See \`config.log' for more details" "$LINENO" 5; }
3460else
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3462$as_echo "yes" >&6; }
3463fi
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3465$as_echo_n "checking for C compiler default output file name... " >&6; }
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3467$as_echo "$ac_file" >&6; }
3468ac_exeext=$ac_cv_exeext
3469
3470rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3471ac_clean_files=$ac_clean_files_save
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3473$as_echo_n "checking for suffix of executables... " >&6; }
3474if { { ac_try="$ac_link"
3475case "(($ac_try" in
3476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477  *) ac_try_echo=$ac_try;;
3478esac
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
3481  (eval "$ac_link") 2>&5
3482  ac_status=$?
3483  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484  test $ac_status = 0; }; then :
3485  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3486# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3487# work properly (i.e., refer to `conftest.exe'), while it won't with
3488# `rm'.
3489for ac_file in conftest.exe conftest conftest.*; do
3490  test -f "$ac_file" || continue
3491  case $ac_file in
3492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3493    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3494	  break;;
3495    * ) break;;
3496  esac
3497done
3498else
3499  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3502See \`config.log' for more details" "$LINENO" 5; }
3503fi
3504rm -f conftest conftest$ac_cv_exeext
3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3506$as_echo "$ac_cv_exeext" >&6; }
3507
3508rm -f conftest.$ac_ext
3509EXEEXT=$ac_cv_exeext
3510ac_exeext=$EXEEXT
3511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h.  */
3513#include <stdio.h>
3514int
3515main ()
3516{
3517FILE *f = fopen ("conftest.out", "w");
3518 return ferror (f) || fclose (f) != 0;
3519
3520  ;
3521  return 0;
3522}
3523_ACEOF
3524ac_clean_files="$ac_clean_files conftest.out"
3525# Check that the compiler produces executables we can run.  If not, either
3526# the compiler is broken, or we cross compile.
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3528$as_echo_n "checking whether we are cross compiling... " >&6; }
3529if test "$cross_compiling" != yes; then
3530  { { ac_try="$ac_link"
3531case "(($ac_try" in
3532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533  *) ac_try_echo=$ac_try;;
3534esac
3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536$as_echo "$ac_try_echo"; } >&5
3537  (eval "$ac_link") 2>&5
3538  ac_status=$?
3539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3540  test $ac_status = 0; }
3541  if { ac_try='./conftest$ac_cv_exeext'
3542  { { case "(($ac_try" in
3543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544  *) ac_try_echo=$ac_try;;
3545esac
3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547$as_echo "$ac_try_echo"; } >&5
3548  (eval "$ac_try") 2>&5
3549  ac_status=$?
3550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551  test $ac_status = 0; }; }; then
3552    cross_compiling=no
3553  else
3554    if test "$cross_compiling" = maybe; then
3555	cross_compiling=yes
3556    else
3557	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559as_fn_error $? "cannot run C compiled programs.
3560If you meant to cross compile, use \`--host'.
3561See \`config.log' for more details" "$LINENO" 5; }
3562    fi
3563  fi
3564fi
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3566$as_echo "$cross_compiling" >&6; }
3567
3568rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3569ac_clean_files=$ac_clean_files_save
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3571$as_echo_n "checking for suffix of object files... " >&6; }
3572if ${ac_cv_objext+:} false; then :
3573  $as_echo_n "(cached) " >&6
3574else
3575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h.  */
3577
3578int
3579main ()
3580{
3581
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586rm -f conftest.o conftest.obj
3587if { { ac_try="$ac_compile"
3588case "(($ac_try" in
3589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590  *) ac_try_echo=$ac_try;;
3591esac
3592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3593$as_echo "$ac_try_echo"; } >&5
3594  (eval "$ac_compile") 2>&5
3595  ac_status=$?
3596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3597  test $ac_status = 0; }; then :
3598  for ac_file in conftest.o conftest.obj conftest.*; do
3599  test -f "$ac_file" || continue;
3600  case $ac_file in
3601    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3602    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3603       break;;
3604  esac
3605done
3606else
3607  $as_echo "$as_me: failed program was:" >&5
3608sed 's/^/| /' conftest.$ac_ext >&5
3609
3610{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612as_fn_error $? "cannot compute suffix of object files: cannot compile
3613See \`config.log' for more details" "$LINENO" 5; }
3614fi
3615rm -f conftest.$ac_cv_objext conftest.$ac_ext
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3618$as_echo "$ac_cv_objext" >&6; }
3619OBJEXT=$ac_cv_objext
3620ac_objext=$OBJEXT
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3622$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3623if ${ac_cv_c_compiler_gnu+:} false; then :
3624  $as_echo_n "(cached) " >&6
3625else
3626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627/* end confdefs.h.  */
3628
3629int
3630main ()
3631{
3632#ifndef __GNUC__
3633       choke me
3634#endif
3635
3636  ;
3637  return 0;
3638}
3639_ACEOF
3640if ac_fn_c_try_compile "$LINENO"; then :
3641  ac_compiler_gnu=yes
3642else
3643  ac_compiler_gnu=no
3644fi
3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646ac_cv_c_compiler_gnu=$ac_compiler_gnu
3647
3648fi
3649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3650$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3651if test $ac_compiler_gnu = yes; then
3652  GCC=yes
3653else
3654  GCC=
3655fi
3656ac_test_CFLAGS=${CFLAGS+set}
3657ac_save_CFLAGS=$CFLAGS
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3659$as_echo_n "checking whether $CC accepts -g... " >&6; }
3660if ${ac_cv_prog_cc_g+:} false; then :
3661  $as_echo_n "(cached) " >&6
3662else
3663  ac_save_c_werror_flag=$ac_c_werror_flag
3664   ac_c_werror_flag=yes
3665   ac_cv_prog_cc_g=no
3666   CFLAGS="-g"
3667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h.  */
3669
3670int
3671main ()
3672{
3673
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678if ac_fn_c_try_compile "$LINENO"; then :
3679  ac_cv_prog_cc_g=yes
3680else
3681  CFLAGS=""
3682      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693if ac_fn_c_try_compile "$LINENO"; then :
3694
3695else
3696  ac_c_werror_flag=$ac_save_c_werror_flag
3697	 CFLAGS="-g"
3698	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699/* end confdefs.h.  */
3700
3701int
3702main ()
3703{
3704
3705  ;
3706  return 0;
3707}
3708_ACEOF
3709if ac_fn_c_try_compile "$LINENO"; then :
3710  ac_cv_prog_cc_g=yes
3711fi
3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713fi
3714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715fi
3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717   ac_c_werror_flag=$ac_save_c_werror_flag
3718fi
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3720$as_echo "$ac_cv_prog_cc_g" >&6; }
3721if test "$ac_test_CFLAGS" = set; then
3722  CFLAGS=$ac_save_CFLAGS
3723elif test $ac_cv_prog_cc_g = yes; then
3724  if test "$GCC" = yes; then
3725    CFLAGS="-g -O2"
3726  else
3727    CFLAGS="-g"
3728  fi
3729else
3730  if test "$GCC" = yes; then
3731    CFLAGS="-O2"
3732  else
3733    CFLAGS=
3734  fi
3735fi
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3737$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3738if ${ac_cv_prog_cc_c89+:} false; then :
3739  $as_echo_n "(cached) " >&6
3740else
3741  ac_cv_prog_cc_c89=no
3742ac_save_CC=$CC
3743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h.  */
3745#include <stdarg.h>
3746#include <stdio.h>
3747struct stat;
3748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3749struct buf { int x; };
3750FILE * (*rcsopen) (struct buf *, struct stat *, int);
3751static char *e (p, i)
3752     char **p;
3753     int i;
3754{
3755  return p[i];
3756}
3757static char *f (char * (*g) (char **, int), char **p, ...)
3758{
3759  char *s;
3760  va_list v;
3761  va_start (v,p);
3762  s = g (p, va_arg (v,int));
3763  va_end (v);
3764  return s;
3765}
3766
3767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3768   function prototypes and stuff, but not '\xHH' hex character constants.
3769   These don't provoke an error unfortunately, instead are silently treated
3770   as 'x'.  The following induces an error, until -std is added to get
3771   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3772   array size at least.  It's necessary to write '\x00'==0 to get something
3773   that's true only with -std.  */
3774int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3775
3776/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3777   inside strings and character constants.  */
3778#define FOO(x) 'x'
3779int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3780
3781int test (int i, double x);
3782struct s1 {int (*f) (int a);};
3783struct s2 {int (*f) (double a);};
3784int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3785int argc;
3786char **argv;
3787int
3788main ()
3789{
3790return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3791  ;
3792  return 0;
3793}
3794_ACEOF
3795for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3796	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3797do
3798  CC="$ac_save_CC $ac_arg"
3799  if ac_fn_c_try_compile "$LINENO"; then :
3800  ac_cv_prog_cc_c89=$ac_arg
3801fi
3802rm -f core conftest.err conftest.$ac_objext
3803  test "x$ac_cv_prog_cc_c89" != "xno" && break
3804done
3805rm -f conftest.$ac_ext
3806CC=$ac_save_CC
3807
3808fi
3809# AC_CACHE_VAL
3810case "x$ac_cv_prog_cc_c89" in
3811  x)
3812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3813$as_echo "none needed" >&6; } ;;
3814  xno)
3815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3816$as_echo "unsupported" >&6; } ;;
3817  *)
3818    CC="$CC $ac_cv_prog_cc_c89"
3819    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3820$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3821esac
3822if test "x$ac_cv_prog_cc_c89" != xno; then :
3823
3824fi
3825
3826ac_ext=c
3827ac_cpp='$CPP $CPPFLAGS'
3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831
3832ac_ext=c
3833ac_cpp='$CPP $CPPFLAGS'
3834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3836ac_compiler_gnu=$ac_cv_c_compiler_gnu
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3838$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3839if ${am_cv_prog_cc_c_o+:} false; then :
3840  $as_echo_n "(cached) " >&6
3841else
3842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h.  */
3844
3845int
3846main ()
3847{
3848
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853  # Make sure it works both with $CC and with simple cc.
3854  # Following AC_PROG_CC_C_O, we do the test twice because some
3855  # compilers refuse to overwrite an existing .o file with -o,
3856  # though they will create one.
3857  am_cv_prog_cc_c_o=yes
3858  for am_i in 1 2; do
3859    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3860   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3861   ac_status=$?
3862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863   (exit $ac_status); } \
3864         && test -f conftest2.$ac_objext; then
3865      : OK
3866    else
3867      am_cv_prog_cc_c_o=no
3868      break
3869    fi
3870  done
3871  rm -f core conftest*
3872  unset am_i
3873fi
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3875$as_echo "$am_cv_prog_cc_c_o" >&6; }
3876if test "$am_cv_prog_cc_c_o" != yes; then
3877   # Losing compiler, so override with the script.
3878   # FIXME: It is wrong to rewrite CC.
3879   # But if we don't then we get into trouble of one sort or another.
3880   # A longer-term fix would be to have automake use am__CC in this case,
3881   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3882   CC="$am_aux_dir/compile $CC"
3883fi
3884ac_ext=c
3885ac_cpp='$CPP $CPPFLAGS'
3886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3888ac_compiler_gnu=$ac_cv_c_compiler_gnu
3889
3890
3891depcc="$CC"   am_compiler_list=
3892
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3894$as_echo_n "checking dependency style of $depcc... " >&6; }
3895if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3896  $as_echo_n "(cached) " >&6
3897else
3898  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3899  # We make a subdir and do the tests there.  Otherwise we can end up
3900  # making bogus files that we don't know about and never remove.  For
3901  # instance it was reported that on HP-UX the gcc test will end up
3902  # making a dummy file named 'D' -- because '-MD' means "put the output
3903  # in D".
3904  rm -rf conftest.dir
3905  mkdir conftest.dir
3906  # Copy depcomp to subdir because otherwise we won't find it if we're
3907  # using a relative directory.
3908  cp "$am_depcomp" conftest.dir
3909  cd conftest.dir
3910  # We will build objects and dependencies in a subdirectory because
3911  # it helps to detect inapplicable dependency modes.  For instance
3912  # both Tru64's cc and ICC support -MD to output dependencies as a
3913  # side effect of compilation, but ICC will put the dependencies in
3914  # the current directory while Tru64 will put them in the object
3915  # directory.
3916  mkdir sub
3917
3918  am_cv_CC_dependencies_compiler_type=none
3919  if test "$am_compiler_list" = ""; then
3920     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3921  fi
3922  am__universal=false
3923  case " $depcc " in #(
3924     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3925     esac
3926
3927  for depmode in $am_compiler_list; do
3928    # Setup a source with many dependencies, because some compilers
3929    # like to wrap large dependency lists on column 80 (with \), and
3930    # we should not choose a depcomp mode which is confused by this.
3931    #
3932    # We need to recreate these files for each test, as the compiler may
3933    # overwrite some of them when testing with obscure command lines.
3934    # This happens at least with the AIX C compiler.
3935    : > sub/conftest.c
3936    for i in 1 2 3 4 5 6; do
3937      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3938      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3939      # Solaris 10 /bin/sh.
3940      echo '/* dummy */' > sub/conftst$i.h
3941    done
3942    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3943
3944    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3945    # mode.  It turns out that the SunPro C++ compiler does not properly
3946    # handle '-M -o', and we need to detect this.  Also, some Intel
3947    # versions had trouble with output in subdirs.
3948    am__obj=sub/conftest.${OBJEXT-o}
3949    am__minus_obj="-o $am__obj"
3950    case $depmode in
3951    gcc)
3952      # This depmode causes a compiler race in universal mode.
3953      test "$am__universal" = false || continue
3954      ;;
3955    nosideeffect)
3956      # After this tag, mechanisms are not by side-effect, so they'll
3957      # only be used when explicitly requested.
3958      if test "x$enable_dependency_tracking" = xyes; then
3959	continue
3960      else
3961	break
3962      fi
3963      ;;
3964    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3965      # This compiler won't grok '-c -o', but also, the minuso test has
3966      # not run yet.  These depmodes are late enough in the game, and
3967      # so weak that their functioning should not be impacted.
3968      am__obj=conftest.${OBJEXT-o}
3969      am__minus_obj=
3970      ;;
3971    none) break ;;
3972    esac
3973    if depmode=$depmode \
3974       source=sub/conftest.c object=$am__obj \
3975       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3976       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3977         >/dev/null 2>conftest.err &&
3978       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3979       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3980       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3981       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3982      # icc doesn't choke on unknown options, it will just issue warnings
3983      # or remarks (even with -Werror).  So we grep stderr for any message
3984      # that says an option was ignored or not supported.
3985      # When given -MP, icc 7.0 and 7.1 complain thusly:
3986      #   icc: Command line warning: ignoring option '-M'; no argument required
3987      # The diagnosis changed in icc 8.0:
3988      #   icc: Command line remark: option '-MP' not supported
3989      if (grep 'ignoring option' conftest.err ||
3990          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3991        am_cv_CC_dependencies_compiler_type=$depmode
3992        break
3993      fi
3994    fi
3995  done
3996
3997  cd ..
3998  rm -rf conftest.dir
3999else
4000  am_cv_CC_dependencies_compiler_type=none
4001fi
4002
4003fi
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4005$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4006CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4007
4008 if
4009  test "x$enable_dependency_tracking" != xno \
4010  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4011  am__fastdepCC_TRUE=
4012  am__fastdepCC_FALSE='#'
4013else
4014  am__fastdepCC_TRUE='#'
4015  am__fastdepCC_FALSE=
4016fi
4017
4018
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4020$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4021if ${ac_cv_prog_cc_c99+:} false; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  ac_cv_prog_cc_c99=no
4025ac_save_CC=$CC
4026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h.  */
4028#include <stdarg.h>
4029#include <stdbool.h>
4030#include <stdlib.h>
4031#include <wchar.h>
4032#include <stdio.h>
4033
4034// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4035#define debug(...) fprintf (stderr, __VA_ARGS__)
4036#define showlist(...) puts (#__VA_ARGS__)
4037#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4038static void
4039test_varargs_macros (void)
4040{
4041  int x = 1234;
4042  int y = 5678;
4043  debug ("Flag");
4044  debug ("X = %d\n", x);
4045  showlist (The first, second, and third items.);
4046  report (x>y, "x is %d but y is %d", x, y);
4047}
4048
4049// Check long long types.
4050#define BIG64 18446744073709551615ull
4051#define BIG32 4294967295ul
4052#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4053#if !BIG_OK
4054  your preprocessor is broken;
4055#endif
4056#if BIG_OK
4057#else
4058  your preprocessor is broken;
4059#endif
4060static long long int bignum = -9223372036854775807LL;
4061static unsigned long long int ubignum = BIG64;
4062
4063struct incomplete_array
4064{
4065  int datasize;
4066  double data[];
4067};
4068
4069struct named_init {
4070  int number;
4071  const wchar_t *name;
4072  double average;
4073};
4074
4075typedef const char *ccp;
4076
4077static inline int
4078test_restrict (ccp restrict text)
4079{
4080  // See if C++-style comments work.
4081  // Iterate through items via the restricted pointer.
4082  // Also check for declarations in for loops.
4083  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4084    continue;
4085  return 0;
4086}
4087
4088// Check varargs and va_copy.
4089static void
4090test_varargs (const char *format, ...)
4091{
4092  va_list args;
4093  va_start (args, format);
4094  va_list args_copy;
4095  va_copy (args_copy, args);
4096
4097  const char *str;
4098  int number;
4099  float fnumber;
4100
4101  while (*format)
4102    {
4103      switch (*format++)
4104	{
4105	case 's': // string
4106	  str = va_arg (args_copy, const char *);
4107	  break;
4108	case 'd': // int
4109	  number = va_arg (args_copy, int);
4110	  break;
4111	case 'f': // float
4112	  fnumber = va_arg (args_copy, double);
4113	  break;
4114	default:
4115	  break;
4116	}
4117    }
4118  va_end (args_copy);
4119  va_end (args);
4120}
4121
4122int
4123main ()
4124{
4125
4126  // Check bool.
4127  _Bool success = false;
4128
4129  // Check restrict.
4130  if (test_restrict ("String literal") == 0)
4131    success = true;
4132  char *restrict newvar = "Another string";
4133
4134  // Check varargs.
4135  test_varargs ("s, d' f .", "string", 65, 34.234);
4136  test_varargs_macros ();
4137
4138  // Check flexible array members.
4139  struct incomplete_array *ia =
4140    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4141  ia->datasize = 10;
4142  for (int i = 0; i < ia->datasize; ++i)
4143    ia->data[i] = i * 1.234;
4144
4145  // Check named initializers.
4146  struct named_init ni = {
4147    .number = 34,
4148    .name = L"Test wide string",
4149    .average = 543.34343,
4150  };
4151
4152  ni.number = 58;
4153
4154  int dynamic_array[ni.number];
4155  dynamic_array[ni.number - 1] = 543;
4156
4157  // work around unused variable warnings
4158  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4159	  || dynamic_array[ni.number - 1] != 543);
4160
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4166do
4167  CC="$ac_save_CC $ac_arg"
4168  if ac_fn_c_try_compile "$LINENO"; then :
4169  ac_cv_prog_cc_c99=$ac_arg
4170fi
4171rm -f core conftest.err conftest.$ac_objext
4172  test "x$ac_cv_prog_cc_c99" != "xno" && break
4173done
4174rm -f conftest.$ac_ext
4175CC=$ac_save_CC
4176
4177fi
4178# AC_CACHE_VAL
4179case "x$ac_cv_prog_cc_c99" in
4180  x)
4181    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182$as_echo "none needed" >&6; } ;;
4183  xno)
4184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185$as_echo "unsupported" >&6; } ;;
4186  *)
4187    CC="$CC $ac_cv_prog_cc_c99"
4188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4189$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4190esac
4191if test "x$ac_cv_prog_cc_c99" != xno; then :
4192
4193fi
4194
4195
4196
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4203$as_echo_n "checking how to run the C preprocessor... " >&6; }
4204# On Suns, sometimes $CPP names a directory.
4205if test -n "$CPP" && test -d "$CPP"; then
4206  CPP=
4207fi
4208if test -z "$CPP"; then
4209  if ${ac_cv_prog_CPP+:} false; then :
4210  $as_echo_n "(cached) " >&6
4211else
4212      # Double quotes because CPP needs to be expanded
4213    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4214    do
4215      ac_preproc_ok=false
4216for ac_c_preproc_warn_flag in '' yes
4217do
4218  # Use a header file that comes with gcc, so configuring glibc
4219  # with a fresh cross-compiler works.
4220  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221  # <limits.h> exists even on freestanding compilers.
4222  # On the NeXT, cc -E runs the code through the compiler's parser,
4223  # not just through cpp. "Syntax error" is here to catch this case.
4224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h.  */
4226#ifdef __STDC__
4227# include <limits.h>
4228#else
4229# include <assert.h>
4230#endif
4231		     Syntax error
4232_ACEOF
4233if ac_fn_c_try_cpp "$LINENO"; then :
4234
4235else
4236  # Broken: fails on valid input.
4237continue
4238fi
4239rm -f conftest.err conftest.i conftest.$ac_ext
4240
4241  # OK, works on sane cases.  Now check whether nonexistent headers
4242  # can be detected and how.
4243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244/* end confdefs.h.  */
4245#include <ac_nonexistent.h>
4246_ACEOF
4247if ac_fn_c_try_cpp "$LINENO"; then :
4248  # Broken: success on invalid input.
4249continue
4250else
4251  # Passes both tests.
4252ac_preproc_ok=:
4253break
4254fi
4255rm -f conftest.err conftest.i conftest.$ac_ext
4256
4257done
4258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4259rm -f conftest.i conftest.err conftest.$ac_ext
4260if $ac_preproc_ok; then :
4261  break
4262fi
4263
4264    done
4265    ac_cv_prog_CPP=$CPP
4266
4267fi
4268  CPP=$ac_cv_prog_CPP
4269else
4270  ac_cv_prog_CPP=$CPP
4271fi
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4273$as_echo "$CPP" >&6; }
4274ac_preproc_ok=false
4275for ac_c_preproc_warn_flag in '' yes
4276do
4277  # Use a header file that comes with gcc, so configuring glibc
4278  # with a fresh cross-compiler works.
4279  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4280  # <limits.h> exists even on freestanding compilers.
4281  # On the NeXT, cc -E runs the code through the compiler's parser,
4282  # not just through cpp. "Syntax error" is here to catch this case.
4283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h.  */
4285#ifdef __STDC__
4286# include <limits.h>
4287#else
4288# include <assert.h>
4289#endif
4290		     Syntax error
4291_ACEOF
4292if ac_fn_c_try_cpp "$LINENO"; then :
4293
4294else
4295  # Broken: fails on valid input.
4296continue
4297fi
4298rm -f conftest.err conftest.i conftest.$ac_ext
4299
4300  # OK, works on sane cases.  Now check whether nonexistent headers
4301  # can be detected and how.
4302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304#include <ac_nonexistent.h>
4305_ACEOF
4306if ac_fn_c_try_cpp "$LINENO"; then :
4307  # Broken: success on invalid input.
4308continue
4309else
4310  # Passes both tests.
4311ac_preproc_ok=:
4312break
4313fi
4314rm -f conftest.err conftest.i conftest.$ac_ext
4315
4316done
4317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4318rm -f conftest.i conftest.err conftest.$ac_ext
4319if $ac_preproc_ok; then :
4320
4321else
4322  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4324as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4325See \`config.log' for more details" "$LINENO" 5; }
4326fi
4327
4328ac_ext=c
4329ac_cpp='$CPP $CPPFLAGS'
4330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332ac_compiler_gnu=$ac_cv_c_compiler_gnu
4333
4334
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4336$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4337if ${ac_cv_path_GREP+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  if test -z "$GREP"; then
4341  ac_path_GREP_found=false
4342  # Loop through the user's path and test for each of PROGNAME-LIST
4343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348    for ac_prog in grep ggrep; do
4349    for ac_exec_ext in '' $ac_executable_extensions; do
4350      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4351      as_fn_executable_p "$ac_path_GREP" || continue
4352# Check for GNU ac_path_GREP and select it if it is found.
4353  # Check for GNU $ac_path_GREP
4354case `"$ac_path_GREP" --version 2>&1` in
4355*GNU*)
4356  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4357*)
4358  ac_count=0
4359  $as_echo_n 0123456789 >"conftest.in"
4360  while :
4361  do
4362    cat "conftest.in" "conftest.in" >"conftest.tmp"
4363    mv "conftest.tmp" "conftest.in"
4364    cp "conftest.in" "conftest.nl"
4365    $as_echo 'GREP' >> "conftest.nl"
4366    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4367    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4368    as_fn_arith $ac_count + 1 && ac_count=$as_val
4369    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4370      # Best one so far, save it but keep looking for a better one
4371      ac_cv_path_GREP="$ac_path_GREP"
4372      ac_path_GREP_max=$ac_count
4373    fi
4374    # 10*(2^10) chars as input seems more than enough
4375    test $ac_count -gt 10 && break
4376  done
4377  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4378esac
4379
4380      $ac_path_GREP_found && break 3
4381    done
4382  done
4383  done
4384IFS=$as_save_IFS
4385  if test -z "$ac_cv_path_GREP"; then
4386    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4387  fi
4388else
4389  ac_cv_path_GREP=$GREP
4390fi
4391
4392fi
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4394$as_echo "$ac_cv_path_GREP" >&6; }
4395 GREP="$ac_cv_path_GREP"
4396
4397
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4399$as_echo_n "checking for egrep... " >&6; }
4400if ${ac_cv_path_EGREP+:} false; then :
4401  $as_echo_n "(cached) " >&6
4402else
4403  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4404   then ac_cv_path_EGREP="$GREP -E"
4405   else
4406     if test -z "$EGREP"; then
4407  ac_path_EGREP_found=false
4408  # Loop through the user's path and test for each of PROGNAME-LIST
4409  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414    for ac_prog in egrep; do
4415    for ac_exec_ext in '' $ac_executable_extensions; do
4416      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4417      as_fn_executable_p "$ac_path_EGREP" || continue
4418# Check for GNU ac_path_EGREP and select it if it is found.
4419  # Check for GNU $ac_path_EGREP
4420case `"$ac_path_EGREP" --version 2>&1` in
4421*GNU*)
4422  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4423*)
4424  ac_count=0
4425  $as_echo_n 0123456789 >"conftest.in"
4426  while :
4427  do
4428    cat "conftest.in" "conftest.in" >"conftest.tmp"
4429    mv "conftest.tmp" "conftest.in"
4430    cp "conftest.in" "conftest.nl"
4431    $as_echo 'EGREP' >> "conftest.nl"
4432    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4433    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4434    as_fn_arith $ac_count + 1 && ac_count=$as_val
4435    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4436      # Best one so far, save it but keep looking for a better one
4437      ac_cv_path_EGREP="$ac_path_EGREP"
4438      ac_path_EGREP_max=$ac_count
4439    fi
4440    # 10*(2^10) chars as input seems more than enough
4441    test $ac_count -gt 10 && break
4442  done
4443  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4444esac
4445
4446      $ac_path_EGREP_found && break 3
4447    done
4448  done
4449  done
4450IFS=$as_save_IFS
4451  if test -z "$ac_cv_path_EGREP"; then
4452    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4453  fi
4454else
4455  ac_cv_path_EGREP=$EGREP
4456fi
4457
4458   fi
4459fi
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4461$as_echo "$ac_cv_path_EGREP" >&6; }
4462 EGREP="$ac_cv_path_EGREP"
4463
4464
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4466$as_echo_n "checking for ANSI C header files... " >&6; }
4467if ${ac_cv_header_stdc+:} false; then :
4468  $as_echo_n "(cached) " >&6
4469else
4470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471/* end confdefs.h.  */
4472#include <stdlib.h>
4473#include <stdarg.h>
4474#include <string.h>
4475#include <float.h>
4476
4477int
4478main ()
4479{
4480
4481  ;
4482  return 0;
4483}
4484_ACEOF
4485if ac_fn_c_try_compile "$LINENO"; then :
4486  ac_cv_header_stdc=yes
4487else
4488  ac_cv_header_stdc=no
4489fi
4490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491
4492if test $ac_cv_header_stdc = yes; then
4493  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h.  */
4496#include <string.h>
4497
4498_ACEOF
4499if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4500  $EGREP "memchr" >/dev/null 2>&1; then :
4501
4502else
4503  ac_cv_header_stdc=no
4504fi
4505rm -f conftest*
4506
4507fi
4508
4509if test $ac_cv_header_stdc = yes; then
4510  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h.  */
4513#include <stdlib.h>
4514
4515_ACEOF
4516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517  $EGREP "free" >/dev/null 2>&1; then :
4518
4519else
4520  ac_cv_header_stdc=no
4521fi
4522rm -f conftest*
4523
4524fi
4525
4526if test $ac_cv_header_stdc = yes; then
4527  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4528  if test "$cross_compiling" = yes; then :
4529  :
4530else
4531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h.  */
4533#include <ctype.h>
4534#include <stdlib.h>
4535#if ((' ' & 0x0FF) == 0x020)
4536# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4537# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4538#else
4539# define ISLOWER(c) \
4540		   (('a' <= (c) && (c) <= 'i') \
4541		     || ('j' <= (c) && (c) <= 'r') \
4542		     || ('s' <= (c) && (c) <= 'z'))
4543# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4544#endif
4545
4546#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4547int
4548main ()
4549{
4550  int i;
4551  for (i = 0; i < 256; i++)
4552    if (XOR (islower (i), ISLOWER (i))
4553	|| toupper (i) != TOUPPER (i))
4554      return 2;
4555  return 0;
4556}
4557_ACEOF
4558if ac_fn_c_try_run "$LINENO"; then :
4559
4560else
4561  ac_cv_header_stdc=no
4562fi
4563rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4564  conftest.$ac_objext conftest.beam conftest.$ac_ext
4565fi
4566
4567fi
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4570$as_echo "$ac_cv_header_stdc" >&6; }
4571if test $ac_cv_header_stdc = yes; then
4572
4573$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4574
4575fi
4576
4577# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4578for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4579		  inttypes.h stdint.h unistd.h
4580do :
4581  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4583"
4584if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4585  cat >>confdefs.h <<_ACEOF
4586#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4587_ACEOF
4588
4589fi
4590
4591done
4592
4593
4594
4595
4596
4597
4598ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4599if test "x$ac_cv_have_decl___clang__" = xyes; then :
4600  CLANGCC="yes"
4601else
4602  CLANGCC="no"
4603fi
4604
4605ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4606if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4607  INTELCC="yes"
4608else
4609  INTELCC="no"
4610fi
4611
4612ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4613if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4614  SUNCC="yes"
4615else
4616  SUNCC="no"
4617fi
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4628	if test -n "$ac_tool_prefix"; then
4629  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4630set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632$as_echo_n "checking for $ac_word... " >&6; }
4633if ${ac_cv_path_PKG_CONFIG+:} false; then :
4634  $as_echo_n "(cached) " >&6
4635else
4636  case $PKG_CONFIG in
4637  [\\/]* | ?:[\\/]*)
4638  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4639  ;;
4640  *)
4641  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642for as_dir in $PATH
4643do
4644  IFS=$as_save_IFS
4645  test -z "$as_dir" && as_dir=.
4646    for ac_exec_ext in '' $ac_executable_extensions; do
4647  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4649    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650    break 2
4651  fi
4652done
4653  done
4654IFS=$as_save_IFS
4655
4656  ;;
4657esac
4658fi
4659PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4660if test -n "$PKG_CONFIG"; then
4661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4662$as_echo "$PKG_CONFIG" >&6; }
4663else
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665$as_echo "no" >&6; }
4666fi
4667
4668
4669fi
4670if test -z "$ac_cv_path_PKG_CONFIG"; then
4671  ac_pt_PKG_CONFIG=$PKG_CONFIG
4672  # Extract the first word of "pkg-config", so it can be a program name with args.
4673set dummy pkg-config; ac_word=$2
4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675$as_echo_n "checking for $ac_word... " >&6; }
4676if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4677  $as_echo_n "(cached) " >&6
4678else
4679  case $ac_pt_PKG_CONFIG in
4680  [\\/]* | ?:[\\/]*)
4681  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4682  ;;
4683  *)
4684  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687  IFS=$as_save_IFS
4688  test -z "$as_dir" && as_dir=.
4689    for ac_exec_ext in '' $ac_executable_extensions; do
4690  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4692    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4693    break 2
4694  fi
4695done
4696  done
4697IFS=$as_save_IFS
4698
4699  ;;
4700esac
4701fi
4702ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4703if test -n "$ac_pt_PKG_CONFIG"; then
4704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4705$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4706else
4707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708$as_echo "no" >&6; }
4709fi
4710
4711  if test "x$ac_pt_PKG_CONFIG" = x; then
4712    PKG_CONFIG=""
4713  else
4714    case $cross_compiling:$ac_tool_warned in
4715yes:)
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718ac_tool_warned=yes ;;
4719esac
4720    PKG_CONFIG=$ac_pt_PKG_CONFIG
4721  fi
4722else
4723  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4724fi
4725
4726fi
4727if test -n "$PKG_CONFIG"; then
4728	_pkg_min_version=0.9.0
4729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4730$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4731	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4732		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4733$as_echo "yes" >&6; }
4734	else
4735		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736$as_echo "no" >&6; }
4737		PKG_CONFIG=""
4738	fi
4739fi
4740# Make sure we can run config.sub.
4741$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4742  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4743
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4745$as_echo_n "checking build system type... " >&6; }
4746if ${ac_cv_build+:} false; then :
4747  $as_echo_n "(cached) " >&6
4748else
4749  ac_build_alias=$build_alias
4750test "x$ac_build_alias" = x &&
4751  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4752test "x$ac_build_alias" = x &&
4753  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4754ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4755  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4759$as_echo "$ac_cv_build" >&6; }
4760case $ac_cv_build in
4761*-*-*) ;;
4762*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4763esac
4764build=$ac_cv_build
4765ac_save_IFS=$IFS; IFS='-'
4766set x $ac_cv_build
4767shift
4768build_cpu=$1
4769build_vendor=$2
4770shift; shift
4771# Remember, the first character of IFS is used to create $*,
4772# except with old shells:
4773build_os=$*
4774IFS=$ac_save_IFS
4775case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4776
4777
4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4779$as_echo_n "checking host system type... " >&6; }
4780if ${ac_cv_host+:} false; then :
4781  $as_echo_n "(cached) " >&6
4782else
4783  if test "x$host_alias" = x; then
4784  ac_cv_host=$ac_cv_build
4785else
4786  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4787    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4788fi
4789
4790fi
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4792$as_echo "$ac_cv_host" >&6; }
4793case $ac_cv_host in
4794*-*-*) ;;
4795*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4796esac
4797host=$ac_cv_host
4798ac_save_IFS=$IFS; IFS='-'
4799set x $ac_cv_host
4800shift
4801host_cpu=$1
4802host_vendor=$2
4803shift; shift
4804# Remember, the first character of IFS is used to create $*,
4805# except with old shells:
4806host_os=$*
4807IFS=$ac_save_IFS
4808case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4809
4810
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4812$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4813if ${ac_cv_path_SED+:} false; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4817     for ac_i in 1 2 3 4 5 6 7; do
4818       ac_script="$ac_script$as_nl$ac_script"
4819     done
4820     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4821     { ac_script=; unset ac_script;}
4822     if test -z "$SED"; then
4823  ac_path_SED_found=false
4824  # Loop through the user's path and test for each of PROGNAME-LIST
4825  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
4827do
4828  IFS=$as_save_IFS
4829  test -z "$as_dir" && as_dir=.
4830    for ac_prog in sed gsed; do
4831    for ac_exec_ext in '' $ac_executable_extensions; do
4832      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4833      as_fn_executable_p "$ac_path_SED" || continue
4834# Check for GNU ac_path_SED and select it if it is found.
4835  # Check for GNU $ac_path_SED
4836case `"$ac_path_SED" --version 2>&1` in
4837*GNU*)
4838  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4839*)
4840  ac_count=0
4841  $as_echo_n 0123456789 >"conftest.in"
4842  while :
4843  do
4844    cat "conftest.in" "conftest.in" >"conftest.tmp"
4845    mv "conftest.tmp" "conftest.in"
4846    cp "conftest.in" "conftest.nl"
4847    $as_echo '' >> "conftest.nl"
4848    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850    as_fn_arith $ac_count + 1 && ac_count=$as_val
4851    if test $ac_count -gt ${ac_path_SED_max-0}; then
4852      # Best one so far, save it but keep looking for a better one
4853      ac_cv_path_SED="$ac_path_SED"
4854      ac_path_SED_max=$ac_count
4855    fi
4856    # 10*(2^10) chars as input seems more than enough
4857    test $ac_count -gt 10 && break
4858  done
4859  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860esac
4861
4862      $ac_path_SED_found && break 3
4863    done
4864  done
4865  done
4866IFS=$as_save_IFS
4867  if test -z "$ac_cv_path_SED"; then
4868    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4869  fi
4870else
4871  ac_cv_path_SED=$SED
4872fi
4873
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4876$as_echo "$ac_cv_path_SED" >&6; }
4877 SED="$ac_cv_path_SED"
4878  rm -f conftest.sed
4879
4880
4881
4882
4883
4884
4885# Check whether --enable-selective-werror was given.
4886if test "${enable_selective_werror+set}" = set; then :
4887  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4888else
4889  SELECTIVE_WERROR=yes
4890fi
4891
4892
4893
4894
4895
4896# -v is too short to test reliably with XORG_TESTSET_CFLAG
4897if test "x$SUNCC" = "xyes"; then
4898    BASE_CFLAGS="-v"
4899else
4900    BASE_CFLAGS=""
4901fi
4902
4903# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917xorg_testset_save_CFLAGS="$CFLAGS"
4918
4919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4924  $as_echo_n "(cached) " >&6
4925else
4926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927/* end confdefs.h.  */
4928int i;
4929_ACEOF
4930if ac_fn_c_try_compile "$LINENO"; then :
4931  xorg_cv_cc_flag_unknown_warning_option=yes
4932else
4933  xorg_cv_cc_flag_unknown_warning_option=no
4934fi
4935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936fi
4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4940	CFLAGS="$xorg_testset_save_CFLAGS"
4941fi
4942
4943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4946	fi
4947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4951  $as_echo_n "(cached) " >&6
4952else
4953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954/* end confdefs.h.  */
4955int i;
4956_ACEOF
4957if ac_fn_c_try_compile "$LINENO"; then :
4958  xorg_cv_cc_flag_unused_command_line_argument=yes
4959else
4960  xorg_cv_cc_flag_unused_command_line_argument=no
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4967	CFLAGS="$xorg_testset_save_CFLAGS"
4968fi
4969
4970found="no"
4971
4972	if test $found = "no" ; then
4973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4975		fi
4976
4977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4979		fi
4980
4981		CFLAGS="$CFLAGS -Wall"
4982
4983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4984$as_echo_n "checking if $CC supports -Wall... " >&6; }
4985		cacheid=xorg_cv_cc_flag__Wall
4986		if eval \${$cacheid+:} false; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990/* end confdefs.h.  */
4991int i;
4992int
4993main ()
4994{
4995
4996  ;
4997  return 0;
4998}
4999_ACEOF
5000if ac_fn_c_try_link "$LINENO"; then :
5001  eval $cacheid=yes
5002else
5003  eval $cacheid=no
5004fi
5005rm -f core conftest.err conftest.$ac_objext \
5006    conftest$ac_exeext conftest.$ac_ext
5007fi
5008
5009
5010		CFLAGS="$xorg_testset_save_CFLAGS"
5011
5012		eval supported=\$$cacheid
5013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5014$as_echo "$supported" >&6; }
5015		if test "$supported" = "yes" ; then
5016			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5017			found="yes"
5018		fi
5019	fi
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035xorg_testset_save_CFLAGS="$CFLAGS"
5036
5037if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5038	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5040$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5041if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5042  $as_echo_n "(cached) " >&6
5043else
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046int i;
5047_ACEOF
5048if ac_fn_c_try_compile "$LINENO"; then :
5049  xorg_cv_cc_flag_unknown_warning_option=yes
5050else
5051  xorg_cv_cc_flag_unknown_warning_option=no
5052fi
5053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054fi
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5056$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5058	CFLAGS="$xorg_testset_save_CFLAGS"
5059fi
5060
5061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064	fi
5065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5067$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5068if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073int i;
5074_ACEOF
5075if ac_fn_c_try_compile "$LINENO"; then :
5076  xorg_cv_cc_flag_unused_command_line_argument=yes
5077else
5078  xorg_cv_cc_flag_unused_command_line_argument=no
5079fi
5080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5081fi
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5083$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5084	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5085	CFLAGS="$xorg_testset_save_CFLAGS"
5086fi
5087
5088found="no"
5089
5090	if test $found = "no" ; then
5091		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5092			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5093		fi
5094
5095		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5096			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5097		fi
5098
5099		CFLAGS="$CFLAGS -Wpointer-arith"
5100
5101		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5102$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5103		cacheid=xorg_cv_cc_flag__Wpointer_arith
5104		if eval \${$cacheid+:} false; then :
5105  $as_echo_n "(cached) " >&6
5106else
5107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h.  */
5109int i;
5110int
5111main ()
5112{
5113
5114  ;
5115  return 0;
5116}
5117_ACEOF
5118if ac_fn_c_try_link "$LINENO"; then :
5119  eval $cacheid=yes
5120else
5121  eval $cacheid=no
5122fi
5123rm -f core conftest.err conftest.$ac_objext \
5124    conftest$ac_exeext conftest.$ac_ext
5125fi
5126
5127
5128		CFLAGS="$xorg_testset_save_CFLAGS"
5129
5130		eval supported=\$$cacheid
5131		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5132$as_echo "$supported" >&6; }
5133		if test "$supported" = "yes" ; then
5134			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5135			found="yes"
5136		fi
5137	fi
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153xorg_testset_save_CFLAGS="$CFLAGS"
5154
5155if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5156	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5158$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5159if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163/* end confdefs.h.  */
5164int i;
5165_ACEOF
5166if ac_fn_c_try_compile "$LINENO"; then :
5167  xorg_cv_cc_flag_unknown_warning_option=yes
5168else
5169  xorg_cv_cc_flag_unknown_warning_option=no
5170fi
5171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5174$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5175	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5176	CFLAGS="$xorg_testset_save_CFLAGS"
5177fi
5178
5179if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5180	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5181		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182	fi
5183	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5185$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5186if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5187  $as_echo_n "(cached) " >&6
5188else
5189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190/* end confdefs.h.  */
5191int i;
5192_ACEOF
5193if ac_fn_c_try_compile "$LINENO"; then :
5194  xorg_cv_cc_flag_unused_command_line_argument=yes
5195else
5196  xorg_cv_cc_flag_unused_command_line_argument=no
5197fi
5198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5199fi
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5201$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5202	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5203	CFLAGS="$xorg_testset_save_CFLAGS"
5204fi
5205
5206found="no"
5207
5208	if test $found = "no" ; then
5209		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5210			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5211		fi
5212
5213		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5214			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5215		fi
5216
5217		CFLAGS="$CFLAGS -Wmissing-declarations"
5218
5219		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5220$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5221		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5222		if eval \${$cacheid+:} false; then :
5223  $as_echo_n "(cached) " >&6
5224else
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227int i;
5228int
5229main ()
5230{
5231
5232  ;
5233  return 0;
5234}
5235_ACEOF
5236if ac_fn_c_try_link "$LINENO"; then :
5237  eval $cacheid=yes
5238else
5239  eval $cacheid=no
5240fi
5241rm -f core conftest.err conftest.$ac_objext \
5242    conftest$ac_exeext conftest.$ac_ext
5243fi
5244
5245
5246		CFLAGS="$xorg_testset_save_CFLAGS"
5247
5248		eval supported=\$$cacheid
5249		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5250$as_echo "$supported" >&6; }
5251		if test "$supported" = "yes" ; then
5252			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5253			found="yes"
5254		fi
5255	fi
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271xorg_testset_save_CFLAGS="$CFLAGS"
5272
5273if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5274	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5276$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5277if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5278  $as_echo_n "(cached) " >&6
5279else
5280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5281/* end confdefs.h.  */
5282int i;
5283_ACEOF
5284if ac_fn_c_try_compile "$LINENO"; then :
5285  xorg_cv_cc_flag_unknown_warning_option=yes
5286else
5287  xorg_cv_cc_flag_unknown_warning_option=no
5288fi
5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5290fi
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5292$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5293	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5294	CFLAGS="$xorg_testset_save_CFLAGS"
5295fi
5296
5297if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5298	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5299		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300	fi
5301	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5303$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5304if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309int i;
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312  xorg_cv_cc_flag_unused_command_line_argument=yes
5313else
5314  xorg_cv_cc_flag_unused_command_line_argument=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317fi
5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5319$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5321	CFLAGS="$xorg_testset_save_CFLAGS"
5322fi
5323
5324found="no"
5325
5326	if test $found = "no" ; then
5327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5329		fi
5330
5331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5333		fi
5334
5335		CFLAGS="$CFLAGS -Wformat=2"
5336
5337		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5338$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5339		cacheid=xorg_cv_cc_flag__Wformat_2
5340		if eval \${$cacheid+:} false; then :
5341  $as_echo_n "(cached) " >&6
5342else
5343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344/* end confdefs.h.  */
5345int i;
5346int
5347main ()
5348{
5349
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354if ac_fn_c_try_link "$LINENO"; then :
5355  eval $cacheid=yes
5356else
5357  eval $cacheid=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext \
5360    conftest$ac_exeext conftest.$ac_ext
5361fi
5362
5363
5364		CFLAGS="$xorg_testset_save_CFLAGS"
5365
5366		eval supported=\$$cacheid
5367		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5368$as_echo "$supported" >&6; }
5369		if test "$supported" = "yes" ; then
5370			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5371			found="yes"
5372		fi
5373	fi
5374
5375	if test $found = "no" ; then
5376		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5377			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5378		fi
5379
5380		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5381			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5382		fi
5383
5384		CFLAGS="$CFLAGS -Wformat"
5385
5386		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5387$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5388		cacheid=xorg_cv_cc_flag__Wformat
5389		if eval \${$cacheid+:} false; then :
5390  $as_echo_n "(cached) " >&6
5391else
5392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h.  */
5394int i;
5395int
5396main ()
5397{
5398
5399  ;
5400  return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_link "$LINENO"; then :
5404  eval $cacheid=yes
5405else
5406  eval $cacheid=no
5407fi
5408rm -f core conftest.err conftest.$ac_objext \
5409    conftest$ac_exeext conftest.$ac_ext
5410fi
5411
5412
5413		CFLAGS="$xorg_testset_save_CFLAGS"
5414
5415		eval supported=\$$cacheid
5416		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5417$as_echo "$supported" >&6; }
5418		if test "$supported" = "yes" ; then
5419			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5420			found="yes"
5421		fi
5422	fi
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440xorg_testset_save_CFLAGS="$CFLAGS"
5441
5442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452_ACEOF
5453if ac_fn_c_try_compile "$LINENO"; then :
5454  xorg_cv_cc_flag_unknown_warning_option=yes
5455else
5456  xorg_cv_cc_flag_unknown_warning_option=no
5457fi
5458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5463	CFLAGS="$xorg_testset_save_CFLAGS"
5464fi
5465
5466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5469	fi
5470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5474  $as_echo_n "(cached) " >&6
5475else
5476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477/* end confdefs.h.  */
5478int i;
5479_ACEOF
5480if ac_fn_c_try_compile "$LINENO"; then :
5481  xorg_cv_cc_flag_unused_command_line_argument=yes
5482else
5483  xorg_cv_cc_flag_unused_command_line_argument=no
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486fi
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5490	CFLAGS="$xorg_testset_save_CFLAGS"
5491fi
5492
5493found="no"
5494
5495	if test $found = "no" ; then
5496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498		fi
5499
5500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5502		fi
5503
5504		CFLAGS="$CFLAGS -Wstrict-prototypes"
5505
5506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5507$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5508		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5509		if eval \${$cacheid+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513/* end confdefs.h.  */
5514int i;
5515int
5516main ()
5517{
5518
5519  ;
5520  return 0;
5521}
5522_ACEOF
5523if ac_fn_c_try_link "$LINENO"; then :
5524  eval $cacheid=yes
5525else
5526  eval $cacheid=no
5527fi
5528rm -f core conftest.err conftest.$ac_objext \
5529    conftest$ac_exeext conftest.$ac_ext
5530fi
5531
5532
5533		CFLAGS="$xorg_testset_save_CFLAGS"
5534
5535		eval supported=\$$cacheid
5536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5537$as_echo "$supported" >&6; }
5538		if test "$supported" = "yes" ; then
5539			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5540			found="yes"
5541		fi
5542	fi
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558xorg_testset_save_CFLAGS="$CFLAGS"
5559
5560if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5561	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5563$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5564if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569int i;
5570_ACEOF
5571if ac_fn_c_try_compile "$LINENO"; then :
5572  xorg_cv_cc_flag_unknown_warning_option=yes
5573else
5574  xorg_cv_cc_flag_unknown_warning_option=no
5575fi
5576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5579$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5581	CFLAGS="$xorg_testset_save_CFLAGS"
5582fi
5583
5584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5587	fi
5588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5589	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5590$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5591if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5592  $as_echo_n "(cached) " >&6
5593else
5594  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5595/* end confdefs.h.  */
5596int i;
5597_ACEOF
5598if ac_fn_c_try_compile "$LINENO"; then :
5599  xorg_cv_cc_flag_unused_command_line_argument=yes
5600else
5601  xorg_cv_cc_flag_unused_command_line_argument=no
5602fi
5603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604fi
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5606$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5607	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5608	CFLAGS="$xorg_testset_save_CFLAGS"
5609fi
5610
5611found="no"
5612
5613	if test $found = "no" ; then
5614		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5615			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616		fi
5617
5618		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5619			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5620		fi
5621
5622		CFLAGS="$CFLAGS -Wmissing-prototypes"
5623
5624		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5625$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5626		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5627		if eval \${$cacheid+:} false; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h.  */
5632int i;
5633int
5634main ()
5635{
5636
5637  ;
5638  return 0;
5639}
5640_ACEOF
5641if ac_fn_c_try_link "$LINENO"; then :
5642  eval $cacheid=yes
5643else
5644  eval $cacheid=no
5645fi
5646rm -f core conftest.err conftest.$ac_objext \
5647    conftest$ac_exeext conftest.$ac_ext
5648fi
5649
5650
5651		CFLAGS="$xorg_testset_save_CFLAGS"
5652
5653		eval supported=\$$cacheid
5654		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5655$as_echo "$supported" >&6; }
5656		if test "$supported" = "yes" ; then
5657			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5658			found="yes"
5659		fi
5660	fi
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676xorg_testset_save_CFLAGS="$CFLAGS"
5677
5678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5681$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5682if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687int i;
5688_ACEOF
5689if ac_fn_c_try_compile "$LINENO"; then :
5690  xorg_cv_cc_flag_unknown_warning_option=yes
5691else
5692  xorg_cv_cc_flag_unknown_warning_option=no
5693fi
5694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695fi
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5697$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5698	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5699	CFLAGS="$xorg_testset_save_CFLAGS"
5700fi
5701
5702if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5703	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5704		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5705	fi
5706	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5707	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5708$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5709if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5710  $as_echo_n "(cached) " >&6
5711else
5712  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713/* end confdefs.h.  */
5714int i;
5715_ACEOF
5716if ac_fn_c_try_compile "$LINENO"; then :
5717  xorg_cv_cc_flag_unused_command_line_argument=yes
5718else
5719  xorg_cv_cc_flag_unused_command_line_argument=no
5720fi
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722fi
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5724$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5725	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5726	CFLAGS="$xorg_testset_save_CFLAGS"
5727fi
5728
5729found="no"
5730
5731	if test $found = "no" ; then
5732		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5733			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5734		fi
5735
5736		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5737			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5738		fi
5739
5740		CFLAGS="$CFLAGS -Wnested-externs"
5741
5742		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5743$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5744		cacheid=xorg_cv_cc_flag__Wnested_externs
5745		if eval \${$cacheid+:} false; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750int i;
5751int
5752main ()
5753{
5754
5755  ;
5756  return 0;
5757}
5758_ACEOF
5759if ac_fn_c_try_link "$LINENO"; then :
5760  eval $cacheid=yes
5761else
5762  eval $cacheid=no
5763fi
5764rm -f core conftest.err conftest.$ac_objext \
5765    conftest$ac_exeext conftest.$ac_ext
5766fi
5767
5768
5769		CFLAGS="$xorg_testset_save_CFLAGS"
5770
5771		eval supported=\$$cacheid
5772		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5773$as_echo "$supported" >&6; }
5774		if test "$supported" = "yes" ; then
5775			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5776			found="yes"
5777		fi
5778	fi
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794xorg_testset_save_CFLAGS="$CFLAGS"
5795
5796if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5797	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5799$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5800if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805int i;
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"; then :
5808  xorg_cv_cc_flag_unknown_warning_option=yes
5809else
5810  xorg_cv_cc_flag_unknown_warning_option=no
5811fi
5812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813fi
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5815$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5816	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5817	CFLAGS="$xorg_testset_save_CFLAGS"
5818fi
5819
5820if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5821	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5822		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5823	fi
5824	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5825	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5826$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5827if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5828  $as_echo_n "(cached) " >&6
5829else
5830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h.  */
5832int i;
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"; then :
5835  xorg_cv_cc_flag_unused_command_line_argument=yes
5836else
5837  xorg_cv_cc_flag_unused_command_line_argument=no
5838fi
5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840fi
5841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5842$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5843	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5844	CFLAGS="$xorg_testset_save_CFLAGS"
5845fi
5846
5847found="no"
5848
5849	if test $found = "no" ; then
5850		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5851			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852		fi
5853
5854		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5855			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856		fi
5857
5858		CFLAGS="$CFLAGS -Wbad-function-cast"
5859
5860		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5861$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5862		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5863		if eval \${$cacheid+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5867/* end confdefs.h.  */
5868int i;
5869int
5870main ()
5871{
5872
5873  ;
5874  return 0;
5875}
5876_ACEOF
5877if ac_fn_c_try_link "$LINENO"; then :
5878  eval $cacheid=yes
5879else
5880  eval $cacheid=no
5881fi
5882rm -f core conftest.err conftest.$ac_objext \
5883    conftest$ac_exeext conftest.$ac_ext
5884fi
5885
5886
5887		CFLAGS="$xorg_testset_save_CFLAGS"
5888
5889		eval supported=\$$cacheid
5890		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5891$as_echo "$supported" >&6; }
5892		if test "$supported" = "yes" ; then
5893			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5894			found="yes"
5895		fi
5896	fi
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912xorg_testset_save_CFLAGS="$CFLAGS"
5913
5914if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5915	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5917$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5918if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923int i;
5924_ACEOF
5925if ac_fn_c_try_compile "$LINENO"; then :
5926  xorg_cv_cc_flag_unknown_warning_option=yes
5927else
5928  xorg_cv_cc_flag_unknown_warning_option=no
5929fi
5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931fi
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5933$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5934	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5935	CFLAGS="$xorg_testset_save_CFLAGS"
5936fi
5937
5938if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5939	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5940		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5941	fi
5942	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5943	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5944$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5945if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949/* end confdefs.h.  */
5950int i;
5951_ACEOF
5952if ac_fn_c_try_compile "$LINENO"; then :
5953  xorg_cv_cc_flag_unused_command_line_argument=yes
5954else
5955  xorg_cv_cc_flag_unused_command_line_argument=no
5956fi
5957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958fi
5959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5960$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5961	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5962	CFLAGS="$xorg_testset_save_CFLAGS"
5963fi
5964
5965found="no"
5966
5967	if test $found = "no" ; then
5968		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5969			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5970		fi
5971
5972		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5973			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5974		fi
5975
5976		CFLAGS="$CFLAGS -Wold-style-definition"
5977
5978		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5979$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5980		cacheid=xorg_cv_cc_flag__Wold_style_definition
5981		if eval \${$cacheid+:} false; then :
5982  $as_echo_n "(cached) " >&6
5983else
5984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986int i;
5987int
5988main ()
5989{
5990
5991  ;
5992  return 0;
5993}
5994_ACEOF
5995if ac_fn_c_try_link "$LINENO"; then :
5996  eval $cacheid=yes
5997else
5998  eval $cacheid=no
5999fi
6000rm -f core conftest.err conftest.$ac_objext \
6001    conftest$ac_exeext conftest.$ac_ext
6002fi
6003
6004
6005		CFLAGS="$xorg_testset_save_CFLAGS"
6006
6007		eval supported=\$$cacheid
6008		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6009$as_echo "$supported" >&6; }
6010		if test "$supported" = "yes" ; then
6011			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6012			found="yes"
6013		fi
6014	fi
6015
6016	if test $found = "no" ; then
6017		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6019		fi
6020
6021		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6023		fi
6024
6025		CFLAGS="$CFLAGS -fd"
6026
6027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6028$as_echo_n "checking if $CC supports -fd... " >&6; }
6029		cacheid=xorg_cv_cc_flag__fd
6030		if eval \${$cacheid+:} false; then :
6031  $as_echo_n "(cached) " >&6
6032else
6033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h.  */
6035int i;
6036int
6037main ()
6038{
6039
6040  ;
6041  return 0;
6042}
6043_ACEOF
6044if ac_fn_c_try_link "$LINENO"; then :
6045  eval $cacheid=yes
6046else
6047  eval $cacheid=no
6048fi
6049rm -f core conftest.err conftest.$ac_objext \
6050    conftest$ac_exeext conftest.$ac_ext
6051fi
6052
6053
6054		CFLAGS="$xorg_testset_save_CFLAGS"
6055
6056		eval supported=\$$cacheid
6057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6058$as_echo "$supported" >&6; }
6059		if test "$supported" = "yes" ; then
6060			BASE_CFLAGS="$BASE_CFLAGS -fd"
6061			found="yes"
6062		fi
6063	fi
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079xorg_testset_save_CFLAGS="$CFLAGS"
6080
6081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6086  $as_echo_n "(cached) " >&6
6087else
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090int i;
6091_ACEOF
6092if ac_fn_c_try_compile "$LINENO"; then :
6093  xorg_cv_cc_flag_unknown_warning_option=yes
6094else
6095  xorg_cv_cc_flag_unknown_warning_option=no
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098fi
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6102	CFLAGS="$xorg_testset_save_CFLAGS"
6103fi
6104
6105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108	fi
6109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6113  $as_echo_n "(cached) " >&6
6114else
6115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6116/* end confdefs.h.  */
6117int i;
6118_ACEOF
6119if ac_fn_c_try_compile "$LINENO"; then :
6120  xorg_cv_cc_flag_unused_command_line_argument=yes
6121else
6122  xorg_cv_cc_flag_unused_command_line_argument=no
6123fi
6124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125fi
6126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6129	CFLAGS="$xorg_testset_save_CFLAGS"
6130fi
6131
6132found="no"
6133
6134	if test $found = "no" ; then
6135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6137		fi
6138
6139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6141		fi
6142
6143		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6144
6145		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6146$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6147		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6148		if eval \${$cacheid+:} false; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153int i;
6154int
6155main ()
6156{
6157
6158  ;
6159  return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_link "$LINENO"; then :
6163  eval $cacheid=yes
6164else
6165  eval $cacheid=no
6166fi
6167rm -f core conftest.err conftest.$ac_objext \
6168    conftest$ac_exeext conftest.$ac_ext
6169fi
6170
6171
6172		CFLAGS="$xorg_testset_save_CFLAGS"
6173
6174		eval supported=\$$cacheid
6175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6176$as_echo "$supported" >&6; }
6177		if test "$supported" = "yes" ; then
6178			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6179			found="yes"
6180		fi
6181	fi
6182
6183
6184
6185
6186
6187# This chunk adds additional warnings that could catch undesired effects.
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201xorg_testset_save_CFLAGS="$CFLAGS"
6202
6203if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6204	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6205	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6206$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6207if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h.  */
6212int i;
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215  xorg_cv_cc_flag_unknown_warning_option=yes
6216else
6217  xorg_cv_cc_flag_unknown_warning_option=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6222$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6224	CFLAGS="$xorg_testset_save_CFLAGS"
6225fi
6226
6227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6230	fi
6231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6232	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6233$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6234if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6235  $as_echo_n "(cached) " >&6
6236else
6237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h.  */
6239int i;
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242  xorg_cv_cc_flag_unused_command_line_argument=yes
6243else
6244  xorg_cv_cc_flag_unused_command_line_argument=no
6245fi
6246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6247fi
6248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6249$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6250	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6251	CFLAGS="$xorg_testset_save_CFLAGS"
6252fi
6253
6254found="no"
6255
6256	if test $found = "no" ; then
6257		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6258			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6259		fi
6260
6261		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6262			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6263		fi
6264
6265		CFLAGS="$CFLAGS -Wunused"
6266
6267		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6268$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6269		cacheid=xorg_cv_cc_flag__Wunused
6270		if eval \${$cacheid+:} false; then :
6271  $as_echo_n "(cached) " >&6
6272else
6273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h.  */
6275int i;
6276int
6277main ()
6278{
6279
6280  ;
6281  return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_link "$LINENO"; then :
6285  eval $cacheid=yes
6286else
6287  eval $cacheid=no
6288fi
6289rm -f core conftest.err conftest.$ac_objext \
6290    conftest$ac_exeext conftest.$ac_ext
6291fi
6292
6293
6294		CFLAGS="$xorg_testset_save_CFLAGS"
6295
6296		eval supported=\$$cacheid
6297		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6298$as_echo "$supported" >&6; }
6299		if test "$supported" = "yes" ; then
6300			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6301			found="yes"
6302		fi
6303	fi
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319xorg_testset_save_CFLAGS="$CFLAGS"
6320
6321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6323	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6324$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6325if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6326  $as_echo_n "(cached) " >&6
6327else
6328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6329/* end confdefs.h.  */
6330int i;
6331_ACEOF
6332if ac_fn_c_try_compile "$LINENO"; then :
6333  xorg_cv_cc_flag_unknown_warning_option=yes
6334else
6335  xorg_cv_cc_flag_unknown_warning_option=no
6336fi
6337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6338fi
6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6340$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348	fi
6349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6351$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6352if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6353  $as_echo_n "(cached) " >&6
6354else
6355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h.  */
6357int i;
6358_ACEOF
6359if ac_fn_c_try_compile "$LINENO"; then :
6360  xorg_cv_cc_flag_unused_command_line_argument=yes
6361else
6362  xorg_cv_cc_flag_unused_command_line_argument=no
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365fi
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6367$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6369	CFLAGS="$xorg_testset_save_CFLAGS"
6370fi
6371
6372found="no"
6373
6374	if test $found = "no" ; then
6375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377		fi
6378
6379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6381		fi
6382
6383		CFLAGS="$CFLAGS -Wuninitialized"
6384
6385		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6386$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6387		cacheid=xorg_cv_cc_flag__Wuninitialized
6388		if eval \${$cacheid+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394int
6395main ()
6396{
6397
6398  ;
6399  return 0;
6400}
6401_ACEOF
6402if ac_fn_c_try_link "$LINENO"; then :
6403  eval $cacheid=yes
6404else
6405  eval $cacheid=no
6406fi
6407rm -f core conftest.err conftest.$ac_objext \
6408    conftest$ac_exeext conftest.$ac_ext
6409fi
6410
6411
6412		CFLAGS="$xorg_testset_save_CFLAGS"
6413
6414		eval supported=\$$cacheid
6415		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6416$as_echo "$supported" >&6; }
6417		if test "$supported" = "yes" ; then
6418			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6419			found="yes"
6420		fi
6421	fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437xorg_testset_save_CFLAGS="$CFLAGS"
6438
6439if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6440	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6441	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6442$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6443if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6444  $as_echo_n "(cached) " >&6
6445else
6446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h.  */
6448int i;
6449_ACEOF
6450if ac_fn_c_try_compile "$LINENO"; then :
6451  xorg_cv_cc_flag_unknown_warning_option=yes
6452else
6453  xorg_cv_cc_flag_unknown_warning_option=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6458$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6460	CFLAGS="$xorg_testset_save_CFLAGS"
6461fi
6462
6463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466	fi
6467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6469$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6470if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6471  $as_echo_n "(cached) " >&6
6472else
6473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474/* end confdefs.h.  */
6475int i;
6476_ACEOF
6477if ac_fn_c_try_compile "$LINENO"; then :
6478  xorg_cv_cc_flag_unused_command_line_argument=yes
6479else
6480  xorg_cv_cc_flag_unused_command_line_argument=no
6481fi
6482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483fi
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6485$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6486	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6487	CFLAGS="$xorg_testset_save_CFLAGS"
6488fi
6489
6490found="no"
6491
6492	if test $found = "no" ; then
6493		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6494			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495		fi
6496
6497		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6498			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499		fi
6500
6501		CFLAGS="$CFLAGS -Wshadow"
6502
6503		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6504$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6505		cacheid=xorg_cv_cc_flag__Wshadow
6506		if eval \${$cacheid+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512int
6513main ()
6514{
6515
6516  ;
6517  return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_link "$LINENO"; then :
6521  eval $cacheid=yes
6522else
6523  eval $cacheid=no
6524fi
6525rm -f core conftest.err conftest.$ac_objext \
6526    conftest$ac_exeext conftest.$ac_ext
6527fi
6528
6529
6530		CFLAGS="$xorg_testset_save_CFLAGS"
6531
6532		eval supported=\$$cacheid
6533		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6534$as_echo "$supported" >&6; }
6535		if test "$supported" = "yes" ; then
6536			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6537			found="yes"
6538		fi
6539	fi
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555xorg_testset_save_CFLAGS="$CFLAGS"
6556
6557if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6558	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6560$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6561if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6562  $as_echo_n "(cached) " >&6
6563else
6564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h.  */
6566int i;
6567_ACEOF
6568if ac_fn_c_try_compile "$LINENO"; then :
6569  xorg_cv_cc_flag_unknown_warning_option=yes
6570else
6571  xorg_cv_cc_flag_unknown_warning_option=no
6572fi
6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6576$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6577	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6578	CFLAGS="$xorg_testset_save_CFLAGS"
6579fi
6580
6581if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6582	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6583		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584	fi
6585	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6587$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6588if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6589  $as_echo_n "(cached) " >&6
6590else
6591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592/* end confdefs.h.  */
6593int i;
6594_ACEOF
6595if ac_fn_c_try_compile "$LINENO"; then :
6596  xorg_cv_cc_flag_unused_command_line_argument=yes
6597else
6598  xorg_cv_cc_flag_unused_command_line_argument=no
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6603$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6604	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6605	CFLAGS="$xorg_testset_save_CFLAGS"
6606fi
6607
6608found="no"
6609
6610	if test $found = "no" ; then
6611		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6612			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6613		fi
6614
6615		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6616			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6617		fi
6618
6619		CFLAGS="$CFLAGS -Wmissing-noreturn"
6620
6621		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6622$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6623		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6624		if eval \${$cacheid+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630int
6631main ()
6632{
6633
6634  ;
6635  return 0;
6636}
6637_ACEOF
6638if ac_fn_c_try_link "$LINENO"; then :
6639  eval $cacheid=yes
6640else
6641  eval $cacheid=no
6642fi
6643rm -f core conftest.err conftest.$ac_objext \
6644    conftest$ac_exeext conftest.$ac_ext
6645fi
6646
6647
6648		CFLAGS="$xorg_testset_save_CFLAGS"
6649
6650		eval supported=\$$cacheid
6651		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6652$as_echo "$supported" >&6; }
6653		if test "$supported" = "yes" ; then
6654			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6655			found="yes"
6656		fi
6657	fi
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673xorg_testset_save_CFLAGS="$CFLAGS"
6674
6675if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6676	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6677	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6678$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6679if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683/* end confdefs.h.  */
6684int i;
6685_ACEOF
6686if ac_fn_c_try_compile "$LINENO"; then :
6687  xorg_cv_cc_flag_unknown_warning_option=yes
6688else
6689  xorg_cv_cc_flag_unknown_warning_option=no
6690fi
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6694$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6696	CFLAGS="$xorg_testset_save_CFLAGS"
6697fi
6698
6699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6702	fi
6703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6705$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6706if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6707  $as_echo_n "(cached) " >&6
6708else
6709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h.  */
6711int i;
6712_ACEOF
6713if ac_fn_c_try_compile "$LINENO"; then :
6714  xorg_cv_cc_flag_unused_command_line_argument=yes
6715else
6716  xorg_cv_cc_flag_unused_command_line_argument=no
6717fi
6718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6721$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6722	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6723	CFLAGS="$xorg_testset_save_CFLAGS"
6724fi
6725
6726found="no"
6727
6728	if test $found = "no" ; then
6729		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6730			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6731		fi
6732
6733		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6734			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6735		fi
6736
6737		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6738
6739		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6740$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6741		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6742		if eval \${$cacheid+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748int
6749main ()
6750{
6751
6752  ;
6753  return 0;
6754}
6755_ACEOF
6756if ac_fn_c_try_link "$LINENO"; then :
6757  eval $cacheid=yes
6758else
6759  eval $cacheid=no
6760fi
6761rm -f core conftest.err conftest.$ac_objext \
6762    conftest$ac_exeext conftest.$ac_ext
6763fi
6764
6765
6766		CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768		eval supported=\$$cacheid
6769		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770$as_echo "$supported" >&6; }
6771		if test "$supported" = "yes" ; then
6772			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6773			found="yes"
6774		fi
6775	fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6798  $as_echo_n "(cached) " >&6
6799else
6800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6801/* end confdefs.h.  */
6802int i;
6803_ACEOF
6804if ac_fn_c_try_compile "$LINENO"; then :
6805  xorg_cv_cc_flag_unknown_warning_option=yes
6806else
6807  xorg_cv_cc_flag_unknown_warning_option=no
6808fi
6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810fi
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6812$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6813	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6814	CFLAGS="$xorg_testset_save_CFLAGS"
6815fi
6816
6817if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6818	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6819		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820	fi
6821	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6823$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6824if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6825  $as_echo_n "(cached) " >&6
6826else
6827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828/* end confdefs.h.  */
6829int i;
6830_ACEOF
6831if ac_fn_c_try_compile "$LINENO"; then :
6832  xorg_cv_cc_flag_unused_command_line_argument=yes
6833else
6834  xorg_cv_cc_flag_unused_command_line_argument=no
6835fi
6836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837fi
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6839$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6841	CFLAGS="$xorg_testset_save_CFLAGS"
6842fi
6843
6844found="no"
6845
6846	if test $found = "no" ; then
6847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849		fi
6850
6851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6853		fi
6854
6855		CFLAGS="$CFLAGS -Wredundant-decls"
6856
6857		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6858$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6859		cacheid=xorg_cv_cc_flag__Wredundant_decls
6860		if eval \${$cacheid+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866int
6867main ()
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874if ac_fn_c_try_link "$LINENO"; then :
6875  eval $cacheid=yes
6876else
6877  eval $cacheid=no
6878fi
6879rm -f core conftest.err conftest.$ac_objext \
6880    conftest$ac_exeext conftest.$ac_ext
6881fi
6882
6883
6884		CFLAGS="$xorg_testset_save_CFLAGS"
6885
6886		eval supported=\$$cacheid
6887		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6888$as_echo "$supported" >&6; }
6889		if test "$supported" = "yes" ; then
6890			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6891			found="yes"
6892		fi
6893	fi
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909xorg_testset_save_CFLAGS="$CFLAGS"
6910
6911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6914$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6915if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6916  $as_echo_n "(cached) " >&6
6917else
6918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h.  */
6920int i;
6921_ACEOF
6922if ac_fn_c_try_compile "$LINENO"; then :
6923  xorg_cv_cc_flag_unknown_warning_option=yes
6924else
6925  xorg_cv_cc_flag_unknown_warning_option=no
6926fi
6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928fi
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6930$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6932	CFLAGS="$xorg_testset_save_CFLAGS"
6933fi
6934
6935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6938	fi
6939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6941$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6942if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947int i;
6948_ACEOF
6949if ac_fn_c_try_compile "$LINENO"; then :
6950  xorg_cv_cc_flag_unused_command_line_argument=yes
6951else
6952  xorg_cv_cc_flag_unused_command_line_argument=no
6953fi
6954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6957$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6959	CFLAGS="$xorg_testset_save_CFLAGS"
6960fi
6961
6962found="no"
6963
6964	if test $found = "no" ; then
6965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6967		fi
6968
6969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6971		fi
6972
6973		CFLAGS="$CFLAGS -Wlogical-op"
6974
6975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6976$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6977		cacheid=xorg_cv_cc_flag__Wlogical_op
6978		if eval \${$cacheid+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983int i;
6984int
6985main ()
6986{
6987
6988  ;
6989  return 0;
6990}
6991_ACEOF
6992if ac_fn_c_try_link "$LINENO"; then :
6993  eval $cacheid=yes
6994else
6995  eval $cacheid=no
6996fi
6997rm -f core conftest.err conftest.$ac_objext \
6998    conftest$ac_exeext conftest.$ac_ext
6999fi
7000
7001
7002		CFLAGS="$xorg_testset_save_CFLAGS"
7003
7004		eval supported=\$$cacheid
7005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7006$as_echo "$supported" >&6; }
7007		if test "$supported" = "yes" ; then
7008			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7009			found="yes"
7010		fi
7011	fi
7012
7013
7014
7015# These are currently disabled because they are noisy.  They will be enabled
7016# in the future once the codebase is sufficiently modernized to silence
7017# them.  For now, I don't want them to drown out the other warnings.
7018# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7019# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7020# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7021
7022# Turn some warnings into errors, so we don't accidently get successful builds
7023# when there are problems that should be fixed.
7024
7025if test "x$SELECTIVE_WERROR" = "xyes" ; then
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039xorg_testset_save_CFLAGS="$CFLAGS"
7040
7041if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7042	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7044$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7045if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7046  $as_echo_n "(cached) " >&6
7047else
7048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049/* end confdefs.h.  */
7050int i;
7051_ACEOF
7052if ac_fn_c_try_compile "$LINENO"; then :
7053  xorg_cv_cc_flag_unknown_warning_option=yes
7054else
7055  xorg_cv_cc_flag_unknown_warning_option=no
7056fi
7057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058fi
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7060$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7061	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7062	CFLAGS="$xorg_testset_save_CFLAGS"
7063fi
7064
7065if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7066	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7067		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7068	fi
7069	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7070	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7071$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7072if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7073  $as_echo_n "(cached) " >&6
7074else
7075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h.  */
7077int i;
7078_ACEOF
7079if ac_fn_c_try_compile "$LINENO"; then :
7080  xorg_cv_cc_flag_unused_command_line_argument=yes
7081else
7082  xorg_cv_cc_flag_unused_command_line_argument=no
7083fi
7084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7085fi
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7087$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7089	CFLAGS="$xorg_testset_save_CFLAGS"
7090fi
7091
7092found="no"
7093
7094	if test $found = "no" ; then
7095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097		fi
7098
7099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7101		fi
7102
7103		CFLAGS="$CFLAGS -Werror=implicit"
7104
7105		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7106$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7107		cacheid=xorg_cv_cc_flag__Werror_implicit
7108		if eval \${$cacheid+:} false; then :
7109  $as_echo_n "(cached) " >&6
7110else
7111  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112/* end confdefs.h.  */
7113int i;
7114int
7115main ()
7116{
7117
7118  ;
7119  return 0;
7120}
7121_ACEOF
7122if ac_fn_c_try_link "$LINENO"; then :
7123  eval $cacheid=yes
7124else
7125  eval $cacheid=no
7126fi
7127rm -f core conftest.err conftest.$ac_objext \
7128    conftest$ac_exeext conftest.$ac_ext
7129fi
7130
7131
7132		CFLAGS="$xorg_testset_save_CFLAGS"
7133
7134		eval supported=\$$cacheid
7135		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7136$as_echo "$supported" >&6; }
7137		if test "$supported" = "yes" ; then
7138			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7139			found="yes"
7140		fi
7141	fi
7142
7143	if test $found = "no" ; then
7144		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7145			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7146		fi
7147
7148		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7149			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7150		fi
7151
7152		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7153
7154		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7155$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7156		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7157		if eval \${$cacheid+:} false; then :
7158  $as_echo_n "(cached) " >&6
7159else
7160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161/* end confdefs.h.  */
7162int i;
7163int
7164main ()
7165{
7166
7167  ;
7168  return 0;
7169}
7170_ACEOF
7171if ac_fn_c_try_link "$LINENO"; then :
7172  eval $cacheid=yes
7173else
7174  eval $cacheid=no
7175fi
7176rm -f core conftest.err conftest.$ac_objext \
7177    conftest$ac_exeext conftest.$ac_ext
7178fi
7179
7180
7181		CFLAGS="$xorg_testset_save_CFLAGS"
7182
7183		eval supported=\$$cacheid
7184		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7185$as_echo "$supported" >&6; }
7186		if test "$supported" = "yes" ; then
7187			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7188			found="yes"
7189		fi
7190	fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206xorg_testset_save_CFLAGS="$CFLAGS"
7207
7208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7213  $as_echo_n "(cached) " >&6
7214else
7215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216/* end confdefs.h.  */
7217int i;
7218_ACEOF
7219if ac_fn_c_try_compile "$LINENO"; then :
7220  xorg_cv_cc_flag_unknown_warning_option=yes
7221else
7222  xorg_cv_cc_flag_unknown_warning_option=no
7223fi
7224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7229	CFLAGS="$xorg_testset_save_CFLAGS"
7230fi
7231
7232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7235	fi
7236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7240  $as_echo_n "(cached) " >&6
7241else
7242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243/* end confdefs.h.  */
7244int i;
7245_ACEOF
7246if ac_fn_c_try_compile "$LINENO"; then :
7247  xorg_cv_cc_flag_unused_command_line_argument=yes
7248else
7249  xorg_cv_cc_flag_unused_command_line_argument=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7256	CFLAGS="$xorg_testset_save_CFLAGS"
7257fi
7258
7259found="no"
7260
7261	if test $found = "no" ; then
7262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264		fi
7265
7266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268		fi
7269
7270		CFLAGS="$CFLAGS -Werror=nonnull"
7271
7272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7273$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7274		cacheid=xorg_cv_cc_flag__Werror_nonnull
7275		if eval \${$cacheid+:} false; then :
7276  $as_echo_n "(cached) " >&6
7277else
7278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279/* end confdefs.h.  */
7280int i;
7281int
7282main ()
7283{
7284
7285  ;
7286  return 0;
7287}
7288_ACEOF
7289if ac_fn_c_try_link "$LINENO"; then :
7290  eval $cacheid=yes
7291else
7292  eval $cacheid=no
7293fi
7294rm -f core conftest.err conftest.$ac_objext \
7295    conftest$ac_exeext conftest.$ac_ext
7296fi
7297
7298
7299		CFLAGS="$xorg_testset_save_CFLAGS"
7300
7301		eval supported=\$$cacheid
7302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7303$as_echo "$supported" >&6; }
7304		if test "$supported" = "yes" ; then
7305			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7306			found="yes"
7307		fi
7308	fi
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324xorg_testset_save_CFLAGS="$CFLAGS"
7325
7326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7331  $as_echo_n "(cached) " >&6
7332else
7333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h.  */
7335int i;
7336_ACEOF
7337if ac_fn_c_try_compile "$LINENO"; then :
7338  xorg_cv_cc_flag_unknown_warning_option=yes
7339else
7340  xorg_cv_cc_flag_unknown_warning_option=no
7341fi
7342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343fi
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7347	CFLAGS="$xorg_testset_save_CFLAGS"
7348fi
7349
7350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7353	fi
7354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7358  $as_echo_n "(cached) " >&6
7359else
7360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361/* end confdefs.h.  */
7362int i;
7363_ACEOF
7364if ac_fn_c_try_compile "$LINENO"; then :
7365  xorg_cv_cc_flag_unused_command_line_argument=yes
7366else
7367  xorg_cv_cc_flag_unused_command_line_argument=no
7368fi
7369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7370fi
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7374	CFLAGS="$xorg_testset_save_CFLAGS"
7375fi
7376
7377found="no"
7378
7379	if test $found = "no" ; then
7380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382		fi
7383
7384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7386		fi
7387
7388		CFLAGS="$CFLAGS -Werror=init-self"
7389
7390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7391$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7392		cacheid=xorg_cv_cc_flag__Werror_init_self
7393		if eval \${$cacheid+:} false; then :
7394  $as_echo_n "(cached) " >&6
7395else
7396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397/* end confdefs.h.  */
7398int i;
7399int
7400main ()
7401{
7402
7403  ;
7404  return 0;
7405}
7406_ACEOF
7407if ac_fn_c_try_link "$LINENO"; then :
7408  eval $cacheid=yes
7409else
7410  eval $cacheid=no
7411fi
7412rm -f core conftest.err conftest.$ac_objext \
7413    conftest$ac_exeext conftest.$ac_ext
7414fi
7415
7416
7417		CFLAGS="$xorg_testset_save_CFLAGS"
7418
7419		eval supported=\$$cacheid
7420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7421$as_echo "$supported" >&6; }
7422		if test "$supported" = "yes" ; then
7423			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7424			found="yes"
7425		fi
7426	fi
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442xorg_testset_save_CFLAGS="$CFLAGS"
7443
7444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7449  $as_echo_n "(cached) " >&6
7450else
7451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452/* end confdefs.h.  */
7453int i;
7454_ACEOF
7455if ac_fn_c_try_compile "$LINENO"; then :
7456  xorg_cv_cc_flag_unknown_warning_option=yes
7457else
7458  xorg_cv_cc_flag_unknown_warning_option=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7465	CFLAGS="$xorg_testset_save_CFLAGS"
7466fi
7467
7468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7471	fi
7472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7476  $as_echo_n "(cached) " >&6
7477else
7478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h.  */
7480int i;
7481_ACEOF
7482if ac_fn_c_try_compile "$LINENO"; then :
7483  xorg_cv_cc_flag_unused_command_line_argument=yes
7484else
7485  xorg_cv_cc_flag_unused_command_line_argument=no
7486fi
7487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488fi
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7492	CFLAGS="$xorg_testset_save_CFLAGS"
7493fi
7494
7495found="no"
7496
7497	if test $found = "no" ; then
7498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500		fi
7501
7502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7504		fi
7505
7506		CFLAGS="$CFLAGS -Werror=main"
7507
7508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7509$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7510		cacheid=xorg_cv_cc_flag__Werror_main
7511		if eval \${$cacheid+:} false; then :
7512  $as_echo_n "(cached) " >&6
7513else
7514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515/* end confdefs.h.  */
7516int i;
7517int
7518main ()
7519{
7520
7521  ;
7522  return 0;
7523}
7524_ACEOF
7525if ac_fn_c_try_link "$LINENO"; then :
7526  eval $cacheid=yes
7527else
7528  eval $cacheid=no
7529fi
7530rm -f core conftest.err conftest.$ac_objext \
7531    conftest$ac_exeext conftest.$ac_ext
7532fi
7533
7534
7535		CFLAGS="$xorg_testset_save_CFLAGS"
7536
7537		eval supported=\$$cacheid
7538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7539$as_echo "$supported" >&6; }
7540		if test "$supported" = "yes" ; then
7541			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7542			found="yes"
7543		fi
7544	fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560xorg_testset_save_CFLAGS="$CFLAGS"
7561
7562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7567  $as_echo_n "(cached) " >&6
7568else
7569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570/* end confdefs.h.  */
7571int i;
7572_ACEOF
7573if ac_fn_c_try_compile "$LINENO"; then :
7574  xorg_cv_cc_flag_unknown_warning_option=yes
7575else
7576  xorg_cv_cc_flag_unknown_warning_option=no
7577fi
7578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579fi
7580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7583	CFLAGS="$xorg_testset_save_CFLAGS"
7584fi
7585
7586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7589	fi
7590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597/* end confdefs.h.  */
7598int i;
7599_ACEOF
7600if ac_fn_c_try_compile "$LINENO"; then :
7601  xorg_cv_cc_flag_unused_command_line_argument=yes
7602else
7603  xorg_cv_cc_flag_unused_command_line_argument=no
7604fi
7605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7610	CFLAGS="$xorg_testset_save_CFLAGS"
7611fi
7612
7613found="no"
7614
7615	if test $found = "no" ; then
7616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618		fi
7619
7620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7622		fi
7623
7624		CFLAGS="$CFLAGS -Werror=missing-braces"
7625
7626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7627$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7628		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7629		if eval \${$cacheid+:} false; then :
7630  $as_echo_n "(cached) " >&6
7631else
7632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h.  */
7634int i;
7635int
7636main ()
7637{
7638
7639  ;
7640  return 0;
7641}
7642_ACEOF
7643if ac_fn_c_try_link "$LINENO"; then :
7644  eval $cacheid=yes
7645else
7646  eval $cacheid=no
7647fi
7648rm -f core conftest.err conftest.$ac_objext \
7649    conftest$ac_exeext conftest.$ac_ext
7650fi
7651
7652
7653		CFLAGS="$xorg_testset_save_CFLAGS"
7654
7655		eval supported=\$$cacheid
7656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7657$as_echo "$supported" >&6; }
7658		if test "$supported" = "yes" ; then
7659			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7660			found="yes"
7661		fi
7662	fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678xorg_testset_save_CFLAGS="$CFLAGS"
7679
7680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7685  $as_echo_n "(cached) " >&6
7686else
7687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688/* end confdefs.h.  */
7689int i;
7690_ACEOF
7691if ac_fn_c_try_compile "$LINENO"; then :
7692  xorg_cv_cc_flag_unknown_warning_option=yes
7693else
7694  xorg_cv_cc_flag_unknown_warning_option=no
7695fi
7696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7701	CFLAGS="$xorg_testset_save_CFLAGS"
7702fi
7703
7704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7707	fi
7708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715/* end confdefs.h.  */
7716int i;
7717_ACEOF
7718if ac_fn_c_try_compile "$LINENO"; then :
7719  xorg_cv_cc_flag_unused_command_line_argument=yes
7720else
7721  xorg_cv_cc_flag_unused_command_line_argument=no
7722fi
7723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724fi
7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7728	CFLAGS="$xorg_testset_save_CFLAGS"
7729fi
7730
7731found="no"
7732
7733	if test $found = "no" ; then
7734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7736		fi
7737
7738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7740		fi
7741
7742		CFLAGS="$CFLAGS -Werror=sequence-point"
7743
7744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7745$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7746		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7747		if eval \${$cacheid+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7751/* end confdefs.h.  */
7752int i;
7753int
7754main ()
7755{
7756
7757  ;
7758  return 0;
7759}
7760_ACEOF
7761if ac_fn_c_try_link "$LINENO"; then :
7762  eval $cacheid=yes
7763else
7764  eval $cacheid=no
7765fi
7766rm -f core conftest.err conftest.$ac_objext \
7767    conftest$ac_exeext conftest.$ac_ext
7768fi
7769
7770
7771		CFLAGS="$xorg_testset_save_CFLAGS"
7772
7773		eval supported=\$$cacheid
7774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7775$as_echo "$supported" >&6; }
7776		if test "$supported" = "yes" ; then
7777			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7778			found="yes"
7779		fi
7780	fi
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796xorg_testset_save_CFLAGS="$CFLAGS"
7797
7798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806/* end confdefs.h.  */
7807int i;
7808_ACEOF
7809if ac_fn_c_try_compile "$LINENO"; then :
7810  xorg_cv_cc_flag_unknown_warning_option=yes
7811else
7812  xorg_cv_cc_flag_unknown_warning_option=no
7813fi
7814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7819	CFLAGS="$xorg_testset_save_CFLAGS"
7820fi
7821
7822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7825	fi
7826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833/* end confdefs.h.  */
7834int i;
7835_ACEOF
7836if ac_fn_c_try_compile "$LINENO"; then :
7837  xorg_cv_cc_flag_unused_command_line_argument=yes
7838else
7839  xorg_cv_cc_flag_unused_command_line_argument=no
7840fi
7841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842fi
7843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7846	CFLAGS="$xorg_testset_save_CFLAGS"
7847fi
7848
7849found="no"
7850
7851	if test $found = "no" ; then
7852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854		fi
7855
7856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7858		fi
7859
7860		CFLAGS="$CFLAGS -Werror=return-type"
7861
7862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7863$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7864		cacheid=xorg_cv_cc_flag__Werror_return_type
7865		if eval \${$cacheid+:} false; then :
7866  $as_echo_n "(cached) " >&6
7867else
7868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7869/* end confdefs.h.  */
7870int i;
7871int
7872main ()
7873{
7874
7875  ;
7876  return 0;
7877}
7878_ACEOF
7879if ac_fn_c_try_link "$LINENO"; then :
7880  eval $cacheid=yes
7881else
7882  eval $cacheid=no
7883fi
7884rm -f core conftest.err conftest.$ac_objext \
7885    conftest$ac_exeext conftest.$ac_ext
7886fi
7887
7888
7889		CFLAGS="$xorg_testset_save_CFLAGS"
7890
7891		eval supported=\$$cacheid
7892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7893$as_echo "$supported" >&6; }
7894		if test "$supported" = "yes" ; then
7895			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7896			found="yes"
7897		fi
7898	fi
7899
7900	if test $found = "no" ; then
7901		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903		fi
7904
7905		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7907		fi
7908
7909		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7910
7911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7912$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7913		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7914		if eval \${$cacheid+:} false; then :
7915  $as_echo_n "(cached) " >&6
7916else
7917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918/* end confdefs.h.  */
7919int i;
7920int
7921main ()
7922{
7923
7924  ;
7925  return 0;
7926}
7927_ACEOF
7928if ac_fn_c_try_link "$LINENO"; then :
7929  eval $cacheid=yes
7930else
7931  eval $cacheid=no
7932fi
7933rm -f core conftest.err conftest.$ac_objext \
7934    conftest$ac_exeext conftest.$ac_ext
7935fi
7936
7937
7938		CFLAGS="$xorg_testset_save_CFLAGS"
7939
7940		eval supported=\$$cacheid
7941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7942$as_echo "$supported" >&6; }
7943		if test "$supported" = "yes" ; then
7944			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7945			found="yes"
7946		fi
7947	fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963xorg_testset_save_CFLAGS="$CFLAGS"
7964
7965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7970  $as_echo_n "(cached) " >&6
7971else
7972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973/* end confdefs.h.  */
7974int i;
7975_ACEOF
7976if ac_fn_c_try_compile "$LINENO"; then :
7977  xorg_cv_cc_flag_unknown_warning_option=yes
7978else
7979  xorg_cv_cc_flag_unknown_warning_option=no
7980fi
7981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7982fi
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7986	CFLAGS="$xorg_testset_save_CFLAGS"
7987fi
7988
7989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7992	fi
7993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7997  $as_echo_n "(cached) " >&6
7998else
7999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000/* end confdefs.h.  */
8001int i;
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"; then :
8004  xorg_cv_cc_flag_unused_command_line_argument=yes
8005else
8006  xorg_cv_cc_flag_unused_command_line_argument=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8013	CFLAGS="$xorg_testset_save_CFLAGS"
8014fi
8015
8016found="no"
8017
8018	if test $found = "no" ; then
8019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021		fi
8022
8023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8025		fi
8026
8027		CFLAGS="$CFLAGS -Werror=trigraphs"
8028
8029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8030$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8031		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8032		if eval \${$cacheid+:} false; then :
8033  $as_echo_n "(cached) " >&6
8034else
8035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h.  */
8037int i;
8038int
8039main ()
8040{
8041
8042  ;
8043  return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"; then :
8047  eval $cacheid=yes
8048else
8049  eval $cacheid=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext \
8052    conftest$ac_exeext conftest.$ac_ext
8053fi
8054
8055
8056		CFLAGS="$xorg_testset_save_CFLAGS"
8057
8058		eval supported=\$$cacheid
8059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8060$as_echo "$supported" >&6; }
8061		if test "$supported" = "yes" ; then
8062			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8063			found="yes"
8064		fi
8065	fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081xorg_testset_save_CFLAGS="$CFLAGS"
8082
8083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8088  $as_echo_n "(cached) " >&6
8089else
8090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091/* end confdefs.h.  */
8092int i;
8093_ACEOF
8094if ac_fn_c_try_compile "$LINENO"; then :
8095  xorg_cv_cc_flag_unknown_warning_option=yes
8096else
8097  xorg_cv_cc_flag_unknown_warning_option=no
8098fi
8099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100fi
8101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8104	CFLAGS="$xorg_testset_save_CFLAGS"
8105fi
8106
8107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110	fi
8111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8115  $as_echo_n "(cached) " >&6
8116else
8117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8118/* end confdefs.h.  */
8119int i;
8120_ACEOF
8121if ac_fn_c_try_compile "$LINENO"; then :
8122  xorg_cv_cc_flag_unused_command_line_argument=yes
8123else
8124  xorg_cv_cc_flag_unused_command_line_argument=no
8125fi
8126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127fi
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8131	CFLAGS="$xorg_testset_save_CFLAGS"
8132fi
8133
8134found="no"
8135
8136	if test $found = "no" ; then
8137		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139		fi
8140
8141		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8143		fi
8144
8145		CFLAGS="$CFLAGS -Werror=array-bounds"
8146
8147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8148$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8149		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8150		if eval \${$cacheid+:} false; then :
8151  $as_echo_n "(cached) " >&6
8152else
8153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8154/* end confdefs.h.  */
8155int i;
8156int
8157main ()
8158{
8159
8160  ;
8161  return 0;
8162}
8163_ACEOF
8164if ac_fn_c_try_link "$LINENO"; then :
8165  eval $cacheid=yes
8166else
8167  eval $cacheid=no
8168fi
8169rm -f core conftest.err conftest.$ac_objext \
8170    conftest$ac_exeext conftest.$ac_ext
8171fi
8172
8173
8174		CFLAGS="$xorg_testset_save_CFLAGS"
8175
8176		eval supported=\$$cacheid
8177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8178$as_echo "$supported" >&6; }
8179		if test "$supported" = "yes" ; then
8180			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8181			found="yes"
8182		fi
8183	fi
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199xorg_testset_save_CFLAGS="$CFLAGS"
8200
8201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8204$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8205if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8206  $as_echo_n "(cached) " >&6
8207else
8208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8209/* end confdefs.h.  */
8210int i;
8211_ACEOF
8212if ac_fn_c_try_compile "$LINENO"; then :
8213  xorg_cv_cc_flag_unknown_warning_option=yes
8214else
8215  xorg_cv_cc_flag_unknown_warning_option=no
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218fi
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8220$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8221	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8222	CFLAGS="$xorg_testset_save_CFLAGS"
8223fi
8224
8225if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8226	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8227		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8228	fi
8229	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8230	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8231$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8232if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8233  $as_echo_n "(cached) " >&6
8234else
8235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236/* end confdefs.h.  */
8237int i;
8238_ACEOF
8239if ac_fn_c_try_compile "$LINENO"; then :
8240  xorg_cv_cc_flag_unused_command_line_argument=yes
8241else
8242  xorg_cv_cc_flag_unused_command_line_argument=no
8243fi
8244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245fi
8246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8247$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8249	CFLAGS="$xorg_testset_save_CFLAGS"
8250fi
8251
8252found="no"
8253
8254	if test $found = "no" ; then
8255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257		fi
8258
8259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261		fi
8262
8263		CFLAGS="$CFLAGS -Werror=write-strings"
8264
8265		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8266$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8267		cacheid=xorg_cv_cc_flag__Werror_write_strings
8268		if eval \${$cacheid+:} false; then :
8269  $as_echo_n "(cached) " >&6
8270else
8271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273int i;
8274int
8275main ()
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"; then :
8283  eval $cacheid=yes
8284else
8285  eval $cacheid=no
8286fi
8287rm -f core conftest.err conftest.$ac_objext \
8288    conftest$ac_exeext conftest.$ac_ext
8289fi
8290
8291
8292		CFLAGS="$xorg_testset_save_CFLAGS"
8293
8294		eval supported=\$$cacheid
8295		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8296$as_echo "$supported" >&6; }
8297		if test "$supported" = "yes" ; then
8298			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8299			found="yes"
8300		fi
8301	fi
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317xorg_testset_save_CFLAGS="$CFLAGS"
8318
8319if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8320	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8322$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8323if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8324  $as_echo_n "(cached) " >&6
8325else
8326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h.  */
8328int i;
8329_ACEOF
8330if ac_fn_c_try_compile "$LINENO"; then :
8331  xorg_cv_cc_flag_unknown_warning_option=yes
8332else
8333  xorg_cv_cc_flag_unknown_warning_option=no
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8338$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8340	CFLAGS="$xorg_testset_save_CFLAGS"
8341fi
8342
8343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8346	fi
8347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8348	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8349$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8350if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8351  $as_echo_n "(cached) " >&6
8352else
8353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354/* end confdefs.h.  */
8355int i;
8356_ACEOF
8357if ac_fn_c_try_compile "$LINENO"; then :
8358  xorg_cv_cc_flag_unused_command_line_argument=yes
8359else
8360  xorg_cv_cc_flag_unused_command_line_argument=no
8361fi
8362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8363fi
8364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8365$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8366	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8367	CFLAGS="$xorg_testset_save_CFLAGS"
8368fi
8369
8370found="no"
8371
8372	if test $found = "no" ; then
8373		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8374			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375		fi
8376
8377		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8378			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8379		fi
8380
8381		CFLAGS="$CFLAGS -Werror=address"
8382
8383		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8384$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8385		cacheid=xorg_cv_cc_flag__Werror_address
8386		if eval \${$cacheid+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391int i;
8392int
8393main ()
8394{
8395
8396  ;
8397  return 0;
8398}
8399_ACEOF
8400if ac_fn_c_try_link "$LINENO"; then :
8401  eval $cacheid=yes
8402else
8403  eval $cacheid=no
8404fi
8405rm -f core conftest.err conftest.$ac_objext \
8406    conftest$ac_exeext conftest.$ac_ext
8407fi
8408
8409
8410		CFLAGS="$xorg_testset_save_CFLAGS"
8411
8412		eval supported=\$$cacheid
8413		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8414$as_echo "$supported" >&6; }
8415		if test "$supported" = "yes" ; then
8416			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8417			found="yes"
8418		fi
8419	fi
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435xorg_testset_save_CFLAGS="$CFLAGS"
8436
8437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8440$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8441if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8442  $as_echo_n "(cached) " >&6
8443else
8444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445/* end confdefs.h.  */
8446int i;
8447_ACEOF
8448if ac_fn_c_try_compile "$LINENO"; then :
8449  xorg_cv_cc_flag_unknown_warning_option=yes
8450else
8451  xorg_cv_cc_flag_unknown_warning_option=no
8452fi
8453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454fi
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8456$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8457	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8458	CFLAGS="$xorg_testset_save_CFLAGS"
8459fi
8460
8461if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8462	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8463		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8464	fi
8465	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8466	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8467$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8468if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8469  $as_echo_n "(cached) " >&6
8470else
8471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472/* end confdefs.h.  */
8473int i;
8474_ACEOF
8475if ac_fn_c_try_compile "$LINENO"; then :
8476  xorg_cv_cc_flag_unused_command_line_argument=yes
8477else
8478  xorg_cv_cc_flag_unused_command_line_argument=no
8479fi
8480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8483$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8485	CFLAGS="$xorg_testset_save_CFLAGS"
8486fi
8487
8488found="no"
8489
8490	if test $found = "no" ; then
8491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8493		fi
8494
8495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8497		fi
8498
8499		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8500
8501		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8502$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8503		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8504		if eval \${$cacheid+:} false; then :
8505  $as_echo_n "(cached) " >&6
8506else
8507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h.  */
8509int i;
8510int
8511main ()
8512{
8513
8514  ;
8515  return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_link "$LINENO"; then :
8519  eval $cacheid=yes
8520else
8521  eval $cacheid=no
8522fi
8523rm -f core conftest.err conftest.$ac_objext \
8524    conftest$ac_exeext conftest.$ac_ext
8525fi
8526
8527
8528		CFLAGS="$xorg_testset_save_CFLAGS"
8529
8530		eval supported=\$$cacheid
8531		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8532$as_echo "$supported" >&6; }
8533		if test "$supported" = "yes" ; then
8534			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8535			found="yes"
8536		fi
8537	fi
8538
8539	if test $found = "no" ; then
8540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542		fi
8543
8544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546		fi
8547
8548		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8549
8550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8551$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8552		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8553		if eval \${$cacheid+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558int i;
8559int
8560main ()
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"; then :
8568  eval $cacheid=yes
8569else
8570  eval $cacheid=no
8571fi
8572rm -f core conftest.err conftest.$ac_objext \
8573    conftest$ac_exeext conftest.$ac_ext
8574fi
8575
8576
8577		CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579		eval supported=\$$cacheid
8580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581$as_echo "$supported" >&6; }
8582		if test "$supported" = "yes" ; then
8583			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8584			found="yes"
8585		fi
8586	fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602xorg_testset_save_CFLAGS="$CFLAGS"
8603
8604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614_ACEOF
8615if ac_fn_c_try_compile "$LINENO"; then :
8616  xorg_cv_cc_flag_unknown_warning_option=yes
8617else
8618  xorg_cv_cc_flag_unknown_warning_option=no
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8625	CFLAGS="$xorg_testset_save_CFLAGS"
8626fi
8627
8628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631	fi
8632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h.  */
8640int i;
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"; then :
8643  xorg_cv_cc_flag_unused_command_line_argument=yes
8644else
8645  xorg_cv_cc_flag_unused_command_line_argument=no
8646fi
8647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8652	CFLAGS="$xorg_testset_save_CFLAGS"
8653fi
8654
8655found="no"
8656
8657	if test $found = "no" ; then
8658		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660		fi
8661
8662		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664		fi
8665
8666		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8667
8668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8669$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8670		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8671		if eval \${$cacheid+:} false; then :
8672  $as_echo_n "(cached) " >&6
8673else
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677int
8678main ()
8679{
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"; then :
8686  eval $cacheid=yes
8687else
8688  eval $cacheid=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext \
8691    conftest$ac_exeext conftest.$ac_ext
8692fi
8693
8694
8695		CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697		eval supported=\$$cacheid
8698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699$as_echo "$supported" >&6; }
8700		if test "$supported" = "yes" ; then
8701			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8702			found="yes"
8703		fi
8704	fi
8705
8706 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8707else
8708{ $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
8709$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;}
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723xorg_testset_save_CFLAGS="$CFLAGS"
8724
8725if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8726	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8727	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8728$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8729if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8730  $as_echo_n "(cached) " >&6
8731else
8732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733/* end confdefs.h.  */
8734int i;
8735_ACEOF
8736if ac_fn_c_try_compile "$LINENO"; then :
8737  xorg_cv_cc_flag_unknown_warning_option=yes
8738else
8739  xorg_cv_cc_flag_unknown_warning_option=no
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742fi
8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8744$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8745	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8746	CFLAGS="$xorg_testset_save_CFLAGS"
8747fi
8748
8749if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8750	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8751		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8752	fi
8753	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8754	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8755$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8756if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8757  $as_echo_n "(cached) " >&6
8758else
8759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760/* end confdefs.h.  */
8761int i;
8762_ACEOF
8763if ac_fn_c_try_compile "$LINENO"; then :
8764  xorg_cv_cc_flag_unused_command_line_argument=yes
8765else
8766  xorg_cv_cc_flag_unused_command_line_argument=no
8767fi
8768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769fi
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8771$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8772	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8773	CFLAGS="$xorg_testset_save_CFLAGS"
8774fi
8775
8776found="no"
8777
8778	if test $found = "no" ; then
8779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781		fi
8782
8783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8785		fi
8786
8787		CFLAGS="$CFLAGS -Wimplicit"
8788
8789		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8790$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8791		cacheid=xorg_cv_cc_flag__Wimplicit
8792		if eval \${$cacheid+:} false; then :
8793  $as_echo_n "(cached) " >&6
8794else
8795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796/* end confdefs.h.  */
8797int i;
8798int
8799main ()
8800{
8801
8802  ;
8803  return 0;
8804}
8805_ACEOF
8806if ac_fn_c_try_link "$LINENO"; then :
8807  eval $cacheid=yes
8808else
8809  eval $cacheid=no
8810fi
8811rm -f core conftest.err conftest.$ac_objext \
8812    conftest$ac_exeext conftest.$ac_ext
8813fi
8814
8815
8816		CFLAGS="$xorg_testset_save_CFLAGS"
8817
8818		eval supported=\$$cacheid
8819		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8820$as_echo "$supported" >&6; }
8821		if test "$supported" = "yes" ; then
8822			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8823			found="yes"
8824		fi
8825	fi
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841xorg_testset_save_CFLAGS="$CFLAGS"
8842
8843if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8844	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8845	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8846$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8847if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8848  $as_echo_n "(cached) " >&6
8849else
8850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851/* end confdefs.h.  */
8852int i;
8853_ACEOF
8854if ac_fn_c_try_compile "$LINENO"; then :
8855  xorg_cv_cc_flag_unknown_warning_option=yes
8856else
8857  xorg_cv_cc_flag_unknown_warning_option=no
8858fi
8859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860fi
8861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8862$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8863	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8864	CFLAGS="$xorg_testset_save_CFLAGS"
8865fi
8866
8867if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8868	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8869		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870	fi
8871	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8873$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8874if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8875  $as_echo_n "(cached) " >&6
8876else
8877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878/* end confdefs.h.  */
8879int i;
8880_ACEOF
8881if ac_fn_c_try_compile "$LINENO"; then :
8882  xorg_cv_cc_flag_unused_command_line_argument=yes
8883else
8884  xorg_cv_cc_flag_unused_command_line_argument=no
8885fi
8886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887fi
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8889$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8890	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8891	CFLAGS="$xorg_testset_save_CFLAGS"
8892fi
8893
8894found="no"
8895
8896	if test $found = "no" ; then
8897		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899		fi
8900
8901		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8902			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8903		fi
8904
8905		CFLAGS="$CFLAGS -Wnonnull"
8906
8907		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8908$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8909		cacheid=xorg_cv_cc_flag__Wnonnull
8910		if eval \${$cacheid+:} false; then :
8911  $as_echo_n "(cached) " >&6
8912else
8913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915int i;
8916int
8917main ()
8918{
8919
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924if ac_fn_c_try_link "$LINENO"; then :
8925  eval $cacheid=yes
8926else
8927  eval $cacheid=no
8928fi
8929rm -f core conftest.err conftest.$ac_objext \
8930    conftest$ac_exeext conftest.$ac_ext
8931fi
8932
8933
8934		CFLAGS="$xorg_testset_save_CFLAGS"
8935
8936		eval supported=\$$cacheid
8937		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8938$as_echo "$supported" >&6; }
8939		if test "$supported" = "yes" ; then
8940			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8941			found="yes"
8942		fi
8943	fi
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959xorg_testset_save_CFLAGS="$CFLAGS"
8960
8961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8966  $as_echo_n "(cached) " >&6
8967else
8968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969/* end confdefs.h.  */
8970int i;
8971_ACEOF
8972if ac_fn_c_try_compile "$LINENO"; then :
8973  xorg_cv_cc_flag_unknown_warning_option=yes
8974else
8975  xorg_cv_cc_flag_unknown_warning_option=no
8976fi
8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978fi
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8980$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8981	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8982	CFLAGS="$xorg_testset_save_CFLAGS"
8983fi
8984
8985if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8986	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8987		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8988	fi
8989	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8991$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8992if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8993  $as_echo_n "(cached) " >&6
8994else
8995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997int i;
8998_ACEOF
8999if ac_fn_c_try_compile "$LINENO"; then :
9000  xorg_cv_cc_flag_unused_command_line_argument=yes
9001else
9002  xorg_cv_cc_flag_unused_command_line_argument=no
9003fi
9004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005fi
9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9007$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9009	CFLAGS="$xorg_testset_save_CFLAGS"
9010fi
9011
9012found="no"
9013
9014	if test $found = "no" ; then
9015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017		fi
9018
9019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9021		fi
9022
9023		CFLAGS="$CFLAGS -Winit-self"
9024
9025		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9026$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9027		cacheid=xorg_cv_cc_flag__Winit_self
9028		if eval \${$cacheid+:} false; then :
9029  $as_echo_n "(cached) " >&6
9030else
9031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032/* end confdefs.h.  */
9033int i;
9034int
9035main ()
9036{
9037
9038  ;
9039  return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_link "$LINENO"; then :
9043  eval $cacheid=yes
9044else
9045  eval $cacheid=no
9046fi
9047rm -f core conftest.err conftest.$ac_objext \
9048    conftest$ac_exeext conftest.$ac_ext
9049fi
9050
9051
9052		CFLAGS="$xorg_testset_save_CFLAGS"
9053
9054		eval supported=\$$cacheid
9055		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9056$as_echo "$supported" >&6; }
9057		if test "$supported" = "yes" ; then
9058			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9059			found="yes"
9060		fi
9061	fi
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077xorg_testset_save_CFLAGS="$CFLAGS"
9078
9079if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9080	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9084  $as_echo_n "(cached) " >&6
9085else
9086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h.  */
9088int i;
9089_ACEOF
9090if ac_fn_c_try_compile "$LINENO"; then :
9091  xorg_cv_cc_flag_unknown_warning_option=yes
9092else
9093  xorg_cv_cc_flag_unknown_warning_option=no
9094fi
9095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096fi
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100	CFLAGS="$xorg_testset_save_CFLAGS"
9101fi
9102
9103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106	fi
9107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9111  $as_echo_n "(cached) " >&6
9112else
9113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115int i;
9116_ACEOF
9117if ac_fn_c_try_compile "$LINENO"; then :
9118  xorg_cv_cc_flag_unused_command_line_argument=yes
9119else
9120  xorg_cv_cc_flag_unused_command_line_argument=no
9121fi
9122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9123fi
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9125$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9126	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9127	CFLAGS="$xorg_testset_save_CFLAGS"
9128fi
9129
9130found="no"
9131
9132	if test $found = "no" ; then
9133		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9134			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9135		fi
9136
9137		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9138			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9139		fi
9140
9141		CFLAGS="$CFLAGS -Wmain"
9142
9143		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9144$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9145		cacheid=xorg_cv_cc_flag__Wmain
9146		if eval \${$cacheid+:} false; then :
9147  $as_echo_n "(cached) " >&6
9148else
9149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150/* end confdefs.h.  */
9151int i;
9152int
9153main ()
9154{
9155
9156  ;
9157  return 0;
9158}
9159_ACEOF
9160if ac_fn_c_try_link "$LINENO"; then :
9161  eval $cacheid=yes
9162else
9163  eval $cacheid=no
9164fi
9165rm -f core conftest.err conftest.$ac_objext \
9166    conftest$ac_exeext conftest.$ac_ext
9167fi
9168
9169
9170		CFLAGS="$xorg_testset_save_CFLAGS"
9171
9172		eval supported=\$$cacheid
9173		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174$as_echo "$supported" >&6; }
9175		if test "$supported" = "yes" ; then
9176			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9177			found="yes"
9178		fi
9179	fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195xorg_testset_save_CFLAGS="$CFLAGS"
9196
9197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9202  $as_echo_n "(cached) " >&6
9203else
9204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9205/* end confdefs.h.  */
9206int i;
9207_ACEOF
9208if ac_fn_c_try_compile "$LINENO"; then :
9209  xorg_cv_cc_flag_unknown_warning_option=yes
9210else
9211  xorg_cv_cc_flag_unknown_warning_option=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9217	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9218	CFLAGS="$xorg_testset_save_CFLAGS"
9219fi
9220
9221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9222	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9223		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224	fi
9225	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9226	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232/* end confdefs.h.  */
9233int i;
9234_ACEOF
9235if ac_fn_c_try_compile "$LINENO"; then :
9236  xorg_cv_cc_flag_unused_command_line_argument=yes
9237else
9238  xorg_cv_cc_flag_unused_command_line_argument=no
9239fi
9240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9245	CFLAGS="$xorg_testset_save_CFLAGS"
9246fi
9247
9248found="no"
9249
9250	if test $found = "no" ; then
9251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253		fi
9254
9255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9257		fi
9258
9259		CFLAGS="$CFLAGS -Wmissing-braces"
9260
9261		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9262$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9263		cacheid=xorg_cv_cc_flag__Wmissing_braces
9264		if eval \${$cacheid+:} false; then :
9265  $as_echo_n "(cached) " >&6
9266else
9267  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268/* end confdefs.h.  */
9269int i;
9270int
9271main ()
9272{
9273
9274  ;
9275  return 0;
9276}
9277_ACEOF
9278if ac_fn_c_try_link "$LINENO"; then :
9279  eval $cacheid=yes
9280else
9281  eval $cacheid=no
9282fi
9283rm -f core conftest.err conftest.$ac_objext \
9284    conftest$ac_exeext conftest.$ac_ext
9285fi
9286
9287
9288		CFLAGS="$xorg_testset_save_CFLAGS"
9289
9290		eval supported=\$$cacheid
9291		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9292$as_echo "$supported" >&6; }
9293		if test "$supported" = "yes" ; then
9294			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9295			found="yes"
9296		fi
9297	fi
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313xorg_testset_save_CFLAGS="$CFLAGS"
9314
9315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9316	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9317	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9320  $as_echo_n "(cached) " >&6
9321else
9322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323/* end confdefs.h.  */
9324int i;
9325_ACEOF
9326if ac_fn_c_try_compile "$LINENO"; then :
9327  xorg_cv_cc_flag_unknown_warning_option=yes
9328else
9329  xorg_cv_cc_flag_unknown_warning_option=no
9330fi
9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9332fi
9333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9336	CFLAGS="$xorg_testset_save_CFLAGS"
9337fi
9338
9339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9342	fi
9343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350/* end confdefs.h.  */
9351int i;
9352_ACEOF
9353if ac_fn_c_try_compile "$LINENO"; then :
9354  xorg_cv_cc_flag_unused_command_line_argument=yes
9355else
9356  xorg_cv_cc_flag_unused_command_line_argument=no
9357fi
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359fi
9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9362	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9363	CFLAGS="$xorg_testset_save_CFLAGS"
9364fi
9365
9366found="no"
9367
9368	if test $found = "no" ; then
9369		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9370			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371		fi
9372
9373		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9374			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9375		fi
9376
9377		CFLAGS="$CFLAGS -Wsequence-point"
9378
9379		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9380$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9381		cacheid=xorg_cv_cc_flag__Wsequence_point
9382		if eval \${$cacheid+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387int i;
9388int
9389main ()
9390{
9391
9392  ;
9393  return 0;
9394}
9395_ACEOF
9396if ac_fn_c_try_link "$LINENO"; then :
9397  eval $cacheid=yes
9398else
9399  eval $cacheid=no
9400fi
9401rm -f core conftest.err conftest.$ac_objext \
9402    conftest$ac_exeext conftest.$ac_ext
9403fi
9404
9405
9406		CFLAGS="$xorg_testset_save_CFLAGS"
9407
9408		eval supported=\$$cacheid
9409		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9410$as_echo "$supported" >&6; }
9411		if test "$supported" = "yes" ; then
9412			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9413			found="yes"
9414		fi
9415	fi
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431xorg_testset_save_CFLAGS="$CFLAGS"
9432
9433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9434	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9438  $as_echo_n "(cached) " >&6
9439else
9440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441/* end confdefs.h.  */
9442int i;
9443_ACEOF
9444if ac_fn_c_try_compile "$LINENO"; then :
9445  xorg_cv_cc_flag_unknown_warning_option=yes
9446else
9447  xorg_cv_cc_flag_unknown_warning_option=no
9448fi
9449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9450fi
9451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9454	CFLAGS="$xorg_testset_save_CFLAGS"
9455fi
9456
9457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460	fi
9461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9465  $as_echo_n "(cached) " >&6
9466else
9467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468/* end confdefs.h.  */
9469int i;
9470_ACEOF
9471if ac_fn_c_try_compile "$LINENO"; then :
9472  xorg_cv_cc_flag_unused_command_line_argument=yes
9473else
9474  xorg_cv_cc_flag_unused_command_line_argument=no
9475fi
9476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477fi
9478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9480	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9481	CFLAGS="$xorg_testset_save_CFLAGS"
9482fi
9483
9484found="no"
9485
9486	if test $found = "no" ; then
9487		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9488			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9489		fi
9490
9491		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9492			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9493		fi
9494
9495		CFLAGS="$CFLAGS -Wreturn-type"
9496
9497		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9498$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9499		cacheid=xorg_cv_cc_flag__Wreturn_type
9500		if eval \${$cacheid+:} false; then :
9501  $as_echo_n "(cached) " >&6
9502else
9503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505int i;
9506int
9507main ()
9508{
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"; then :
9515  eval $cacheid=yes
9516else
9517  eval $cacheid=no
9518fi
9519rm -f core conftest.err conftest.$ac_objext \
9520    conftest$ac_exeext conftest.$ac_ext
9521fi
9522
9523
9524		CFLAGS="$xorg_testset_save_CFLAGS"
9525
9526		eval supported=\$$cacheid
9527		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9528$as_echo "$supported" >&6; }
9529		if test "$supported" = "yes" ; then
9530			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9531			found="yes"
9532		fi
9533	fi
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549xorg_testset_save_CFLAGS="$CFLAGS"
9550
9551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9552	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9553	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9556  $as_echo_n "(cached) " >&6
9557else
9558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559/* end confdefs.h.  */
9560int i;
9561_ACEOF
9562if ac_fn_c_try_compile "$LINENO"; then :
9563  xorg_cv_cc_flag_unknown_warning_option=yes
9564else
9565  xorg_cv_cc_flag_unknown_warning_option=no
9566fi
9567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568fi
9569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9572	CFLAGS="$xorg_testset_save_CFLAGS"
9573fi
9574
9575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9578	fi
9579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9580	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587int i;
9588_ACEOF
9589if ac_fn_c_try_compile "$LINENO"; then :
9590  xorg_cv_cc_flag_unused_command_line_argument=yes
9591else
9592  xorg_cv_cc_flag_unused_command_line_argument=no
9593fi
9594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9595fi
9596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9598	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9599	CFLAGS="$xorg_testset_save_CFLAGS"
9600fi
9601
9602found="no"
9603
9604	if test $found = "no" ; then
9605		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9606			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9607		fi
9608
9609		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9610			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9611		fi
9612
9613		CFLAGS="$CFLAGS -Wtrigraphs"
9614
9615		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9616$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9617		cacheid=xorg_cv_cc_flag__Wtrigraphs
9618		if eval \${$cacheid+:} false; then :
9619  $as_echo_n "(cached) " >&6
9620else
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623int i;
9624int
9625main ()
9626{
9627
9628  ;
9629  return 0;
9630}
9631_ACEOF
9632if ac_fn_c_try_link "$LINENO"; then :
9633  eval $cacheid=yes
9634else
9635  eval $cacheid=no
9636fi
9637rm -f core conftest.err conftest.$ac_objext \
9638    conftest$ac_exeext conftest.$ac_ext
9639fi
9640
9641
9642		CFLAGS="$xorg_testset_save_CFLAGS"
9643
9644		eval supported=\$$cacheid
9645		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9646$as_echo "$supported" >&6; }
9647		if test "$supported" = "yes" ; then
9648			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9649			found="yes"
9650		fi
9651	fi
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667xorg_testset_save_CFLAGS="$CFLAGS"
9668
9669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9670	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9671	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9674  $as_echo_n "(cached) " >&6
9675else
9676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h.  */
9678int i;
9679_ACEOF
9680if ac_fn_c_try_compile "$LINENO"; then :
9681  xorg_cv_cc_flag_unknown_warning_option=yes
9682else
9683  xorg_cv_cc_flag_unknown_warning_option=no
9684fi
9685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9686fi
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9689	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9690	CFLAGS="$xorg_testset_save_CFLAGS"
9691fi
9692
9693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9694	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9695		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9696	fi
9697	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9698	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9701  $as_echo_n "(cached) " >&6
9702else
9703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h.  */
9705int i;
9706_ACEOF
9707if ac_fn_c_try_compile "$LINENO"; then :
9708  xorg_cv_cc_flag_unused_command_line_argument=yes
9709else
9710  xorg_cv_cc_flag_unused_command_line_argument=no
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9716	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9717	CFLAGS="$xorg_testset_save_CFLAGS"
9718fi
9719
9720found="no"
9721
9722	if test $found = "no" ; then
9723		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9724			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9725		fi
9726
9727		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9728			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9729		fi
9730
9731		CFLAGS="$CFLAGS -Warray-bounds"
9732
9733		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9734$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9735		cacheid=xorg_cv_cc_flag__Warray_bounds
9736		if eval \${$cacheid+:} false; then :
9737  $as_echo_n "(cached) " >&6
9738else
9739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h.  */
9741int i;
9742int
9743main ()
9744{
9745
9746  ;
9747  return 0;
9748}
9749_ACEOF
9750if ac_fn_c_try_link "$LINENO"; then :
9751  eval $cacheid=yes
9752else
9753  eval $cacheid=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext \
9756    conftest$ac_exeext conftest.$ac_ext
9757fi
9758
9759
9760		CFLAGS="$xorg_testset_save_CFLAGS"
9761
9762		eval supported=\$$cacheid
9763		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9764$as_echo "$supported" >&6; }
9765		if test "$supported" = "yes" ; then
9766			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9767			found="yes"
9768		fi
9769	fi
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785xorg_testset_save_CFLAGS="$CFLAGS"
9786
9787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9788	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9789	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9792  $as_echo_n "(cached) " >&6
9793else
9794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795/* end confdefs.h.  */
9796int i;
9797_ACEOF
9798if ac_fn_c_try_compile "$LINENO"; then :
9799  xorg_cv_cc_flag_unknown_warning_option=yes
9800else
9801  xorg_cv_cc_flag_unknown_warning_option=no
9802fi
9803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9804fi
9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9807	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9808	CFLAGS="$xorg_testset_save_CFLAGS"
9809fi
9810
9811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9812	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9813		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9814	fi
9815	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9819  $as_echo_n "(cached) " >&6
9820else
9821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822/* end confdefs.h.  */
9823int i;
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826  xorg_cv_cc_flag_unused_command_line_argument=yes
9827else
9828  xorg_cv_cc_flag_unused_command_line_argument=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9835	CFLAGS="$xorg_testset_save_CFLAGS"
9836fi
9837
9838found="no"
9839
9840	if test $found = "no" ; then
9841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843		fi
9844
9845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9847		fi
9848
9849		CFLAGS="$CFLAGS -Wwrite-strings"
9850
9851		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9852$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9853		cacheid=xorg_cv_cc_flag__Wwrite_strings
9854		if eval \${$cacheid+:} false; then :
9855  $as_echo_n "(cached) " >&6
9856else
9857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858/* end confdefs.h.  */
9859int i;
9860int
9861main ()
9862{
9863
9864  ;
9865  return 0;
9866}
9867_ACEOF
9868if ac_fn_c_try_link "$LINENO"; then :
9869  eval $cacheid=yes
9870else
9871  eval $cacheid=no
9872fi
9873rm -f core conftest.err conftest.$ac_objext \
9874    conftest$ac_exeext conftest.$ac_ext
9875fi
9876
9877
9878		CFLAGS="$xorg_testset_save_CFLAGS"
9879
9880		eval supported=\$$cacheid
9881		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9882$as_echo "$supported" >&6; }
9883		if test "$supported" = "yes" ; then
9884			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9885			found="yes"
9886		fi
9887	fi
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903xorg_testset_save_CFLAGS="$CFLAGS"
9904
9905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9906	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9907	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9910  $as_echo_n "(cached) " >&6
9911else
9912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h.  */
9914int i;
9915_ACEOF
9916if ac_fn_c_try_compile "$LINENO"; then :
9917  xorg_cv_cc_flag_unknown_warning_option=yes
9918else
9919  xorg_cv_cc_flag_unknown_warning_option=no
9920fi
9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9922fi
9923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9925	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9926	CFLAGS="$xorg_testset_save_CFLAGS"
9927fi
9928
9929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9930	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9931		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9932	fi
9933	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9934	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9937  $as_echo_n "(cached) " >&6
9938else
9939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940/* end confdefs.h.  */
9941int i;
9942_ACEOF
9943if ac_fn_c_try_compile "$LINENO"; then :
9944  xorg_cv_cc_flag_unused_command_line_argument=yes
9945else
9946  xorg_cv_cc_flag_unused_command_line_argument=no
9947fi
9948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9949fi
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9953	CFLAGS="$xorg_testset_save_CFLAGS"
9954fi
9955
9956found="no"
9957
9958	if test $found = "no" ; then
9959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961		fi
9962
9963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9965		fi
9966
9967		CFLAGS="$CFLAGS -Waddress"
9968
9969		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9970$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9971		cacheid=xorg_cv_cc_flag__Waddress
9972		if eval \${$cacheid+:} false; then :
9973  $as_echo_n "(cached) " >&6
9974else
9975  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976/* end confdefs.h.  */
9977int i;
9978int
9979main ()
9980{
9981
9982  ;
9983  return 0;
9984}
9985_ACEOF
9986if ac_fn_c_try_link "$LINENO"; then :
9987  eval $cacheid=yes
9988else
9989  eval $cacheid=no
9990fi
9991rm -f core conftest.err conftest.$ac_objext \
9992    conftest$ac_exeext conftest.$ac_ext
9993fi
9994
9995
9996		CFLAGS="$xorg_testset_save_CFLAGS"
9997
9998		eval supported=\$$cacheid
9999		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10000$as_echo "$supported" >&6; }
10001		if test "$supported" = "yes" ; then
10002			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10003			found="yes"
10004		fi
10005	fi
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021xorg_testset_save_CFLAGS="$CFLAGS"
10022
10023if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10024	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10025	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10026$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10027if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10028  $as_echo_n "(cached) " >&6
10029else
10030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031/* end confdefs.h.  */
10032int i;
10033_ACEOF
10034if ac_fn_c_try_compile "$LINENO"; then :
10035  xorg_cv_cc_flag_unknown_warning_option=yes
10036else
10037  xorg_cv_cc_flag_unknown_warning_option=no
10038fi
10039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10040fi
10041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10042$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10044	CFLAGS="$xorg_testset_save_CFLAGS"
10045fi
10046
10047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10050	fi
10051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10052	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10053$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10054if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058/* end confdefs.h.  */
10059int i;
10060_ACEOF
10061if ac_fn_c_try_compile "$LINENO"; then :
10062  xorg_cv_cc_flag_unused_command_line_argument=yes
10063else
10064  xorg_cv_cc_flag_unused_command_line_argument=no
10065fi
10066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10067fi
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10069$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10070	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10071	CFLAGS="$xorg_testset_save_CFLAGS"
10072fi
10073
10074found="no"
10075
10076	if test $found = "no" ; then
10077		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079		fi
10080
10081		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10083		fi
10084
10085		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10086
10087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10088$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10089		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10090		if eval \${$cacheid+:} false; then :
10091  $as_echo_n "(cached) " >&6
10092else
10093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094/* end confdefs.h.  */
10095int i;
10096int
10097main ()
10098{
10099
10100  ;
10101  return 0;
10102}
10103_ACEOF
10104if ac_fn_c_try_link "$LINENO"; then :
10105  eval $cacheid=yes
10106else
10107  eval $cacheid=no
10108fi
10109rm -f core conftest.err conftest.$ac_objext \
10110    conftest$ac_exeext conftest.$ac_ext
10111fi
10112
10113
10114		CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116		eval supported=\$$cacheid
10117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118$as_echo "$supported" >&6; }
10119		if test "$supported" = "yes" ; then
10120			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10121			found="yes"
10122		fi
10123	fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10146  $as_echo_n "(cached) " >&6
10147else
10148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10149/* end confdefs.h.  */
10150int i;
10151_ACEOF
10152if ac_fn_c_try_compile "$LINENO"; then :
10153  xorg_cv_cc_flag_unknown_warning_option=yes
10154else
10155  xorg_cv_cc_flag_unknown_warning_option=no
10156fi
10157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158fi
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10162	CFLAGS="$xorg_testset_save_CFLAGS"
10163fi
10164
10165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168	fi
10169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10173  $as_echo_n "(cached) " >&6
10174else
10175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h.  */
10177int i;
10178_ACEOF
10179if ac_fn_c_try_compile "$LINENO"; then :
10180  xorg_cv_cc_flag_unused_command_line_argument=yes
10181else
10182  xorg_cv_cc_flag_unused_command_line_argument=no
10183fi
10184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185fi
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10189	CFLAGS="$xorg_testset_save_CFLAGS"
10190fi
10191
10192found="no"
10193
10194	if test $found = "no" ; then
10195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197		fi
10198
10199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10201		fi
10202
10203		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10204
10205		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10206$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10207		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10208		if eval \${$cacheid+:} false; then :
10209  $as_echo_n "(cached) " >&6
10210else
10211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213int i;
10214int
10215main ()
10216{
10217
10218  ;
10219  return 0;
10220}
10221_ACEOF
10222if ac_fn_c_try_link "$LINENO"; then :
10223  eval $cacheid=yes
10224else
10225  eval $cacheid=no
10226fi
10227rm -f core conftest.err conftest.$ac_objext \
10228    conftest$ac_exeext conftest.$ac_ext
10229fi
10230
10231
10232		CFLAGS="$xorg_testset_save_CFLAGS"
10233
10234		eval supported=\$$cacheid
10235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10236$as_echo "$supported" >&6; }
10237		if test "$supported" = "yes" ; then
10238			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10239			found="yes"
10240		fi
10241	fi
10242
10243
10244fi
10245
10246
10247
10248
10249
10250
10251
10252		CWARNFLAGS="$BASE_CFLAGS"
10253		if  test "x$GCC" = xyes ; then
10254		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10255		fi
10256
10257
10258
10259
10260
10261
10262
10263
10264# Check whether --enable-strict-compilation was given.
10265if test "${enable_strict_compilation+set}" = set; then :
10266  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10267else
10268  STRICT_COMPILE=no
10269fi
10270
10271
10272
10273
10274
10275
10276STRICT_CFLAGS=""
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290xorg_testset_save_CFLAGS="$CFLAGS"
10291
10292if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10293	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10295$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10296if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10297  $as_echo_n "(cached) " >&6
10298else
10299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10300/* end confdefs.h.  */
10301int i;
10302_ACEOF
10303if ac_fn_c_try_compile "$LINENO"; then :
10304  xorg_cv_cc_flag_unknown_warning_option=yes
10305else
10306  xorg_cv_cc_flag_unknown_warning_option=no
10307fi
10308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309fi
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10311$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10312	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10313	CFLAGS="$xorg_testset_save_CFLAGS"
10314fi
10315
10316if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10317	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10318		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10319	fi
10320	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10321	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10322$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10323if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328int i;
10329_ACEOF
10330if ac_fn_c_try_compile "$LINENO"; then :
10331  xorg_cv_cc_flag_unused_command_line_argument=yes
10332else
10333  xorg_cv_cc_flag_unused_command_line_argument=no
10334fi
10335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10336fi
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10338$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10339	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10340	CFLAGS="$xorg_testset_save_CFLAGS"
10341fi
10342
10343found="no"
10344
10345	if test $found = "no" ; then
10346		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10347			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348		fi
10349
10350		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10351			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352		fi
10353
10354		CFLAGS="$CFLAGS -pedantic"
10355
10356		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10357$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10358		cacheid=xorg_cv_cc_flag__pedantic
10359		if eval \${$cacheid+:} false; then :
10360  $as_echo_n "(cached) " >&6
10361else
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365int
10366main ()
10367{
10368
10369  ;
10370  return 0;
10371}
10372_ACEOF
10373if ac_fn_c_try_link "$LINENO"; then :
10374  eval $cacheid=yes
10375else
10376  eval $cacheid=no
10377fi
10378rm -f core conftest.err conftest.$ac_objext \
10379    conftest$ac_exeext conftest.$ac_ext
10380fi
10381
10382
10383		CFLAGS="$xorg_testset_save_CFLAGS"
10384
10385		eval supported=\$$cacheid
10386		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10387$as_echo "$supported" >&6; }
10388		if test "$supported" = "yes" ; then
10389			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10390			found="yes"
10391		fi
10392	fi
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408xorg_testset_save_CFLAGS="$CFLAGS"
10409
10410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10411	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10415  $as_echo_n "(cached) " >&6
10416else
10417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h.  */
10419int i;
10420_ACEOF
10421if ac_fn_c_try_compile "$LINENO"; then :
10422  xorg_cv_cc_flag_unknown_warning_option=yes
10423else
10424  xorg_cv_cc_flag_unknown_warning_option=no
10425fi
10426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427fi
10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10430	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10431	CFLAGS="$xorg_testset_save_CFLAGS"
10432fi
10433
10434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10435	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10436		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10437	fi
10438	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10439	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10442  $as_echo_n "(cached) " >&6
10443else
10444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445/* end confdefs.h.  */
10446int i;
10447_ACEOF
10448if ac_fn_c_try_compile "$LINENO"; then :
10449  xorg_cv_cc_flag_unused_command_line_argument=yes
10450else
10451  xorg_cv_cc_flag_unused_command_line_argument=no
10452fi
10453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454fi
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10457	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10458	CFLAGS="$xorg_testset_save_CFLAGS"
10459fi
10460
10461found="no"
10462
10463	if test $found = "no" ; then
10464		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10465			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10466		fi
10467
10468		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10469			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10470		fi
10471
10472		CFLAGS="$CFLAGS -Werror"
10473
10474		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10475$as_echo_n "checking if $CC supports -Werror... " >&6; }
10476		cacheid=xorg_cv_cc_flag__Werror
10477		if eval \${$cacheid+:} false; then :
10478  $as_echo_n "(cached) " >&6
10479else
10480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481/* end confdefs.h.  */
10482int i;
10483int
10484main ()
10485{
10486
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491if ac_fn_c_try_link "$LINENO"; then :
10492  eval $cacheid=yes
10493else
10494  eval $cacheid=no
10495fi
10496rm -f core conftest.err conftest.$ac_objext \
10497    conftest$ac_exeext conftest.$ac_ext
10498fi
10499
10500
10501		CFLAGS="$xorg_testset_save_CFLAGS"
10502
10503		eval supported=\$$cacheid
10504		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10505$as_echo "$supported" >&6; }
10506		if test "$supported" = "yes" ; then
10507			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10508			found="yes"
10509		fi
10510	fi
10511
10512	if test $found = "no" ; then
10513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10515		fi
10516
10517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10519		fi
10520
10521		CFLAGS="$CFLAGS -errwarn"
10522
10523		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10524$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10525		cacheid=xorg_cv_cc_flag__errwarn
10526		if eval \${$cacheid+:} false; then :
10527  $as_echo_n "(cached) " >&6
10528else
10529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10530/* end confdefs.h.  */
10531int i;
10532int
10533main ()
10534{
10535
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540if ac_fn_c_try_link "$LINENO"; then :
10541  eval $cacheid=yes
10542else
10543  eval $cacheid=no
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546    conftest$ac_exeext conftest.$ac_ext
10547fi
10548
10549
10550		CFLAGS="$xorg_testset_save_CFLAGS"
10551
10552		eval supported=\$$cacheid
10553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10554$as_echo "$supported" >&6; }
10555		if test "$supported" = "yes" ; then
10556			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10557			found="yes"
10558		fi
10559	fi
10560
10561
10562
10563# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10564# activate it with -Werror, so we add it here explicitly.
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578xorg_testset_save_CFLAGS="$CFLAGS"
10579
10580if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10581	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10582	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10583$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10584if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10585  $as_echo_n "(cached) " >&6
10586else
10587  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588/* end confdefs.h.  */
10589int i;
10590_ACEOF
10591if ac_fn_c_try_compile "$LINENO"; then :
10592  xorg_cv_cc_flag_unknown_warning_option=yes
10593else
10594  xorg_cv_cc_flag_unknown_warning_option=no
10595fi
10596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10597fi
10598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10599$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10600	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10601	CFLAGS="$xorg_testset_save_CFLAGS"
10602fi
10603
10604if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10605	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10606		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607	fi
10608	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10609	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10610$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10611if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10612  $as_echo_n "(cached) " >&6
10613else
10614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615/* end confdefs.h.  */
10616int i;
10617_ACEOF
10618if ac_fn_c_try_compile "$LINENO"; then :
10619  xorg_cv_cc_flag_unused_command_line_argument=yes
10620else
10621  xorg_cv_cc_flag_unused_command_line_argument=no
10622fi
10623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10624fi
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10626$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10627	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10628	CFLAGS="$xorg_testset_save_CFLAGS"
10629fi
10630
10631found="no"
10632
10633	if test $found = "no" ; then
10634		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10635			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10636		fi
10637
10638		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10639			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10640		fi
10641
10642		CFLAGS="$CFLAGS -Werror=attributes"
10643
10644		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10645$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10646		cacheid=xorg_cv_cc_flag__Werror_attributes
10647		if eval \${$cacheid+:} false; then :
10648  $as_echo_n "(cached) " >&6
10649else
10650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651/* end confdefs.h.  */
10652int i;
10653int
10654main ()
10655{
10656
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661if ac_fn_c_try_link "$LINENO"; then :
10662  eval $cacheid=yes
10663else
10664  eval $cacheid=no
10665fi
10666rm -f core conftest.err conftest.$ac_objext \
10667    conftest$ac_exeext conftest.$ac_ext
10668fi
10669
10670
10671		CFLAGS="$xorg_testset_save_CFLAGS"
10672
10673		eval supported=\$$cacheid
10674		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10675$as_echo "$supported" >&6; }
10676		if test "$supported" = "yes" ; then
10677			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10678			found="yes"
10679		fi
10680	fi
10681
10682
10683
10684if test "x$STRICT_COMPILE" = "xyes"; then
10685    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10686    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10687fi
10688
10689
10690
10691
10692
10693
10694cat >>confdefs.h <<_ACEOF
10695#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10696_ACEOF
10697
10698	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10699	if test "x$PVM" = "x"; then
10700		PVM="0"
10701	fi
10702
10703cat >>confdefs.h <<_ACEOF
10704#define PACKAGE_VERSION_MINOR $PVM
10705_ACEOF
10706
10707	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10708	if test "x$PVP" = "x"; then
10709		PVP="0"
10710	fi
10711
10712cat >>confdefs.h <<_ACEOF
10713#define PACKAGE_VERSION_PATCHLEVEL $PVP
10714_ACEOF
10715
10716
10717
10718CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10719mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10720|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10721echo 'git directory not found: installing possibly empty changelog.' >&2)"
10722
10723
10724
10725
10726macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10727INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10728mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10729|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10730echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10731
10732
10733
10734
10735
10736
10737if test x$APP_MAN_SUFFIX = x    ; then
10738    APP_MAN_SUFFIX=1
10739fi
10740if test x$APP_MAN_DIR = x    ; then
10741    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10742fi
10743
10744if test x$LIB_MAN_SUFFIX = x    ; then
10745    LIB_MAN_SUFFIX=3
10746fi
10747if test x$LIB_MAN_DIR = x    ; then
10748    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10749fi
10750
10751if test x$FILE_MAN_SUFFIX = x    ; then
10752    case $host_os in
10753	solaris*)	FILE_MAN_SUFFIX=4  ;;
10754	*)		FILE_MAN_SUFFIX=5  ;;
10755    esac
10756fi
10757if test x$FILE_MAN_DIR = x    ; then
10758    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10759fi
10760
10761if test x$MISC_MAN_SUFFIX = x    ; then
10762    case $host_os in
10763	solaris*)	MISC_MAN_SUFFIX=5  ;;
10764	*)		MISC_MAN_SUFFIX=7  ;;
10765    esac
10766fi
10767if test x$MISC_MAN_DIR = x    ; then
10768    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10769fi
10770
10771if test x$DRIVER_MAN_SUFFIX = x    ; then
10772    case $host_os in
10773	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10774	*)		DRIVER_MAN_SUFFIX=4  ;;
10775    esac
10776fi
10777if test x$DRIVER_MAN_DIR = x    ; then
10778    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10779fi
10780
10781if test x$ADMIN_MAN_SUFFIX = x    ; then
10782    case $host_os in
10783	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10784	*)		ADMIN_MAN_SUFFIX=8  ;;
10785    esac
10786fi
10787if test x$ADMIN_MAN_DIR = x    ; then
10788    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10789fi
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805XORG_MAN_PAGE="X Version 11"
10806
10807MAN_SUBSTS="\
10808	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10809	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10810	-e 's|__xservername__|Xorg|g' \
10811	-e 's|__xconfigfile__|xorg.conf|g' \
10812	-e 's|__projectroot__|\$(prefix)|g' \
10813	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10814	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10815	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10816	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10817	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10818	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10819	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10820
10821
10822
10823# Check whether --enable-silent-rules was given.
10824if test "${enable_silent_rules+set}" = set; then :
10825  enableval=$enable_silent_rules;
10826fi
10827
10828case $enable_silent_rules in # (((
10829  yes) AM_DEFAULT_VERBOSITY=0;;
10830   no) AM_DEFAULT_VERBOSITY=1;;
10831    *) AM_DEFAULT_VERBOSITY=0;;
10832esac
10833am_make=${MAKE-make}
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10835$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10836if ${am_cv_make_support_nested_variables+:} false; then :
10837  $as_echo_n "(cached) " >&6
10838else
10839  if $as_echo 'TRUE=$(BAR$(V))
10840BAR0=false
10841BAR1=true
10842V=1
10843am__doit:
10844	@$(TRUE)
10845.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10846  am_cv_make_support_nested_variables=yes
10847else
10848  am_cv_make_support_nested_variables=no
10849fi
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10852$as_echo "$am_cv_make_support_nested_variables" >&6; }
10853if test $am_cv_make_support_nested_variables = yes; then
10854    AM_V='$(V)'
10855  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10856else
10857  AM_V=$AM_DEFAULT_VERBOSITY
10858  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10859fi
10860AM_BACKSLASH='\'
10861
10862
10863
10864
10865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10866$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10867    # Check whether --enable-maintainer-mode was given.
10868if test "${enable_maintainer_mode+set}" = set; then :
10869  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10870else
10871  USE_MAINTAINER_MODE=no
10872fi
10873
10874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10875$as_echo "$USE_MAINTAINER_MODE" >&6; }
10876   if test $USE_MAINTAINER_MODE = yes; then
10877  MAINTAINER_MODE_TRUE=
10878  MAINTAINER_MODE_FALSE='#'
10879else
10880  MAINTAINER_MODE_TRUE='#'
10881  MAINTAINER_MODE_FALSE=
10882fi
10883
10884  MAINT=$MAINTAINER_MODE_TRUE
10885
10886
10887
10888# Initialize libtool
10889# Check whether --enable-static was given.
10890if test "${enable_static+set}" = set; then :
10891  enableval=$enable_static; p=${PACKAGE-default}
10892    case $enableval in
10893    yes) enable_static=yes ;;
10894    no) enable_static=no ;;
10895    *)
10896     enable_static=no
10897      # Look at the argument we got.  We use all the common list separators.
10898      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10899      for pkg in $enableval; do
10900	IFS=$lt_save_ifs
10901	if test "X$pkg" = "X$p"; then
10902	  enable_static=yes
10903	fi
10904      done
10905      IFS=$lt_save_ifs
10906      ;;
10907    esac
10908else
10909  enable_static=no
10910fi
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920case `pwd` in
10921  *\ * | *\	*)
10922    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10923$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10924esac
10925
10926
10927
10928macro_version='2.4.6'
10929macro_revision='2.4.6'
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943ltmain=$ac_aux_dir/ltmain.sh
10944
10945# Backslashify metacharacters that are still active within
10946# double-quoted strings.
10947sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10948
10949# Same as above, but do not quote variable references.
10950double_quote_subst='s/\(["`\\]\)/\\\1/g'
10951
10952# Sed substitution to delay expansion of an escaped shell variable in a
10953# double_quote_subst'ed string.
10954delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10955
10956# Sed substitution to delay expansion of an escaped single quote.
10957delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10958
10959# Sed substitution to avoid accidental globbing in evaled expressions
10960no_glob_subst='s/\*/\\\*/g'
10961
10962ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10963ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10964ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10965
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10967$as_echo_n "checking how to print strings... " >&6; }
10968# Test print first, because it will be a builtin if present.
10969if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10970   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10971  ECHO='print -r --'
10972elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10973  ECHO='printf %s\n'
10974else
10975  # Use this function as a fallback that always works.
10976  func_fallback_echo ()
10977  {
10978    eval 'cat <<_LTECHO_EOF
10979$1
10980_LTECHO_EOF'
10981  }
10982  ECHO='func_fallback_echo'
10983fi
10984
10985# func_echo_all arg...
10986# Invoke $ECHO with all args, space-separated.
10987func_echo_all ()
10988{
10989    $ECHO ""
10990}
10991
10992case $ECHO in
10993  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10994$as_echo "printf" >&6; } ;;
10995  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10996$as_echo "print -r" >&6; } ;;
10997  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10998$as_echo "cat" >&6; } ;;
10999esac
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11015$as_echo_n "checking for a sed that does not truncate output... " >&6; }
11016if ${ac_cv_path_SED+:} false; then :
11017  $as_echo_n "(cached) " >&6
11018else
11019            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11020     for ac_i in 1 2 3 4 5 6 7; do
11021       ac_script="$ac_script$as_nl$ac_script"
11022     done
11023     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11024     { ac_script=; unset ac_script;}
11025     if test -z "$SED"; then
11026  ac_path_SED_found=false
11027  # Loop through the user's path and test for each of PROGNAME-LIST
11028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031  IFS=$as_save_IFS
11032  test -z "$as_dir" && as_dir=.
11033    for ac_prog in sed gsed; do
11034    for ac_exec_ext in '' $ac_executable_extensions; do
11035      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11036      as_fn_executable_p "$ac_path_SED" || continue
11037# Check for GNU ac_path_SED and select it if it is found.
11038  # Check for GNU $ac_path_SED
11039case `"$ac_path_SED" --version 2>&1` in
11040*GNU*)
11041  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11042*)
11043  ac_count=0
11044  $as_echo_n 0123456789 >"conftest.in"
11045  while :
11046  do
11047    cat "conftest.in" "conftest.in" >"conftest.tmp"
11048    mv "conftest.tmp" "conftest.in"
11049    cp "conftest.in" "conftest.nl"
11050    $as_echo '' >> "conftest.nl"
11051    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11052    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11053    as_fn_arith $ac_count + 1 && ac_count=$as_val
11054    if test $ac_count -gt ${ac_path_SED_max-0}; then
11055      # Best one so far, save it but keep looking for a better one
11056      ac_cv_path_SED="$ac_path_SED"
11057      ac_path_SED_max=$ac_count
11058    fi
11059    # 10*(2^10) chars as input seems more than enough
11060    test $ac_count -gt 10 && break
11061  done
11062  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11063esac
11064
11065      $ac_path_SED_found && break 3
11066    done
11067  done
11068  done
11069IFS=$as_save_IFS
11070  if test -z "$ac_cv_path_SED"; then
11071    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11072  fi
11073else
11074  ac_cv_path_SED=$SED
11075fi
11076
11077fi
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11079$as_echo "$ac_cv_path_SED" >&6; }
11080 SED="$ac_cv_path_SED"
11081  rm -f conftest.sed
11082
11083test -z "$SED" && SED=sed
11084Xsed="$SED -e 1s/^X//"
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11097$as_echo_n "checking for fgrep... " >&6; }
11098if ${ac_cv_path_FGREP+:} false; then :
11099  $as_echo_n "(cached) " >&6
11100else
11101  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11102   then ac_cv_path_FGREP="$GREP -F"
11103   else
11104     if test -z "$FGREP"; then
11105  ac_path_FGREP_found=false
11106  # Loop through the user's path and test for each of PROGNAME-LIST
11107  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11109do
11110  IFS=$as_save_IFS
11111  test -z "$as_dir" && as_dir=.
11112    for ac_prog in fgrep; do
11113    for ac_exec_ext in '' $ac_executable_extensions; do
11114      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11115      as_fn_executable_p "$ac_path_FGREP" || continue
11116# Check for GNU ac_path_FGREP and select it if it is found.
11117  # Check for GNU $ac_path_FGREP
11118case `"$ac_path_FGREP" --version 2>&1` in
11119*GNU*)
11120  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11121*)
11122  ac_count=0
11123  $as_echo_n 0123456789 >"conftest.in"
11124  while :
11125  do
11126    cat "conftest.in" "conftest.in" >"conftest.tmp"
11127    mv "conftest.tmp" "conftest.in"
11128    cp "conftest.in" "conftest.nl"
11129    $as_echo 'FGREP' >> "conftest.nl"
11130    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11131    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11132    as_fn_arith $ac_count + 1 && ac_count=$as_val
11133    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11134      # Best one so far, save it but keep looking for a better one
11135      ac_cv_path_FGREP="$ac_path_FGREP"
11136      ac_path_FGREP_max=$ac_count
11137    fi
11138    # 10*(2^10) chars as input seems more than enough
11139    test $ac_count -gt 10 && break
11140  done
11141  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11142esac
11143
11144      $ac_path_FGREP_found && break 3
11145    done
11146  done
11147  done
11148IFS=$as_save_IFS
11149  if test -z "$ac_cv_path_FGREP"; then
11150    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11151  fi
11152else
11153  ac_cv_path_FGREP=$FGREP
11154fi
11155
11156   fi
11157fi
11158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11159$as_echo "$ac_cv_path_FGREP" >&6; }
11160 FGREP="$ac_cv_path_FGREP"
11161
11162
11163test -z "$GREP" && GREP=grep
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183# Check whether --with-gnu-ld was given.
11184if test "${with_gnu_ld+set}" = set; then :
11185  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11186else
11187  with_gnu_ld=no
11188fi
11189
11190ac_prog=ld
11191if test yes = "$GCC"; then
11192  # Check if gcc -print-prog-name=ld gives a path.
11193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11194$as_echo_n "checking for ld used by $CC... " >&6; }
11195  case $host in
11196  *-*-mingw*)
11197    # gcc leaves a trailing carriage return, which upsets mingw
11198    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11199  *)
11200    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11201  esac
11202  case $ac_prog in
11203    # Accept absolute paths.
11204    [\\/]* | ?:[\\/]*)
11205      re_direlt='/[^/][^/]*/\.\./'
11206      # Canonicalize the pathname of ld
11207      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11208      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11209	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11210      done
11211      test -z "$LD" && LD=$ac_prog
11212      ;;
11213  "")
11214    # If it fails, then pretend we aren't using GCC.
11215    ac_prog=ld
11216    ;;
11217  *)
11218    # If it is relative, then search for the first ld in PATH.
11219    with_gnu_ld=unknown
11220    ;;
11221  esac
11222elif test yes = "$with_gnu_ld"; then
11223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11224$as_echo_n "checking for GNU ld... " >&6; }
11225else
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11227$as_echo_n "checking for non-GNU ld... " >&6; }
11228fi
11229if ${lt_cv_path_LD+:} false; then :
11230  $as_echo_n "(cached) " >&6
11231else
11232  if test -z "$LD"; then
11233  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11234  for ac_dir in $PATH; do
11235    IFS=$lt_save_ifs
11236    test -z "$ac_dir" && ac_dir=.
11237    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11238      lt_cv_path_LD=$ac_dir/$ac_prog
11239      # Check to see if the program is GNU ld.  I'd rather use --version,
11240      # but apparently some variants of GNU ld only accept -v.
11241      # Break only if it was the GNU/non-GNU ld that we prefer.
11242      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11243      *GNU* | *'with BFD'*)
11244	test no != "$with_gnu_ld" && break
11245	;;
11246      *)
11247	test yes != "$with_gnu_ld" && break
11248	;;
11249      esac
11250    fi
11251  done
11252  IFS=$lt_save_ifs
11253else
11254  lt_cv_path_LD=$LD # Let the user override the test with a path.
11255fi
11256fi
11257
11258LD=$lt_cv_path_LD
11259if test -n "$LD"; then
11260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11261$as_echo "$LD" >&6; }
11262else
11263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
11265fi
11266test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11268$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11269if ${lt_cv_prog_gnu_ld+:} false; then :
11270  $as_echo_n "(cached) " >&6
11271else
11272  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11273case `$LD -v 2>&1 </dev/null` in
11274*GNU* | *'with BFD'*)
11275  lt_cv_prog_gnu_ld=yes
11276  ;;
11277*)
11278  lt_cv_prog_gnu_ld=no
11279  ;;
11280esac
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11283$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11284with_gnu_ld=$lt_cv_prog_gnu_ld
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11295$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11296if ${lt_cv_path_NM+:} false; then :
11297  $as_echo_n "(cached) " >&6
11298else
11299  if test -n "$NM"; then
11300  # Let the user override the test.
11301  lt_cv_path_NM=$NM
11302else
11303  lt_nm_to_check=${ac_tool_prefix}nm
11304  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11305    lt_nm_to_check="$lt_nm_to_check nm"
11306  fi
11307  for lt_tmp_nm in $lt_nm_to_check; do
11308    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11309    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11310      IFS=$lt_save_ifs
11311      test -z "$ac_dir" && ac_dir=.
11312      tmp_nm=$ac_dir/$lt_tmp_nm
11313      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11314	# Check to see if the nm accepts a BSD-compat flag.
11315	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11316	#   nm: unknown option "B" ignored
11317	# Tru64's nm complains that /dev/null is an invalid object file
11318	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11319	case $build_os in
11320	mingw*) lt_bad_file=conftest.nm/nofile ;;
11321	*) lt_bad_file=/dev/null ;;
11322	esac
11323	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11324	*$lt_bad_file* | *'Invalid file or object type'*)
11325	  lt_cv_path_NM="$tmp_nm -B"
11326	  break 2
11327	  ;;
11328	*)
11329	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11330	  */dev/null*)
11331	    lt_cv_path_NM="$tmp_nm -p"
11332	    break 2
11333	    ;;
11334	  *)
11335	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11336	    continue # so that we can try to find one that supports BSD flags
11337	    ;;
11338	  esac
11339	  ;;
11340	esac
11341      fi
11342    done
11343    IFS=$lt_save_ifs
11344  done
11345  : ${lt_cv_path_NM=no}
11346fi
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11349$as_echo "$lt_cv_path_NM" >&6; }
11350if test no != "$lt_cv_path_NM"; then
11351  NM=$lt_cv_path_NM
11352else
11353  # Didn't find any BSD compatible name lister, look for dumpbin.
11354  if test -n "$DUMPBIN"; then :
11355    # Let the user override the test.
11356  else
11357    if test -n "$ac_tool_prefix"; then
11358  for ac_prog in dumpbin "link -dump"
11359  do
11360    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11361set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363$as_echo_n "checking for $ac_word... " >&6; }
11364if ${ac_cv_prog_DUMPBIN+:} false; then :
11365  $as_echo_n "(cached) " >&6
11366else
11367  if test -n "$DUMPBIN"; then
11368  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11369else
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373  IFS=$as_save_IFS
11374  test -z "$as_dir" && as_dir=.
11375    for ac_exec_ext in '' $ac_executable_extensions; do
11376  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11377    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11378    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11379    break 2
11380  fi
11381done
11382  done
11383IFS=$as_save_IFS
11384
11385fi
11386fi
11387DUMPBIN=$ac_cv_prog_DUMPBIN
11388if test -n "$DUMPBIN"; then
11389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11390$as_echo "$DUMPBIN" >&6; }
11391else
11392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
11394fi
11395
11396
11397    test -n "$DUMPBIN" && break
11398  done
11399fi
11400if test -z "$DUMPBIN"; then
11401  ac_ct_DUMPBIN=$DUMPBIN
11402  for ac_prog in dumpbin "link -dump"
11403do
11404  # Extract the first word of "$ac_prog", so it can be a program name with args.
11405set dummy $ac_prog; ac_word=$2
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407$as_echo_n "checking for $ac_word... " >&6; }
11408if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11409  $as_echo_n "(cached) " >&6
11410else
11411  if test -n "$ac_ct_DUMPBIN"; then
11412  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11413else
11414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415for as_dir in $PATH
11416do
11417  IFS=$as_save_IFS
11418  test -z "$as_dir" && as_dir=.
11419    for ac_exec_ext in '' $ac_executable_extensions; do
11420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423    break 2
11424  fi
11425done
11426  done
11427IFS=$as_save_IFS
11428
11429fi
11430fi
11431ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11432if test -n "$ac_ct_DUMPBIN"; then
11433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11434$as_echo "$ac_ct_DUMPBIN" >&6; }
11435else
11436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
11438fi
11439
11440
11441  test -n "$ac_ct_DUMPBIN" && break
11442done
11443
11444  if test "x$ac_ct_DUMPBIN" = x; then
11445    DUMPBIN=":"
11446  else
11447    case $cross_compiling:$ac_tool_warned in
11448yes:)
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11451ac_tool_warned=yes ;;
11452esac
11453    DUMPBIN=$ac_ct_DUMPBIN
11454  fi
11455fi
11456
11457    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11458    *COFF*)
11459      DUMPBIN="$DUMPBIN -symbols -headers"
11460      ;;
11461    *)
11462      DUMPBIN=:
11463      ;;
11464    esac
11465  fi
11466
11467  if test : != "$DUMPBIN"; then
11468    NM=$DUMPBIN
11469  fi
11470fi
11471test -z "$NM" && NM=nm
11472
11473
11474
11475
11476
11477
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11479$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11480if ${lt_cv_nm_interface+:} false; then :
11481  $as_echo_n "(cached) " >&6
11482else
11483  lt_cv_nm_interface="BSD nm"
11484  echo "int some_variable = 0;" > conftest.$ac_ext
11485  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11486  (eval "$ac_compile" 2>conftest.err)
11487  cat conftest.err >&5
11488  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11489  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11490  cat conftest.err >&5
11491  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11492  cat conftest.out >&5
11493  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11494    lt_cv_nm_interface="MS dumpbin"
11495  fi
11496  rm -f conftest*
11497fi
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11499$as_echo "$lt_cv_nm_interface" >&6; }
11500
11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11502$as_echo_n "checking whether ln -s works... " >&6; }
11503LN_S=$as_ln_s
11504if test "$LN_S" = "ln -s"; then
11505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11506$as_echo "yes" >&6; }
11507else
11508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11509$as_echo "no, using $LN_S" >&6; }
11510fi
11511
11512# find the maximum length of command line arguments
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11514$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11515if ${lt_cv_sys_max_cmd_len+:} false; then :
11516  $as_echo_n "(cached) " >&6
11517else
11518    i=0
11519  teststring=ABCD
11520
11521  case $build_os in
11522  msdosdjgpp*)
11523    # On DJGPP, this test can blow up pretty badly due to problems in libc
11524    # (any single argument exceeding 2000 bytes causes a buffer overrun
11525    # during glob expansion).  Even if it were fixed, the result of this
11526    # check would be larger than it should be.
11527    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11528    ;;
11529
11530  gnu*)
11531    # Under GNU Hurd, this test is not required because there is
11532    # no limit to the length of command line arguments.
11533    # Libtool will interpret -1 as no limit whatsoever
11534    lt_cv_sys_max_cmd_len=-1;
11535    ;;
11536
11537  cygwin* | mingw* | cegcc*)
11538    # On Win9x/ME, this test blows up -- it succeeds, but takes
11539    # about 5 minutes as the teststring grows exponentially.
11540    # Worse, since 9x/ME are not pre-emptively multitasking,
11541    # you end up with a "frozen" computer, even though with patience
11542    # the test eventually succeeds (with a max line length of 256k).
11543    # Instead, let's just punt: use the minimum linelength reported by
11544    # all of the supported platforms: 8192 (on NT/2K/XP).
11545    lt_cv_sys_max_cmd_len=8192;
11546    ;;
11547
11548  mint*)
11549    # On MiNT this can take a long time and run out of memory.
11550    lt_cv_sys_max_cmd_len=8192;
11551    ;;
11552
11553  amigaos*)
11554    # On AmigaOS with pdksh, this test takes hours, literally.
11555    # So we just punt and use a minimum line length of 8192.
11556    lt_cv_sys_max_cmd_len=8192;
11557    ;;
11558
11559  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11560    # This has been around since 386BSD, at least.  Likely further.
11561    if test -x /sbin/sysctl; then
11562      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11563    elif test -x /usr/sbin/sysctl; then
11564      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11565    else
11566      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11567    fi
11568    # And add a safety zone
11569    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11570    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11571    ;;
11572
11573  interix*)
11574    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11575    lt_cv_sys_max_cmd_len=196608
11576    ;;
11577
11578  os2*)
11579    # The test takes a long time on OS/2.
11580    lt_cv_sys_max_cmd_len=8192
11581    ;;
11582
11583  osf*)
11584    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11585    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11586    # nice to cause kernel panics so lets avoid the loop below.
11587    # First set a reasonable default.
11588    lt_cv_sys_max_cmd_len=16384
11589    #
11590    if test -x /sbin/sysconfig; then
11591      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11592        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11593      esac
11594    fi
11595    ;;
11596  sco3.2v5*)
11597    lt_cv_sys_max_cmd_len=102400
11598    ;;
11599  sysv5* | sco5v6* | sysv4.2uw2*)
11600    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11601    if test -n "$kargmax"; then
11602      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11603    else
11604      lt_cv_sys_max_cmd_len=32768
11605    fi
11606    ;;
11607  *)
11608    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11609    if test -n "$lt_cv_sys_max_cmd_len" && \
11610       test undefined != "$lt_cv_sys_max_cmd_len"; then
11611      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11612      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11613    else
11614      # Make teststring a little bigger before we do anything with it.
11615      # a 1K string should be a reasonable start.
11616      for i in 1 2 3 4 5 6 7 8; do
11617        teststring=$teststring$teststring
11618      done
11619      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11620      # If test is not a shell built-in, we'll probably end up computing a
11621      # maximum length that is only half of the actual maximum length, but
11622      # we can't tell.
11623      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11624	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11625	      test 17 != "$i" # 1/2 MB should be enough
11626      do
11627        i=`expr $i + 1`
11628        teststring=$teststring$teststring
11629      done
11630      # Only check the string length outside the loop.
11631      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11632      teststring=
11633      # Add a significant safety factor because C++ compilers can tack on
11634      # massive amounts of additional arguments before passing them to the
11635      # linker.  It appears as though 1/2 is a usable value.
11636      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11637    fi
11638    ;;
11639  esac
11640
11641fi
11642
11643if test -n "$lt_cv_sys_max_cmd_len"; then
11644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11645$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11646else
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11648$as_echo "none" >&6; }
11649fi
11650max_cmd_len=$lt_cv_sys_max_cmd_len
11651
11652
11653
11654
11655
11656
11657: ${CP="cp -f"}
11658: ${MV="mv -f"}
11659: ${RM="rm -f"}
11660
11661if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11662  lt_unset=unset
11663else
11664  lt_unset=false
11665fi
11666
11667
11668
11669
11670
11671# test EBCDIC or ASCII
11672case `echo X|tr X '\101'` in
11673 A) # ASCII based system
11674    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11675  lt_SP2NL='tr \040 \012'
11676  lt_NL2SP='tr \015\012 \040\040'
11677  ;;
11678 *) # EBCDIC based system
11679  lt_SP2NL='tr \100 \n'
11680  lt_NL2SP='tr \r\n \100\100'
11681  ;;
11682esac
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11693$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11694if ${lt_cv_to_host_file_cmd+:} false; then :
11695  $as_echo_n "(cached) " >&6
11696else
11697  case $host in
11698  *-*-mingw* )
11699    case $build in
11700      *-*-mingw* ) # actually msys
11701        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11702        ;;
11703      *-*-cygwin* )
11704        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11705        ;;
11706      * ) # otherwise, assume *nix
11707        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11708        ;;
11709    esac
11710    ;;
11711  *-*-cygwin* )
11712    case $build in
11713      *-*-mingw* ) # actually msys
11714        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11715        ;;
11716      *-*-cygwin* )
11717        lt_cv_to_host_file_cmd=func_convert_file_noop
11718        ;;
11719      * ) # otherwise, assume *nix
11720        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11721        ;;
11722    esac
11723    ;;
11724  * ) # unhandled hosts (and "normal" native builds)
11725    lt_cv_to_host_file_cmd=func_convert_file_noop
11726    ;;
11727esac
11728
11729fi
11730
11731to_host_file_cmd=$lt_cv_to_host_file_cmd
11732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11733$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11734
11735
11736
11737
11738
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11740$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11741if ${lt_cv_to_tool_file_cmd+:} false; then :
11742  $as_echo_n "(cached) " >&6
11743else
11744  #assume ordinary cross tools, or native build.
11745lt_cv_to_tool_file_cmd=func_convert_file_noop
11746case $host in
11747  *-*-mingw* )
11748    case $build in
11749      *-*-mingw* ) # actually msys
11750        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11751        ;;
11752    esac
11753    ;;
11754esac
11755
11756fi
11757
11758to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11760$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11761
11762
11763
11764
11765
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11767$as_echo_n "checking for $LD option to reload object files... " >&6; }
11768if ${lt_cv_ld_reload_flag+:} false; then :
11769  $as_echo_n "(cached) " >&6
11770else
11771  lt_cv_ld_reload_flag='-r'
11772fi
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11774$as_echo "$lt_cv_ld_reload_flag" >&6; }
11775reload_flag=$lt_cv_ld_reload_flag
11776case $reload_flag in
11777"" | " "*) ;;
11778*) reload_flag=" $reload_flag" ;;
11779esac
11780reload_cmds='$LD$reload_flag -o $output$reload_objs'
11781case $host_os in
11782  cygwin* | mingw* | pw32* | cegcc*)
11783    if test yes != "$GCC"; then
11784      reload_cmds=false
11785    fi
11786    ;;
11787  darwin*)
11788    if test yes = "$GCC"; then
11789      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11790    else
11791      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11792    fi
11793    ;;
11794esac
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804if test -n "$ac_tool_prefix"; then
11805  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11806set dummy ${ac_tool_prefix}objdump; ac_word=$2
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
11809if ${ac_cv_prog_OBJDUMP+:} false; then :
11810  $as_echo_n "(cached) " >&6
11811else
11812  if test -n "$OBJDUMP"; then
11813  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11814else
11815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH
11817do
11818  IFS=$as_save_IFS
11819  test -z "$as_dir" && as_dir=.
11820    for ac_exec_ext in '' $ac_executable_extensions; do
11821  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824    break 2
11825  fi
11826done
11827  done
11828IFS=$as_save_IFS
11829
11830fi
11831fi
11832OBJDUMP=$ac_cv_prog_OBJDUMP
11833if test -n "$OBJDUMP"; then
11834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11835$as_echo "$OBJDUMP" >&6; }
11836else
11837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
11839fi
11840
11841
11842fi
11843if test -z "$ac_cv_prog_OBJDUMP"; then
11844  ac_ct_OBJDUMP=$OBJDUMP
11845  # Extract the first word of "objdump", so it can be a program name with args.
11846set dummy objdump; ac_word=$2
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
11849if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11850  $as_echo_n "(cached) " >&6
11851else
11852  if test -n "$ac_ct_OBJDUMP"; then
11853  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11854else
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858  IFS=$as_save_IFS
11859  test -z "$as_dir" && as_dir=.
11860    for ac_exec_ext in '' $ac_executable_extensions; do
11861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11862    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864    break 2
11865  fi
11866done
11867  done
11868IFS=$as_save_IFS
11869
11870fi
11871fi
11872ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11873if test -n "$ac_ct_OBJDUMP"; then
11874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11875$as_echo "$ac_ct_OBJDUMP" >&6; }
11876else
11877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
11879fi
11880
11881  if test "x$ac_ct_OBJDUMP" = x; then
11882    OBJDUMP="false"
11883  else
11884    case $cross_compiling:$ac_tool_warned in
11885yes:)
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888ac_tool_warned=yes ;;
11889esac
11890    OBJDUMP=$ac_ct_OBJDUMP
11891  fi
11892else
11893  OBJDUMP="$ac_cv_prog_OBJDUMP"
11894fi
11895
11896test -z "$OBJDUMP" && OBJDUMP=objdump
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11907$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11908if ${lt_cv_deplibs_check_method+:} false; then :
11909  $as_echo_n "(cached) " >&6
11910else
11911  lt_cv_file_magic_cmd='$MAGIC_CMD'
11912lt_cv_file_magic_test_file=
11913lt_cv_deplibs_check_method='unknown'
11914# Need to set the preceding variable on all platforms that support
11915# interlibrary dependencies.
11916# 'none' -- dependencies not supported.
11917# 'unknown' -- same as none, but documents that we really don't know.
11918# 'pass_all' -- all dependencies passed with no checks.
11919# 'test_compile' -- check by making test program.
11920# 'file_magic [[regex]]' -- check by looking for files in library path
11921# that responds to the $file_magic_cmd with a given extended regex.
11922# If you have 'file' or equivalent on your system and you're not sure
11923# whether 'pass_all' will *always* work, you probably want this one.
11924
11925case $host_os in
11926aix[4-9]*)
11927  lt_cv_deplibs_check_method=pass_all
11928  ;;
11929
11930beos*)
11931  lt_cv_deplibs_check_method=pass_all
11932  ;;
11933
11934bsdi[45]*)
11935  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11936  lt_cv_file_magic_cmd='/usr/bin/file -L'
11937  lt_cv_file_magic_test_file=/shlib/libc.so
11938  ;;
11939
11940cygwin*)
11941  # func_win32_libid is a shell function defined in ltmain.sh
11942  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11943  lt_cv_file_magic_cmd='func_win32_libid'
11944  ;;
11945
11946mingw* | pw32*)
11947  # Base MSYS/MinGW do not provide the 'file' command needed by
11948  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11949  # unless we find 'file', for example because we are cross-compiling.
11950  if ( file / ) >/dev/null 2>&1; then
11951    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11952    lt_cv_file_magic_cmd='func_win32_libid'
11953  else
11954    # Keep this pattern in sync with the one in func_win32_libid.
11955    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11956    lt_cv_file_magic_cmd='$OBJDUMP -f'
11957  fi
11958  ;;
11959
11960cegcc*)
11961  # use the weaker test based on 'objdump'. See mingw*.
11962  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11963  lt_cv_file_magic_cmd='$OBJDUMP -f'
11964  ;;
11965
11966darwin* | rhapsody*)
11967  lt_cv_deplibs_check_method=pass_all
11968  ;;
11969
11970freebsd* | dragonfly*)
11971  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11972    case $host_cpu in
11973    i*86 )
11974      # Not sure whether the presence of OpenBSD here was a mistake.
11975      # Let's accept both of them until this is cleared up.
11976      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11977      lt_cv_file_magic_cmd=/usr/bin/file
11978      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11979      ;;
11980    esac
11981  else
11982    lt_cv_deplibs_check_method=pass_all
11983  fi
11984  ;;
11985
11986haiku*)
11987  lt_cv_deplibs_check_method=pass_all
11988  ;;
11989
11990hpux10.20* | hpux11*)
11991  lt_cv_file_magic_cmd=/usr/bin/file
11992  case $host_cpu in
11993  ia64*)
11994    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11995    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11996    ;;
11997  hppa*64*)
11998    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]'
11999    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12000    ;;
12001  *)
12002    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12003    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12004    ;;
12005  esac
12006  ;;
12007
12008interix[3-9]*)
12009  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12010  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12011  ;;
12012
12013irix5* | irix6* | nonstopux*)
12014  case $LD in
12015  *-32|*"-32 ") libmagic=32-bit;;
12016  *-n32|*"-n32 ") libmagic=N32;;
12017  *-64|*"-64 ") libmagic=64-bit;;
12018  *) libmagic=never-match;;
12019  esac
12020  lt_cv_deplibs_check_method=pass_all
12021  ;;
12022
12023# This must be glibc/ELF.
12024linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12025  lt_cv_deplibs_check_method=pass_all
12026  ;;
12027
12028netbsd*)
12029  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12030    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12031  else
12032    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12033  fi
12034  ;;
12035
12036newos6*)
12037  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12038  lt_cv_file_magic_cmd=/usr/bin/file
12039  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12040  ;;
12041
12042*nto* | *qnx*)
12043  lt_cv_deplibs_check_method=pass_all
12044  ;;
12045
12046openbsd* | bitrig*)
12047  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12048    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12049  else
12050    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12051  fi
12052  ;;
12053
12054osf3* | osf4* | osf5*)
12055  lt_cv_deplibs_check_method=pass_all
12056  ;;
12057
12058rdos*)
12059  lt_cv_deplibs_check_method=pass_all
12060  ;;
12061
12062solaris*)
12063  lt_cv_deplibs_check_method=pass_all
12064  ;;
12065
12066sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12067  lt_cv_deplibs_check_method=pass_all
12068  ;;
12069
12070sysv4 | sysv4.3*)
12071  case $host_vendor in
12072  motorola)
12073    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]'
12074    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12075    ;;
12076  ncr)
12077    lt_cv_deplibs_check_method=pass_all
12078    ;;
12079  sequent)
12080    lt_cv_file_magic_cmd='/bin/file'
12081    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12082    ;;
12083  sni)
12084    lt_cv_file_magic_cmd='/bin/file'
12085    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12086    lt_cv_file_magic_test_file=/lib/libc.so
12087    ;;
12088  siemens)
12089    lt_cv_deplibs_check_method=pass_all
12090    ;;
12091  pc)
12092    lt_cv_deplibs_check_method=pass_all
12093    ;;
12094  esac
12095  ;;
12096
12097tpf*)
12098  lt_cv_deplibs_check_method=pass_all
12099  ;;
12100os2*)
12101  lt_cv_deplibs_check_method=pass_all
12102  ;;
12103esac
12104
12105fi
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12107$as_echo "$lt_cv_deplibs_check_method" >&6; }
12108
12109file_magic_glob=
12110want_nocaseglob=no
12111if test "$build" = "$host"; then
12112  case $host_os in
12113  mingw* | pw32*)
12114    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12115      want_nocaseglob=yes
12116    else
12117      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12118    fi
12119    ;;
12120  esac
12121fi
12122
12123file_magic_cmd=$lt_cv_file_magic_cmd
12124deplibs_check_method=$lt_cv_deplibs_check_method
12125test -z "$deplibs_check_method" && deplibs_check_method=unknown
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148if test -n "$ac_tool_prefix"; then
12149  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12150set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152$as_echo_n "checking for $ac_word... " >&6; }
12153if ${ac_cv_prog_DLLTOOL+:} false; then :
12154  $as_echo_n "(cached) " >&6
12155else
12156  if test -n "$DLLTOOL"; then
12157  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12158else
12159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160for as_dir in $PATH
12161do
12162  IFS=$as_save_IFS
12163  test -z "$as_dir" && as_dir=.
12164    for ac_exec_ext in '' $ac_executable_extensions; do
12165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12168    break 2
12169  fi
12170done
12171  done
12172IFS=$as_save_IFS
12173
12174fi
12175fi
12176DLLTOOL=$ac_cv_prog_DLLTOOL
12177if test -n "$DLLTOOL"; then
12178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12179$as_echo "$DLLTOOL" >&6; }
12180else
12181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182$as_echo "no" >&6; }
12183fi
12184
12185
12186fi
12187if test -z "$ac_cv_prog_DLLTOOL"; then
12188  ac_ct_DLLTOOL=$DLLTOOL
12189  # Extract the first word of "dlltool", so it can be a program name with args.
12190set dummy dlltool; ac_word=$2
12191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192$as_echo_n "checking for $ac_word... " >&6; }
12193if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12194  $as_echo_n "(cached) " >&6
12195else
12196  if test -n "$ac_ct_DLLTOOL"; then
12197  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12198else
12199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200for as_dir in $PATH
12201do
12202  IFS=$as_save_IFS
12203  test -z "$as_dir" && as_dir=.
12204    for ac_exec_ext in '' $ac_executable_extensions; do
12205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12208    break 2
12209  fi
12210done
12211  done
12212IFS=$as_save_IFS
12213
12214fi
12215fi
12216ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12217if test -n "$ac_ct_DLLTOOL"; then
12218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12219$as_echo "$ac_ct_DLLTOOL" >&6; }
12220else
12221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222$as_echo "no" >&6; }
12223fi
12224
12225  if test "x$ac_ct_DLLTOOL" = x; then
12226    DLLTOOL="false"
12227  else
12228    case $cross_compiling:$ac_tool_warned in
12229yes:)
12230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12232ac_tool_warned=yes ;;
12233esac
12234    DLLTOOL=$ac_ct_DLLTOOL
12235  fi
12236else
12237  DLLTOOL="$ac_cv_prog_DLLTOOL"
12238fi
12239
12240test -z "$DLLTOOL" && DLLTOOL=dlltool
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12252$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12253if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12254  $as_echo_n "(cached) " >&6
12255else
12256  lt_cv_sharedlib_from_linklib_cmd='unknown'
12257
12258case $host_os in
12259cygwin* | mingw* | pw32* | cegcc*)
12260  # two different shell functions defined in ltmain.sh;
12261  # decide which one to use based on capabilities of $DLLTOOL
12262  case `$DLLTOOL --help 2>&1` in
12263  *--identify-strict*)
12264    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12265    ;;
12266  *)
12267    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12268    ;;
12269  esac
12270  ;;
12271*)
12272  # fallback: assume linklib IS sharedlib
12273  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12274  ;;
12275esac
12276
12277fi
12278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12279$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12280sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12281test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12282
12283
12284
12285
12286
12287
12288
12289if test -n "$ac_tool_prefix"; then
12290  for ac_prog in ar
12291  do
12292    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12293set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295$as_echo_n "checking for $ac_word... " >&6; }
12296if ${ac_cv_prog_AR+:} false; then :
12297  $as_echo_n "(cached) " >&6
12298else
12299  if test -n "$AR"; then
12300  ac_cv_prog_AR="$AR" # Let the user override the test.
12301else
12302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $PATH
12304do
12305  IFS=$as_save_IFS
12306  test -z "$as_dir" && as_dir=.
12307    for ac_exec_ext in '' $ac_executable_extensions; do
12308  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311    break 2
12312  fi
12313done
12314  done
12315IFS=$as_save_IFS
12316
12317fi
12318fi
12319AR=$ac_cv_prog_AR
12320if test -n "$AR"; then
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12322$as_echo "$AR" >&6; }
12323else
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
12326fi
12327
12328
12329    test -n "$AR" && break
12330  done
12331fi
12332if test -z "$AR"; then
12333  ac_ct_AR=$AR
12334  for ac_prog in ar
12335do
12336  # Extract the first word of "$ac_prog", so it can be a program name with args.
12337set dummy $ac_prog; ac_word=$2
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12339$as_echo_n "checking for $ac_word... " >&6; }
12340if ${ac_cv_prog_ac_ct_AR+:} false; then :
12341  $as_echo_n "(cached) " >&6
12342else
12343  if test -n "$ac_ct_AR"; then
12344  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12345else
12346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12347for as_dir in $PATH
12348do
12349  IFS=$as_save_IFS
12350  test -z "$as_dir" && as_dir=.
12351    for ac_exec_ext in '' $ac_executable_extensions; do
12352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12353    ac_cv_prog_ac_ct_AR="$ac_prog"
12354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12355    break 2
12356  fi
12357done
12358  done
12359IFS=$as_save_IFS
12360
12361fi
12362fi
12363ac_ct_AR=$ac_cv_prog_ac_ct_AR
12364if test -n "$ac_ct_AR"; then
12365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12366$as_echo "$ac_ct_AR" >&6; }
12367else
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12369$as_echo "no" >&6; }
12370fi
12371
12372
12373  test -n "$ac_ct_AR" && break
12374done
12375
12376  if test "x$ac_ct_AR" = x; then
12377    AR="false"
12378  else
12379    case $cross_compiling:$ac_tool_warned in
12380yes:)
12381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12383ac_tool_warned=yes ;;
12384esac
12385    AR=$ac_ct_AR
12386  fi
12387fi
12388
12389: ${AR=ar}
12390: ${AR_FLAGS=cru}
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12403$as_echo_n "checking for archiver @FILE support... " >&6; }
12404if ${lt_cv_ar_at_file+:} false; then :
12405  $as_echo_n "(cached) " >&6
12406else
12407  lt_cv_ar_at_file=no
12408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409/* end confdefs.h.  */
12410
12411int
12412main ()
12413{
12414
12415  ;
12416  return 0;
12417}
12418_ACEOF
12419if ac_fn_c_try_compile "$LINENO"; then :
12420  echo conftest.$ac_objext > conftest.lst
12421      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12422      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12423  (eval $lt_ar_try) 2>&5
12424  ac_status=$?
12425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12426  test $ac_status = 0; }
12427      if test 0 -eq "$ac_status"; then
12428	# Ensure the archiver fails upon bogus file names.
12429	rm -f conftest.$ac_objext libconftest.a
12430	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12431  (eval $lt_ar_try) 2>&5
12432  ac_status=$?
12433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434  test $ac_status = 0; }
12435	if test 0 -ne "$ac_status"; then
12436          lt_cv_ar_at_file=@
12437        fi
12438      fi
12439      rm -f conftest.* libconftest.a
12440
12441fi
12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12446$as_echo "$lt_cv_ar_at_file" >&6; }
12447
12448if test no = "$lt_cv_ar_at_file"; then
12449  archiver_list_spec=
12450else
12451  archiver_list_spec=$lt_cv_ar_at_file
12452fi
12453
12454
12455
12456
12457
12458
12459
12460if test -n "$ac_tool_prefix"; then
12461  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12462set dummy ${ac_tool_prefix}strip; ac_word=$2
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464$as_echo_n "checking for $ac_word... " >&6; }
12465if ${ac_cv_prog_STRIP+:} false; then :
12466  $as_echo_n "(cached) " >&6
12467else
12468  if test -n "$STRIP"; then
12469  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12470else
12471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474  IFS=$as_save_IFS
12475  test -z "$as_dir" && as_dir=.
12476    for ac_exec_ext in '' $ac_executable_extensions; do
12477  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12478    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12480    break 2
12481  fi
12482done
12483  done
12484IFS=$as_save_IFS
12485
12486fi
12487fi
12488STRIP=$ac_cv_prog_STRIP
12489if test -n "$STRIP"; then
12490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12491$as_echo "$STRIP" >&6; }
12492else
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
12495fi
12496
12497
12498fi
12499if test -z "$ac_cv_prog_STRIP"; then
12500  ac_ct_STRIP=$STRIP
12501  # Extract the first word of "strip", so it can be a program name with args.
12502set dummy strip; ac_word=$2
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504$as_echo_n "checking for $ac_word... " >&6; }
12505if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12506  $as_echo_n "(cached) " >&6
12507else
12508  if test -n "$ac_ct_STRIP"; then
12509  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12510else
12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514  IFS=$as_save_IFS
12515  test -z "$as_dir" && as_dir=.
12516    for ac_exec_ext in '' $ac_executable_extensions; do
12517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12518    ac_cv_prog_ac_ct_STRIP="strip"
12519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520    break 2
12521  fi
12522done
12523  done
12524IFS=$as_save_IFS
12525
12526fi
12527fi
12528ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12529if test -n "$ac_ct_STRIP"; then
12530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12531$as_echo "$ac_ct_STRIP" >&6; }
12532else
12533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
12535fi
12536
12537  if test "x$ac_ct_STRIP" = x; then
12538    STRIP=":"
12539  else
12540    case $cross_compiling:$ac_tool_warned in
12541yes:)
12542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12544ac_tool_warned=yes ;;
12545esac
12546    STRIP=$ac_ct_STRIP
12547  fi
12548else
12549  STRIP="$ac_cv_prog_STRIP"
12550fi
12551
12552test -z "$STRIP" && STRIP=:
12553
12554
12555
12556
12557
12558
12559if test -n "$ac_tool_prefix"; then
12560  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12561set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563$as_echo_n "checking for $ac_word... " >&6; }
12564if ${ac_cv_prog_RANLIB+:} false; then :
12565  $as_echo_n "(cached) " >&6
12566else
12567  if test -n "$RANLIB"; then
12568  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12569else
12570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571for as_dir in $PATH
12572do
12573  IFS=$as_save_IFS
12574  test -z "$as_dir" && as_dir=.
12575    for ac_exec_ext in '' $ac_executable_extensions; do
12576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12577    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579    break 2
12580  fi
12581done
12582  done
12583IFS=$as_save_IFS
12584
12585fi
12586fi
12587RANLIB=$ac_cv_prog_RANLIB
12588if test -n "$RANLIB"; then
12589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12590$as_echo "$RANLIB" >&6; }
12591else
12592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593$as_echo "no" >&6; }
12594fi
12595
12596
12597fi
12598if test -z "$ac_cv_prog_RANLIB"; then
12599  ac_ct_RANLIB=$RANLIB
12600  # Extract the first word of "ranlib", so it can be a program name with args.
12601set dummy ranlib; ac_word=$2
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603$as_echo_n "checking for $ac_word... " >&6; }
12604if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12605  $as_echo_n "(cached) " >&6
12606else
12607  if test -n "$ac_ct_RANLIB"; then
12608  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12609else
12610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611for as_dir in $PATH
12612do
12613  IFS=$as_save_IFS
12614  test -z "$as_dir" && as_dir=.
12615    for ac_exec_ext in '' $ac_executable_extensions; do
12616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12617    ac_cv_prog_ac_ct_RANLIB="ranlib"
12618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619    break 2
12620  fi
12621done
12622  done
12623IFS=$as_save_IFS
12624
12625fi
12626fi
12627ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12628if test -n "$ac_ct_RANLIB"; then
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12630$as_echo "$ac_ct_RANLIB" >&6; }
12631else
12632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
12634fi
12635
12636  if test "x$ac_ct_RANLIB" = x; then
12637    RANLIB=":"
12638  else
12639    case $cross_compiling:$ac_tool_warned in
12640yes:)
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12643ac_tool_warned=yes ;;
12644esac
12645    RANLIB=$ac_ct_RANLIB
12646  fi
12647else
12648  RANLIB="$ac_cv_prog_RANLIB"
12649fi
12650
12651test -z "$RANLIB" && RANLIB=:
12652
12653
12654
12655
12656
12657
12658# Determine commands to create old-style static archives.
12659old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12660old_postinstall_cmds='chmod 644 $oldlib'
12661old_postuninstall_cmds=
12662
12663if test -n "$RANLIB"; then
12664  case $host_os in
12665  bitrig* | openbsd*)
12666    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12667    ;;
12668  *)
12669    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12670    ;;
12671  esac
12672  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12673fi
12674
12675case $host_os in
12676  darwin*)
12677    lock_old_archive_extraction=yes ;;
12678  *)
12679    lock_old_archive_extraction=no ;;
12680esac
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720# If no C compiler was specified, use CC.
12721LTCC=${LTCC-"$CC"}
12722
12723# If no C compiler flags were specified, use CFLAGS.
12724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12725
12726# Allow CC to be a program name with arguments.
12727compiler=$CC
12728
12729
12730# Check for command to grab the raw symbol name followed by C symbol from nm.
12731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12732$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12733if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12734  $as_echo_n "(cached) " >&6
12735else
12736
12737# These are sane defaults that work on at least a few old systems.
12738# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12739
12740# Character class describing NM global symbol codes.
12741symcode='[BCDEGRST]'
12742
12743# Regexp to match symbols that can be accessed directly from C.
12744sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12745
12746# Define system-specific variables.
12747case $host_os in
12748aix*)
12749  symcode='[BCDT]'
12750  ;;
12751cygwin* | mingw* | pw32* | cegcc*)
12752  symcode='[ABCDGISTW]'
12753  ;;
12754hpux*)
12755  if test ia64 = "$host_cpu"; then
12756    symcode='[ABCDEGRST]'
12757  fi
12758  ;;
12759irix* | nonstopux*)
12760  symcode='[BCDEGRST]'
12761  ;;
12762osf*)
12763  symcode='[BCDEGQRST]'
12764  ;;
12765solaris*)
12766  symcode='[BDRT]'
12767  ;;
12768sco3.2v5*)
12769  symcode='[DT]'
12770  ;;
12771sysv4.2uw2*)
12772  symcode='[DT]'
12773  ;;
12774sysv5* | sco5v6* | unixware* | OpenUNIX*)
12775  symcode='[ABDT]'
12776  ;;
12777sysv4)
12778  symcode='[DFNSTU]'
12779  ;;
12780esac
12781
12782# If we're using GNU nm, then use its standard symbol codes.
12783case `$NM -V 2>&1` in
12784*GNU* | *'with BFD'*)
12785  symcode='[ABCDGIRSTW]' ;;
12786esac
12787
12788if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12789  # Gets list of data symbols to import.
12790  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12791  # Adjust the below global symbol transforms to fixup imported variables.
12792  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12793  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12794  lt_c_name_lib_hook="\
12795  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12796  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12797else
12798  # Disable hooks by default.
12799  lt_cv_sys_global_symbol_to_import=
12800  lt_cdecl_hook=
12801  lt_c_name_hook=
12802  lt_c_name_lib_hook=
12803fi
12804
12805# Transform an extracted symbol line into a proper C declaration.
12806# Some systems (esp. on ia64) link data and code symbols differently,
12807# so use this general approach.
12808lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12809$lt_cdecl_hook\
12810" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12811" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12812
12813# Transform an extracted symbol line into symbol name and symbol address
12814lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12815$lt_c_name_hook\
12816" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12817" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12818
12819# Transform an extracted symbol line into symbol name with lib prefix and
12820# symbol address.
12821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12822$lt_c_name_lib_hook\
12823" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12824" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12825" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12826
12827# Handle CRLF in mingw tool chain
12828opt_cr=
12829case $build_os in
12830mingw*)
12831  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12832  ;;
12833esac
12834
12835# Try without a prefix underscore, then with it.
12836for ac_symprfx in "" "_"; do
12837
12838  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12839  symxfrm="\\1 $ac_symprfx\\2 \\2"
12840
12841  # Write the raw and C identifiers.
12842  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12843    # Fake it for dumpbin and say T for any non-static function,
12844    # D for any global variable and I for any imported variable.
12845    # Also find C++ and __fastcall symbols from MSVC++,
12846    # which start with @ or ?.
12847    lt_cv_sys_global_symbol_pipe="$AWK '"\
12848"     {last_section=section; section=\$ 3};"\
12849"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12850"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12851"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12852"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12853"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12854"     \$ 0!~/External *\|/{next};"\
12855"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12856"     {if(hide[section]) next};"\
12857"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12858"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12859"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12860"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12861"     ' prfx=^$ac_symprfx"
12862  else
12863    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12864  fi
12865  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12866
12867  # Check to see that the pipe works correctly.
12868  pipe_works=no
12869
12870  rm -f conftest*
12871  cat > conftest.$ac_ext <<_LT_EOF
12872#ifdef __cplusplus
12873extern "C" {
12874#endif
12875char nm_test_var;
12876void nm_test_func(void);
12877void nm_test_func(void){}
12878#ifdef __cplusplus
12879}
12880#endif
12881int main(){nm_test_var='a';nm_test_func();return(0);}
12882_LT_EOF
12883
12884  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12885  (eval $ac_compile) 2>&5
12886  ac_status=$?
12887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888  test $ac_status = 0; }; then
12889    # Now try to grab the symbols.
12890    nlist=conftest.nm
12891    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12892  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12893  ac_status=$?
12894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12895  test $ac_status = 0; } && test -s "$nlist"; then
12896      # Try sorting and uniquifying the output.
12897      if sort "$nlist" | uniq > "$nlist"T; then
12898	mv -f "$nlist"T "$nlist"
12899      else
12900	rm -f "$nlist"T
12901      fi
12902
12903      # Make sure that we snagged all the symbols we need.
12904      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12905	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12906	  cat <<_LT_EOF > conftest.$ac_ext
12907/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12908#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12909/* DATA imports from DLLs on WIN32 can't be const, because runtime
12910   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12911# define LT_DLSYM_CONST
12912#elif defined __osf__
12913/* This system does not cope well with relocations in const data.  */
12914# define LT_DLSYM_CONST
12915#else
12916# define LT_DLSYM_CONST const
12917#endif
12918
12919#ifdef __cplusplus
12920extern "C" {
12921#endif
12922
12923_LT_EOF
12924	  # Now generate the symbol file.
12925	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12926
12927	  cat <<_LT_EOF >> conftest.$ac_ext
12928
12929/* The mapping between symbol names and symbols.  */
12930LT_DLSYM_CONST struct {
12931  const char *name;
12932  void       *address;
12933}
12934lt__PROGRAM__LTX_preloaded_symbols[] =
12935{
12936  { "@PROGRAM@", (void *) 0 },
12937_LT_EOF
12938	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12939	  cat <<\_LT_EOF >> conftest.$ac_ext
12940  {0, (void *) 0}
12941};
12942
12943/* This works around a problem in FreeBSD linker */
12944#ifdef FREEBSD_WORKAROUND
12945static const void *lt_preloaded_setup() {
12946  return lt__PROGRAM__LTX_preloaded_symbols;
12947}
12948#endif
12949
12950#ifdef __cplusplus
12951}
12952#endif
12953_LT_EOF
12954	  # Now try linking the two files.
12955	  mv conftest.$ac_objext conftstm.$ac_objext
12956	  lt_globsym_save_LIBS=$LIBS
12957	  lt_globsym_save_CFLAGS=$CFLAGS
12958	  LIBS=conftstm.$ac_objext
12959	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12960	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12961  (eval $ac_link) 2>&5
12962  ac_status=$?
12963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12964  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12965	    pipe_works=yes
12966	  fi
12967	  LIBS=$lt_globsym_save_LIBS
12968	  CFLAGS=$lt_globsym_save_CFLAGS
12969	else
12970	  echo "cannot find nm_test_func in $nlist" >&5
12971	fi
12972      else
12973	echo "cannot find nm_test_var in $nlist" >&5
12974      fi
12975    else
12976      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12977    fi
12978  else
12979    echo "$progname: failed program was:" >&5
12980    cat conftest.$ac_ext >&5
12981  fi
12982  rm -rf conftest* conftst*
12983
12984  # Do not use the global_symbol_pipe unless it works.
12985  if test yes = "$pipe_works"; then
12986    break
12987  else
12988    lt_cv_sys_global_symbol_pipe=
12989  fi
12990done
12991
12992fi
12993
12994if test -z "$lt_cv_sys_global_symbol_pipe"; then
12995  lt_cv_sys_global_symbol_to_cdecl=
12996fi
12997if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12999$as_echo "failed" >&6; }
13000else
13001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13002$as_echo "ok" >&6; }
13003fi
13004
13005# Response file support.
13006if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13007  nm_file_list_spec='@'
13008elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13009  nm_file_list_spec='@'
13010fi
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13049$as_echo_n "checking for sysroot... " >&6; }
13050
13051# Check whether --with-sysroot was given.
13052if test "${with_sysroot+set}" = set; then :
13053  withval=$with_sysroot;
13054else
13055  with_sysroot=no
13056fi
13057
13058
13059lt_sysroot=
13060case $with_sysroot in #(
13061 yes)
13062   if test yes = "$GCC"; then
13063     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13064   fi
13065   ;; #(
13066 /*)
13067   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13068   ;; #(
13069 no|'')
13070   ;; #(
13071 *)
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13073$as_echo "$with_sysroot" >&6; }
13074   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13075   ;;
13076esac
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13079$as_echo "${lt_sysroot:-no}" >&6; }
13080
13081
13082
13083
13084
13085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13086$as_echo_n "checking for a working dd... " >&6; }
13087if ${ac_cv_path_lt_DD+:} false; then :
13088  $as_echo_n "(cached) " >&6
13089else
13090  printf 0123456789abcdef0123456789abcdef >conftest.i
13091cat conftest.i conftest.i >conftest2.i
13092: ${lt_DD:=$DD}
13093if test -z "$lt_DD"; then
13094  ac_path_lt_DD_found=false
13095  # Loop through the user's path and test for each of PROGNAME-LIST
13096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099  IFS=$as_save_IFS
13100  test -z "$as_dir" && as_dir=.
13101    for ac_prog in dd; do
13102    for ac_exec_ext in '' $ac_executable_extensions; do
13103      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13104      as_fn_executable_p "$ac_path_lt_DD" || continue
13105if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13106  cmp -s conftest.i conftest.out \
13107  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13108fi
13109      $ac_path_lt_DD_found && break 3
13110    done
13111  done
13112  done
13113IFS=$as_save_IFS
13114  if test -z "$ac_cv_path_lt_DD"; then
13115    :
13116  fi
13117else
13118  ac_cv_path_lt_DD=$lt_DD
13119fi
13120
13121rm -f conftest.i conftest2.i conftest.out
13122fi
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13124$as_echo "$ac_cv_path_lt_DD" >&6; }
13125
13126
13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13128$as_echo_n "checking how to truncate binary pipes... " >&6; }
13129if ${lt_cv_truncate_bin+:} false; then :
13130  $as_echo_n "(cached) " >&6
13131else
13132  printf 0123456789abcdef0123456789abcdef >conftest.i
13133cat conftest.i conftest.i >conftest2.i
13134lt_cv_truncate_bin=
13135if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13136  cmp -s conftest.i conftest.out \
13137  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13138fi
13139rm -f conftest.i conftest2.i conftest.out
13140test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13141fi
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13143$as_echo "$lt_cv_truncate_bin" >&6; }
13144
13145
13146
13147
13148
13149
13150
13151# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13152func_cc_basename ()
13153{
13154    for cc_temp in $*""; do
13155      case $cc_temp in
13156        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13157        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13158        \-*) ;;
13159        *) break;;
13160      esac
13161    done
13162    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13163}
13164
13165# Check whether --enable-libtool-lock was given.
13166if test "${enable_libtool_lock+set}" = set; then :
13167  enableval=$enable_libtool_lock;
13168fi
13169
13170test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13171
13172# Some flags need to be propagated to the compiler or linker for good
13173# libtool support.
13174case $host in
13175ia64-*-hpux*)
13176  # Find out what ABI is being produced by ac_compile, and set mode
13177  # options accordingly.
13178  echo 'int i;' > conftest.$ac_ext
13179  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13180  (eval $ac_compile) 2>&5
13181  ac_status=$?
13182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183  test $ac_status = 0; }; then
13184    case `/usr/bin/file conftest.$ac_objext` in
13185      *ELF-32*)
13186	HPUX_IA64_MODE=32
13187	;;
13188      *ELF-64*)
13189	HPUX_IA64_MODE=64
13190	;;
13191    esac
13192  fi
13193  rm -rf conftest*
13194  ;;
13195*-*-irix6*)
13196  # Find out what ABI is being produced by ac_compile, and set linker
13197  # options accordingly.
13198  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13199  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13200  (eval $ac_compile) 2>&5
13201  ac_status=$?
13202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13203  test $ac_status = 0; }; then
13204    if test yes = "$lt_cv_prog_gnu_ld"; then
13205      case `/usr/bin/file conftest.$ac_objext` in
13206	*32-bit*)
13207	  LD="${LD-ld} -melf32bsmip"
13208	  ;;
13209	*N32*)
13210	  LD="${LD-ld} -melf32bmipn32"
13211	  ;;
13212	*64-bit*)
13213	  LD="${LD-ld} -melf64bmip"
13214	;;
13215      esac
13216    else
13217      case `/usr/bin/file conftest.$ac_objext` in
13218	*32-bit*)
13219	  LD="${LD-ld} -32"
13220	  ;;
13221	*N32*)
13222	  LD="${LD-ld} -n32"
13223	  ;;
13224	*64-bit*)
13225	  LD="${LD-ld} -64"
13226	  ;;
13227      esac
13228    fi
13229  fi
13230  rm -rf conftest*
13231  ;;
13232
13233mips64*-*linux*)
13234  # Find out what ABI is being produced by ac_compile, and set linker
13235  # options accordingly.
13236  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13237  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13238  (eval $ac_compile) 2>&5
13239  ac_status=$?
13240  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241  test $ac_status = 0; }; then
13242    emul=elf
13243    case `/usr/bin/file conftest.$ac_objext` in
13244      *32-bit*)
13245	emul="${emul}32"
13246	;;
13247      *64-bit*)
13248	emul="${emul}64"
13249	;;
13250    esac
13251    case `/usr/bin/file conftest.$ac_objext` in
13252      *MSB*)
13253	emul="${emul}btsmip"
13254	;;
13255      *LSB*)
13256	emul="${emul}ltsmip"
13257	;;
13258    esac
13259    case `/usr/bin/file conftest.$ac_objext` in
13260      *N32*)
13261	emul="${emul}n32"
13262	;;
13263    esac
13264    LD="${LD-ld} -m $emul"
13265  fi
13266  rm -rf conftest*
13267  ;;
13268
13269x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13270s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13271  # Find out what ABI is being produced by ac_compile, and set linker
13272  # options accordingly.  Note that the listed cases only cover the
13273  # situations where additional linker options are needed (such as when
13274  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13275  # vice versa); the common cases where no linker options are needed do
13276  # not appear in the list.
13277  echo 'int i;' > conftest.$ac_ext
13278  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13279  (eval $ac_compile) 2>&5
13280  ac_status=$?
13281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13282  test $ac_status = 0; }; then
13283    case `/usr/bin/file conftest.o` in
13284      *32-bit*)
13285	case $host in
13286	  x86_64-*kfreebsd*-gnu)
13287	    LD="${LD-ld} -m elf_i386_fbsd"
13288	    ;;
13289	  x86_64-*linux*)
13290	    case `/usr/bin/file conftest.o` in
13291	      *x86-64*)
13292		LD="${LD-ld} -m elf32_x86_64"
13293		;;
13294	      *)
13295		LD="${LD-ld} -m elf_i386"
13296		;;
13297	    esac
13298	    ;;
13299	  powerpc64le-*linux*)
13300	    LD="${LD-ld} -m elf32lppclinux"
13301	    ;;
13302	  powerpc64-*linux*)
13303	    LD="${LD-ld} -m elf32ppclinux"
13304	    ;;
13305	  s390x-*linux*)
13306	    LD="${LD-ld} -m elf_s390"
13307	    ;;
13308	  sparc64-*linux*)
13309	    LD="${LD-ld} -m elf32_sparc"
13310	    ;;
13311	esac
13312	;;
13313      *64-bit*)
13314	case $host in
13315	  x86_64-*kfreebsd*-gnu)
13316	    LD="${LD-ld} -m elf_x86_64_fbsd"
13317	    ;;
13318	  x86_64-*linux*)
13319	    LD="${LD-ld} -m elf_x86_64"
13320	    ;;
13321	  powerpcle-*linux*)
13322	    LD="${LD-ld} -m elf64lppc"
13323	    ;;
13324	  powerpc-*linux*)
13325	    LD="${LD-ld} -m elf64ppc"
13326	    ;;
13327	  s390*-*linux*|s390*-*tpf*)
13328	    LD="${LD-ld} -m elf64_s390"
13329	    ;;
13330	  sparc*-*linux*)
13331	    LD="${LD-ld} -m elf64_sparc"
13332	    ;;
13333	esac
13334	;;
13335    esac
13336  fi
13337  rm -rf conftest*
13338  ;;
13339
13340*-*-sco3.2v5*)
13341  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13342  SAVE_CFLAGS=$CFLAGS
13343  CFLAGS="$CFLAGS -belf"
13344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13345$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13346if ${lt_cv_cc_needs_belf+:} false; then :
13347  $as_echo_n "(cached) " >&6
13348else
13349  ac_ext=c
13350ac_cpp='$CPP $CPPFLAGS'
13351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13353ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354
13355     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h.  */
13357
13358int
13359main ()
13360{
13361
13362  ;
13363  return 0;
13364}
13365_ACEOF
13366if ac_fn_c_try_link "$LINENO"; then :
13367  lt_cv_cc_needs_belf=yes
13368else
13369  lt_cv_cc_needs_belf=no
13370fi
13371rm -f core conftest.err conftest.$ac_objext \
13372    conftest$ac_exeext conftest.$ac_ext
13373     ac_ext=c
13374ac_cpp='$CPP $CPPFLAGS'
13375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13377ac_compiler_gnu=$ac_cv_c_compiler_gnu
13378
13379fi
13380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13381$as_echo "$lt_cv_cc_needs_belf" >&6; }
13382  if test yes != "$lt_cv_cc_needs_belf"; then
13383    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13384    CFLAGS=$SAVE_CFLAGS
13385  fi
13386  ;;
13387*-*solaris*)
13388  # Find out what ABI is being produced by ac_compile, and set linker
13389  # options accordingly.
13390  echo 'int i;' > conftest.$ac_ext
13391  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13392  (eval $ac_compile) 2>&5
13393  ac_status=$?
13394  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13395  test $ac_status = 0; }; then
13396    case `/usr/bin/file conftest.o` in
13397    *64-bit*)
13398      case $lt_cv_prog_gnu_ld in
13399      yes*)
13400        case $host in
13401        i?86-*-solaris*|x86_64-*-solaris*)
13402          LD="${LD-ld} -m elf_x86_64"
13403          ;;
13404        sparc*-*-solaris*)
13405          LD="${LD-ld} -m elf64_sparc"
13406          ;;
13407        esac
13408        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13409        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13410          LD=${LD-ld}_sol2
13411        fi
13412        ;;
13413      *)
13414	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13415	  LD="${LD-ld} -64"
13416	fi
13417	;;
13418      esac
13419      ;;
13420    esac
13421  fi
13422  rm -rf conftest*
13423  ;;
13424esac
13425
13426need_locks=$enable_libtool_lock
13427
13428if test -n "$ac_tool_prefix"; then
13429  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13430set dummy ${ac_tool_prefix}mt; ac_word=$2
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13432$as_echo_n "checking for $ac_word... " >&6; }
13433if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13434  $as_echo_n "(cached) " >&6
13435else
13436  if test -n "$MANIFEST_TOOL"; then
13437  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13438else
13439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440for as_dir in $PATH
13441do
13442  IFS=$as_save_IFS
13443  test -z "$as_dir" && as_dir=.
13444    for ac_exec_ext in '' $ac_executable_extensions; do
13445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13448    break 2
13449  fi
13450done
13451  done
13452IFS=$as_save_IFS
13453
13454fi
13455fi
13456MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13457if test -n "$MANIFEST_TOOL"; then
13458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13459$as_echo "$MANIFEST_TOOL" >&6; }
13460else
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13462$as_echo "no" >&6; }
13463fi
13464
13465
13466fi
13467if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13468  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13469  # Extract the first word of "mt", so it can be a program name with args.
13470set dummy mt; ac_word=$2
13471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13472$as_echo_n "checking for $ac_word... " >&6; }
13473if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13474  $as_echo_n "(cached) " >&6
13475else
13476  if test -n "$ac_ct_MANIFEST_TOOL"; then
13477  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13478else
13479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480for as_dir in $PATH
13481do
13482  IFS=$as_save_IFS
13483  test -z "$as_dir" && as_dir=.
13484    for ac_exec_ext in '' $ac_executable_extensions; do
13485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13488    break 2
13489  fi
13490done
13491  done
13492IFS=$as_save_IFS
13493
13494fi
13495fi
13496ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13497if test -n "$ac_ct_MANIFEST_TOOL"; then
13498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13499$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13500else
13501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13502$as_echo "no" >&6; }
13503fi
13504
13505  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13506    MANIFEST_TOOL=":"
13507  else
13508    case $cross_compiling:$ac_tool_warned in
13509yes:)
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13512ac_tool_warned=yes ;;
13513esac
13514    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13515  fi
13516else
13517  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13518fi
13519
13520test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13522$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13523if ${lt_cv_path_mainfest_tool+:} false; then :
13524  $as_echo_n "(cached) " >&6
13525else
13526  lt_cv_path_mainfest_tool=no
13527  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13528  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13529  cat conftest.err >&5
13530  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13531    lt_cv_path_mainfest_tool=yes
13532  fi
13533  rm -f conftest*
13534fi
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13536$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13537if test yes != "$lt_cv_path_mainfest_tool"; then
13538  MANIFEST_TOOL=:
13539fi
13540
13541
13542
13543
13544
13545
13546  case $host_os in
13547    rhapsody* | darwin*)
13548    if test -n "$ac_tool_prefix"; then
13549  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13550set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13552$as_echo_n "checking for $ac_word... " >&6; }
13553if ${ac_cv_prog_DSYMUTIL+:} false; then :
13554  $as_echo_n "(cached) " >&6
13555else
13556  if test -n "$DSYMUTIL"; then
13557  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13558else
13559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560for as_dir in $PATH
13561do
13562  IFS=$as_save_IFS
13563  test -z "$as_dir" && as_dir=.
13564    for ac_exec_ext in '' $ac_executable_extensions; do
13565  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13566    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13568    break 2
13569  fi
13570done
13571  done
13572IFS=$as_save_IFS
13573
13574fi
13575fi
13576DSYMUTIL=$ac_cv_prog_DSYMUTIL
13577if test -n "$DSYMUTIL"; then
13578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13579$as_echo "$DSYMUTIL" >&6; }
13580else
13581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13582$as_echo "no" >&6; }
13583fi
13584
13585
13586fi
13587if test -z "$ac_cv_prog_DSYMUTIL"; then
13588  ac_ct_DSYMUTIL=$DSYMUTIL
13589  # Extract the first word of "dsymutil", so it can be a program name with args.
13590set dummy dsymutil; ac_word=$2
13591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13592$as_echo_n "checking for $ac_word... " >&6; }
13593if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13594  $as_echo_n "(cached) " >&6
13595else
13596  if test -n "$ac_ct_DSYMUTIL"; then
13597  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13598else
13599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600for as_dir in $PATH
13601do
13602  IFS=$as_save_IFS
13603  test -z "$as_dir" && as_dir=.
13604    for ac_exec_ext in '' $ac_executable_extensions; do
13605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13606    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13608    break 2
13609  fi
13610done
13611  done
13612IFS=$as_save_IFS
13613
13614fi
13615fi
13616ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13617if test -n "$ac_ct_DSYMUTIL"; then
13618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13619$as_echo "$ac_ct_DSYMUTIL" >&6; }
13620else
13621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622$as_echo "no" >&6; }
13623fi
13624
13625  if test "x$ac_ct_DSYMUTIL" = x; then
13626    DSYMUTIL=":"
13627  else
13628    case $cross_compiling:$ac_tool_warned in
13629yes:)
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13632ac_tool_warned=yes ;;
13633esac
13634    DSYMUTIL=$ac_ct_DSYMUTIL
13635  fi
13636else
13637  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13638fi
13639
13640    if test -n "$ac_tool_prefix"; then
13641  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13642set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644$as_echo_n "checking for $ac_word... " >&6; }
13645if ${ac_cv_prog_NMEDIT+:} false; then :
13646  $as_echo_n "(cached) " >&6
13647else
13648  if test -n "$NMEDIT"; then
13649  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13650else
13651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652for as_dir in $PATH
13653do
13654  IFS=$as_save_IFS
13655  test -z "$as_dir" && as_dir=.
13656    for ac_exec_ext in '' $ac_executable_extensions; do
13657  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13659    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13660    break 2
13661  fi
13662done
13663  done
13664IFS=$as_save_IFS
13665
13666fi
13667fi
13668NMEDIT=$ac_cv_prog_NMEDIT
13669if test -n "$NMEDIT"; then
13670  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13671$as_echo "$NMEDIT" >&6; }
13672else
13673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13674$as_echo "no" >&6; }
13675fi
13676
13677
13678fi
13679if test -z "$ac_cv_prog_NMEDIT"; then
13680  ac_ct_NMEDIT=$NMEDIT
13681  # Extract the first word of "nmedit", so it can be a program name with args.
13682set dummy nmedit; ac_word=$2
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13684$as_echo_n "checking for $ac_word... " >&6; }
13685if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13686  $as_echo_n "(cached) " >&6
13687else
13688  if test -n "$ac_ct_NMEDIT"; then
13689  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13690else
13691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13692for as_dir in $PATH
13693do
13694  IFS=$as_save_IFS
13695  test -z "$as_dir" && as_dir=.
13696    for ac_exec_ext in '' $ac_executable_extensions; do
13697  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13698    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13699    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700    break 2
13701  fi
13702done
13703  done
13704IFS=$as_save_IFS
13705
13706fi
13707fi
13708ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13709if test -n "$ac_ct_NMEDIT"; then
13710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13711$as_echo "$ac_ct_NMEDIT" >&6; }
13712else
13713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714$as_echo "no" >&6; }
13715fi
13716
13717  if test "x$ac_ct_NMEDIT" = x; then
13718    NMEDIT=":"
13719  else
13720    case $cross_compiling:$ac_tool_warned in
13721yes:)
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13724ac_tool_warned=yes ;;
13725esac
13726    NMEDIT=$ac_ct_NMEDIT
13727  fi
13728else
13729  NMEDIT="$ac_cv_prog_NMEDIT"
13730fi
13731
13732    if test -n "$ac_tool_prefix"; then
13733  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13734set dummy ${ac_tool_prefix}lipo; ac_word=$2
13735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13736$as_echo_n "checking for $ac_word... " >&6; }
13737if ${ac_cv_prog_LIPO+:} false; then :
13738  $as_echo_n "(cached) " >&6
13739else
13740  if test -n "$LIPO"; then
13741  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13742else
13743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13744for as_dir in $PATH
13745do
13746  IFS=$as_save_IFS
13747  test -z "$as_dir" && as_dir=.
13748    for ac_exec_ext in '' $ac_executable_extensions; do
13749  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13750    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13751    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13752    break 2
13753  fi
13754done
13755  done
13756IFS=$as_save_IFS
13757
13758fi
13759fi
13760LIPO=$ac_cv_prog_LIPO
13761if test -n "$LIPO"; then
13762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13763$as_echo "$LIPO" >&6; }
13764else
13765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766$as_echo "no" >&6; }
13767fi
13768
13769
13770fi
13771if test -z "$ac_cv_prog_LIPO"; then
13772  ac_ct_LIPO=$LIPO
13773  # Extract the first word of "lipo", so it can be a program name with args.
13774set dummy lipo; ac_word=$2
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13776$as_echo_n "checking for $ac_word... " >&6; }
13777if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13778  $as_echo_n "(cached) " >&6
13779else
13780  if test -n "$ac_ct_LIPO"; then
13781  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13782else
13783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784for as_dir in $PATH
13785do
13786  IFS=$as_save_IFS
13787  test -z "$as_dir" && as_dir=.
13788    for ac_exec_ext in '' $ac_executable_extensions; do
13789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13790    ac_cv_prog_ac_ct_LIPO="lipo"
13791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13792    break 2
13793  fi
13794done
13795  done
13796IFS=$as_save_IFS
13797
13798fi
13799fi
13800ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13801if test -n "$ac_ct_LIPO"; then
13802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13803$as_echo "$ac_ct_LIPO" >&6; }
13804else
13805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806$as_echo "no" >&6; }
13807fi
13808
13809  if test "x$ac_ct_LIPO" = x; then
13810    LIPO=":"
13811  else
13812    case $cross_compiling:$ac_tool_warned in
13813yes:)
13814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13816ac_tool_warned=yes ;;
13817esac
13818    LIPO=$ac_ct_LIPO
13819  fi
13820else
13821  LIPO="$ac_cv_prog_LIPO"
13822fi
13823
13824    if test -n "$ac_tool_prefix"; then
13825  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13826set dummy ${ac_tool_prefix}otool; ac_word=$2
13827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828$as_echo_n "checking for $ac_word... " >&6; }
13829if ${ac_cv_prog_OTOOL+:} false; then :
13830  $as_echo_n "(cached) " >&6
13831else
13832  if test -n "$OTOOL"; then
13833  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13834else
13835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13836for as_dir in $PATH
13837do
13838  IFS=$as_save_IFS
13839  test -z "$as_dir" && as_dir=.
13840    for ac_exec_ext in '' $ac_executable_extensions; do
13841  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13842    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13843    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13844    break 2
13845  fi
13846done
13847  done
13848IFS=$as_save_IFS
13849
13850fi
13851fi
13852OTOOL=$ac_cv_prog_OTOOL
13853if test -n "$OTOOL"; then
13854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13855$as_echo "$OTOOL" >&6; }
13856else
13857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858$as_echo "no" >&6; }
13859fi
13860
13861
13862fi
13863if test -z "$ac_cv_prog_OTOOL"; then
13864  ac_ct_OTOOL=$OTOOL
13865  # Extract the first word of "otool", so it can be a program name with args.
13866set dummy otool; ac_word=$2
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13868$as_echo_n "checking for $ac_word... " >&6; }
13869if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13870  $as_echo_n "(cached) " >&6
13871else
13872  if test -n "$ac_ct_OTOOL"; then
13873  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13874else
13875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876for as_dir in $PATH
13877do
13878  IFS=$as_save_IFS
13879  test -z "$as_dir" && as_dir=.
13880    for ac_exec_ext in '' $ac_executable_extensions; do
13881  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13882    ac_cv_prog_ac_ct_OTOOL="otool"
13883    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13884    break 2
13885  fi
13886done
13887  done
13888IFS=$as_save_IFS
13889
13890fi
13891fi
13892ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13893if test -n "$ac_ct_OTOOL"; then
13894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13895$as_echo "$ac_ct_OTOOL" >&6; }
13896else
13897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13898$as_echo "no" >&6; }
13899fi
13900
13901  if test "x$ac_ct_OTOOL" = x; then
13902    OTOOL=":"
13903  else
13904    case $cross_compiling:$ac_tool_warned in
13905yes:)
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13907$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13908ac_tool_warned=yes ;;
13909esac
13910    OTOOL=$ac_ct_OTOOL
13911  fi
13912else
13913  OTOOL="$ac_cv_prog_OTOOL"
13914fi
13915
13916    if test -n "$ac_tool_prefix"; then
13917  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13918set dummy ${ac_tool_prefix}otool64; ac_word=$2
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13920$as_echo_n "checking for $ac_word... " >&6; }
13921if ${ac_cv_prog_OTOOL64+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  if test -n "$OTOOL64"; then
13925  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13926else
13927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928for as_dir in $PATH
13929do
13930  IFS=$as_save_IFS
13931  test -z "$as_dir" && as_dir=.
13932    for ac_exec_ext in '' $ac_executable_extensions; do
13933  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13936    break 2
13937  fi
13938done
13939  done
13940IFS=$as_save_IFS
13941
13942fi
13943fi
13944OTOOL64=$ac_cv_prog_OTOOL64
13945if test -n "$OTOOL64"; then
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13947$as_echo "$OTOOL64" >&6; }
13948else
13949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13950$as_echo "no" >&6; }
13951fi
13952
13953
13954fi
13955if test -z "$ac_cv_prog_OTOOL64"; then
13956  ac_ct_OTOOL64=$OTOOL64
13957  # Extract the first word of "otool64", so it can be a program name with args.
13958set dummy otool64; ac_word=$2
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13960$as_echo_n "checking for $ac_word... " >&6; }
13961if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13962  $as_echo_n "(cached) " >&6
13963else
13964  if test -n "$ac_ct_OTOOL64"; then
13965  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13966else
13967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13968for as_dir in $PATH
13969do
13970  IFS=$as_save_IFS
13971  test -z "$as_dir" && as_dir=.
13972    for ac_exec_ext in '' $ac_executable_extensions; do
13973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13974    ac_cv_prog_ac_ct_OTOOL64="otool64"
13975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13976    break 2
13977  fi
13978done
13979  done
13980IFS=$as_save_IFS
13981
13982fi
13983fi
13984ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13985if test -n "$ac_ct_OTOOL64"; then
13986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13987$as_echo "$ac_ct_OTOOL64" >&6; }
13988else
13989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13990$as_echo "no" >&6; }
13991fi
13992
13993  if test "x$ac_ct_OTOOL64" = x; then
13994    OTOOL64=":"
13995  else
13996    case $cross_compiling:$ac_tool_warned in
13997yes:)
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14000ac_tool_warned=yes ;;
14001esac
14002    OTOOL64=$ac_ct_OTOOL64
14003  fi
14004else
14005  OTOOL64="$ac_cv_prog_OTOOL64"
14006fi
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14035$as_echo_n "checking for -single_module linker flag... " >&6; }
14036if ${lt_cv_apple_cc_single_mod+:} false; then :
14037  $as_echo_n "(cached) " >&6
14038else
14039  lt_cv_apple_cc_single_mod=no
14040      if test -z "$LT_MULTI_MODULE"; then
14041	# By default we will add the -single_module flag. You can override
14042	# by either setting the environment variable LT_MULTI_MODULE
14043	# non-empty at configure time, or by adding -multi_module to the
14044	# link flags.
14045	rm -rf libconftest.dylib*
14046	echo "int foo(void){return 1;}" > conftest.c
14047	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14048-dynamiclib -Wl,-single_module conftest.c" >&5
14049	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14050	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14051        _lt_result=$?
14052	# If there is a non-empty error log, and "single_module"
14053	# appears in it, assume the flag caused a linker warning
14054        if test -s conftest.err && $GREP single_module conftest.err; then
14055	  cat conftest.err >&5
14056	# Otherwise, if the output was created with a 0 exit code from
14057	# the compiler, it worked.
14058	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14059	  lt_cv_apple_cc_single_mod=yes
14060	else
14061	  cat conftest.err >&5
14062	fi
14063	rm -rf libconftest.dylib*
14064	rm -f conftest.*
14065      fi
14066fi
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14068$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14069
14070    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14071$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14072if ${lt_cv_ld_exported_symbols_list+:} false; then :
14073  $as_echo_n "(cached) " >&6
14074else
14075  lt_cv_ld_exported_symbols_list=no
14076      save_LDFLAGS=$LDFLAGS
14077      echo "_main" > conftest.sym
14078      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14079      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h.  */
14081
14082int
14083main ()
14084{
14085
14086  ;
14087  return 0;
14088}
14089_ACEOF
14090if ac_fn_c_try_link "$LINENO"; then :
14091  lt_cv_ld_exported_symbols_list=yes
14092else
14093  lt_cv_ld_exported_symbols_list=no
14094fi
14095rm -f core conftest.err conftest.$ac_objext \
14096    conftest$ac_exeext conftest.$ac_ext
14097	LDFLAGS=$save_LDFLAGS
14098
14099fi
14100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14101$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14102
14103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14104$as_echo_n "checking for -force_load linker flag... " >&6; }
14105if ${lt_cv_ld_force_load+:} false; then :
14106  $as_echo_n "(cached) " >&6
14107else
14108  lt_cv_ld_force_load=no
14109      cat > conftest.c << _LT_EOF
14110int forced_loaded() { return 2;}
14111_LT_EOF
14112      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14113      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14114      echo "$AR cru libconftest.a conftest.o" >&5
14115      $AR cru libconftest.a conftest.o 2>&5
14116      echo "$RANLIB libconftest.a" >&5
14117      $RANLIB libconftest.a 2>&5
14118      cat > conftest.c << _LT_EOF
14119int main() { return 0;}
14120_LT_EOF
14121      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14122      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14123      _lt_result=$?
14124      if test -s conftest.err && $GREP force_load conftest.err; then
14125	cat conftest.err >&5
14126      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14127	lt_cv_ld_force_load=yes
14128      else
14129	cat conftest.err >&5
14130      fi
14131        rm -f conftest.err libconftest.a conftest conftest.c
14132        rm -rf conftest.dSYM
14133
14134fi
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14136$as_echo "$lt_cv_ld_force_load" >&6; }
14137    case $host_os in
14138    rhapsody* | darwin1.[012])
14139      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14140    darwin1.*)
14141      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14142    darwin*) # darwin 5.x on
14143      # if running on 10.5 or later, the deployment target defaults
14144      # to the OS version, if on x86, and 10.4, the deployment
14145      # target defaults to 10.4. Don't you love it?
14146      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14147	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14148	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14149	10.[012][,.]*)
14150	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14151	10.*)
14152	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14153      esac
14154    ;;
14155  esac
14156    if test yes = "$lt_cv_apple_cc_single_mod"; then
14157      _lt_dar_single_mod='$single_module'
14158    fi
14159    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14160      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14161    else
14162      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14163    fi
14164    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14165      _lt_dsymutil='~$DSYMUTIL $lib || :'
14166    else
14167      _lt_dsymutil=
14168    fi
14169    ;;
14170  esac
14171
14172# func_munge_path_list VARIABLE PATH
14173# -----------------------------------
14174# VARIABLE is name of variable containing _space_ separated list of
14175# directories to be munged by the contents of PATH, which is string
14176# having a format:
14177# "DIR[:DIR]:"
14178#       string "DIR[ DIR]" will be prepended to VARIABLE
14179# ":DIR[:DIR]"
14180#       string "DIR[ DIR]" will be appended to VARIABLE
14181# "DIRP[:DIRP]::[DIRA:]DIRA"
14182#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14183#       "DIRA[ DIRA]" will be appended to VARIABLE
14184# "DIR[:DIR]"
14185#       VARIABLE will be replaced by "DIR[ DIR]"
14186func_munge_path_list ()
14187{
14188    case x$2 in
14189    x)
14190        ;;
14191    *:)
14192        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14193        ;;
14194    x:*)
14195        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14196        ;;
14197    *::*)
14198        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14199        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14200        ;;
14201    *)
14202        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14203        ;;
14204    esac
14205}
14206
14207for ac_header in dlfcn.h
14208do :
14209  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14210"
14211if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14212  cat >>confdefs.h <<_ACEOF
14213#define HAVE_DLFCN_H 1
14214_ACEOF
14215
14216fi
14217
14218done
14219
14220
14221
14222
14223
14224# Set options
14225
14226
14227
14228        enable_dlopen=no
14229
14230
14231  enable_win32_dll=no
14232
14233
14234            # Check whether --enable-shared was given.
14235if test "${enable_shared+set}" = set; then :
14236  enableval=$enable_shared; p=${PACKAGE-default}
14237    case $enableval in
14238    yes) enable_shared=yes ;;
14239    no) enable_shared=no ;;
14240    *)
14241      enable_shared=no
14242      # Look at the argument we got.  We use all the common list separators.
14243      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14244      for pkg in $enableval; do
14245	IFS=$lt_save_ifs
14246	if test "X$pkg" = "X$p"; then
14247	  enable_shared=yes
14248	fi
14249      done
14250      IFS=$lt_save_ifs
14251      ;;
14252    esac
14253else
14254  enable_shared=yes
14255fi
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267# Check whether --with-pic was given.
14268if test "${with_pic+set}" = set; then :
14269  withval=$with_pic; lt_p=${PACKAGE-default}
14270    case $withval in
14271    yes|no) pic_mode=$withval ;;
14272    *)
14273      pic_mode=default
14274      # Look at the argument we got.  We use all the common list separators.
14275      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14276      for lt_pkg in $withval; do
14277	IFS=$lt_save_ifs
14278	if test "X$lt_pkg" = "X$lt_p"; then
14279	  pic_mode=yes
14280	fi
14281      done
14282      IFS=$lt_save_ifs
14283      ;;
14284    esac
14285else
14286  pic_mode=default
14287fi
14288
14289
14290
14291
14292
14293
14294
14295
14296  # Check whether --enable-fast-install was given.
14297if test "${enable_fast_install+set}" = set; then :
14298  enableval=$enable_fast_install; p=${PACKAGE-default}
14299    case $enableval in
14300    yes) enable_fast_install=yes ;;
14301    no) enable_fast_install=no ;;
14302    *)
14303      enable_fast_install=no
14304      # Look at the argument we got.  We use all the common list separators.
14305      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14306      for pkg in $enableval; do
14307	IFS=$lt_save_ifs
14308	if test "X$pkg" = "X$p"; then
14309	  enable_fast_install=yes
14310	fi
14311      done
14312      IFS=$lt_save_ifs
14313      ;;
14314    esac
14315else
14316  enable_fast_install=yes
14317fi
14318
14319
14320
14321
14322
14323
14324
14325
14326  shared_archive_member_spec=
14327case $host,$enable_shared in
14328power*-*-aix[5-9]*,yes)
14329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14330$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14331
14332# Check whether --with-aix-soname was given.
14333if test "${with_aix_soname+set}" = set; then :
14334  withval=$with_aix_soname; case $withval in
14335    aix|svr4|both)
14336      ;;
14337    *)
14338      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14339      ;;
14340    esac
14341    lt_cv_with_aix_soname=$with_aix_soname
14342else
14343  if ${lt_cv_with_aix_soname+:} false; then :
14344  $as_echo_n "(cached) " >&6
14345else
14346  lt_cv_with_aix_soname=aix
14347fi
14348
14349    with_aix_soname=$lt_cv_with_aix_soname
14350fi
14351
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14353$as_echo "$with_aix_soname" >&6; }
14354  if test aix != "$with_aix_soname"; then
14355    # For the AIX way of multilib, we name the shared archive member
14356    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14357    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14358    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14359    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14360    if test 64 = "${OBJECT_MODE-32}"; then
14361      shared_archive_member_spec=shr_64
14362    else
14363      shared_archive_member_spec=shr
14364    fi
14365  fi
14366  ;;
14367*)
14368  with_aix_soname=aix
14369  ;;
14370esac
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381# This can be used to rebuild libtool when needed
14382LIBTOOL_DEPS=$ltmain
14383
14384# Always use our own libtool.
14385LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416test -z "$LN_S" && LN_S="ln -s"
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431if test -n "${ZSH_VERSION+set}"; then
14432   setopt NO_GLOB_SUBST
14433fi
14434
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14436$as_echo_n "checking for objdir... " >&6; }
14437if ${lt_cv_objdir+:} false; then :
14438  $as_echo_n "(cached) " >&6
14439else
14440  rm -f .libs 2>/dev/null
14441mkdir .libs 2>/dev/null
14442if test -d .libs; then
14443  lt_cv_objdir=.libs
14444else
14445  # MS-DOS does not allow filenames that begin with a dot.
14446  lt_cv_objdir=_libs
14447fi
14448rmdir .libs 2>/dev/null
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14451$as_echo "$lt_cv_objdir" >&6; }
14452objdir=$lt_cv_objdir
14453
14454
14455
14456
14457
14458cat >>confdefs.h <<_ACEOF
14459#define LT_OBJDIR "$lt_cv_objdir/"
14460_ACEOF
14461
14462
14463
14464
14465case $host_os in
14466aix3*)
14467  # AIX sometimes has problems with the GCC collect2 program.  For some
14468  # reason, if we set the COLLECT_NAMES environment variable, the problems
14469  # vanish in a puff of smoke.
14470  if test set != "${COLLECT_NAMES+set}"; then
14471    COLLECT_NAMES=
14472    export COLLECT_NAMES
14473  fi
14474  ;;
14475esac
14476
14477# Global variables:
14478ofile=libtool
14479can_build_shared=yes
14480
14481# All known linkers require a '.a' archive for static linking (except MSVC,
14482# which needs '.lib').
14483libext=a
14484
14485with_gnu_ld=$lt_cv_prog_gnu_ld
14486
14487old_CC=$CC
14488old_CFLAGS=$CFLAGS
14489
14490# Set sane defaults for various variables
14491test -z "$CC" && CC=cc
14492test -z "$LTCC" && LTCC=$CC
14493test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14494test -z "$LD" && LD=ld
14495test -z "$ac_objext" && ac_objext=o
14496
14497func_cc_basename $compiler
14498cc_basename=$func_cc_basename_result
14499
14500
14501# Only perform the check for file, if the check method requires it
14502test -z "$MAGIC_CMD" && MAGIC_CMD=file
14503case $deplibs_check_method in
14504file_magic*)
14505  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14507$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14508if ${lt_cv_path_MAGIC_CMD+:} false; then :
14509  $as_echo_n "(cached) " >&6
14510else
14511  case $MAGIC_CMD in
14512[\\/*] |  ?:[\\/]*)
14513  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14514  ;;
14515*)
14516  lt_save_MAGIC_CMD=$MAGIC_CMD
14517  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14518  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14519  for ac_dir in $ac_dummy; do
14520    IFS=$lt_save_ifs
14521    test -z "$ac_dir" && ac_dir=.
14522    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14523      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14524      if test -n "$file_magic_test_file"; then
14525	case $deplibs_check_method in
14526	"file_magic "*)
14527	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14528	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14529	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14530	    $EGREP "$file_magic_regex" > /dev/null; then
14531	    :
14532	  else
14533	    cat <<_LT_EOF 1>&2
14534
14535*** Warning: the command libtool uses to detect shared libraries,
14536*** $file_magic_cmd, produces output that libtool cannot recognize.
14537*** The result is that libtool may fail to recognize shared libraries
14538*** as such.  This will affect the creation of libtool libraries that
14539*** depend on shared libraries, but programs linked with such libtool
14540*** libraries will work regardless of this problem.  Nevertheless, you
14541*** may want to report the problem to your system manager and/or to
14542*** bug-libtool@gnu.org
14543
14544_LT_EOF
14545	  fi ;;
14546	esac
14547      fi
14548      break
14549    fi
14550  done
14551  IFS=$lt_save_ifs
14552  MAGIC_CMD=$lt_save_MAGIC_CMD
14553  ;;
14554esac
14555fi
14556
14557MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14558if test -n "$MAGIC_CMD"; then
14559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14560$as_echo "$MAGIC_CMD" >&6; }
14561else
14562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563$as_echo "no" >&6; }
14564fi
14565
14566
14567
14568
14569
14570if test -z "$lt_cv_path_MAGIC_CMD"; then
14571  if test -n "$ac_tool_prefix"; then
14572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14573$as_echo_n "checking for file... " >&6; }
14574if ${lt_cv_path_MAGIC_CMD+:} false; then :
14575  $as_echo_n "(cached) " >&6
14576else
14577  case $MAGIC_CMD in
14578[\\/*] |  ?:[\\/]*)
14579  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14580  ;;
14581*)
14582  lt_save_MAGIC_CMD=$MAGIC_CMD
14583  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14584  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14585  for ac_dir in $ac_dummy; do
14586    IFS=$lt_save_ifs
14587    test -z "$ac_dir" && ac_dir=.
14588    if test -f "$ac_dir/file"; then
14589      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14590      if test -n "$file_magic_test_file"; then
14591	case $deplibs_check_method in
14592	"file_magic "*)
14593	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14594	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14595	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14596	    $EGREP "$file_magic_regex" > /dev/null; then
14597	    :
14598	  else
14599	    cat <<_LT_EOF 1>&2
14600
14601*** Warning: the command libtool uses to detect shared libraries,
14602*** $file_magic_cmd, produces output that libtool cannot recognize.
14603*** The result is that libtool may fail to recognize shared libraries
14604*** as such.  This will affect the creation of libtool libraries that
14605*** depend on shared libraries, but programs linked with such libtool
14606*** libraries will work regardless of this problem.  Nevertheless, you
14607*** may want to report the problem to your system manager and/or to
14608*** bug-libtool@gnu.org
14609
14610_LT_EOF
14611	  fi ;;
14612	esac
14613      fi
14614      break
14615    fi
14616  done
14617  IFS=$lt_save_ifs
14618  MAGIC_CMD=$lt_save_MAGIC_CMD
14619  ;;
14620esac
14621fi
14622
14623MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14624if test -n "$MAGIC_CMD"; then
14625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14626$as_echo "$MAGIC_CMD" >&6; }
14627else
14628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14629$as_echo "no" >&6; }
14630fi
14631
14632
14633  else
14634    MAGIC_CMD=:
14635  fi
14636fi
14637
14638  fi
14639  ;;
14640esac
14641
14642# Use C for the default configuration in the libtool script
14643
14644lt_save_CC=$CC
14645ac_ext=c
14646ac_cpp='$CPP $CPPFLAGS'
14647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14649ac_compiler_gnu=$ac_cv_c_compiler_gnu
14650
14651
14652# Source file extension for C test sources.
14653ac_ext=c
14654
14655# Object file extension for compiled C test sources.
14656objext=o
14657objext=$objext
14658
14659# Code to be used in simple compile tests
14660lt_simple_compile_test_code="int some_variable = 0;"
14661
14662# Code to be used in simple link tests
14663lt_simple_link_test_code='int main(){return(0);}'
14664
14665
14666
14667
14668
14669
14670
14671# If no C compiler was specified, use CC.
14672LTCC=${LTCC-"$CC"}
14673
14674# If no C compiler flags were specified, use CFLAGS.
14675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14676
14677# Allow CC to be a program name with arguments.
14678compiler=$CC
14679
14680# Save the default compiler, since it gets overwritten when the other
14681# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14682compiler_DEFAULT=$CC
14683
14684# save warnings/boilerplate of simple test code
14685ac_outfile=conftest.$ac_objext
14686echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14687eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14688_lt_compiler_boilerplate=`cat conftest.err`
14689$RM conftest*
14690
14691ac_outfile=conftest.$ac_objext
14692echo "$lt_simple_link_test_code" >conftest.$ac_ext
14693eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14694_lt_linker_boilerplate=`cat conftest.err`
14695$RM -r conftest*
14696
14697
14698if test -n "$compiler"; then
14699
14700lt_prog_compiler_no_builtin_flag=
14701
14702if test yes = "$GCC"; then
14703  case $cc_basename in
14704  nvcc*)
14705    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14706  *)
14707    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14708  esac
14709
14710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14711$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14712if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14713  $as_echo_n "(cached) " >&6
14714else
14715  lt_cv_prog_compiler_rtti_exceptions=no
14716   ac_outfile=conftest.$ac_objext
14717   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14718   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14719   # Insert the option either (1) after the last *FLAGS variable, or
14720   # (2) before a word containing "conftest.", or (3) at the end.
14721   # Note that $ac_compile itself does not contain backslashes and begins
14722   # with a dollar sign (not a hyphen), so the echo should work correctly.
14723   # The option is referenced via a variable to avoid confusing sed.
14724   lt_compile=`echo "$ac_compile" | $SED \
14725   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14726   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14727   -e 's:$: $lt_compiler_flag:'`
14728   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14729   (eval "$lt_compile" 2>conftest.err)
14730   ac_status=$?
14731   cat conftest.err >&5
14732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   if (exit $ac_status) && test -s "$ac_outfile"; then
14734     # The compiler can only warn and ignore the option if not recognized
14735     # So say no if there are warnings other than the usual output.
14736     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14737     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14738     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14739       lt_cv_prog_compiler_rtti_exceptions=yes
14740     fi
14741   fi
14742   $RM conftest*
14743
14744fi
14745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14746$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14747
14748if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14749    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14750else
14751    :
14752fi
14753
14754fi
14755
14756
14757
14758
14759
14760
14761  lt_prog_compiler_wl=
14762lt_prog_compiler_pic=
14763lt_prog_compiler_static=
14764
14765
14766  if test yes = "$GCC"; then
14767    lt_prog_compiler_wl='-Wl,'
14768    lt_prog_compiler_static='-static'
14769
14770    case $host_os in
14771      aix*)
14772      # All AIX code is PIC.
14773      if test ia64 = "$host_cpu"; then
14774	# AIX 5 now supports IA64 processor
14775	lt_prog_compiler_static='-Bstatic'
14776      fi
14777      lt_prog_compiler_pic='-fPIC'
14778      ;;
14779
14780    amigaos*)
14781      case $host_cpu in
14782      powerpc)
14783            # see comment about AmigaOS4 .so support
14784            lt_prog_compiler_pic='-fPIC'
14785        ;;
14786      m68k)
14787            # FIXME: we need at least 68020 code to build shared libraries, but
14788            # adding the '-m68020' flag to GCC prevents building anything better,
14789            # like '-m68040'.
14790            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14791        ;;
14792      esac
14793      ;;
14794
14795    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14796      # PIC is the default for these OSes.
14797      ;;
14798
14799    mingw* | cygwin* | pw32* | os2* | cegcc*)
14800      # This hack is so that the source file can tell whether it is being
14801      # built for inclusion in a dll (and should export symbols for example).
14802      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14803      # (--disable-auto-import) libraries
14804      lt_prog_compiler_pic='-DDLL_EXPORT'
14805      case $host_os in
14806      os2*)
14807	lt_prog_compiler_static='$wl-static'
14808	;;
14809      esac
14810      ;;
14811
14812    darwin* | rhapsody*)
14813      # PIC is the default on this platform
14814      # Common symbols not allowed in MH_DYLIB files
14815      lt_prog_compiler_pic='-fno-common'
14816      ;;
14817
14818    haiku*)
14819      # PIC is the default for Haiku.
14820      # The "-static" flag exists, but is broken.
14821      lt_prog_compiler_static=
14822      ;;
14823
14824    hpux*)
14825      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14826      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14827      # sets the default TLS model and affects inlining.
14828      case $host_cpu in
14829      hppa*64*)
14830	# +Z the default
14831	;;
14832      *)
14833	lt_prog_compiler_pic='-fPIC'
14834	;;
14835      esac
14836      ;;
14837
14838    interix[3-9]*)
14839      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14840      # Instead, we relocate shared libraries at runtime.
14841      ;;
14842
14843    msdosdjgpp*)
14844      # Just because we use GCC doesn't mean we suddenly get shared libraries
14845      # on systems that don't support them.
14846      lt_prog_compiler_can_build_shared=no
14847      enable_shared=no
14848      ;;
14849
14850    *nto* | *qnx*)
14851      # QNX uses GNU C++, but need to define -shared option too, otherwise
14852      # it will coredump.
14853      lt_prog_compiler_pic='-fPIC -shared'
14854      ;;
14855
14856    sysv4*MP*)
14857      if test -d /usr/nec; then
14858	lt_prog_compiler_pic=-Kconform_pic
14859      fi
14860      ;;
14861
14862    *)
14863      lt_prog_compiler_pic='-fPIC'
14864      ;;
14865    esac
14866
14867    case $cc_basename in
14868    nvcc*) # Cuda Compiler Driver 2.2
14869      lt_prog_compiler_wl='-Xlinker '
14870      if test -n "$lt_prog_compiler_pic"; then
14871        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14872      fi
14873      ;;
14874    esac
14875  else
14876    # PORTME Check for flag to pass linker flags through the system compiler.
14877    case $host_os in
14878    aix*)
14879      lt_prog_compiler_wl='-Wl,'
14880      if test ia64 = "$host_cpu"; then
14881	# AIX 5 now supports IA64 processor
14882	lt_prog_compiler_static='-Bstatic'
14883      else
14884	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14885      fi
14886      ;;
14887
14888    darwin* | rhapsody*)
14889      # PIC is the default on this platform
14890      # Common symbols not allowed in MH_DYLIB files
14891      lt_prog_compiler_pic='-fno-common'
14892      case $cc_basename in
14893      nagfor*)
14894        # NAG Fortran compiler
14895        lt_prog_compiler_wl='-Wl,-Wl,,'
14896        lt_prog_compiler_pic='-PIC'
14897        lt_prog_compiler_static='-Bstatic'
14898        ;;
14899      esac
14900      ;;
14901
14902    mingw* | cygwin* | pw32* | os2* | cegcc*)
14903      # This hack is so that the source file can tell whether it is being
14904      # built for inclusion in a dll (and should export symbols for example).
14905      lt_prog_compiler_pic='-DDLL_EXPORT'
14906      case $host_os in
14907      os2*)
14908	lt_prog_compiler_static='$wl-static'
14909	;;
14910      esac
14911      ;;
14912
14913    hpux9* | hpux10* | hpux11*)
14914      lt_prog_compiler_wl='-Wl,'
14915      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14916      # not for PA HP-UX.
14917      case $host_cpu in
14918      hppa*64*|ia64*)
14919	# +Z the default
14920	;;
14921      *)
14922	lt_prog_compiler_pic='+Z'
14923	;;
14924      esac
14925      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14926      lt_prog_compiler_static='$wl-a ${wl}archive'
14927      ;;
14928
14929    irix5* | irix6* | nonstopux*)
14930      lt_prog_compiler_wl='-Wl,'
14931      # PIC (with -KPIC) is the default.
14932      lt_prog_compiler_static='-non_shared'
14933      ;;
14934
14935    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14936      case $cc_basename in
14937      # old Intel for x86_64, which still supported -KPIC.
14938      ecc*)
14939	lt_prog_compiler_wl='-Wl,'
14940	lt_prog_compiler_pic='-KPIC'
14941	lt_prog_compiler_static='-static'
14942        ;;
14943      # icc used to be incompatible with GCC.
14944      # ICC 10 doesn't accept -KPIC any more.
14945      icc* | ifort*)
14946	lt_prog_compiler_wl='-Wl,'
14947	lt_prog_compiler_pic='-fPIC'
14948	lt_prog_compiler_static='-static'
14949        ;;
14950      # Lahey Fortran 8.1.
14951      lf95*)
14952	lt_prog_compiler_wl='-Wl,'
14953	lt_prog_compiler_pic='--shared'
14954	lt_prog_compiler_static='--static'
14955	;;
14956      nagfor*)
14957	# NAG Fortran compiler
14958	lt_prog_compiler_wl='-Wl,-Wl,,'
14959	lt_prog_compiler_pic='-PIC'
14960	lt_prog_compiler_static='-Bstatic'
14961	;;
14962      tcc*)
14963	# Fabrice Bellard et al's Tiny C Compiler
14964	lt_prog_compiler_wl='-Wl,'
14965	lt_prog_compiler_pic='-fPIC'
14966	lt_prog_compiler_static='-static'
14967	;;
14968      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14969        # Portland Group compilers (*not* the Pentium gcc compiler,
14970	# which looks to be a dead project)
14971	lt_prog_compiler_wl='-Wl,'
14972	lt_prog_compiler_pic='-fpic'
14973	lt_prog_compiler_static='-Bstatic'
14974        ;;
14975      ccc*)
14976        lt_prog_compiler_wl='-Wl,'
14977        # All Alpha code is PIC.
14978        lt_prog_compiler_static='-non_shared'
14979        ;;
14980      xl* | bgxl* | bgf* | mpixl*)
14981	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14982	lt_prog_compiler_wl='-Wl,'
14983	lt_prog_compiler_pic='-qpic'
14984	lt_prog_compiler_static='-qstaticlink'
14985	;;
14986      *)
14987	case `$CC -V 2>&1 | sed 5q` in
14988	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14989	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14990	  lt_prog_compiler_pic='-KPIC'
14991	  lt_prog_compiler_static='-Bstatic'
14992	  lt_prog_compiler_wl=''
14993	  ;;
14994	*Sun\ F* | *Sun*Fortran*)
14995	  lt_prog_compiler_pic='-KPIC'
14996	  lt_prog_compiler_static='-Bstatic'
14997	  lt_prog_compiler_wl='-Qoption ld '
14998	  ;;
14999	*Sun\ C*)
15000	  # Sun C 5.9
15001	  lt_prog_compiler_pic='-KPIC'
15002	  lt_prog_compiler_static='-Bstatic'
15003	  lt_prog_compiler_wl='-Wl,'
15004	  ;;
15005        *Intel*\ [CF]*Compiler*)
15006	  lt_prog_compiler_wl='-Wl,'
15007	  lt_prog_compiler_pic='-fPIC'
15008	  lt_prog_compiler_static='-static'
15009	  ;;
15010	*Portland\ Group*)
15011	  lt_prog_compiler_wl='-Wl,'
15012	  lt_prog_compiler_pic='-fpic'
15013	  lt_prog_compiler_static='-Bstatic'
15014	  ;;
15015	esac
15016	;;
15017      esac
15018      ;;
15019
15020    newsos6)
15021      lt_prog_compiler_pic='-KPIC'
15022      lt_prog_compiler_static='-Bstatic'
15023      ;;
15024
15025    *nto* | *qnx*)
15026      # QNX uses GNU C++, but need to define -shared option too, otherwise
15027      # it will coredump.
15028      lt_prog_compiler_pic='-fPIC -shared'
15029      ;;
15030
15031    osf3* | osf4* | osf5*)
15032      lt_prog_compiler_wl='-Wl,'
15033      # All OSF/1 code is PIC.
15034      lt_prog_compiler_static='-non_shared'
15035      ;;
15036
15037    rdos*)
15038      lt_prog_compiler_static='-non_shared'
15039      ;;
15040
15041    solaris*)
15042      lt_prog_compiler_pic='-KPIC'
15043      lt_prog_compiler_static='-Bstatic'
15044      case $cc_basename in
15045      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15046	lt_prog_compiler_wl='-Qoption ld ';;
15047      *)
15048	lt_prog_compiler_wl='-Wl,';;
15049      esac
15050      ;;
15051
15052    sunos4*)
15053      lt_prog_compiler_wl='-Qoption ld '
15054      lt_prog_compiler_pic='-PIC'
15055      lt_prog_compiler_static='-Bstatic'
15056      ;;
15057
15058    sysv4 | sysv4.2uw2* | sysv4.3*)
15059      lt_prog_compiler_wl='-Wl,'
15060      lt_prog_compiler_pic='-KPIC'
15061      lt_prog_compiler_static='-Bstatic'
15062      ;;
15063
15064    sysv4*MP*)
15065      if test -d /usr/nec; then
15066	lt_prog_compiler_pic='-Kconform_pic'
15067	lt_prog_compiler_static='-Bstatic'
15068      fi
15069      ;;
15070
15071    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15072      lt_prog_compiler_wl='-Wl,'
15073      lt_prog_compiler_pic='-KPIC'
15074      lt_prog_compiler_static='-Bstatic'
15075      ;;
15076
15077    unicos*)
15078      lt_prog_compiler_wl='-Wl,'
15079      lt_prog_compiler_can_build_shared=no
15080      ;;
15081
15082    uts4*)
15083      lt_prog_compiler_pic='-pic'
15084      lt_prog_compiler_static='-Bstatic'
15085      ;;
15086
15087    *)
15088      lt_prog_compiler_can_build_shared=no
15089      ;;
15090    esac
15091  fi
15092
15093case $host_os in
15094  # For platforms that do not support PIC, -DPIC is meaningless:
15095  *djgpp*)
15096    lt_prog_compiler_pic=
15097    ;;
15098  *)
15099    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15100    ;;
15101esac
15102
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15104$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15105if ${lt_cv_prog_compiler_pic+:} false; then :
15106  $as_echo_n "(cached) " >&6
15107else
15108  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15111$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15112lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15113
15114#
15115# Check to make sure the PIC flag actually works.
15116#
15117if test -n "$lt_prog_compiler_pic"; then
15118  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15119$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15120if ${lt_cv_prog_compiler_pic_works+:} false; then :
15121  $as_echo_n "(cached) " >&6
15122else
15123  lt_cv_prog_compiler_pic_works=no
15124   ac_outfile=conftest.$ac_objext
15125   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15126   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15127   # Insert the option either (1) after the last *FLAGS variable, or
15128   # (2) before a word containing "conftest.", or (3) at the end.
15129   # Note that $ac_compile itself does not contain backslashes and begins
15130   # with a dollar sign (not a hyphen), so the echo should work correctly.
15131   # The option is referenced via a variable to avoid confusing sed.
15132   lt_compile=`echo "$ac_compile" | $SED \
15133   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15134   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15135   -e 's:$: $lt_compiler_flag:'`
15136   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15137   (eval "$lt_compile" 2>conftest.err)
15138   ac_status=$?
15139   cat conftest.err >&5
15140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141   if (exit $ac_status) && test -s "$ac_outfile"; then
15142     # The compiler can only warn and ignore the option if not recognized
15143     # So say no if there are warnings other than the usual output.
15144     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15145     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15146     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15147       lt_cv_prog_compiler_pic_works=yes
15148     fi
15149   fi
15150   $RM conftest*
15151
15152fi
15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15154$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15155
15156if test yes = "$lt_cv_prog_compiler_pic_works"; then
15157    case $lt_prog_compiler_pic in
15158     "" | " "*) ;;
15159     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15160     esac
15161else
15162    lt_prog_compiler_pic=
15163     lt_prog_compiler_can_build_shared=no
15164fi
15165
15166fi
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178#
15179# Check to make sure the static flag actually works.
15180#
15181wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15183$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15184if ${lt_cv_prog_compiler_static_works+:} false; then :
15185  $as_echo_n "(cached) " >&6
15186else
15187  lt_cv_prog_compiler_static_works=no
15188   save_LDFLAGS=$LDFLAGS
15189   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15190   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15191   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15192     # The linker can only warn and ignore the option if not recognized
15193     # So say no if there are warnings
15194     if test -s conftest.err; then
15195       # Append any errors to the config.log.
15196       cat conftest.err 1>&5
15197       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15198       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15199       if diff conftest.exp conftest.er2 >/dev/null; then
15200         lt_cv_prog_compiler_static_works=yes
15201       fi
15202     else
15203       lt_cv_prog_compiler_static_works=yes
15204     fi
15205   fi
15206   $RM -r conftest*
15207   LDFLAGS=$save_LDFLAGS
15208
15209fi
15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15211$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15212
15213if test yes = "$lt_cv_prog_compiler_static_works"; then
15214    :
15215else
15216    lt_prog_compiler_static=
15217fi
15218
15219
15220
15221
15222
15223
15224
15225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15226$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15227if ${lt_cv_prog_compiler_c_o+:} false; then :
15228  $as_echo_n "(cached) " >&6
15229else
15230  lt_cv_prog_compiler_c_o=no
15231   $RM -r conftest 2>/dev/null
15232   mkdir conftest
15233   cd conftest
15234   mkdir out
15235   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15236
15237   lt_compiler_flag="-o out/conftest2.$ac_objext"
15238   # Insert the option either (1) after the last *FLAGS variable, or
15239   # (2) before a word containing "conftest.", or (3) at the end.
15240   # Note that $ac_compile itself does not contain backslashes and begins
15241   # with a dollar sign (not a hyphen), so the echo should work correctly.
15242   lt_compile=`echo "$ac_compile" | $SED \
15243   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15244   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15245   -e 's:$: $lt_compiler_flag:'`
15246   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15247   (eval "$lt_compile" 2>out/conftest.err)
15248   ac_status=$?
15249   cat out/conftest.err >&5
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15252   then
15253     # The compiler can only warn and ignore the option if not recognized
15254     # So say no if there are warnings
15255     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15256     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15257     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15258       lt_cv_prog_compiler_c_o=yes
15259     fi
15260   fi
15261   chmod u+w . 2>&5
15262   $RM conftest*
15263   # SGI C++ compiler will create directory out/ii_files/ for
15264   # template instantiation
15265   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15266   $RM out/* && rmdir out
15267   cd ..
15268   $RM -r conftest
15269   $RM conftest*
15270
15271fi
15272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15273$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15274
15275
15276
15277
15278
15279
15280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15281$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15282if ${lt_cv_prog_compiler_c_o+:} false; then :
15283  $as_echo_n "(cached) " >&6
15284else
15285  lt_cv_prog_compiler_c_o=no
15286   $RM -r conftest 2>/dev/null
15287   mkdir conftest
15288   cd conftest
15289   mkdir out
15290   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15291
15292   lt_compiler_flag="-o out/conftest2.$ac_objext"
15293   # Insert the option either (1) after the last *FLAGS variable, or
15294   # (2) before a word containing "conftest.", or (3) at the end.
15295   # Note that $ac_compile itself does not contain backslashes and begins
15296   # with a dollar sign (not a hyphen), so the echo should work correctly.
15297   lt_compile=`echo "$ac_compile" | $SED \
15298   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15299   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300   -e 's:$: $lt_compiler_flag:'`
15301   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15302   (eval "$lt_compile" 2>out/conftest.err)
15303   ac_status=$?
15304   cat out/conftest.err >&5
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15307   then
15308     # The compiler can only warn and ignore the option if not recognized
15309     # So say no if there are warnings
15310     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15311     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15312     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15313       lt_cv_prog_compiler_c_o=yes
15314     fi
15315   fi
15316   chmod u+w . 2>&5
15317   $RM conftest*
15318   # SGI C++ compiler will create directory out/ii_files/ for
15319   # template instantiation
15320   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15321   $RM out/* && rmdir out
15322   cd ..
15323   $RM -r conftest
15324   $RM conftest*
15325
15326fi
15327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15328$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15329
15330
15331
15332
15333hard_links=nottested
15334if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15335  # do not overwrite the value of need_locks provided by the user
15336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15337$as_echo_n "checking if we can lock with hard links... " >&6; }
15338  hard_links=yes
15339  $RM conftest*
15340  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15341  touch conftest.a
15342  ln conftest.a conftest.b 2>&5 || hard_links=no
15343  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15345$as_echo "$hard_links" >&6; }
15346  if test no = "$hard_links"; then
15347    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15348$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15349    need_locks=warn
15350  fi
15351else
15352  need_locks=no
15353fi
15354
15355
15356
15357
15358
15359
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15361$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15362
15363  runpath_var=
15364  allow_undefined_flag=
15365  always_export_symbols=no
15366  archive_cmds=
15367  archive_expsym_cmds=
15368  compiler_needs_object=no
15369  enable_shared_with_static_runtimes=no
15370  export_dynamic_flag_spec=
15371  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15372  hardcode_automatic=no
15373  hardcode_direct=no
15374  hardcode_direct_absolute=no
15375  hardcode_libdir_flag_spec=
15376  hardcode_libdir_separator=
15377  hardcode_minus_L=no
15378  hardcode_shlibpath_var=unsupported
15379  inherit_rpath=no
15380  link_all_deplibs=unknown
15381  module_cmds=
15382  module_expsym_cmds=
15383  old_archive_from_new_cmds=
15384  old_archive_from_expsyms_cmds=
15385  thread_safe_flag_spec=
15386  whole_archive_flag_spec=
15387  # include_expsyms should be a list of space-separated symbols to be *always*
15388  # included in the symbol list
15389  include_expsyms=
15390  # exclude_expsyms can be an extended regexp of symbols to exclude
15391  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15392  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15393  # as well as any symbol that contains 'd'.
15394  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15395  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15396  # platforms (ab)use it in PIC code, but their linkers get confused if
15397  # the symbol is explicitly referenced.  Since portable code cannot
15398  # rely on this symbol name, it's probably fine to never include it in
15399  # preloaded symbol tables.
15400  # Exclude shared library initialization/finalization symbols.
15401  extract_expsyms_cmds=
15402
15403  case $host_os in
15404  cygwin* | mingw* | pw32* | cegcc*)
15405    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15406    # When not using gcc, we currently assume that we are using
15407    # Microsoft Visual C++.
15408    if test yes != "$GCC"; then
15409      with_gnu_ld=no
15410    fi
15411    ;;
15412  interix*)
15413    # we just hope/assume this is gcc and not c89 (= MSVC++)
15414    with_gnu_ld=yes
15415    ;;
15416  openbsd* | bitrig*)
15417    with_gnu_ld=no
15418    ;;
15419  esac
15420
15421  ld_shlibs=yes
15422
15423  # On some targets, GNU ld is compatible enough with the native linker
15424  # that we're better off using the native interface for both.
15425  lt_use_gnu_ld_interface=no
15426  if test yes = "$with_gnu_ld"; then
15427    case $host_os in
15428      aix*)
15429	# The AIX port of GNU ld has always aspired to compatibility
15430	# with the native linker.  However, as the warning in the GNU ld
15431	# block says, versions before 2.19.5* couldn't really create working
15432	# shared libraries, regardless of the interface used.
15433	case `$LD -v 2>&1` in
15434	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15435	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15436	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15437	  *)
15438	    lt_use_gnu_ld_interface=yes
15439	    ;;
15440	esac
15441	;;
15442      *)
15443	lt_use_gnu_ld_interface=yes
15444	;;
15445    esac
15446  fi
15447
15448  if test yes = "$lt_use_gnu_ld_interface"; then
15449    # If archive_cmds runs LD, not CC, wlarc should be empty
15450    wlarc='$wl'
15451
15452    # Set some defaults for GNU ld with shared library support. These
15453    # are reset later if shared libraries are not supported. Putting them
15454    # here allows them to be overridden if necessary.
15455    runpath_var=LD_RUN_PATH
15456    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15457    export_dynamic_flag_spec='$wl--export-dynamic'
15458    # ancient GNU ld didn't support --whole-archive et. al.
15459    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15460      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15461    else
15462      whole_archive_flag_spec=
15463    fi
15464    supports_anon_versioning=no
15465    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15466      *GNU\ gold*) supports_anon_versioning=yes ;;
15467      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15468      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15469      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15470      *\ 2.11.*) ;; # other 2.11 versions
15471      *) supports_anon_versioning=yes ;;
15472    esac
15473
15474    # See if GNU ld supports shared libraries.
15475    case $host_os in
15476    aix[3-9]*)
15477      # On AIX/PPC, the GNU linker is very broken
15478      if test ia64 != "$host_cpu"; then
15479	ld_shlibs=no
15480	cat <<_LT_EOF 1>&2
15481
15482*** Warning: the GNU linker, at least up to release 2.19, is reported
15483*** to be unable to reliably create shared libraries on AIX.
15484*** Therefore, libtool is disabling shared libraries support.  If you
15485*** really care for shared libraries, you may want to install binutils
15486*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15487*** You will then need to restart the configuration process.
15488
15489_LT_EOF
15490      fi
15491      ;;
15492
15493    amigaos*)
15494      case $host_cpu in
15495      powerpc)
15496            # see comment about AmigaOS4 .so support
15497            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15498            archive_expsym_cmds=''
15499        ;;
15500      m68k)
15501            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)'
15502            hardcode_libdir_flag_spec='-L$libdir'
15503            hardcode_minus_L=yes
15504        ;;
15505      esac
15506      ;;
15507
15508    beos*)
15509      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15510	allow_undefined_flag=unsupported
15511	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15512	# support --undefined.  This deserves some investigation.  FIXME
15513	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15514      else
15515	ld_shlibs=no
15516      fi
15517      ;;
15518
15519    cygwin* | mingw* | pw32* | cegcc*)
15520      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15521      # as there is no search path for DLLs.
15522      hardcode_libdir_flag_spec='-L$libdir'
15523      export_dynamic_flag_spec='$wl--export-all-symbols'
15524      allow_undefined_flag=unsupported
15525      always_export_symbols=no
15526      enable_shared_with_static_runtimes=yes
15527      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'
15528      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15529
15530      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15531        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15532	# If the export-symbols file already is a .def file, use it as
15533	# is; otherwise, prepend EXPORTS...
15534	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15535          cp $export_symbols $output_objdir/$soname.def;
15536        else
15537          echo EXPORTS > $output_objdir/$soname.def;
15538          cat $export_symbols >> $output_objdir/$soname.def;
15539        fi~
15540        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15541      else
15542	ld_shlibs=no
15543      fi
15544      ;;
15545
15546    haiku*)
15547      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15548      link_all_deplibs=yes
15549      ;;
15550
15551    os2*)
15552      hardcode_libdir_flag_spec='-L$libdir'
15553      hardcode_minus_L=yes
15554      allow_undefined_flag=unsupported
15555      shrext_cmds=.dll
15556      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15557	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15558	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15559	$ECHO EXPORTS >> $output_objdir/$libname.def~
15560	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15561	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15562	emximp -o $lib $output_objdir/$libname.def'
15563      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15564	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15565	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15566	$ECHO EXPORTS >> $output_objdir/$libname.def~
15567	prefix_cmds="$SED"~
15568	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15569	  prefix_cmds="$prefix_cmds -e 1d";
15570	fi~
15571	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15572	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15573	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15574	emximp -o $lib $output_objdir/$libname.def'
15575      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15576      enable_shared_with_static_runtimes=yes
15577      ;;
15578
15579    interix[3-9]*)
15580      hardcode_direct=no
15581      hardcode_shlibpath_var=no
15582      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15583      export_dynamic_flag_spec='$wl-E'
15584      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15585      # Instead, shared libraries are loaded at an image base (0x10000000 by
15586      # default) and relocated if they conflict, which is a slow very memory
15587      # consuming and fragmenting process.  To avoid this, we pick a random,
15588      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15589      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15590      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15591      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'
15592      ;;
15593
15594    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15595      tmp_diet=no
15596      if test linux-dietlibc = "$host_os"; then
15597	case $cc_basename in
15598	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15599	esac
15600      fi
15601      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15602	 && test no = "$tmp_diet"
15603      then
15604	tmp_addflag=' $pic_flag'
15605	tmp_sharedflag='-shared'
15606	case $cc_basename,$host_cpu in
15607        pgcc*)				# Portland Group C compiler
15608	  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'
15609	  tmp_addflag=' $pic_flag'
15610	  ;;
15611	pgf77* | pgf90* | pgf95* | pgfortran*)
15612					# Portland Group f77 and f90 compilers
15613	  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'
15614	  tmp_addflag=' $pic_flag -Mnomain' ;;
15615	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15616	  tmp_addflag=' -i_dynamic' ;;
15617	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15618	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15619	ifc* | ifort*)			# Intel Fortran compiler
15620	  tmp_addflag=' -nofor_main' ;;
15621	lf95*)				# Lahey Fortran 8.1
15622	  whole_archive_flag_spec=
15623	  tmp_sharedflag='--shared' ;;
15624        nagfor*)                        # NAGFOR 5.3
15625          tmp_sharedflag='-Wl,-shared' ;;
15626	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15627	  tmp_sharedflag='-qmkshrobj'
15628	  tmp_addflag= ;;
15629	nvcc*)	# Cuda Compiler Driver 2.2
15630	  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'
15631	  compiler_needs_object=yes
15632	  ;;
15633	esac
15634	case `$CC -V 2>&1 | sed 5q` in
15635	*Sun\ C*)			# Sun C 5.9
15636	  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'
15637	  compiler_needs_object=yes
15638	  tmp_sharedflag='-G' ;;
15639	*Sun\ F*)			# Sun Fortran 8.3
15640	  tmp_sharedflag='-G' ;;
15641	esac
15642	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15643
15644        if test yes = "$supports_anon_versioning"; then
15645          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15646            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15647            echo "local: *; };" >> $output_objdir/$libname.ver~
15648            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15649        fi
15650
15651	case $cc_basename in
15652	tcc*)
15653	  export_dynamic_flag_spec='-rdynamic'
15654	  ;;
15655	xlf* | bgf* | bgxlf* | mpixlf*)
15656	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15657	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15658	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15659	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15660	  if test yes = "$supports_anon_versioning"; then
15661	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15662              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15663              echo "local: *; };" >> $output_objdir/$libname.ver~
15664              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15665	  fi
15666	  ;;
15667	esac
15668      else
15669        ld_shlibs=no
15670      fi
15671      ;;
15672
15673    netbsd*)
15674      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15675	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15676	wlarc=
15677      else
15678	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15679	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15680      fi
15681      ;;
15682
15683    solaris*)
15684      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15685	ld_shlibs=no
15686	cat <<_LT_EOF 1>&2
15687
15688*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15689*** create shared libraries on Solaris systems.  Therefore, libtool
15690*** is disabling shared libraries support.  We urge you to upgrade GNU
15691*** binutils to release 2.9.1 or newer.  Another option is to modify
15692*** your PATH or compiler configuration so that the native linker is
15693*** used, and then restart.
15694
15695_LT_EOF
15696      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15697	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15698	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15699      else
15700	ld_shlibs=no
15701      fi
15702      ;;
15703
15704    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15705      case `$LD -v 2>&1` in
15706        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15707	ld_shlibs=no
15708	cat <<_LT_EOF 1>&2
15709
15710*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15711*** reliably create shared libraries on SCO systems.  Therefore, libtool
15712*** is disabling shared libraries support.  We urge you to upgrade GNU
15713*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15714*** your PATH or compiler configuration so that the native linker is
15715*** used, and then restart.
15716
15717_LT_EOF
15718	;;
15719	*)
15720	  # For security reasons, it is highly recommended that you always
15721	  # use absolute paths for naming shared libraries, and exclude the
15722	  # DT_RUNPATH tag from executables and libraries.  But doing so
15723	  # requires that you compile everything twice, which is a pain.
15724	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15725	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15726	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15727	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15728	  else
15729	    ld_shlibs=no
15730	  fi
15731	;;
15732      esac
15733      ;;
15734
15735    sunos4*)
15736      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15737      wlarc=
15738      hardcode_direct=yes
15739      hardcode_shlibpath_var=no
15740      ;;
15741
15742    *)
15743      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15744	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15745	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15746      else
15747	ld_shlibs=no
15748      fi
15749      ;;
15750    esac
15751
15752    if test no = "$ld_shlibs"; then
15753      runpath_var=
15754      hardcode_libdir_flag_spec=
15755      export_dynamic_flag_spec=
15756      whole_archive_flag_spec=
15757    fi
15758  else
15759    # PORTME fill in a description of your system's linker (not GNU ld)
15760    case $host_os in
15761    aix3*)
15762      allow_undefined_flag=unsupported
15763      always_export_symbols=yes
15764      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'
15765      # Note: this linker hardcodes the directories in LIBPATH if there
15766      # are no directories specified by -L.
15767      hardcode_minus_L=yes
15768      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15769	# Neither direct hardcoding nor static linking is supported with a
15770	# broken collect2.
15771	hardcode_direct=unsupported
15772      fi
15773      ;;
15774
15775    aix[4-9]*)
15776      if test ia64 = "$host_cpu"; then
15777	# On IA64, the linker does run time linking by default, so we don't
15778	# have to do anything special.
15779	aix_use_runtimelinking=no
15780	exp_sym_flag='-Bexport'
15781	no_entry_flag=
15782      else
15783	# If we're using GNU nm, then we don't want the "-C" option.
15784	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15785	# Without the "-l" option, or with the "-B" option, AIX nm treats
15786	# weak defined symbols like other global defined symbols, whereas
15787	# GNU nm marks them as "W".
15788	# While the 'weak' keyword is ignored in the Export File, we need
15789	# it in the Import File for the 'aix-soname' feature, so we have
15790	# to replace the "-B" option with "-P" for AIX nm.
15791	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15792	  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'
15793	else
15794	  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'
15795	fi
15796	aix_use_runtimelinking=no
15797
15798	# Test if we are trying to use run time linking or normal
15799	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15800	# have runtime linking enabled, and use it for executables.
15801	# For shared libraries, we enable/disable runtime linking
15802	# depending on the kind of the shared library created -
15803	# when "with_aix_soname,aix_use_runtimelinking" is:
15804	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15805	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15806	#            lib.a           static archive
15807	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15808	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15809	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15810	#            lib.a(lib.so.V) shared, rtl:no
15811	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15812	#            lib.a           static archive
15813	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15814	  for ld_flag in $LDFLAGS; do
15815	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15816	    aix_use_runtimelinking=yes
15817	    break
15818	  fi
15819	  done
15820	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15821	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15822	    # so we don't have lib.a shared libs to link our executables.
15823	    # We have to force runtime linking in this case.
15824	    aix_use_runtimelinking=yes
15825	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15826	  fi
15827	  ;;
15828	esac
15829
15830	exp_sym_flag='-bexport'
15831	no_entry_flag='-bnoentry'
15832      fi
15833
15834      # When large executables or shared objects are built, AIX ld can
15835      # have problems creating the table of contents.  If linking a library
15836      # or program results in "error TOC overflow" add -mminimal-toc to
15837      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15838      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15839
15840      archive_cmds=''
15841      hardcode_direct=yes
15842      hardcode_direct_absolute=yes
15843      hardcode_libdir_separator=':'
15844      link_all_deplibs=yes
15845      file_list_spec='$wl-f,'
15846      case $with_aix_soname,$aix_use_runtimelinking in
15847      aix,*) ;; # traditional, no import file
15848      svr4,* | *,yes) # use import file
15849	# The Import File defines what to hardcode.
15850	hardcode_direct=no
15851	hardcode_direct_absolute=no
15852	;;
15853      esac
15854
15855      if test yes = "$GCC"; then
15856	case $host_os in aix4.[012]|aix4.[012].*)
15857	# We only want to do this on AIX 4.2 and lower, the check
15858	# below for broken collect2 doesn't work under 4.3+
15859	  collect2name=`$CC -print-prog-name=collect2`
15860	  if test -f "$collect2name" &&
15861	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15862	  then
15863	  # We have reworked collect2
15864	  :
15865	  else
15866	  # We have old collect2
15867	  hardcode_direct=unsupported
15868	  # It fails to find uninstalled libraries when the uninstalled
15869	  # path is not listed in the libpath.  Setting hardcode_minus_L
15870	  # to unsupported forces relinking
15871	  hardcode_minus_L=yes
15872	  hardcode_libdir_flag_spec='-L$libdir'
15873	  hardcode_libdir_separator=
15874	  fi
15875	  ;;
15876	esac
15877	shared_flag='-shared'
15878	if test yes = "$aix_use_runtimelinking"; then
15879	  shared_flag="$shared_flag "'$wl-G'
15880	fi
15881	# Need to ensure runtime linking is disabled for the traditional
15882	# shared library, or the linker may eventually find shared libraries
15883	# /with/ Import File - we do not want to mix them.
15884	shared_flag_aix='-shared'
15885	shared_flag_svr4='-shared $wl-G'
15886      else
15887	# not using gcc
15888	if test ia64 = "$host_cpu"; then
15889	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15890	# chokes on -Wl,-G. The following line is correct:
15891	  shared_flag='-G'
15892	else
15893	  if test yes = "$aix_use_runtimelinking"; then
15894	    shared_flag='$wl-G'
15895	  else
15896	    shared_flag='$wl-bM:SRE'
15897	  fi
15898	  shared_flag_aix='$wl-bM:SRE'
15899	  shared_flag_svr4='$wl-G'
15900	fi
15901      fi
15902
15903      export_dynamic_flag_spec='$wl-bexpall'
15904      # It seems that -bexpall does not export symbols beginning with
15905      # underscore (_), so it is better to generate a list of symbols to export.
15906      always_export_symbols=yes
15907      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15908	# Warning - without using the other runtime loading flags (-brtl),
15909	# -berok will link without error, but may produce a broken library.
15910	allow_undefined_flag='-berok'
15911        # Determine the default libpath from the value encoded in an
15912        # empty executable.
15913        if test set = "${lt_cv_aix_libpath+set}"; then
15914  aix_libpath=$lt_cv_aix_libpath
15915else
15916  if ${lt_cv_aix_libpath_+:} false; then :
15917  $as_echo_n "(cached) " >&6
15918else
15919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920/* end confdefs.h.  */
15921
15922int
15923main ()
15924{
15925
15926  ;
15927  return 0;
15928}
15929_ACEOF
15930if ac_fn_c_try_link "$LINENO"; then :
15931
15932  lt_aix_libpath_sed='
15933      /Import File Strings/,/^$/ {
15934	  /^0/ {
15935	      s/^0  *\([^ ]*\) *$/\1/
15936	      p
15937	  }
15938      }'
15939  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15940  # Check for a 64-bit object if we didn't find anything.
15941  if test -z "$lt_cv_aix_libpath_"; then
15942    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15943  fi
15944fi
15945rm -f core conftest.err conftest.$ac_objext \
15946    conftest$ac_exeext conftest.$ac_ext
15947  if test -z "$lt_cv_aix_libpath_"; then
15948    lt_cv_aix_libpath_=/usr/lib:/lib
15949  fi
15950
15951fi
15952
15953  aix_libpath=$lt_cv_aix_libpath_
15954fi
15955
15956        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15957        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
15958      else
15959	if test ia64 = "$host_cpu"; then
15960	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15961	  allow_undefined_flag="-z nodefs"
15962	  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"
15963	else
15964	 # Determine the default libpath from the value encoded in an
15965	 # empty executable.
15966	 if test set = "${lt_cv_aix_libpath+set}"; then
15967  aix_libpath=$lt_cv_aix_libpath
15968else
15969  if ${lt_cv_aix_libpath_+:} false; then :
15970  $as_echo_n "(cached) " >&6
15971else
15972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973/* end confdefs.h.  */
15974
15975int
15976main ()
15977{
15978
15979  ;
15980  return 0;
15981}
15982_ACEOF
15983if ac_fn_c_try_link "$LINENO"; then :
15984
15985  lt_aix_libpath_sed='
15986      /Import File Strings/,/^$/ {
15987	  /^0/ {
15988	      s/^0  *\([^ ]*\) *$/\1/
15989	      p
15990	  }
15991      }'
15992  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15993  # Check for a 64-bit object if we didn't find anything.
15994  if test -z "$lt_cv_aix_libpath_"; then
15995    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15996  fi
15997fi
15998rm -f core conftest.err conftest.$ac_objext \
15999    conftest$ac_exeext conftest.$ac_ext
16000  if test -z "$lt_cv_aix_libpath_"; then
16001    lt_cv_aix_libpath_=/usr/lib:/lib
16002  fi
16003
16004fi
16005
16006  aix_libpath=$lt_cv_aix_libpath_
16007fi
16008
16009	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16010	  # Warning - without using the other run time loading flags,
16011	  # -berok will link without error, but may produce a broken library.
16012	  no_undefined_flag=' $wl-bernotok'
16013	  allow_undefined_flag=' $wl-berok'
16014	  if test yes = "$with_gnu_ld"; then
16015	    # We only use this code for GNU lds that support --whole-archive.
16016	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16017	  else
16018	    # Exported symbols can be pulled into shared objects from archives
16019	    whole_archive_flag_spec='$convenience'
16020	  fi
16021	  archive_cmds_need_lc=yes
16022	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16023	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16024	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16025	  if test svr4 != "$with_aix_soname"; then
16026	    # This is similar to how AIX traditionally builds its shared libraries.
16027	    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'
16028	  fi
16029	  if test aix != "$with_aix_soname"; then
16030	    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'
16031	  else
16032	    # used by -dlpreopen to get the symbols
16033	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16034	  fi
16035	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16036	fi
16037      fi
16038      ;;
16039
16040    amigaos*)
16041      case $host_cpu in
16042      powerpc)
16043            # see comment about AmigaOS4 .so support
16044            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16045            archive_expsym_cmds=''
16046        ;;
16047      m68k)
16048            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)'
16049            hardcode_libdir_flag_spec='-L$libdir'
16050            hardcode_minus_L=yes
16051        ;;
16052      esac
16053      ;;
16054
16055    bsdi[45]*)
16056      export_dynamic_flag_spec=-rdynamic
16057      ;;
16058
16059    cygwin* | mingw* | pw32* | cegcc*)
16060      # When not using gcc, we currently assume that we are using
16061      # Microsoft Visual C++.
16062      # hardcode_libdir_flag_spec is actually meaningless, as there is
16063      # no search path for DLLs.
16064      case $cc_basename in
16065      cl*)
16066	# Native MSVC
16067	hardcode_libdir_flag_spec=' '
16068	allow_undefined_flag=unsupported
16069	always_export_symbols=yes
16070	file_list_spec='@'
16071	# Tell ltmain to make .lib files, not .a files.
16072	libext=lib
16073	# Tell ltmain to make .dll files, not .so files.
16074	shrext_cmds=.dll
16075	# FIXME: Setting linknames here is a bad hack.
16076	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16077	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16078            cp "$export_symbols" "$output_objdir/$soname.def";
16079            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16080          else
16081            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16082          fi~
16083          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16084          linknames='
16085	# The linker will not automatically build a static lib if we build a DLL.
16086	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16087	enable_shared_with_static_runtimes=yes
16088	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16089	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16090	# Don't use ranlib
16091	old_postinstall_cmds='chmod 644 $oldlib'
16092	postlink_cmds='lt_outputfile="@OUTPUT@"~
16093          lt_tool_outputfile="@TOOL_OUTPUT@"~
16094          case $lt_outputfile in
16095            *.exe|*.EXE) ;;
16096            *)
16097              lt_outputfile=$lt_outputfile.exe
16098              lt_tool_outputfile=$lt_tool_outputfile.exe
16099              ;;
16100          esac~
16101          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16102            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16103            $RM "$lt_outputfile.manifest";
16104          fi'
16105	;;
16106      *)
16107	# Assume MSVC wrapper
16108	hardcode_libdir_flag_spec=' '
16109	allow_undefined_flag=unsupported
16110	# Tell ltmain to make .lib files, not .a files.
16111	libext=lib
16112	# Tell ltmain to make .dll files, not .so files.
16113	shrext_cmds=.dll
16114	# FIXME: Setting linknames here is a bad hack.
16115	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16116	# The linker will automatically build a .lib file if we build a DLL.
16117	old_archive_from_new_cmds='true'
16118	# FIXME: Should let the user specify the lib program.
16119	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16120	enable_shared_with_static_runtimes=yes
16121	;;
16122      esac
16123      ;;
16124
16125    darwin* | rhapsody*)
16126
16127
16128  archive_cmds_need_lc=no
16129  hardcode_direct=no
16130  hardcode_automatic=yes
16131  hardcode_shlibpath_var=unsupported
16132  if test yes = "$lt_cv_ld_force_load"; then
16133    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\"`'
16134
16135  else
16136    whole_archive_flag_spec=''
16137  fi
16138  link_all_deplibs=yes
16139  allow_undefined_flag=$_lt_dar_allow_undefined
16140  case $cc_basename in
16141     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16142     *) _lt_dar_can_shared=$GCC ;;
16143  esac
16144  if test yes = "$_lt_dar_can_shared"; then
16145    output_verbose_link_cmd=func_echo_all
16146    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16147    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16148    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"
16149    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"
16150
16151  else
16152  ld_shlibs=no
16153  fi
16154
16155      ;;
16156
16157    dgux*)
16158      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16159      hardcode_libdir_flag_spec='-L$libdir'
16160      hardcode_shlibpath_var=no
16161      ;;
16162
16163    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16164    # support.  Future versions do this automatically, but an explicit c++rt0.o
16165    # does not break anything, and helps significantly (at the cost of a little
16166    # extra space).
16167    freebsd2.2*)
16168      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16169      hardcode_libdir_flag_spec='-R$libdir'
16170      hardcode_direct=yes
16171      hardcode_shlibpath_var=no
16172      ;;
16173
16174    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16175    freebsd2.*)
16176      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16177      hardcode_direct=yes
16178      hardcode_minus_L=yes
16179      hardcode_shlibpath_var=no
16180      ;;
16181
16182    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16183    freebsd* | dragonfly*)
16184      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16185      hardcode_libdir_flag_spec='-R$libdir'
16186      hardcode_direct=yes
16187      hardcode_shlibpath_var=no
16188      ;;
16189
16190    hpux9*)
16191      if test yes = "$GCC"; then
16192	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'
16193      else
16194	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'
16195      fi
16196      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16197      hardcode_libdir_separator=:
16198      hardcode_direct=yes
16199
16200      # hardcode_minus_L: Not really in the search PATH,
16201      # but as the default location of the library.
16202      hardcode_minus_L=yes
16203      export_dynamic_flag_spec='$wl-E'
16204      ;;
16205
16206    hpux10*)
16207      if test yes,no = "$GCC,$with_gnu_ld"; then
16208	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16209      else
16210	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16211      fi
16212      if test no = "$with_gnu_ld"; then
16213	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16214	hardcode_libdir_separator=:
16215	hardcode_direct=yes
16216	hardcode_direct_absolute=yes
16217	export_dynamic_flag_spec='$wl-E'
16218	# hardcode_minus_L: Not really in the search PATH,
16219	# but as the default location of the library.
16220	hardcode_minus_L=yes
16221      fi
16222      ;;
16223
16224    hpux11*)
16225      if test yes,no = "$GCC,$with_gnu_ld"; then
16226	case $host_cpu in
16227	hppa*64*)
16228	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16229	  ;;
16230	ia64*)
16231	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16232	  ;;
16233	*)
16234	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16235	  ;;
16236	esac
16237      else
16238	case $host_cpu in
16239	hppa*64*)
16240	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16241	  ;;
16242	ia64*)
16243	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16244	  ;;
16245	*)
16246
16247	  # Older versions of the 11.00 compiler do not understand -b yet
16248	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16249	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16250$as_echo_n "checking if $CC understands -b... " >&6; }
16251if ${lt_cv_prog_compiler__b+:} false; then :
16252  $as_echo_n "(cached) " >&6
16253else
16254  lt_cv_prog_compiler__b=no
16255   save_LDFLAGS=$LDFLAGS
16256   LDFLAGS="$LDFLAGS -b"
16257   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16258   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16259     # The linker can only warn and ignore the option if not recognized
16260     # So say no if there are warnings
16261     if test -s conftest.err; then
16262       # Append any errors to the config.log.
16263       cat conftest.err 1>&5
16264       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16265       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16266       if diff conftest.exp conftest.er2 >/dev/null; then
16267         lt_cv_prog_compiler__b=yes
16268       fi
16269     else
16270       lt_cv_prog_compiler__b=yes
16271     fi
16272   fi
16273   $RM -r conftest*
16274   LDFLAGS=$save_LDFLAGS
16275
16276fi
16277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16278$as_echo "$lt_cv_prog_compiler__b" >&6; }
16279
16280if test yes = "$lt_cv_prog_compiler__b"; then
16281    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16282else
16283    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16284fi
16285
16286	  ;;
16287	esac
16288      fi
16289      if test no = "$with_gnu_ld"; then
16290	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16291	hardcode_libdir_separator=:
16292
16293	case $host_cpu in
16294	hppa*64*|ia64*)
16295	  hardcode_direct=no
16296	  hardcode_shlibpath_var=no
16297	  ;;
16298	*)
16299	  hardcode_direct=yes
16300	  hardcode_direct_absolute=yes
16301	  export_dynamic_flag_spec='$wl-E'
16302
16303	  # hardcode_minus_L: Not really in the search PATH,
16304	  # but as the default location of the library.
16305	  hardcode_minus_L=yes
16306	  ;;
16307	esac
16308      fi
16309      ;;
16310
16311    irix5* | irix6* | nonstopux*)
16312      if test yes = "$GCC"; then
16313	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'
16314	# Try to use the -exported_symbol ld option, if it does not
16315	# work, assume that -exports_file does not work either and
16316	# implicitly export all symbols.
16317	# This should be the same for all languages, so no per-tag cache variable.
16318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16319$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16320if ${lt_cv_irix_exported_symbol+:} false; then :
16321  $as_echo_n "(cached) " >&6
16322else
16323  save_LDFLAGS=$LDFLAGS
16324	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16325	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h.  */
16327int foo (void) { return 0; }
16328_ACEOF
16329if ac_fn_c_try_link "$LINENO"; then :
16330  lt_cv_irix_exported_symbol=yes
16331else
16332  lt_cv_irix_exported_symbol=no
16333fi
16334rm -f core conftest.err conftest.$ac_objext \
16335    conftest$ac_exeext conftest.$ac_ext
16336           LDFLAGS=$save_LDFLAGS
16337fi
16338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16339$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16340	if test yes = "$lt_cv_irix_exported_symbol"; then
16341          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'
16342	fi
16343      else
16344	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'
16345	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'
16346      fi
16347      archive_cmds_need_lc='no'
16348      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16349      hardcode_libdir_separator=:
16350      inherit_rpath=yes
16351      link_all_deplibs=yes
16352      ;;
16353
16354    linux*)
16355      case $cc_basename in
16356      tcc*)
16357	# Fabrice Bellard et al's Tiny C Compiler
16358	ld_shlibs=yes
16359	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16360	;;
16361      esac
16362      ;;
16363
16364    netbsd*)
16365      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16366	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16367      else
16368	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16369      fi
16370      hardcode_libdir_flag_spec='-R$libdir'
16371      hardcode_direct=yes
16372      hardcode_shlibpath_var=no
16373      ;;
16374
16375    newsos6)
16376      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16377      hardcode_direct=yes
16378      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16379      hardcode_libdir_separator=:
16380      hardcode_shlibpath_var=no
16381      ;;
16382
16383    *nto* | *qnx*)
16384      ;;
16385
16386    openbsd* | bitrig*)
16387      if test -f /usr/libexec/ld.so; then
16388	hardcode_direct=yes
16389	hardcode_shlibpath_var=no
16390	hardcode_direct_absolute=yes
16391	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16392	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16393	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16394	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16395	  export_dynamic_flag_spec='$wl-E'
16396	else
16397	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16398	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16399	fi
16400      else
16401	ld_shlibs=no
16402      fi
16403      ;;
16404
16405    os2*)
16406      hardcode_libdir_flag_spec='-L$libdir'
16407      hardcode_minus_L=yes
16408      allow_undefined_flag=unsupported
16409      shrext_cmds=.dll
16410      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16411	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16412	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16413	$ECHO EXPORTS >> $output_objdir/$libname.def~
16414	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16415	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16416	emximp -o $lib $output_objdir/$libname.def'
16417      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16418	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16419	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16420	$ECHO EXPORTS >> $output_objdir/$libname.def~
16421	prefix_cmds="$SED"~
16422	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16423	  prefix_cmds="$prefix_cmds -e 1d";
16424	fi~
16425	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16426	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16427	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16428	emximp -o $lib $output_objdir/$libname.def'
16429      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16430      enable_shared_with_static_runtimes=yes
16431      ;;
16432
16433    osf3*)
16434      if test yes = "$GCC"; then
16435	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16436	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'
16437      else
16438	allow_undefined_flag=' -expect_unresolved \*'
16439	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'
16440      fi
16441      archive_cmds_need_lc='no'
16442      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16443      hardcode_libdir_separator=:
16444      ;;
16445
16446    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16447      if test yes = "$GCC"; then
16448	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16449	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'
16450	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16451      else
16452	allow_undefined_flag=' -expect_unresolved \*'
16453	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'
16454	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~
16455          $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'
16456
16457	# Both c and cxx compiler support -rpath directly
16458	hardcode_libdir_flag_spec='-rpath $libdir'
16459      fi
16460      archive_cmds_need_lc='no'
16461      hardcode_libdir_separator=:
16462      ;;
16463
16464    solaris*)
16465      no_undefined_flag=' -z defs'
16466      if test yes = "$GCC"; then
16467	wlarc='$wl'
16468	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16469	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16470          $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'
16471      else
16472	case `$CC -V 2>&1` in
16473	*"Compilers 5.0"*)
16474	  wlarc=''
16475	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16477            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16478	  ;;
16479	*)
16480	  wlarc='$wl'
16481	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16482	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16483            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16484	  ;;
16485	esac
16486      fi
16487      hardcode_libdir_flag_spec='-R$libdir'
16488      hardcode_shlibpath_var=no
16489      case $host_os in
16490      solaris2.[0-5] | solaris2.[0-5].*) ;;
16491      *)
16492	# The compiler driver will combine and reorder linker options,
16493	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16494	# but is careful enough not to reorder.
16495	# Supported since Solaris 2.6 (maybe 2.5.1?)
16496	if test yes = "$GCC"; then
16497	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16498	else
16499	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16500	fi
16501	;;
16502      esac
16503      link_all_deplibs=yes
16504      ;;
16505
16506    sunos4*)
16507      if test sequent = "$host_vendor"; then
16508	# Use $CC to link under sequent, because it throws in some extra .o
16509	# files that make .init and .fini sections work.
16510	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16511      else
16512	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16513      fi
16514      hardcode_libdir_flag_spec='-L$libdir'
16515      hardcode_direct=yes
16516      hardcode_minus_L=yes
16517      hardcode_shlibpath_var=no
16518      ;;
16519
16520    sysv4)
16521      case $host_vendor in
16522	sni)
16523	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524	  hardcode_direct=yes # is this really true???
16525	;;
16526	siemens)
16527	  ## LD is ld it makes a PLAMLIB
16528	  ## CC just makes a GrossModule.
16529	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16530	  reload_cmds='$CC -r -o $output$reload_objs'
16531	  hardcode_direct=no
16532        ;;
16533	motorola)
16534	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16535	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16536	;;
16537      esac
16538      runpath_var='LD_RUN_PATH'
16539      hardcode_shlibpath_var=no
16540      ;;
16541
16542    sysv4.3*)
16543      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16544      hardcode_shlibpath_var=no
16545      export_dynamic_flag_spec='-Bexport'
16546      ;;
16547
16548    sysv4*MP*)
16549      if test -d /usr/nec; then
16550	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16551	hardcode_shlibpath_var=no
16552	runpath_var=LD_RUN_PATH
16553	hardcode_runpath_var=yes
16554	ld_shlibs=yes
16555      fi
16556      ;;
16557
16558    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16559      no_undefined_flag='$wl-z,text'
16560      archive_cmds_need_lc=no
16561      hardcode_shlibpath_var=no
16562      runpath_var='LD_RUN_PATH'
16563
16564      if test yes = "$GCC"; then
16565	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16566	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567      else
16568	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16569	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16570      fi
16571      ;;
16572
16573    sysv5* | sco3.2v5* | sco5v6*)
16574      # Note: We CANNOT use -z defs as we might desire, because we do not
16575      # link with -lc, and that would cause any symbols used from libc to
16576      # always be unresolved, which means just about no library would
16577      # ever link correctly.  If we're not using GNU ld we use -z text
16578      # though, which does catch some bad symbols but isn't as heavy-handed
16579      # as -z defs.
16580      no_undefined_flag='$wl-z,text'
16581      allow_undefined_flag='$wl-z,nodefs'
16582      archive_cmds_need_lc=no
16583      hardcode_shlibpath_var=no
16584      hardcode_libdir_flag_spec='$wl-R,$libdir'
16585      hardcode_libdir_separator=':'
16586      link_all_deplibs=yes
16587      export_dynamic_flag_spec='$wl-Bexport'
16588      runpath_var='LD_RUN_PATH'
16589
16590      if test yes = "$GCC"; then
16591	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16592	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16593      else
16594	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16595	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16596      fi
16597      ;;
16598
16599    uts4*)
16600      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16601      hardcode_libdir_flag_spec='-L$libdir'
16602      hardcode_shlibpath_var=no
16603      ;;
16604
16605    *)
16606      ld_shlibs=no
16607      ;;
16608    esac
16609
16610    if test sni = "$host_vendor"; then
16611      case $host in
16612      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16613	export_dynamic_flag_spec='$wl-Blargedynsym'
16614	;;
16615      esac
16616    fi
16617  fi
16618
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16620$as_echo "$ld_shlibs" >&6; }
16621test no = "$ld_shlibs" && can_build_shared=no
16622
16623with_gnu_ld=$with_gnu_ld
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639#
16640# Do we need to explicitly link libc?
16641#
16642case "x$archive_cmds_need_lc" in
16643x|xyes)
16644  # Assume -lc should be added
16645  archive_cmds_need_lc=yes
16646
16647  if test yes,yes = "$GCC,$enable_shared"; then
16648    case $archive_cmds in
16649    *'~'*)
16650      # FIXME: we may have to deal with multi-command sequences.
16651      ;;
16652    '$CC '*)
16653      # Test whether the compiler implicitly links with -lc since on some
16654      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16655      # to ld, don't add -lc before -lgcc.
16656      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16657$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16658if ${lt_cv_archive_cmds_need_lc+:} false; then :
16659  $as_echo_n "(cached) " >&6
16660else
16661  $RM conftest*
16662	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16663
16664	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16665  (eval $ac_compile) 2>&5
16666  ac_status=$?
16667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16668  test $ac_status = 0; } 2>conftest.err; then
16669	  soname=conftest
16670	  lib=conftest
16671	  libobjs=conftest.$ac_objext
16672	  deplibs=
16673	  wl=$lt_prog_compiler_wl
16674	  pic_flag=$lt_prog_compiler_pic
16675	  compiler_flags=-v
16676	  linker_flags=-v
16677	  verstring=
16678	  output_objdir=.
16679	  libname=conftest
16680	  lt_save_allow_undefined_flag=$allow_undefined_flag
16681	  allow_undefined_flag=
16682	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16683  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16684  ac_status=$?
16685  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16686  test $ac_status = 0; }
16687	  then
16688	    lt_cv_archive_cmds_need_lc=no
16689	  else
16690	    lt_cv_archive_cmds_need_lc=yes
16691	  fi
16692	  allow_undefined_flag=$lt_save_allow_undefined_flag
16693	else
16694	  cat conftest.err 1>&5
16695	fi
16696	$RM conftest*
16697
16698fi
16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16700$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16701      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16702      ;;
16703    esac
16704  fi
16705  ;;
16706esac
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16860$as_echo_n "checking dynamic linker characteristics... " >&6; }
16861
16862if test yes = "$GCC"; then
16863  case $host_os in
16864    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16865    *) lt_awk_arg='/^libraries:/' ;;
16866  esac
16867  case $host_os in
16868    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16869    *) lt_sed_strip_eq='s|=/|/|g' ;;
16870  esac
16871  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16872  case $lt_search_path_spec in
16873  *\;*)
16874    # if the path contains ";" then we assume it to be the separator
16875    # otherwise default to the standard path separator (i.e. ":") - it is
16876    # assumed that no part of a normal pathname contains ";" but that should
16877    # okay in the real world where ";" in dirpaths is itself problematic.
16878    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16879    ;;
16880  *)
16881    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16882    ;;
16883  esac
16884  # Ok, now we have the path, separated by spaces, we can step through it
16885  # and add multilib dir if necessary...
16886  lt_tmp_lt_search_path_spec=
16887  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16888  # ...but if some path component already ends with the multilib dir we assume
16889  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16890  case "$lt_multi_os_dir; $lt_search_path_spec " in
16891  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16892    lt_multi_os_dir=
16893    ;;
16894  esac
16895  for lt_sys_path in $lt_search_path_spec; do
16896    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16897      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16898    elif test -n "$lt_multi_os_dir"; then
16899      test -d "$lt_sys_path" && \
16900	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16901    fi
16902  done
16903  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16904BEGIN {RS = " "; FS = "/|\n";} {
16905  lt_foo = "";
16906  lt_count = 0;
16907  for (lt_i = NF; lt_i > 0; lt_i--) {
16908    if ($lt_i != "" && $lt_i != ".") {
16909      if ($lt_i == "..") {
16910        lt_count++;
16911      } else {
16912        if (lt_count == 0) {
16913          lt_foo = "/" $lt_i lt_foo;
16914        } else {
16915          lt_count--;
16916        }
16917      }
16918    }
16919  }
16920  if (lt_foo != "") { lt_freq[lt_foo]++; }
16921  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16922}'`
16923  # AWK program above erroneously prepends '/' to C:/dos/paths
16924  # for these hosts.
16925  case $host_os in
16926    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16927      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16928  esac
16929  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16930else
16931  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16932fi
16933library_names_spec=
16934libname_spec='lib$name'
16935soname_spec=
16936shrext_cmds=.so
16937postinstall_cmds=
16938postuninstall_cmds=
16939finish_cmds=
16940finish_eval=
16941shlibpath_var=
16942shlibpath_overrides_runpath=unknown
16943version_type=none
16944dynamic_linker="$host_os ld.so"
16945sys_lib_dlsearch_path_spec="/lib /usr/lib"
16946need_lib_prefix=unknown
16947hardcode_into_libs=no
16948
16949# when you set need_version to no, make sure it does not cause -set_version
16950# flags to be left without arguments
16951need_version=unknown
16952
16953
16954
16955case $host_os in
16956aix3*)
16957  version_type=linux # correct to gnu/linux during the next big refactor
16958  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16959  shlibpath_var=LIBPATH
16960
16961  # AIX 3 has no versioning support, so we append a major version to the name.
16962  soname_spec='$libname$release$shared_ext$major'
16963  ;;
16964
16965aix[4-9]*)
16966  version_type=linux # correct to gnu/linux during the next big refactor
16967  need_lib_prefix=no
16968  need_version=no
16969  hardcode_into_libs=yes
16970  if test ia64 = "$host_cpu"; then
16971    # AIX 5 supports IA64
16972    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16973    shlibpath_var=LD_LIBRARY_PATH
16974  else
16975    # With GCC up to 2.95.x, collect2 would create an import file
16976    # for dependence libraries.  The import file would start with
16977    # the line '#! .'.  This would cause the generated library to
16978    # depend on '.', always an invalid library.  This was fixed in
16979    # development snapshots of GCC prior to 3.0.
16980    case $host_os in
16981      aix4 | aix4.[01] | aix4.[01].*)
16982      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16983	   echo ' yes '
16984	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16985	:
16986      else
16987	can_build_shared=no
16988      fi
16989      ;;
16990    esac
16991    # Using Import Files as archive members, it is possible to support
16992    # filename-based versioning of shared library archives on AIX. While
16993    # this would work for both with and without runtime linking, it will
16994    # prevent static linking of such archives. So we do filename-based
16995    # shared library versioning with .so extension only, which is used
16996    # when both runtime linking and shared linking is enabled.
16997    # Unfortunately, runtime linking may impact performance, so we do
16998    # not want this to be the default eventually. Also, we use the
16999    # versioned .so libs for executables only if there is the -brtl
17000    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17001    # To allow for filename-based versioning support, we need to create
17002    # libNAME.so.V as an archive file, containing:
17003    # *) an Import File, referring to the versioned filename of the
17004    #    archive as well as the shared archive member, telling the
17005    #    bitwidth (32 or 64) of that shared object, and providing the
17006    #    list of exported symbols of that shared object, eventually
17007    #    decorated with the 'weak' keyword
17008    # *) the shared object with the F_LOADONLY flag set, to really avoid
17009    #    it being seen by the linker.
17010    # At run time we better use the real file rather than another symlink,
17011    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17012
17013    case $with_aix_soname,$aix_use_runtimelinking in
17014    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17015    # soname into executable. Probably we can add versioning support to
17016    # collect2, so additional links can be useful in future.
17017    aix,yes) # traditional libtool
17018      dynamic_linker='AIX unversionable lib.so'
17019      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17020      # instead of lib<name>.a to let people know that these are not
17021      # typical AIX shared libraries.
17022      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17023      ;;
17024    aix,no) # traditional AIX only
17025      dynamic_linker='AIX lib.a(lib.so.V)'
17026      # We preserve .a as extension for shared libraries through AIX4.2
17027      # and later when we are not doing run time linking.
17028      library_names_spec='$libname$release.a $libname.a'
17029      soname_spec='$libname$release$shared_ext$major'
17030      ;;
17031    svr4,*) # full svr4 only
17032      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17033      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17034      # We do not specify a path in Import Files, so LIBPATH fires.
17035      shlibpath_overrides_runpath=yes
17036      ;;
17037    *,yes) # both, prefer svr4
17038      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17039      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17040      # unpreferred sharedlib libNAME.a needs extra handling
17041      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"'
17042      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"'
17043      # We do not specify a path in Import Files, so LIBPATH fires.
17044      shlibpath_overrides_runpath=yes
17045      ;;
17046    *,no) # both, prefer aix
17047      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17048      library_names_spec='$libname$release.a $libname.a'
17049      soname_spec='$libname$release$shared_ext$major'
17050      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17051      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)'
17052      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"'
17053      ;;
17054    esac
17055    shlibpath_var=LIBPATH
17056  fi
17057  ;;
17058
17059amigaos*)
17060  case $host_cpu in
17061  powerpc)
17062    # Since July 2007 AmigaOS4 officially supports .so libraries.
17063    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17064    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17065    ;;
17066  m68k)
17067    library_names_spec='$libname.ixlibrary $libname.a'
17068    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17069    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'
17070    ;;
17071  esac
17072  ;;
17073
17074beos*)
17075  library_names_spec='$libname$shared_ext'
17076  dynamic_linker="$host_os ld.so"
17077  shlibpath_var=LIBRARY_PATH
17078  ;;
17079
17080bsdi[45]*)
17081  version_type=linux # correct to gnu/linux during the next big refactor
17082  need_version=no
17083  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17084  soname_spec='$libname$release$shared_ext$major'
17085  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17086  shlibpath_var=LD_LIBRARY_PATH
17087  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17088  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17089  # the default ld.so.conf also contains /usr/contrib/lib and
17090  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17091  # libtool to hard-code these into programs
17092  ;;
17093
17094cygwin* | mingw* | pw32* | cegcc*)
17095  version_type=windows
17096  shrext_cmds=.dll
17097  need_version=no
17098  need_lib_prefix=no
17099
17100  case $GCC,$cc_basename in
17101  yes,*)
17102    # gcc
17103    library_names_spec='$libname.dll.a'
17104    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17105    postinstall_cmds='base_file=`basename \$file`~
17106      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17107      dldir=$destdir/`dirname \$dlpath`~
17108      test -d \$dldir || mkdir -p \$dldir~
17109      $install_prog $dir/$dlname \$dldir/$dlname~
17110      chmod a+x \$dldir/$dlname~
17111      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17112        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17113      fi'
17114    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17115      dlpath=$dir/\$dldll~
17116       $RM \$dlpath'
17117    shlibpath_overrides_runpath=yes
17118
17119    case $host_os in
17120    cygwin*)
17121      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17122      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17123
17124      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17125      ;;
17126    mingw* | cegcc*)
17127      # MinGW DLLs use traditional 'lib' prefix
17128      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17129      ;;
17130    pw32*)
17131      # pw32 DLLs use 'pw' prefix rather than 'lib'
17132      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17133      ;;
17134    esac
17135    dynamic_linker='Win32 ld.exe'
17136    ;;
17137
17138  *,cl*)
17139    # Native MSVC
17140    libname_spec='$name'
17141    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17142    library_names_spec='$libname.dll.lib'
17143
17144    case $build_os in
17145    mingw*)
17146      sys_lib_search_path_spec=
17147      lt_save_ifs=$IFS
17148      IFS=';'
17149      for lt_path in $LIB
17150      do
17151        IFS=$lt_save_ifs
17152        # Let DOS variable expansion print the short 8.3 style file name.
17153        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17154        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17155      done
17156      IFS=$lt_save_ifs
17157      # Convert to MSYS style.
17158      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17159      ;;
17160    cygwin*)
17161      # Convert to unix form, then to dos form, then back to unix form
17162      # but this time dos style (no spaces!) so that the unix form looks
17163      # like /cygdrive/c/PROGRA~1:/cygdr...
17164      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17165      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17166      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17167      ;;
17168    *)
17169      sys_lib_search_path_spec=$LIB
17170      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17171        # It is most probably a Windows format PATH.
17172        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17173      else
17174        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17175      fi
17176      # FIXME: find the short name or the path components, as spaces are
17177      # common. (e.g. "Program Files" -> "PROGRA~1")
17178      ;;
17179    esac
17180
17181    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17182    postinstall_cmds='base_file=`basename \$file`~
17183      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17184      dldir=$destdir/`dirname \$dlpath`~
17185      test -d \$dldir || mkdir -p \$dldir~
17186      $install_prog $dir/$dlname \$dldir/$dlname'
17187    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17188      dlpath=$dir/\$dldll~
17189       $RM \$dlpath'
17190    shlibpath_overrides_runpath=yes
17191    dynamic_linker='Win32 link.exe'
17192    ;;
17193
17194  *)
17195    # Assume MSVC wrapper
17196    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17197    dynamic_linker='Win32 ld.exe'
17198    ;;
17199  esac
17200  # FIXME: first we should search . and the directory the executable is in
17201  shlibpath_var=PATH
17202  ;;
17203
17204darwin* | rhapsody*)
17205  dynamic_linker="$host_os dyld"
17206  version_type=darwin
17207  need_lib_prefix=no
17208  need_version=no
17209  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17210  soname_spec='$libname$release$major$shared_ext'
17211  shlibpath_overrides_runpath=yes
17212  shlibpath_var=DYLD_LIBRARY_PATH
17213  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17214
17215  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17216  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17217  ;;
17218
17219dgux*)
17220  version_type=linux # correct to gnu/linux during the next big refactor
17221  need_lib_prefix=no
17222  need_version=no
17223  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17224  soname_spec='$libname$release$shared_ext$major'
17225  shlibpath_var=LD_LIBRARY_PATH
17226  ;;
17227
17228freebsd* | dragonfly*)
17229  # DragonFly does not have aout.  When/if they implement a new
17230  # versioning mechanism, adjust this.
17231  if test -x /usr/bin/objformat; then
17232    objformat=`/usr/bin/objformat`
17233  else
17234    case $host_os in
17235    freebsd[23].*) objformat=aout ;;
17236    *) objformat=elf ;;
17237    esac
17238  fi
17239  # Handle Gentoo/FreeBSD as it was Linux
17240  case $host_vendor in
17241    gentoo)
17242      version_type=linux ;;
17243    *)
17244      version_type=freebsd-$objformat ;;
17245  esac
17246
17247  case $version_type in
17248    freebsd-elf*)
17249      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17250      soname_spec='$libname$release$shared_ext$major'
17251      need_version=no
17252      need_lib_prefix=no
17253      ;;
17254    freebsd-*)
17255      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17256      need_version=yes
17257      ;;
17258    linux)
17259      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17260      soname_spec='${libname}${release}${shared_ext}$major'
17261      need_lib_prefix=no
17262      need_version=no
17263      ;;
17264  esac
17265  shlibpath_var=LD_LIBRARY_PATH
17266  case $host_os in
17267  freebsd2.*)
17268    shlibpath_overrides_runpath=yes
17269    ;;
17270  freebsd3.[01]* | freebsdelf3.[01]*)
17271    shlibpath_overrides_runpath=yes
17272    hardcode_into_libs=yes
17273    ;;
17274  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17275  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17276    shlibpath_overrides_runpath=no
17277    hardcode_into_libs=yes
17278    ;;
17279  *) # from 4.6 on, and DragonFly
17280    shlibpath_overrides_runpath=yes
17281    hardcode_into_libs=yes
17282    ;;
17283  esac
17284  ;;
17285
17286haiku*)
17287  version_type=linux # correct to gnu/linux during the next big refactor
17288  need_lib_prefix=no
17289  need_version=no
17290  dynamic_linker="$host_os runtime_loader"
17291  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17292  soname_spec='$libname$release$shared_ext$major'
17293  shlibpath_var=LIBRARY_PATH
17294  shlibpath_overrides_runpath=no
17295  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17296  hardcode_into_libs=yes
17297  ;;
17298
17299hpux9* | hpux10* | hpux11*)
17300  # Give a soname corresponding to the major version so that dld.sl refuses to
17301  # link against other versions.
17302  version_type=sunos
17303  need_lib_prefix=no
17304  need_version=no
17305  case $host_cpu in
17306  ia64*)
17307    shrext_cmds='.so'
17308    hardcode_into_libs=yes
17309    dynamic_linker="$host_os dld.so"
17310    shlibpath_var=LD_LIBRARY_PATH
17311    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17312    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17313    soname_spec='$libname$release$shared_ext$major'
17314    if test 32 = "$HPUX_IA64_MODE"; then
17315      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17316      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17317    else
17318      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17319      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17320    fi
17321    ;;
17322  hppa*64*)
17323    shrext_cmds='.sl'
17324    hardcode_into_libs=yes
17325    dynamic_linker="$host_os dld.sl"
17326    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17327    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17328    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17329    soname_spec='$libname$release$shared_ext$major'
17330    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17331    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17332    ;;
17333  *)
17334    shrext_cmds='.sl'
17335    dynamic_linker="$host_os dld.sl"
17336    shlibpath_var=SHLIB_PATH
17337    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17338    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17339    soname_spec='$libname$release$shared_ext$major'
17340    ;;
17341  esac
17342  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17343  postinstall_cmds='chmod 555 $lib'
17344  # or fails outright, so override atomically:
17345  install_override_mode=555
17346  ;;
17347
17348interix[3-9]*)
17349  version_type=linux # correct to gnu/linux during the next big refactor
17350  need_lib_prefix=no
17351  need_version=no
17352  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17353  soname_spec='$libname$release$shared_ext$major'
17354  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17355  shlibpath_var=LD_LIBRARY_PATH
17356  shlibpath_overrides_runpath=no
17357  hardcode_into_libs=yes
17358  ;;
17359
17360irix5* | irix6* | nonstopux*)
17361  case $host_os in
17362    nonstopux*) version_type=nonstopux ;;
17363    *)
17364	if test yes = "$lt_cv_prog_gnu_ld"; then
17365		version_type=linux # correct to gnu/linux during the next big refactor
17366	else
17367		version_type=irix
17368	fi ;;
17369  esac
17370  need_lib_prefix=no
17371  need_version=no
17372  soname_spec='$libname$release$shared_ext$major'
17373  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17374  case $host_os in
17375  irix5* | nonstopux*)
17376    libsuff= shlibsuff=
17377    ;;
17378  *)
17379    case $LD in # libtool.m4 will add one of these switches to LD
17380    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17381      libsuff= shlibsuff= libmagic=32-bit;;
17382    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17383      libsuff=32 shlibsuff=N32 libmagic=N32;;
17384    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17385      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17386    *) libsuff= shlibsuff= libmagic=never-match;;
17387    esac
17388    ;;
17389  esac
17390  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17391  shlibpath_overrides_runpath=no
17392  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17393  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17394  hardcode_into_libs=yes
17395  ;;
17396
17397# No shared lib support for Linux oldld, aout, or coff.
17398linux*oldld* | linux*aout* | linux*coff*)
17399  dynamic_linker=no
17400  ;;
17401
17402linux*android*)
17403  version_type=none # Android doesn't support versioned libraries.
17404  need_lib_prefix=no
17405  need_version=no
17406  library_names_spec='$libname$release$shared_ext'
17407  soname_spec='$libname$release$shared_ext'
17408  finish_cmds=
17409  shlibpath_var=LD_LIBRARY_PATH
17410  shlibpath_overrides_runpath=yes
17411
17412  # This implies no fast_install, which is unacceptable.
17413  # Some rework will be needed to allow for fast_install
17414  # before this can be enabled.
17415  hardcode_into_libs=yes
17416
17417  dynamic_linker='Android linker'
17418  # Don't embed -rpath directories since the linker doesn't support them.
17419  hardcode_libdir_flag_spec='-L$libdir'
17420  ;;
17421
17422# This must be glibc/ELF.
17423linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17424  version_type=linux # correct to gnu/linux during the next big refactor
17425  need_lib_prefix=no
17426  need_version=no
17427  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17428  soname_spec='$libname$release$shared_ext$major'
17429  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17430  shlibpath_var=LD_LIBRARY_PATH
17431  shlibpath_overrides_runpath=no
17432
17433  # Some binutils ld are patched to set DT_RUNPATH
17434  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17435  $as_echo_n "(cached) " >&6
17436else
17437  lt_cv_shlibpath_overrides_runpath=no
17438    save_LDFLAGS=$LDFLAGS
17439    save_libdir=$libdir
17440    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17441	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17443/* end confdefs.h.  */
17444
17445int
17446main ()
17447{
17448
17449  ;
17450  return 0;
17451}
17452_ACEOF
17453if ac_fn_c_try_link "$LINENO"; then :
17454  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17455  lt_cv_shlibpath_overrides_runpath=yes
17456fi
17457fi
17458rm -f core conftest.err conftest.$ac_objext \
17459    conftest$ac_exeext conftest.$ac_ext
17460    LDFLAGS=$save_LDFLAGS
17461    libdir=$save_libdir
17462
17463fi
17464
17465  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17466
17467  # This implies no fast_install, which is unacceptable.
17468  # Some rework will be needed to allow for fast_install
17469  # before this can be enabled.
17470  hardcode_into_libs=yes
17471
17472  # Ideally, we could use ldconfig to report *all* directores which are
17473  # searched for libraries, however this is still not possible.  Aside from not
17474  # being certain /sbin/ldconfig is available, command
17475  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17476  # even though it is searched at run-time.  Try to do the best guess by
17477  # appending ld.so.conf contents (and includes) to the search path.
17478  if test -f /etc/ld.so.conf; then
17479    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' ' '`
17480    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17481  fi
17482
17483  # We used to test for /lib/ld.so.1 and disable shared libraries on
17484  # powerpc, because MkLinux only supported shared libraries with the
17485  # GNU dynamic linker.  Since this was broken with cross compilers,
17486  # most powerpc-linux boxes support dynamic linking these days and
17487  # people can always --disable-shared, the test was removed, and we
17488  # assume the GNU/Linux dynamic linker is in use.
17489  dynamic_linker='GNU/Linux ld.so'
17490  ;;
17491
17492netbsd*)
17493  version_type=sunos
17494  need_lib_prefix=no
17495  need_version=no
17496  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17497    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17498    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17499    dynamic_linker='NetBSD (a.out) ld.so'
17500  else
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    dynamic_linker='NetBSD ld.elf_so'
17504  fi
17505  shlibpath_var=LD_LIBRARY_PATH
17506  shlibpath_overrides_runpath=yes
17507  hardcode_into_libs=yes
17508  ;;
17509
17510newsos6)
17511  version_type=linux # correct to gnu/linux during the next big refactor
17512  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17513  shlibpath_var=LD_LIBRARY_PATH
17514  shlibpath_overrides_runpath=yes
17515  ;;
17516
17517*nto* | *qnx*)
17518  version_type=qnx
17519  need_lib_prefix=no
17520  need_version=no
17521  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17522  soname_spec='$libname$release$shared_ext$major'
17523  shlibpath_var=LD_LIBRARY_PATH
17524  shlibpath_overrides_runpath=no
17525  hardcode_into_libs=yes
17526  dynamic_linker='ldqnx.so'
17527  ;;
17528
17529openbsd* | bitrig*)
17530  version_type=sunos
17531  sys_lib_dlsearch_path_spec=/usr/lib
17532  need_lib_prefix=no
17533  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17534    need_version=no
17535  else
17536    need_version=yes
17537  fi
17538  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17539  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17540  shlibpath_var=LD_LIBRARY_PATH
17541  shlibpath_overrides_runpath=yes
17542  ;;
17543
17544os2*)
17545  libname_spec='$name'
17546  version_type=windows
17547  shrext_cmds=.dll
17548  need_version=no
17549  need_lib_prefix=no
17550  # OS/2 can only load a DLL with a base name of 8 characters or less.
17551  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17552    v=$($ECHO $release$versuffix | tr -d .-);
17553    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17554    $ECHO $n$v`$shared_ext'
17555  library_names_spec='${libname}_dll.$libext'
17556  dynamic_linker='OS/2 ld.exe'
17557  shlibpath_var=BEGINLIBPATH
17558  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17559  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17560  postinstall_cmds='base_file=`basename \$file`~
17561    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17562    dldir=$destdir/`dirname \$dlpath`~
17563    test -d \$dldir || mkdir -p \$dldir~
17564    $install_prog $dir/$dlname \$dldir/$dlname~
17565    chmod a+x \$dldir/$dlname~
17566    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17567      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17568    fi'
17569  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17570    dlpath=$dir/\$dldll~
17571    $RM \$dlpath'
17572  ;;
17573
17574osf3* | osf4* | osf5*)
17575  version_type=osf
17576  need_lib_prefix=no
17577  need_version=no
17578  soname_spec='$libname$release$shared_ext$major'
17579  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17580  shlibpath_var=LD_LIBRARY_PATH
17581  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17582  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17583  ;;
17584
17585rdos*)
17586  dynamic_linker=no
17587  ;;
17588
17589solaris*)
17590  version_type=linux # correct to gnu/linux during the next big refactor
17591  need_lib_prefix=no
17592  need_version=no
17593  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17594  soname_spec='$libname$release$shared_ext$major'
17595  shlibpath_var=LD_LIBRARY_PATH
17596  shlibpath_overrides_runpath=yes
17597  hardcode_into_libs=yes
17598  # ldd complains unless libraries are executable
17599  postinstall_cmds='chmod +x $lib'
17600  ;;
17601
17602sunos4*)
17603  version_type=sunos
17604  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17605  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17606  shlibpath_var=LD_LIBRARY_PATH
17607  shlibpath_overrides_runpath=yes
17608  if test yes = "$with_gnu_ld"; then
17609    need_lib_prefix=no
17610  fi
17611  need_version=yes
17612  ;;
17613
17614sysv4 | sysv4.3*)
17615  version_type=linux # correct to gnu/linux during the next big refactor
17616  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17617  soname_spec='$libname$release$shared_ext$major'
17618  shlibpath_var=LD_LIBRARY_PATH
17619  case $host_vendor in
17620    sni)
17621      shlibpath_overrides_runpath=no
17622      need_lib_prefix=no
17623      runpath_var=LD_RUN_PATH
17624      ;;
17625    siemens)
17626      need_lib_prefix=no
17627      ;;
17628    motorola)
17629      need_lib_prefix=no
17630      need_version=no
17631      shlibpath_overrides_runpath=no
17632      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17633      ;;
17634  esac
17635  ;;
17636
17637sysv4*MP*)
17638  if test -d /usr/nec; then
17639    version_type=linux # correct to gnu/linux during the next big refactor
17640    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17641    soname_spec='$libname$shared_ext.$major'
17642    shlibpath_var=LD_LIBRARY_PATH
17643  fi
17644  ;;
17645
17646sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17647  version_type=sco
17648  need_lib_prefix=no
17649  need_version=no
17650  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17651  soname_spec='$libname$release$shared_ext$major'
17652  shlibpath_var=LD_LIBRARY_PATH
17653  shlibpath_overrides_runpath=yes
17654  hardcode_into_libs=yes
17655  if test yes = "$with_gnu_ld"; then
17656    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17657  else
17658    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17659    case $host_os in
17660      sco3.2v5*)
17661        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17662	;;
17663    esac
17664  fi
17665  sys_lib_dlsearch_path_spec='/usr/lib'
17666  ;;
17667
17668tpf*)
17669  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17670  version_type=linux # correct to gnu/linux during the next big refactor
17671  need_lib_prefix=no
17672  need_version=no
17673  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17674  shlibpath_var=LD_LIBRARY_PATH
17675  shlibpath_overrides_runpath=no
17676  hardcode_into_libs=yes
17677  ;;
17678
17679uts4*)
17680  version_type=linux # correct to gnu/linux during the next big refactor
17681  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17682  soname_spec='$libname$release$shared_ext$major'
17683  shlibpath_var=LD_LIBRARY_PATH
17684  ;;
17685
17686*)
17687  dynamic_linker=no
17688  ;;
17689esac
17690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17691$as_echo "$dynamic_linker" >&6; }
17692test no = "$dynamic_linker" && can_build_shared=no
17693
17694variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17695if test yes = "$GCC"; then
17696  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17697fi
17698
17699if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17700  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17701fi
17702
17703if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17704  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17705fi
17706
17707# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17708configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17709
17710# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17711func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17712
17713# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17714configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17813$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17814hardcode_action=
17815if test -n "$hardcode_libdir_flag_spec" ||
17816   test -n "$runpath_var" ||
17817   test yes = "$hardcode_automatic"; then
17818
17819  # We can hardcode non-existent directories.
17820  if test no != "$hardcode_direct" &&
17821     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17822     # have to relink, otherwise we might link with an installed library
17823     # when we should be linking with a yet-to-be-installed one
17824     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17825     test no != "$hardcode_minus_L"; then
17826    # Linking always hardcodes the temporary library directory.
17827    hardcode_action=relink
17828  else
17829    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17830    hardcode_action=immediate
17831  fi
17832else
17833  # We cannot hardcode anything, or else we can only hardcode existing
17834  # directories.
17835  hardcode_action=unsupported
17836fi
17837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17838$as_echo "$hardcode_action" >&6; }
17839
17840if test relink = "$hardcode_action" ||
17841   test yes = "$inherit_rpath"; then
17842  # Fast installation is not supported
17843  enable_fast_install=no
17844elif test yes = "$shlibpath_overrides_runpath" ||
17845     test no = "$enable_shared"; then
17846  # Fast installation is not necessary
17847  enable_fast_install=needless
17848fi
17849
17850
17851
17852
17853
17854
17855  if test yes != "$enable_dlopen"; then
17856  enable_dlopen=unknown
17857  enable_dlopen_self=unknown
17858  enable_dlopen_self_static=unknown
17859else
17860  lt_cv_dlopen=no
17861  lt_cv_dlopen_libs=
17862
17863  case $host_os in
17864  beos*)
17865    lt_cv_dlopen=load_add_on
17866    lt_cv_dlopen_libs=
17867    lt_cv_dlopen_self=yes
17868    ;;
17869
17870  mingw* | pw32* | cegcc*)
17871    lt_cv_dlopen=LoadLibrary
17872    lt_cv_dlopen_libs=
17873    ;;
17874
17875  cygwin*)
17876    lt_cv_dlopen=dlopen
17877    lt_cv_dlopen_libs=
17878    ;;
17879
17880  darwin*)
17881    # if libdl is installed we need to link against it
17882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17883$as_echo_n "checking for dlopen in -ldl... " >&6; }
17884if ${ac_cv_lib_dl_dlopen+:} false; then :
17885  $as_echo_n "(cached) " >&6
17886else
17887  ac_check_lib_save_LIBS=$LIBS
17888LIBS="-ldl  $LIBS"
17889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891
17892/* Override any GCC internal prototype to avoid an error.
17893   Use char because int might match the return type of a GCC
17894   builtin and then its argument prototype would still apply.  */
17895#ifdef __cplusplus
17896extern "C"
17897#endif
17898char dlopen ();
17899int
17900main ()
17901{
17902return dlopen ();
17903  ;
17904  return 0;
17905}
17906_ACEOF
17907if ac_fn_c_try_link "$LINENO"; then :
17908  ac_cv_lib_dl_dlopen=yes
17909else
17910  ac_cv_lib_dl_dlopen=no
17911fi
17912rm -f core conftest.err conftest.$ac_objext \
17913    conftest$ac_exeext conftest.$ac_ext
17914LIBS=$ac_check_lib_save_LIBS
17915fi
17916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17917$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17918if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17919  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17920else
17921
17922    lt_cv_dlopen=dyld
17923    lt_cv_dlopen_libs=
17924    lt_cv_dlopen_self=yes
17925
17926fi
17927
17928    ;;
17929
17930  tpf*)
17931    # Don't try to run any link tests for TPF.  We know it's impossible
17932    # because TPF is a cross-compiler, and we know how we open DSOs.
17933    lt_cv_dlopen=dlopen
17934    lt_cv_dlopen_libs=
17935    lt_cv_dlopen_self=no
17936    ;;
17937
17938  *)
17939    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17940if test "x$ac_cv_func_shl_load" = xyes; then :
17941  lt_cv_dlopen=shl_load
17942else
17943  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17944$as_echo_n "checking for shl_load in -ldld... " >&6; }
17945if ${ac_cv_lib_dld_shl_load+:} false; then :
17946  $as_echo_n "(cached) " >&6
17947else
17948  ac_check_lib_save_LIBS=$LIBS
17949LIBS="-ldld  $LIBS"
17950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17951/* end confdefs.h.  */
17952
17953/* Override any GCC internal prototype to avoid an error.
17954   Use char because int might match the return type of a GCC
17955   builtin and then its argument prototype would still apply.  */
17956#ifdef __cplusplus
17957extern "C"
17958#endif
17959char shl_load ();
17960int
17961main ()
17962{
17963return shl_load ();
17964  ;
17965  return 0;
17966}
17967_ACEOF
17968if ac_fn_c_try_link "$LINENO"; then :
17969  ac_cv_lib_dld_shl_load=yes
17970else
17971  ac_cv_lib_dld_shl_load=no
17972fi
17973rm -f core conftest.err conftest.$ac_objext \
17974    conftest$ac_exeext conftest.$ac_ext
17975LIBS=$ac_check_lib_save_LIBS
17976fi
17977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17978$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17979if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17980  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17981else
17982  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17983if test "x$ac_cv_func_dlopen" = xyes; then :
17984  lt_cv_dlopen=dlopen
17985else
17986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17987$as_echo_n "checking for dlopen in -ldl... " >&6; }
17988if ${ac_cv_lib_dl_dlopen+:} false; then :
17989  $as_echo_n "(cached) " >&6
17990else
17991  ac_check_lib_save_LIBS=$LIBS
17992LIBS="-ldl  $LIBS"
17993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994/* end confdefs.h.  */
17995
17996/* Override any GCC internal prototype to avoid an error.
17997   Use char because int might match the return type of a GCC
17998   builtin and then its argument prototype would still apply.  */
17999#ifdef __cplusplus
18000extern "C"
18001#endif
18002char dlopen ();
18003int
18004main ()
18005{
18006return dlopen ();
18007  ;
18008  return 0;
18009}
18010_ACEOF
18011if ac_fn_c_try_link "$LINENO"; then :
18012  ac_cv_lib_dl_dlopen=yes
18013else
18014  ac_cv_lib_dl_dlopen=no
18015fi
18016rm -f core conftest.err conftest.$ac_objext \
18017    conftest$ac_exeext conftest.$ac_ext
18018LIBS=$ac_check_lib_save_LIBS
18019fi
18020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18021$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18022if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18023  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18024else
18025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18026$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18027if ${ac_cv_lib_svld_dlopen+:} false; then :
18028  $as_echo_n "(cached) " >&6
18029else
18030  ac_check_lib_save_LIBS=$LIBS
18031LIBS="-lsvld  $LIBS"
18032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033/* end confdefs.h.  */
18034
18035/* Override any GCC internal prototype to avoid an error.
18036   Use char because int might match the return type of a GCC
18037   builtin and then its argument prototype would still apply.  */
18038#ifdef __cplusplus
18039extern "C"
18040#endif
18041char dlopen ();
18042int
18043main ()
18044{
18045return dlopen ();
18046  ;
18047  return 0;
18048}
18049_ACEOF
18050if ac_fn_c_try_link "$LINENO"; then :
18051  ac_cv_lib_svld_dlopen=yes
18052else
18053  ac_cv_lib_svld_dlopen=no
18054fi
18055rm -f core conftest.err conftest.$ac_objext \
18056    conftest$ac_exeext conftest.$ac_ext
18057LIBS=$ac_check_lib_save_LIBS
18058fi
18059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18060$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18061if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18062  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18063else
18064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18065$as_echo_n "checking for dld_link in -ldld... " >&6; }
18066if ${ac_cv_lib_dld_dld_link+:} false; then :
18067  $as_echo_n "(cached) " >&6
18068else
18069  ac_check_lib_save_LIBS=$LIBS
18070LIBS="-ldld  $LIBS"
18071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18072/* end confdefs.h.  */
18073
18074/* Override any GCC internal prototype to avoid an error.
18075   Use char because int might match the return type of a GCC
18076   builtin and then its argument prototype would still apply.  */
18077#ifdef __cplusplus
18078extern "C"
18079#endif
18080char dld_link ();
18081int
18082main ()
18083{
18084return dld_link ();
18085  ;
18086  return 0;
18087}
18088_ACEOF
18089if ac_fn_c_try_link "$LINENO"; then :
18090  ac_cv_lib_dld_dld_link=yes
18091else
18092  ac_cv_lib_dld_dld_link=no
18093fi
18094rm -f core conftest.err conftest.$ac_objext \
18095    conftest$ac_exeext conftest.$ac_ext
18096LIBS=$ac_check_lib_save_LIBS
18097fi
18098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18099$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18100if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18101  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18102fi
18103
18104
18105fi
18106
18107
18108fi
18109
18110
18111fi
18112
18113
18114fi
18115
18116
18117fi
18118
18119    ;;
18120  esac
18121
18122  if test no = "$lt_cv_dlopen"; then
18123    enable_dlopen=no
18124  else
18125    enable_dlopen=yes
18126  fi
18127
18128  case $lt_cv_dlopen in
18129  dlopen)
18130    save_CPPFLAGS=$CPPFLAGS
18131    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18132
18133    save_LDFLAGS=$LDFLAGS
18134    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18135
18136    save_LIBS=$LIBS
18137    LIBS="$lt_cv_dlopen_libs $LIBS"
18138
18139    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18140$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18141if ${lt_cv_dlopen_self+:} false; then :
18142  $as_echo_n "(cached) " >&6
18143else
18144  	  if test yes = "$cross_compiling"; then :
18145  lt_cv_dlopen_self=cross
18146else
18147  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18148  lt_status=$lt_dlunknown
18149  cat > conftest.$ac_ext <<_LT_EOF
18150#line $LINENO "configure"
18151#include "confdefs.h"
18152
18153#if HAVE_DLFCN_H
18154#include <dlfcn.h>
18155#endif
18156
18157#include <stdio.h>
18158
18159#ifdef RTLD_GLOBAL
18160#  define LT_DLGLOBAL		RTLD_GLOBAL
18161#else
18162#  ifdef DL_GLOBAL
18163#    define LT_DLGLOBAL		DL_GLOBAL
18164#  else
18165#    define LT_DLGLOBAL		0
18166#  endif
18167#endif
18168
18169/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18170   find out it does not work in some platform. */
18171#ifndef LT_DLLAZY_OR_NOW
18172#  ifdef RTLD_LAZY
18173#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18174#  else
18175#    ifdef DL_LAZY
18176#      define LT_DLLAZY_OR_NOW		DL_LAZY
18177#    else
18178#      ifdef RTLD_NOW
18179#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18180#      else
18181#        ifdef DL_NOW
18182#          define LT_DLLAZY_OR_NOW	DL_NOW
18183#        else
18184#          define LT_DLLAZY_OR_NOW	0
18185#        endif
18186#      endif
18187#    endif
18188#  endif
18189#endif
18190
18191/* When -fvisibility=hidden is used, assume the code has been annotated
18192   correspondingly for the symbols needed.  */
18193#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18194int fnord () __attribute__((visibility("default")));
18195#endif
18196
18197int fnord () { return 42; }
18198int main ()
18199{
18200  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18201  int status = $lt_dlunknown;
18202
18203  if (self)
18204    {
18205      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18206      else
18207        {
18208	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18209          else puts (dlerror ());
18210	}
18211      /* dlclose (self); */
18212    }
18213  else
18214    puts (dlerror ());
18215
18216  return status;
18217}
18218_LT_EOF
18219  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18220  (eval $ac_link) 2>&5
18221  ac_status=$?
18222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18223  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18224    (./conftest; exit; ) >&5 2>/dev/null
18225    lt_status=$?
18226    case x$lt_status in
18227      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18228      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18229      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18230    esac
18231  else :
18232    # compilation failed
18233    lt_cv_dlopen_self=no
18234  fi
18235fi
18236rm -fr conftest*
18237
18238
18239fi
18240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18241$as_echo "$lt_cv_dlopen_self" >&6; }
18242
18243    if test yes = "$lt_cv_dlopen_self"; then
18244      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18245      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18246$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18247if ${lt_cv_dlopen_self_static+:} false; then :
18248  $as_echo_n "(cached) " >&6
18249else
18250  	  if test yes = "$cross_compiling"; then :
18251  lt_cv_dlopen_self_static=cross
18252else
18253  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18254  lt_status=$lt_dlunknown
18255  cat > conftest.$ac_ext <<_LT_EOF
18256#line $LINENO "configure"
18257#include "confdefs.h"
18258
18259#if HAVE_DLFCN_H
18260#include <dlfcn.h>
18261#endif
18262
18263#include <stdio.h>
18264
18265#ifdef RTLD_GLOBAL
18266#  define LT_DLGLOBAL		RTLD_GLOBAL
18267#else
18268#  ifdef DL_GLOBAL
18269#    define LT_DLGLOBAL		DL_GLOBAL
18270#  else
18271#    define LT_DLGLOBAL		0
18272#  endif
18273#endif
18274
18275/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18276   find out it does not work in some platform. */
18277#ifndef LT_DLLAZY_OR_NOW
18278#  ifdef RTLD_LAZY
18279#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18280#  else
18281#    ifdef DL_LAZY
18282#      define LT_DLLAZY_OR_NOW		DL_LAZY
18283#    else
18284#      ifdef RTLD_NOW
18285#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18286#      else
18287#        ifdef DL_NOW
18288#          define LT_DLLAZY_OR_NOW	DL_NOW
18289#        else
18290#          define LT_DLLAZY_OR_NOW	0
18291#        endif
18292#      endif
18293#    endif
18294#  endif
18295#endif
18296
18297/* When -fvisibility=hidden is used, assume the code has been annotated
18298   correspondingly for the symbols needed.  */
18299#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18300int fnord () __attribute__((visibility("default")));
18301#endif
18302
18303int fnord () { return 42; }
18304int main ()
18305{
18306  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18307  int status = $lt_dlunknown;
18308
18309  if (self)
18310    {
18311      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18312      else
18313        {
18314	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18315          else puts (dlerror ());
18316	}
18317      /* dlclose (self); */
18318    }
18319  else
18320    puts (dlerror ());
18321
18322  return status;
18323}
18324_LT_EOF
18325  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18326  (eval $ac_link) 2>&5
18327  ac_status=$?
18328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18329  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18330    (./conftest; exit; ) >&5 2>/dev/null
18331    lt_status=$?
18332    case x$lt_status in
18333      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18334      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18335      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18336    esac
18337  else :
18338    # compilation failed
18339    lt_cv_dlopen_self_static=no
18340  fi
18341fi
18342rm -fr conftest*
18343
18344
18345fi
18346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18347$as_echo "$lt_cv_dlopen_self_static" >&6; }
18348    fi
18349
18350    CPPFLAGS=$save_CPPFLAGS
18351    LDFLAGS=$save_LDFLAGS
18352    LIBS=$save_LIBS
18353    ;;
18354  esac
18355
18356  case $lt_cv_dlopen_self in
18357  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18358  *) enable_dlopen_self=unknown ;;
18359  esac
18360
18361  case $lt_cv_dlopen_self_static in
18362  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18363  *) enable_dlopen_self_static=unknown ;;
18364  esac
18365fi
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383striplib=
18384old_striplib=
18385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18386$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18387if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18388  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18389  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18391$as_echo "yes" >&6; }
18392else
18393# FIXME - insert some real tests, host_os isn't really good enough
18394  case $host_os in
18395  darwin*)
18396    if test -n "$STRIP"; then
18397      striplib="$STRIP -x"
18398      old_striplib="$STRIP -S"
18399      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18400$as_echo "yes" >&6; }
18401    else
18402      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18403$as_echo "no" >&6; }
18404    fi
18405    ;;
18406  *)
18407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18408$as_echo "no" >&6; }
18409    ;;
18410  esac
18411fi
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424  # Report what library types will actually be built
18425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18426$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18428$as_echo "$can_build_shared" >&6; }
18429
18430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18431$as_echo_n "checking whether to build shared libraries... " >&6; }
18432  test no = "$can_build_shared" && enable_shared=no
18433
18434  # On AIX, shared libraries and static libraries use the same namespace, and
18435  # are all built from PIC.
18436  case $host_os in
18437  aix3*)
18438    test yes = "$enable_shared" && enable_static=no
18439    if test -n "$RANLIB"; then
18440      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18441      postinstall_cmds='$RANLIB $lib'
18442    fi
18443    ;;
18444
18445  aix[4-9]*)
18446    if test ia64 != "$host_cpu"; then
18447      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18448      yes,aix,yes) ;;			# shared object as lib.so file only
18449      yes,svr4,*) ;;			# shared object as lib.so archive member only
18450      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18451      esac
18452    fi
18453    ;;
18454  esac
18455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18456$as_echo "$enable_shared" >&6; }
18457
18458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18459$as_echo_n "checking whether to build static libraries... " >&6; }
18460  # Make sure either enable_shared or enable_static is yes.
18461  test yes = "$enable_shared" || enable_static=yes
18462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18463$as_echo "$enable_static" >&6; }
18464
18465
18466
18467
18468fi
18469ac_ext=c
18470ac_cpp='$CPP $CPPFLAGS'
18471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18473ac_compiler_gnu=$ac_cv_c_compiler_gnu
18474
18475CC=$lt_save_CC
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491        ac_config_commands="$ac_config_commands libtool"
18492
18493
18494
18495
18496# Only expand once:
18497
18498
18499
18500if test "x$GCC" = "xyes"; then
18501	CPPFLAGS="$CPPFLAGS -Wall"
18502fi
18503
18504
18505
18506# Define a configure option for an alternate module directory
18507
18508# Check whether --with-xorg-module-dir was given.
18509if test "${with_xorg_module_dir+set}" = set; then :
18510  withval=$with_xorg_module_dir; moduledir="$withval"
18511else
18512  moduledir="$libdir/xorg/modules"
18513fi
18514
18515
18516# Check whether --enable-dri was given.
18517if test "${enable_dri+set}" = set; then :
18518  enableval=$enable_dri; DRI="$enableval"
18519else
18520  DRI=auto
18521fi
18522
18523
18524# Check whether --enable-exa was given.
18525if test "${enable_exa+set}" = set; then :
18526  enableval=$enable_exa; EXA="$enableval"
18527else
18528  EXA=yes
18529fi
18530
18531
18532# Store the list of server defined optional extensions in REQUIRED_MODULES
18533
18534
18535	SAVE_CFLAGS="$CFLAGS"
18536	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18537	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18538/* end confdefs.h.  */
18539
18540#include "xorg-server.h"
18541#if !defined RANDR
18542#error RANDR not defined
18543#endif
18544
18545int
18546main ()
18547{
18548
18549  ;
18550  return 0;
18551}
18552_ACEOF
18553if ac_fn_c_try_compile "$LINENO"; then :
18554  _EXT_CHECK=yes
18555else
18556  _EXT_CHECK=no
18557fi
18558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559	CFLAGS="$SAVE_CFLAGS"
18560	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18561$as_echo_n "checking if RANDR is defined... " >&6; }
18562	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18563$as_echo "$_EXT_CHECK" >&6; }
18564	if test "$_EXT_CHECK" != no; then
18565		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18566	fi
18567
18568
18569
18570	SAVE_CFLAGS="$CFLAGS"
18571	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18572	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573/* end confdefs.h.  */
18574
18575#include "xorg-server.h"
18576#if !defined RENDER
18577#error RENDER not defined
18578#endif
18579
18580int
18581main ()
18582{
18583
18584  ;
18585  return 0;
18586}
18587_ACEOF
18588if ac_fn_c_try_compile "$LINENO"; then :
18589  _EXT_CHECK=yes
18590else
18591  _EXT_CHECK=no
18592fi
18593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594	CFLAGS="$SAVE_CFLAGS"
18595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18596$as_echo_n "checking if RENDER is defined... " >&6; }
18597	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18598$as_echo "$_EXT_CHECK" >&6; }
18599	if test "$_EXT_CHECK" != no; then
18600		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18601	fi
18602
18603
18604
18605	SAVE_CFLAGS="$CFLAGS"
18606	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18607	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609
18610#include "xorg-server.h"
18611#if !defined XV
18612#error XV not defined
18613#endif
18614
18615int
18616main ()
18617{
18618
18619  ;
18620  return 0;
18621}
18622_ACEOF
18623if ac_fn_c_try_compile "$LINENO"; then :
18624  _EXT_CHECK=yes
18625else
18626  _EXT_CHECK=no
18627fi
18628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629	CFLAGS="$SAVE_CFLAGS"
18630	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18631$as_echo_n "checking if XV is defined... " >&6; }
18632	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18633$as_echo "$_EXT_CHECK" >&6; }
18634	if test "$_EXT_CHECK" != no; then
18635		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18636	fi
18637
18638
18639
18640	SAVE_CFLAGS="$CFLAGS"
18641	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18642	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18643/* end confdefs.h.  */
18644
18645#include "xorg-server.h"
18646#if !defined XF86MISC
18647#error XF86MISC not defined
18648#endif
18649
18650int
18651main ()
18652{
18653
18654  ;
18655  return 0;
18656}
18657_ACEOF
18658if ac_fn_c_try_compile "$LINENO"; then :
18659  _EXT_CHECK=yes
18660else
18661  _EXT_CHECK=no
18662fi
18663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18664	CFLAGS="$SAVE_CFLAGS"
18665	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5
18666$as_echo_n "checking if XF86MISC is defined... " >&6; }
18667	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18668$as_echo "$_EXT_CHECK" >&6; }
18669	if test "$_EXT_CHECK" != no; then
18670		REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
18671	fi
18672
18673
18674
18675	SAVE_CFLAGS="$CFLAGS"
18676	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18677	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18678/* end confdefs.h.  */
18679
18680#include "xorg-server.h"
18681#if !defined DPMSExtension
18682#error DPMSExtension not defined
18683#endif
18684
18685int
18686main ()
18687{
18688
18689  ;
18690  return 0;
18691}
18692_ACEOF
18693if ac_fn_c_try_compile "$LINENO"; then :
18694  _EXT_CHECK=yes
18695else
18696  _EXT_CHECK=no
18697fi
18698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18699	CFLAGS="$SAVE_CFLAGS"
18700	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18701$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18702	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18703$as_echo "$_EXT_CHECK" >&6; }
18704	if test "$_EXT_CHECK" != no; then
18705		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18706	fi
18707
18708
18709# Obtain compiler/linker options for the driver dependencies
18710
18711pkg_failed=no
18712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18713$as_echo_n "checking for XORG... " >&6; }
18714
18715if test -n "$XORG_CFLAGS"; then
18716    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18717 elif test -n "$PKG_CONFIG"; then
18718    if test -n "$PKG_CONFIG" && \
18719    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18720  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
18721  ac_status=$?
18722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18723  test $ac_status = 0; }; then
18724  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18725		      test "x$?" != "x0" && pkg_failed=yes
18726else
18727  pkg_failed=yes
18728fi
18729 else
18730    pkg_failed=untried
18731fi
18732if test -n "$XORG_LIBS"; then
18733    pkg_cv_XORG_LIBS="$XORG_LIBS"
18734 elif test -n "$PKG_CONFIG"; then
18735    if test -n "$PKG_CONFIG" && \
18736    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18737  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
18738  ac_status=$?
18739  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18740  test $ac_status = 0; }; then
18741  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18742		      test "x$?" != "x0" && pkg_failed=yes
18743else
18744  pkg_failed=yes
18745fi
18746 else
18747    pkg_failed=untried
18748fi
18749
18750
18751
18752if test $pkg_failed = yes; then
18753   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18754$as_echo "no" >&6; }
18755
18756if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18757        _pkg_short_errors_supported=yes
18758else
18759        _pkg_short_errors_supported=no
18760fi
18761        if test $_pkg_short_errors_supported = yes; then
18762	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18763        else
18764	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18765        fi
18766	# Put the nasty error message in config.log where it belongs
18767	echo "$XORG_PKG_ERRORS" >&5
18768
18769	as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
18770
18771$XORG_PKG_ERRORS
18772
18773Consider adjusting the PKG_CONFIG_PATH environment variable if you
18774installed software in a non-standard prefix.
18775
18776Alternatively, you may set the environment variables XORG_CFLAGS
18777and XORG_LIBS to avoid the need to call pkg-config.
18778See the pkg-config man page for more details." "$LINENO" 5
18779elif test $pkg_failed = untried; then
18780     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781$as_echo "no" >&6; }
18782	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18783$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18784as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18785is in your PATH or set the PKG_CONFIG environment variable to the full
18786path to pkg-config.
18787
18788Alternatively, you may set the environment variables XORG_CFLAGS
18789and XORG_LIBS to avoid the need to call pkg-config.
18790See the pkg-config man page for more details.
18791
18792To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18793See \`config.log' for more details" "$LINENO" 5; }
18794else
18795	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18796	XORG_LIBS=$pkg_cv_XORG_LIBS
18797        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798$as_echo "yes" >&6; }
18799
18800fi
18801
18802pkg_failed=no
18803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18804$as_echo_n "checking for XEXT... " >&6; }
18805
18806if test -n "$XEXT_CFLAGS"; then
18807    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18808 elif test -n "$PKG_CONFIG"; then
18809    if test -n "$PKG_CONFIG" && \
18810    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18811  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18812  ac_status=$?
18813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18814  test $ac_status = 0; }; then
18815  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18816		      test "x$?" != "x0" && pkg_failed=yes
18817else
18818  pkg_failed=yes
18819fi
18820 else
18821    pkg_failed=untried
18822fi
18823if test -n "$XEXT_LIBS"; then
18824    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18825 elif test -n "$PKG_CONFIG"; then
18826    if test -n "$PKG_CONFIG" && \
18827    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18828  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18829  ac_status=$?
18830  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18831  test $ac_status = 0; }; then
18832  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18833		      test "x$?" != "x0" && pkg_failed=yes
18834else
18835  pkg_failed=yes
18836fi
18837 else
18838    pkg_failed=untried
18839fi
18840
18841
18842
18843if test $pkg_failed = yes; then
18844   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18845$as_echo "no" >&6; }
18846
18847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18848        _pkg_short_errors_supported=yes
18849else
18850        _pkg_short_errors_supported=no
18851fi
18852        if test $_pkg_short_errors_supported = yes; then
18853	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18854        else
18855	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18856        fi
18857	# Put the nasty error message in config.log where it belongs
18858	echo "$XEXT_PKG_ERRORS" >&5
18859
18860	HAVE_XEXTPROTO_71="no"
18861elif test $pkg_failed = untried; then
18862     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863$as_echo "no" >&6; }
18864	HAVE_XEXTPROTO_71="no"
18865else
18866	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18867	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18868        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18869$as_echo "yes" >&6; }
18870	HAVE_XEXTPROTO_71="yes";
18871$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18872
18873fi
18874 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18875  HAVE_XEXTPROTO_71_TRUE=
18876  HAVE_XEXTPROTO_71_FALSE='#'
18877else
18878  HAVE_XEXTPROTO_71_TRUE='#'
18879  HAVE_XEXTPROTO_71_FALSE=
18880fi
18881
18882sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18883
18884# Checks for libraries.
18885
18886if test "$DRI" != no; then
18887	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18889$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18890if eval \${$as_ac_File+:} false; then :
18891  $as_echo_n "(cached) " >&6
18892else
18893  test "$cross_compiling" = yes &&
18894  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18895if test -r "${sdkdir}/dri.h"; then
18896  eval "$as_ac_File=yes"
18897else
18898  eval "$as_ac_File=no"
18899fi
18900fi
18901eval ac_res=\$$as_ac_File
18902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18903$as_echo "$ac_res" >&6; }
18904if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18905  have_dri_h="yes"
18906else
18907  have_dri_h="no"
18908fi
18909
18910	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18912$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18913if eval \${$as_ac_File+:} false; then :
18914  $as_echo_n "(cached) " >&6
18915else
18916  test "$cross_compiling" = yes &&
18917  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18918if test -r "${sdkdir}/sarea.h"; then
18919  eval "$as_ac_File=yes"
18920else
18921  eval "$as_ac_File=no"
18922fi
18923fi
18924eval ac_res=\$$as_ac_File
18925	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18926$as_echo "$ac_res" >&6; }
18927if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18928  have_sarea_h="yes"
18929else
18930  have_sarea_h="no"
18931fi
18932
18933	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18935$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18936if eval \${$as_ac_File+:} false; then :
18937  $as_echo_n "(cached) " >&6
18938else
18939  test "$cross_compiling" = yes &&
18940  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18941if test -r "${sdkdir}/dristruct.h"; then
18942  eval "$as_ac_File=yes"
18943else
18944  eval "$as_ac_File=no"
18945fi
18946fi
18947eval ac_res=\$$as_ac_File
18948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18949$as_echo "$ac_res" >&6; }
18950if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18951  have_dristruct_h="yes"
18952else
18953  have_dristruct_h="no"
18954fi
18955
18956	as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/damage.h" | $as_tr_sh`
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/damage.h" >&5
18958$as_echo_n "checking for ${sdkdir}/damage.h... " >&6; }
18959if eval \${$as_ac_File+:} false; then :
18960  $as_echo_n "(cached) " >&6
18961else
18962  test "$cross_compiling" = yes &&
18963  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18964if test -r "${sdkdir}/damage.h"; then
18965  eval "$as_ac_File=yes"
18966else
18967  eval "$as_ac_File=no"
18968fi
18969fi
18970eval ac_res=\$$as_ac_File
18971	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18972$as_echo "$ac_res" >&6; }
18973if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18974  have_damage_h="yes"
18975else
18976  have_damage_h="no"
18977fi
18978
18979fi
18980
18981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18982$as_echo_n "checking whether to include DRI support... " >&6; }
18983if test x$DRI = xauto; then
18984	if test "$have_dri_h" = yes -a \
18985                "$have_sarea_h" = yes -a \
18986                "$have_dristruct_h" = yes; then
18987		DRI="yes"
18988	else
18989		DRI="no"
18990	fi
18991fi
18992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18993$as_echo "$DRI" >&6; }
18994
18995 if test x$DRI = xyes; then
18996  DRI_TRUE=
18997  DRI_FALSE='#'
18998else
18999  DRI_TRUE='#'
19000  DRI_FALSE=
19001fi
19002
19003if test "$DRI" = yes; then
19004
19005pkg_failed=no
19006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
19007$as_echo_n "checking for DRI... " >&6; }
19008
19009if test -n "$DRI_CFLAGS"; then
19010    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
19011 elif test -n "$PKG_CONFIG"; then
19012    if test -n "$PKG_CONFIG" && \
19013    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
19014  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
19015  ac_status=$?
19016  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19017  test $ac_status = 0; }; then
19018  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
19019		      test "x$?" != "x0" && pkg_failed=yes
19020else
19021  pkg_failed=yes
19022fi
19023 else
19024    pkg_failed=untried
19025fi
19026if test -n "$DRI_LIBS"; then
19027    pkg_cv_DRI_LIBS="$DRI_LIBS"
19028 elif test -n "$PKG_CONFIG"; then
19029    if test -n "$PKG_CONFIG" && \
19030    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
19031  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
19032  ac_status=$?
19033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19034  test $ac_status = 0; }; then
19035  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
19036		      test "x$?" != "x0" && pkg_failed=yes
19037else
19038  pkg_failed=yes
19039fi
19040 else
19041    pkg_failed=untried
19042fi
19043
19044
19045
19046if test $pkg_failed = yes; then
19047   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048$as_echo "no" >&6; }
19049
19050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19051        _pkg_short_errors_supported=yes
19052else
19053        _pkg_short_errors_supported=no
19054fi
19055        if test $_pkg_short_errors_supported = yes; then
19056	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
19057        else
19058	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
19059        fi
19060	# Put the nasty error message in config.log where it belongs
19061	echo "$DRI_PKG_ERRORS" >&5
19062
19063	as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
19064
19065$DRI_PKG_ERRORS
19066
19067Consider adjusting the PKG_CONFIG_PATH environment variable if you
19068installed software in a non-standard prefix.
19069
19070Alternatively, you may set the environment variables DRI_CFLAGS
19071and DRI_LIBS to avoid the need to call pkg-config.
19072See the pkg-config man page for more details." "$LINENO" 5
19073elif test $pkg_failed = untried; then
19074     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075$as_echo "no" >&6; }
19076	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19078as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19079is in your PATH or set the PKG_CONFIG environment variable to the full
19080path to pkg-config.
19081
19082Alternatively, you may set the environment variables DRI_CFLAGS
19083and DRI_LIBS to avoid the need to call pkg-config.
19084See the pkg-config man page for more details.
19085
19086To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19087See \`config.log' for more details" "$LINENO" 5; }
19088else
19089	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19090	DRI_LIBS=$pkg_cv_DRI_LIBS
19091        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19092$as_echo "yes" >&6; }
19093
19094fi
19095
19096$as_echo "#define R128DRI 1" >>confdefs.h
19097
19098
19099$as_echo "#define R128DRI_DEVEL 1" >>confdefs.h
19100
19101fi
19102
19103SAVE_CPPFLAGS="$CPPFLAGS"
19104CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19105# Properly handle EXA.
19106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
19107$as_echo_n "checking whether to enable EXA support... " >&6; }
19108if test "x$EXA" = xyes; then
19109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19110$as_echo "yes" >&6; }
19111        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/exa.h" | $as_tr_sh`
19112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/exa.h" >&5
19113$as_echo_n "checking for ${sdkdir}/exa.h... " >&6; }
19114if eval \${$as_ac_File+:} false; then :
19115  $as_echo_n "(cached) " >&6
19116else
19117  test "$cross_compiling" = yes &&
19118  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19119if test -r "${sdkdir}/exa.h"; then
19120  eval "$as_ac_File=yes"
19121else
19122  eval "$as_ac_File=no"
19123fi
19124fi
19125eval ac_res=\$$as_ac_File
19126	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19127$as_echo "$ac_res" >&6; }
19128if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
19129  have_exa_h="yes"
19130else
19131  have_exa_h="no"
19132fi
19133
19134else
19135        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136$as_echo "no" >&6; }
19137fi
19138
19139SAVE_CPPFLAGS="$CPPFLAGS"
19140CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19141if test "x$have_exa_h" = xyes; then
19142        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
19143$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
19144        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145/* end confdefs.h.  */
19146
19147#include "xorg-server.h"
19148#include "exa.h"
19149#if EXA_VERSION_MAJOR < 2
19150#error OLD EXA!
19151#endif
19152
19153int
19154main ()
19155{
19156
19157  ;
19158  return 0;
19159}
19160_ACEOF
19161if ac_fn_c_try_cpp "$LINENO"; then :
19162  USE_EXA=yes
19163else
19164  USE_EXA=no
19165fi
19166rm -f conftest.err conftest.i conftest.$ac_ext
19167        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
19168$as_echo "$USE_EXA" >&6; }
19169
19170        if test "x$USE_EXA" = xyes; then
19171
19172$as_echo "#define USE_EXA 1" >>confdefs.h
19173
19174        fi
19175fi
19176
19177ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19178"
19179if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
19180  XSERVER_LIBPCIACCESS=yes
19181else
19182  XSERVER_LIBPCIACCESS=no
19183fi
19184
19185CPPFLAGS="$SAVE_CPPFLAGS"
19186
19187# Check whether --enable-xaa was given.
19188if test "${enable_xaa+set}" = set; then :
19189  enableval=$enable_xaa; XAA="$enableval"
19190else
19191  XAA=auto
19192fi
19193
19194if test "x$XAA" != xno; then
19195        save_CFLAGS=$CFLAGS
19196        save_CPPFLAGS=$CPPFLAGS
19197        CFLAGS=$XORG_CFLAGS
19198        CPPFLAGS="$XORG_CFLAGS"
19199        for ac_header in xaa.h
19200do :
19201  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19202if test "x$ac_cv_header_xaa_h" = xyes; then :
19203  cat >>confdefs.h <<_ACEOF
19204#define HAVE_XAA_H 1
19205_ACEOF
19206 XAA=yes
19207else
19208  XAA=no
19209fi
19210
19211done
19212
19213        CFLAGS=$save_CFLAGS
19214        CPPFLAGS=$save_CPPFLAGS
19215fi
19216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19217$as_echo_n "checking whether to include XAA support... " >&6; }
19218 if test "x$XAA" = xyes; then
19219  XAA_TRUE=
19220  XAA_FALSE='#'
19221else
19222  XAA_TRUE='#'
19223  XAA_FALSE=
19224fi
19225
19226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19227$as_echo "$XAA" >&6; }
19228
19229 if test "x$USE_EXA" = xyes; then
19230  USE_EXA_TRUE=
19231  USE_EXA_FALSE='#'
19232else
19233  USE_EXA_TRUE='#'
19234  USE_EXA_FALSE=
19235fi
19236
19237
19238if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19239
19240pkg_failed=no
19241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19242$as_echo_n "checking for PCIACCESS... " >&6; }
19243
19244if test -n "$PCIACCESS_CFLAGS"; then
19245    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19246 elif test -n "$PKG_CONFIG"; then
19247    if test -n "$PKG_CONFIG" && \
19248    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19249  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19250  ac_status=$?
19251  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252  test $ac_status = 0; }; then
19253  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19254		      test "x$?" != "x0" && pkg_failed=yes
19255else
19256  pkg_failed=yes
19257fi
19258 else
19259    pkg_failed=untried
19260fi
19261if test -n "$PCIACCESS_LIBS"; then
19262    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19263 elif test -n "$PKG_CONFIG"; then
19264    if test -n "$PKG_CONFIG" && \
19265    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19266  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19267  ac_status=$?
19268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19269  test $ac_status = 0; }; then
19270  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19271		      test "x$?" != "x0" && pkg_failed=yes
19272else
19273  pkg_failed=yes
19274fi
19275 else
19276    pkg_failed=untried
19277fi
19278
19279
19280
19281if test $pkg_failed = yes; then
19282   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283$as_echo "no" >&6; }
19284
19285if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19286        _pkg_short_errors_supported=yes
19287else
19288        _pkg_short_errors_supported=no
19289fi
19290        if test $_pkg_short_errors_supported = yes; then
19291	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19292        else
19293	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19294        fi
19295	# Put the nasty error message in config.log where it belongs
19296	echo "$PCIACCESS_PKG_ERRORS" >&5
19297
19298	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19299
19300$PCIACCESS_PKG_ERRORS
19301
19302Consider adjusting the PKG_CONFIG_PATH environment variable if you
19303installed software in a non-standard prefix.
19304
19305Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19306and PCIACCESS_LIBS to avoid the need to call pkg-config.
19307See the pkg-config man page for more details." "$LINENO" 5
19308elif test $pkg_failed = untried; then
19309     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310$as_echo "no" >&6; }
19311	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19313as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19314is in your PATH or set the PKG_CONFIG environment variable to the full
19315path to pkg-config.
19316
19317Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19318and PCIACCESS_LIBS to avoid the need to call pkg-config.
19319See the pkg-config man page for more details.
19320
19321To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19322See \`config.log' for more details" "$LINENO" 5; }
19323else
19324	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19325	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19326        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327$as_echo "yes" >&6; }
19328
19329fi
19330    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19331fi
19332 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19333  XSERVER_LIBPCIACCESS_TRUE=
19334  XSERVER_LIBPCIACCESS_FALSE='#'
19335else
19336  XSERVER_LIBPCIACCESS_TRUE='#'
19337  XSERVER_LIBPCIACCESS_FALSE=
19338fi
19339
19340
19341# Checks for headers/macros for byte swapping
19342# Known variants:
19343#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
19344#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19345#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19346#	and a fallback to local macros if none of the above are found
19347
19348# if <byteswap.h> is found, assume it's the correct version
19349for ac_header in byteswap.h
19350do :
19351  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19352if test "x$ac_cv_header_byteswap_h" = xyes; then :
19353  cat >>confdefs.h <<_ACEOF
19354#define HAVE_BYTESWAP_H 1
19355_ACEOF
19356
19357fi
19358
19359done
19360
19361
19362# if <sys/endian.h> is found, have to check which version
19363ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19364if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19365  HAVE_SYS_ENDIAN_H="yes"
19366else
19367  HAVE_SYS_ENDIAN_H="no"
19368fi
19369
19370
19371
19372if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19373	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19374$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19375	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19376/* end confdefs.h.  */
19377
19378#include <sys/types.h>
19379#include <sys/endian.h>
19380
19381int
19382main ()
19383{
19384
19385int a = 1, b;
19386b = __swap16(a);
19387
19388  ;
19389  return 0;
19390}
19391
19392_ACEOF
19393if ac_fn_c_try_link "$LINENO"; then :
19394  SYS_ENDIAN__SWAP='yes'
19395else
19396  SYS_ENDIAN__SWAP='no'
19397fi
19398rm -f core conftest.err conftest.$ac_objext \
19399    conftest$ac_exeext conftest.$ac_ext
19400	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
19401$as_echo "$SYS_ENDIAN__SWAP" >&6; }
19402
19403	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
19404$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19405	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19406/* end confdefs.h.  */
19407
19408#include <sys/types.h>
19409#include <sys/endian.h>
19410
19411int
19412main ()
19413{
19414
19415int a = 1, b;
19416b = bswap16(a);
19417
19418  ;
19419  return 0;
19420}
19421
19422_ACEOF
19423if ac_fn_c_try_link "$LINENO"; then :
19424  SYS_ENDIAN_BSWAP='yes'
19425else
19426  SYS_ENDIAN_BSWAP='no'
19427fi
19428rm -f core conftest.err conftest.$ac_objext \
19429    conftest$ac_exeext conftest.$ac_ext
19430	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
19431$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
19432
19433	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
19434		USE_SYS_ENDIAN_H=yes
19435		BSWAP=bswap
19436	else
19437		if test "$SYS_ENDIAN__SWAP" = "yes" ; then
19438			USE_SYS_ENDIAN_H=yes
19439			BSWAP=__swap
19440		else
19441			USE_SYS_ENDIAN_H=no
19442		fi
19443	fi
19444
19445	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
19446
19447$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
19448
19449
19450cat >>confdefs.h <<_ACEOF
19451#define bswap_16 ${BSWAP}16
19452_ACEOF
19453
19454
19455cat >>confdefs.h <<_ACEOF
19456#define bswap_32 ${BSWAP}32
19457_ACEOF
19458
19459
19460cat >>confdefs.h <<_ACEOF
19461#define bswap_64 ${BSWAP}64
19462_ACEOF
19463
19464	fi
19465fi
19466
19467
19468
19469DRIVER_NAME=r128
19470
19471
19472{ $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
19473the ati wrapper as well:
19474    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
19475" >&5
19476$as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
19477the ati wrapper as well:
19478    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
19479" >&6;}
19480
19481ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19482
19483cat >confcache <<\_ACEOF
19484# This file is a shell script that caches the results of configure
19485# tests run on this system so they can be shared between configure
19486# scripts and configure runs, see configure's option --config-cache.
19487# It is not useful on other systems.  If it contains results you don't
19488# want to keep, you may remove or edit it.
19489#
19490# config.status only pays attention to the cache file if you give it
19491# the --recheck option to rerun configure.
19492#
19493# `ac_cv_env_foo' variables (set or unset) will be overridden when
19494# loading this file, other *unset* `ac_cv_foo' will be assigned the
19495# following values.
19496
19497_ACEOF
19498
19499# The following way of writing the cache mishandles newlines in values,
19500# but we know of no workaround that is simple, portable, and efficient.
19501# So, we kill variables containing newlines.
19502# Ultrix sh set writes to stderr and can't be redirected directly,
19503# and sets the high bit in the cache file unless we assign to the vars.
19504(
19505  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19506    eval ac_val=\$$ac_var
19507    case $ac_val in #(
19508    *${as_nl}*)
19509      case $ac_var in #(
19510      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19511$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19512      esac
19513      case $ac_var in #(
19514      _ | IFS | as_nl) ;; #(
19515      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19516      *) { eval $ac_var=; unset $ac_var;} ;;
19517      esac ;;
19518    esac
19519  done
19520
19521  (set) 2>&1 |
19522    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19523    *${as_nl}ac_space=\ *)
19524      # `set' does not quote correctly, so add quotes: double-quote
19525      # substitution turns \\\\ into \\, and sed turns \\ into \.
19526      sed -n \
19527	"s/'/'\\\\''/g;
19528	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19529      ;; #(
19530    *)
19531      # `set' quotes correctly as required by POSIX, so do not add quotes.
19532      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19533      ;;
19534    esac |
19535    sort
19536) |
19537  sed '
19538     /^ac_cv_env_/b end
19539     t clear
19540     :clear
19541     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19542     t end
19543     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19544     :end' >>confcache
19545if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19546  if test -w "$cache_file"; then
19547    if test "x$cache_file" != "x/dev/null"; then
19548      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19549$as_echo "$as_me: updating cache $cache_file" >&6;}
19550      if test ! -f "$cache_file" || test -h "$cache_file"; then
19551	cat confcache >"$cache_file"
19552      else
19553        case $cache_file in #(
19554        */* | ?:*)
19555	  mv -f confcache "$cache_file"$$ &&
19556	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19557        *)
19558	  mv -f confcache "$cache_file" ;;
19559	esac
19560      fi
19561    fi
19562  else
19563    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19564$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19565  fi
19566fi
19567rm -f confcache
19568
19569test "x$prefix" = xNONE && prefix=$ac_default_prefix
19570# Let make expand exec_prefix.
19571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19572
19573DEFS=-DHAVE_CONFIG_H
19574
19575ac_libobjs=
19576ac_ltlibobjs=
19577U=
19578for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19579  # 1. Remove the extension, and $U if already installed.
19580  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19581  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19582  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19583  #    will be set to the directory where LIBOBJS objects are built.
19584  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19585  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19586done
19587LIBOBJS=$ac_libobjs
19588
19589LTLIBOBJS=$ac_ltlibobjs
19590
19591
19592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19593$as_echo_n "checking that generated files are newer than configure... " >&6; }
19594   if test -n "$am_sleep_pid"; then
19595     # Hide warnings about reused PIDs.
19596     wait $am_sleep_pid 2>/dev/null
19597   fi
19598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19599$as_echo "done" >&6; }
19600 if test -n "$EXEEXT"; then
19601  am__EXEEXT_TRUE=
19602  am__EXEEXT_FALSE='#'
19603else
19604  am__EXEEXT_TRUE='#'
19605  am__EXEEXT_FALSE=
19606fi
19607
19608if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19609  as_fn_error $? "conditional \"AMDEP\" was never defined.
19610Usually this means the macro was only invoked conditionally." "$LINENO" 5
19611fi
19612if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19613  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19614Usually this means the macro was only invoked conditionally." "$LINENO" 5
19615fi
19616if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19617  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19618Usually this means the macro was only invoked conditionally." "$LINENO" 5
19619fi
19620if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19621  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19622Usually this means the macro was only invoked conditionally." "$LINENO" 5
19623fi
19624if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19625  as_fn_error $? "conditional \"DRI\" was never defined.
19626Usually this means the macro was only invoked conditionally." "$LINENO" 5
19627fi
19628if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19629  as_fn_error $? "conditional \"XAA\" was never defined.
19630Usually this means the macro was only invoked conditionally." "$LINENO" 5
19631fi
19632if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
19633  as_fn_error $? "conditional \"USE_EXA\" was never defined.
19634Usually this means the macro was only invoked conditionally." "$LINENO" 5
19635fi
19636if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19637  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19638Usually this means the macro was only invoked conditionally." "$LINENO" 5
19639fi
19640
19641: "${CONFIG_STATUS=./config.status}"
19642ac_write_fail=0
19643ac_clean_files_save=$ac_clean_files
19644ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19645{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19646$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19647as_write_fail=0
19648cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19649#! $SHELL
19650# Generated by $as_me.
19651# Run this file to recreate the current configuration.
19652# Compiler output produced by configure, useful for debugging
19653# configure, is in config.log if it exists.
19654
19655debug=false
19656ac_cs_recheck=false
19657ac_cs_silent=false
19658
19659SHELL=\${CONFIG_SHELL-$SHELL}
19660export SHELL
19661_ASEOF
19662cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19663## -------------------- ##
19664## M4sh Initialization. ##
19665## -------------------- ##
19666
19667# Be more Bourne compatible
19668DUALCASE=1; export DUALCASE # for MKS sh
19669if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19670  emulate sh
19671  NULLCMD=:
19672  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19673  # is contrary to our usage.  Disable this feature.
19674  alias -g '${1+"$@"}'='"$@"'
19675  setopt NO_GLOB_SUBST
19676else
19677  case `(set -o) 2>/dev/null` in #(
19678  *posix*) :
19679    set -o posix ;; #(
19680  *) :
19681     ;;
19682esac
19683fi
19684
19685
19686as_nl='
19687'
19688export as_nl
19689# Printing a long string crashes Solaris 7 /usr/bin/printf.
19690as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19691as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19692as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19693# Prefer a ksh shell builtin over an external printf program on Solaris,
19694# but without wasting forks for bash or zsh.
19695if test -z "$BASH_VERSION$ZSH_VERSION" \
19696    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19697  as_echo='print -r --'
19698  as_echo_n='print -rn --'
19699elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19700  as_echo='printf %s\n'
19701  as_echo_n='printf %s'
19702else
19703  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19704    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19705    as_echo_n='/usr/ucb/echo -n'
19706  else
19707    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19708    as_echo_n_body='eval
19709      arg=$1;
19710      case $arg in #(
19711      *"$as_nl"*)
19712	expr "X$arg" : "X\\(.*\\)$as_nl";
19713	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19714      esac;
19715      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19716    '
19717    export as_echo_n_body
19718    as_echo_n='sh -c $as_echo_n_body as_echo'
19719  fi
19720  export as_echo_body
19721  as_echo='sh -c $as_echo_body as_echo'
19722fi
19723
19724# The user is always right.
19725if test "${PATH_SEPARATOR+set}" != set; then
19726  PATH_SEPARATOR=:
19727  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19728    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19729      PATH_SEPARATOR=';'
19730  }
19731fi
19732
19733
19734# IFS
19735# We need space, tab and new line, in precisely that order.  Quoting is
19736# there to prevent editors from complaining about space-tab.
19737# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19738# splitting by setting IFS to empty value.)
19739IFS=" ""	$as_nl"
19740
19741# Find who we are.  Look in the path if we contain no directory separator.
19742as_myself=
19743case $0 in #((
19744  *[\\/]* ) as_myself=$0 ;;
19745  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19746for as_dir in $PATH
19747do
19748  IFS=$as_save_IFS
19749  test -z "$as_dir" && as_dir=.
19750    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19751  done
19752IFS=$as_save_IFS
19753
19754     ;;
19755esac
19756# We did not find ourselves, most probably we were run as `sh COMMAND'
19757# in which case we are not to be found in the path.
19758if test "x$as_myself" = x; then
19759  as_myself=$0
19760fi
19761if test ! -f "$as_myself"; then
19762  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19763  exit 1
19764fi
19765
19766# Unset variables that we do not need and which cause bugs (e.g. in
19767# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19768# suppresses any "Segmentation fault" message there.  '((' could
19769# trigger a bug in pdksh 5.2.14.
19770for as_var in BASH_ENV ENV MAIL MAILPATH
19771do eval test x\${$as_var+set} = xset \
19772  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19773done
19774PS1='$ '
19775PS2='> '
19776PS4='+ '
19777
19778# NLS nuisances.
19779LC_ALL=C
19780export LC_ALL
19781LANGUAGE=C
19782export LANGUAGE
19783
19784# CDPATH.
19785(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19786
19787
19788# as_fn_error STATUS ERROR [LINENO LOG_FD]
19789# ----------------------------------------
19790# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19791# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19792# script with STATUS, using 1 if that was 0.
19793as_fn_error ()
19794{
19795  as_status=$1; test $as_status -eq 0 && as_status=1
19796  if test "$4"; then
19797    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19798    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19799  fi
19800  $as_echo "$as_me: error: $2" >&2
19801  as_fn_exit $as_status
19802} # as_fn_error
19803
19804
19805# as_fn_set_status STATUS
19806# -----------------------
19807# Set $? to STATUS, without forking.
19808as_fn_set_status ()
19809{
19810  return $1
19811} # as_fn_set_status
19812
19813# as_fn_exit STATUS
19814# -----------------
19815# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19816as_fn_exit ()
19817{
19818  set +e
19819  as_fn_set_status $1
19820  exit $1
19821} # as_fn_exit
19822
19823# as_fn_unset VAR
19824# ---------------
19825# Portably unset VAR.
19826as_fn_unset ()
19827{
19828  { eval $1=; unset $1;}
19829}
19830as_unset=as_fn_unset
19831# as_fn_append VAR VALUE
19832# ----------------------
19833# Append the text in VALUE to the end of the definition contained in VAR. Take
19834# advantage of any shell optimizations that allow amortized linear growth over
19835# repeated appends, instead of the typical quadratic growth present in naive
19836# implementations.
19837if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19838  eval 'as_fn_append ()
19839  {
19840    eval $1+=\$2
19841  }'
19842else
19843  as_fn_append ()
19844  {
19845    eval $1=\$$1\$2
19846  }
19847fi # as_fn_append
19848
19849# as_fn_arith ARG...
19850# ------------------
19851# Perform arithmetic evaluation on the ARGs, and store the result in the
19852# global $as_val. Take advantage of shells that can avoid forks. The arguments
19853# must be portable across $(()) and expr.
19854if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19855  eval 'as_fn_arith ()
19856  {
19857    as_val=$(( $* ))
19858  }'
19859else
19860  as_fn_arith ()
19861  {
19862    as_val=`expr "$@" || test $? -eq 1`
19863  }
19864fi # as_fn_arith
19865
19866
19867if expr a : '\(a\)' >/dev/null 2>&1 &&
19868   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19869  as_expr=expr
19870else
19871  as_expr=false
19872fi
19873
19874if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19875  as_basename=basename
19876else
19877  as_basename=false
19878fi
19879
19880if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19881  as_dirname=dirname
19882else
19883  as_dirname=false
19884fi
19885
19886as_me=`$as_basename -- "$0" ||
19887$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19888	 X"$0" : 'X\(//\)$' \| \
19889	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19890$as_echo X/"$0" |
19891    sed '/^.*\/\([^/][^/]*\)\/*$/{
19892	    s//\1/
19893	    q
19894	  }
19895	  /^X\/\(\/\/\)$/{
19896	    s//\1/
19897	    q
19898	  }
19899	  /^X\/\(\/\).*/{
19900	    s//\1/
19901	    q
19902	  }
19903	  s/.*/./; q'`
19904
19905# Avoid depending upon Character Ranges.
19906as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19907as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19908as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19909as_cr_digits='0123456789'
19910as_cr_alnum=$as_cr_Letters$as_cr_digits
19911
19912ECHO_C= ECHO_N= ECHO_T=
19913case `echo -n x` in #(((((
19914-n*)
19915  case `echo 'xy\c'` in
19916  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19917  xy)  ECHO_C='\c';;
19918  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19919       ECHO_T='	';;
19920  esac;;
19921*)
19922  ECHO_N='-n';;
19923esac
19924
19925rm -f conf$$ conf$$.exe conf$$.file
19926if test -d conf$$.dir; then
19927  rm -f conf$$.dir/conf$$.file
19928else
19929  rm -f conf$$.dir
19930  mkdir conf$$.dir 2>/dev/null
19931fi
19932if (echo >conf$$.file) 2>/dev/null; then
19933  if ln -s conf$$.file conf$$ 2>/dev/null; then
19934    as_ln_s='ln -s'
19935    # ... but there are two gotchas:
19936    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19937    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19938    # In both cases, we have to default to `cp -pR'.
19939    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19940      as_ln_s='cp -pR'
19941  elif ln conf$$.file conf$$ 2>/dev/null; then
19942    as_ln_s=ln
19943  else
19944    as_ln_s='cp -pR'
19945  fi
19946else
19947  as_ln_s='cp -pR'
19948fi
19949rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19950rmdir conf$$.dir 2>/dev/null
19951
19952
19953# as_fn_mkdir_p
19954# -------------
19955# Create "$as_dir" as a directory, including parents if necessary.
19956as_fn_mkdir_p ()
19957{
19958
19959  case $as_dir in #(
19960  -*) as_dir=./$as_dir;;
19961  esac
19962  test -d "$as_dir" || eval $as_mkdir_p || {
19963    as_dirs=
19964    while :; do
19965      case $as_dir in #(
19966      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19967      *) as_qdir=$as_dir;;
19968      esac
19969      as_dirs="'$as_qdir' $as_dirs"
19970      as_dir=`$as_dirname -- "$as_dir" ||
19971$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19972	 X"$as_dir" : 'X\(//\)[^/]' \| \
19973	 X"$as_dir" : 'X\(//\)$' \| \
19974	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19975$as_echo X"$as_dir" |
19976    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19977	    s//\1/
19978	    q
19979	  }
19980	  /^X\(\/\/\)[^/].*/{
19981	    s//\1/
19982	    q
19983	  }
19984	  /^X\(\/\/\)$/{
19985	    s//\1/
19986	    q
19987	  }
19988	  /^X\(\/\).*/{
19989	    s//\1/
19990	    q
19991	  }
19992	  s/.*/./; q'`
19993      test -d "$as_dir" && break
19994    done
19995    test -z "$as_dirs" || eval "mkdir $as_dirs"
19996  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19997
19998
19999} # as_fn_mkdir_p
20000if mkdir -p . 2>/dev/null; then
20001  as_mkdir_p='mkdir -p "$as_dir"'
20002else
20003  test -d ./-p && rmdir ./-p
20004  as_mkdir_p=false
20005fi
20006
20007
20008# as_fn_executable_p FILE
20009# -----------------------
20010# Test if FILE is an executable regular file.
20011as_fn_executable_p ()
20012{
20013  test -f "$1" && test -x "$1"
20014} # as_fn_executable_p
20015as_test_x='test -x'
20016as_executable_p=as_fn_executable_p
20017
20018# Sed expression to map a string onto a valid CPP name.
20019as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20020
20021# Sed expression to map a string onto a valid variable name.
20022as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20023
20024
20025exec 6>&1
20026## ----------------------------------- ##
20027## Main body of $CONFIG_STATUS script. ##
20028## ----------------------------------- ##
20029_ASEOF
20030test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20031
20032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20033# Save the log message, to keep $0 and so on meaningful, and to
20034# report actual input values of CONFIG_FILES etc. instead of their
20035# values after options handling.
20036ac_log="
20037This file was extended by xf86-video-r128 $as_me 6.10.2, which was
20038generated by GNU Autoconf 2.69.  Invocation command line was
20039
20040  CONFIG_FILES    = $CONFIG_FILES
20041  CONFIG_HEADERS  = $CONFIG_HEADERS
20042  CONFIG_LINKS    = $CONFIG_LINKS
20043  CONFIG_COMMANDS = $CONFIG_COMMANDS
20044  $ $0 $@
20045
20046on `(hostname || uname -n) 2>/dev/null | sed 1q`
20047"
20048
20049_ACEOF
20050
20051case $ac_config_files in *"
20052"*) set x $ac_config_files; shift; ac_config_files=$*;;
20053esac
20054
20055case $ac_config_headers in *"
20056"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20057esac
20058
20059
20060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20061# Files that config.status was made for.
20062config_files="$ac_config_files"
20063config_headers="$ac_config_headers"
20064config_commands="$ac_config_commands"
20065
20066_ACEOF
20067
20068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20069ac_cs_usage="\
20070\`$as_me' instantiates files and other configuration actions
20071from templates according to the current configuration.  Unless the files
20072and actions are specified as TAGs, all are instantiated by default.
20073
20074Usage: $0 [OPTION]... [TAG]...
20075
20076  -h, --help       print this help, then exit
20077  -V, --version    print version number and configuration settings, then exit
20078      --config     print configuration, then exit
20079  -q, --quiet, --silent
20080                   do not print progress messages
20081  -d, --debug      don't remove temporary files
20082      --recheck    update $as_me by reconfiguring in the same conditions
20083      --file=FILE[:TEMPLATE]
20084                   instantiate the configuration file FILE
20085      --header=FILE[:TEMPLATE]
20086                   instantiate the configuration header FILE
20087
20088Configuration files:
20089$config_files
20090
20091Configuration headers:
20092$config_headers
20093
20094Configuration commands:
20095$config_commands
20096
20097Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20098
20099_ACEOF
20100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20101ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20102ac_cs_version="\\
20103xf86-video-r128 config.status 6.10.2
20104configured by $0, generated by GNU Autoconf 2.69,
20105  with options \\"\$ac_cs_config\\"
20106
20107Copyright (C) 2012 Free Software Foundation, Inc.
20108This config.status script is free software; the Free Software Foundation
20109gives unlimited permission to copy, distribute and modify it."
20110
20111ac_pwd='$ac_pwd'
20112srcdir='$srcdir'
20113INSTALL='$INSTALL'
20114MKDIR_P='$MKDIR_P'
20115AWK='$AWK'
20116test -n "\$AWK" || AWK=awk
20117_ACEOF
20118
20119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20120# The default lists apply if the user does not specify any file.
20121ac_need_defaults=:
20122while test $# != 0
20123do
20124  case $1 in
20125  --*=?*)
20126    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20127    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20128    ac_shift=:
20129    ;;
20130  --*=)
20131    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20132    ac_optarg=
20133    ac_shift=:
20134    ;;
20135  *)
20136    ac_option=$1
20137    ac_optarg=$2
20138    ac_shift=shift
20139    ;;
20140  esac
20141
20142  case $ac_option in
20143  # Handling of the options.
20144  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20145    ac_cs_recheck=: ;;
20146  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20147    $as_echo "$ac_cs_version"; exit ;;
20148  --config | --confi | --conf | --con | --co | --c )
20149    $as_echo "$ac_cs_config"; exit ;;
20150  --debug | --debu | --deb | --de | --d | -d )
20151    debug=: ;;
20152  --file | --fil | --fi | --f )
20153    $ac_shift
20154    case $ac_optarg in
20155    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20156    '') as_fn_error $? "missing file argument" ;;
20157    esac
20158    as_fn_append CONFIG_FILES " '$ac_optarg'"
20159    ac_need_defaults=false;;
20160  --header | --heade | --head | --hea )
20161    $ac_shift
20162    case $ac_optarg in
20163    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20164    esac
20165    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20166    ac_need_defaults=false;;
20167  --he | --h)
20168    # Conflict between --help and --header
20169    as_fn_error $? "ambiguous option: \`$1'
20170Try \`$0 --help' for more information.";;
20171  --help | --hel | -h )
20172    $as_echo "$ac_cs_usage"; exit ;;
20173  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20174  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20175    ac_cs_silent=: ;;
20176
20177  # This is an error.
20178  -*) as_fn_error $? "unrecognized option: \`$1'
20179Try \`$0 --help' for more information." ;;
20180
20181  *) as_fn_append ac_config_targets " $1"
20182     ac_need_defaults=false ;;
20183
20184  esac
20185  shift
20186done
20187
20188ac_configure_extra_args=
20189
20190if $ac_cs_silent; then
20191  exec 6>/dev/null
20192  ac_configure_extra_args="$ac_configure_extra_args --silent"
20193fi
20194
20195_ACEOF
20196cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20197if \$ac_cs_recheck; then
20198  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20199  shift
20200  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20201  CONFIG_SHELL='$SHELL'
20202  export CONFIG_SHELL
20203  exec "\$@"
20204fi
20205
20206_ACEOF
20207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20208exec 5>>config.log
20209{
20210  echo
20211  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20212## Running $as_me. ##
20213_ASBOX
20214  $as_echo "$ac_log"
20215} >&5
20216
20217_ACEOF
20218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20219#
20220# INIT-COMMANDS
20221#
20222AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20223
20224
20225# The HP-UX ksh and POSIX shell print the target directory to stdout
20226# if CDPATH is set.
20227(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20228
20229sed_quote_subst='$sed_quote_subst'
20230double_quote_subst='$double_quote_subst'
20231delay_variable_subst='$delay_variable_subst'
20232enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20233macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20234macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20235enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20236pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20237enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20238shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20239SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20240ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20241PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20242host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20243host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20244host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20245build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20246build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20247build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20248SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20249Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20250GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20251EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20252FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20253LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20254NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20255LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20256max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20257ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20258exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20259lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20260lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20261lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20262lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20263lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20264reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20265reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20266OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20267deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20268file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20269file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20270want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20271DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20272sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20273AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20274AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20275archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20276STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20277RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20278old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20279old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20280old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20281lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20282CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20283CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20284compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20285GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20286lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20287lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20288lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20289lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20290lt_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"`'
20291lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20292nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20293lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20294lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20295objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20296MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20297lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20298lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20299lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20300lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20301lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20302need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20303MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20304DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20305NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20306LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20307OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20308OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20309libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20310shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20311extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20312archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20313enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20314export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20315whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20316compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20317old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20318old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20319archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20320archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20321module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20322module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20323with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20324allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20325no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20326hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20327hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20328hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20329hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20330hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20331hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20332hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20333inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20334link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20335always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20336export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20337exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20338include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20339prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20340postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20341file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20342variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20343need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20344need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20345version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20346runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20347shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20348shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20349libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20350library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20351soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20352install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20353postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20354postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20355finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20356finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20357hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20358sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20359configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20360configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20361hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20362enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20363enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20364enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20365old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20366striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20367
20368LTCC='$LTCC'
20369LTCFLAGS='$LTCFLAGS'
20370compiler='$compiler_DEFAULT'
20371
20372# A function that is used when there is no print builtin or printf.
20373func_fallback_echo ()
20374{
20375  eval 'cat <<_LTECHO_EOF
20376\$1
20377_LTECHO_EOF'
20378}
20379
20380# Quote evaled strings.
20381for var in SHELL \
20382ECHO \
20383PATH_SEPARATOR \
20384SED \
20385GREP \
20386EGREP \
20387FGREP \
20388LD \
20389NM \
20390LN_S \
20391lt_SP2NL \
20392lt_NL2SP \
20393reload_flag \
20394OBJDUMP \
20395deplibs_check_method \
20396file_magic_cmd \
20397file_magic_glob \
20398want_nocaseglob \
20399DLLTOOL \
20400sharedlib_from_linklib_cmd \
20401AR \
20402AR_FLAGS \
20403archiver_list_spec \
20404STRIP \
20405RANLIB \
20406CC \
20407CFLAGS \
20408compiler \
20409lt_cv_sys_global_symbol_pipe \
20410lt_cv_sys_global_symbol_to_cdecl \
20411lt_cv_sys_global_symbol_to_import \
20412lt_cv_sys_global_symbol_to_c_name_address \
20413lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20414lt_cv_nm_interface \
20415nm_file_list_spec \
20416lt_cv_truncate_bin \
20417lt_prog_compiler_no_builtin_flag \
20418lt_prog_compiler_pic \
20419lt_prog_compiler_wl \
20420lt_prog_compiler_static \
20421lt_cv_prog_compiler_c_o \
20422need_locks \
20423MANIFEST_TOOL \
20424DSYMUTIL \
20425NMEDIT \
20426LIPO \
20427OTOOL \
20428OTOOL64 \
20429shrext_cmds \
20430export_dynamic_flag_spec \
20431whole_archive_flag_spec \
20432compiler_needs_object \
20433with_gnu_ld \
20434allow_undefined_flag \
20435no_undefined_flag \
20436hardcode_libdir_flag_spec \
20437hardcode_libdir_separator \
20438exclude_expsyms \
20439include_expsyms \
20440file_list_spec \
20441variables_saved_for_relink \
20442libname_spec \
20443library_names_spec \
20444soname_spec \
20445install_override_mode \
20446finish_eval \
20447old_striplib \
20448striplib; do
20449    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20450    *[\\\\\\\`\\"\\\$]*)
20451      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20452      ;;
20453    *)
20454      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20455      ;;
20456    esac
20457done
20458
20459# Double-quote double-evaled strings.
20460for var in reload_cmds \
20461old_postinstall_cmds \
20462old_postuninstall_cmds \
20463old_archive_cmds \
20464extract_expsyms_cmds \
20465old_archive_from_new_cmds \
20466old_archive_from_expsyms_cmds \
20467archive_cmds \
20468archive_expsym_cmds \
20469module_cmds \
20470module_expsym_cmds \
20471export_symbols_cmds \
20472prelink_cmds \
20473postlink_cmds \
20474postinstall_cmds \
20475postuninstall_cmds \
20476finish_cmds \
20477sys_lib_search_path_spec \
20478configure_time_dlsearch_path \
20479configure_time_lt_sys_library_path; do
20480    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20481    *[\\\\\\\`\\"\\\$]*)
20482      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20483      ;;
20484    *)
20485      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20486      ;;
20487    esac
20488done
20489
20490ac_aux_dir='$ac_aux_dir'
20491
20492# See if we are running on zsh, and set the options that allow our
20493# commands through without removal of \ escapes INIT.
20494if test -n "\${ZSH_VERSION+set}"; then
20495   setopt NO_GLOB_SUBST
20496fi
20497
20498
20499    PACKAGE='$PACKAGE'
20500    VERSION='$VERSION'
20501    RM='$RM'
20502    ofile='$ofile'
20503
20504
20505
20506
20507_ACEOF
20508
20509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20510
20511# Handling of arguments.
20512for ac_config_target in $ac_config_targets
20513do
20514  case $ac_config_target in
20515    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20516    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20517    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20518    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20519    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20520    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20521
20522  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20523  esac
20524done
20525
20526
20527# If the user did not use the arguments to specify the items to instantiate,
20528# then the envvar interface is used.  Set only those that are not.
20529# We use the long form for the default assignment because of an extremely
20530# bizarre bug on SunOS 4.1.3.
20531if $ac_need_defaults; then
20532  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20533  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20534  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20535fi
20536
20537# Have a temporary directory for convenience.  Make it in the build tree
20538# simply because there is no reason against having it here, and in addition,
20539# creating and moving files from /tmp can sometimes cause problems.
20540# Hook for its removal unless debugging.
20541# Note that there is a small window in which the directory will not be cleaned:
20542# after its creation but before its name has been assigned to `$tmp'.
20543$debug ||
20544{
20545  tmp= ac_tmp=
20546  trap 'exit_status=$?
20547  : "${ac_tmp:=$tmp}"
20548  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20549' 0
20550  trap 'as_fn_exit 1' 1 2 13 15
20551}
20552# Create a (secure) tmp directory for tmp files.
20553
20554{
20555  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20556  test -d "$tmp"
20557}  ||
20558{
20559  tmp=./conf$$-$RANDOM
20560  (umask 077 && mkdir "$tmp")
20561} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20562ac_tmp=$tmp
20563
20564# Set up the scripts for CONFIG_FILES section.
20565# No need to generate them if there are no CONFIG_FILES.
20566# This happens for instance with `./config.status config.h'.
20567if test -n "$CONFIG_FILES"; then
20568
20569
20570ac_cr=`echo X | tr X '\015'`
20571# On cygwin, bash can eat \r inside `` if the user requested igncr.
20572# But we know of no other shell where ac_cr would be empty at this
20573# point, so we can use a bashism as a fallback.
20574if test "x$ac_cr" = x; then
20575  eval ac_cr=\$\'\\r\'
20576fi
20577ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20578if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20579  ac_cs_awk_cr='\\r'
20580else
20581  ac_cs_awk_cr=$ac_cr
20582fi
20583
20584echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20585_ACEOF
20586
20587
20588{
20589  echo "cat >conf$$subs.awk <<_ACEOF" &&
20590  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20591  echo "_ACEOF"
20592} >conf$$subs.sh ||
20593  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20594ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20595ac_delim='%!_!# '
20596for ac_last_try in false false false false false :; do
20597  . ./conf$$subs.sh ||
20598    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20599
20600  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20601  if test $ac_delim_n = $ac_delim_num; then
20602    break
20603  elif $ac_last_try; then
20604    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20605  else
20606    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20607  fi
20608done
20609rm -f conf$$subs.sh
20610
20611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20612cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20613_ACEOF
20614sed -n '
20615h
20616s/^/S["/; s/!.*/"]=/
20617p
20618g
20619s/^[^!]*!//
20620:repl
20621t repl
20622s/'"$ac_delim"'$//
20623t delim
20624:nl
20625h
20626s/\(.\{148\}\)..*/\1/
20627t more1
20628s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20629p
20630n
20631b repl
20632:more1
20633s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20634p
20635g
20636s/.\{148\}//
20637t nl
20638:delim
20639h
20640s/\(.\{148\}\)..*/\1/
20641t more2
20642s/["\\]/\\&/g; s/^/"/; s/$/"/
20643p
20644b
20645:more2
20646s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20647p
20648g
20649s/.\{148\}//
20650t delim
20651' <conf$$subs.awk | sed '
20652/^[^""]/{
20653  N
20654  s/\n//
20655}
20656' >>$CONFIG_STATUS || ac_write_fail=1
20657rm -f conf$$subs.awk
20658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20659_ACAWK
20660cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20661  for (key in S) S_is_set[key] = 1
20662  FS = ""
20663
20664}
20665{
20666  line = $ 0
20667  nfields = split(line, field, "@")
20668  substed = 0
20669  len = length(field[1])
20670  for (i = 2; i < nfields; i++) {
20671    key = field[i]
20672    keylen = length(key)
20673    if (S_is_set[key]) {
20674      value = S[key]
20675      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20676      len += length(value) + length(field[++i])
20677      substed = 1
20678    } else
20679      len += 1 + keylen
20680  }
20681
20682  print line
20683}
20684
20685_ACAWK
20686_ACEOF
20687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20688if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20689  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20690else
20691  cat
20692fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20693  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20694_ACEOF
20695
20696# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20697# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20698# trailing colons and then remove the whole line if VPATH becomes empty
20699# (actually we leave an empty line to preserve line numbers).
20700if test "x$srcdir" = x.; then
20701  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20702h
20703s///
20704s/^/:/
20705s/[	 ]*$/:/
20706s/:\$(srcdir):/:/g
20707s/:\${srcdir}:/:/g
20708s/:@srcdir@:/:/g
20709s/^:*//
20710s/:*$//
20711x
20712s/\(=[	 ]*\).*/\1/
20713G
20714s/\n//
20715s/^[^=]*=[	 ]*$//
20716}'
20717fi
20718
20719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20720fi # test -n "$CONFIG_FILES"
20721
20722# Set up the scripts for CONFIG_HEADERS section.
20723# No need to generate them if there are no CONFIG_HEADERS.
20724# This happens for instance with `./config.status Makefile'.
20725if test -n "$CONFIG_HEADERS"; then
20726cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20727BEGIN {
20728_ACEOF
20729
20730# Transform confdefs.h into an awk script `defines.awk', embedded as
20731# here-document in config.status, that substitutes the proper values into
20732# config.h.in to produce config.h.
20733
20734# Create a delimiter string that does not exist in confdefs.h, to ease
20735# handling of long lines.
20736ac_delim='%!_!# '
20737for ac_last_try in false false :; do
20738  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20739  if test -z "$ac_tt"; then
20740    break
20741  elif $ac_last_try; then
20742    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20743  else
20744    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20745  fi
20746done
20747
20748# For the awk script, D is an array of macro values keyed by name,
20749# likewise P contains macro parameters if any.  Preserve backslash
20750# newline sequences.
20751
20752ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20753sed -n '
20754s/.\{148\}/&'"$ac_delim"'/g
20755t rset
20756:rset
20757s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20758t def
20759d
20760:def
20761s/\\$//
20762t bsnl
20763s/["\\]/\\&/g
20764s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20765D["\1"]=" \3"/p
20766s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20767d
20768:bsnl
20769s/["\\]/\\&/g
20770s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20771D["\1"]=" \3\\\\\\n"\\/p
20772t cont
20773s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20774t cont
20775d
20776:cont
20777n
20778s/.\{148\}/&'"$ac_delim"'/g
20779t clear
20780:clear
20781s/\\$//
20782t bsnlc
20783s/["\\]/\\&/g; s/^/"/; s/$/"/p
20784d
20785:bsnlc
20786s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20787b cont
20788' <confdefs.h | sed '
20789s/'"$ac_delim"'/"\\\
20790"/g' >>$CONFIG_STATUS || ac_write_fail=1
20791
20792cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20793  for (key in D) D_is_set[key] = 1
20794  FS = ""
20795}
20796/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20797  line = \$ 0
20798  split(line, arg, " ")
20799  if (arg[1] == "#") {
20800    defundef = arg[2]
20801    mac1 = arg[3]
20802  } else {
20803    defundef = substr(arg[1], 2)
20804    mac1 = arg[2]
20805  }
20806  split(mac1, mac2, "(") #)
20807  macro = mac2[1]
20808  prefix = substr(line, 1, index(line, defundef) - 1)
20809  if (D_is_set[macro]) {
20810    # Preserve the white space surrounding the "#".
20811    print prefix "define", macro P[macro] D[macro]
20812    next
20813  } else {
20814    # Replace #undef with comments.  This is necessary, for example,
20815    # in the case of _POSIX_SOURCE, which is predefined and required
20816    # on some systems where configure will not decide to define it.
20817    if (defundef == "undef") {
20818      print "/*", prefix defundef, macro, "*/"
20819      next
20820    }
20821  }
20822}
20823{ print }
20824_ACAWK
20825_ACEOF
20826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20827  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20828fi # test -n "$CONFIG_HEADERS"
20829
20830
20831eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20832shift
20833for ac_tag
20834do
20835  case $ac_tag in
20836  :[FHLC]) ac_mode=$ac_tag; continue;;
20837  esac
20838  case $ac_mode$ac_tag in
20839  :[FHL]*:*);;
20840  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20841  :[FH]-) ac_tag=-:-;;
20842  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20843  esac
20844  ac_save_IFS=$IFS
20845  IFS=:
20846  set x $ac_tag
20847  IFS=$ac_save_IFS
20848  shift
20849  ac_file=$1
20850  shift
20851
20852  case $ac_mode in
20853  :L) ac_source=$1;;
20854  :[FH])
20855    ac_file_inputs=
20856    for ac_f
20857    do
20858      case $ac_f in
20859      -) ac_f="$ac_tmp/stdin";;
20860      *) # Look for the file first in the build tree, then in the source tree
20861	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20862	 # because $ac_f cannot contain `:'.
20863	 test -f "$ac_f" ||
20864	   case $ac_f in
20865	   [\\/$]*) false;;
20866	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20867	   esac ||
20868	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20869      esac
20870      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20871      as_fn_append ac_file_inputs " '$ac_f'"
20872    done
20873
20874    # Let's still pretend it is `configure' which instantiates (i.e., don't
20875    # use $as_me), people would be surprised to read:
20876    #    /* config.h.  Generated by config.status.  */
20877    configure_input='Generated from '`
20878	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20879	`' by configure.'
20880    if test x"$ac_file" != x-; then
20881      configure_input="$ac_file.  $configure_input"
20882      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20883$as_echo "$as_me: creating $ac_file" >&6;}
20884    fi
20885    # Neutralize special characters interpreted by sed in replacement strings.
20886    case $configure_input in #(
20887    *\&* | *\|* | *\\* )
20888       ac_sed_conf_input=`$as_echo "$configure_input" |
20889       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20890    *) ac_sed_conf_input=$configure_input;;
20891    esac
20892
20893    case $ac_tag in
20894    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20895      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20896    esac
20897    ;;
20898  esac
20899
20900  ac_dir=`$as_dirname -- "$ac_file" ||
20901$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20902	 X"$ac_file" : 'X\(//\)[^/]' \| \
20903	 X"$ac_file" : 'X\(//\)$' \| \
20904	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20905$as_echo X"$ac_file" |
20906    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20907	    s//\1/
20908	    q
20909	  }
20910	  /^X\(\/\/\)[^/].*/{
20911	    s//\1/
20912	    q
20913	  }
20914	  /^X\(\/\/\)$/{
20915	    s//\1/
20916	    q
20917	  }
20918	  /^X\(\/\).*/{
20919	    s//\1/
20920	    q
20921	  }
20922	  s/.*/./; q'`
20923  as_dir="$ac_dir"; as_fn_mkdir_p
20924  ac_builddir=.
20925
20926case "$ac_dir" in
20927.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20928*)
20929  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20930  # A ".." for each directory in $ac_dir_suffix.
20931  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20932  case $ac_top_builddir_sub in
20933  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20934  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20935  esac ;;
20936esac
20937ac_abs_top_builddir=$ac_pwd
20938ac_abs_builddir=$ac_pwd$ac_dir_suffix
20939# for backward compatibility:
20940ac_top_builddir=$ac_top_build_prefix
20941
20942case $srcdir in
20943  .)  # We are building in place.
20944    ac_srcdir=.
20945    ac_top_srcdir=$ac_top_builddir_sub
20946    ac_abs_top_srcdir=$ac_pwd ;;
20947  [\\/]* | ?:[\\/]* )  # Absolute name.
20948    ac_srcdir=$srcdir$ac_dir_suffix;
20949    ac_top_srcdir=$srcdir
20950    ac_abs_top_srcdir=$srcdir ;;
20951  *) # Relative name.
20952    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20953    ac_top_srcdir=$ac_top_build_prefix$srcdir
20954    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20955esac
20956ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20957
20958
20959  case $ac_mode in
20960  :F)
20961  #
20962  # CONFIG_FILE
20963  #
20964
20965  case $INSTALL in
20966  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20967  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20968  esac
20969  ac_MKDIR_P=$MKDIR_P
20970  case $MKDIR_P in
20971  [\\/$]* | ?:[\\/]* ) ;;
20972  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20973  esac
20974_ACEOF
20975
20976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20977# If the template does not know about datarootdir, expand it.
20978# FIXME: This hack should be removed a few years after 2.60.
20979ac_datarootdir_hack=; ac_datarootdir_seen=
20980ac_sed_dataroot='
20981/datarootdir/ {
20982  p
20983  q
20984}
20985/@datadir@/p
20986/@docdir@/p
20987/@infodir@/p
20988/@localedir@/p
20989/@mandir@/p'
20990case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20991*datarootdir*) ac_datarootdir_seen=yes;;
20992*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20993  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20994$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20995_ACEOF
20996cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20997  ac_datarootdir_hack='
20998  s&@datadir@&$datadir&g
20999  s&@docdir@&$docdir&g
21000  s&@infodir@&$infodir&g
21001  s&@localedir@&$localedir&g
21002  s&@mandir@&$mandir&g
21003  s&\\\${datarootdir}&$datarootdir&g' ;;
21004esac
21005_ACEOF
21006
21007# Neutralize VPATH when `$srcdir' = `.'.
21008# Shell code in configure.ac might set extrasub.
21009# FIXME: do we really want to maintain this feature?
21010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21011ac_sed_extra="$ac_vpsub
21012$extrasub
21013_ACEOF
21014cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21015:t
21016/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21017s|@configure_input@|$ac_sed_conf_input|;t t
21018s&@top_builddir@&$ac_top_builddir_sub&;t t
21019s&@top_build_prefix@&$ac_top_build_prefix&;t t
21020s&@srcdir@&$ac_srcdir&;t t
21021s&@abs_srcdir@&$ac_abs_srcdir&;t t
21022s&@top_srcdir@&$ac_top_srcdir&;t t
21023s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21024s&@builddir@&$ac_builddir&;t t
21025s&@abs_builddir@&$ac_abs_builddir&;t t
21026s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21027s&@INSTALL@&$ac_INSTALL&;t t
21028s&@MKDIR_P@&$ac_MKDIR_P&;t t
21029$ac_datarootdir_hack
21030"
21031eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21032  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21033
21034test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21035  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21036  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21037      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21038  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21039which seems to be undefined.  Please make sure it is defined" >&5
21040$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21041which seems to be undefined.  Please make sure it is defined" >&2;}
21042
21043  rm -f "$ac_tmp/stdin"
21044  case $ac_file in
21045  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21046  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21047  esac \
21048  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21049 ;;
21050  :H)
21051  #
21052  # CONFIG_HEADER
21053  #
21054  if test x"$ac_file" != x-; then
21055    {
21056      $as_echo "/* $configure_input  */" \
21057      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21058    } >"$ac_tmp/config.h" \
21059      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21060    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21061      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21062$as_echo "$as_me: $ac_file is unchanged" >&6;}
21063    else
21064      rm -f "$ac_file"
21065      mv "$ac_tmp/config.h" "$ac_file" \
21066	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21067    fi
21068  else
21069    $as_echo "/* $configure_input  */" \
21070      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21071      || as_fn_error $? "could not create -" "$LINENO" 5
21072  fi
21073# Compute "$ac_file"'s index in $config_headers.
21074_am_arg="$ac_file"
21075_am_stamp_count=1
21076for _am_header in $config_headers :; do
21077  case $_am_header in
21078    $_am_arg | $_am_arg:* )
21079      break ;;
21080    * )
21081      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21082  esac
21083done
21084echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21085$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21086	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21087	 X"$_am_arg" : 'X\(//\)$' \| \
21088	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21089$as_echo X"$_am_arg" |
21090    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21091	    s//\1/
21092	    q
21093	  }
21094	  /^X\(\/\/\)[^/].*/{
21095	    s//\1/
21096	    q
21097	  }
21098	  /^X\(\/\/\)$/{
21099	    s//\1/
21100	    q
21101	  }
21102	  /^X\(\/\).*/{
21103	    s//\1/
21104	    q
21105	  }
21106	  s/.*/./; q'`/stamp-h$_am_stamp_count
21107 ;;
21108
21109  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21110$as_echo "$as_me: executing $ac_file commands" >&6;}
21111 ;;
21112  esac
21113
21114
21115  case $ac_file$ac_mode in
21116    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21117  # Older Autoconf quotes --file arguments for eval, but not when files
21118  # are listed without --file.  Let's play safe and only enable the eval
21119  # if we detect the quoting.
21120  case $CONFIG_FILES in
21121  *\'*) eval set x "$CONFIG_FILES" ;;
21122  *)   set x $CONFIG_FILES ;;
21123  esac
21124  shift
21125  for mf
21126  do
21127    # Strip MF so we end up with the name of the file.
21128    mf=`echo "$mf" | sed -e 's/:.*$//'`
21129    # Check whether this is an Automake generated Makefile or not.
21130    # We used to match only the files named 'Makefile.in', but
21131    # some people rename them; so instead we look at the file content.
21132    # Grep'ing the first line is not enough: some people post-process
21133    # each Makefile.in and add a new line on top of each file to say so.
21134    # Grep'ing the whole file is not good either: AIX grep has a line
21135    # limit of 2048, but all sed's we know have understand at least 4000.
21136    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21137      dirpart=`$as_dirname -- "$mf" ||
21138$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21139	 X"$mf" : 'X\(//\)[^/]' \| \
21140	 X"$mf" : 'X\(//\)$' \| \
21141	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21142$as_echo X"$mf" |
21143    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21144	    s//\1/
21145	    q
21146	  }
21147	  /^X\(\/\/\)[^/].*/{
21148	    s//\1/
21149	    q
21150	  }
21151	  /^X\(\/\/\)$/{
21152	    s//\1/
21153	    q
21154	  }
21155	  /^X\(\/\).*/{
21156	    s//\1/
21157	    q
21158	  }
21159	  s/.*/./; q'`
21160    else
21161      continue
21162    fi
21163    # Extract the definition of DEPDIR, am__include, and am__quote
21164    # from the Makefile without running 'make'.
21165    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21166    test -z "$DEPDIR" && continue
21167    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21168    test -z "$am__include" && continue
21169    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21170    # Find all dependency output files, they are included files with
21171    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21172    # simplest approach to changing $(DEPDIR) to its actual value in the
21173    # expansion.
21174    for file in `sed -n "
21175      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21176	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21177      # Make sure the directory exists.
21178      test -f "$dirpart/$file" && continue
21179      fdir=`$as_dirname -- "$file" ||
21180$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21181	 X"$file" : 'X\(//\)[^/]' \| \
21182	 X"$file" : 'X\(//\)$' \| \
21183	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21184$as_echo X"$file" |
21185    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21186	    s//\1/
21187	    q
21188	  }
21189	  /^X\(\/\/\)[^/].*/{
21190	    s//\1/
21191	    q
21192	  }
21193	  /^X\(\/\/\)$/{
21194	    s//\1/
21195	    q
21196	  }
21197	  /^X\(\/\).*/{
21198	    s//\1/
21199	    q
21200	  }
21201	  s/.*/./; q'`
21202      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21203      # echo "creating $dirpart/$file"
21204      echo '# dummy' > "$dirpart/$file"
21205    done
21206  done
21207}
21208 ;;
21209    "libtool":C)
21210
21211    # See if we are running on zsh, and set the options that allow our
21212    # commands through without removal of \ escapes.
21213    if test -n "${ZSH_VERSION+set}"; then
21214      setopt NO_GLOB_SUBST
21215    fi
21216
21217    cfgfile=${ofile}T
21218    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21219    $RM "$cfgfile"
21220
21221    cat <<_LT_EOF >> "$cfgfile"
21222#! $SHELL
21223# Generated automatically by $as_me ($PACKAGE) $VERSION
21224# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21225# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21226
21227# Provide generalized library-building support services.
21228# Written by Gordon Matzigkeit, 1996
21229
21230# Copyright (C) 2014 Free Software Foundation, Inc.
21231# This is free software; see the source for copying conditions.  There is NO
21232# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21233
21234# GNU Libtool is free software; you can redistribute it and/or modify
21235# it under the terms of the GNU General Public License as published by
21236# the Free Software Foundation; either version 2 of of the License, or
21237# (at your option) any later version.
21238#
21239# As a special exception to the GNU General Public License, if you
21240# distribute this file as part of a program or library that is built
21241# using GNU Libtool, you may include this file under the  same
21242# distribution terms that you use for the rest of that program.
21243#
21244# GNU Libtool is distributed in the hope that it will be useful, but
21245# WITHOUT ANY WARRANTY; without even the implied warranty of
21246# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21247# GNU General Public License for more details.
21248#
21249# You should have received a copy of the GNU General Public License
21250# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21251
21252
21253# The names of the tagged configurations supported by this script.
21254available_tags=''
21255
21256# Configured defaults for sys_lib_dlsearch_path munging.
21257: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21258
21259# ### BEGIN LIBTOOL CONFIG
21260
21261# Whether or not to build static libraries.
21262build_old_libs=$enable_static
21263
21264# Which release of libtool.m4 was used?
21265macro_version=$macro_version
21266macro_revision=$macro_revision
21267
21268# Whether or not to build shared libraries.
21269build_libtool_libs=$enable_shared
21270
21271# What type of objects to build.
21272pic_mode=$pic_mode
21273
21274# Whether or not to optimize for fast installation.
21275fast_install=$enable_fast_install
21276
21277# Shared archive member basename,for filename based shared library versioning on AIX.
21278shared_archive_member_spec=$shared_archive_member_spec
21279
21280# Shell to use when invoking shell scripts.
21281SHELL=$lt_SHELL
21282
21283# An echo program that protects backslashes.
21284ECHO=$lt_ECHO
21285
21286# The PATH separator for the build system.
21287PATH_SEPARATOR=$lt_PATH_SEPARATOR
21288
21289# The host system.
21290host_alias=$host_alias
21291host=$host
21292host_os=$host_os
21293
21294# The build system.
21295build_alias=$build_alias
21296build=$build
21297build_os=$build_os
21298
21299# A sed program that does not truncate output.
21300SED=$lt_SED
21301
21302# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21303Xsed="\$SED -e 1s/^X//"
21304
21305# A grep program that handles long lines.
21306GREP=$lt_GREP
21307
21308# An ERE matcher.
21309EGREP=$lt_EGREP
21310
21311# A literal string matcher.
21312FGREP=$lt_FGREP
21313
21314# A BSD- or MS-compatible name lister.
21315NM=$lt_NM
21316
21317# Whether we need soft or hard links.
21318LN_S=$lt_LN_S
21319
21320# What is the maximum length of a command?
21321max_cmd_len=$max_cmd_len
21322
21323# Object file suffix (normally "o").
21324objext=$ac_objext
21325
21326# Executable file suffix (normally "").
21327exeext=$exeext
21328
21329# whether the shell understands "unset".
21330lt_unset=$lt_unset
21331
21332# turn spaces into newlines.
21333SP2NL=$lt_lt_SP2NL
21334
21335# turn newlines into spaces.
21336NL2SP=$lt_lt_NL2SP
21337
21338# convert \$build file names to \$host format.
21339to_host_file_cmd=$lt_cv_to_host_file_cmd
21340
21341# convert \$build files to toolchain format.
21342to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21343
21344# An object symbol dumper.
21345OBJDUMP=$lt_OBJDUMP
21346
21347# Method to check whether dependent libraries are shared objects.
21348deplibs_check_method=$lt_deplibs_check_method
21349
21350# Command to use when deplibs_check_method = "file_magic".
21351file_magic_cmd=$lt_file_magic_cmd
21352
21353# How to find potential files when deplibs_check_method = "file_magic".
21354file_magic_glob=$lt_file_magic_glob
21355
21356# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21357want_nocaseglob=$lt_want_nocaseglob
21358
21359# DLL creation program.
21360DLLTOOL=$lt_DLLTOOL
21361
21362# Command to associate shared and link libraries.
21363sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21364
21365# The archiver.
21366AR=$lt_AR
21367
21368# Flags to create an archive.
21369AR_FLAGS=$lt_AR_FLAGS
21370
21371# How to feed a file listing to the archiver.
21372archiver_list_spec=$lt_archiver_list_spec
21373
21374# A symbol stripping program.
21375STRIP=$lt_STRIP
21376
21377# Commands used to install an old-style archive.
21378RANLIB=$lt_RANLIB
21379old_postinstall_cmds=$lt_old_postinstall_cmds
21380old_postuninstall_cmds=$lt_old_postuninstall_cmds
21381
21382# Whether to use a lock for old archive extraction.
21383lock_old_archive_extraction=$lock_old_archive_extraction
21384
21385# A C compiler.
21386LTCC=$lt_CC
21387
21388# LTCC compiler flags.
21389LTCFLAGS=$lt_CFLAGS
21390
21391# Take the output of nm and produce a listing of raw symbols and C names.
21392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21393
21394# Transform the output of nm in a proper C declaration.
21395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21396
21397# Transform the output of nm into a list of symbols to manually relocate.
21398global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21399
21400# Transform the output of nm in a C name address pair.
21401global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21402
21403# Transform the output of nm in a C name address pair when lib prefix is needed.
21404global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21405
21406# The name lister interface.
21407nm_interface=$lt_lt_cv_nm_interface
21408
21409# Specify filename containing input files for \$NM.
21410nm_file_list_spec=$lt_nm_file_list_spec
21411
21412# The root where to search for dependent libraries,and where our libraries should be installed.
21413lt_sysroot=$lt_sysroot
21414
21415# Command to truncate a binary pipe.
21416lt_truncate_bin=$lt_lt_cv_truncate_bin
21417
21418# The name of the directory that contains temporary libtool files.
21419objdir=$objdir
21420
21421# Used to examine libraries when file_magic_cmd begins with "file".
21422MAGIC_CMD=$MAGIC_CMD
21423
21424# Must we lock files when doing compilation?
21425need_locks=$lt_need_locks
21426
21427# Manifest tool.
21428MANIFEST_TOOL=$lt_MANIFEST_TOOL
21429
21430# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21431DSYMUTIL=$lt_DSYMUTIL
21432
21433# Tool to change global to local symbols on Mac OS X.
21434NMEDIT=$lt_NMEDIT
21435
21436# Tool to manipulate fat objects and archives on Mac OS X.
21437LIPO=$lt_LIPO
21438
21439# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21440OTOOL=$lt_OTOOL
21441
21442# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21443OTOOL64=$lt_OTOOL64
21444
21445# Old archive suffix (normally "a").
21446libext=$libext
21447
21448# Shared library suffix (normally ".so").
21449shrext_cmds=$lt_shrext_cmds
21450
21451# The commands to extract the exported symbol list from a shared archive.
21452extract_expsyms_cmds=$lt_extract_expsyms_cmds
21453
21454# Variables whose values should be saved in libtool wrapper scripts and
21455# restored at link time.
21456variables_saved_for_relink=$lt_variables_saved_for_relink
21457
21458# Do we need the "lib" prefix for modules?
21459need_lib_prefix=$need_lib_prefix
21460
21461# Do we need a version for libraries?
21462need_version=$need_version
21463
21464# Library versioning type.
21465version_type=$version_type
21466
21467# Shared library runtime path variable.
21468runpath_var=$runpath_var
21469
21470# Shared library path variable.
21471shlibpath_var=$shlibpath_var
21472
21473# Is shlibpath searched before the hard-coded library search path?
21474shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21475
21476# Format of library name prefix.
21477libname_spec=$lt_libname_spec
21478
21479# List of archive names.  First name is the real one, the rest are links.
21480# The last name is the one that the linker finds with -lNAME
21481library_names_spec=$lt_library_names_spec
21482
21483# The coded name of the library, if different from the real name.
21484soname_spec=$lt_soname_spec
21485
21486# Permission mode override for installation of shared libraries.
21487install_override_mode=$lt_install_override_mode
21488
21489# Command to use after installation of a shared archive.
21490postinstall_cmds=$lt_postinstall_cmds
21491
21492# Command to use after uninstallation of a shared archive.
21493postuninstall_cmds=$lt_postuninstall_cmds
21494
21495# Commands used to finish a libtool library installation in a directory.
21496finish_cmds=$lt_finish_cmds
21497
21498# As "finish_cmds", except a single script fragment to be evaled but
21499# not shown.
21500finish_eval=$lt_finish_eval
21501
21502# Whether we should hardcode library paths into libraries.
21503hardcode_into_libs=$hardcode_into_libs
21504
21505# Compile-time system search path for libraries.
21506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21507
21508# Detected run-time system search path for libraries.
21509sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21510
21511# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21512configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21513
21514# Whether dlopen is supported.
21515dlopen_support=$enable_dlopen
21516
21517# Whether dlopen of programs is supported.
21518dlopen_self=$enable_dlopen_self
21519
21520# Whether dlopen of statically linked programs is supported.
21521dlopen_self_static=$enable_dlopen_self_static
21522
21523# Commands to strip libraries.
21524old_striplib=$lt_old_striplib
21525striplib=$lt_striplib
21526
21527
21528# The linker used to build libraries.
21529LD=$lt_LD
21530
21531# How to create reloadable object files.
21532reload_flag=$lt_reload_flag
21533reload_cmds=$lt_reload_cmds
21534
21535# Commands used to build an old-style archive.
21536old_archive_cmds=$lt_old_archive_cmds
21537
21538# A language specific compiler.
21539CC=$lt_compiler
21540
21541# Is the compiler the GNU compiler?
21542with_gcc=$GCC
21543
21544# Compiler flag to turn off builtin functions.
21545no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21546
21547# Additional compiler flags for building library objects.
21548pic_flag=$lt_lt_prog_compiler_pic
21549
21550# How to pass a linker flag through the compiler.
21551wl=$lt_lt_prog_compiler_wl
21552
21553# Compiler flag to prevent dynamic linking.
21554link_static_flag=$lt_lt_prog_compiler_static
21555
21556# Does compiler simultaneously support -c and -o options?
21557compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21558
21559# Whether or not to add -lc for building shared libraries.
21560build_libtool_need_lc=$archive_cmds_need_lc
21561
21562# Whether or not to disallow shared libs when runtime libs are static.
21563allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21564
21565# Compiler flag to allow reflexive dlopens.
21566export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21567
21568# Compiler flag to generate shared objects directly from archives.
21569whole_archive_flag_spec=$lt_whole_archive_flag_spec
21570
21571# Whether the compiler copes with passing no objects directly.
21572compiler_needs_object=$lt_compiler_needs_object
21573
21574# Create an old-style archive from a shared archive.
21575old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21576
21577# Create a temporary old-style archive to link instead of a shared archive.
21578old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21579
21580# Commands used to build a shared archive.
21581archive_cmds=$lt_archive_cmds
21582archive_expsym_cmds=$lt_archive_expsym_cmds
21583
21584# Commands used to build a loadable module if different from building
21585# a shared archive.
21586module_cmds=$lt_module_cmds
21587module_expsym_cmds=$lt_module_expsym_cmds
21588
21589# Whether we are building with GNU ld or not.
21590with_gnu_ld=$lt_with_gnu_ld
21591
21592# Flag that allows shared libraries with undefined symbols to be built.
21593allow_undefined_flag=$lt_allow_undefined_flag
21594
21595# Flag that enforces no undefined symbols.
21596no_undefined_flag=$lt_no_undefined_flag
21597
21598# Flag to hardcode \$libdir into a binary during linking.
21599# This must work even if \$libdir does not exist
21600hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21601
21602# Whether we need a single "-rpath" flag with a separated argument.
21603hardcode_libdir_separator=$lt_hardcode_libdir_separator
21604
21605# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21606# DIR into the resulting binary.
21607hardcode_direct=$hardcode_direct
21608
21609# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21610# DIR into the resulting binary and the resulting library dependency is
21611# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21612# library is relocated.
21613hardcode_direct_absolute=$hardcode_direct_absolute
21614
21615# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21616# into the resulting binary.
21617hardcode_minus_L=$hardcode_minus_L
21618
21619# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21620# into the resulting binary.
21621hardcode_shlibpath_var=$hardcode_shlibpath_var
21622
21623# Set to "yes" if building a shared library automatically hardcodes DIR
21624# into the library and all subsequent libraries and executables linked
21625# against it.
21626hardcode_automatic=$hardcode_automatic
21627
21628# Set to yes if linker adds runtime paths of dependent libraries
21629# to runtime path list.
21630inherit_rpath=$inherit_rpath
21631
21632# Whether libtool must link a program against all its dependency libraries.
21633link_all_deplibs=$link_all_deplibs
21634
21635# Set to "yes" if exported symbols are required.
21636always_export_symbols=$always_export_symbols
21637
21638# The commands to list exported symbols.
21639export_symbols_cmds=$lt_export_symbols_cmds
21640
21641# Symbols that should not be listed in the preloaded symbols.
21642exclude_expsyms=$lt_exclude_expsyms
21643
21644# Symbols that must always be exported.
21645include_expsyms=$lt_include_expsyms
21646
21647# Commands necessary for linking programs (against libraries) with templates.
21648prelink_cmds=$lt_prelink_cmds
21649
21650# Commands necessary for finishing linking programs.
21651postlink_cmds=$lt_postlink_cmds
21652
21653# Specify filename containing input files.
21654file_list_spec=$lt_file_list_spec
21655
21656# How to hardcode a shared library path into an executable.
21657hardcode_action=$hardcode_action
21658
21659# ### END LIBTOOL CONFIG
21660
21661_LT_EOF
21662
21663    cat <<'_LT_EOF' >> "$cfgfile"
21664
21665# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21666
21667# func_munge_path_list VARIABLE PATH
21668# -----------------------------------
21669# VARIABLE is name of variable containing _space_ separated list of
21670# directories to be munged by the contents of PATH, which is string
21671# having a format:
21672# "DIR[:DIR]:"
21673#       string "DIR[ DIR]" will be prepended to VARIABLE
21674# ":DIR[:DIR]"
21675#       string "DIR[ DIR]" will be appended to VARIABLE
21676# "DIRP[:DIRP]::[DIRA:]DIRA"
21677#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21678#       "DIRA[ DIRA]" will be appended to VARIABLE
21679# "DIR[:DIR]"
21680#       VARIABLE will be replaced by "DIR[ DIR]"
21681func_munge_path_list ()
21682{
21683    case x$2 in
21684    x)
21685        ;;
21686    *:)
21687        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21688        ;;
21689    x:*)
21690        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21691        ;;
21692    *::*)
21693        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21694        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21695        ;;
21696    *)
21697        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21698        ;;
21699    esac
21700}
21701
21702
21703# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21704func_cc_basename ()
21705{
21706    for cc_temp in $*""; do
21707      case $cc_temp in
21708        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21709        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21710        \-*) ;;
21711        *) break;;
21712      esac
21713    done
21714    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21715}
21716
21717
21718# ### END FUNCTIONS SHARED WITH CONFIGURE
21719
21720_LT_EOF
21721
21722  case $host_os in
21723  aix3*)
21724    cat <<\_LT_EOF >> "$cfgfile"
21725# AIX sometimes has problems with the GCC collect2 program.  For some
21726# reason, if we set the COLLECT_NAMES environment variable, the problems
21727# vanish in a puff of smoke.
21728if test set != "${COLLECT_NAMES+set}"; then
21729  COLLECT_NAMES=
21730  export COLLECT_NAMES
21731fi
21732_LT_EOF
21733    ;;
21734  esac
21735
21736
21737ltmain=$ac_aux_dir/ltmain.sh
21738
21739
21740  # We use sed instead of cat because bash on DJGPP gets confused if
21741  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21742  # text mode, it properly converts lines to CR/LF.  This bash problem
21743  # is reportedly fixed, but why not run on old versions too?
21744  sed '$q' "$ltmain" >> "$cfgfile" \
21745     || (rm -f "$cfgfile"; exit 1)
21746
21747   mv -f "$cfgfile" "$ofile" ||
21748    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21749  chmod +x "$ofile"
21750
21751 ;;
21752
21753  esac
21754done # for ac_tag
21755
21756
21757as_fn_exit 0
21758_ACEOF
21759ac_clean_files=$ac_clean_files_save
21760
21761test $ac_write_fail = 0 ||
21762  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21763
21764
21765# configure is writing to config.log, and then calls config.status.
21766# config.status does its own redirection, appending to config.log.
21767# Unfortunately, on DOS this fails, as config.log is still kept open
21768# by configure, so config.status won't be able to write to it; its
21769# output is simply discarded.  So we exec the FD to /dev/null,
21770# effectively closing config.log, so it can be properly (re)opened and
21771# appended to by config.status.  When coming back to configure, we
21772# need to make the FD available again.
21773if test "$no_create" != yes; then
21774  ac_cs_success=:
21775  ac_config_status_args=
21776  test "$silent" = yes &&
21777    ac_config_status_args="$ac_config_status_args --quiet"
21778  exec 5>/dev/null
21779  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21780  exec 5>>config.log
21781  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21782  # would make configure fail if this is the last instruction.
21783  $ac_cs_success || as_fn_exit 1
21784fi
21785if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21786  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21787$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21788fi
21789
21790