configure revision cd241713
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.12.0.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-r128'
593PACKAGE_TARNAME='xf86-video-r128'
594PACKAGE_VERSION='6.12.0'
595PACKAGE_STRING='xf86-video-r128 6.12.0'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
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
679MAN_SUBSTS
680XORG_MAN_PAGE
681ADMIN_MAN_DIR
682DRIVER_MAN_DIR
683MISC_MAN_DIR
684FILE_MAN_DIR
685LIB_MAN_DIR
686APP_MAN_DIR
687ADMIN_MAN_SUFFIX
688DRIVER_MAN_SUFFIX
689MISC_MAN_SUFFIX
690FILE_MAN_SUFFIX
691LIB_MAN_SUFFIX
692APP_MAN_SUFFIX
693SED
694host_os
695host_vendor
696host_cpu
697host
698build_os
699build_vendor
700build_cpu
701build
702INSTALL_CMD
703PKG_CONFIG_LIBDIR
704PKG_CONFIG_PATH
705PKG_CONFIG
706CHANGELOG_CMD
707STRICT_CFLAGS
708CWARNFLAGS
709BASE_CFLAGS
710EGREP
711GREP
712CPP
713am__fastdepCC_FALSE
714am__fastdepCC_TRUE
715CCDEPMODE
716am__nodep
717AMDEPBACKSLASH
718AMDEP_FALSE
719AMDEP_TRUE
720am__quote
721am__include
722DEPDIR
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AM_BACKSLASH
731AM_DEFAULT_VERBOSITY
732AM_DEFAULT_V
733AM_V
734am__untar
735am__tar
736AMTAR
737am__leading_dot
738SET_MAKE
739AWK
740mkdir_p
741MKDIR_P
742INSTALL_STRIP_PROGRAM
743STRIP
744install_sh
745MAKEINFO
746AUTOHEADER
747AUTOMAKE
748AUTOCONF
749ACLOCAL
750VERSION
751PACKAGE
752CYGPATH_W
753am__isrc
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757target_alias
758host_alias
759build_alias
760LIBS
761ECHO_T
762ECHO_N
763ECHO_C
764DEFS
765mandir
766localedir
767libdir
768psdir
769pdfdir
770dvidir
771htmldir
772infodir
773docdir
774oldincludedir
775includedir
776runstatedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
796ac_subst_files=''
797ac_user_opts='
798enable_option_checking
799enable_silent_rules
800enable_dependency_tracking
801enable_selective_werror
802enable_strict_compilation
803enable_static
804enable_shared
805with_pic
806enable_fast_install
807with_aix_soname
808with_gnu_ld
809with_sysroot
810enable_libtool_lock
811with_xorg_module_dir
812enable_dri
813enable_exa
814enable_xaa
815'
816      ac_precious_vars='build_alias
817host_alias
818target_alias
819CC
820CFLAGS
821LDFLAGS
822LIBS
823CPPFLAGS
824CPP
825PKG_CONFIG
826PKG_CONFIG_PATH
827PKG_CONFIG_LIBDIR
828LT_SYS_LIBRARY_PATH
829XORG_CFLAGS
830XORG_LIBS
831XEXT_CFLAGS
832XEXT_LIBS
833DRI_CFLAGS
834DRI_LIBS
835PCIACCESS_CFLAGS
836PCIACCESS_LIBS'
837
838
839# Initialize some variables set by options.
840ac_init_help=
841ac_init_version=false
842ac_unrecognized_opts=
843ac_unrecognized_sep=
844# The variables have the same names as the options, with
845# dashes changed to underlines.
846cache_file=/dev/null
847exec_prefix=NONE
848no_create=
849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
857verbose=
858x_includes=NONE
859x_libraries=NONE
860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
866# (The list follows the same order as the GNU Coding Standards.)
867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
875runstatedir='${localstatedir}/run'
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
878docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
887
888ac_prev=
889ac_dashdash=
890for ac_option
891do
892  # If the previous option needs an argument, assign it.
893  if test -n "$ac_prev"; then
894    eval $ac_prev=\$ac_option
895    ac_prev=
896    continue
897  fi
898
899  case $ac_option in
900  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901  *=)   ac_optarg= ;;
902  *)    ac_optarg=yes ;;
903  esac
904
905  # Accept the important Cygnus configure options, so we can diagnose typos.
906
907  case $ac_dashdash$ac_option in
908  --)
909    ac_dashdash=yes ;;
910
911  -bindir | --bindir | --bindi | --bind | --bin | --bi)
912    ac_prev=bindir ;;
913  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914    bindir=$ac_optarg ;;
915
916  -build | --build | --buil | --bui | --bu)
917    ac_prev=build_alias ;;
918  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919    build_alias=$ac_optarg ;;
920
921  -cache-file | --cache-file | --cache-fil | --cache-fi \
922  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923    ac_prev=cache_file ;;
924  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926    cache_file=$ac_optarg ;;
927
928  --config-cache | -C)
929    cache_file=config.cache ;;
930
931  -datadir | --datadir | --datadi | --datad)
932    ac_prev=datadir ;;
933  -datadir=* | --datadir=* | --datadi=* | --datad=*)
934    datadir=$ac_optarg ;;
935
936  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937  | --dataroo | --dataro | --datar)
938    ac_prev=datarootdir ;;
939  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941    datarootdir=$ac_optarg ;;
942
943  -disable-* | --disable-*)
944    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945    # Reject names that are not valid shell variable names.
946    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947      as_fn_error $? "invalid feature name: $ac_useropt"
948    ac_useropt_orig=$ac_useropt
949    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950    case $ac_user_opts in
951      *"
952"enable_$ac_useropt"
953"*) ;;
954      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955	 ac_unrecognized_sep=', ';;
956    esac
957    eval enable_$ac_useropt=no ;;
958
959  -docdir | --docdir | --docdi | --doc | --do)
960    ac_prev=docdir ;;
961  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962    docdir=$ac_optarg ;;
963
964  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965    ac_prev=dvidir ;;
966  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967    dvidir=$ac_optarg ;;
968
969  -enable-* | --enable-*)
970    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971    # Reject names that are not valid shell variable names.
972    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973      as_fn_error $? "invalid feature name: $ac_useropt"
974    ac_useropt_orig=$ac_useropt
975    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976    case $ac_user_opts in
977      *"
978"enable_$ac_useropt"
979"*) ;;
980      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981	 ac_unrecognized_sep=', ';;
982    esac
983    eval enable_$ac_useropt=\$ac_optarg ;;
984
985  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987  | --exec | --exe | --ex)
988    ac_prev=exec_prefix ;;
989  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991  | --exec=* | --exe=* | --ex=*)
992    exec_prefix=$ac_optarg ;;
993
994  -gas | --gas | --ga | --g)
995    # Obsolete; use --with-gas.
996    with_gas=yes ;;
997
998  -help | --help | --hel | --he | -h)
999    ac_init_help=long ;;
1000  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001    ac_init_help=recursive ;;
1002  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003    ac_init_help=short ;;
1004
1005  -host | --host | --hos | --ho)
1006    ac_prev=host_alias ;;
1007  -host=* | --host=* | --hos=* | --ho=*)
1008    host_alias=$ac_optarg ;;
1009
1010  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011    ac_prev=htmldir ;;
1012  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013  | --ht=*)
1014    htmldir=$ac_optarg ;;
1015
1016  -includedir | --includedir | --includedi | --included | --include \
1017  | --includ | --inclu | --incl | --inc)
1018    ac_prev=includedir ;;
1019  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020  | --includ=* | --inclu=* | --incl=* | --inc=*)
1021    includedir=$ac_optarg ;;
1022
1023  -infodir | --infodir | --infodi | --infod | --info | --inf)
1024    ac_prev=infodir ;;
1025  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026    infodir=$ac_optarg ;;
1027
1028  -libdir | --libdir | --libdi | --libd)
1029    ac_prev=libdir ;;
1030  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031    libdir=$ac_optarg ;;
1032
1033  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034  | --libexe | --libex | --libe)
1035    ac_prev=libexecdir ;;
1036  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037  | --libexe=* | --libex=* | --libe=*)
1038    libexecdir=$ac_optarg ;;
1039
1040  -localedir | --localedir | --localedi | --localed | --locale)
1041    ac_prev=localedir ;;
1042  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043    localedir=$ac_optarg ;;
1044
1045  -localstatedir | --localstatedir | --localstatedi | --localstated \
1046  | --localstate | --localstat | --localsta | --localst | --locals)
1047    ac_prev=localstatedir ;;
1048  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050    localstatedir=$ac_optarg ;;
1051
1052  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053    ac_prev=mandir ;;
1054  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055    mandir=$ac_optarg ;;
1056
1057  -nfp | --nfp | --nf)
1058    # Obsolete; use --without-fp.
1059    with_fp=no ;;
1060
1061  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062  | --no-cr | --no-c | -n)
1063    no_create=yes ;;
1064
1065  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067    no_recursion=yes ;;
1068
1069  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071  | --oldin | --oldi | --old | --ol | --o)
1072    ac_prev=oldincludedir ;;
1073  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076    oldincludedir=$ac_optarg ;;
1077
1078  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079    ac_prev=prefix ;;
1080  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081    prefix=$ac_optarg ;;
1082
1083  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084  | --program-pre | --program-pr | --program-p)
1085    ac_prev=program_prefix ;;
1086  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088    program_prefix=$ac_optarg ;;
1089
1090  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091  | --program-suf | --program-su | --program-s)
1092    ac_prev=program_suffix ;;
1093  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095    program_suffix=$ac_optarg ;;
1096
1097  -program-transform-name | --program-transform-name \
1098  | --program-transform-nam | --program-transform-na \
1099  | --program-transform-n | --program-transform- \
1100  | --program-transform | --program-transfor \
1101  | --program-transfo | --program-transf \
1102  | --program-trans | --program-tran \
1103  | --progr-tra | --program-tr | --program-t)
1104    ac_prev=program_transform_name ;;
1105  -program-transform-name=* | --program-transform-name=* \
1106  | --program-transform-nam=* | --program-transform-na=* \
1107  | --program-transform-n=* | --program-transform-=* \
1108  | --program-transform=* | --program-transfor=* \
1109  | --program-transfo=* | --program-transf=* \
1110  | --program-trans=* | --program-tran=* \
1111  | --progr-tra=* | --program-tr=* | --program-t=*)
1112    program_transform_name=$ac_optarg ;;
1113
1114  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115    ac_prev=pdfdir ;;
1116  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117    pdfdir=$ac_optarg ;;
1118
1119  -psdir | --psdir | --psdi | --psd | --ps)
1120    ac_prev=psdir ;;
1121  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122    psdir=$ac_optarg ;;
1123
1124  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125  | -silent | --silent | --silen | --sile | --sil)
1126    silent=yes ;;
1127
1128  -runstatedir | --runstatedir | --runstatedi | --runstated \
1129  | --runstate | --runstat | --runsta | --runst | --runs \
1130  | --run | --ru | --r)
1131    ac_prev=runstatedir ;;
1132  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1133  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1134  | --run=* | --ru=* | --r=*)
1135    runstatedir=$ac_optarg ;;
1136
1137  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1138    ac_prev=sbindir ;;
1139  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1140  | --sbi=* | --sb=*)
1141    sbindir=$ac_optarg ;;
1142
1143  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145  | --sharedst | --shareds | --shared | --share | --shar \
1146  | --sha | --sh)
1147    ac_prev=sharedstatedir ;;
1148  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1151  | --sha=* | --sh=*)
1152    sharedstatedir=$ac_optarg ;;
1153
1154  -site | --site | --sit)
1155    ac_prev=site ;;
1156  -site=* | --site=* | --sit=*)
1157    site=$ac_optarg ;;
1158
1159  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1160    ac_prev=srcdir ;;
1161  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162    srcdir=$ac_optarg ;;
1163
1164  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165  | --syscon | --sysco | --sysc | --sys | --sy)
1166    ac_prev=sysconfdir ;;
1167  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169    sysconfdir=$ac_optarg ;;
1170
1171  -target | --target | --targe | --targ | --tar | --ta | --t)
1172    ac_prev=target_alias ;;
1173  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174    target_alias=$ac_optarg ;;
1175
1176  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1177    verbose=yes ;;
1178
1179  -version | --version | --versio | --versi | --vers | -V)
1180    ac_init_version=: ;;
1181
1182  -with-* | --with-*)
1183    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184    # Reject names that are not valid shell variable names.
1185    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186      as_fn_error $? "invalid package name: $ac_useropt"
1187    ac_useropt_orig=$ac_useropt
1188    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189    case $ac_user_opts in
1190      *"
1191"with_$ac_useropt"
1192"*) ;;
1193      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194	 ac_unrecognized_sep=', ';;
1195    esac
1196    eval with_$ac_useropt=\$ac_optarg ;;
1197
1198  -without-* | --without-*)
1199    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200    # Reject names that are not valid shell variable names.
1201    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202      as_fn_error $? "invalid package name: $ac_useropt"
1203    ac_useropt_orig=$ac_useropt
1204    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205    case $ac_user_opts in
1206      *"
1207"with_$ac_useropt"
1208"*) ;;
1209      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210	 ac_unrecognized_sep=', ';;
1211    esac
1212    eval with_$ac_useropt=no ;;
1213
1214  --x)
1215    # Obsolete; use --with-x.
1216    with_x=yes ;;
1217
1218  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219  | --x-incl | --x-inc | --x-in | --x-i)
1220    ac_prev=x_includes ;;
1221  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223    x_includes=$ac_optarg ;;
1224
1225  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227    ac_prev=x_libraries ;;
1228  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230    x_libraries=$ac_optarg ;;
1231
1232  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1233Try \`$0 --help' for more information"
1234    ;;
1235
1236  *=*)
1237    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238    # Reject names that are not valid shell variable names.
1239    case $ac_envvar in #(
1240      '' | [0-9]* | *[!_$as_cr_alnum]* )
1241      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1242    esac
1243    eval $ac_envvar=\$ac_optarg
1244    export $ac_envvar ;;
1245
1246  *)
1247    # FIXME: should be removed in autoconf 3.0.
1248    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1252    ;;
1253
1254  esac
1255done
1256
1257if test -n "$ac_prev"; then
1258  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259  as_fn_error $? "missing argument to $ac_option"
1260fi
1261
1262if test -n "$ac_unrecognized_opts"; then
1263  case $enable_option_checking in
1264    no) ;;
1265    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1266    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1267  esac
1268fi
1269
1270# Check all directory arguments for consistency.
1271for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272		datadir sysconfdir sharedstatedir localstatedir includedir \
1273		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274		libdir localedir mandir runstatedir
1275do
1276  eval ac_val=\$$ac_var
1277  # Remove trailing slashes.
1278  case $ac_val in
1279    */ )
1280      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281      eval $ac_var=\$ac_val;;
1282  esac
1283  # Be sure to have absolute directory names.
1284  case $ac_val in
1285    [\\/$]* | ?:[\\/]* )  continue;;
1286    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1287  esac
1288  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1289done
1290
1291# There might be people who depend on the old broken behavior: `$host'
1292# used to hold the argument of --host etc.
1293# FIXME: To remove some day.
1294build=$build_alias
1295host=$host_alias
1296target=$target_alias
1297
1298# FIXME: To remove some day.
1299if test "x$host_alias" != x; then
1300  if test "x$build_alias" = x; then
1301    cross_compiling=maybe
1302  elif test "x$build_alias" != "x$host_alias"; then
1303    cross_compiling=yes
1304  fi
1305fi
1306
1307ac_tool_prefix=
1308test -n "$host_alias" && ac_tool_prefix=$host_alias-
1309
1310test "$silent" = yes && exec 6>/dev/null
1311
1312
1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1314ac_ls_di=`ls -di .` &&
1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1316  as_fn_error $? "working directory cannot be determined"
1317test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318  as_fn_error $? "pwd does not report name of working directory"
1319
1320
1321# Find the source files, if location was not specified.
1322if test -z "$srcdir"; then
1323  ac_srcdir_defaulted=yes
1324  # Try the directory containing this script, then the parent directory.
1325  ac_confdir=`$as_dirname -- "$as_myself" ||
1326$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327	 X"$as_myself" : 'X\(//\)[^/]' \| \
1328	 X"$as_myself" : 'X\(//\)$' \| \
1329	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1330$as_echo X"$as_myself" |
1331    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332	    s//\1/
1333	    q
1334	  }
1335	  /^X\(\/\/\)[^/].*/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\).*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  s/.*/./; q'`
1348  srcdir=$ac_confdir
1349  if test ! -r "$srcdir/$ac_unique_file"; then
1350    srcdir=..
1351  fi
1352else
1353  ac_srcdir_defaulted=no
1354fi
1355if test ! -r "$srcdir/$ac_unique_file"; then
1356  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1358fi
1359ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1360ac_abs_confdir=`(
1361	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1362	pwd)`
1363# When building in place, set srcdir=.
1364if test "$ac_abs_confdir" = "$ac_pwd"; then
1365  srcdir=.
1366fi
1367# Remove unnecessary trailing slashes from srcdir.
1368# Double slashes in file names in object file debugging info
1369# mess up M-x gdb in Emacs.
1370case $srcdir in
1371*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372esac
1373for ac_var in $ac_precious_vars; do
1374  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375  eval ac_env_${ac_var}_value=\$${ac_var}
1376  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378done
1379
1380#
1381# Report the --help message.
1382#
1383if test "$ac_init_help" = "long"; then
1384  # Omit some internal or obsolete options to make the list less imposing.
1385  # This message is too long to be a string in the A/UX 3.1 sh.
1386  cat <<_ACEOF
1387\`configure' configures xf86-video-r128 6.12.0 to adapt to many kinds of systems.
1388
1389Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394Defaults for the options are specified in brackets.
1395
1396Configuration:
1397  -h, --help              display this help and exit
1398      --help=short        display options specific to this package
1399      --help=recursive    display the short help of all the included packages
1400  -V, --version           display version information and exit
1401  -q, --quiet, --silent   do not print \`checking ...' messages
1402      --cache-file=FILE   cache test results in FILE [disabled]
1403  -C, --config-cache      alias for \`--cache-file=config.cache'
1404  -n, --no-create         do not create output files
1405      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407Installation directories:
1408  --prefix=PREFIX         install architecture-independent files in PREFIX
1409                          [$ac_default_prefix]
1410  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                          [PREFIX]
1412
1413By default, \`make install' will install all the files in
1414\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416for instance \`--prefix=\$HOME'.
1417
1418For better control, use the options below.
1419
1420Fine tuning of the installation directories:
1421  --bindir=DIR            user executables [EPREFIX/bin]
1422  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1423  --libexecdir=DIR        program executables [EPREFIX/libexec]
1424  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1425  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1426  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1427  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1428  --libdir=DIR            object code libraries [EPREFIX/lib]
1429  --includedir=DIR        C header files [PREFIX/include]
1430  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1431  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1432  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1433  --infodir=DIR           info documentation [DATAROOTDIR/info]
1434  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1435  --mandir=DIR            man documentation [DATAROOTDIR/man]
1436  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-r128]
1437  --htmldir=DIR           html documentation [DOCDIR]
1438  --dvidir=DIR            dvi documentation [DOCDIR]
1439  --pdfdir=DIR            pdf documentation [DOCDIR]
1440  --psdir=DIR             ps documentation [DOCDIR]
1441_ACEOF
1442
1443  cat <<\_ACEOF
1444
1445Program names:
1446  --program-prefix=PREFIX            prepend PREFIX to installed program names
1447  --program-suffix=SUFFIX            append SUFFIX to installed program names
1448  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1449
1450System types:
1451  --build=BUILD     configure for building on BUILD [guessed]
1452  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453_ACEOF
1454fi
1455
1456if test -n "$ac_init_help"; then
1457  case $ac_init_help in
1458     short | recursive ) echo "Configuration of xf86-video-r128 6.12.0:";;
1459   esac
1460  cat <<\_ACEOF
1461
1462Optional Features:
1463  --disable-option-checking  ignore unrecognized --enable/--with options
1464  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1465  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1466  --enable-silent-rules   less verbose build output (undo: "make V=1")
1467  --disable-silent-rules  verbose build output (undo: "make V=0")
1468  --enable-dependency-tracking
1469                          do not reject slow dependency extractors
1470  --disable-dependency-tracking
1471                          speeds up one-time build
1472  --disable-selective-werror
1473                          Turn off selective compiler errors. (default:
1474                          enabled)
1475  --enable-strict-compilation
1476                          Enable all warnings from compiler and make them
1477                          errors (default: disabled)
1478  --enable-static[=PKGS]  build static libraries [default=no]
1479  --enable-shared[=PKGS]  build shared libraries [default=yes]
1480  --enable-fast-install[=PKGS]
1481                          optimize for fast installation [default=yes]
1482  --disable-libtool-lock  avoid locking (might break parallel builds)
1483  --disable-dri           Disable DRI support [[default=auto]]
1484  --disable-exa           Disable EXA support [[default=enabled]]
1485  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1486                          [default=auto]
1487
1488Optional Packages:
1489  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1492                          both]
1493  --with-aix-soname=aix|svr4|both
1494                          shared library versioning (aka "SONAME") variant to
1495                          provide on AIX, [default=aix].
1496  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1497  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1498                          compiler's sysroot if not specified).
1499  --with-xorg-module-dir=DIR
1500                          Default xorg module directory
1501                          [[default=$libdir/xorg/modules]]
1502
1503Some influential environment variables:
1504  CC          C compiler command
1505  CFLAGS      C compiler flags
1506  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1507              nonstandard directory <lib dir>
1508  LIBS        libraries to pass to the linker, e.g. -l<library>
1509  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1510              you have headers in a nonstandard directory <include dir>
1511  CPP         C preprocessor
1512  PKG_CONFIG  path to pkg-config utility
1513  PKG_CONFIG_PATH
1514              directories to add to pkg-config's search path
1515  PKG_CONFIG_LIBDIR
1516              path overriding pkg-config's built-in search path
1517  LT_SYS_LIBRARY_PATH
1518              User-defined run-time library search path.
1519  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1520  XORG_LIBS   linker flags for XORG, overriding pkg-config
1521  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1522  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1523  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1524  DRI_LIBS    linker flags for DRI, overriding pkg-config
1525  PCIACCESS_CFLAGS
1526              C compiler flags for PCIACCESS, overriding pkg-config
1527  PCIACCESS_LIBS
1528              linker flags for PCIACCESS, overriding pkg-config
1529
1530Use these variables to override the choices made by `configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539  # If there are subdirs, report their specific --help.
1540  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541    test -d "$ac_dir" ||
1542      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543      continue
1544    ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1550  # A ".." for each directory in $ac_dir_suffix.
1551  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552  case $ac_top_builddir_sub in
1553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555  esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563  .)  # We are building in place.
1564    ac_srcdir=.
1565    ac_top_srcdir=$ac_top_builddir_sub
1566    ac_abs_top_srcdir=$ac_pwd ;;
1567  [\\/]* | ?:[\\/]* )  # Absolute name.
1568    ac_srcdir=$srcdir$ac_dir_suffix;
1569    ac_top_srcdir=$srcdir
1570    ac_abs_top_srcdir=$srcdir ;;
1571  *) # Relative name.
1572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578    cd "$ac_dir" || { ac_status=$?; continue; }
1579    # Check for guested configure.
1580    if test -f "$ac_srcdir/configure.gnu"; then
1581      echo &&
1582      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583    elif test -f "$ac_srcdir/configure"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure" --help=recursive
1586    else
1587      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1588    fi || ac_status=$?
1589    cd "$ac_pwd" || { ac_status=$?; break; }
1590  done
1591fi
1592
1593test -n "$ac_init_help" && exit $ac_status
1594if $ac_init_version; then
1595  cat <<\_ACEOF
1596xf86-video-r128 configure 6.12.0
1597generated by GNU Autoconf 2.69
1598
1599Copyright (C) 2012 Free Software Foundation, Inc.
1600This configure script is free software; the Free Software Foundation
1601gives unlimited permission to copy, distribute and modify it.
1602_ACEOF
1603  exit
1604fi
1605
1606## ------------------------ ##
1607## Autoconf initialization. ##
1608## ------------------------ ##
1609
1610# ac_fn_c_try_compile LINENO
1611# --------------------------
1612# Try to compile conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_compile ()
1614{
1615  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616  rm -f conftest.$ac_objext
1617  if { { ac_try="$ac_compile"
1618case "(($ac_try" in
1619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620  *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624  (eval "$ac_compile") 2>conftest.err
1625  ac_status=$?
1626  if test -s conftest.err; then
1627    grep -v '^ *+' conftest.err >conftest.er1
1628    cat conftest.er1 >&5
1629    mv -f conftest.er1 conftest.err
1630  fi
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; } && {
1633	 test -z "$ac_c_werror_flag" ||
1634	 test ! -s conftest.err
1635       } && test -s conftest.$ac_objext; then :
1636  ac_retval=0
1637else
1638  $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641	ac_retval=1
1642fi
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644  as_fn_set_status $ac_retval
1645
1646} # ac_fn_c_try_compile
1647
1648# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1649# ---------------------------------------------
1650# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1651# accordingly.
1652ac_fn_c_check_decl ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  as_decl_name=`echo $2|sed 's/ *(.*//'`
1656  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1658$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1659if eval \${$3+:} false; then :
1660  $as_echo_n "(cached) " >&6
1661else
1662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663/* end confdefs.h.  */
1664$4
1665int
1666main ()
1667{
1668#ifndef $as_decl_name
1669#ifdef __cplusplus
1670  (void) $as_decl_use;
1671#else
1672  (void) $as_decl_name;
1673#endif
1674#endif
1675
1676  ;
1677  return 0;
1678}
1679_ACEOF
1680if ac_fn_c_try_compile "$LINENO"; then :
1681  eval "$3=yes"
1682else
1683  eval "$3=no"
1684fi
1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686fi
1687eval ac_res=\$$3
1688	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689$as_echo "$ac_res" >&6; }
1690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692} # ac_fn_c_check_decl
1693
1694# ac_fn_c_try_cpp LINENO
1695# ----------------------
1696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697ac_fn_c_try_cpp ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  if { { ac_try="$ac_cpp conftest.$ac_ext"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708  ac_status=$?
1709  if test -s conftest.err; then
1710    grep -v '^ *+' conftest.err >conftest.er1
1711    cat conftest.er1 >&5
1712    mv -f conftest.er1 conftest.err
1713  fi
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } > conftest.i && {
1716	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717	 test ! -s conftest.err
1718       }; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724    ac_retval=1
1725fi
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_cpp
1730
1731# ac_fn_c_try_run LINENO
1732# ----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734# that executables *can* be run.
1735ac_fn_c_try_run ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_link") 2>&5
1746  ac_status=$?
1747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749  { { case "(($ac_try" in
1750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751  *) ac_try_echo=$ac_try;;
1752esac
1753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754$as_echo "$ac_try_echo"; } >&5
1755  (eval "$ac_try") 2>&5
1756  ac_status=$?
1757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; }; }; then :
1759  ac_retval=0
1760else
1761  $as_echo "$as_me: program exited with status $ac_status" >&5
1762       $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765       ac_retval=$ac_status
1766fi
1767  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769  as_fn_set_status $ac_retval
1770
1771} # ac_fn_c_try_run
1772
1773# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1774# -------------------------------------------------------
1775# Tests whether HEADER exists and can be compiled using the include files in
1776# INCLUDES, setting the cache variable VAR accordingly.
1777ac_fn_c_check_header_compile ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if eval \${$3+:} false; then :
1783  $as_echo_n "(cached) " >&6
1784else
1785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h.  */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791  eval "$3=yes"
1792else
1793  eval "$3=no"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796fi
1797eval ac_res=\$$3
1798	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799$as_echo "$ac_res" >&6; }
1800  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801
1802} # ac_fn_c_check_header_compile
1803
1804# ac_fn_c_try_link LINENO
1805# -----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_link ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  rm -f conftest.$ac_objext conftest$ac_exeext
1811  if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_link") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } && {
1827	 test -z "$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       } && test -s conftest$ac_exeext && {
1830	 test "$cross_compiling" = yes ||
1831	 test -x conftest$ac_exeext
1832       }; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838	ac_retval=1
1839fi
1840  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842  # interfere with the next link command; also delete a directory that is
1843  # left behind by Apple's compiler.  We do this before executing the actions.
1844  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846  as_fn_set_status $ac_retval
1847
1848} # ac_fn_c_try_link
1849
1850# ac_fn_c_check_func LINENO FUNC VAR
1851# ----------------------------------
1852# Tests whether FUNC exists, setting the cache variable VAR accordingly
1853ac_fn_c_check_func ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if eval \${$3+:} false; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1865#define $2 innocuous_$2
1866
1867/* System header to define __stub macros and hopefully few prototypes,
1868    which can conflict with char $2 (); below.
1869    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870    <limits.h> exists even on freestanding compilers.  */
1871
1872#ifdef __STDC__
1873# include <limits.h>
1874#else
1875# include <assert.h>
1876#endif
1877
1878#undef $2
1879
1880/* Override any GCC internal prototype to avoid an error.
1881   Use char because int might match the return type of a GCC
1882   builtin and then its argument prototype would still apply.  */
1883#ifdef __cplusplus
1884extern "C"
1885#endif
1886char $2 ();
1887/* The GNU C library defines this for functions which it implements
1888    to always fail with ENOSYS.  Some functions are actually named
1889    something starting with __ and the normal name is an alias.  */
1890#if defined __stub_$2 || defined __stub___$2
1891choke me
1892#endif
1893
1894int
1895main ()
1896{
1897return $2 ();
1898  ;
1899  return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_link "$LINENO"; then :
1903  eval "$3=yes"
1904else
1905  eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext \
1908    conftest$ac_exeext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915} # ac_fn_c_check_func
1916
1917# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918# -------------------------------------------------------
1919# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920# the include files in INCLUDES and setting the cache variable VAR
1921# accordingly.
1922ac_fn_c_check_header_mongrel ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  if eval \${$3+:} false; then :
1926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929  $as_echo_n "(cached) " >&6
1930fi
1931eval ac_res=\$$3
1932	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934else
1935  # Is the header compilable?
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937$as_echo_n "checking $2 usability... " >&6; }
1938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h.  */
1940$4
1941#include <$2>
1942_ACEOF
1943if ac_fn_c_try_compile "$LINENO"; then :
1944  ac_header_compiler=yes
1945else
1946  ac_header_compiler=no
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950$as_echo "$ac_header_compiler" >&6; }
1951
1952# Is the header present?
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954$as_echo_n "checking $2 presence... " >&6; }
1955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h.  */
1957#include <$2>
1958_ACEOF
1959if ac_fn_c_try_cpp "$LINENO"; then :
1960  ac_header_preproc=yes
1961else
1962  ac_header_preproc=no
1963fi
1964rm -f conftest.err conftest.i conftest.$ac_ext
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966$as_echo "$ac_header_preproc" >&6; }
1967
1968# So?  What about this header?
1969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1970  yes:no: )
1971    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975    ;;
1976  no:yes:* )
1977    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1980$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1981    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1984$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1985    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987( $as_echo "## ---------------------------------------------------------------------- ##
1988## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1989## ---------------------------------------------------------------------- ##"
1990     ) | sed "s/^/$as_me: WARNING:     /" >&2
1991    ;;
1992esac
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  eval "$3=\$ac_header_compiler"
1999fi
2000eval ac_res=\$$3
2001	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003fi
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_header_mongrel
2007cat >config.log <<_ACEOF
2008This file contains any messages produced by compilers while
2009running configure, to aid debugging if configure makes a mistake.
2010
2011It was created by xf86-video-r128 $as_me 6.12.0, which was
2012generated by GNU Autoconf 2.69.  Invocation command line was
2013
2014  $ $0 $@
2015
2016_ACEOF
2017exec 5>>config.log
2018{
2019cat <<_ASUNAME
2020## --------- ##
2021## Platform. ##
2022## --------- ##
2023
2024hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2025uname -m = `(uname -m) 2>/dev/null || echo unknown`
2026uname -r = `(uname -r) 2>/dev/null || echo unknown`
2027uname -s = `(uname -s) 2>/dev/null || echo unknown`
2028uname -v = `(uname -v) 2>/dev/null || echo unknown`
2029
2030/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2031/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2032
2033/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2034/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2035/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2036/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2037/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2038/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2039/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2040
2041_ASUNAME
2042
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048    $as_echo "PATH: $as_dir"
2049  done
2050IFS=$as_save_IFS
2051
2052} >&5
2053
2054cat >&5 <<_ACEOF
2055
2056
2057## ----------- ##
2058## Core tests. ##
2059## ----------- ##
2060
2061_ACEOF
2062
2063
2064# Keep a trace of the command line.
2065# Strip out --no-create and --no-recursion so they do not pile up.
2066# Strip out --silent because we don't want to record it for future runs.
2067# Also quote any args containing shell meta-characters.
2068# Make two passes to allow for proper duplicate-argument suppression.
2069ac_configure_args=
2070ac_configure_args0=
2071ac_configure_args1=
2072ac_must_keep_next=false
2073for ac_pass in 1 2
2074do
2075  for ac_arg
2076  do
2077    case $ac_arg in
2078    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2079    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2080    | -silent | --silent | --silen | --sile | --sil)
2081      continue ;;
2082    *\'*)
2083      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084    esac
2085    case $ac_pass in
2086    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2087    2)
2088      as_fn_append ac_configure_args1 " '$ac_arg'"
2089      if test $ac_must_keep_next = true; then
2090	ac_must_keep_next=false # Got value, back to normal.
2091      else
2092	case $ac_arg in
2093	  *=* | --config-cache | -C | -disable-* | --disable-* \
2094	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2095	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2096	  | -with-* | --with-* | -without-* | --without-* | --x)
2097	    case "$ac_configure_args0 " in
2098	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099	    esac
2100	    ;;
2101	  -* ) ac_must_keep_next=true ;;
2102	esac
2103      fi
2104      as_fn_append ac_configure_args " '$ac_arg'"
2105      ;;
2106    esac
2107  done
2108done
2109{ ac_configure_args0=; unset ac_configure_args0;}
2110{ ac_configure_args1=; unset ac_configure_args1;}
2111
2112# When interrupted or exit'd, cleanup temporary files, and complete
2113# config.log.  We remove comments because anyway the quotes in there
2114# would cause problems or look ugly.
2115# WARNING: Use '\'' to represent an apostrophe within the trap.
2116# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2117trap 'exit_status=$?
2118  # Save into config.log some information that might help in debugging.
2119  {
2120    echo
2121
2122    $as_echo "## ---------------- ##
2123## Cache variables. ##
2124## ---------------- ##"
2125    echo
2126    # The following way of writing the cache mishandles newlines in values,
2127(
2128  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2129    eval ac_val=\$$ac_var
2130    case $ac_val in #(
2131    *${as_nl}*)
2132      case $ac_var in #(
2133      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2134$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2135      esac
2136      case $ac_var in #(
2137      _ | IFS | as_nl) ;; #(
2138      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2139      *) { eval $ac_var=; unset $ac_var;} ;;
2140      esac ;;
2141    esac
2142  done
2143  (set) 2>&1 |
2144    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2145    *${as_nl}ac_space=\ *)
2146      sed -n \
2147	"s/'\''/'\''\\\\'\'''\''/g;
2148	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2149      ;; #(
2150    *)
2151      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2152      ;;
2153    esac |
2154    sort
2155)
2156    echo
2157
2158    $as_echo "## ----------------- ##
2159## Output variables. ##
2160## ----------------- ##"
2161    echo
2162    for ac_var in $ac_subst_vars
2163    do
2164      eval ac_val=\$$ac_var
2165      case $ac_val in
2166      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167      esac
2168      $as_echo "$ac_var='\''$ac_val'\''"
2169    done | sort
2170    echo
2171
2172    if test -n "$ac_subst_files"; then
2173      $as_echo "## ------------------- ##
2174## File substitutions. ##
2175## ------------------- ##"
2176      echo
2177      for ac_var in $ac_subst_files
2178      do
2179	eval ac_val=\$$ac_var
2180	case $ac_val in
2181	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182	esac
2183	$as_echo "$ac_var='\''$ac_val'\''"
2184      done | sort
2185      echo
2186    fi
2187
2188    if test -s confdefs.h; then
2189      $as_echo "## ----------- ##
2190## confdefs.h. ##
2191## ----------- ##"
2192      echo
2193      cat confdefs.h
2194      echo
2195    fi
2196    test "$ac_signal" != 0 &&
2197      $as_echo "$as_me: caught signal $ac_signal"
2198    $as_echo "$as_me: exit $exit_status"
2199  } >&5
2200  rm -f core *.core core.conftest.* &&
2201    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2202    exit $exit_status
2203' 0
2204for ac_signal in 1 2 13 15; do
2205  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2206done
2207ac_signal=0
2208
2209# confdefs.h avoids OS command line length limits that DEFS can exceed.
2210rm -f -r conftest* confdefs.h
2211
2212$as_echo "/* confdefs.h */" > confdefs.h
2213
2214# Predefined preprocessor variables.
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_NAME "$PACKAGE_NAME"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_VERSION "$PACKAGE_VERSION"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_STRING "$PACKAGE_STRING"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_URL "$PACKAGE_URL"
2238_ACEOF
2239
2240
2241# Let the site file select an alternate cache file if it wants to.
2242# Prefer an explicitly selected file to automatically selected ones.
2243ac_site_file1=NONE
2244ac_site_file2=NONE
2245if test -n "$CONFIG_SITE"; then
2246  # We do not want a PATH search for config.site.
2247  case $CONFIG_SITE in #((
2248    -*)  ac_site_file1=./$CONFIG_SITE;;
2249    */*) ac_site_file1=$CONFIG_SITE;;
2250    *)   ac_site_file1=./$CONFIG_SITE;;
2251  esac
2252elif test "x$prefix" != xNONE; then
2253  ac_site_file1=$prefix/share/config.site
2254  ac_site_file2=$prefix/etc/config.site
2255else
2256  ac_site_file1=$ac_default_prefix/share/config.site
2257  ac_site_file2=$ac_default_prefix/etc/config.site
2258fi
2259for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2260do
2261  test "x$ac_site_file" = xNONE && continue
2262  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2263    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2264$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2265    sed 's/^/| /' "$ac_site_file" >&5
2266    . "$ac_site_file" \
2267      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269as_fn_error $? "failed to load site script $ac_site_file
2270See \`config.log' for more details" "$LINENO" 5; }
2271  fi
2272done
2273
2274if test -r "$cache_file"; then
2275  # Some versions of bash will fail to source /dev/null (special files
2276  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2277  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2278    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2279$as_echo "$as_me: loading cache $cache_file" >&6;}
2280    case $cache_file in
2281      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2282      *)                      . "./$cache_file";;
2283    esac
2284  fi
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2287$as_echo "$as_me: creating cache $cache_file" >&6;}
2288  >$cache_file
2289fi
2290
2291# Check that the precious variables saved in the cache have kept the same
2292# value.
2293ac_cache_corrupted=false
2294for ac_var in $ac_precious_vars; do
2295  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296  eval ac_new_set=\$ac_env_${ac_var}_set
2297  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298  eval ac_new_val=\$ac_env_${ac_var}_value
2299  case $ac_old_set,$ac_new_set in
2300    set,)
2301      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2302$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2303      ac_cache_corrupted=: ;;
2304    ,set)
2305      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2307      ac_cache_corrupted=: ;;
2308    ,);;
2309    *)
2310      if test "x$ac_old_val" != "x$ac_new_val"; then
2311	# differences in whitespace do not lead to failure.
2312	ac_old_val_w=`echo x $ac_old_val`
2313	ac_new_val_w=`echo x $ac_new_val`
2314	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2316$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2317	  ac_cache_corrupted=:
2318	else
2319	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2320$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2321	  eval $ac_var=\$ac_old_val
2322	fi
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2324$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2325	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2326$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2327      fi;;
2328  esac
2329  # Pass precious variables to config.status.
2330  if test "$ac_new_set" = set; then
2331    case $ac_new_val in
2332    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333    *) ac_arg=$ac_var=$ac_new_val ;;
2334    esac
2335    case " $ac_configure_args " in
2336      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2337      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338    esac
2339  fi
2340done
2341if $ac_cache_corrupted; then
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2346  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2347fi
2348## -------------------- ##
2349## Main body of script. ##
2350## -------------------- ##
2351
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359
2360ac_config_headers="$ac_config_headers config.h"
2361
2362ac_aux_dir=
2363for ac_dir in . "$srcdir"/.; do
2364  if test -f "$ac_dir/install-sh"; then
2365    ac_aux_dir=$ac_dir
2366    ac_install_sh="$ac_aux_dir/install-sh -c"
2367    break
2368  elif test -f "$ac_dir/install.sh"; then
2369    ac_aux_dir=$ac_dir
2370    ac_install_sh="$ac_aux_dir/install.sh -c"
2371    break
2372  elif test -f "$ac_dir/shtool"; then
2373    ac_aux_dir=$ac_dir
2374    ac_install_sh="$ac_aux_dir/shtool install -c"
2375    break
2376  fi
2377done
2378if test -z "$ac_aux_dir"; then
2379  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2380fi
2381
2382# These three variables are undocumented and unsupported,
2383# and are intended to be withdrawn in a future Autoconf release.
2384# They can cause serious problems if a builder's source tree is in a directory
2385# whose full name contains unusual characters.
2386ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2387ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2388ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2389
2390
2391
2392# Initialize Automake
2393am__api_version='1.15'
2394
2395# Find a good install program.  We prefer a C program (faster),
2396# so one script is as good as another.  But avoid the broken or
2397# incompatible versions:
2398# SysV /etc/install, /usr/sbin/install
2399# SunOS /usr/etc/install
2400# IRIX /sbin/install
2401# AIX /bin/install
2402# AmigaOS /C/install, which installs bootblocks on floppy discs
2403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2406# OS/2's system install, which has a completely different semantic
2407# ./install, which can be erroneously created by make from ./install.sh.
2408# Reject install programs that cannot install multiple files.
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2410$as_echo_n "checking for a BSD-compatible install... " >&6; }
2411if test -z "$INSTALL"; then
2412if ${ac_cv_path_install+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420    # Account for people who put trailing slashes in PATH elements.
2421case $as_dir/ in #((
2422  ./ | .// | /[cC]/* | \
2423  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2424  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2425  /usr/ucb/* ) ;;
2426  *)
2427    # OSF1 and SCO ODT 3.0 have their own names for install.
2428    # Don't use installbsd from OSF since it installs stuff as root
2429    # by default.
2430    for ac_prog in ginstall scoinst install; do
2431      for ac_exec_ext in '' $ac_executable_extensions; do
2432	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2433	  if test $ac_prog = install &&
2434	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2435	    # AIX install.  It has an incompatible calling convention.
2436	    :
2437	  elif test $ac_prog = install &&
2438	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439	    # program-specific install script used by HP pwplus--don't use.
2440	    :
2441	  else
2442	    rm -rf conftest.one conftest.two conftest.dir
2443	    echo one > conftest.one
2444	    echo two > conftest.two
2445	    mkdir conftest.dir
2446	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2447	      test -s conftest.one && test -s conftest.two &&
2448	      test -s conftest.dir/conftest.one &&
2449	      test -s conftest.dir/conftest.two
2450	    then
2451	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452	      break 3
2453	    fi
2454	  fi
2455	fi
2456      done
2457    done
2458    ;;
2459esac
2460
2461  done
2462IFS=$as_save_IFS
2463
2464rm -rf conftest.one conftest.two conftest.dir
2465
2466fi
2467  if test "${ac_cv_path_install+set}" = set; then
2468    INSTALL=$ac_cv_path_install
2469  else
2470    # As a last resort, use the slow shell script.  Don't cache a
2471    # value for INSTALL within a source directory, because that will
2472    # break other packages using the cache if that directory is
2473    # removed, or if the value is a relative name.
2474    INSTALL=$ac_install_sh
2475  fi
2476fi
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2478$as_echo "$INSTALL" >&6; }
2479
2480# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2481# It thinks the first close brace ends the variable substitution.
2482test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2483
2484test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2485
2486test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2489$as_echo_n "checking whether build environment is sane... " >&6; }
2490# Reject unsafe characters in $srcdir or the absolute working directory
2491# name.  Accept space and tab only in the latter.
2492am_lf='
2493'
2494case `pwd` in
2495  *[\\\"\#\$\&\'\`$am_lf]*)
2496    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2497esac
2498case $srcdir in
2499  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2500    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2501esac
2502
2503# Do 'set' in a subshell so we don't clobber the current shell's
2504# arguments.  Must try -L first in case configure is actually a
2505# symlink; some systems play weird games with the mod time of symlinks
2506# (eg FreeBSD returns the mod time of the symlink's containing
2507# directory).
2508if (
2509   am_has_slept=no
2510   for am_try in 1 2; do
2511     echo "timestamp, slept: $am_has_slept" > conftest.file
2512     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513     if test "$*" = "X"; then
2514	# -L didn't work.
2515	set X `ls -t "$srcdir/configure" conftest.file`
2516     fi
2517     if test "$*" != "X $srcdir/configure conftest.file" \
2518	&& test "$*" != "X conftest.file $srcdir/configure"; then
2519
2520	# If neither matched, then we have a broken ls.  This can happen
2521	# if, for instance, CONFIG_SHELL is bash and it inherits a
2522	# broken ls alias from the environment.  This has actually
2523	# happened.  Such a system could not be considered "sane".
2524	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2525  alias in your environment" "$LINENO" 5
2526     fi
2527     if test "$2" = conftest.file || test $am_try -eq 2; then
2528       break
2529     fi
2530     # Just in case.
2531     sleep 1
2532     am_has_slept=yes
2533   done
2534   test "$2" = conftest.file
2535   )
2536then
2537   # Ok.
2538   :
2539else
2540   as_fn_error $? "newly created file is older than distributed files!
2541Check your system clock" "$LINENO" 5
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2544$as_echo "yes" >&6; }
2545# If we didn't sleep, we still need to ensure time stamps of config.status and
2546# generated files are strictly newer.
2547am_sleep_pid=
2548if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2549  ( sleep 1 ) &
2550  am_sleep_pid=$!
2551fi
2552
2553rm -f conftest.file
2554
2555test "$program_prefix" != NONE &&
2556  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2557# Use a double $ so make ignores it.
2558test "$program_suffix" != NONE &&
2559  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2560# Double any \ or $.
2561# By default was `s,x,x', remove it if useless.
2562ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2563program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2564
2565# Expand $ac_aux_dir to an absolute path.
2566am_aux_dir=`cd "$ac_aux_dir" && pwd`
2567
2568if test x"${MISSING+set}" != xset; then
2569  case $am_aux_dir in
2570  *\ * | *\	*)
2571    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2572  *)
2573    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2574  esac
2575fi
2576# Use eval to expand $SHELL
2577if eval "$MISSING --is-lightweight"; then
2578  am_missing_run="$MISSING "
2579else
2580  am_missing_run=
2581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2582$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2583fi
2584
2585if test x"${install_sh+set}" != xset; then
2586  case $am_aux_dir in
2587  *\ * | *\	*)
2588    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2589  *)
2590    install_sh="\${SHELL} $am_aux_dir/install-sh"
2591  esac
2592fi
2593
2594# Installed binaries are usually stripped using 'strip' when the user
2595# run "make install-strip".  However 'strip' might not be the right
2596# tool to use in cross-compilation environments, therefore Automake
2597# will honor the 'STRIP' environment variable to overrule this program.
2598if test "$cross_compiling" != no; then
2599  if test -n "$ac_tool_prefix"; then
2600  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2601set dummy ${ac_tool_prefix}strip; ac_word=$2
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603$as_echo_n "checking for $ac_word... " >&6; }
2604if ${ac_cv_prog_STRIP+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if test -n "$STRIP"; then
2608  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613  IFS=$as_save_IFS
2614  test -z "$as_dir" && as_dir=.
2615    for ac_exec_ext in '' $ac_executable_extensions; do
2616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619    break 2
2620  fi
2621done
2622  done
2623IFS=$as_save_IFS
2624
2625fi
2626fi
2627STRIP=$ac_cv_prog_STRIP
2628if test -n "$STRIP"; then
2629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2630$as_echo "$STRIP" >&6; }
2631else
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633$as_echo "no" >&6; }
2634fi
2635
2636
2637fi
2638if test -z "$ac_cv_prog_STRIP"; then
2639  ac_ct_STRIP=$STRIP
2640  # Extract the first word of "strip", so it can be a program name with args.
2641set dummy strip; ac_word=$2
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643$as_echo_n "checking for $ac_word... " >&6; }
2644if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2645  $as_echo_n "(cached) " >&6
2646else
2647  if test -n "$ac_ct_STRIP"; then
2648  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2649else
2650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651for as_dir in $PATH
2652do
2653  IFS=$as_save_IFS
2654  test -z "$as_dir" && as_dir=.
2655    for ac_exec_ext in '' $ac_executable_extensions; do
2656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657    ac_cv_prog_ac_ct_STRIP="strip"
2658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659    break 2
2660  fi
2661done
2662  done
2663IFS=$as_save_IFS
2664
2665fi
2666fi
2667ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2668if test -n "$ac_ct_STRIP"; then
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2670$as_echo "$ac_ct_STRIP" >&6; }
2671else
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673$as_echo "no" >&6; }
2674fi
2675
2676  if test "x$ac_ct_STRIP" = x; then
2677    STRIP=":"
2678  else
2679    case $cross_compiling:$ac_tool_warned in
2680yes:)
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2683ac_tool_warned=yes ;;
2684esac
2685    STRIP=$ac_ct_STRIP
2686  fi
2687else
2688  STRIP="$ac_cv_prog_STRIP"
2689fi
2690
2691fi
2692INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2693
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2695$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2696if test -z "$MKDIR_P"; then
2697  if ${ac_cv_path_mkdir+:} false; then :
2698  $as_echo_n "(cached) " >&6
2699else
2700  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2702do
2703  IFS=$as_save_IFS
2704  test -z "$as_dir" && as_dir=.
2705    for ac_prog in mkdir gmkdir; do
2706	 for ac_exec_ext in '' $ac_executable_extensions; do
2707	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2708	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2709	     'mkdir (GNU coreutils) '* | \
2710	     'mkdir (coreutils) '* | \
2711	     'mkdir (fileutils) '4.1*)
2712	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2713	       break 3;;
2714	   esac
2715	 done
2716       done
2717  done
2718IFS=$as_save_IFS
2719
2720fi
2721
2722  test -d ./--version && rmdir ./--version
2723  if test "${ac_cv_path_mkdir+set}" = set; then
2724    MKDIR_P="$ac_cv_path_mkdir -p"
2725  else
2726    # As a last resort, use the slow shell script.  Don't cache a
2727    # value for MKDIR_P within a source directory, because that will
2728    # break other packages using the cache if that directory is
2729    # removed, or if the value is a relative name.
2730    MKDIR_P="$ac_install_sh -d"
2731  fi
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2734$as_echo "$MKDIR_P" >&6; }
2735
2736for ac_prog in gawk mawk nawk awk
2737do
2738  # Extract the first word of "$ac_prog", so it can be a program name with args.
2739set dummy $ac_prog; ac_word=$2
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741$as_echo_n "checking for $ac_word... " >&6; }
2742if ${ac_cv_prog_AWK+:} false; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  if test -n "$AWK"; then
2746  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2747else
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751  IFS=$as_save_IFS
2752  test -z "$as_dir" && as_dir=.
2753    for ac_exec_ext in '' $ac_executable_extensions; do
2754  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755    ac_cv_prog_AWK="$ac_prog"
2756    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757    break 2
2758  fi
2759done
2760  done
2761IFS=$as_save_IFS
2762
2763fi
2764fi
2765AWK=$ac_cv_prog_AWK
2766if test -n "$AWK"; then
2767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768$as_echo "$AWK" >&6; }
2769else
2770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771$as_echo "no" >&6; }
2772fi
2773
2774
2775  test -n "$AWK" && break
2776done
2777
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2779$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2780set x ${MAKE-make}
2781ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2782if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2783  $as_echo_n "(cached) " >&6
2784else
2785  cat >conftest.make <<\_ACEOF
2786SHELL = /bin/sh
2787all:
2788	@echo '@@@%%%=$(MAKE)=@@@%%%'
2789_ACEOF
2790# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2791case `${MAKE-make} -f conftest.make 2>/dev/null` in
2792  *@@@%%%=?*=@@@%%%*)
2793    eval ac_cv_prog_make_${ac_make}_set=yes;;
2794  *)
2795    eval ac_cv_prog_make_${ac_make}_set=no;;
2796esac
2797rm -f conftest.make
2798fi
2799if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2801$as_echo "yes" >&6; }
2802  SET_MAKE=
2803else
2804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806  SET_MAKE="MAKE=${MAKE-make}"
2807fi
2808
2809rm -rf .tst 2>/dev/null
2810mkdir .tst 2>/dev/null
2811if test -d .tst; then
2812  am__leading_dot=.
2813else
2814  am__leading_dot=_
2815fi
2816rmdir .tst 2>/dev/null
2817
2818# Check whether --enable-silent-rules was given.
2819if test "${enable_silent_rules+set}" = set; then :
2820  enableval=$enable_silent_rules;
2821fi
2822
2823case $enable_silent_rules in # (((
2824  yes) AM_DEFAULT_VERBOSITY=0;;
2825   no) AM_DEFAULT_VERBOSITY=1;;
2826    *) AM_DEFAULT_VERBOSITY=1;;
2827esac
2828am_make=${MAKE-make}
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2830$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2831if ${am_cv_make_support_nested_variables+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  if $as_echo 'TRUE=$(BAR$(V))
2835BAR0=false
2836BAR1=true
2837V=1
2838am__doit:
2839	@$(TRUE)
2840.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2841  am_cv_make_support_nested_variables=yes
2842else
2843  am_cv_make_support_nested_variables=no
2844fi
2845fi
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2847$as_echo "$am_cv_make_support_nested_variables" >&6; }
2848if test $am_cv_make_support_nested_variables = yes; then
2849    AM_V='$(V)'
2850  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2851else
2852  AM_V=$AM_DEFAULT_VERBOSITY
2853  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2854fi
2855AM_BACKSLASH='\'
2856
2857if test "`cd $srcdir && pwd`" != "`pwd`"; then
2858  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2859  # is not polluted with repeated "-I."
2860  am__isrc=' -I$(srcdir)'
2861  # test to see if srcdir already configured
2862  if test -f $srcdir/config.status; then
2863    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2864  fi
2865fi
2866
2867# test whether we have cygpath
2868if test -z "$CYGPATH_W"; then
2869  if (cygpath --version) >/dev/null 2>/dev/null; then
2870    CYGPATH_W='cygpath -w'
2871  else
2872    CYGPATH_W=echo
2873  fi
2874fi
2875
2876
2877# Define the identity of the package.
2878 PACKAGE='xf86-video-r128'
2879 VERSION='6.12.0'
2880
2881
2882cat >>confdefs.h <<_ACEOF
2883#define PACKAGE "$PACKAGE"
2884_ACEOF
2885
2886
2887cat >>confdefs.h <<_ACEOF
2888#define VERSION "$VERSION"
2889_ACEOF
2890
2891# Some tools Automake needs.
2892
2893ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2894
2895
2896AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2897
2898
2899AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2900
2901
2902AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2903
2904
2905MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2906
2907# For better backward compatibility.  To be removed once Automake 1.9.x
2908# dies out for good.  For more background, see:
2909# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2910# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2911mkdir_p='$(MKDIR_P)'
2912
2913# We need awk for the "check" target (and possibly the TAP driver).  The
2914# system "awk" is bad on some platforms.
2915# Always define AMTAR for backward compatibility.  Yes, it's still used
2916# in the wild :-(  We should find a proper way to deprecate it ...
2917AMTAR='$${TAR-tar}'
2918
2919
2920# We'll loop over all known methods to create a tar archive until one works.
2921_am_tools='gnutar  pax cpio none'
2922
2923am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2924
2925
2926
2927
2928
2929
2930# POSIX will say in a future version that running "rm -f" with no argument
2931# is OK; and we want to be able to make that assumption in our Makefile
2932# recipes.  So use an aggressive probe to check that the usage we want is
2933# actually supported "in the wild" to an acceptable degree.
2934# See automake bug#10828.
2935# To make any issue more visible, cause the running configure to be aborted
2936# by default if the 'rm' program in use doesn't match our expectations; the
2937# user can still override this though.
2938if rm -f && rm -fr && rm -rf; then : OK; else
2939  cat >&2 <<'END'
2940Oops!
2941
2942Your 'rm' program seems unable to run without file operands specified
2943on the command line, even when the '-f' option is present.  This is contrary
2944to the behaviour of most rm programs out there, and not conforming with
2945the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2946
2947Please tell bug-automake@gnu.org about your system, including the value
2948of your $PATH and any error possibly output before this message.  This
2949can help us improve future automake versions.
2950
2951END
2952  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2953    echo 'Configuration will proceed anyway, since you have set the' >&2
2954    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2955    echo >&2
2956  else
2957    cat >&2 <<'END'
2958Aborting the configuration process, to ensure you take notice of the issue.
2959
2960You can download and install GNU coreutils to get an 'rm' implementation
2961that behaves properly: <http://www.gnu.org/software/coreutils/>.
2962
2963If you want to complete the configuration process using your problematic
2964'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2965to "yes", and re-run configure.
2966
2967END
2968    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2969  fi
2970fi
2971
2972
2973# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985DEPDIR="${am__leading_dot}deps"
2986
2987ac_config_commands="$ac_config_commands depfiles"
2988
2989
2990am_make=${MAKE-make}
2991cat > confinc << 'END'
2992am__doit:
2993	@echo this is the am__doit target
2994.PHONY: am__doit
2995END
2996# If we don't find an include directive, just comment out the code.
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2998$as_echo_n "checking for style of include used by $am_make... " >&6; }
2999am__include="#"
3000am__quote=
3001_am_result=none
3002# First try GNU make style include.
3003echo "include confinc" > confmf
3004# Ignore all kinds of additional output from 'make'.
3005case `$am_make -s -f confmf 2> /dev/null` in #(
3006*the\ am__doit\ target*)
3007  am__include=include
3008  am__quote=
3009  _am_result=GNU
3010  ;;
3011esac
3012# Now try BSD make style include.
3013if test "$am__include" = "#"; then
3014   echo '.include "confinc"' > confmf
3015   case `$am_make -s -f confmf 2> /dev/null` in #(
3016   *the\ am__doit\ target*)
3017     am__include=.include
3018     am__quote="\""
3019     _am_result=BSD
3020     ;;
3021   esac
3022fi
3023
3024
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3026$as_echo "$_am_result" >&6; }
3027rm -f confinc confmf
3028
3029# Check whether --enable-dependency-tracking was given.
3030if test "${enable_dependency_tracking+set}" = set; then :
3031  enableval=$enable_dependency_tracking;
3032fi
3033
3034if test "x$enable_dependency_tracking" != xno; then
3035  am_depcomp="$ac_aux_dir/depcomp"
3036  AMDEPBACKSLASH='\'
3037  am__nodep='_no'
3038fi
3039 if test "x$enable_dependency_tracking" != xno; then
3040  AMDEP_TRUE=
3041  AMDEP_FALSE='#'
3042else
3043  AMDEP_TRUE='#'
3044  AMDEP_FALSE=
3045fi
3046
3047
3048ac_ext=c
3049ac_cpp='$CPP $CPPFLAGS'
3050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052ac_compiler_gnu=$ac_cv_c_compiler_gnu
3053if test -n "$ac_tool_prefix"; then
3054  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3055set dummy ${ac_tool_prefix}gcc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if ${ac_cv_prog_CC+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$CC"; then
3062  ac_cv_prog_CC="$CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081CC=$ac_cv_prog_CC
3082if test -n "$CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084$as_echo "$CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090
3091fi
3092if test -z "$ac_cv_prog_CC"; then
3093  ac_ct_CC=$CC
3094  # Extract the first word of "gcc", so it can be a program name with args.
3095set dummy gcc; ac_word=$2
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097$as_echo_n "checking for $ac_word... " >&6; }
3098if ${ac_cv_prog_ac_ct_CC+:} false; then :
3099  $as_echo_n "(cached) " >&6
3100else
3101  if test -n "$ac_ct_CC"; then
3102  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103else
3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105for as_dir in $PATH
3106do
3107  IFS=$as_save_IFS
3108  test -z "$as_dir" && as_dir=.
3109    for ac_exec_ext in '' $ac_executable_extensions; do
3110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111    ac_cv_prog_ac_ct_CC="gcc"
3112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113    break 2
3114  fi
3115done
3116  done
3117IFS=$as_save_IFS
3118
3119fi
3120fi
3121ac_ct_CC=$ac_cv_prog_ac_ct_CC
3122if test -n "$ac_ct_CC"; then
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3124$as_echo "$ac_ct_CC" >&6; }
3125else
3126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128fi
3129
3130  if test "x$ac_ct_CC" = x; then
3131    CC=""
3132  else
3133    case $cross_compiling:$ac_tool_warned in
3134yes:)
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3137ac_tool_warned=yes ;;
3138esac
3139    CC=$ac_ct_CC
3140  fi
3141else
3142  CC="$ac_cv_prog_CC"
3143fi
3144
3145if test -z "$CC"; then
3146          if test -n "$ac_tool_prefix"; then
3147    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3148set dummy ${ac_tool_prefix}cc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_CC+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160  IFS=$as_save_IFS
3161  test -z "$as_dir" && as_dir=.
3162    for ac_exec_ext in '' $ac_executable_extensions; do
3163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164    ac_cv_prog_CC="${ac_tool_prefix}cc"
3165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166    break 2
3167  fi
3168done
3169  done
3170IFS=$as_save_IFS
3171
3172fi
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
3181fi
3182
3183
3184  fi
3185fi
3186if test -z "$CC"; then
3187  # Extract the first word of "cc", so it can be a program name with args.
3188set dummy cc; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if ${ac_cv_prog_CC+:} false; then :
3192  $as_echo_n "(cached) " >&6
3193else
3194  if test -n "$CC"; then
3195  ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197  ac_prog_rejected=no
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_exec_ext in '' $ac_executable_extensions; do
3204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206       ac_prog_rejected=yes
3207       continue
3208     fi
3209    ac_cv_prog_CC="cc"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217if test $ac_prog_rejected = yes; then
3218  # We found a bogon in the path, so make sure we never use it.
3219  set dummy $ac_cv_prog_CC
3220  shift
3221  if test $# != 0; then
3222    # We chose a different compiler from the bogus one.
3223    # However, it has the same basename, so the bogon will be chosen
3224    # first if we set CC to just the basename; use the full file name.
3225    shift
3226    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3227  fi
3228fi
3229fi
3230fi
3231CC=$ac_cv_prog_CC
3232if test -n "$CC"; then
3233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3234$as_echo "$CC" >&6; }
3235else
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237$as_echo "no" >&6; }
3238fi
3239
3240
3241fi
3242if test -z "$CC"; then
3243  if test -n "$ac_tool_prefix"; then
3244  for ac_prog in cl.exe
3245  do
3246    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249$as_echo_n "checking for $ac_word... " >&6; }
3250if ${ac_cv_prog_CC+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  if test -n "$CC"; then
3254  ac_cv_prog_CC="$CC" # Let the user override the test.
3255else
3256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257for as_dir in $PATH
3258do
3259  IFS=$as_save_IFS
3260  test -z "$as_dir" && as_dir=.
3261    for ac_exec_ext in '' $ac_executable_extensions; do
3262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265    break 2
3266  fi
3267done
3268  done
3269IFS=$as_save_IFS
3270
3271fi
3272fi
3273CC=$ac_cv_prog_CC
3274if test -n "$CC"; then
3275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3276$as_echo "$CC" >&6; }
3277else
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280fi
3281
3282
3283    test -n "$CC" && break
3284  done
3285fi
3286if test -z "$CC"; then
3287  ac_ct_CC=$CC
3288  for ac_prog in cl.exe
3289do
3290  # Extract the first word of "$ac_prog", so it can be a program name with args.
3291set dummy $ac_prog; ac_word=$2
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293$as_echo_n "checking for $ac_word... " >&6; }
3294if ${ac_cv_prog_ac_ct_CC+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  if test -n "$ac_ct_CC"; then
3298  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_ac_ct_CC="$ac_prog"
3308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312  done
3313IFS=$as_save_IFS
3314
3315fi
3316fi
3317ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318if test -n "$ac_ct_CC"; then
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3320$as_echo "$ac_ct_CC" >&6; }
3321else
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
3327  test -n "$ac_ct_CC" && break
3328done
3329
3330  if test "x$ac_ct_CC" = x; then
3331    CC=""
3332  else
3333    case $cross_compiling:$ac_tool_warned in
3334yes:)
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337ac_tool_warned=yes ;;
3338esac
3339    CC=$ac_ct_CC
3340  fi
3341fi
3342
3343fi
3344
3345
3346test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3348as_fn_error $? "no acceptable C compiler found in \$PATH
3349See \`config.log' for more details" "$LINENO" 5; }
3350
3351# Provide some information about the compiler.
3352$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3353set X $ac_compile
3354ac_compiler=$2
3355for ac_option in --version -v -V -qversion; do
3356  { { ac_try="$ac_compiler $ac_option >&5"
3357case "(($ac_try" in
3358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359  *) ac_try_echo=$ac_try;;
3360esac
3361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3362$as_echo "$ac_try_echo"; } >&5
3363  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3364  ac_status=$?
3365  if test -s conftest.err; then
3366    sed '10a\
3367... rest of stderr output deleted ...
3368         10q' conftest.err >conftest.er1
3369    cat conftest.er1 >&5
3370  fi
3371  rm -f conftest.er1 conftest.err
3372  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373  test $ac_status = 0; }
3374done
3375
3376cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387ac_clean_files_save=$ac_clean_files
3388ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3389# Try to create an executable without -o first, disregard a.out.
3390# It will help us diagnose broken compilers, and finding out an intuition
3391# of exeext.
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3393$as_echo_n "checking whether the C compiler works... " >&6; }
3394ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3395
3396# The possible output files:
3397ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3398
3399ac_rmfiles=
3400for ac_file in $ac_files
3401do
3402  case $ac_file in
3403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3405  esac
3406done
3407rm -f $ac_rmfiles
3408
3409if { { ac_try="$ac_link_default"
3410case "(($ac_try" in
3411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412  *) ac_try_echo=$ac_try;;
3413esac
3414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415$as_echo "$ac_try_echo"; } >&5
3416  (eval "$ac_link_default") 2>&5
3417  ac_status=$?
3418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419  test $ac_status = 0; }; then :
3420  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3421# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3422# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3423# so that the user can short-circuit this test for compilers unknown to
3424# Autoconf.
3425for ac_file in $ac_files ''
3426do
3427  test -f "$ac_file" || continue
3428  case $ac_file in
3429    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3430	;;
3431    [ab].out )
3432	# We found the default executable, but exeext='' is most
3433	# certainly right.
3434	break;;
3435    *.* )
3436	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3437	then :; else
3438	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3439	fi
3440	# We set ac_cv_exeext here because the later test for it is not
3441	# safe: cross compilers may not add the suffix if given an `-o'
3442	# argument, so we may need to know it at that point already.
3443	# Even if this section looks crufty: it has the advantage of
3444	# actually working.
3445	break;;
3446    * )
3447	break;;
3448  esac
3449done
3450test "$ac_cv_exeext" = no && ac_cv_exeext=
3451
3452else
3453  ac_file=''
3454fi
3455if test -z "$ac_file"; then :
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458$as_echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463as_fn_error 77 "C compiler cannot create executables
3464See \`config.log' for more details" "$LINENO" 5; }
3465else
3466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467$as_echo "yes" >&6; }
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3470$as_echo_n "checking for C compiler default output file name... " >&6; }
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3472$as_echo "$ac_file" >&6; }
3473ac_exeext=$ac_cv_exeext
3474
3475rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3476ac_clean_files=$ac_clean_files_save
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3478$as_echo_n "checking for suffix of executables... " >&6; }
3479if { { ac_try="$ac_link"
3480case "(($ac_try" in
3481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482  *) ac_try_echo=$ac_try;;
3483esac
3484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485$as_echo "$ac_try_echo"; } >&5
3486  (eval "$ac_link") 2>&5
3487  ac_status=$?
3488  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489  test $ac_status = 0; }; then :
3490  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3491# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3492# work properly (i.e., refer to `conftest.exe'), while it won't with
3493# `rm'.
3494for ac_file in conftest.exe conftest conftest.*; do
3495  test -f "$ac_file" || continue
3496  case $ac_file in
3497    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3498    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499	  break;;
3500    * ) break;;
3501  esac
3502done
3503else
3504  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3506as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3507See \`config.log' for more details" "$LINENO" 5; }
3508fi
3509rm -f conftest conftest$ac_cv_exeext
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3511$as_echo "$ac_cv_exeext" >&6; }
3512
3513rm -f conftest.$ac_ext
3514EXEEXT=$ac_cv_exeext
3515ac_exeext=$EXEEXT
3516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517/* end confdefs.h.  */
3518#include <stdio.h>
3519int
3520main ()
3521{
3522FILE *f = fopen ("conftest.out", "w");
3523 return ferror (f) || fclose (f) != 0;
3524
3525  ;
3526  return 0;
3527}
3528_ACEOF
3529ac_clean_files="$ac_clean_files conftest.out"
3530# Check that the compiler produces executables we can run.  If not, either
3531# the compiler is broken, or we cross compile.
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3533$as_echo_n "checking whether we are cross compiling... " >&6; }
3534if test "$cross_compiling" != yes; then
3535  { { ac_try="$ac_link"
3536case "(($ac_try" in
3537  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538  *) ac_try_echo=$ac_try;;
3539esac
3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541$as_echo "$ac_try_echo"; } >&5
3542  (eval "$ac_link") 2>&5
3543  ac_status=$?
3544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545  test $ac_status = 0; }
3546  if { ac_try='./conftest$ac_cv_exeext'
3547  { { case "(($ac_try" in
3548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549  *) ac_try_echo=$ac_try;;
3550esac
3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552$as_echo "$ac_try_echo"; } >&5
3553  (eval "$ac_try") 2>&5
3554  ac_status=$?
3555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556  test $ac_status = 0; }; }; then
3557    cross_compiling=no
3558  else
3559    if test "$cross_compiling" = maybe; then
3560	cross_compiling=yes
3561    else
3562	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564as_fn_error $? "cannot run C compiled programs.
3565If you meant to cross compile, use \`--host'.
3566See \`config.log' for more details" "$LINENO" 5; }
3567    fi
3568  fi
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3571$as_echo "$cross_compiling" >&6; }
3572
3573rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3574ac_clean_files=$ac_clean_files_save
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3576$as_echo_n "checking for suffix of object files... " >&6; }
3577if ${ac_cv_objext+:} false; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.o conftest.obj
3592if { { ac_try="$ac_compile"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599  (eval "$ac_compile") 2>&5
3600  ac_status=$?
3601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602  test $ac_status = 0; }; then :
3603  for ac_file in conftest.o conftest.obj conftest.*; do
3604  test -f "$ac_file" || continue;
3605  case $ac_file in
3606    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3607    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3608       break;;
3609  esac
3610done
3611else
3612  $as_echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617as_fn_error $? "cannot compute suffix of object files: cannot compile
3618See \`config.log' for more details" "$LINENO" 5; }
3619fi
3620rm -f conftest.$ac_cv_objext conftest.$ac_ext
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3623$as_echo "$ac_cv_objext" >&6; }
3624OBJEXT=$ac_cv_objext
3625ac_objext=$OBJEXT
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3627$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3628if ${ac_cv_c_compiler_gnu+:} false; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637#ifndef __GNUC__
3638       choke me
3639#endif
3640
3641  ;
3642  return 0;
3643}
3644_ACEOF
3645if ac_fn_c_try_compile "$LINENO"; then :
3646  ac_compiler_gnu=yes
3647else
3648  ac_compiler_gnu=no
3649fi
3650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651ac_cv_c_compiler_gnu=$ac_compiler_gnu
3652
3653fi
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3655$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3656if test $ac_compiler_gnu = yes; then
3657  GCC=yes
3658else
3659  GCC=
3660fi
3661ac_test_CFLAGS=${CFLAGS+set}
3662ac_save_CFLAGS=$CFLAGS
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3664$as_echo_n "checking whether $CC accepts -g... " >&6; }
3665if ${ac_cv_prog_cc_g+:} false; then :
3666  $as_echo_n "(cached) " >&6
3667else
3668  ac_save_c_werror_flag=$ac_c_werror_flag
3669   ac_c_werror_flag=yes
3670   ac_cv_prog_cc_g=no
3671   CFLAGS="-g"
3672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h.  */
3674
3675int
3676main ()
3677{
3678
3679  ;
3680  return 0;
3681}
3682_ACEOF
3683if ac_fn_c_try_compile "$LINENO"; then :
3684  ac_cv_prog_cc_g=yes
3685else
3686  CFLAGS=""
3687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698if ac_fn_c_try_compile "$LINENO"; then :
3699
3700else
3701  ac_c_werror_flag=$ac_save_c_werror_flag
3702	 CFLAGS="-g"
3703	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704/* end confdefs.h.  */
3705
3706int
3707main ()
3708{
3709
3710  ;
3711  return 0;
3712}
3713_ACEOF
3714if ac_fn_c_try_compile "$LINENO"; then :
3715  ac_cv_prog_cc_g=yes
3716fi
3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718fi
3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720fi
3721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722   ac_c_werror_flag=$ac_save_c_werror_flag
3723fi
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3725$as_echo "$ac_cv_prog_cc_g" >&6; }
3726if test "$ac_test_CFLAGS" = set; then
3727  CFLAGS=$ac_save_CFLAGS
3728elif test $ac_cv_prog_cc_g = yes; then
3729  if test "$GCC" = yes; then
3730    CFLAGS="-g -O2"
3731  else
3732    CFLAGS="-g"
3733  fi
3734else
3735  if test "$GCC" = yes; then
3736    CFLAGS="-O2"
3737  else
3738    CFLAGS=
3739  fi
3740fi
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3742$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3743if ${ac_cv_prog_cc_c89+:} false; then :
3744  $as_echo_n "(cached) " >&6
3745else
3746  ac_cv_prog_cc_c89=no
3747ac_save_CC=$CC
3748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749/* end confdefs.h.  */
3750#include <stdarg.h>
3751#include <stdio.h>
3752struct stat;
3753/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3754struct buf { int x; };
3755FILE * (*rcsopen) (struct buf *, struct stat *, int);
3756static char *e (p, i)
3757     char **p;
3758     int i;
3759{
3760  return p[i];
3761}
3762static char *f (char * (*g) (char **, int), char **p, ...)
3763{
3764  char *s;
3765  va_list v;
3766  va_start (v,p);
3767  s = g (p, va_arg (v,int));
3768  va_end (v);
3769  return s;
3770}
3771
3772/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3773   function prototypes and stuff, but not '\xHH' hex character constants.
3774   These don't provoke an error unfortunately, instead are silently treated
3775   as 'x'.  The following induces an error, until -std is added to get
3776   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3777   array size at least.  It's necessary to write '\x00'==0 to get something
3778   that's true only with -std.  */
3779int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3780
3781/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3782   inside strings and character constants.  */
3783#define FOO(x) 'x'
3784int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3785
3786int test (int i, double x);
3787struct s1 {int (*f) (int a);};
3788struct s2 {int (*f) (double a);};
3789int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3790int argc;
3791char **argv;
3792int
3793main ()
3794{
3795return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3801	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3802do
3803  CC="$ac_save_CC $ac_arg"
3804  if ac_fn_c_try_compile "$LINENO"; then :
3805  ac_cv_prog_cc_c89=$ac_arg
3806fi
3807rm -f core conftest.err conftest.$ac_objext
3808  test "x$ac_cv_prog_cc_c89" != "xno" && break
3809done
3810rm -f conftest.$ac_ext
3811CC=$ac_save_CC
3812
3813fi
3814# AC_CACHE_VAL
3815case "x$ac_cv_prog_cc_c89" in
3816  x)
3817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3818$as_echo "none needed" >&6; } ;;
3819  xno)
3820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3821$as_echo "unsupported" >&6; } ;;
3822  *)
3823    CC="$CC $ac_cv_prog_cc_c89"
3824    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3825$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3826esac
3827if test "x$ac_cv_prog_cc_c89" != xno; then :
3828
3829fi
3830
3831ac_ext=c
3832ac_cpp='$CPP $CPPFLAGS'
3833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835ac_compiler_gnu=$ac_cv_c_compiler_gnu
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3843$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3844if ${am_cv_prog_cc_c_o+:} false; then :
3845  $as_echo_n "(cached) " >&6
3846else
3847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849
3850int
3851main ()
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858  # Make sure it works both with $CC and with simple cc.
3859  # Following AC_PROG_CC_C_O, we do the test twice because some
3860  # compilers refuse to overwrite an existing .o file with -o,
3861  # though they will create one.
3862  am_cv_prog_cc_c_o=yes
3863  for am_i in 1 2; do
3864    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3865   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); } \
3869         && test -f conftest2.$ac_objext; then
3870      : OK
3871    else
3872      am_cv_prog_cc_c_o=no
3873      break
3874    fi
3875  done
3876  rm -f core conftest*
3877  unset am_i
3878fi
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3880$as_echo "$am_cv_prog_cc_c_o" >&6; }
3881if test "$am_cv_prog_cc_c_o" != yes; then
3882   # Losing compiler, so override with the script.
3883   # FIXME: It is wrong to rewrite CC.
3884   # But if we don't then we get into trouble of one sort or another.
3885   # A longer-term fix would be to have automake use am__CC in this case,
3886   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3887   CC="$am_aux_dir/compile $CC"
3888fi
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894
3895
3896depcc="$CC"   am_compiler_list=
3897
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3899$as_echo_n "checking dependency style of $depcc... " >&6; }
3900if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3901  $as_echo_n "(cached) " >&6
3902else
3903  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3904  # We make a subdir and do the tests there.  Otherwise we can end up
3905  # making bogus files that we don't know about and never remove.  For
3906  # instance it was reported that on HP-UX the gcc test will end up
3907  # making a dummy file named 'D' -- because '-MD' means "put the output
3908  # in D".
3909  rm -rf conftest.dir
3910  mkdir conftest.dir
3911  # Copy depcomp to subdir because otherwise we won't find it if we're
3912  # using a relative directory.
3913  cp "$am_depcomp" conftest.dir
3914  cd conftest.dir
3915  # We will build objects and dependencies in a subdirectory because
3916  # it helps to detect inapplicable dependency modes.  For instance
3917  # both Tru64's cc and ICC support -MD to output dependencies as a
3918  # side effect of compilation, but ICC will put the dependencies in
3919  # the current directory while Tru64 will put them in the object
3920  # directory.
3921  mkdir sub
3922
3923  am_cv_CC_dependencies_compiler_type=none
3924  if test "$am_compiler_list" = ""; then
3925     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3926  fi
3927  am__universal=false
3928  case " $depcc " in #(
3929     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3930     esac
3931
3932  for depmode in $am_compiler_list; do
3933    # Setup a source with many dependencies, because some compilers
3934    # like to wrap large dependency lists on column 80 (with \), and
3935    # we should not choose a depcomp mode which is confused by this.
3936    #
3937    # We need to recreate these files for each test, as the compiler may
3938    # overwrite some of them when testing with obscure command lines.
3939    # This happens at least with the AIX C compiler.
3940    : > sub/conftest.c
3941    for i in 1 2 3 4 5 6; do
3942      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3943      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3944      # Solaris 10 /bin/sh.
3945      echo '/* dummy */' > sub/conftst$i.h
3946    done
3947    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3948
3949    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3950    # mode.  It turns out that the SunPro C++ compiler does not properly
3951    # handle '-M -o', and we need to detect this.  Also, some Intel
3952    # versions had trouble with output in subdirs.
3953    am__obj=sub/conftest.${OBJEXT-o}
3954    am__minus_obj="-o $am__obj"
3955    case $depmode in
3956    gcc)
3957      # This depmode causes a compiler race in universal mode.
3958      test "$am__universal" = false || continue
3959      ;;
3960    nosideeffect)
3961      # After this tag, mechanisms are not by side-effect, so they'll
3962      # only be used when explicitly requested.
3963      if test "x$enable_dependency_tracking" = xyes; then
3964	continue
3965      else
3966	break
3967      fi
3968      ;;
3969    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3970      # This compiler won't grok '-c -o', but also, the minuso test has
3971      # not run yet.  These depmodes are late enough in the game, and
3972      # so weak that their functioning should not be impacted.
3973      am__obj=conftest.${OBJEXT-o}
3974      am__minus_obj=
3975      ;;
3976    none) break ;;
3977    esac
3978    if depmode=$depmode \
3979       source=sub/conftest.c object=$am__obj \
3980       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3981       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3982         >/dev/null 2>conftest.err &&
3983       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3984       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3985       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3986       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3987      # icc doesn't choke on unknown options, it will just issue warnings
3988      # or remarks (even with -Werror).  So we grep stderr for any message
3989      # that says an option was ignored or not supported.
3990      # When given -MP, icc 7.0 and 7.1 complain thusly:
3991      #   icc: Command line warning: ignoring option '-M'; no argument required
3992      # The diagnosis changed in icc 8.0:
3993      #   icc: Command line remark: option '-MP' not supported
3994      if (grep 'ignoring option' conftest.err ||
3995          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3996        am_cv_CC_dependencies_compiler_type=$depmode
3997        break
3998      fi
3999    fi
4000  done
4001
4002  cd ..
4003  rm -rf conftest.dir
4004else
4005  am_cv_CC_dependencies_compiler_type=none
4006fi
4007
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4010$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4011CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4012
4013 if
4014  test "x$enable_dependency_tracking" != xno \
4015  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4016  am__fastdepCC_TRUE=
4017  am__fastdepCC_FALSE='#'
4018else
4019  am__fastdepCC_TRUE='#'
4020  am__fastdepCC_FALSE=
4021fi
4022
4023
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4025$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4026if ${ac_cv_prog_cc_c99+:} false; then :
4027  $as_echo_n "(cached) " >&6
4028else
4029  ac_cv_prog_cc_c99=no
4030ac_save_CC=$CC
4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033#include <stdarg.h>
4034#include <stdbool.h>
4035#include <stdlib.h>
4036#include <wchar.h>
4037#include <stdio.h>
4038
4039// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4040#define debug(...) fprintf (stderr, __VA_ARGS__)
4041#define showlist(...) puts (#__VA_ARGS__)
4042#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4043static void
4044test_varargs_macros (void)
4045{
4046  int x = 1234;
4047  int y = 5678;
4048  debug ("Flag");
4049  debug ("X = %d\n", x);
4050  showlist (The first, second, and third items.);
4051  report (x>y, "x is %d but y is %d", x, y);
4052}
4053
4054// Check long long types.
4055#define BIG64 18446744073709551615ull
4056#define BIG32 4294967295ul
4057#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4058#if !BIG_OK
4059  your preprocessor is broken;
4060#endif
4061#if BIG_OK
4062#else
4063  your preprocessor is broken;
4064#endif
4065static long long int bignum = -9223372036854775807LL;
4066static unsigned long long int ubignum = BIG64;
4067
4068struct incomplete_array
4069{
4070  int datasize;
4071  double data[];
4072};
4073
4074struct named_init {
4075  int number;
4076  const wchar_t *name;
4077  double average;
4078};
4079
4080typedef const char *ccp;
4081
4082static inline int
4083test_restrict (ccp restrict text)
4084{
4085  // See if C++-style comments work.
4086  // Iterate through items via the restricted pointer.
4087  // Also check for declarations in for loops.
4088  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4089    continue;
4090  return 0;
4091}
4092
4093// Check varargs and va_copy.
4094static void
4095test_varargs (const char *format, ...)
4096{
4097  va_list args;
4098  va_start (args, format);
4099  va_list args_copy;
4100  va_copy (args_copy, args);
4101
4102  const char *str;
4103  int number;
4104  float fnumber;
4105
4106  while (*format)
4107    {
4108      switch (*format++)
4109	{
4110	case 's': // string
4111	  str = va_arg (args_copy, const char *);
4112	  break;
4113	case 'd': // int
4114	  number = va_arg (args_copy, int);
4115	  break;
4116	case 'f': // float
4117	  fnumber = va_arg (args_copy, double);
4118	  break;
4119	default:
4120	  break;
4121	}
4122    }
4123  va_end (args_copy);
4124  va_end (args);
4125}
4126
4127int
4128main ()
4129{
4130
4131  // Check bool.
4132  _Bool success = false;
4133
4134  // Check restrict.
4135  if (test_restrict ("String literal") == 0)
4136    success = true;
4137  char *restrict newvar = "Another string";
4138
4139  // Check varargs.
4140  test_varargs ("s, d' f .", "string", 65, 34.234);
4141  test_varargs_macros ();
4142
4143  // Check flexible array members.
4144  struct incomplete_array *ia =
4145    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4146  ia->datasize = 10;
4147  for (int i = 0; i < ia->datasize; ++i)
4148    ia->data[i] = i * 1.234;
4149
4150  // Check named initializers.
4151  struct named_init ni = {
4152    .number = 34,
4153    .name = L"Test wide string",
4154    .average = 543.34343,
4155  };
4156
4157  ni.number = 58;
4158
4159  int dynamic_array[ni.number];
4160  dynamic_array[ni.number - 1] = 543;
4161
4162  // work around unused variable warnings
4163  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4164	  || dynamic_array[ni.number - 1] != 543);
4165
4166  ;
4167  return 0;
4168}
4169_ACEOF
4170for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4171do
4172  CC="$ac_save_CC $ac_arg"
4173  if ac_fn_c_try_compile "$LINENO"; then :
4174  ac_cv_prog_cc_c99=$ac_arg
4175fi
4176rm -f core conftest.err conftest.$ac_objext
4177  test "x$ac_cv_prog_cc_c99" != "xno" && break
4178done
4179rm -f conftest.$ac_ext
4180CC=$ac_save_CC
4181
4182fi
4183# AC_CACHE_VAL
4184case "x$ac_cv_prog_cc_c99" in
4185  x)
4186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4187$as_echo "none needed" >&6; } ;;
4188  xno)
4189    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4190$as_echo "unsupported" >&6; } ;;
4191  *)
4192    CC="$CC $ac_cv_prog_cc_c99"
4193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4194$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4195esac
4196if test "x$ac_cv_prog_cc_c99" != xno; then :
4197
4198fi
4199
4200
4201
4202ac_ext=c
4203ac_cpp='$CPP $CPPFLAGS'
4204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208$as_echo_n "checking how to run the C preprocessor... " >&6; }
4209# On Suns, sometimes $CPP names a directory.
4210if test -n "$CPP" && test -d "$CPP"; then
4211  CPP=
4212fi
4213if test -z "$CPP"; then
4214  if ${ac_cv_prog_CPP+:} false; then :
4215  $as_echo_n "(cached) " >&6
4216else
4217      # Double quotes because CPP needs to be expanded
4218    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219    do
4220      ac_preproc_ok=false
4221for ac_c_preproc_warn_flag in '' yes
4222do
4223  # Use a header file that comes with gcc, so configuring glibc
4224  # with a fresh cross-compiler works.
4225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226  # <limits.h> exists even on freestanding compilers.
4227  # On the NeXT, cc -E runs the code through the compiler's parser,
4228  # not just through cpp. "Syntax error" is here to catch this case.
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#ifdef __STDC__
4232# include <limits.h>
4233#else
4234# include <assert.h>
4235#endif
4236		     Syntax error
4237_ACEOF
4238if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240else
4241  # Broken: fails on valid input.
4242continue
4243fi
4244rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246  # OK, works on sane cases.  Now check whether nonexistent headers
4247  # can be detected and how.
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <ac_nonexistent.h>
4251_ACEOF
4252if ac_fn_c_try_cpp "$LINENO"; then :
4253  # Broken: success on invalid input.
4254continue
4255else
4256  # Passes both tests.
4257ac_preproc_ok=:
4258break
4259fi
4260rm -f conftest.err conftest.i conftest.$ac_ext
4261
4262done
4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264rm -f conftest.i conftest.err conftest.$ac_ext
4265if $ac_preproc_ok; then :
4266  break
4267fi
4268
4269    done
4270    ac_cv_prog_CPP=$CPP
4271
4272fi
4273  CPP=$ac_cv_prog_CPP
4274else
4275  ac_cv_prog_CPP=$CPP
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278$as_echo "$CPP" >&6; }
4279ac_preproc_ok=false
4280for ac_c_preproc_warn_flag in '' yes
4281do
4282  # Use a header file that comes with gcc, so configuring glibc
4283  # with a fresh cross-compiler works.
4284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285  # <limits.h> exists even on freestanding compilers.
4286  # On the NeXT, cc -E runs the code through the compiler's parser,
4287  # not just through cpp. "Syntax error" is here to catch this case.
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290#ifdef __STDC__
4291# include <limits.h>
4292#else
4293# include <assert.h>
4294#endif
4295		     Syntax error
4296_ACEOF
4297if ac_fn_c_try_cpp "$LINENO"; then :
4298
4299else
4300  # Broken: fails on valid input.
4301continue
4302fi
4303rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305  # OK, works on sane cases.  Now check whether nonexistent headers
4306  # can be detected and how.
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <ac_nonexistent.h>
4310_ACEOF
4311if ac_fn_c_try_cpp "$LINENO"; then :
4312  # Broken: success on invalid input.
4313continue
4314else
4315  # Passes both tests.
4316ac_preproc_ok=:
4317break
4318fi
4319rm -f conftest.err conftest.i conftest.$ac_ext
4320
4321done
4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323rm -f conftest.i conftest.err conftest.$ac_ext
4324if $ac_preproc_ok; then :
4325
4326else
4327  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4330See \`config.log' for more details" "$LINENO" 5; }
4331fi
4332
4333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339
4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4341$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4342if ${ac_cv_path_GREP+:} false; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -z "$GREP"; then
4346  ac_path_GREP_found=false
4347  # Loop through the user's path and test for each of PROGNAME-LIST
4348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350do
4351  IFS=$as_save_IFS
4352  test -z "$as_dir" && as_dir=.
4353    for ac_prog in grep ggrep; do
4354    for ac_exec_ext in '' $ac_executable_extensions; do
4355      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4356      as_fn_executable_p "$ac_path_GREP" || continue
4357# Check for GNU ac_path_GREP and select it if it is found.
4358  # Check for GNU $ac_path_GREP
4359case `"$ac_path_GREP" --version 2>&1` in
4360*GNU*)
4361  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4362*)
4363  ac_count=0
4364  $as_echo_n 0123456789 >"conftest.in"
4365  while :
4366  do
4367    cat "conftest.in" "conftest.in" >"conftest.tmp"
4368    mv "conftest.tmp" "conftest.in"
4369    cp "conftest.in" "conftest.nl"
4370    $as_echo 'GREP' >> "conftest.nl"
4371    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373    as_fn_arith $ac_count + 1 && ac_count=$as_val
4374    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4375      # Best one so far, save it but keep looking for a better one
4376      ac_cv_path_GREP="$ac_path_GREP"
4377      ac_path_GREP_max=$ac_count
4378    fi
4379    # 10*(2^10) chars as input seems more than enough
4380    test $ac_count -gt 10 && break
4381  done
4382  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383esac
4384
4385      $ac_path_GREP_found && break 3
4386    done
4387  done
4388  done
4389IFS=$as_save_IFS
4390  if test -z "$ac_cv_path_GREP"; then
4391    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392  fi
4393else
4394  ac_cv_path_GREP=$GREP
4395fi
4396
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4399$as_echo "$ac_cv_path_GREP" >&6; }
4400 GREP="$ac_cv_path_GREP"
4401
4402
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4404$as_echo_n "checking for egrep... " >&6; }
4405if ${ac_cv_path_EGREP+:} false; then :
4406  $as_echo_n "(cached) " >&6
4407else
4408  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4409   then ac_cv_path_EGREP="$GREP -E"
4410   else
4411     if test -z "$EGREP"; then
4412  ac_path_EGREP_found=false
4413  # Loop through the user's path and test for each of PROGNAME-LIST
4414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419    for ac_prog in egrep; do
4420    for ac_exec_ext in '' $ac_executable_extensions; do
4421      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4422      as_fn_executable_p "$ac_path_EGREP" || continue
4423# Check for GNU ac_path_EGREP and select it if it is found.
4424  # Check for GNU $ac_path_EGREP
4425case `"$ac_path_EGREP" --version 2>&1` in
4426*GNU*)
4427  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4428*)
4429  ac_count=0
4430  $as_echo_n 0123456789 >"conftest.in"
4431  while :
4432  do
4433    cat "conftest.in" "conftest.in" >"conftest.tmp"
4434    mv "conftest.tmp" "conftest.in"
4435    cp "conftest.in" "conftest.nl"
4436    $as_echo 'EGREP' >> "conftest.nl"
4437    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439    as_fn_arith $ac_count + 1 && ac_count=$as_val
4440    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4441      # Best one so far, save it but keep looking for a better one
4442      ac_cv_path_EGREP="$ac_path_EGREP"
4443      ac_path_EGREP_max=$ac_count
4444    fi
4445    # 10*(2^10) chars as input seems more than enough
4446    test $ac_count -gt 10 && break
4447  done
4448  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449esac
4450
4451      $ac_path_EGREP_found && break 3
4452    done
4453  done
4454  done
4455IFS=$as_save_IFS
4456  if test -z "$ac_cv_path_EGREP"; then
4457    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458  fi
4459else
4460  ac_cv_path_EGREP=$EGREP
4461fi
4462
4463   fi
4464fi
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4466$as_echo "$ac_cv_path_EGREP" >&6; }
4467 EGREP="$ac_cv_path_EGREP"
4468
4469
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4471$as_echo_n "checking for ANSI C header files... " >&6; }
4472if ${ac_cv_header_stdc+:} false; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <stdlib.h>
4478#include <stdarg.h>
4479#include <string.h>
4480#include <float.h>
4481
4482int
4483main ()
4484{
4485
4486  ;
4487  return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491  ac_cv_header_stdc=yes
4492else
4493  ac_cv_header_stdc=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496
4497if test $ac_cv_header_stdc = yes; then
4498  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501#include <string.h>
4502
4503_ACEOF
4504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505  $EGREP "memchr" >/dev/null 2>&1; then :
4506
4507else
4508  ac_cv_header_stdc=no
4509fi
4510rm -f conftest*
4511
4512fi
4513
4514if test $ac_cv_header_stdc = yes; then
4515  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h.  */
4518#include <stdlib.h>
4519
4520_ACEOF
4521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522  $EGREP "free" >/dev/null 2>&1; then :
4523
4524else
4525  ac_cv_header_stdc=no
4526fi
4527rm -f conftest*
4528
4529fi
4530
4531if test $ac_cv_header_stdc = yes; then
4532  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533  if test "$cross_compiling" = yes; then :
4534  :
4535else
4536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h.  */
4538#include <ctype.h>
4539#include <stdlib.h>
4540#if ((' ' & 0x0FF) == 0x020)
4541# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4543#else
4544# define ISLOWER(c) \
4545		   (('a' <= (c) && (c) <= 'i') \
4546		     || ('j' <= (c) && (c) <= 'r') \
4547		     || ('s' <= (c) && (c) <= 'z'))
4548# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549#endif
4550
4551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4552int
4553main ()
4554{
4555  int i;
4556  for (i = 0; i < 256; i++)
4557    if (XOR (islower (i), ISLOWER (i))
4558	|| toupper (i) != TOUPPER (i))
4559      return 2;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_run "$LINENO"; then :
4564
4565else
4566  ac_cv_header_stdc=no
4567fi
4568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4569  conftest.$ac_objext conftest.beam conftest.$ac_ext
4570fi
4571
4572fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4575$as_echo "$ac_cv_header_stdc" >&6; }
4576if test $ac_cv_header_stdc = yes; then
4577
4578$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4579
4580fi
4581
4582# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584		  inttypes.h stdint.h unistd.h
4585do :
4586  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4588"
4589if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4590  cat >>confdefs.h <<_ACEOF
4591#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592_ACEOF
4593
4594fi
4595
4596done
4597
4598
4599
4600
4601
4602
4603ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4604if test "x$ac_cv_have_decl___clang__" = xyes; then :
4605  CLANGCC="yes"
4606else
4607  CLANGCC="no"
4608fi
4609
4610ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4611if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4612  INTELCC="yes"
4613else
4614  INTELCC="no"
4615fi
4616
4617ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4618if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4619  SUNCC="yes"
4620else
4621  SUNCC="no"
4622fi
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4633	if test -n "$ac_tool_prefix"; then
4634  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4635set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637$as_echo_n "checking for $ac_word... " >&6; }
4638if ${ac_cv_path_PKG_CONFIG+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  case $PKG_CONFIG in
4642  [\\/]* | ?:[\\/]*)
4643  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4644  ;;
4645  *)
4646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  test -z "$as_dir" && as_dir=.
4651    for ac_exec_ext in '' $ac_executable_extensions; do
4652  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4654    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655    break 2
4656  fi
4657done
4658  done
4659IFS=$as_save_IFS
4660
4661  ;;
4662esac
4663fi
4664PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4665if test -n "$PKG_CONFIG"; then
4666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4667$as_echo "$PKG_CONFIG" >&6; }
4668else
4669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673
4674fi
4675if test -z "$ac_cv_path_PKG_CONFIG"; then
4676  ac_pt_PKG_CONFIG=$PKG_CONFIG
4677  # Extract the first word of "pkg-config", so it can be a program name with args.
4678set dummy pkg-config; ac_word=$2
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4682  $as_echo_n "(cached) " >&6
4683else
4684  case $ac_pt_PKG_CONFIG in
4685  [\\/]* | ?:[\\/]*)
4686  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4687  ;;
4688  *)
4689  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704  ;;
4705esac
4706fi
4707ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4708if test -n "$ac_pt_PKG_CONFIG"; then
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4710$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4711else
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716  if test "x$ac_pt_PKG_CONFIG" = x; then
4717    PKG_CONFIG=""
4718  else
4719    case $cross_compiling:$ac_tool_warned in
4720yes:)
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723ac_tool_warned=yes ;;
4724esac
4725    PKG_CONFIG=$ac_pt_PKG_CONFIG
4726  fi
4727else
4728  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4729fi
4730
4731fi
4732if test -n "$PKG_CONFIG"; then
4733	_pkg_min_version=0.9.0
4734	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4735$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4736	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4737		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4738$as_echo "yes" >&6; }
4739	else
4740		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741$as_echo "no" >&6; }
4742		PKG_CONFIG=""
4743	fi
4744fi
4745# Make sure we can run config.sub.
4746$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4747  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4750$as_echo_n "checking build system type... " >&6; }
4751if ${ac_cv_build+:} false; then :
4752  $as_echo_n "(cached) " >&6
4753else
4754  ac_build_alias=$build_alias
4755test "x$ac_build_alias" = x &&
4756  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4757test "x$ac_build_alias" = x &&
4758  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4759ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4760  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4761
4762fi
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4764$as_echo "$ac_cv_build" >&6; }
4765case $ac_cv_build in
4766*-*-*) ;;
4767*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4768esac
4769build=$ac_cv_build
4770ac_save_IFS=$IFS; IFS='-'
4771set x $ac_cv_build
4772shift
4773build_cpu=$1
4774build_vendor=$2
4775shift; shift
4776# Remember, the first character of IFS is used to create $*,
4777# except with old shells:
4778build_os=$*
4779IFS=$ac_save_IFS
4780case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4781
4782
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4784$as_echo_n "checking host system type... " >&6; }
4785if ${ac_cv_host+:} false; then :
4786  $as_echo_n "(cached) " >&6
4787else
4788  if test "x$host_alias" = x; then
4789  ac_cv_host=$ac_cv_build
4790else
4791  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4792    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4797$as_echo "$ac_cv_host" >&6; }
4798case $ac_cv_host in
4799*-*-*) ;;
4800*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4801esac
4802host=$ac_cv_host
4803ac_save_IFS=$IFS; IFS='-'
4804set x $ac_cv_host
4805shift
4806host_cpu=$1
4807host_vendor=$2
4808shift; shift
4809# Remember, the first character of IFS is used to create $*,
4810# except with old shells:
4811host_os=$*
4812IFS=$ac_save_IFS
4813case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4814
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4817$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4818if ${ac_cv_path_SED+:} false; then :
4819  $as_echo_n "(cached) " >&6
4820else
4821            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4822     for ac_i in 1 2 3 4 5 6 7; do
4823       ac_script="$ac_script$as_nl$ac_script"
4824     done
4825     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4826     { ac_script=; unset ac_script;}
4827     if test -z "$SED"; then
4828  ac_path_SED_found=false
4829  # Loop through the user's path and test for each of PROGNAME-LIST
4830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835    for ac_prog in sed gsed; do
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4838      as_fn_executable_p "$ac_path_SED" || continue
4839# Check for GNU ac_path_SED and select it if it is found.
4840  # Check for GNU $ac_path_SED
4841case `"$ac_path_SED" --version 2>&1` in
4842*GNU*)
4843  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4844*)
4845  ac_count=0
4846  $as_echo_n 0123456789 >"conftest.in"
4847  while :
4848  do
4849    cat "conftest.in" "conftest.in" >"conftest.tmp"
4850    mv "conftest.tmp" "conftest.in"
4851    cp "conftest.in" "conftest.nl"
4852    $as_echo '' >> "conftest.nl"
4853    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855    as_fn_arith $ac_count + 1 && ac_count=$as_val
4856    if test $ac_count -gt ${ac_path_SED_max-0}; then
4857      # Best one so far, save it but keep looking for a better one
4858      ac_cv_path_SED="$ac_path_SED"
4859      ac_path_SED_max=$ac_count
4860    fi
4861    # 10*(2^10) chars as input seems more than enough
4862    test $ac_count -gt 10 && break
4863  done
4864  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865esac
4866
4867      $ac_path_SED_found && break 3
4868    done
4869  done
4870  done
4871IFS=$as_save_IFS
4872  if test -z "$ac_cv_path_SED"; then
4873    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4874  fi
4875else
4876  ac_cv_path_SED=$SED
4877fi
4878
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4881$as_echo "$ac_cv_path_SED" >&6; }
4882 SED="$ac_cv_path_SED"
4883  rm -f conftest.sed
4884
4885
4886
4887
4888
4889
4890# Check whether --enable-selective-werror was given.
4891if test "${enable_selective_werror+set}" = set; then :
4892  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4893else
4894  SELECTIVE_WERROR=yes
4895fi
4896
4897
4898
4899
4900
4901# -v is too short to test reliably with XORG_TESTSET_CFLAG
4902if test "x$SUNCC" = "xyes"; then
4903    BASE_CFLAGS="-v"
4904else
4905    BASE_CFLAGS=""
4906fi
4907
4908# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922xorg_testset_save_CFLAGS="$CFLAGS"
4923
4924if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4925	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4927$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4928if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4929  $as_echo_n "(cached) " >&6
4930else
4931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933int i;
4934_ACEOF
4935if ac_fn_c_try_compile "$LINENO"; then :
4936  xorg_cv_cc_flag_unknown_warning_option=yes
4937else
4938  xorg_cv_cc_flag_unknown_warning_option=no
4939fi
4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4941fi
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4943$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4944	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4945	CFLAGS="$xorg_testset_save_CFLAGS"
4946fi
4947
4948if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4949	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4950		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4951	fi
4952	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4953	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4954$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4955if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959/* end confdefs.h.  */
4960int i;
4961_ACEOF
4962if ac_fn_c_try_compile "$LINENO"; then :
4963  xorg_cv_cc_flag_unused_command_line_argument=yes
4964else
4965  xorg_cv_cc_flag_unused_command_line_argument=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4970$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4972	CFLAGS="$xorg_testset_save_CFLAGS"
4973fi
4974
4975found="no"
4976
4977	if test $found = "no" ; then
4978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4980		fi
4981
4982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4984		fi
4985
4986		CFLAGS="$CFLAGS -Wall"
4987
4988		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4989$as_echo_n "checking if $CC supports -Wall... " >&6; }
4990		cacheid=xorg_cv_cc_flag__Wall
4991		if eval \${$cacheid+:} false; then :
4992  $as_echo_n "(cached) " >&6
4993else
4994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995/* end confdefs.h.  */
4996int i;
4997int
4998main ()
4999{
5000
5001  ;
5002  return 0;
5003}
5004_ACEOF
5005if ac_fn_c_try_link "$LINENO"; then :
5006  eval $cacheid=yes
5007else
5008  eval $cacheid=no
5009fi
5010rm -f core conftest.err conftest.$ac_objext \
5011    conftest$ac_exeext conftest.$ac_ext
5012fi
5013
5014
5015		CFLAGS="$xorg_testset_save_CFLAGS"
5016
5017		eval supported=\$$cacheid
5018		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5019$as_echo "$supported" >&6; }
5020		if test "$supported" = "yes" ; then
5021			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5022			found="yes"
5023		fi
5024	fi
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040xorg_testset_save_CFLAGS="$CFLAGS"
5041
5042if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5043	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5045$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5046if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5047  $as_echo_n "(cached) " >&6
5048else
5049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h.  */
5051int i;
5052_ACEOF
5053if ac_fn_c_try_compile "$LINENO"; then :
5054  xorg_cv_cc_flag_unknown_warning_option=yes
5055else
5056  xorg_cv_cc_flag_unknown_warning_option=no
5057fi
5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059fi
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5061$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5062	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5063	CFLAGS="$xorg_testset_save_CFLAGS"
5064fi
5065
5066if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5067	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5068		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5069	fi
5070	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5071	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5072$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5073if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5074  $as_echo_n "(cached) " >&6
5075else
5076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077/* end confdefs.h.  */
5078int i;
5079_ACEOF
5080if ac_fn_c_try_compile "$LINENO"; then :
5081  xorg_cv_cc_flag_unused_command_line_argument=yes
5082else
5083  xorg_cv_cc_flag_unused_command_line_argument=no
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5088$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5090	CFLAGS="$xorg_testset_save_CFLAGS"
5091fi
5092
5093found="no"
5094
5095	if test $found = "no" ; then
5096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5098		fi
5099
5100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5102		fi
5103
5104		CFLAGS="$CFLAGS -Wpointer-arith"
5105
5106		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5107$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5108		cacheid=xorg_cv_cc_flag__Wpointer_arith
5109		if eval \${$cacheid+:} false; then :
5110  $as_echo_n "(cached) " >&6
5111else
5112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114int i;
5115int
5116main ()
5117{
5118
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123if ac_fn_c_try_link "$LINENO"; then :
5124  eval $cacheid=yes
5125else
5126  eval $cacheid=no
5127fi
5128rm -f core conftest.err conftest.$ac_objext \
5129    conftest$ac_exeext conftest.$ac_ext
5130fi
5131
5132
5133		CFLAGS="$xorg_testset_save_CFLAGS"
5134
5135		eval supported=\$$cacheid
5136		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5137$as_echo "$supported" >&6; }
5138		if test "$supported" = "yes" ; then
5139			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5140			found="yes"
5141		fi
5142	fi
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158xorg_testset_save_CFLAGS="$CFLAGS"
5159
5160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5161	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5165  $as_echo_n "(cached) " >&6
5166else
5167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h.  */
5169int i;
5170_ACEOF
5171if ac_fn_c_try_compile "$LINENO"; then :
5172  xorg_cv_cc_flag_unknown_warning_option=yes
5173else
5174  xorg_cv_cc_flag_unknown_warning_option=no
5175fi
5176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177fi
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5181	CFLAGS="$xorg_testset_save_CFLAGS"
5182fi
5183
5184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5187	fi
5188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5192  $as_echo_n "(cached) " >&6
5193else
5194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195/* end confdefs.h.  */
5196int i;
5197_ACEOF
5198if ac_fn_c_try_compile "$LINENO"; then :
5199  xorg_cv_cc_flag_unused_command_line_argument=yes
5200else
5201  xorg_cv_cc_flag_unused_command_line_argument=no
5202fi
5203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5204fi
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5207	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5208	CFLAGS="$xorg_testset_save_CFLAGS"
5209fi
5210
5211found="no"
5212
5213	if test $found = "no" ; then
5214		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216		fi
5217
5218		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5219			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5220		fi
5221
5222		CFLAGS="$CFLAGS -Wmissing-declarations"
5223
5224		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5225$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5226		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5227		if eval \${$cacheid+:} false; then :
5228  $as_echo_n "(cached) " >&6
5229else
5230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231/* end confdefs.h.  */
5232int i;
5233int
5234main ()
5235{
5236
5237  ;
5238  return 0;
5239}
5240_ACEOF
5241if ac_fn_c_try_link "$LINENO"; then :
5242  eval $cacheid=yes
5243else
5244  eval $cacheid=no
5245fi
5246rm -f core conftest.err conftest.$ac_objext \
5247    conftest$ac_exeext conftest.$ac_ext
5248fi
5249
5250
5251		CFLAGS="$xorg_testset_save_CFLAGS"
5252
5253		eval supported=\$$cacheid
5254		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5255$as_echo "$supported" >&6; }
5256		if test "$supported" = "yes" ; then
5257			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5258			found="yes"
5259		fi
5260	fi
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276xorg_testset_save_CFLAGS="$CFLAGS"
5277
5278if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5279	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5281$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5282if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5283  $as_echo_n "(cached) " >&6
5284else
5285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286/* end confdefs.h.  */
5287int i;
5288_ACEOF
5289if ac_fn_c_try_compile "$LINENO"; then :
5290  xorg_cv_cc_flag_unknown_warning_option=yes
5291else
5292  xorg_cv_cc_flag_unknown_warning_option=no
5293fi
5294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295fi
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5297$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5298	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5299	CFLAGS="$xorg_testset_save_CFLAGS"
5300fi
5301
5302if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5303	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5304		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5305	fi
5306	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5307	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5308$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5309if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5310  $as_echo_n "(cached) " >&6
5311else
5312  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5313/* end confdefs.h.  */
5314int i;
5315_ACEOF
5316if ac_fn_c_try_compile "$LINENO"; then :
5317  xorg_cv_cc_flag_unused_command_line_argument=yes
5318else
5319  xorg_cv_cc_flag_unused_command_line_argument=no
5320fi
5321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322fi
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5324$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5325	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5326	CFLAGS="$xorg_testset_save_CFLAGS"
5327fi
5328
5329found="no"
5330
5331	if test $found = "no" ; then
5332		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5333			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5334		fi
5335
5336		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5337			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338		fi
5339
5340		CFLAGS="$CFLAGS -Wformat=2"
5341
5342		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5343$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5344		cacheid=xorg_cv_cc_flag__Wformat_2
5345		if eval \${$cacheid+:} false; then :
5346  $as_echo_n "(cached) " >&6
5347else
5348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349/* end confdefs.h.  */
5350int i;
5351int
5352main ()
5353{
5354
5355  ;
5356  return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_link "$LINENO"; then :
5360  eval $cacheid=yes
5361else
5362  eval $cacheid=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext \
5365    conftest$ac_exeext conftest.$ac_ext
5366fi
5367
5368
5369		CFLAGS="$xorg_testset_save_CFLAGS"
5370
5371		eval supported=\$$cacheid
5372		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5373$as_echo "$supported" >&6; }
5374		if test "$supported" = "yes" ; then
5375			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5376			found="yes"
5377		fi
5378	fi
5379
5380	if test $found = "no" ; then
5381		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5382			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383		fi
5384
5385		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5386			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5387		fi
5388
5389		CFLAGS="$CFLAGS -Wformat"
5390
5391		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5392$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5393		cacheid=xorg_cv_cc_flag__Wformat
5394		if eval \${$cacheid+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399int i;
5400int
5401main ()
5402{
5403
5404  ;
5405  return 0;
5406}
5407_ACEOF
5408if ac_fn_c_try_link "$LINENO"; then :
5409  eval $cacheid=yes
5410else
5411  eval $cacheid=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext \
5414    conftest$ac_exeext conftest.$ac_ext
5415fi
5416
5417
5418		CFLAGS="$xorg_testset_save_CFLAGS"
5419
5420		eval supported=\$$cacheid
5421		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5422$as_echo "$supported" >&6; }
5423		if test "$supported" = "yes" ; then
5424			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5425			found="yes"
5426		fi
5427	fi
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445xorg_testset_save_CFLAGS="$CFLAGS"
5446
5447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h.  */
5456int i;
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"; then :
5459  xorg_cv_cc_flag_unknown_warning_option=yes
5460else
5461  xorg_cv_cc_flag_unknown_warning_option=no
5462fi
5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464fi
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5468	CFLAGS="$xorg_testset_save_CFLAGS"
5469fi
5470
5471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474	fi
5475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483int i;
5484_ACEOF
5485if ac_fn_c_try_compile "$LINENO"; then :
5486  xorg_cv_cc_flag_unused_command_line_argument=yes
5487else
5488  xorg_cv_cc_flag_unused_command_line_argument=no
5489fi
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491fi
5492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5495	CFLAGS="$xorg_testset_save_CFLAGS"
5496fi
5497
5498found="no"
5499
5500	if test $found = "no" ; then
5501		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5503		fi
5504
5505		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5507		fi
5508
5509		CFLAGS="$CFLAGS -Wstrict-prototypes"
5510
5511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5512$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5513		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5514		if eval \${$cacheid+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518/* end confdefs.h.  */
5519int i;
5520int
5521main ()
5522{
5523
5524  ;
5525  return 0;
5526}
5527_ACEOF
5528if ac_fn_c_try_link "$LINENO"; then :
5529  eval $cacheid=yes
5530else
5531  eval $cacheid=no
5532fi
5533rm -f core conftest.err conftest.$ac_objext \
5534    conftest$ac_exeext conftest.$ac_ext
5535fi
5536
5537
5538		CFLAGS="$xorg_testset_save_CFLAGS"
5539
5540		eval supported=\$$cacheid
5541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5542$as_echo "$supported" >&6; }
5543		if test "$supported" = "yes" ; then
5544			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5545			found="yes"
5546		fi
5547	fi
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563xorg_testset_save_CFLAGS="$CFLAGS"
5564
5565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573/* end confdefs.h.  */
5574int i;
5575_ACEOF
5576if ac_fn_c_try_compile "$LINENO"; then :
5577  xorg_cv_cc_flag_unknown_warning_option=yes
5578else
5579  xorg_cv_cc_flag_unknown_warning_option=no
5580fi
5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582fi
5583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5586	CFLAGS="$xorg_testset_save_CFLAGS"
5587fi
5588
5589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592	fi
5593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5597  $as_echo_n "(cached) " >&6
5598else
5599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h.  */
5601int i;
5602_ACEOF
5603if ac_fn_c_try_compile "$LINENO"; then :
5604  xorg_cv_cc_flag_unused_command_line_argument=yes
5605else
5606  xorg_cv_cc_flag_unused_command_line_argument=no
5607fi
5608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5613	CFLAGS="$xorg_testset_save_CFLAGS"
5614fi
5615
5616found="no"
5617
5618	if test $found = "no" ; then
5619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5621		fi
5622
5623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5625		fi
5626
5627		CFLAGS="$CFLAGS -Wmissing-prototypes"
5628
5629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5630$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5631		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5632		if eval \${$cacheid+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h.  */
5637int i;
5638int
5639main ()
5640{
5641
5642  ;
5643  return 0;
5644}
5645_ACEOF
5646if ac_fn_c_try_link "$LINENO"; then :
5647  eval $cacheid=yes
5648else
5649  eval $cacheid=no
5650fi
5651rm -f core conftest.err conftest.$ac_objext \
5652    conftest$ac_exeext conftest.$ac_ext
5653fi
5654
5655
5656		CFLAGS="$xorg_testset_save_CFLAGS"
5657
5658		eval supported=\$$cacheid
5659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5660$as_echo "$supported" >&6; }
5661		if test "$supported" = "yes" ; then
5662			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5663			found="yes"
5664		fi
5665	fi
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681xorg_testset_save_CFLAGS="$CFLAGS"
5682
5683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h.  */
5692int i;
5693_ACEOF
5694if ac_fn_c_try_compile "$LINENO"; then :
5695  xorg_cv_cc_flag_unknown_warning_option=yes
5696else
5697  xorg_cv_cc_flag_unknown_warning_option=no
5698fi
5699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700fi
5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5704	CFLAGS="$xorg_testset_save_CFLAGS"
5705fi
5706
5707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710	fi
5711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5715  $as_echo_n "(cached) " >&6
5716else
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720_ACEOF
5721if ac_fn_c_try_compile "$LINENO"; then :
5722  xorg_cv_cc_flag_unused_command_line_argument=yes
5723else
5724  xorg_cv_cc_flag_unused_command_line_argument=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727fi
5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5731	CFLAGS="$xorg_testset_save_CFLAGS"
5732fi
5733
5734found="no"
5735
5736	if test $found = "no" ; then
5737		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739		fi
5740
5741		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5743		fi
5744
5745		CFLAGS="$CFLAGS -Wnested-externs"
5746
5747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5748$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5749		cacheid=xorg_cv_cc_flag__Wnested_externs
5750		if eval \${$cacheid+:} false; then :
5751  $as_echo_n "(cached) " >&6
5752else
5753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754/* end confdefs.h.  */
5755int i;
5756int
5757main ()
5758{
5759
5760  ;
5761  return 0;
5762}
5763_ACEOF
5764if ac_fn_c_try_link "$LINENO"; then :
5765  eval $cacheid=yes
5766else
5767  eval $cacheid=no
5768fi
5769rm -f core conftest.err conftest.$ac_objext \
5770    conftest$ac_exeext conftest.$ac_ext
5771fi
5772
5773
5774		CFLAGS="$xorg_testset_save_CFLAGS"
5775
5776		eval supported=\$$cacheid
5777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5778$as_echo "$supported" >&6; }
5779		if test "$supported" = "yes" ; then
5780			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5781			found="yes"
5782		fi
5783	fi
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799xorg_testset_save_CFLAGS="$CFLAGS"
5800
5801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5804$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5805if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5806  $as_echo_n "(cached) " >&6
5807else
5808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h.  */
5810int i;
5811_ACEOF
5812if ac_fn_c_try_compile "$LINENO"; then :
5813  xorg_cv_cc_flag_unknown_warning_option=yes
5814else
5815  xorg_cv_cc_flag_unknown_warning_option=no
5816fi
5817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818fi
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5820$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5821	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5822	CFLAGS="$xorg_testset_save_CFLAGS"
5823fi
5824
5825if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5826	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5827		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828	fi
5829	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5831$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5832if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5833  $as_echo_n "(cached) " >&6
5834else
5835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836/* end confdefs.h.  */
5837int i;
5838_ACEOF
5839if ac_fn_c_try_compile "$LINENO"; then :
5840  xorg_cv_cc_flag_unused_command_line_argument=yes
5841else
5842  xorg_cv_cc_flag_unused_command_line_argument=no
5843fi
5844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5847$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5848	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5849	CFLAGS="$xorg_testset_save_CFLAGS"
5850fi
5851
5852found="no"
5853
5854	if test $found = "no" ; then
5855		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5856			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857		fi
5858
5859		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5860			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5861		fi
5862
5863		CFLAGS="$CFLAGS -Wbad-function-cast"
5864
5865		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5866$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5867		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5868		if eval \${$cacheid+:} false; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h.  */
5873int i;
5874int
5875main ()
5876{
5877
5878  ;
5879  return 0;
5880}
5881_ACEOF
5882if ac_fn_c_try_link "$LINENO"; then :
5883  eval $cacheid=yes
5884else
5885  eval $cacheid=no
5886fi
5887rm -f core conftest.err conftest.$ac_objext \
5888    conftest$ac_exeext conftest.$ac_ext
5889fi
5890
5891
5892		CFLAGS="$xorg_testset_save_CFLAGS"
5893
5894		eval supported=\$$cacheid
5895		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5896$as_echo "$supported" >&6; }
5897		if test "$supported" = "yes" ; then
5898			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5899			found="yes"
5900		fi
5901	fi
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917xorg_testset_save_CFLAGS="$CFLAGS"
5918
5919if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5920	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5922$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5923if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5924  $as_echo_n "(cached) " >&6
5925else
5926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927/* end confdefs.h.  */
5928int i;
5929_ACEOF
5930if ac_fn_c_try_compile "$LINENO"; then :
5931  xorg_cv_cc_flag_unknown_warning_option=yes
5932else
5933  xorg_cv_cc_flag_unknown_warning_option=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936fi
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940	CFLAGS="$xorg_testset_save_CFLAGS"
5941fi
5942
5943if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946	fi
5947	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5951  $as_echo_n "(cached) " >&6
5952else
5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956_ACEOF
5957if ac_fn_c_try_compile "$LINENO"; then :
5958  xorg_cv_cc_flag_unused_command_line_argument=yes
5959else
5960  xorg_cv_cc_flag_unused_command_line_argument=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963fi
5964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5965$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5966	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5967	CFLAGS="$xorg_testset_save_CFLAGS"
5968fi
5969
5970found="no"
5971
5972	if test $found = "no" ; then
5973		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5974			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975		fi
5976
5977		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5978			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5979		fi
5980
5981		CFLAGS="$CFLAGS -Wold-style-definition"
5982
5983		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5984$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5985		cacheid=xorg_cv_cc_flag__Wold_style_definition
5986		if eval \${$cacheid+:} false; then :
5987  $as_echo_n "(cached) " >&6
5988else
5989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h.  */
5991int i;
5992int
5993main ()
5994{
5995
5996  ;
5997  return 0;
5998}
5999_ACEOF
6000if ac_fn_c_try_link "$LINENO"; then :
6001  eval $cacheid=yes
6002else
6003  eval $cacheid=no
6004fi
6005rm -f core conftest.err conftest.$ac_objext \
6006    conftest$ac_exeext conftest.$ac_ext
6007fi
6008
6009
6010		CFLAGS="$xorg_testset_save_CFLAGS"
6011
6012		eval supported=\$$cacheid
6013		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014$as_echo "$supported" >&6; }
6015		if test "$supported" = "yes" ; then
6016			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6017			found="yes"
6018		fi
6019	fi
6020
6021	if test $found = "no" ; then
6022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6024		fi
6025
6026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6028		fi
6029
6030		CFLAGS="$CFLAGS -fd"
6031
6032		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6033$as_echo_n "checking if $CC supports -fd... " >&6; }
6034		cacheid=xorg_cv_cc_flag__fd
6035		if eval \${$cacheid+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039/* end confdefs.h.  */
6040int i;
6041int
6042main ()
6043{
6044
6045  ;
6046  return 0;
6047}
6048_ACEOF
6049if ac_fn_c_try_link "$LINENO"; then :
6050  eval $cacheid=yes
6051else
6052  eval $cacheid=no
6053fi
6054rm -f core conftest.err conftest.$ac_objext \
6055    conftest$ac_exeext conftest.$ac_ext
6056fi
6057
6058
6059		CFLAGS="$xorg_testset_save_CFLAGS"
6060
6061		eval supported=\$$cacheid
6062		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6063$as_echo "$supported" >&6; }
6064		if test "$supported" = "yes" ; then
6065			BASE_CFLAGS="$BASE_CFLAGS -fd"
6066			found="yes"
6067		fi
6068	fi
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084xorg_testset_save_CFLAGS="$CFLAGS"
6085
6086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6087	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h.  */
6095int i;
6096_ACEOF
6097if ac_fn_c_try_compile "$LINENO"; then :
6098  xorg_cv_cc_flag_unknown_warning_option=yes
6099else
6100  xorg_cv_cc_flag_unknown_warning_option=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103fi
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6106	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6107	CFLAGS="$xorg_testset_save_CFLAGS"
6108fi
6109
6110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6111	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6112		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6113	fi
6114	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6115	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6118  $as_echo_n "(cached) " >&6
6119else
6120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122int i;
6123_ACEOF
6124if ac_fn_c_try_compile "$LINENO"; then :
6125  xorg_cv_cc_flag_unused_command_line_argument=yes
6126else
6127  xorg_cv_cc_flag_unused_command_line_argument=no
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130fi
6131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6133	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6134	CFLAGS="$xorg_testset_save_CFLAGS"
6135fi
6136
6137found="no"
6138
6139	if test $found = "no" ; then
6140		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6141			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6142		fi
6143
6144		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6145			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6146		fi
6147
6148		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6149
6150		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6151$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6152		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6153		if eval \${$cacheid+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* end confdefs.h.  */
6158int i;
6159int
6160main ()
6161{
6162
6163  ;
6164  return 0;
6165}
6166_ACEOF
6167if ac_fn_c_try_link "$LINENO"; then :
6168  eval $cacheid=yes
6169else
6170  eval $cacheid=no
6171fi
6172rm -f core conftest.err conftest.$ac_objext \
6173    conftest$ac_exeext conftest.$ac_ext
6174fi
6175
6176
6177		CFLAGS="$xorg_testset_save_CFLAGS"
6178
6179		eval supported=\$$cacheid
6180		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6181$as_echo "$supported" >&6; }
6182		if test "$supported" = "yes" ; then
6183			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6184			found="yes"
6185		fi
6186	fi
6187
6188
6189
6190
6191
6192# This chunk adds additional warnings that could catch undesired effects.
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206xorg_testset_save_CFLAGS="$CFLAGS"
6207
6208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6209	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6210	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h.  */
6217int i;
6218_ACEOF
6219if ac_fn_c_try_compile "$LINENO"; then :
6220  xorg_cv_cc_flag_unknown_warning_option=yes
6221else
6222  xorg_cv_cc_flag_unknown_warning_option=no
6223fi
6224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225fi
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6228	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6229	CFLAGS="$xorg_testset_save_CFLAGS"
6230fi
6231
6232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6233	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6234		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235	fi
6236	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6240  $as_echo_n "(cached) " >&6
6241else
6242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243/* end confdefs.h.  */
6244int i;
6245_ACEOF
6246if ac_fn_c_try_compile "$LINENO"; then :
6247  xorg_cv_cc_flag_unused_command_line_argument=yes
6248else
6249  xorg_cv_cc_flag_unused_command_line_argument=no
6250fi
6251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252fi
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6256	CFLAGS="$xorg_testset_save_CFLAGS"
6257fi
6258
6259found="no"
6260
6261	if test $found = "no" ; then
6262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264		fi
6265
6266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6268		fi
6269
6270		CFLAGS="$CFLAGS -Wunused"
6271
6272		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6273$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6274		cacheid=xorg_cv_cc_flag__Wunused
6275		if eval \${$cacheid+:} false; then :
6276  $as_echo_n "(cached) " >&6
6277else
6278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h.  */
6280int i;
6281int
6282main ()
6283{
6284
6285  ;
6286  return 0;
6287}
6288_ACEOF
6289if ac_fn_c_try_link "$LINENO"; then :
6290  eval $cacheid=yes
6291else
6292  eval $cacheid=no
6293fi
6294rm -f core conftest.err conftest.$ac_objext \
6295    conftest$ac_exeext conftest.$ac_ext
6296fi
6297
6298
6299		CFLAGS="$xorg_testset_save_CFLAGS"
6300
6301		eval supported=\$$cacheid
6302		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6303$as_echo "$supported" >&6; }
6304		if test "$supported" = "yes" ; then
6305			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6306			found="yes"
6307		fi
6308	fi
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324xorg_testset_save_CFLAGS="$CFLAGS"
6325
6326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6327	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6331  $as_echo_n "(cached) " >&6
6332else
6333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334/* end confdefs.h.  */
6335int i;
6336_ACEOF
6337if ac_fn_c_try_compile "$LINENO"; then :
6338  xorg_cv_cc_flag_unknown_warning_option=yes
6339else
6340  xorg_cv_cc_flag_unknown_warning_option=no
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343fi
6344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6347	CFLAGS="$xorg_testset_save_CFLAGS"
6348fi
6349
6350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353	fi
6354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h.  */
6362int i;
6363_ACEOF
6364if ac_fn_c_try_compile "$LINENO"; then :
6365  xorg_cv_cc_flag_unused_command_line_argument=yes
6366else
6367  xorg_cv_cc_flag_unused_command_line_argument=no
6368fi
6369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370fi
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6373	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6374	CFLAGS="$xorg_testset_save_CFLAGS"
6375fi
6376
6377found="no"
6378
6379	if test $found = "no" ; then
6380		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6381			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382		fi
6383
6384		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6385			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386		fi
6387
6388		CFLAGS="$CFLAGS -Wuninitialized"
6389
6390		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6391$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6392		cacheid=xorg_cv_cc_flag__Wuninitialized
6393		if eval \${$cacheid+:} false; then :
6394  $as_echo_n "(cached) " >&6
6395else
6396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398int i;
6399int
6400main ()
6401{
6402
6403  ;
6404  return 0;
6405}
6406_ACEOF
6407if ac_fn_c_try_link "$LINENO"; then :
6408  eval $cacheid=yes
6409else
6410  eval $cacheid=no
6411fi
6412rm -f core conftest.err conftest.$ac_objext \
6413    conftest$ac_exeext conftest.$ac_ext
6414fi
6415
6416
6417		CFLAGS="$xorg_testset_save_CFLAGS"
6418
6419		eval supported=\$$cacheid
6420		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6421$as_echo "$supported" >&6; }
6422		if test "$supported" = "yes" ; then
6423			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6424			found="yes"
6425		fi
6426	fi
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442xorg_testset_save_CFLAGS="$CFLAGS"
6443
6444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6445	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452/* end confdefs.h.  */
6453int i;
6454_ACEOF
6455if ac_fn_c_try_compile "$LINENO"; then :
6456  xorg_cv_cc_flag_unknown_warning_option=yes
6457else
6458  xorg_cv_cc_flag_unknown_warning_option=no
6459fi
6460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6464	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6465	CFLAGS="$xorg_testset_save_CFLAGS"
6466fi
6467
6468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6469	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471	fi
6472	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6473	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6476  $as_echo_n "(cached) " >&6
6477else
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481_ACEOF
6482if ac_fn_c_try_compile "$LINENO"; then :
6483  xorg_cv_cc_flag_unused_command_line_argument=yes
6484else
6485  xorg_cv_cc_flag_unused_command_line_argument=no
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6488fi
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6491	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6492	CFLAGS="$xorg_testset_save_CFLAGS"
6493fi
6494
6495found="no"
6496
6497	if test $found = "no" ; then
6498		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6499			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6500		fi
6501
6502		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6503			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6504		fi
6505
6506		CFLAGS="$CFLAGS -Wshadow"
6507
6508		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6509$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6510		cacheid=xorg_cv_cc_flag__Wshadow
6511		if eval \${$cacheid+:} false; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6515/* end confdefs.h.  */
6516int i;
6517int
6518main ()
6519{
6520
6521  ;
6522  return 0;
6523}
6524_ACEOF
6525if ac_fn_c_try_link "$LINENO"; then :
6526  eval $cacheid=yes
6527else
6528  eval $cacheid=no
6529fi
6530rm -f core conftest.err conftest.$ac_objext \
6531    conftest$ac_exeext conftest.$ac_ext
6532fi
6533
6534
6535		CFLAGS="$xorg_testset_save_CFLAGS"
6536
6537		eval supported=\$$cacheid
6538		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6539$as_echo "$supported" >&6; }
6540		if test "$supported" = "yes" ; then
6541			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6542			found="yes"
6543		fi
6544	fi
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560xorg_testset_save_CFLAGS="$CFLAGS"
6561
6562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6563	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6567  $as_echo_n "(cached) " >&6
6568else
6569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571int i;
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"; then :
6574  xorg_cv_cc_flag_unknown_warning_option=yes
6575else
6576  xorg_cv_cc_flag_unknown_warning_option=no
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579fi
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6582	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6583	CFLAGS="$xorg_testset_save_CFLAGS"
6584fi
6585
6586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6587	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6588		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589	fi
6590	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6591	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6594  $as_echo_n "(cached) " >&6
6595else
6596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597/* end confdefs.h.  */
6598int i;
6599_ACEOF
6600if ac_fn_c_try_compile "$LINENO"; then :
6601  xorg_cv_cc_flag_unused_command_line_argument=yes
6602else
6603  xorg_cv_cc_flag_unused_command_line_argument=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6610	CFLAGS="$xorg_testset_save_CFLAGS"
6611fi
6612
6613found="no"
6614
6615	if test $found = "no" ; then
6616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618		fi
6619
6620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6622		fi
6623
6624		CFLAGS="$CFLAGS -Wmissing-noreturn"
6625
6626		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6627$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6628		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6629		if eval \${$cacheid+:} false; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634int i;
6635int
6636main ()
6637{
6638
6639  ;
6640  return 0;
6641}
6642_ACEOF
6643if ac_fn_c_try_link "$LINENO"; then :
6644  eval $cacheid=yes
6645else
6646  eval $cacheid=no
6647fi
6648rm -f core conftest.err conftest.$ac_objext \
6649    conftest$ac_exeext conftest.$ac_ext
6650fi
6651
6652
6653		CFLAGS="$xorg_testset_save_CFLAGS"
6654
6655		eval supported=\$$cacheid
6656		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6657$as_echo "$supported" >&6; }
6658		if test "$supported" = "yes" ; then
6659			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6660			found="yes"
6661		fi
6662	fi
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678xorg_testset_save_CFLAGS="$CFLAGS"
6679
6680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6681	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6682	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689int i;
6690_ACEOF
6691if ac_fn_c_try_compile "$LINENO"; then :
6692  xorg_cv_cc_flag_unknown_warning_option=yes
6693else
6694  xorg_cv_cc_flag_unknown_warning_option=no
6695fi
6696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6700	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6701	CFLAGS="$xorg_testset_save_CFLAGS"
6702fi
6703
6704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6705	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6706		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6707	fi
6708	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6709	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h.  */
6716int i;
6717_ACEOF
6718if ac_fn_c_try_compile "$LINENO"; then :
6719  xorg_cv_cc_flag_unused_command_line_argument=yes
6720else
6721  xorg_cv_cc_flag_unused_command_line_argument=no
6722fi
6723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6727	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6728	CFLAGS="$xorg_testset_save_CFLAGS"
6729fi
6730
6731found="no"
6732
6733	if test $found = "no" ; then
6734		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6735			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6736		fi
6737
6738		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6739			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6740		fi
6741
6742		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6743
6744		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6745$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6746		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6747		if eval \${$cacheid+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h.  */
6752int i;
6753int
6754main ()
6755{
6756
6757  ;
6758  return 0;
6759}
6760_ACEOF
6761if ac_fn_c_try_link "$LINENO"; then :
6762  eval $cacheid=yes
6763else
6764  eval $cacheid=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext \
6767    conftest$ac_exeext conftest.$ac_ext
6768fi
6769
6770
6771		CFLAGS="$xorg_testset_save_CFLAGS"
6772
6773		eval supported=\$$cacheid
6774		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6775$as_echo "$supported" >&6; }
6776		if test "$supported" = "yes" ; then
6777			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6778			found="yes"
6779		fi
6780	fi
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796xorg_testset_save_CFLAGS="$CFLAGS"
6797
6798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6799	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6800	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6803  $as_echo_n "(cached) " >&6
6804else
6805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806/* end confdefs.h.  */
6807int i;
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"; then :
6810  xorg_cv_cc_flag_unknown_warning_option=yes
6811else
6812  xorg_cv_cc_flag_unknown_warning_option=no
6813fi
6814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815fi
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6818	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6819	CFLAGS="$xorg_testset_save_CFLAGS"
6820fi
6821
6822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6823	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6824		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6825	fi
6826	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6830  $as_echo_n "(cached) " >&6
6831else
6832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834int i;
6835_ACEOF
6836if ac_fn_c_try_compile "$LINENO"; then :
6837  xorg_cv_cc_flag_unused_command_line_argument=yes
6838else
6839  xorg_cv_cc_flag_unused_command_line_argument=no
6840fi
6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6842fi
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6845	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6846	CFLAGS="$xorg_testset_save_CFLAGS"
6847fi
6848
6849found="no"
6850
6851	if test $found = "no" ; then
6852		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6853			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6854		fi
6855
6856		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6858		fi
6859
6860		CFLAGS="$CFLAGS -Wredundant-decls"
6861
6862		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6863$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6864		cacheid=xorg_cv_cc_flag__Wredundant_decls
6865		if eval \${$cacheid+:} false; then :
6866  $as_echo_n "(cached) " >&6
6867else
6868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869/* end confdefs.h.  */
6870int i;
6871int
6872main ()
6873{
6874
6875  ;
6876  return 0;
6877}
6878_ACEOF
6879if ac_fn_c_try_link "$LINENO"; then :
6880  eval $cacheid=yes
6881else
6882  eval $cacheid=no
6883fi
6884rm -f core conftest.err conftest.$ac_objext \
6885    conftest$ac_exeext conftest.$ac_ext
6886fi
6887
6888
6889		CFLAGS="$xorg_testset_save_CFLAGS"
6890
6891		eval supported=\$$cacheid
6892		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6893$as_echo "$supported" >&6; }
6894		if test "$supported" = "yes" ; then
6895			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6896			found="yes"
6897		fi
6898	fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914xorg_testset_save_CFLAGS="$CFLAGS"
6915
6916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6917	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925int i;
6926_ACEOF
6927if ac_fn_c_try_compile "$LINENO"; then :
6928  xorg_cv_cc_flag_unknown_warning_option=yes
6929else
6930  xorg_cv_cc_flag_unknown_warning_option=no
6931fi
6932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933fi
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6936	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6937	CFLAGS="$xorg_testset_save_CFLAGS"
6938fi
6939
6940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6941	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6942		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6943	fi
6944	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6948  $as_echo_n "(cached) " >&6
6949else
6950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951/* end confdefs.h.  */
6952int i;
6953_ACEOF
6954if ac_fn_c_try_compile "$LINENO"; then :
6955  xorg_cv_cc_flag_unused_command_line_argument=yes
6956else
6957  xorg_cv_cc_flag_unused_command_line_argument=no
6958fi
6959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6960fi
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6963	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6964	CFLAGS="$xorg_testset_save_CFLAGS"
6965fi
6966
6967found="no"
6968
6969	if test $found = "no" ; then
6970		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6971			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6972		fi
6973
6974		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6975			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976		fi
6977
6978		CFLAGS="$CFLAGS -Wlogical-op"
6979
6980		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6981$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6982		cacheid=xorg_cv_cc_flag__Wlogical_op
6983		if eval \${$cacheid+:} false; then :
6984  $as_echo_n "(cached) " >&6
6985else
6986  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h.  */
6988int i;
6989int
6990main ()
6991{
6992
6993  ;
6994  return 0;
6995}
6996_ACEOF
6997if ac_fn_c_try_link "$LINENO"; then :
6998  eval $cacheid=yes
6999else
7000  eval $cacheid=no
7001fi
7002rm -f core conftest.err conftest.$ac_objext \
7003    conftest$ac_exeext conftest.$ac_ext
7004fi
7005
7006
7007		CFLAGS="$xorg_testset_save_CFLAGS"
7008
7009		eval supported=\$$cacheid
7010		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7011$as_echo "$supported" >&6; }
7012		if test "$supported" = "yes" ; then
7013			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7014			found="yes"
7015		fi
7016	fi
7017
7018
7019
7020# These are currently disabled because they are noisy.  They will be enabled
7021# in the future once the codebase is sufficiently modernized to silence
7022# them.  For now, I don't want them to drown out the other warnings.
7023# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7024# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7025# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7026
7027# Turn some warnings into errors, so we don't accidently get successful builds
7028# when there are problems that should be fixed.
7029
7030if test "x$SELECTIVE_WERROR" = "xyes" ; then
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044xorg_testset_save_CFLAGS="$CFLAGS"
7045
7046if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7047	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7049$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7050if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7051  $as_echo_n "(cached) " >&6
7052else
7053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7054/* end confdefs.h.  */
7055int i;
7056_ACEOF
7057if ac_fn_c_try_compile "$LINENO"; then :
7058  xorg_cv_cc_flag_unknown_warning_option=yes
7059else
7060  xorg_cv_cc_flag_unknown_warning_option=no
7061fi
7062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063fi
7064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7065$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7066	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7067	CFLAGS="$xorg_testset_save_CFLAGS"
7068fi
7069
7070if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7071	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7072		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073	fi
7074	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7076$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7077if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7078  $as_echo_n "(cached) " >&6
7079else
7080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081/* end confdefs.h.  */
7082int i;
7083_ACEOF
7084if ac_fn_c_try_compile "$LINENO"; then :
7085  xorg_cv_cc_flag_unused_command_line_argument=yes
7086else
7087  xorg_cv_cc_flag_unused_command_line_argument=no
7088fi
7089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090fi
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7092$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7093	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7094	CFLAGS="$xorg_testset_save_CFLAGS"
7095fi
7096
7097found="no"
7098
7099	if test $found = "no" ; then
7100		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7101			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102		fi
7103
7104		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7105			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7106		fi
7107
7108		CFLAGS="$CFLAGS -Werror=implicit"
7109
7110		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7111$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7112		cacheid=xorg_cv_cc_flag__Werror_implicit
7113		if eval \${$cacheid+:} false; then :
7114  $as_echo_n "(cached) " >&6
7115else
7116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7117/* end confdefs.h.  */
7118int i;
7119int
7120main ()
7121{
7122
7123  ;
7124  return 0;
7125}
7126_ACEOF
7127if ac_fn_c_try_link "$LINENO"; then :
7128  eval $cacheid=yes
7129else
7130  eval $cacheid=no
7131fi
7132rm -f core conftest.err conftest.$ac_objext \
7133    conftest$ac_exeext conftest.$ac_ext
7134fi
7135
7136
7137		CFLAGS="$xorg_testset_save_CFLAGS"
7138
7139		eval supported=\$$cacheid
7140		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7141$as_echo "$supported" >&6; }
7142		if test "$supported" = "yes" ; then
7143			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7144			found="yes"
7145		fi
7146	fi
7147
7148	if test $found = "no" ; then
7149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151		fi
7152
7153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7155		fi
7156
7157		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7158
7159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7160$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7161		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7162		if eval \${$cacheid+:} false; then :
7163  $as_echo_n "(cached) " >&6
7164else
7165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h.  */
7167int i;
7168int
7169main ()
7170{
7171
7172  ;
7173  return 0;
7174}
7175_ACEOF
7176if ac_fn_c_try_link "$LINENO"; then :
7177  eval $cacheid=yes
7178else
7179  eval $cacheid=no
7180fi
7181rm -f core conftest.err conftest.$ac_objext \
7182    conftest$ac_exeext conftest.$ac_ext
7183fi
7184
7185
7186		CFLAGS="$xorg_testset_save_CFLAGS"
7187
7188		eval supported=\$$cacheid
7189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7190$as_echo "$supported" >&6; }
7191		if test "$supported" = "yes" ; then
7192			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7193			found="yes"
7194		fi
7195	fi
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211xorg_testset_save_CFLAGS="$CFLAGS"
7212
7213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7218  $as_echo_n "(cached) " >&6
7219else
7220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221/* end confdefs.h.  */
7222int i;
7223_ACEOF
7224if ac_fn_c_try_compile "$LINENO"; then :
7225  xorg_cv_cc_flag_unknown_warning_option=yes
7226else
7227  xorg_cv_cc_flag_unknown_warning_option=no
7228fi
7229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230fi
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7234	CFLAGS="$xorg_testset_save_CFLAGS"
7235fi
7236
7237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7240	fi
7241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7245  $as_echo_n "(cached) " >&6
7246else
7247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248/* end confdefs.h.  */
7249int i;
7250_ACEOF
7251if ac_fn_c_try_compile "$LINENO"; then :
7252  xorg_cv_cc_flag_unused_command_line_argument=yes
7253else
7254  xorg_cv_cc_flag_unused_command_line_argument=no
7255fi
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257fi
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7261	CFLAGS="$xorg_testset_save_CFLAGS"
7262fi
7263
7264found="no"
7265
7266	if test $found = "no" ; then
7267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269		fi
7270
7271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273		fi
7274
7275		CFLAGS="$CFLAGS -Werror=nonnull"
7276
7277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7278$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7279		cacheid=xorg_cv_cc_flag__Werror_nonnull
7280		if eval \${$cacheid+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284/* end confdefs.h.  */
7285int i;
7286int
7287main ()
7288{
7289
7290  ;
7291  return 0;
7292}
7293_ACEOF
7294if ac_fn_c_try_link "$LINENO"; then :
7295  eval $cacheid=yes
7296else
7297  eval $cacheid=no
7298fi
7299rm -f core conftest.err conftest.$ac_objext \
7300    conftest$ac_exeext conftest.$ac_ext
7301fi
7302
7303
7304		CFLAGS="$xorg_testset_save_CFLAGS"
7305
7306		eval supported=\$$cacheid
7307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7308$as_echo "$supported" >&6; }
7309		if test "$supported" = "yes" ; then
7310			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7311			found="yes"
7312		fi
7313	fi
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329xorg_testset_save_CFLAGS="$CFLAGS"
7330
7331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7336  $as_echo_n "(cached) " >&6
7337else
7338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h.  */
7340int i;
7341_ACEOF
7342if ac_fn_c_try_compile "$LINENO"; then :
7343  xorg_cv_cc_flag_unknown_warning_option=yes
7344else
7345  xorg_cv_cc_flag_unknown_warning_option=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7348fi
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7352	CFLAGS="$xorg_testset_save_CFLAGS"
7353fi
7354
7355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358	fi
7359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7363  $as_echo_n "(cached) " >&6
7364else
7365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366/* end confdefs.h.  */
7367int i;
7368_ACEOF
7369if ac_fn_c_try_compile "$LINENO"; then :
7370  xorg_cv_cc_flag_unused_command_line_argument=yes
7371else
7372  xorg_cv_cc_flag_unused_command_line_argument=no
7373fi
7374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375fi
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7379	CFLAGS="$xorg_testset_save_CFLAGS"
7380fi
7381
7382found="no"
7383
7384	if test $found = "no" ; then
7385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7387		fi
7388
7389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7391		fi
7392
7393		CFLAGS="$CFLAGS -Werror=init-self"
7394
7395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7396$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7397		cacheid=xorg_cv_cc_flag__Werror_init_self
7398		if eval \${$cacheid+:} false; then :
7399  $as_echo_n "(cached) " >&6
7400else
7401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402/* end confdefs.h.  */
7403int i;
7404int
7405main ()
7406{
7407
7408  ;
7409  return 0;
7410}
7411_ACEOF
7412if ac_fn_c_try_link "$LINENO"; then :
7413  eval $cacheid=yes
7414else
7415  eval $cacheid=no
7416fi
7417rm -f core conftest.err conftest.$ac_objext \
7418    conftest$ac_exeext conftest.$ac_ext
7419fi
7420
7421
7422		CFLAGS="$xorg_testset_save_CFLAGS"
7423
7424		eval supported=\$$cacheid
7425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7426$as_echo "$supported" >&6; }
7427		if test "$supported" = "yes" ; then
7428			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7429			found="yes"
7430		fi
7431	fi
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447xorg_testset_save_CFLAGS="$CFLAGS"
7448
7449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7454  $as_echo_n "(cached) " >&6
7455else
7456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457/* end confdefs.h.  */
7458int i;
7459_ACEOF
7460if ac_fn_c_try_compile "$LINENO"; then :
7461  xorg_cv_cc_flag_unknown_warning_option=yes
7462else
7463  xorg_cv_cc_flag_unknown_warning_option=no
7464fi
7465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7466fi
7467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7470	CFLAGS="$xorg_testset_save_CFLAGS"
7471fi
7472
7473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7476	fi
7477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h.  */
7485int i;
7486_ACEOF
7487if ac_fn_c_try_compile "$LINENO"; then :
7488  xorg_cv_cc_flag_unused_command_line_argument=yes
7489else
7490  xorg_cv_cc_flag_unused_command_line_argument=no
7491fi
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7493fi
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7497	CFLAGS="$xorg_testset_save_CFLAGS"
7498fi
7499
7500found="no"
7501
7502	if test $found = "no" ; then
7503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505		fi
7506
7507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7509		fi
7510
7511		CFLAGS="$CFLAGS -Werror=main"
7512
7513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7514$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7515		cacheid=xorg_cv_cc_flag__Werror_main
7516		if eval \${$cacheid+:} false; then :
7517  $as_echo_n "(cached) " >&6
7518else
7519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h.  */
7521int i;
7522int
7523main ()
7524{
7525
7526  ;
7527  return 0;
7528}
7529_ACEOF
7530if ac_fn_c_try_link "$LINENO"; then :
7531  eval $cacheid=yes
7532else
7533  eval $cacheid=no
7534fi
7535rm -f core conftest.err conftest.$ac_objext \
7536    conftest$ac_exeext conftest.$ac_ext
7537fi
7538
7539
7540		CFLAGS="$xorg_testset_save_CFLAGS"
7541
7542		eval supported=\$$cacheid
7543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7544$as_echo "$supported" >&6; }
7545		if test "$supported" = "yes" ; then
7546			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7547			found="yes"
7548		fi
7549	fi
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565xorg_testset_save_CFLAGS="$CFLAGS"
7566
7567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7572  $as_echo_n "(cached) " >&6
7573else
7574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576int i;
7577_ACEOF
7578if ac_fn_c_try_compile "$LINENO"; then :
7579  xorg_cv_cc_flag_unknown_warning_option=yes
7580else
7581  xorg_cv_cc_flag_unknown_warning_option=no
7582fi
7583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584fi
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7588	CFLAGS="$xorg_testset_save_CFLAGS"
7589fi
7590
7591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7594	fi
7595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7599  $as_echo_n "(cached) " >&6
7600else
7601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602/* end confdefs.h.  */
7603int i;
7604_ACEOF
7605if ac_fn_c_try_compile "$LINENO"; then :
7606  xorg_cv_cc_flag_unused_command_line_argument=yes
7607else
7608  xorg_cv_cc_flag_unused_command_line_argument=no
7609fi
7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611fi
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615	CFLAGS="$xorg_testset_save_CFLAGS"
7616fi
7617
7618found="no"
7619
7620	if test $found = "no" ; then
7621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623		fi
7624
7625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627		fi
7628
7629		CFLAGS="$CFLAGS -Werror=missing-braces"
7630
7631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7632$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7633		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7634		if eval \${$cacheid+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h.  */
7639int i;
7640int
7641main ()
7642{
7643
7644  ;
7645  return 0;
7646}
7647_ACEOF
7648if ac_fn_c_try_link "$LINENO"; then :
7649  eval $cacheid=yes
7650else
7651  eval $cacheid=no
7652fi
7653rm -f core conftest.err conftest.$ac_objext \
7654    conftest$ac_exeext conftest.$ac_ext
7655fi
7656
7657
7658		CFLAGS="$xorg_testset_save_CFLAGS"
7659
7660		eval supported=\$$cacheid
7661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7662$as_echo "$supported" >&6; }
7663		if test "$supported" = "yes" ; then
7664			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7665			found="yes"
7666		fi
7667	fi
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683xorg_testset_save_CFLAGS="$CFLAGS"
7684
7685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7690  $as_echo_n "(cached) " >&6
7691else
7692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693/* end confdefs.h.  */
7694int i;
7695_ACEOF
7696if ac_fn_c_try_compile "$LINENO"; then :
7697  xorg_cv_cc_flag_unknown_warning_option=yes
7698else
7699  xorg_cv_cc_flag_unknown_warning_option=no
7700fi
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702fi
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7706	CFLAGS="$xorg_testset_save_CFLAGS"
7707fi
7708
7709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7712	fi
7713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720/* end confdefs.h.  */
7721int i;
7722_ACEOF
7723if ac_fn_c_try_compile "$LINENO"; then :
7724  xorg_cv_cc_flag_unused_command_line_argument=yes
7725else
7726  xorg_cv_cc_flag_unused_command_line_argument=no
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729fi
7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7733	CFLAGS="$xorg_testset_save_CFLAGS"
7734fi
7735
7736found="no"
7737
7738	if test $found = "no" ; then
7739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7741		fi
7742
7743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7745		fi
7746
7747		CFLAGS="$CFLAGS -Werror=sequence-point"
7748
7749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7750$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7751		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7752		if eval \${$cacheid+:} false; then :
7753  $as_echo_n "(cached) " >&6
7754else
7755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h.  */
7757int i;
7758int
7759main ()
7760{
7761
7762  ;
7763  return 0;
7764}
7765_ACEOF
7766if ac_fn_c_try_link "$LINENO"; then :
7767  eval $cacheid=yes
7768else
7769  eval $cacheid=no
7770fi
7771rm -f core conftest.err conftest.$ac_objext \
7772    conftest$ac_exeext conftest.$ac_ext
7773fi
7774
7775
7776		CFLAGS="$xorg_testset_save_CFLAGS"
7777
7778		eval supported=\$$cacheid
7779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7780$as_echo "$supported" >&6; }
7781		if test "$supported" = "yes" ; then
7782			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7783			found="yes"
7784		fi
7785	fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801xorg_testset_save_CFLAGS="$CFLAGS"
7802
7803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7808  $as_echo_n "(cached) " >&6
7809else
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812int i;
7813_ACEOF
7814if ac_fn_c_try_compile "$LINENO"; then :
7815  xorg_cv_cc_flag_unknown_warning_option=yes
7816else
7817  xorg_cv_cc_flag_unknown_warning_option=no
7818fi
7819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820fi
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7824	CFLAGS="$xorg_testset_save_CFLAGS"
7825fi
7826
7827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7830	fi
7831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7835  $as_echo_n "(cached) " >&6
7836else
7837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838/* end confdefs.h.  */
7839int i;
7840_ACEOF
7841if ac_fn_c_try_compile "$LINENO"; then :
7842  xorg_cv_cc_flag_unused_command_line_argument=yes
7843else
7844  xorg_cv_cc_flag_unused_command_line_argument=no
7845fi
7846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7851	CFLAGS="$xorg_testset_save_CFLAGS"
7852fi
7853
7854found="no"
7855
7856	if test $found = "no" ; then
7857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859		fi
7860
7861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7863		fi
7864
7865		CFLAGS="$CFLAGS -Werror=return-type"
7866
7867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7868$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7869		cacheid=xorg_cv_cc_flag__Werror_return_type
7870		if eval \${$cacheid+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875int i;
7876int
7877main ()
7878{
7879
7880  ;
7881  return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885  eval $cacheid=yes
7886else
7887  eval $cacheid=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890    conftest$ac_exeext conftest.$ac_ext
7891fi
7892
7893
7894		CFLAGS="$xorg_testset_save_CFLAGS"
7895
7896		eval supported=\$$cacheid
7897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7898$as_echo "$supported" >&6; }
7899		if test "$supported" = "yes" ; then
7900			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7901			found="yes"
7902		fi
7903	fi
7904
7905	if test $found = "no" ; then
7906		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7907			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908		fi
7909
7910		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7911			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7912		fi
7913
7914		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7915
7916		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7917$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7918		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7919		if eval \${$cacheid+:} false; then :
7920  $as_echo_n "(cached) " >&6
7921else
7922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923/* end confdefs.h.  */
7924int i;
7925int
7926main ()
7927{
7928
7929  ;
7930  return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"; then :
7934  eval $cacheid=yes
7935else
7936  eval $cacheid=no
7937fi
7938rm -f core conftest.err conftest.$ac_objext \
7939    conftest$ac_exeext conftest.$ac_ext
7940fi
7941
7942
7943		CFLAGS="$xorg_testset_save_CFLAGS"
7944
7945		eval supported=\$$cacheid
7946		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7947$as_echo "$supported" >&6; }
7948		if test "$supported" = "yes" ; then
7949			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7950			found="yes"
7951		fi
7952	fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968xorg_testset_save_CFLAGS="$CFLAGS"
7969
7970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7971	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7975  $as_echo_n "(cached) " >&6
7976else
7977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979int i;
7980_ACEOF
7981if ac_fn_c_try_compile "$LINENO"; then :
7982  xorg_cv_cc_flag_unknown_warning_option=yes
7983else
7984  xorg_cv_cc_flag_unknown_warning_option=no
7985fi
7986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7990	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7991	CFLAGS="$xorg_testset_save_CFLAGS"
7992fi
7993
7994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7995	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7996		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7997	fi
7998	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8002  $as_echo_n "(cached) " >&6
8003else
8004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005/* end confdefs.h.  */
8006int i;
8007_ACEOF
8008if ac_fn_c_try_compile "$LINENO"; then :
8009  xorg_cv_cc_flag_unused_command_line_argument=yes
8010else
8011  xorg_cv_cc_flag_unused_command_line_argument=no
8012fi
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014fi
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8017	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8018	CFLAGS="$xorg_testset_save_CFLAGS"
8019fi
8020
8021found="no"
8022
8023	if test $found = "no" ; then
8024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8026		fi
8027
8028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8030		fi
8031
8032		CFLAGS="$CFLAGS -Werror=trigraphs"
8033
8034		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8035$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8036		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8037		if eval \${$cacheid+:} false; then :
8038  $as_echo_n "(cached) " >&6
8039else
8040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041/* end confdefs.h.  */
8042int i;
8043int
8044main ()
8045{
8046
8047  ;
8048  return 0;
8049}
8050_ACEOF
8051if ac_fn_c_try_link "$LINENO"; then :
8052  eval $cacheid=yes
8053else
8054  eval $cacheid=no
8055fi
8056rm -f core conftest.err conftest.$ac_objext \
8057    conftest$ac_exeext conftest.$ac_ext
8058fi
8059
8060
8061		CFLAGS="$xorg_testset_save_CFLAGS"
8062
8063		eval supported=\$$cacheid
8064		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8065$as_echo "$supported" >&6; }
8066		if test "$supported" = "yes" ; then
8067			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8068			found="yes"
8069		fi
8070	fi
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086xorg_testset_save_CFLAGS="$CFLAGS"
8087
8088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8091$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8092if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096/* end confdefs.h.  */
8097int i;
8098_ACEOF
8099if ac_fn_c_try_compile "$LINENO"; then :
8100  xorg_cv_cc_flag_unknown_warning_option=yes
8101else
8102  xorg_cv_cc_flag_unknown_warning_option=no
8103fi
8104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8105fi
8106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8107$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8108	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8109	CFLAGS="$xorg_testset_save_CFLAGS"
8110fi
8111
8112if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8113	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8114		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8115	fi
8116	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8117	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8118$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8119if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8120  $as_echo_n "(cached) " >&6
8121else
8122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8123/* end confdefs.h.  */
8124int i;
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"; then :
8127  xorg_cv_cc_flag_unused_command_line_argument=yes
8128else
8129  xorg_cv_cc_flag_unused_command_line_argument=no
8130fi
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132fi
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8134$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8136	CFLAGS="$xorg_testset_save_CFLAGS"
8137fi
8138
8139found="no"
8140
8141	if test $found = "no" ; then
8142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8144		fi
8145
8146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8148		fi
8149
8150		CFLAGS="$CFLAGS -Werror=array-bounds"
8151
8152		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8153$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8154		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8155		if eval \${$cacheid+:} false; then :
8156  $as_echo_n "(cached) " >&6
8157else
8158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h.  */
8160int i;
8161int
8162main ()
8163{
8164
8165  ;
8166  return 0;
8167}
8168_ACEOF
8169if ac_fn_c_try_link "$LINENO"; then :
8170  eval $cacheid=yes
8171else
8172  eval $cacheid=no
8173fi
8174rm -f core conftest.err conftest.$ac_objext \
8175    conftest$ac_exeext conftest.$ac_ext
8176fi
8177
8178
8179		CFLAGS="$xorg_testset_save_CFLAGS"
8180
8181		eval supported=\$$cacheid
8182		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8183$as_echo "$supported" >&6; }
8184		if test "$supported" = "yes" ; then
8185			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8186			found="yes"
8187		fi
8188	fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204xorg_testset_save_CFLAGS="$CFLAGS"
8205
8206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8209$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8210if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214/* end confdefs.h.  */
8215int i;
8216_ACEOF
8217if ac_fn_c_try_compile "$LINENO"; then :
8218  xorg_cv_cc_flag_unknown_warning_option=yes
8219else
8220  xorg_cv_cc_flag_unknown_warning_option=no
8221fi
8222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223fi
8224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8225$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8227	CFLAGS="$xorg_testset_save_CFLAGS"
8228fi
8229
8230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8233	fi
8234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8235	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8236$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8237if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241/* end confdefs.h.  */
8242int i;
8243_ACEOF
8244if ac_fn_c_try_compile "$LINENO"; then :
8245  xorg_cv_cc_flag_unused_command_line_argument=yes
8246else
8247  xorg_cv_cc_flag_unused_command_line_argument=no
8248fi
8249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250fi
8251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8252$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8254	CFLAGS="$xorg_testset_save_CFLAGS"
8255fi
8256
8257found="no"
8258
8259	if test $found = "no" ; then
8260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262		fi
8263
8264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8266		fi
8267
8268		CFLAGS="$CFLAGS -Werror=write-strings"
8269
8270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8271$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8272		cacheid=xorg_cv_cc_flag__Werror_write_strings
8273		if eval \${$cacheid+:} false; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277/* end confdefs.h.  */
8278int i;
8279int
8280main ()
8281{
8282
8283  ;
8284  return 0;
8285}
8286_ACEOF
8287if ac_fn_c_try_link "$LINENO"; then :
8288  eval $cacheid=yes
8289else
8290  eval $cacheid=no
8291fi
8292rm -f core conftest.err conftest.$ac_objext \
8293    conftest$ac_exeext conftest.$ac_ext
8294fi
8295
8296
8297		CFLAGS="$xorg_testset_save_CFLAGS"
8298
8299		eval supported=\$$cacheid
8300		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8301$as_echo "$supported" >&6; }
8302		if test "$supported" = "yes" ; then
8303			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8304			found="yes"
8305		fi
8306	fi
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322xorg_testset_save_CFLAGS="$CFLAGS"
8323
8324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8327$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8328if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8329  $as_echo_n "(cached) " >&6
8330else
8331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8332/* end confdefs.h.  */
8333int i;
8334_ACEOF
8335if ac_fn_c_try_compile "$LINENO"; then :
8336  xorg_cv_cc_flag_unknown_warning_option=yes
8337else
8338  xorg_cv_cc_flag_unknown_warning_option=no
8339fi
8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341fi
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8343$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8344	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8345	CFLAGS="$xorg_testset_save_CFLAGS"
8346fi
8347
8348if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8349	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8350		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351	fi
8352	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8353	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8354$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8355if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8356  $as_echo_n "(cached) " >&6
8357else
8358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359/* end confdefs.h.  */
8360int i;
8361_ACEOF
8362if ac_fn_c_try_compile "$LINENO"; then :
8363  xorg_cv_cc_flag_unused_command_line_argument=yes
8364else
8365  xorg_cv_cc_flag_unused_command_line_argument=no
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368fi
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8370$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8371	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8372	CFLAGS="$xorg_testset_save_CFLAGS"
8373fi
8374
8375found="no"
8376
8377	if test $found = "no" ; then
8378		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8379			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8380		fi
8381
8382		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8383			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8384		fi
8385
8386		CFLAGS="$CFLAGS -Werror=address"
8387
8388		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8389$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8390		cacheid=xorg_cv_cc_flag__Werror_address
8391		if eval \${$cacheid+:} false; then :
8392  $as_echo_n "(cached) " >&6
8393else
8394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h.  */
8396int i;
8397int
8398main ()
8399{
8400
8401  ;
8402  return 0;
8403}
8404_ACEOF
8405if ac_fn_c_try_link "$LINENO"; then :
8406  eval $cacheid=yes
8407else
8408  eval $cacheid=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext \
8411    conftest$ac_exeext conftest.$ac_ext
8412fi
8413
8414
8415		CFLAGS="$xorg_testset_save_CFLAGS"
8416
8417		eval supported=\$$cacheid
8418		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8419$as_echo "$supported" >&6; }
8420		if test "$supported" = "yes" ; then
8421			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8422			found="yes"
8423		fi
8424	fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440xorg_testset_save_CFLAGS="$CFLAGS"
8441
8442if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8443	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8445$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8446if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451int i;
8452_ACEOF
8453if ac_fn_c_try_compile "$LINENO"; then :
8454  xorg_cv_cc_flag_unknown_warning_option=yes
8455else
8456  xorg_cv_cc_flag_unknown_warning_option=no
8457fi
8458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459fi
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8461$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8462	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8463	CFLAGS="$xorg_testset_save_CFLAGS"
8464fi
8465
8466if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8467	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8468		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469	fi
8470	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8471	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8472$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8473if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h.  */
8478int i;
8479_ACEOF
8480if ac_fn_c_try_compile "$LINENO"; then :
8481  xorg_cv_cc_flag_unused_command_line_argument=yes
8482else
8483  xorg_cv_cc_flag_unused_command_line_argument=no
8484fi
8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486fi
8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8488$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8489	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8490	CFLAGS="$xorg_testset_save_CFLAGS"
8491fi
8492
8493found="no"
8494
8495	if test $found = "no" ; then
8496		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8497			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498		fi
8499
8500		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8501			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8502		fi
8503
8504		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8505
8506		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8507$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8508		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8509		if eval \${$cacheid+:} false; then :
8510  $as_echo_n "(cached) " >&6
8511else
8512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513/* end confdefs.h.  */
8514int i;
8515int
8516main ()
8517{
8518
8519  ;
8520  return 0;
8521}
8522_ACEOF
8523if ac_fn_c_try_link "$LINENO"; then :
8524  eval $cacheid=yes
8525else
8526  eval $cacheid=no
8527fi
8528rm -f core conftest.err conftest.$ac_objext \
8529    conftest$ac_exeext conftest.$ac_ext
8530fi
8531
8532
8533		CFLAGS="$xorg_testset_save_CFLAGS"
8534
8535		eval supported=\$$cacheid
8536		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8537$as_echo "$supported" >&6; }
8538		if test "$supported" = "yes" ; then
8539			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8540			found="yes"
8541		fi
8542	fi
8543
8544	if test $found = "no" ; then
8545		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547		fi
8548
8549		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551		fi
8552
8553		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8554
8555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8556$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8557		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8558		if eval \${$cacheid+:} false; then :
8559  $as_echo_n "(cached) " >&6
8560else
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563int i;
8564int
8565main ()
8566{
8567
8568  ;
8569  return 0;
8570}
8571_ACEOF
8572if ac_fn_c_try_link "$LINENO"; then :
8573  eval $cacheid=yes
8574else
8575  eval $cacheid=no
8576fi
8577rm -f core conftest.err conftest.$ac_objext \
8578    conftest$ac_exeext conftest.$ac_ext
8579fi
8580
8581
8582		CFLAGS="$xorg_testset_save_CFLAGS"
8583
8584		eval supported=\$$cacheid
8585		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8586$as_echo "$supported" >&6; }
8587		if test "$supported" = "yes" ; then
8588			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8589			found="yes"
8590		fi
8591	fi
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607xorg_testset_save_CFLAGS="$CFLAGS"
8608
8609if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8610	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8611	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8612$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8613if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8614  $as_echo_n "(cached) " >&6
8615else
8616  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617/* end confdefs.h.  */
8618int i;
8619_ACEOF
8620if ac_fn_c_try_compile "$LINENO"; then :
8621  xorg_cv_cc_flag_unknown_warning_option=yes
8622else
8623  xorg_cv_cc_flag_unknown_warning_option=no
8624fi
8625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626fi
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8628$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8630	CFLAGS="$xorg_testset_save_CFLAGS"
8631fi
8632
8633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636	fi
8637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8639$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8640if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8641  $as_echo_n "(cached) " >&6
8642else
8643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h.  */
8645int i;
8646_ACEOF
8647if ac_fn_c_try_compile "$LINENO"; then :
8648  xorg_cv_cc_flag_unused_command_line_argument=yes
8649else
8650  xorg_cv_cc_flag_unused_command_line_argument=no
8651fi
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653fi
8654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657	CFLAGS="$xorg_testset_save_CFLAGS"
8658fi
8659
8660found="no"
8661
8662	if test $found = "no" ; then
8663		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665		fi
8666
8667		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669		fi
8670
8671		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8672
8673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8674$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8675		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8676		if eval \${$cacheid+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681int i;
8682int
8683main ()
8684{
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691  eval $cacheid=yes
8692else
8693  eval $cacheid=no
8694fi
8695rm -f core conftest.err conftest.$ac_objext \
8696    conftest$ac_exeext conftest.$ac_ext
8697fi
8698
8699
8700		CFLAGS="$xorg_testset_save_CFLAGS"
8701
8702		eval supported=\$$cacheid
8703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8704$as_echo "$supported" >&6; }
8705		if test "$supported" = "yes" ; then
8706			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8707			found="yes"
8708		fi
8709	fi
8710
8711 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8712else
8713{ $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
8714$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;}
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728xorg_testset_save_CFLAGS="$CFLAGS"
8729
8730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8735  $as_echo_n "(cached) " >&6
8736else
8737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738/* end confdefs.h.  */
8739int i;
8740_ACEOF
8741if ac_fn_c_try_compile "$LINENO"; then :
8742  xorg_cv_cc_flag_unknown_warning_option=yes
8743else
8744  xorg_cv_cc_flag_unknown_warning_option=no
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747fi
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8751	CFLAGS="$xorg_testset_save_CFLAGS"
8752fi
8753
8754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757	fi
8758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8762  $as_echo_n "(cached) " >&6
8763else
8764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765/* end confdefs.h.  */
8766int i;
8767_ACEOF
8768if ac_fn_c_try_compile "$LINENO"; then :
8769  xorg_cv_cc_flag_unused_command_line_argument=yes
8770else
8771  xorg_cv_cc_flag_unused_command_line_argument=no
8772fi
8773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774fi
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8778	CFLAGS="$xorg_testset_save_CFLAGS"
8779fi
8780
8781found="no"
8782
8783	if test $found = "no" ; then
8784		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8786		fi
8787
8788		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8790		fi
8791
8792		CFLAGS="$CFLAGS -Wimplicit"
8793
8794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8795$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8796		cacheid=xorg_cv_cc_flag__Wimplicit
8797		if eval \${$cacheid+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801/* end confdefs.h.  */
8802int i;
8803int
8804main ()
8805{
8806
8807  ;
8808  return 0;
8809}
8810_ACEOF
8811if ac_fn_c_try_link "$LINENO"; then :
8812  eval $cacheid=yes
8813else
8814  eval $cacheid=no
8815fi
8816rm -f core conftest.err conftest.$ac_objext \
8817    conftest$ac_exeext conftest.$ac_ext
8818fi
8819
8820
8821		CFLAGS="$xorg_testset_save_CFLAGS"
8822
8823		eval supported=\$$cacheid
8824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8825$as_echo "$supported" >&6; }
8826		if test "$supported" = "yes" ; then
8827			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8828			found="yes"
8829		fi
8830	fi
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846xorg_testset_save_CFLAGS="$CFLAGS"
8847
8848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8853  $as_echo_n "(cached) " >&6
8854else
8855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856/* end confdefs.h.  */
8857int i;
8858_ACEOF
8859if ac_fn_c_try_compile "$LINENO"; then :
8860  xorg_cv_cc_flag_unknown_warning_option=yes
8861else
8862  xorg_cv_cc_flag_unknown_warning_option=no
8863fi
8864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8865fi
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8869	CFLAGS="$xorg_testset_save_CFLAGS"
8870fi
8871
8872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8875	fi
8876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8880  $as_echo_n "(cached) " >&6
8881else
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"; then :
8887  xorg_cv_cc_flag_unused_command_line_argument=yes
8888else
8889  xorg_cv_cc_flag_unused_command_line_argument=no
8890fi
8891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892fi
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8896	CFLAGS="$xorg_testset_save_CFLAGS"
8897fi
8898
8899found="no"
8900
8901	if test $found = "no" ; then
8902		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8904		fi
8905
8906		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8908		fi
8909
8910		CFLAGS="$CFLAGS -Wnonnull"
8911
8912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8913$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8914		cacheid=xorg_cv_cc_flag__Wnonnull
8915		if eval \${$cacheid+:} false; then :
8916  $as_echo_n "(cached) " >&6
8917else
8918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8919/* end confdefs.h.  */
8920int i;
8921int
8922main ()
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929if ac_fn_c_try_link "$LINENO"; then :
8930  eval $cacheid=yes
8931else
8932  eval $cacheid=no
8933fi
8934rm -f core conftest.err conftest.$ac_objext \
8935    conftest$ac_exeext conftest.$ac_ext
8936fi
8937
8938
8939		CFLAGS="$xorg_testset_save_CFLAGS"
8940
8941		eval supported=\$$cacheid
8942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8943$as_echo "$supported" >&6; }
8944		if test "$supported" = "yes" ; then
8945			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8946			found="yes"
8947		fi
8948	fi
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964xorg_testset_save_CFLAGS="$CFLAGS"
8965
8966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8971  $as_echo_n "(cached) " >&6
8972else
8973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"; then :
8978  xorg_cv_cc_flag_unknown_warning_option=yes
8979else
8980  xorg_cv_cc_flag_unknown_warning_option=no
8981fi
8982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983fi
8984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8987	CFLAGS="$xorg_testset_save_CFLAGS"
8988fi
8989
8990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8993	fi
8994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001/* end confdefs.h.  */
9002int i;
9003_ACEOF
9004if ac_fn_c_try_compile "$LINENO"; then :
9005  xorg_cv_cc_flag_unused_command_line_argument=yes
9006else
9007  xorg_cv_cc_flag_unused_command_line_argument=no
9008fi
9009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9010fi
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9014	CFLAGS="$xorg_testset_save_CFLAGS"
9015fi
9016
9017found="no"
9018
9019	if test $found = "no" ; then
9020		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9022		fi
9023
9024		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9026		fi
9027
9028		CFLAGS="$CFLAGS -Winit-self"
9029
9030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9031$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9032		cacheid=xorg_cv_cc_flag__Winit_self
9033		if eval \${$cacheid+:} false; then :
9034  $as_echo_n "(cached) " >&6
9035else
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039int
9040main ()
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"; then :
9048  eval $cacheid=yes
9049else
9050  eval $cacheid=no
9051fi
9052rm -f core conftest.err conftest.$ac_objext \
9053    conftest$ac_exeext conftest.$ac_ext
9054fi
9055
9056
9057		CFLAGS="$xorg_testset_save_CFLAGS"
9058
9059		eval supported=\$$cacheid
9060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9061$as_echo "$supported" >&6; }
9062		if test "$supported" = "yes" ; then
9063			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9064			found="yes"
9065		fi
9066	fi
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082xorg_testset_save_CFLAGS="$CFLAGS"
9083
9084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092/* end confdefs.h.  */
9093int i;
9094_ACEOF
9095if ac_fn_c_try_compile "$LINENO"; then :
9096  xorg_cv_cc_flag_unknown_warning_option=yes
9097else
9098  xorg_cv_cc_flag_unknown_warning_option=no
9099fi
9100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101fi
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9105	CFLAGS="$xorg_testset_save_CFLAGS"
9106fi
9107
9108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9111	fi
9112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9116  $as_echo_n "(cached) " >&6
9117else
9118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120int i;
9121_ACEOF
9122if ac_fn_c_try_compile "$LINENO"; then :
9123  xorg_cv_cc_flag_unused_command_line_argument=yes
9124else
9125  xorg_cv_cc_flag_unused_command_line_argument=no
9126fi
9127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128fi
9129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9132	CFLAGS="$xorg_testset_save_CFLAGS"
9133fi
9134
9135found="no"
9136
9137	if test $found = "no" ; then
9138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140		fi
9141
9142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9144		fi
9145
9146		CFLAGS="$CFLAGS -Wmain"
9147
9148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9149$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9150		cacheid=xorg_cv_cc_flag__Wmain
9151		if eval \${$cacheid+:} false; then :
9152  $as_echo_n "(cached) " >&6
9153else
9154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155/* end confdefs.h.  */
9156int i;
9157int
9158main ()
9159{
9160
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166  eval $cacheid=yes
9167else
9168  eval $cacheid=no
9169fi
9170rm -f core conftest.err conftest.$ac_objext \
9171    conftest$ac_exeext conftest.$ac_ext
9172fi
9173
9174
9175		CFLAGS="$xorg_testset_save_CFLAGS"
9176
9177		eval supported=\$$cacheid
9178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9179$as_echo "$supported" >&6; }
9180		if test "$supported" = "yes" ; then
9181			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9182			found="yes"
9183		fi
9184	fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200xorg_testset_save_CFLAGS="$CFLAGS"
9201
9202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9203	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9204	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9207  $as_echo_n "(cached) " >&6
9208else
9209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9210/* end confdefs.h.  */
9211int i;
9212_ACEOF
9213if ac_fn_c_try_compile "$LINENO"; then :
9214  xorg_cv_cc_flag_unknown_warning_option=yes
9215else
9216  xorg_cv_cc_flag_unknown_warning_option=no
9217fi
9218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9223	CFLAGS="$xorg_testset_save_CFLAGS"
9224fi
9225
9226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9229	fi
9230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9231	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237/* end confdefs.h.  */
9238int i;
9239_ACEOF
9240if ac_fn_c_try_compile "$LINENO"; then :
9241  xorg_cv_cc_flag_unused_command_line_argument=yes
9242else
9243  xorg_cv_cc_flag_unused_command_line_argument=no
9244fi
9245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246fi
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9249	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253found="no"
9254
9255	if test $found = "no" ; then
9256		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9257			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9258		fi
9259
9260		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9261			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9262		fi
9263
9264		CFLAGS="$CFLAGS -Wmissing-braces"
9265
9266		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9267$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9268		cacheid=xorg_cv_cc_flag__Wmissing_braces
9269		if eval \${$cacheid+:} false; then :
9270  $as_echo_n "(cached) " >&6
9271else
9272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273/* end confdefs.h.  */
9274int i;
9275int
9276main ()
9277{
9278
9279  ;
9280  return 0;
9281}
9282_ACEOF
9283if ac_fn_c_try_link "$LINENO"; then :
9284  eval $cacheid=yes
9285else
9286  eval $cacheid=no
9287fi
9288rm -f core conftest.err conftest.$ac_objext \
9289    conftest$ac_exeext conftest.$ac_ext
9290fi
9291
9292
9293		CFLAGS="$xorg_testset_save_CFLAGS"
9294
9295		eval supported=\$$cacheid
9296		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9297$as_echo "$supported" >&6; }
9298		if test "$supported" = "yes" ; then
9299			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9300			found="yes"
9301		fi
9302	fi
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318xorg_testset_save_CFLAGS="$CFLAGS"
9319
9320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9321	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9322	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9325  $as_echo_n "(cached) " >&6
9326else
9327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328/* end confdefs.h.  */
9329int i;
9330_ACEOF
9331if ac_fn_c_try_compile "$LINENO"; then :
9332  xorg_cv_cc_flag_unknown_warning_option=yes
9333else
9334  xorg_cv_cc_flag_unknown_warning_option=no
9335fi
9336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337fi
9338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9340	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9341	CFLAGS="$xorg_testset_save_CFLAGS"
9342fi
9343
9344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9345	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9346		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9347	fi
9348	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9349	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355/* end confdefs.h.  */
9356int i;
9357_ACEOF
9358if ac_fn_c_try_compile "$LINENO"; then :
9359  xorg_cv_cc_flag_unused_command_line_argument=yes
9360else
9361  xorg_cv_cc_flag_unused_command_line_argument=no
9362fi
9363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9367	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9368	CFLAGS="$xorg_testset_save_CFLAGS"
9369fi
9370
9371found="no"
9372
9373	if test $found = "no" ; then
9374		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9375			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9376		fi
9377
9378		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9379			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9380		fi
9381
9382		CFLAGS="$CFLAGS -Wsequence-point"
9383
9384		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9385$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9386		cacheid=xorg_cv_cc_flag__Wsequence_point
9387		if eval \${$cacheid+:} false; then :
9388  $as_echo_n "(cached) " >&6
9389else
9390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391/* end confdefs.h.  */
9392int i;
9393int
9394main ()
9395{
9396
9397  ;
9398  return 0;
9399}
9400_ACEOF
9401if ac_fn_c_try_link "$LINENO"; then :
9402  eval $cacheid=yes
9403else
9404  eval $cacheid=no
9405fi
9406rm -f core conftest.err conftest.$ac_objext \
9407    conftest$ac_exeext conftest.$ac_ext
9408fi
9409
9410
9411		CFLAGS="$xorg_testset_save_CFLAGS"
9412
9413		eval supported=\$$cacheid
9414		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9415$as_echo "$supported" >&6; }
9416		if test "$supported" = "yes" ; then
9417			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9418			found="yes"
9419		fi
9420	fi
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436xorg_testset_save_CFLAGS="$CFLAGS"
9437
9438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9439	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9440	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9443  $as_echo_n "(cached) " >&6
9444else
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447int i;
9448_ACEOF
9449if ac_fn_c_try_compile "$LINENO"; then :
9450  xorg_cv_cc_flag_unknown_warning_option=yes
9451else
9452  xorg_cv_cc_flag_unknown_warning_option=no
9453fi
9454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455fi
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9458	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9459	CFLAGS="$xorg_testset_save_CFLAGS"
9460fi
9461
9462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9463	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9464		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9465	fi
9466	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9467	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9470  $as_echo_n "(cached) " >&6
9471else
9472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473/* end confdefs.h.  */
9474int i;
9475_ACEOF
9476if ac_fn_c_try_compile "$LINENO"; then :
9477  xorg_cv_cc_flag_unused_command_line_argument=yes
9478else
9479  xorg_cv_cc_flag_unused_command_line_argument=no
9480fi
9481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9485	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9486	CFLAGS="$xorg_testset_save_CFLAGS"
9487fi
9488
9489found="no"
9490
9491	if test $found = "no" ; then
9492		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9493			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494		fi
9495
9496		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9497			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9498		fi
9499
9500		CFLAGS="$CFLAGS -Wreturn-type"
9501
9502		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9503$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9504		cacheid=xorg_cv_cc_flag__Wreturn_type
9505		if eval \${$cacheid+:} false; then :
9506  $as_echo_n "(cached) " >&6
9507else
9508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509/* end confdefs.h.  */
9510int i;
9511int
9512main ()
9513{
9514
9515  ;
9516  return 0;
9517}
9518_ACEOF
9519if ac_fn_c_try_link "$LINENO"; then :
9520  eval $cacheid=yes
9521else
9522  eval $cacheid=no
9523fi
9524rm -f core conftest.err conftest.$ac_objext \
9525    conftest$ac_exeext conftest.$ac_ext
9526fi
9527
9528
9529		CFLAGS="$xorg_testset_save_CFLAGS"
9530
9531		eval supported=\$$cacheid
9532		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9533$as_echo "$supported" >&6; }
9534		if test "$supported" = "yes" ; then
9535			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9536			found="yes"
9537		fi
9538	fi
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554xorg_testset_save_CFLAGS="$CFLAGS"
9555
9556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9558	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9561  $as_echo_n "(cached) " >&6
9562else
9563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564/* end confdefs.h.  */
9565int i;
9566_ACEOF
9567if ac_fn_c_try_compile "$LINENO"; then :
9568  xorg_cv_cc_flag_unknown_warning_option=yes
9569else
9570  xorg_cv_cc_flag_unknown_warning_option=no
9571fi
9572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9576	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9577	CFLAGS="$xorg_testset_save_CFLAGS"
9578fi
9579
9580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9581	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9582		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583	fi
9584	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9585	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9588  $as_echo_n "(cached) " >&6
9589else
9590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591/* end confdefs.h.  */
9592int i;
9593_ACEOF
9594if ac_fn_c_try_compile "$LINENO"; then :
9595  xorg_cv_cc_flag_unused_command_line_argument=yes
9596else
9597  xorg_cv_cc_flag_unused_command_line_argument=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600fi
9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9603	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9604	CFLAGS="$xorg_testset_save_CFLAGS"
9605fi
9606
9607found="no"
9608
9609	if test $found = "no" ; then
9610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612		fi
9613
9614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9616		fi
9617
9618		CFLAGS="$CFLAGS -Wtrigraphs"
9619
9620		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9621$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9622		cacheid=xorg_cv_cc_flag__Wtrigraphs
9623		if eval \${$cacheid+:} false; then :
9624  $as_echo_n "(cached) " >&6
9625else
9626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628int i;
9629int
9630main ()
9631{
9632
9633  ;
9634  return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_link "$LINENO"; then :
9638  eval $cacheid=yes
9639else
9640  eval $cacheid=no
9641fi
9642rm -f core conftest.err conftest.$ac_objext \
9643    conftest$ac_exeext conftest.$ac_ext
9644fi
9645
9646
9647		CFLAGS="$xorg_testset_save_CFLAGS"
9648
9649		eval supported=\$$cacheid
9650		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9651$as_echo "$supported" >&6; }
9652		if test "$supported" = "yes" ; then
9653			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9654			found="yes"
9655		fi
9656	fi
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672xorg_testset_save_CFLAGS="$CFLAGS"
9673
9674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9675	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9679  $as_echo_n "(cached) " >&6
9680else
9681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9682/* end confdefs.h.  */
9683int i;
9684_ACEOF
9685if ac_fn_c_try_compile "$LINENO"; then :
9686  xorg_cv_cc_flag_unknown_warning_option=yes
9687else
9688  xorg_cv_cc_flag_unknown_warning_option=no
9689fi
9690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9694	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9695	CFLAGS="$xorg_testset_save_CFLAGS"
9696fi
9697
9698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9699	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9700		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9701	fi
9702	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9703	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9706  $as_echo_n "(cached) " >&6
9707else
9708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709/* end confdefs.h.  */
9710int i;
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
9713  xorg_cv_cc_flag_unused_command_line_argument=yes
9714else
9715  xorg_cv_cc_flag_unused_command_line_argument=no
9716fi
9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9722	CFLAGS="$xorg_testset_save_CFLAGS"
9723fi
9724
9725found="no"
9726
9727	if test $found = "no" ; then
9728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9730		fi
9731
9732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734		fi
9735
9736		CFLAGS="$CFLAGS -Warray-bounds"
9737
9738		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9739$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9740		cacheid=xorg_cv_cc_flag__Warray_bounds
9741		if eval \${$cacheid+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745/* end confdefs.h.  */
9746int i;
9747int
9748main ()
9749{
9750
9751  ;
9752  return 0;
9753}
9754_ACEOF
9755if ac_fn_c_try_link "$LINENO"; then :
9756  eval $cacheid=yes
9757else
9758  eval $cacheid=no
9759fi
9760rm -f core conftest.err conftest.$ac_objext \
9761    conftest$ac_exeext conftest.$ac_ext
9762fi
9763
9764
9765		CFLAGS="$xorg_testset_save_CFLAGS"
9766
9767		eval supported=\$$cacheid
9768		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9769$as_echo "$supported" >&6; }
9770		if test "$supported" = "yes" ; then
9771			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9772			found="yes"
9773		fi
9774	fi
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790xorg_testset_save_CFLAGS="$CFLAGS"
9791
9792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9793	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9794	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9797  $as_echo_n "(cached) " >&6
9798else
9799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h.  */
9801int i;
9802_ACEOF
9803if ac_fn_c_try_compile "$LINENO"; then :
9804  xorg_cv_cc_flag_unknown_warning_option=yes
9805else
9806  xorg_cv_cc_flag_unknown_warning_option=no
9807fi
9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9809fi
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9812	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9813	CFLAGS="$xorg_testset_save_CFLAGS"
9814fi
9815
9816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9817	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9818		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819	fi
9820	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829_ACEOF
9830if ac_fn_c_try_compile "$LINENO"; then :
9831  xorg_cv_cc_flag_unused_command_line_argument=yes
9832else
9833  xorg_cv_cc_flag_unused_command_line_argument=no
9834fi
9835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836fi
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9839	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9840	CFLAGS="$xorg_testset_save_CFLAGS"
9841fi
9842
9843found="no"
9844
9845	if test $found = "no" ; then
9846		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9847			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9848		fi
9849
9850		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9851			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9852		fi
9853
9854		CFLAGS="$CFLAGS -Wwrite-strings"
9855
9856		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9857$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9858		cacheid=xorg_cv_cc_flag__Wwrite_strings
9859		if eval \${$cacheid+:} false; then :
9860  $as_echo_n "(cached) " >&6
9861else
9862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863/* end confdefs.h.  */
9864int i;
9865int
9866main ()
9867{
9868
9869  ;
9870  return 0;
9871}
9872_ACEOF
9873if ac_fn_c_try_link "$LINENO"; then :
9874  eval $cacheid=yes
9875else
9876  eval $cacheid=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext \
9879    conftest$ac_exeext conftest.$ac_ext
9880fi
9881
9882
9883		CFLAGS="$xorg_testset_save_CFLAGS"
9884
9885		eval supported=\$$cacheid
9886		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9887$as_echo "$supported" >&6; }
9888		if test "$supported" = "yes" ; then
9889			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9890			found="yes"
9891		fi
9892	fi
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908xorg_testset_save_CFLAGS="$CFLAGS"
9909
9910if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9911	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9913$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9914if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9915  $as_echo_n "(cached) " >&6
9916else
9917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918/* end confdefs.h.  */
9919int i;
9920_ACEOF
9921if ac_fn_c_try_compile "$LINENO"; then :
9922  xorg_cv_cc_flag_unknown_warning_option=yes
9923else
9924  xorg_cv_cc_flag_unknown_warning_option=no
9925fi
9926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927fi
9928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9929$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9930	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9931	CFLAGS="$xorg_testset_save_CFLAGS"
9932fi
9933
9934if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9935	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9936		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9937	fi
9938	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9939	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9940$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9941if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9942  $as_echo_n "(cached) " >&6
9943else
9944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h.  */
9946int i;
9947_ACEOF
9948if ac_fn_c_try_compile "$LINENO"; then :
9949  xorg_cv_cc_flag_unused_command_line_argument=yes
9950else
9951  xorg_cv_cc_flag_unused_command_line_argument=no
9952fi
9953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9954fi
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9956$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9957	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9958	CFLAGS="$xorg_testset_save_CFLAGS"
9959fi
9960
9961found="no"
9962
9963	if test $found = "no" ; then
9964		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9965			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966		fi
9967
9968		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9969			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9970		fi
9971
9972		CFLAGS="$CFLAGS -Waddress"
9973
9974		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9975$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9976		cacheid=xorg_cv_cc_flag__Waddress
9977		if eval \${$cacheid+:} false; then :
9978  $as_echo_n "(cached) " >&6
9979else
9980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h.  */
9982int i;
9983int
9984main ()
9985{
9986
9987  ;
9988  return 0;
9989}
9990_ACEOF
9991if ac_fn_c_try_link "$LINENO"; then :
9992  eval $cacheid=yes
9993else
9994  eval $cacheid=no
9995fi
9996rm -f core conftest.err conftest.$ac_objext \
9997    conftest$ac_exeext conftest.$ac_ext
9998fi
9999
10000
10001		CFLAGS="$xorg_testset_save_CFLAGS"
10002
10003		eval supported=\$$cacheid
10004		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10005$as_echo "$supported" >&6; }
10006		if test "$supported" = "yes" ; then
10007			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10008			found="yes"
10009		fi
10010	fi
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026xorg_testset_save_CFLAGS="$CFLAGS"
10027
10028if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10029	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10030	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10031$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10032if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10033  $as_echo_n "(cached) " >&6
10034else
10035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036/* end confdefs.h.  */
10037int i;
10038_ACEOF
10039if ac_fn_c_try_compile "$LINENO"; then :
10040  xorg_cv_cc_flag_unknown_warning_option=yes
10041else
10042  xorg_cv_cc_flag_unknown_warning_option=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10045fi
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10047$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10048	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10049	CFLAGS="$xorg_testset_save_CFLAGS"
10050fi
10051
10052if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10053	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10054		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055	fi
10056	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10058$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10059if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064int i;
10065_ACEOF
10066if ac_fn_c_try_compile "$LINENO"; then :
10067  xorg_cv_cc_flag_unused_command_line_argument=yes
10068else
10069  xorg_cv_cc_flag_unused_command_line_argument=no
10070fi
10071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072fi
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10074$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10075	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10076	CFLAGS="$xorg_testset_save_CFLAGS"
10077fi
10078
10079found="no"
10080
10081	if test $found = "no" ; then
10082		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10083			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084		fi
10085
10086		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10087			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10088		fi
10089
10090		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10091
10092		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10093$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10094		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10095		if eval \${$cacheid+:} false; then :
10096  $as_echo_n "(cached) " >&6
10097else
10098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h.  */
10100int i;
10101int
10102main ()
10103{
10104
10105  ;
10106  return 0;
10107}
10108_ACEOF
10109if ac_fn_c_try_link "$LINENO"; then :
10110  eval $cacheid=yes
10111else
10112  eval $cacheid=no
10113fi
10114rm -f core conftest.err conftest.$ac_objext \
10115    conftest$ac_exeext conftest.$ac_ext
10116fi
10117
10118
10119		CFLAGS="$xorg_testset_save_CFLAGS"
10120
10121		eval supported=\$$cacheid
10122		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10123$as_echo "$supported" >&6; }
10124		if test "$supported" = "yes" ; then
10125			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10126			found="yes"
10127		fi
10128	fi
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144xorg_testset_save_CFLAGS="$CFLAGS"
10145
10146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10151  $as_echo_n "(cached) " >&6
10152else
10153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155int i;
10156_ACEOF
10157if ac_fn_c_try_compile "$LINENO"; then :
10158  xorg_cv_cc_flag_unknown_warning_option=yes
10159else
10160  xorg_cv_cc_flag_unknown_warning_option=no
10161fi
10162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163fi
10164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10167	CFLAGS="$xorg_testset_save_CFLAGS"
10168fi
10169
10170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173	fi
10174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181/* end confdefs.h.  */
10182int i;
10183_ACEOF
10184if ac_fn_c_try_compile "$LINENO"; then :
10185  xorg_cv_cc_flag_unused_command_line_argument=yes
10186else
10187  xorg_cv_cc_flag_unused_command_line_argument=no
10188fi
10189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10194	CFLAGS="$xorg_testset_save_CFLAGS"
10195fi
10196
10197found="no"
10198
10199	if test $found = "no" ; then
10200		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10202		fi
10203
10204		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206		fi
10207
10208		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10209
10210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10211$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10212		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10213		if eval \${$cacheid+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219int
10220main ()
10221{
10222
10223  ;
10224  return 0;
10225}
10226_ACEOF
10227if ac_fn_c_try_link "$LINENO"; then :
10228  eval $cacheid=yes
10229else
10230  eval $cacheid=no
10231fi
10232rm -f core conftest.err conftest.$ac_objext \
10233    conftest$ac_exeext conftest.$ac_ext
10234fi
10235
10236
10237		CFLAGS="$xorg_testset_save_CFLAGS"
10238
10239		eval supported=\$$cacheid
10240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10241$as_echo "$supported" >&6; }
10242		if test "$supported" = "yes" ; then
10243			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10244			found="yes"
10245		fi
10246	fi
10247
10248
10249fi
10250
10251
10252
10253
10254
10255
10256
10257		CWARNFLAGS="$BASE_CFLAGS"
10258		if  test "x$GCC" = xyes ; then
10259		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10260		fi
10261
10262
10263
10264
10265
10266
10267
10268
10269# Check whether --enable-strict-compilation was given.
10270if test "${enable_strict_compilation+set}" = set; then :
10271  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10272else
10273  STRICT_COMPILE=no
10274fi
10275
10276
10277
10278
10279
10280
10281STRICT_CFLAGS=""
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295xorg_testset_save_CFLAGS="$CFLAGS"
10296
10297if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10298	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10300$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10301if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10302  $as_echo_n "(cached) " >&6
10303else
10304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306int i;
10307_ACEOF
10308if ac_fn_c_try_compile "$LINENO"; then :
10309  xorg_cv_cc_flag_unknown_warning_option=yes
10310else
10311  xorg_cv_cc_flag_unknown_warning_option=no
10312fi
10313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10316$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10318	CFLAGS="$xorg_testset_save_CFLAGS"
10319fi
10320
10321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10324	fi
10325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10326	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10327$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10328if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10329  $as_echo_n "(cached) " >&6
10330else
10331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332/* end confdefs.h.  */
10333int i;
10334_ACEOF
10335if ac_fn_c_try_compile "$LINENO"; then :
10336  xorg_cv_cc_flag_unused_command_line_argument=yes
10337else
10338  xorg_cv_cc_flag_unused_command_line_argument=no
10339fi
10340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341fi
10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10343$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10344	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10345	CFLAGS="$xorg_testset_save_CFLAGS"
10346fi
10347
10348found="no"
10349
10350	if test $found = "no" ; then
10351		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10352			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10353		fi
10354
10355		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10356			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10357		fi
10358
10359		CFLAGS="$CFLAGS -pedantic"
10360
10361		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10362$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10363		cacheid=xorg_cv_cc_flag__pedantic
10364		if eval \${$cacheid+:} false; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368/* end confdefs.h.  */
10369int i;
10370int
10371main ()
10372{
10373
10374  ;
10375  return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"; then :
10379  eval $cacheid=yes
10380else
10381  eval $cacheid=no
10382fi
10383rm -f core conftest.err conftest.$ac_objext \
10384    conftest$ac_exeext conftest.$ac_ext
10385fi
10386
10387
10388		CFLAGS="$xorg_testset_save_CFLAGS"
10389
10390		eval supported=\$$cacheid
10391		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10392$as_echo "$supported" >&6; }
10393		if test "$supported" = "yes" ; then
10394			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10395			found="yes"
10396		fi
10397	fi
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413xorg_testset_save_CFLAGS="$CFLAGS"
10414
10415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10418$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10419if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425_ACEOF
10426if ac_fn_c_try_compile "$LINENO"; then :
10427  xorg_cv_cc_flag_unknown_warning_option=yes
10428else
10429  xorg_cv_cc_flag_unknown_warning_option=no
10430fi
10431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10434$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10435	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10436	CFLAGS="$xorg_testset_save_CFLAGS"
10437fi
10438
10439if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10440	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10441		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10442	fi
10443	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10444	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10445$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10446if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10447  $as_echo_n "(cached) " >&6
10448else
10449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450/* end confdefs.h.  */
10451int i;
10452_ACEOF
10453if ac_fn_c_try_compile "$LINENO"; then :
10454  xorg_cv_cc_flag_unused_command_line_argument=yes
10455else
10456  xorg_cv_cc_flag_unused_command_line_argument=no
10457fi
10458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459fi
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10461$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10463	CFLAGS="$xorg_testset_save_CFLAGS"
10464fi
10465
10466found="no"
10467
10468	if test $found = "no" ; then
10469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10471		fi
10472
10473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10475		fi
10476
10477		CFLAGS="$CFLAGS -Werror"
10478
10479		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10480$as_echo_n "checking if $CC supports -Werror... " >&6; }
10481		cacheid=xorg_cv_cc_flag__Werror
10482		if eval \${$cacheid+:} false; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486/* end confdefs.h.  */
10487int i;
10488int
10489main ()
10490{
10491
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496if ac_fn_c_try_link "$LINENO"; then :
10497  eval $cacheid=yes
10498else
10499  eval $cacheid=no
10500fi
10501rm -f core conftest.err conftest.$ac_objext \
10502    conftest$ac_exeext conftest.$ac_ext
10503fi
10504
10505
10506		CFLAGS="$xorg_testset_save_CFLAGS"
10507
10508		eval supported=\$$cacheid
10509		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10510$as_echo "$supported" >&6; }
10511		if test "$supported" = "yes" ; then
10512			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10513			found="yes"
10514		fi
10515	fi
10516
10517	if test $found = "no" ; then
10518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10520		fi
10521
10522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10524		fi
10525
10526		CFLAGS="$CFLAGS -errwarn"
10527
10528		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10529$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10530		cacheid=xorg_cv_cc_flag__errwarn
10531		if eval \${$cacheid+:} false; then :
10532  $as_echo_n "(cached) " >&6
10533else
10534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535/* end confdefs.h.  */
10536int i;
10537int
10538main ()
10539{
10540
10541  ;
10542  return 0;
10543}
10544_ACEOF
10545if ac_fn_c_try_link "$LINENO"; then :
10546  eval $cacheid=yes
10547else
10548  eval $cacheid=no
10549fi
10550rm -f core conftest.err conftest.$ac_objext \
10551    conftest$ac_exeext conftest.$ac_ext
10552fi
10553
10554
10555		CFLAGS="$xorg_testset_save_CFLAGS"
10556
10557		eval supported=\$$cacheid
10558		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10559$as_echo "$supported" >&6; }
10560		if test "$supported" = "yes" ; then
10561			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10562			found="yes"
10563		fi
10564	fi
10565
10566
10567
10568# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10569# activate it with -Werror, so we add it here explicitly.
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583xorg_testset_save_CFLAGS="$CFLAGS"
10584
10585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10587	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10588$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10589if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10590  $as_echo_n "(cached) " >&6
10591else
10592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593/* end confdefs.h.  */
10594int i;
10595_ACEOF
10596if ac_fn_c_try_compile "$LINENO"; then :
10597  xorg_cv_cc_flag_unknown_warning_option=yes
10598else
10599  xorg_cv_cc_flag_unknown_warning_option=no
10600fi
10601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10602fi
10603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10604$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10606	CFLAGS="$xorg_testset_save_CFLAGS"
10607fi
10608
10609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10612	fi
10613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10615$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10616if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10617  $as_echo_n "(cached) " >&6
10618else
10619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h.  */
10621int i;
10622_ACEOF
10623if ac_fn_c_try_compile "$LINENO"; then :
10624  xorg_cv_cc_flag_unused_command_line_argument=yes
10625else
10626  xorg_cv_cc_flag_unused_command_line_argument=no
10627fi
10628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10629fi
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10631$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10633	CFLAGS="$xorg_testset_save_CFLAGS"
10634fi
10635
10636found="no"
10637
10638	if test $found = "no" ; then
10639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10641		fi
10642
10643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10645		fi
10646
10647		CFLAGS="$CFLAGS -Werror=attributes"
10648
10649		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10650$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10651		cacheid=xorg_cv_cc_flag__Werror_attributes
10652		if eval \${$cacheid+:} false; then :
10653  $as_echo_n "(cached) " >&6
10654else
10655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657int i;
10658int
10659main ()
10660{
10661
10662  ;
10663  return 0;
10664}
10665_ACEOF
10666if ac_fn_c_try_link "$LINENO"; then :
10667  eval $cacheid=yes
10668else
10669  eval $cacheid=no
10670fi
10671rm -f core conftest.err conftest.$ac_objext \
10672    conftest$ac_exeext conftest.$ac_ext
10673fi
10674
10675
10676		CFLAGS="$xorg_testset_save_CFLAGS"
10677
10678		eval supported=\$$cacheid
10679		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10680$as_echo "$supported" >&6; }
10681		if test "$supported" = "yes" ; then
10682			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10683			found="yes"
10684		fi
10685	fi
10686
10687
10688
10689if test "x$STRICT_COMPILE" = "xyes"; then
10690    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10691    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10692fi
10693
10694
10695
10696
10697
10698
10699cat >>confdefs.h <<_ACEOF
10700#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10701_ACEOF
10702
10703	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10704	if test "x$PVM" = "x"; then
10705		PVM="0"
10706	fi
10707
10708cat >>confdefs.h <<_ACEOF
10709#define PACKAGE_VERSION_MINOR $PVM
10710_ACEOF
10711
10712	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10713	if test "x$PVP" = "x"; then
10714		PVP="0"
10715	fi
10716
10717cat >>confdefs.h <<_ACEOF
10718#define PACKAGE_VERSION_PATCHLEVEL $PVP
10719_ACEOF
10720
10721
10722
10723CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10724mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10725|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10726echo 'git directory not found: installing possibly empty changelog.' >&2)"
10727
10728
10729
10730
10731macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10732INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10733mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10734|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10735echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10736
10737
10738
10739
10740
10741
10742if test x$APP_MAN_SUFFIX = x    ; then
10743    APP_MAN_SUFFIX=1
10744fi
10745if test x$APP_MAN_DIR = x    ; then
10746    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10747fi
10748
10749if test x$LIB_MAN_SUFFIX = x    ; then
10750    LIB_MAN_SUFFIX=3
10751fi
10752if test x$LIB_MAN_DIR = x    ; then
10753    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10754fi
10755
10756if test x$FILE_MAN_SUFFIX = x    ; then
10757    case $host_os in
10758	solaris*)	FILE_MAN_SUFFIX=4  ;;
10759	*)		FILE_MAN_SUFFIX=5  ;;
10760    esac
10761fi
10762if test x$FILE_MAN_DIR = x    ; then
10763    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10764fi
10765
10766if test x$MISC_MAN_SUFFIX = x    ; then
10767    case $host_os in
10768	solaris*)	MISC_MAN_SUFFIX=5  ;;
10769	*)		MISC_MAN_SUFFIX=7  ;;
10770    esac
10771fi
10772if test x$MISC_MAN_DIR = x    ; then
10773    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10774fi
10775
10776if test x$DRIVER_MAN_SUFFIX = x    ; then
10777    case $host_os in
10778	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10779	*)		DRIVER_MAN_SUFFIX=4  ;;
10780    esac
10781fi
10782if test x$DRIVER_MAN_DIR = x    ; then
10783    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10784fi
10785
10786if test x$ADMIN_MAN_SUFFIX = x    ; then
10787    case $host_os in
10788	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10789	*)		ADMIN_MAN_SUFFIX=8  ;;
10790    esac
10791fi
10792if test x$ADMIN_MAN_DIR = x    ; then
10793    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10794fi
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810XORG_MAN_PAGE="X Version 11"
10811
10812MAN_SUBSTS="\
10813	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10814	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10815	-e 's|__xservername__|Xorg|g' \
10816	-e 's|__xconfigfile__|xorg.conf|g' \
10817	-e 's|__projectroot__|\$(prefix)|g' \
10818	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10819	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10820	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10821	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10822	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10823	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10824	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10825
10826
10827
10828# Check whether --enable-silent-rules was given.
10829if test "${enable_silent_rules+set}" = set; then :
10830  enableval=$enable_silent_rules;
10831fi
10832
10833case $enable_silent_rules in # (((
10834  yes) AM_DEFAULT_VERBOSITY=0;;
10835   no) AM_DEFAULT_VERBOSITY=1;;
10836    *) AM_DEFAULT_VERBOSITY=0;;
10837esac
10838am_make=${MAKE-make}
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10840$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10841if ${am_cv_make_support_nested_variables+:} false; then :
10842  $as_echo_n "(cached) " >&6
10843else
10844  if $as_echo 'TRUE=$(BAR$(V))
10845BAR0=false
10846BAR1=true
10847V=1
10848am__doit:
10849	@$(TRUE)
10850.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10851  am_cv_make_support_nested_variables=yes
10852else
10853  am_cv_make_support_nested_variables=no
10854fi
10855fi
10856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10857$as_echo "$am_cv_make_support_nested_variables" >&6; }
10858if test $am_cv_make_support_nested_variables = yes; then
10859    AM_V='$(V)'
10860  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10861else
10862  AM_V=$AM_DEFAULT_VERBOSITY
10863  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10864fi
10865AM_BACKSLASH='\'
10866
10867
10868
10869# Initialize libtool
10870# Check whether --enable-static was given.
10871if test "${enable_static+set}" = set; then :
10872  enableval=$enable_static; p=${PACKAGE-default}
10873    case $enableval in
10874    yes) enable_static=yes ;;
10875    no) enable_static=no ;;
10876    *)
10877     enable_static=no
10878      # Look at the argument we got.  We use all the common list separators.
10879      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10880      for pkg in $enableval; do
10881	IFS=$lt_save_ifs
10882	if test "X$pkg" = "X$p"; then
10883	  enable_static=yes
10884	fi
10885      done
10886      IFS=$lt_save_ifs
10887      ;;
10888    esac
10889else
10890  enable_static=no
10891fi
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901case `pwd` in
10902  *\ * | *\	*)
10903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10904$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10905esac
10906
10907
10908
10909macro_version='2.4.6'
10910macro_revision='2.4.6'
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924ltmain=$ac_aux_dir/ltmain.sh
10925
10926# Backslashify metacharacters that are still active within
10927# double-quoted strings.
10928sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10929
10930# Same as above, but do not quote variable references.
10931double_quote_subst='s/\(["`\\]\)/\\\1/g'
10932
10933# Sed substitution to delay expansion of an escaped shell variable in a
10934# double_quote_subst'ed string.
10935delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10936
10937# Sed substitution to delay expansion of an escaped single quote.
10938delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10939
10940# Sed substitution to avoid accidental globbing in evaled expressions
10941no_glob_subst='s/\*/\\\*/g'
10942
10943ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10945ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10946
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10948$as_echo_n "checking how to print strings... " >&6; }
10949# Test print first, because it will be a builtin if present.
10950if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10951   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10952  ECHO='print -r --'
10953elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10954  ECHO='printf %s\n'
10955else
10956  # Use this function as a fallback that always works.
10957  func_fallback_echo ()
10958  {
10959    eval 'cat <<_LTECHO_EOF
10960$1
10961_LTECHO_EOF'
10962  }
10963  ECHO='func_fallback_echo'
10964fi
10965
10966# func_echo_all arg...
10967# Invoke $ECHO with all args, space-separated.
10968func_echo_all ()
10969{
10970    $ECHO ""
10971}
10972
10973case $ECHO in
10974  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10975$as_echo "printf" >&6; } ;;
10976  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10977$as_echo "print -r" >&6; } ;;
10978  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10979$as_echo "cat" >&6; } ;;
10980esac
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10996$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10997if ${ac_cv_path_SED+:} false; then :
10998  $as_echo_n "(cached) " >&6
10999else
11000            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11001     for ac_i in 1 2 3 4 5 6 7; do
11002       ac_script="$ac_script$as_nl$ac_script"
11003     done
11004     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11005     { ac_script=; unset ac_script;}
11006     if test -z "$SED"; then
11007  ac_path_SED_found=false
11008  # Loop through the user's path and test for each of PROGNAME-LIST
11009  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11010for as_dir in $PATH
11011do
11012  IFS=$as_save_IFS
11013  test -z "$as_dir" && as_dir=.
11014    for ac_prog in sed gsed; do
11015    for ac_exec_ext in '' $ac_executable_extensions; do
11016      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11017      as_fn_executable_p "$ac_path_SED" || continue
11018# Check for GNU ac_path_SED and select it if it is found.
11019  # Check for GNU $ac_path_SED
11020case `"$ac_path_SED" --version 2>&1` in
11021*GNU*)
11022  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11023*)
11024  ac_count=0
11025  $as_echo_n 0123456789 >"conftest.in"
11026  while :
11027  do
11028    cat "conftest.in" "conftest.in" >"conftest.tmp"
11029    mv "conftest.tmp" "conftest.in"
11030    cp "conftest.in" "conftest.nl"
11031    $as_echo '' >> "conftest.nl"
11032    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11033    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11034    as_fn_arith $ac_count + 1 && ac_count=$as_val
11035    if test $ac_count -gt ${ac_path_SED_max-0}; then
11036      # Best one so far, save it but keep looking for a better one
11037      ac_cv_path_SED="$ac_path_SED"
11038      ac_path_SED_max=$ac_count
11039    fi
11040    # 10*(2^10) chars as input seems more than enough
11041    test $ac_count -gt 10 && break
11042  done
11043  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11044esac
11045
11046      $ac_path_SED_found && break 3
11047    done
11048  done
11049  done
11050IFS=$as_save_IFS
11051  if test -z "$ac_cv_path_SED"; then
11052    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11053  fi
11054else
11055  ac_cv_path_SED=$SED
11056fi
11057
11058fi
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11060$as_echo "$ac_cv_path_SED" >&6; }
11061 SED="$ac_cv_path_SED"
11062  rm -f conftest.sed
11063
11064test -z "$SED" && SED=sed
11065Xsed="$SED -e 1s/^X//"
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11078$as_echo_n "checking for fgrep... " >&6; }
11079if ${ac_cv_path_FGREP+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11083   then ac_cv_path_FGREP="$GREP -F"
11084   else
11085     if test -z "$FGREP"; then
11086  ac_path_FGREP_found=false
11087  # Loop through the user's path and test for each of PROGNAME-LIST
11088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11090do
11091  IFS=$as_save_IFS
11092  test -z "$as_dir" && as_dir=.
11093    for ac_prog in fgrep; do
11094    for ac_exec_ext in '' $ac_executable_extensions; do
11095      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11096      as_fn_executable_p "$ac_path_FGREP" || continue
11097# Check for GNU ac_path_FGREP and select it if it is found.
11098  # Check for GNU $ac_path_FGREP
11099case `"$ac_path_FGREP" --version 2>&1` in
11100*GNU*)
11101  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11102*)
11103  ac_count=0
11104  $as_echo_n 0123456789 >"conftest.in"
11105  while :
11106  do
11107    cat "conftest.in" "conftest.in" >"conftest.tmp"
11108    mv "conftest.tmp" "conftest.in"
11109    cp "conftest.in" "conftest.nl"
11110    $as_echo 'FGREP' >> "conftest.nl"
11111    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11113    as_fn_arith $ac_count + 1 && ac_count=$as_val
11114    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11115      # Best one so far, save it but keep looking for a better one
11116      ac_cv_path_FGREP="$ac_path_FGREP"
11117      ac_path_FGREP_max=$ac_count
11118    fi
11119    # 10*(2^10) chars as input seems more than enough
11120    test $ac_count -gt 10 && break
11121  done
11122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11123esac
11124
11125      $ac_path_FGREP_found && break 3
11126    done
11127  done
11128  done
11129IFS=$as_save_IFS
11130  if test -z "$ac_cv_path_FGREP"; then
11131    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11132  fi
11133else
11134  ac_cv_path_FGREP=$FGREP
11135fi
11136
11137   fi
11138fi
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11140$as_echo "$ac_cv_path_FGREP" >&6; }
11141 FGREP="$ac_cv_path_FGREP"
11142
11143
11144test -z "$GREP" && GREP=grep
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164# Check whether --with-gnu-ld was given.
11165if test "${with_gnu_ld+set}" = set; then :
11166  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11167else
11168  with_gnu_ld=no
11169fi
11170
11171ac_prog=ld
11172if test yes = "$GCC"; then
11173  # Check if gcc -print-prog-name=ld gives a path.
11174  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11175$as_echo_n "checking for ld used by $CC... " >&6; }
11176  case $host in
11177  *-*-mingw*)
11178    # gcc leaves a trailing carriage return, which upsets mingw
11179    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11180  *)
11181    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11182  esac
11183  case $ac_prog in
11184    # Accept absolute paths.
11185    [\\/]* | ?:[\\/]*)
11186      re_direlt='/[^/][^/]*/\.\./'
11187      # Canonicalize the pathname of ld
11188      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11189      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11190	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11191      done
11192      test -z "$LD" && LD=$ac_prog
11193      ;;
11194  "")
11195    # If it fails, then pretend we aren't using GCC.
11196    ac_prog=ld
11197    ;;
11198  *)
11199    # If it is relative, then search for the first ld in PATH.
11200    with_gnu_ld=unknown
11201    ;;
11202  esac
11203elif test yes = "$with_gnu_ld"; then
11204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11205$as_echo_n "checking for GNU ld... " >&6; }
11206else
11207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11208$as_echo_n "checking for non-GNU ld... " >&6; }
11209fi
11210if ${lt_cv_path_LD+:} false; then :
11211  $as_echo_n "(cached) " >&6
11212else
11213  if test -z "$LD"; then
11214  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11215  for ac_dir in $PATH; do
11216    IFS=$lt_save_ifs
11217    test -z "$ac_dir" && ac_dir=.
11218    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11219      lt_cv_path_LD=$ac_dir/$ac_prog
11220      # Check to see if the program is GNU ld.  I'd rather use --version,
11221      # but apparently some variants of GNU ld only accept -v.
11222      # Break only if it was the GNU/non-GNU ld that we prefer.
11223      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11224      *GNU* | *'with BFD'*)
11225	test no != "$with_gnu_ld" && break
11226	;;
11227      *)
11228	test yes != "$with_gnu_ld" && break
11229	;;
11230      esac
11231    fi
11232  done
11233  IFS=$lt_save_ifs
11234else
11235  lt_cv_path_LD=$LD # Let the user override the test with a path.
11236fi
11237fi
11238
11239LD=$lt_cv_path_LD
11240if test -n "$LD"; then
11241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11242$as_echo "$LD" >&6; }
11243else
11244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245$as_echo "no" >&6; }
11246fi
11247test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11249$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11250if ${lt_cv_prog_gnu_ld+:} false; then :
11251  $as_echo_n "(cached) " >&6
11252else
11253  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11254case `$LD -v 2>&1 </dev/null` in
11255*GNU* | *'with BFD'*)
11256  lt_cv_prog_gnu_ld=yes
11257  ;;
11258*)
11259  lt_cv_prog_gnu_ld=no
11260  ;;
11261esac
11262fi
11263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11264$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11265with_gnu_ld=$lt_cv_prog_gnu_ld
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11276$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11277if ${lt_cv_path_NM+:} false; then :
11278  $as_echo_n "(cached) " >&6
11279else
11280  if test -n "$NM"; then
11281  # Let the user override the test.
11282  lt_cv_path_NM=$NM
11283else
11284  lt_nm_to_check=${ac_tool_prefix}nm
11285  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11286    lt_nm_to_check="$lt_nm_to_check nm"
11287  fi
11288  for lt_tmp_nm in $lt_nm_to_check; do
11289    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11290    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11291      IFS=$lt_save_ifs
11292      test -z "$ac_dir" && ac_dir=.
11293      tmp_nm=$ac_dir/$lt_tmp_nm
11294      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11295	# Check to see if the nm accepts a BSD-compat flag.
11296	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11297	#   nm: unknown option "B" ignored
11298	# Tru64's nm complains that /dev/null is an invalid object file
11299	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11300	case $build_os in
11301	mingw*) lt_bad_file=conftest.nm/nofile ;;
11302	*) lt_bad_file=/dev/null ;;
11303	esac
11304	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11305	*$lt_bad_file* | *'Invalid file or object type'*)
11306	  lt_cv_path_NM="$tmp_nm -B"
11307	  break 2
11308	  ;;
11309	*)
11310	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11311	  */dev/null*)
11312	    lt_cv_path_NM="$tmp_nm -p"
11313	    break 2
11314	    ;;
11315	  *)
11316	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11317	    continue # so that we can try to find one that supports BSD flags
11318	    ;;
11319	  esac
11320	  ;;
11321	esac
11322      fi
11323    done
11324    IFS=$lt_save_ifs
11325  done
11326  : ${lt_cv_path_NM=no}
11327fi
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11330$as_echo "$lt_cv_path_NM" >&6; }
11331if test no != "$lt_cv_path_NM"; then
11332  NM=$lt_cv_path_NM
11333else
11334  # Didn't find any BSD compatible name lister, look for dumpbin.
11335  if test -n "$DUMPBIN"; then :
11336    # Let the user override the test.
11337  else
11338    if test -n "$ac_tool_prefix"; then
11339  for ac_prog in dumpbin "link -dump"
11340  do
11341    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11344$as_echo_n "checking for $ac_word... " >&6; }
11345if ${ac_cv_prog_DUMPBIN+:} false; then :
11346  $as_echo_n "(cached) " >&6
11347else
11348  if test -n "$DUMPBIN"; then
11349  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11350else
11351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354  IFS=$as_save_IFS
11355  test -z "$as_dir" && as_dir=.
11356    for ac_exec_ext in '' $ac_executable_extensions; do
11357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11360    break 2
11361  fi
11362done
11363  done
11364IFS=$as_save_IFS
11365
11366fi
11367fi
11368DUMPBIN=$ac_cv_prog_DUMPBIN
11369if test -n "$DUMPBIN"; then
11370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11371$as_echo "$DUMPBIN" >&6; }
11372else
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374$as_echo "no" >&6; }
11375fi
11376
11377
11378    test -n "$DUMPBIN" && break
11379  done
11380fi
11381if test -z "$DUMPBIN"; then
11382  ac_ct_DUMPBIN=$DUMPBIN
11383  for ac_prog in dumpbin "link -dump"
11384do
11385  # Extract the first word of "$ac_prog", so it can be a program name with args.
11386set dummy $ac_prog; ac_word=$2
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  if test -n "$ac_ct_DUMPBIN"; then
11393  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398  IFS=$as_save_IFS
11399  test -z "$as_dir" && as_dir=.
11400    for ac_exec_ext in '' $ac_executable_extensions; do
11401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404    break 2
11405  fi
11406done
11407  done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11413if test -n "$ac_ct_DUMPBIN"; then
11414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11415$as_echo "$ac_ct_DUMPBIN" >&6; }
11416else
11417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
11419fi
11420
11421
11422  test -n "$ac_ct_DUMPBIN" && break
11423done
11424
11425  if test "x$ac_ct_DUMPBIN" = x; then
11426    DUMPBIN=":"
11427  else
11428    case $cross_compiling:$ac_tool_warned in
11429yes:)
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11432ac_tool_warned=yes ;;
11433esac
11434    DUMPBIN=$ac_ct_DUMPBIN
11435  fi
11436fi
11437
11438    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11439    *COFF*)
11440      DUMPBIN="$DUMPBIN -symbols -headers"
11441      ;;
11442    *)
11443      DUMPBIN=:
11444      ;;
11445    esac
11446  fi
11447
11448  if test : != "$DUMPBIN"; then
11449    NM=$DUMPBIN
11450  fi
11451fi
11452test -z "$NM" && NM=nm
11453
11454
11455
11456
11457
11458
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11460$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11461if ${lt_cv_nm_interface+:} false; then :
11462  $as_echo_n "(cached) " >&6
11463else
11464  lt_cv_nm_interface="BSD nm"
11465  echo "int some_variable = 0;" > conftest.$ac_ext
11466  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11467  (eval "$ac_compile" 2>conftest.err)
11468  cat conftest.err >&5
11469  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11470  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11471  cat conftest.err >&5
11472  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11473  cat conftest.out >&5
11474  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11475    lt_cv_nm_interface="MS dumpbin"
11476  fi
11477  rm -f conftest*
11478fi
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11480$as_echo "$lt_cv_nm_interface" >&6; }
11481
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11483$as_echo_n "checking whether ln -s works... " >&6; }
11484LN_S=$as_ln_s
11485if test "$LN_S" = "ln -s"; then
11486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11487$as_echo "yes" >&6; }
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11490$as_echo "no, using $LN_S" >&6; }
11491fi
11492
11493# find the maximum length of command line arguments
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11495$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11496if ${lt_cv_sys_max_cmd_len+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499    i=0
11500  teststring=ABCD
11501
11502  case $build_os in
11503  msdosdjgpp*)
11504    # On DJGPP, this test can blow up pretty badly due to problems in libc
11505    # (any single argument exceeding 2000 bytes causes a buffer overrun
11506    # during glob expansion).  Even if it were fixed, the result of this
11507    # check would be larger than it should be.
11508    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11509    ;;
11510
11511  gnu*)
11512    # Under GNU Hurd, this test is not required because there is
11513    # no limit to the length of command line arguments.
11514    # Libtool will interpret -1 as no limit whatsoever
11515    lt_cv_sys_max_cmd_len=-1;
11516    ;;
11517
11518  cygwin* | mingw* | cegcc*)
11519    # On Win9x/ME, this test blows up -- it succeeds, but takes
11520    # about 5 minutes as the teststring grows exponentially.
11521    # Worse, since 9x/ME are not pre-emptively multitasking,
11522    # you end up with a "frozen" computer, even though with patience
11523    # the test eventually succeeds (with a max line length of 256k).
11524    # Instead, let's just punt: use the minimum linelength reported by
11525    # all of the supported platforms: 8192 (on NT/2K/XP).
11526    lt_cv_sys_max_cmd_len=8192;
11527    ;;
11528
11529  mint*)
11530    # On MiNT this can take a long time and run out of memory.
11531    lt_cv_sys_max_cmd_len=8192;
11532    ;;
11533
11534  amigaos*)
11535    # On AmigaOS with pdksh, this test takes hours, literally.
11536    # So we just punt and use a minimum line length of 8192.
11537    lt_cv_sys_max_cmd_len=8192;
11538    ;;
11539
11540  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11541    # This has been around since 386BSD, at least.  Likely further.
11542    if test -x /sbin/sysctl; then
11543      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11544    elif test -x /usr/sbin/sysctl; then
11545      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11546    else
11547      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11548    fi
11549    # And add a safety zone
11550    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11551    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11552    ;;
11553
11554  interix*)
11555    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11556    lt_cv_sys_max_cmd_len=196608
11557    ;;
11558
11559  os2*)
11560    # The test takes a long time on OS/2.
11561    lt_cv_sys_max_cmd_len=8192
11562    ;;
11563
11564  osf*)
11565    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11566    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11567    # nice to cause kernel panics so lets avoid the loop below.
11568    # First set a reasonable default.
11569    lt_cv_sys_max_cmd_len=16384
11570    #
11571    if test -x /sbin/sysconfig; then
11572      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11573        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11574      esac
11575    fi
11576    ;;
11577  sco3.2v5*)
11578    lt_cv_sys_max_cmd_len=102400
11579    ;;
11580  sysv5* | sco5v6* | sysv4.2uw2*)
11581    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11582    if test -n "$kargmax"; then
11583      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11584    else
11585      lt_cv_sys_max_cmd_len=32768
11586    fi
11587    ;;
11588  *)
11589    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11590    if test -n "$lt_cv_sys_max_cmd_len" && \
11591       test undefined != "$lt_cv_sys_max_cmd_len"; then
11592      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11593      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11594    else
11595      # Make teststring a little bigger before we do anything with it.
11596      # a 1K string should be a reasonable start.
11597      for i in 1 2 3 4 5 6 7 8; do
11598        teststring=$teststring$teststring
11599      done
11600      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11601      # If test is not a shell built-in, we'll probably end up computing a
11602      # maximum length that is only half of the actual maximum length, but
11603      # we can't tell.
11604      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11605	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11606	      test 17 != "$i" # 1/2 MB should be enough
11607      do
11608        i=`expr $i + 1`
11609        teststring=$teststring$teststring
11610      done
11611      # Only check the string length outside the loop.
11612      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11613      teststring=
11614      # Add a significant safety factor because C++ compilers can tack on
11615      # massive amounts of additional arguments before passing them to the
11616      # linker.  It appears as though 1/2 is a usable value.
11617      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11618    fi
11619    ;;
11620  esac
11621
11622fi
11623
11624if test -n "$lt_cv_sys_max_cmd_len"; then
11625  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11626$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11627else
11628  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11629$as_echo "none" >&6; }
11630fi
11631max_cmd_len=$lt_cv_sys_max_cmd_len
11632
11633
11634
11635
11636
11637
11638: ${CP="cp -f"}
11639: ${MV="mv -f"}
11640: ${RM="rm -f"}
11641
11642if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11643  lt_unset=unset
11644else
11645  lt_unset=false
11646fi
11647
11648
11649
11650
11651
11652# test EBCDIC or ASCII
11653case `echo X|tr X '\101'` in
11654 A) # ASCII based system
11655    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11656  lt_SP2NL='tr \040 \012'
11657  lt_NL2SP='tr \015\012 \040\040'
11658  ;;
11659 *) # EBCDIC based system
11660  lt_SP2NL='tr \100 \n'
11661  lt_NL2SP='tr \r\n \100\100'
11662  ;;
11663esac
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11674$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11675if ${lt_cv_to_host_file_cmd+:} false; then :
11676  $as_echo_n "(cached) " >&6
11677else
11678  case $host in
11679  *-*-mingw* )
11680    case $build in
11681      *-*-mingw* ) # actually msys
11682        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11683        ;;
11684      *-*-cygwin* )
11685        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11686        ;;
11687      * ) # otherwise, assume *nix
11688        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11689        ;;
11690    esac
11691    ;;
11692  *-*-cygwin* )
11693    case $build in
11694      *-*-mingw* ) # actually msys
11695        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11696        ;;
11697      *-*-cygwin* )
11698        lt_cv_to_host_file_cmd=func_convert_file_noop
11699        ;;
11700      * ) # otherwise, assume *nix
11701        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11702        ;;
11703    esac
11704    ;;
11705  * ) # unhandled hosts (and "normal" native builds)
11706    lt_cv_to_host_file_cmd=func_convert_file_noop
11707    ;;
11708esac
11709
11710fi
11711
11712to_host_file_cmd=$lt_cv_to_host_file_cmd
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11714$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11715
11716
11717
11718
11719
11720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11721$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11722if ${lt_cv_to_tool_file_cmd+:} false; then :
11723  $as_echo_n "(cached) " >&6
11724else
11725  #assume ordinary cross tools, or native build.
11726lt_cv_to_tool_file_cmd=func_convert_file_noop
11727case $host in
11728  *-*-mingw* )
11729    case $build in
11730      *-*-mingw* ) # actually msys
11731        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11732        ;;
11733    esac
11734    ;;
11735esac
11736
11737fi
11738
11739to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11741$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11742
11743
11744
11745
11746
11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11748$as_echo_n "checking for $LD option to reload object files... " >&6; }
11749if ${lt_cv_ld_reload_flag+:} false; then :
11750  $as_echo_n "(cached) " >&6
11751else
11752  lt_cv_ld_reload_flag='-r'
11753fi
11754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11755$as_echo "$lt_cv_ld_reload_flag" >&6; }
11756reload_flag=$lt_cv_ld_reload_flag
11757case $reload_flag in
11758"" | " "*) ;;
11759*) reload_flag=" $reload_flag" ;;
11760esac
11761reload_cmds='$LD$reload_flag -o $output$reload_objs'
11762case $host_os in
11763  cygwin* | mingw* | pw32* | cegcc*)
11764    if test yes != "$GCC"; then
11765      reload_cmds=false
11766    fi
11767    ;;
11768  darwin*)
11769    if test yes = "$GCC"; then
11770      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11771    else
11772      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11773    fi
11774    ;;
11775esac
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785if test -n "$ac_tool_prefix"; then
11786  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11787set dummy ${ac_tool_prefix}objdump; ac_word=$2
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789$as_echo_n "checking for $ac_word... " >&6; }
11790if ${ac_cv_prog_OBJDUMP+:} false; then :
11791  $as_echo_n "(cached) " >&6
11792else
11793  if test -n "$OBJDUMP"; then
11794  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799  IFS=$as_save_IFS
11800  test -z "$as_dir" && as_dir=.
11801    for ac_exec_ext in '' $ac_executable_extensions; do
11802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805    break 2
11806  fi
11807done
11808  done
11809IFS=$as_save_IFS
11810
11811fi
11812fi
11813OBJDUMP=$ac_cv_prog_OBJDUMP
11814if test -n "$OBJDUMP"; then
11815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11816$as_echo "$OBJDUMP" >&6; }
11817else
11818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819$as_echo "no" >&6; }
11820fi
11821
11822
11823fi
11824if test -z "$ac_cv_prog_OBJDUMP"; then
11825  ac_ct_OBJDUMP=$OBJDUMP
11826  # Extract the first word of "objdump", so it can be a program name with args.
11827set dummy objdump; ac_word=$2
11828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11829$as_echo_n "checking for $ac_word... " >&6; }
11830if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11831  $as_echo_n "(cached) " >&6
11832else
11833  if test -n "$ac_ct_OBJDUMP"; then
11834  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11835else
11836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11837for as_dir in $PATH
11838do
11839  IFS=$as_save_IFS
11840  test -z "$as_dir" && as_dir=.
11841    for ac_exec_ext in '' $ac_executable_extensions; do
11842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11843    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11845    break 2
11846  fi
11847done
11848  done
11849IFS=$as_save_IFS
11850
11851fi
11852fi
11853ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11854if test -n "$ac_ct_OBJDUMP"; then
11855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11856$as_echo "$ac_ct_OBJDUMP" >&6; }
11857else
11858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11859$as_echo "no" >&6; }
11860fi
11861
11862  if test "x$ac_ct_OBJDUMP" = x; then
11863    OBJDUMP="false"
11864  else
11865    case $cross_compiling:$ac_tool_warned in
11866yes:)
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11869ac_tool_warned=yes ;;
11870esac
11871    OBJDUMP=$ac_ct_OBJDUMP
11872  fi
11873else
11874  OBJDUMP="$ac_cv_prog_OBJDUMP"
11875fi
11876
11877test -z "$OBJDUMP" && OBJDUMP=objdump
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11888$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11889if ${lt_cv_deplibs_check_method+:} false; then :
11890  $as_echo_n "(cached) " >&6
11891else
11892  lt_cv_file_magic_cmd='$MAGIC_CMD'
11893lt_cv_file_magic_test_file=
11894lt_cv_deplibs_check_method='unknown'
11895# Need to set the preceding variable on all platforms that support
11896# interlibrary dependencies.
11897# 'none' -- dependencies not supported.
11898# 'unknown' -- same as none, but documents that we really don't know.
11899# 'pass_all' -- all dependencies passed with no checks.
11900# 'test_compile' -- check by making test program.
11901# 'file_magic [[regex]]' -- check by looking for files in library path
11902# that responds to the $file_magic_cmd with a given extended regex.
11903# If you have 'file' or equivalent on your system and you're not sure
11904# whether 'pass_all' will *always* work, you probably want this one.
11905
11906case $host_os in
11907aix[4-9]*)
11908  lt_cv_deplibs_check_method=pass_all
11909  ;;
11910
11911beos*)
11912  lt_cv_deplibs_check_method=pass_all
11913  ;;
11914
11915bsdi[45]*)
11916  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11917  lt_cv_file_magic_cmd='/usr/bin/file -L'
11918  lt_cv_file_magic_test_file=/shlib/libc.so
11919  ;;
11920
11921cygwin*)
11922  # func_win32_libid is a shell function defined in ltmain.sh
11923  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11924  lt_cv_file_magic_cmd='func_win32_libid'
11925  ;;
11926
11927mingw* | pw32*)
11928  # Base MSYS/MinGW do not provide the 'file' command needed by
11929  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11930  # unless we find 'file', for example because we are cross-compiling.
11931  if ( file / ) >/dev/null 2>&1; then
11932    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11933    lt_cv_file_magic_cmd='func_win32_libid'
11934  else
11935    # Keep this pattern in sync with the one in func_win32_libid.
11936    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11937    lt_cv_file_magic_cmd='$OBJDUMP -f'
11938  fi
11939  ;;
11940
11941cegcc*)
11942  # use the weaker test based on 'objdump'. See mingw*.
11943  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11944  lt_cv_file_magic_cmd='$OBJDUMP -f'
11945  ;;
11946
11947darwin* | rhapsody*)
11948  lt_cv_deplibs_check_method=pass_all
11949  ;;
11950
11951freebsd* | dragonfly*)
11952  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11953    case $host_cpu in
11954    i*86 )
11955      # Not sure whether the presence of OpenBSD here was a mistake.
11956      # Let's accept both of them until this is cleared up.
11957      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11958      lt_cv_file_magic_cmd=/usr/bin/file
11959      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11960      ;;
11961    esac
11962  else
11963    lt_cv_deplibs_check_method=pass_all
11964  fi
11965  ;;
11966
11967haiku*)
11968  lt_cv_deplibs_check_method=pass_all
11969  ;;
11970
11971hpux10.20* | hpux11*)
11972  lt_cv_file_magic_cmd=/usr/bin/file
11973  case $host_cpu in
11974  ia64*)
11975    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11976    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11977    ;;
11978  hppa*64*)
11979    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]'
11980    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11981    ;;
11982  *)
11983    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11984    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11985    ;;
11986  esac
11987  ;;
11988
11989interix[3-9]*)
11990  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11991  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11992  ;;
11993
11994irix5* | irix6* | nonstopux*)
11995  case $LD in
11996  *-32|*"-32 ") libmagic=32-bit;;
11997  *-n32|*"-n32 ") libmagic=N32;;
11998  *-64|*"-64 ") libmagic=64-bit;;
11999  *) libmagic=never-match;;
12000  esac
12001  lt_cv_deplibs_check_method=pass_all
12002  ;;
12003
12004# This must be glibc/ELF.
12005linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12006  lt_cv_deplibs_check_method=pass_all
12007  ;;
12008
12009netbsd* | netbsdelf*-gnu)
12010  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12012  else
12013    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12014  fi
12015  ;;
12016
12017newos6*)
12018  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12019  lt_cv_file_magic_cmd=/usr/bin/file
12020  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12021  ;;
12022
12023*nto* | *qnx*)
12024  lt_cv_deplibs_check_method=pass_all
12025  ;;
12026
12027openbsd* | bitrig*)
12028  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12030  else
12031    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12032  fi
12033  ;;
12034
12035osf3* | osf4* | osf5*)
12036  lt_cv_deplibs_check_method=pass_all
12037  ;;
12038
12039rdos*)
12040  lt_cv_deplibs_check_method=pass_all
12041  ;;
12042
12043solaris*)
12044  lt_cv_deplibs_check_method=pass_all
12045  ;;
12046
12047sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12048  lt_cv_deplibs_check_method=pass_all
12049  ;;
12050
12051sysv4 | sysv4.3*)
12052  case $host_vendor in
12053  motorola)
12054    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]'
12055    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12056    ;;
12057  ncr)
12058    lt_cv_deplibs_check_method=pass_all
12059    ;;
12060  sequent)
12061    lt_cv_file_magic_cmd='/bin/file'
12062    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12063    ;;
12064  sni)
12065    lt_cv_file_magic_cmd='/bin/file'
12066    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12067    lt_cv_file_magic_test_file=/lib/libc.so
12068    ;;
12069  siemens)
12070    lt_cv_deplibs_check_method=pass_all
12071    ;;
12072  pc)
12073    lt_cv_deplibs_check_method=pass_all
12074    ;;
12075  esac
12076  ;;
12077
12078tpf*)
12079  lt_cv_deplibs_check_method=pass_all
12080  ;;
12081os2*)
12082  lt_cv_deplibs_check_method=pass_all
12083  ;;
12084esac
12085
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12088$as_echo "$lt_cv_deplibs_check_method" >&6; }
12089
12090file_magic_glob=
12091want_nocaseglob=no
12092if test "$build" = "$host"; then
12093  case $host_os in
12094  mingw* | pw32*)
12095    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12096      want_nocaseglob=yes
12097    else
12098      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12099    fi
12100    ;;
12101  esac
12102fi
12103
12104file_magic_cmd=$lt_cv_file_magic_cmd
12105deplibs_check_method=$lt_cv_deplibs_check_method
12106test -z "$deplibs_check_method" && deplibs_check_method=unknown
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129if test -n "$ac_tool_prefix"; then
12130  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12131set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if ${ac_cv_prog_DLLTOOL+:} false; then :
12135  $as_echo_n "(cached) " >&6
12136else
12137  if test -n "$DLLTOOL"; then
12138  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12139else
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143  IFS=$as_save_IFS
12144  test -z "$as_dir" && as_dir=.
12145    for ac_exec_ext in '' $ac_executable_extensions; do
12146  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12147    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12149    break 2
12150  fi
12151done
12152  done
12153IFS=$as_save_IFS
12154
12155fi
12156fi
12157DLLTOOL=$ac_cv_prog_DLLTOOL
12158if test -n "$DLLTOOL"; then
12159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12160$as_echo "$DLLTOOL" >&6; }
12161else
12162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
12164fi
12165
12166
12167fi
12168if test -z "$ac_cv_prog_DLLTOOL"; then
12169  ac_ct_DLLTOOL=$DLLTOOL
12170  # Extract the first word of "dlltool", so it can be a program name with args.
12171set dummy dlltool; ac_word=$2
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
12174if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12175  $as_echo_n "(cached) " >&6
12176else
12177  if test -n "$ac_ct_DLLTOOL"; then
12178  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183  IFS=$as_save_IFS
12184  test -z "$as_dir" && as_dir=.
12185    for ac_exec_ext in '' $ac_executable_extensions; do
12186  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12187    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12189    break 2
12190  fi
12191done
12192  done
12193IFS=$as_save_IFS
12194
12195fi
12196fi
12197ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12198if test -n "$ac_ct_DLLTOOL"; then
12199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12200$as_echo "$ac_ct_DLLTOOL" >&6; }
12201else
12202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
12204fi
12205
12206  if test "x$ac_ct_DLLTOOL" = x; then
12207    DLLTOOL="false"
12208  else
12209    case $cross_compiling:$ac_tool_warned in
12210yes:)
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12213ac_tool_warned=yes ;;
12214esac
12215    DLLTOOL=$ac_ct_DLLTOOL
12216  fi
12217else
12218  DLLTOOL="$ac_cv_prog_DLLTOOL"
12219fi
12220
12221test -z "$DLLTOOL" && DLLTOOL=dlltool
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12233$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12234if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12235  $as_echo_n "(cached) " >&6
12236else
12237  lt_cv_sharedlib_from_linklib_cmd='unknown'
12238
12239case $host_os in
12240cygwin* | mingw* | pw32* | cegcc*)
12241  # two different shell functions defined in ltmain.sh;
12242  # decide which one to use based on capabilities of $DLLTOOL
12243  case `$DLLTOOL --help 2>&1` in
12244  *--identify-strict*)
12245    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12246    ;;
12247  *)
12248    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12249    ;;
12250  esac
12251  ;;
12252*)
12253  # fallback: assume linklib IS sharedlib
12254  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12255  ;;
12256esac
12257
12258fi
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12260$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12261sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12262test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12263
12264
12265
12266
12267
12268
12269
12270if test -n "$ac_tool_prefix"; then
12271  for ac_prog in ar
12272  do
12273    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12274set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
12277if ${ac_cv_prog_AR+:} false; then :
12278  $as_echo_n "(cached) " >&6
12279else
12280  if test -n "$AR"; then
12281  ac_cv_prog_AR="$AR" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286  IFS=$as_save_IFS
12287  test -z "$as_dir" && as_dir=.
12288    for ac_exec_ext in '' $ac_executable_extensions; do
12289  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12290    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12291    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292    break 2
12293  fi
12294done
12295  done
12296IFS=$as_save_IFS
12297
12298fi
12299fi
12300AR=$ac_cv_prog_AR
12301if test -n "$AR"; then
12302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12303$as_echo "$AR" >&6; }
12304else
12305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307fi
12308
12309
12310    test -n "$AR" && break
12311  done
12312fi
12313if test -z "$AR"; then
12314  ac_ct_AR=$AR
12315  for ac_prog in ar
12316do
12317  # Extract the first word of "$ac_prog", so it can be a program name with args.
12318set dummy $ac_prog; ac_word=$2
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
12321if ${ac_cv_prog_ac_ct_AR+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  if test -n "$ac_ct_AR"; then
12325  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12326else
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330  IFS=$as_save_IFS
12331  test -z "$as_dir" && as_dir=.
12332    for ac_exec_ext in '' $ac_executable_extensions; do
12333  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334    ac_cv_prog_ac_ct_AR="$ac_prog"
12335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336    break 2
12337  fi
12338done
12339  done
12340IFS=$as_save_IFS
12341
12342fi
12343fi
12344ac_ct_AR=$ac_cv_prog_ac_ct_AR
12345if test -n "$ac_ct_AR"; then
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12347$as_echo "$ac_ct_AR" >&6; }
12348else
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351fi
12352
12353
12354  test -n "$ac_ct_AR" && break
12355done
12356
12357  if test "x$ac_ct_AR" = x; then
12358    AR="false"
12359  else
12360    case $cross_compiling:$ac_tool_warned in
12361yes:)
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12364ac_tool_warned=yes ;;
12365esac
12366    AR=$ac_ct_AR
12367  fi
12368fi
12369
12370: ${AR=ar}
12371: ${AR_FLAGS=cru}
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12384$as_echo_n "checking for archiver @FILE support... " >&6; }
12385if ${lt_cv_ar_at_file+:} false; then :
12386  $as_echo_n "(cached) " >&6
12387else
12388  lt_cv_ar_at_file=no
12389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390/* end confdefs.h.  */
12391
12392int
12393main ()
12394{
12395
12396  ;
12397  return 0;
12398}
12399_ACEOF
12400if ac_fn_c_try_compile "$LINENO"; then :
12401  echo conftest.$ac_objext > conftest.lst
12402      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12403      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12404  (eval $lt_ar_try) 2>&5
12405  ac_status=$?
12406  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407  test $ac_status = 0; }
12408      if test 0 -eq "$ac_status"; then
12409	# Ensure the archiver fails upon bogus file names.
12410	rm -f conftest.$ac_objext libconftest.a
12411	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12412  (eval $lt_ar_try) 2>&5
12413  ac_status=$?
12414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12415  test $ac_status = 0; }
12416	if test 0 -ne "$ac_status"; then
12417          lt_cv_ar_at_file=@
12418        fi
12419      fi
12420      rm -f conftest.* libconftest.a
12421
12422fi
12423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12424
12425fi
12426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12427$as_echo "$lt_cv_ar_at_file" >&6; }
12428
12429if test no = "$lt_cv_ar_at_file"; then
12430  archiver_list_spec=
12431else
12432  archiver_list_spec=$lt_cv_ar_at_file
12433fi
12434
12435
12436
12437
12438
12439
12440
12441if test -n "$ac_tool_prefix"; then
12442  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12443set dummy ${ac_tool_prefix}strip; ac_word=$2
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445$as_echo_n "checking for $ac_word... " >&6; }
12446if ${ac_cv_prog_STRIP+:} false; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449  if test -n "$STRIP"; then
12450  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12451else
12452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453for as_dir in $PATH
12454do
12455  IFS=$as_save_IFS
12456  test -z "$as_dir" && as_dir=.
12457    for ac_exec_ext in '' $ac_executable_extensions; do
12458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12459    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461    break 2
12462  fi
12463done
12464  done
12465IFS=$as_save_IFS
12466
12467fi
12468fi
12469STRIP=$ac_cv_prog_STRIP
12470if test -n "$STRIP"; then
12471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12472$as_echo "$STRIP" >&6; }
12473else
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476fi
12477
12478
12479fi
12480if test -z "$ac_cv_prog_STRIP"; then
12481  ac_ct_STRIP=$STRIP
12482  # Extract the first word of "strip", so it can be a program name with args.
12483set dummy strip; ac_word=$2
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
12486if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  if test -n "$ac_ct_STRIP"; then
12490  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495  IFS=$as_save_IFS
12496  test -z "$as_dir" && as_dir=.
12497    for ac_exec_ext in '' $ac_executable_extensions; do
12498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499    ac_cv_prog_ac_ct_STRIP="strip"
12500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501    break 2
12502  fi
12503done
12504  done
12505IFS=$as_save_IFS
12506
12507fi
12508fi
12509ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12510if test -n "$ac_ct_STRIP"; then
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12512$as_echo "$ac_ct_STRIP" >&6; }
12513else
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
12516fi
12517
12518  if test "x$ac_ct_STRIP" = x; then
12519    STRIP=":"
12520  else
12521    case $cross_compiling:$ac_tool_warned in
12522yes:)
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12525ac_tool_warned=yes ;;
12526esac
12527    STRIP=$ac_ct_STRIP
12528  fi
12529else
12530  STRIP="$ac_cv_prog_STRIP"
12531fi
12532
12533test -z "$STRIP" && STRIP=:
12534
12535
12536
12537
12538
12539
12540if test -n "$ac_tool_prefix"; then
12541  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12542set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if ${ac_cv_prog_RANLIB+:} false; then :
12546  $as_echo_n "(cached) " >&6
12547else
12548  if test -n "$RANLIB"; then
12549  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12550else
12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552for as_dir in $PATH
12553do
12554  IFS=$as_save_IFS
12555  test -z "$as_dir" && as_dir=.
12556    for ac_exec_ext in '' $ac_executable_extensions; do
12557  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12559    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12560    break 2
12561  fi
12562done
12563  done
12564IFS=$as_save_IFS
12565
12566fi
12567fi
12568RANLIB=$ac_cv_prog_RANLIB
12569if test -n "$RANLIB"; then
12570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12571$as_echo "$RANLIB" >&6; }
12572else
12573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577
12578fi
12579if test -z "$ac_cv_prog_RANLIB"; then
12580  ac_ct_RANLIB=$RANLIB
12581  # Extract the first word of "ranlib", so it can be a program name with args.
12582set dummy ranlib; ac_word=$2
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12586  $as_echo_n "(cached) " >&6
12587else
12588  if test -n "$ac_ct_RANLIB"; then
12589  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12590else
12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592for as_dir in $PATH
12593do
12594  IFS=$as_save_IFS
12595  test -z "$as_dir" && as_dir=.
12596    for ac_exec_ext in '' $ac_executable_extensions; do
12597  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12598    ac_cv_prog_ac_ct_RANLIB="ranlib"
12599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12600    break 2
12601  fi
12602done
12603  done
12604IFS=$as_save_IFS
12605
12606fi
12607fi
12608ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12609if test -n "$ac_ct_RANLIB"; then
12610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12611$as_echo "$ac_ct_RANLIB" >&6; }
12612else
12613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
12615fi
12616
12617  if test "x$ac_ct_RANLIB" = x; then
12618    RANLIB=":"
12619  else
12620    case $cross_compiling:$ac_tool_warned in
12621yes:)
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12624ac_tool_warned=yes ;;
12625esac
12626    RANLIB=$ac_ct_RANLIB
12627  fi
12628else
12629  RANLIB="$ac_cv_prog_RANLIB"
12630fi
12631
12632test -z "$RANLIB" && RANLIB=:
12633
12634
12635
12636
12637
12638
12639# Determine commands to create old-style static archives.
12640old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12641old_postinstall_cmds='chmod 644 $oldlib'
12642old_postuninstall_cmds=
12643
12644if test -n "$RANLIB"; then
12645  case $host_os in
12646  bitrig* | openbsd*)
12647    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12648    ;;
12649  *)
12650    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12651    ;;
12652  esac
12653  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12654fi
12655
12656case $host_os in
12657  darwin*)
12658    lock_old_archive_extraction=yes ;;
12659  *)
12660    lock_old_archive_extraction=no ;;
12661esac
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701# If no C compiler was specified, use CC.
12702LTCC=${LTCC-"$CC"}
12703
12704# If no C compiler flags were specified, use CFLAGS.
12705LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12706
12707# Allow CC to be a program name with arguments.
12708compiler=$CC
12709
12710
12711# Check for command to grab the raw symbol name followed by C symbol from nm.
12712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12713$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12714if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12715  $as_echo_n "(cached) " >&6
12716else
12717
12718# These are sane defaults that work on at least a few old systems.
12719# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12720
12721# Character class describing NM global symbol codes.
12722symcode='[BCDEGRST]'
12723
12724# Regexp to match symbols that can be accessed directly from C.
12725sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12726
12727# Define system-specific variables.
12728case $host_os in
12729aix*)
12730  symcode='[BCDT]'
12731  ;;
12732cygwin* | mingw* | pw32* | cegcc*)
12733  symcode='[ABCDGISTW]'
12734  ;;
12735hpux*)
12736  if test ia64 = "$host_cpu"; then
12737    symcode='[ABCDEGRST]'
12738  fi
12739  ;;
12740irix* | nonstopux*)
12741  symcode='[BCDEGRST]'
12742  ;;
12743osf*)
12744  symcode='[BCDEGQRST]'
12745  ;;
12746solaris*)
12747  symcode='[BDRT]'
12748  ;;
12749sco3.2v5*)
12750  symcode='[DT]'
12751  ;;
12752sysv4.2uw2*)
12753  symcode='[DT]'
12754  ;;
12755sysv5* | sco5v6* | unixware* | OpenUNIX*)
12756  symcode='[ABDT]'
12757  ;;
12758sysv4)
12759  symcode='[DFNSTU]'
12760  ;;
12761esac
12762
12763# If we're using GNU nm, then use its standard symbol codes.
12764case `$NM -V 2>&1` in
12765*GNU* | *'with BFD'*)
12766  symcode='[ABCDGIRSTW]' ;;
12767esac
12768
12769if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12770  # Gets list of data symbols to import.
12771  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12772  # Adjust the below global symbol transforms to fixup imported variables.
12773  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12774  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12775  lt_c_name_lib_hook="\
12776  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12777  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12778else
12779  # Disable hooks by default.
12780  lt_cv_sys_global_symbol_to_import=
12781  lt_cdecl_hook=
12782  lt_c_name_hook=
12783  lt_c_name_lib_hook=
12784fi
12785
12786# Transform an extracted symbol line into a proper C declaration.
12787# Some systems (esp. on ia64) link data and code symbols differently,
12788# so use this general approach.
12789lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12790$lt_cdecl_hook\
12791" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12792" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12793
12794# Transform an extracted symbol line into symbol name and symbol address
12795lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12796$lt_c_name_hook\
12797" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12798" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12799
12800# Transform an extracted symbol line into symbol name with lib prefix and
12801# symbol address.
12802lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12803$lt_c_name_lib_hook\
12804" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12805" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12806" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12807
12808# Handle CRLF in mingw tool chain
12809opt_cr=
12810case $build_os in
12811mingw*)
12812  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12813  ;;
12814esac
12815
12816# Try without a prefix underscore, then with it.
12817for ac_symprfx in "" "_"; do
12818
12819  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12820  symxfrm="\\1 $ac_symprfx\\2 \\2"
12821
12822  # Write the raw and C identifiers.
12823  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12824    # Fake it for dumpbin and say T for any non-static function,
12825    # D for any global variable and I for any imported variable.
12826    # Also find C++ and __fastcall symbols from MSVC++,
12827    # which start with @ or ?.
12828    lt_cv_sys_global_symbol_pipe="$AWK '"\
12829"     {last_section=section; section=\$ 3};"\
12830"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12831"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12832"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12833"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12834"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12835"     \$ 0!~/External *\|/{next};"\
12836"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12837"     {if(hide[section]) next};"\
12838"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12839"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12840"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12841"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12842"     ' prfx=^$ac_symprfx"
12843  else
12844    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12845  fi
12846  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12847
12848  # Check to see that the pipe works correctly.
12849  pipe_works=no
12850
12851  rm -f conftest*
12852  cat > conftest.$ac_ext <<_LT_EOF
12853#ifdef __cplusplus
12854extern "C" {
12855#endif
12856char nm_test_var;
12857void nm_test_func(void);
12858void nm_test_func(void){}
12859#ifdef __cplusplus
12860}
12861#endif
12862int main(){nm_test_var='a';nm_test_func();return(0);}
12863_LT_EOF
12864
12865  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12866  (eval $ac_compile) 2>&5
12867  ac_status=$?
12868  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12869  test $ac_status = 0; }; then
12870    # Now try to grab the symbols.
12871    nlist=conftest.nm
12872    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12873  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12874  ac_status=$?
12875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12876  test $ac_status = 0; } && test -s "$nlist"; then
12877      # Try sorting and uniquifying the output.
12878      if sort "$nlist" | uniq > "$nlist"T; then
12879	mv -f "$nlist"T "$nlist"
12880      else
12881	rm -f "$nlist"T
12882      fi
12883
12884      # Make sure that we snagged all the symbols we need.
12885      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12886	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12887	  cat <<_LT_EOF > conftest.$ac_ext
12888/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12889#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12890/* DATA imports from DLLs on WIN32 can't be const, because runtime
12891   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12892# define LT_DLSYM_CONST
12893#elif defined __osf__
12894/* This system does not cope well with relocations in const data.  */
12895# define LT_DLSYM_CONST
12896#else
12897# define LT_DLSYM_CONST const
12898#endif
12899
12900#ifdef __cplusplus
12901extern "C" {
12902#endif
12903
12904_LT_EOF
12905	  # Now generate the symbol file.
12906	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12907
12908	  cat <<_LT_EOF >> conftest.$ac_ext
12909
12910/* The mapping between symbol names and symbols.  */
12911LT_DLSYM_CONST struct {
12912  const char *name;
12913  void       *address;
12914}
12915lt__PROGRAM__LTX_preloaded_symbols[] =
12916{
12917  { "@PROGRAM@", (void *) 0 },
12918_LT_EOF
12919	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12920	  cat <<\_LT_EOF >> conftest.$ac_ext
12921  {0, (void *) 0}
12922};
12923
12924/* This works around a problem in FreeBSD linker */
12925#ifdef FREEBSD_WORKAROUND
12926static const void *lt_preloaded_setup() {
12927  return lt__PROGRAM__LTX_preloaded_symbols;
12928}
12929#endif
12930
12931#ifdef __cplusplus
12932}
12933#endif
12934_LT_EOF
12935	  # Now try linking the two files.
12936	  mv conftest.$ac_objext conftstm.$ac_objext
12937	  lt_globsym_save_LIBS=$LIBS
12938	  lt_globsym_save_CFLAGS=$CFLAGS
12939	  LIBS=conftstm.$ac_objext
12940	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12941	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942  (eval $ac_link) 2>&5
12943  ac_status=$?
12944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12946	    pipe_works=yes
12947	  fi
12948	  LIBS=$lt_globsym_save_LIBS
12949	  CFLAGS=$lt_globsym_save_CFLAGS
12950	else
12951	  echo "cannot find nm_test_func in $nlist" >&5
12952	fi
12953      else
12954	echo "cannot find nm_test_var in $nlist" >&5
12955      fi
12956    else
12957      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12958    fi
12959  else
12960    echo "$progname: failed program was:" >&5
12961    cat conftest.$ac_ext >&5
12962  fi
12963  rm -rf conftest* conftst*
12964
12965  # Do not use the global_symbol_pipe unless it works.
12966  if test yes = "$pipe_works"; then
12967    break
12968  else
12969    lt_cv_sys_global_symbol_pipe=
12970  fi
12971done
12972
12973fi
12974
12975if test -z "$lt_cv_sys_global_symbol_pipe"; then
12976  lt_cv_sys_global_symbol_to_cdecl=
12977fi
12978if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12980$as_echo "failed" >&6; }
12981else
12982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12983$as_echo "ok" >&6; }
12984fi
12985
12986# Response file support.
12987if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12988  nm_file_list_spec='@'
12989elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12990  nm_file_list_spec='@'
12991fi
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13030$as_echo_n "checking for sysroot... " >&6; }
13031
13032# Check whether --with-sysroot was given.
13033if test "${with_sysroot+set}" = set; then :
13034  withval=$with_sysroot;
13035else
13036  with_sysroot=no
13037fi
13038
13039
13040lt_sysroot=
13041case $with_sysroot in #(
13042 yes)
13043   if test yes = "$GCC"; then
13044     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13045   fi
13046   ;; #(
13047 /*)
13048   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13049   ;; #(
13050 no|'')
13051   ;; #(
13052 *)
13053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13054$as_echo "$with_sysroot" >&6; }
13055   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13056   ;;
13057esac
13058
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13060$as_echo "${lt_sysroot:-no}" >&6; }
13061
13062
13063
13064
13065
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13067$as_echo_n "checking for a working dd... " >&6; }
13068if ${ac_cv_path_lt_DD+:} false; then :
13069  $as_echo_n "(cached) " >&6
13070else
13071  printf 0123456789abcdef0123456789abcdef >conftest.i
13072cat conftest.i conftest.i >conftest2.i
13073: ${lt_DD:=$DD}
13074if test -z "$lt_DD"; then
13075  ac_path_lt_DD_found=false
13076  # Loop through the user's path and test for each of PROGNAME-LIST
13077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078for as_dir in $PATH
13079do
13080  IFS=$as_save_IFS
13081  test -z "$as_dir" && as_dir=.
13082    for ac_prog in dd; do
13083    for ac_exec_ext in '' $ac_executable_extensions; do
13084      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13085      as_fn_executable_p "$ac_path_lt_DD" || continue
13086if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13087  cmp -s conftest.i conftest.out \
13088  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13089fi
13090      $ac_path_lt_DD_found && break 3
13091    done
13092  done
13093  done
13094IFS=$as_save_IFS
13095  if test -z "$ac_cv_path_lt_DD"; then
13096    :
13097  fi
13098else
13099  ac_cv_path_lt_DD=$lt_DD
13100fi
13101
13102rm -f conftest.i conftest2.i conftest.out
13103fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13105$as_echo "$ac_cv_path_lt_DD" >&6; }
13106
13107
13108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13109$as_echo_n "checking how to truncate binary pipes... " >&6; }
13110if ${lt_cv_truncate_bin+:} false; then :
13111  $as_echo_n "(cached) " >&6
13112else
13113  printf 0123456789abcdef0123456789abcdef >conftest.i
13114cat conftest.i conftest.i >conftest2.i
13115lt_cv_truncate_bin=
13116if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13117  cmp -s conftest.i conftest.out \
13118  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13119fi
13120rm -f conftest.i conftest2.i conftest.out
13121test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13122fi
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13124$as_echo "$lt_cv_truncate_bin" >&6; }
13125
13126
13127
13128
13129
13130
13131
13132# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13133func_cc_basename ()
13134{
13135    for cc_temp in $*""; do
13136      case $cc_temp in
13137        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13138        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13139        \-*) ;;
13140        *) break;;
13141      esac
13142    done
13143    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13144}
13145
13146# Check whether --enable-libtool-lock was given.
13147if test "${enable_libtool_lock+set}" = set; then :
13148  enableval=$enable_libtool_lock;
13149fi
13150
13151test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13152
13153# Some flags need to be propagated to the compiler or linker for good
13154# libtool support.
13155case $host in
13156ia64-*-hpux*)
13157  # Find out what ABI is being produced by ac_compile, and set mode
13158  # options accordingly.
13159  echo 'int i;' > conftest.$ac_ext
13160  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161  (eval $ac_compile) 2>&5
13162  ac_status=$?
13163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164  test $ac_status = 0; }; then
13165    case `/usr/bin/file conftest.$ac_objext` in
13166      *ELF-32*)
13167	HPUX_IA64_MODE=32
13168	;;
13169      *ELF-64*)
13170	HPUX_IA64_MODE=64
13171	;;
13172    esac
13173  fi
13174  rm -rf conftest*
13175  ;;
13176*-*-irix6*)
13177  # Find out what ABI is being produced by ac_compile, and set linker
13178  # options accordingly.
13179  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13180  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13181  (eval $ac_compile) 2>&5
13182  ac_status=$?
13183  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184  test $ac_status = 0; }; then
13185    if test yes = "$lt_cv_prog_gnu_ld"; then
13186      case `/usr/bin/file conftest.$ac_objext` in
13187	*32-bit*)
13188	  LD="${LD-ld} -melf32bsmip"
13189	  ;;
13190	*N32*)
13191	  LD="${LD-ld} -melf32bmipn32"
13192	  ;;
13193	*64-bit*)
13194	  LD="${LD-ld} -melf64bmip"
13195	;;
13196      esac
13197    else
13198      case `/usr/bin/file conftest.$ac_objext` in
13199	*32-bit*)
13200	  LD="${LD-ld} -32"
13201	  ;;
13202	*N32*)
13203	  LD="${LD-ld} -n32"
13204	  ;;
13205	*64-bit*)
13206	  LD="${LD-ld} -64"
13207	  ;;
13208      esac
13209    fi
13210  fi
13211  rm -rf conftest*
13212  ;;
13213
13214mips64*-*linux*)
13215  # Find out what ABI is being produced by ac_compile, and set linker
13216  # options accordingly.
13217  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13218  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13219  (eval $ac_compile) 2>&5
13220  ac_status=$?
13221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13222  test $ac_status = 0; }; then
13223    emul=elf
13224    case `/usr/bin/file conftest.$ac_objext` in
13225      *32-bit*)
13226	emul="${emul}32"
13227	;;
13228      *64-bit*)
13229	emul="${emul}64"
13230	;;
13231    esac
13232    case `/usr/bin/file conftest.$ac_objext` in
13233      *MSB*)
13234	emul="${emul}btsmip"
13235	;;
13236      *LSB*)
13237	emul="${emul}ltsmip"
13238	;;
13239    esac
13240    case `/usr/bin/file conftest.$ac_objext` in
13241      *N32*)
13242	emul="${emul}n32"
13243	;;
13244    esac
13245    LD="${LD-ld} -m $emul"
13246  fi
13247  rm -rf conftest*
13248  ;;
13249
13250x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13251s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13252  # Find out what ABI is being produced by ac_compile, and set linker
13253  # options accordingly.  Note that the listed cases only cover the
13254  # situations where additional linker options are needed (such as when
13255  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13256  # vice versa); the common cases where no linker options are needed do
13257  # not appear in the list.
13258  echo 'int i;' > conftest.$ac_ext
13259  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13260  (eval $ac_compile) 2>&5
13261  ac_status=$?
13262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263  test $ac_status = 0; }; then
13264    case `/usr/bin/file conftest.o` in
13265      *32-bit*)
13266	case $host in
13267	  x86_64-*kfreebsd*-gnu)
13268	    LD="${LD-ld} -m elf_i386_fbsd"
13269	    ;;
13270	  x86_64-*linux*)
13271	    case `/usr/bin/file conftest.o` in
13272	      *x86-64*)
13273		LD="${LD-ld} -m elf32_x86_64"
13274		;;
13275	      *)
13276		LD="${LD-ld} -m elf_i386"
13277		;;
13278	    esac
13279	    ;;
13280	  powerpc64le-*linux*)
13281	    LD="${LD-ld} -m elf32lppclinux"
13282	    ;;
13283	  powerpc64-*linux*)
13284	    LD="${LD-ld} -m elf32ppclinux"
13285	    ;;
13286	  s390x-*linux*)
13287	    LD="${LD-ld} -m elf_s390"
13288	    ;;
13289	  sparc64-*linux*)
13290	    LD="${LD-ld} -m elf32_sparc"
13291	    ;;
13292	esac
13293	;;
13294      *64-bit*)
13295	case $host in
13296	  x86_64-*kfreebsd*-gnu)
13297	    LD="${LD-ld} -m elf_x86_64_fbsd"
13298	    ;;
13299	  x86_64-*linux*)
13300	    LD="${LD-ld} -m elf_x86_64"
13301	    ;;
13302	  powerpcle-*linux*)
13303	    LD="${LD-ld} -m elf64lppc"
13304	    ;;
13305	  powerpc-*linux*)
13306	    LD="${LD-ld} -m elf64ppc"
13307	    ;;
13308	  s390*-*linux*|s390*-*tpf*)
13309	    LD="${LD-ld} -m elf64_s390"
13310	    ;;
13311	  sparc*-*linux*)
13312	    LD="${LD-ld} -m elf64_sparc"
13313	    ;;
13314	esac
13315	;;
13316    esac
13317  fi
13318  rm -rf conftest*
13319  ;;
13320
13321*-*-sco3.2v5*)
13322  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13323  SAVE_CFLAGS=$CFLAGS
13324  CFLAGS="$CFLAGS -belf"
13325  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13326$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13327if ${lt_cv_cc_needs_belf+:} false; then :
13328  $as_echo_n "(cached) " >&6
13329else
13330  ac_ext=c
13331ac_cpp='$CPP $CPPFLAGS'
13332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13334ac_compiler_gnu=$ac_cv_c_compiler_gnu
13335
13336     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337/* end confdefs.h.  */
13338
13339int
13340main ()
13341{
13342
13343  ;
13344  return 0;
13345}
13346_ACEOF
13347if ac_fn_c_try_link "$LINENO"; then :
13348  lt_cv_cc_needs_belf=yes
13349else
13350  lt_cv_cc_needs_belf=no
13351fi
13352rm -f core conftest.err conftest.$ac_objext \
13353    conftest$ac_exeext conftest.$ac_ext
13354     ac_ext=c
13355ac_cpp='$CPP $CPPFLAGS'
13356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13358ac_compiler_gnu=$ac_cv_c_compiler_gnu
13359
13360fi
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13362$as_echo "$lt_cv_cc_needs_belf" >&6; }
13363  if test yes != "$lt_cv_cc_needs_belf"; then
13364    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13365    CFLAGS=$SAVE_CFLAGS
13366  fi
13367  ;;
13368*-*solaris*)
13369  # Find out what ABI is being produced by ac_compile, and set linker
13370  # options accordingly.
13371  echo 'int i;' > conftest.$ac_ext
13372  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13373  (eval $ac_compile) 2>&5
13374  ac_status=$?
13375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13376  test $ac_status = 0; }; then
13377    case `/usr/bin/file conftest.o` in
13378    *64-bit*)
13379      case $lt_cv_prog_gnu_ld in
13380      yes*)
13381        case $host in
13382        i?86-*-solaris*|x86_64-*-solaris*)
13383          LD="${LD-ld} -m elf_x86_64"
13384          ;;
13385        sparc*-*-solaris*)
13386          LD="${LD-ld} -m elf64_sparc"
13387          ;;
13388        esac
13389        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13390        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13391          LD=${LD-ld}_sol2
13392        fi
13393        ;;
13394      *)
13395	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13396	  LD="${LD-ld} -64"
13397	fi
13398	;;
13399      esac
13400      ;;
13401    esac
13402  fi
13403  rm -rf conftest*
13404  ;;
13405esac
13406
13407need_locks=$enable_libtool_lock
13408
13409if test -n "$ac_tool_prefix"; then
13410  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13411set dummy ${ac_tool_prefix}mt; ac_word=$2
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413$as_echo_n "checking for $ac_word... " >&6; }
13414if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13415  $as_echo_n "(cached) " >&6
13416else
13417  if test -n "$MANIFEST_TOOL"; then
13418  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13419else
13420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421for as_dir in $PATH
13422do
13423  IFS=$as_save_IFS
13424  test -z "$as_dir" && as_dir=.
13425    for ac_exec_ext in '' $ac_executable_extensions; do
13426  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13427    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13428    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429    break 2
13430  fi
13431done
13432  done
13433IFS=$as_save_IFS
13434
13435fi
13436fi
13437MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13438if test -n "$MANIFEST_TOOL"; then
13439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13440$as_echo "$MANIFEST_TOOL" >&6; }
13441else
13442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
13444fi
13445
13446
13447fi
13448if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13449  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13450  # Extract the first word of "mt", so it can be a program name with args.
13451set dummy mt; ac_word=$2
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13453$as_echo_n "checking for $ac_word... " >&6; }
13454if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13455  $as_echo_n "(cached) " >&6
13456else
13457  if test -n "$ac_ct_MANIFEST_TOOL"; then
13458  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13459else
13460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461for as_dir in $PATH
13462do
13463  IFS=$as_save_IFS
13464  test -z "$as_dir" && as_dir=.
13465    for ac_exec_ext in '' $ac_executable_extensions; do
13466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13467    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13469    break 2
13470  fi
13471done
13472  done
13473IFS=$as_save_IFS
13474
13475fi
13476fi
13477ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13478if test -n "$ac_ct_MANIFEST_TOOL"; then
13479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13480$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13481else
13482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
13484fi
13485
13486  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13487    MANIFEST_TOOL=":"
13488  else
13489    case $cross_compiling:$ac_tool_warned in
13490yes:)
13491{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13493ac_tool_warned=yes ;;
13494esac
13495    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13496  fi
13497else
13498  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13499fi
13500
13501test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13503$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13504if ${lt_cv_path_mainfest_tool+:} false; then :
13505  $as_echo_n "(cached) " >&6
13506else
13507  lt_cv_path_mainfest_tool=no
13508  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13509  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13510  cat conftest.err >&5
13511  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13512    lt_cv_path_mainfest_tool=yes
13513  fi
13514  rm -f conftest*
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13517$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13518if test yes != "$lt_cv_path_mainfest_tool"; then
13519  MANIFEST_TOOL=:
13520fi
13521
13522
13523
13524
13525
13526
13527  case $host_os in
13528    rhapsody* | darwin*)
13529    if test -n "$ac_tool_prefix"; then
13530  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13531set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13533$as_echo_n "checking for $ac_word... " >&6; }
13534if ${ac_cv_prog_DSYMUTIL+:} false; then :
13535  $as_echo_n "(cached) " >&6
13536else
13537  if test -n "$DSYMUTIL"; then
13538  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13539else
13540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13541for as_dir in $PATH
13542do
13543  IFS=$as_save_IFS
13544  test -z "$as_dir" && as_dir=.
13545    for ac_exec_ext in '' $ac_executable_extensions; do
13546  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13547    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13549    break 2
13550  fi
13551done
13552  done
13553IFS=$as_save_IFS
13554
13555fi
13556fi
13557DSYMUTIL=$ac_cv_prog_DSYMUTIL
13558if test -n "$DSYMUTIL"; then
13559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13560$as_echo "$DSYMUTIL" >&6; }
13561else
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13563$as_echo "no" >&6; }
13564fi
13565
13566
13567fi
13568if test -z "$ac_cv_prog_DSYMUTIL"; then
13569  ac_ct_DSYMUTIL=$DSYMUTIL
13570  # Extract the first word of "dsymutil", so it can be a program name with args.
13571set dummy dsymutil; ac_word=$2
13572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13573$as_echo_n "checking for $ac_word... " >&6; }
13574if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13575  $as_echo_n "(cached) " >&6
13576else
13577  if test -n "$ac_ct_DSYMUTIL"; then
13578  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13579else
13580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13581for as_dir in $PATH
13582do
13583  IFS=$as_save_IFS
13584  test -z "$as_dir" && as_dir=.
13585    for ac_exec_ext in '' $ac_executable_extensions; do
13586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13587    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589    break 2
13590  fi
13591done
13592  done
13593IFS=$as_save_IFS
13594
13595fi
13596fi
13597ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13598if test -n "$ac_ct_DSYMUTIL"; then
13599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13600$as_echo "$ac_ct_DSYMUTIL" >&6; }
13601else
13602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13603$as_echo "no" >&6; }
13604fi
13605
13606  if test "x$ac_ct_DSYMUTIL" = x; then
13607    DSYMUTIL=":"
13608  else
13609    case $cross_compiling:$ac_tool_warned in
13610yes:)
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13612$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13613ac_tool_warned=yes ;;
13614esac
13615    DSYMUTIL=$ac_ct_DSYMUTIL
13616  fi
13617else
13618  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13619fi
13620
13621    if test -n "$ac_tool_prefix"; then
13622  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13623set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13625$as_echo_n "checking for $ac_word... " >&6; }
13626if ${ac_cv_prog_NMEDIT+:} false; then :
13627  $as_echo_n "(cached) " >&6
13628else
13629  if test -n "$NMEDIT"; then
13630  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13631else
13632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13633for as_dir in $PATH
13634do
13635  IFS=$as_save_IFS
13636  test -z "$as_dir" && as_dir=.
13637    for ac_exec_ext in '' $ac_executable_extensions; do
13638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13639    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641    break 2
13642  fi
13643done
13644  done
13645IFS=$as_save_IFS
13646
13647fi
13648fi
13649NMEDIT=$ac_cv_prog_NMEDIT
13650if test -n "$NMEDIT"; then
13651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13652$as_echo "$NMEDIT" >&6; }
13653else
13654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655$as_echo "no" >&6; }
13656fi
13657
13658
13659fi
13660if test -z "$ac_cv_prog_NMEDIT"; then
13661  ac_ct_NMEDIT=$NMEDIT
13662  # Extract the first word of "nmedit", so it can be a program name with args.
13663set dummy nmedit; ac_word=$2
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13665$as_echo_n "checking for $ac_word... " >&6; }
13666if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13667  $as_echo_n "(cached) " >&6
13668else
13669  if test -n "$ac_ct_NMEDIT"; then
13670  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13671else
13672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13673for as_dir in $PATH
13674do
13675  IFS=$as_save_IFS
13676  test -z "$as_dir" && as_dir=.
13677    for ac_exec_ext in '' $ac_executable_extensions; do
13678  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13679    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13680    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13681    break 2
13682  fi
13683done
13684  done
13685IFS=$as_save_IFS
13686
13687fi
13688fi
13689ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13690if test -n "$ac_ct_NMEDIT"; then
13691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13692$as_echo "$ac_ct_NMEDIT" >&6; }
13693else
13694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695$as_echo "no" >&6; }
13696fi
13697
13698  if test "x$ac_ct_NMEDIT" = x; then
13699    NMEDIT=":"
13700  else
13701    case $cross_compiling:$ac_tool_warned in
13702yes:)
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13705ac_tool_warned=yes ;;
13706esac
13707    NMEDIT=$ac_ct_NMEDIT
13708  fi
13709else
13710  NMEDIT="$ac_cv_prog_NMEDIT"
13711fi
13712
13713    if test -n "$ac_tool_prefix"; then
13714  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13715set dummy ${ac_tool_prefix}lipo; ac_word=$2
13716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13717$as_echo_n "checking for $ac_word... " >&6; }
13718if ${ac_cv_prog_LIPO+:} false; then :
13719  $as_echo_n "(cached) " >&6
13720else
13721  if test -n "$LIPO"; then
13722  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13723else
13724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13725for as_dir in $PATH
13726do
13727  IFS=$as_save_IFS
13728  test -z "$as_dir" && as_dir=.
13729    for ac_exec_ext in '' $ac_executable_extensions; do
13730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13731    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13732    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13733    break 2
13734  fi
13735done
13736  done
13737IFS=$as_save_IFS
13738
13739fi
13740fi
13741LIPO=$ac_cv_prog_LIPO
13742if test -n "$LIPO"; then
13743  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13744$as_echo "$LIPO" >&6; }
13745else
13746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13747$as_echo "no" >&6; }
13748fi
13749
13750
13751fi
13752if test -z "$ac_cv_prog_LIPO"; then
13753  ac_ct_LIPO=$LIPO
13754  # Extract the first word of "lipo", so it can be a program name with args.
13755set dummy lipo; ac_word=$2
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13757$as_echo_n "checking for $ac_word... " >&6; }
13758if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13759  $as_echo_n "(cached) " >&6
13760else
13761  if test -n "$ac_ct_LIPO"; then
13762  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13763else
13764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765for as_dir in $PATH
13766do
13767  IFS=$as_save_IFS
13768  test -z "$as_dir" && as_dir=.
13769    for ac_exec_ext in '' $ac_executable_extensions; do
13770  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13771    ac_cv_prog_ac_ct_LIPO="lipo"
13772    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13773    break 2
13774  fi
13775done
13776  done
13777IFS=$as_save_IFS
13778
13779fi
13780fi
13781ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13782if test -n "$ac_ct_LIPO"; then
13783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13784$as_echo "$ac_ct_LIPO" >&6; }
13785else
13786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13787$as_echo "no" >&6; }
13788fi
13789
13790  if test "x$ac_ct_LIPO" = x; then
13791    LIPO=":"
13792  else
13793    case $cross_compiling:$ac_tool_warned in
13794yes:)
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13796$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13797ac_tool_warned=yes ;;
13798esac
13799    LIPO=$ac_ct_LIPO
13800  fi
13801else
13802  LIPO="$ac_cv_prog_LIPO"
13803fi
13804
13805    if test -n "$ac_tool_prefix"; then
13806  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13807set dummy ${ac_tool_prefix}otool; ac_word=$2
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13809$as_echo_n "checking for $ac_word... " >&6; }
13810if ${ac_cv_prog_OTOOL+:} false; then :
13811  $as_echo_n "(cached) " >&6
13812else
13813  if test -n "$OTOOL"; then
13814  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13815else
13816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13817for as_dir in $PATH
13818do
13819  IFS=$as_save_IFS
13820  test -z "$as_dir" && as_dir=.
13821    for ac_exec_ext in '' $ac_executable_extensions; do
13822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13823    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13825    break 2
13826  fi
13827done
13828  done
13829IFS=$as_save_IFS
13830
13831fi
13832fi
13833OTOOL=$ac_cv_prog_OTOOL
13834if test -n "$OTOOL"; then
13835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13836$as_echo "$OTOOL" >&6; }
13837else
13838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839$as_echo "no" >&6; }
13840fi
13841
13842
13843fi
13844if test -z "$ac_cv_prog_OTOOL"; then
13845  ac_ct_OTOOL=$OTOOL
13846  # Extract the first word of "otool", so it can be a program name with args.
13847set dummy otool; ac_word=$2
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13849$as_echo_n "checking for $ac_word... " >&6; }
13850if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13851  $as_echo_n "(cached) " >&6
13852else
13853  if test -n "$ac_ct_OTOOL"; then
13854  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13855else
13856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857for as_dir in $PATH
13858do
13859  IFS=$as_save_IFS
13860  test -z "$as_dir" && as_dir=.
13861    for ac_exec_ext in '' $ac_executable_extensions; do
13862  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13863    ac_cv_prog_ac_ct_OTOOL="otool"
13864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13865    break 2
13866  fi
13867done
13868  done
13869IFS=$as_save_IFS
13870
13871fi
13872fi
13873ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13874if test -n "$ac_ct_OTOOL"; then
13875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13876$as_echo "$ac_ct_OTOOL" >&6; }
13877else
13878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13879$as_echo "no" >&6; }
13880fi
13881
13882  if test "x$ac_ct_OTOOL" = x; then
13883    OTOOL=":"
13884  else
13885    case $cross_compiling:$ac_tool_warned in
13886yes:)
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13889ac_tool_warned=yes ;;
13890esac
13891    OTOOL=$ac_ct_OTOOL
13892  fi
13893else
13894  OTOOL="$ac_cv_prog_OTOOL"
13895fi
13896
13897    if test -n "$ac_tool_prefix"; then
13898  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13899set dummy ${ac_tool_prefix}otool64; ac_word=$2
13900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13901$as_echo_n "checking for $ac_word... " >&6; }
13902if ${ac_cv_prog_OTOOL64+:} false; then :
13903  $as_echo_n "(cached) " >&6
13904else
13905  if test -n "$OTOOL64"; then
13906  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13907else
13908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13909for as_dir in $PATH
13910do
13911  IFS=$as_save_IFS
13912  test -z "$as_dir" && as_dir=.
13913    for ac_exec_ext in '' $ac_executable_extensions; do
13914  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13915    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13916    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13917    break 2
13918  fi
13919done
13920  done
13921IFS=$as_save_IFS
13922
13923fi
13924fi
13925OTOOL64=$ac_cv_prog_OTOOL64
13926if test -n "$OTOOL64"; then
13927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13928$as_echo "$OTOOL64" >&6; }
13929else
13930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13931$as_echo "no" >&6; }
13932fi
13933
13934
13935fi
13936if test -z "$ac_cv_prog_OTOOL64"; then
13937  ac_ct_OTOOL64=$OTOOL64
13938  # Extract the first word of "otool64", so it can be a program name with args.
13939set dummy otool64; ac_word=$2
13940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13941$as_echo_n "checking for $ac_word... " >&6; }
13942if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13943  $as_echo_n "(cached) " >&6
13944else
13945  if test -n "$ac_ct_OTOOL64"; then
13946  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13947else
13948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13949for as_dir in $PATH
13950do
13951  IFS=$as_save_IFS
13952  test -z "$as_dir" && as_dir=.
13953    for ac_exec_ext in '' $ac_executable_extensions; do
13954  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13955    ac_cv_prog_ac_ct_OTOOL64="otool64"
13956    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13957    break 2
13958  fi
13959done
13960  done
13961IFS=$as_save_IFS
13962
13963fi
13964fi
13965ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13966if test -n "$ac_ct_OTOOL64"; then
13967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13968$as_echo "$ac_ct_OTOOL64" >&6; }
13969else
13970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13971$as_echo "no" >&6; }
13972fi
13973
13974  if test "x$ac_ct_OTOOL64" = x; then
13975    OTOOL64=":"
13976  else
13977    case $cross_compiling:$ac_tool_warned in
13978yes:)
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13980$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13981ac_tool_warned=yes ;;
13982esac
13983    OTOOL64=$ac_ct_OTOOL64
13984  fi
13985else
13986  OTOOL64="$ac_cv_prog_OTOOL64"
13987fi
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14016$as_echo_n "checking for -single_module linker flag... " >&6; }
14017if ${lt_cv_apple_cc_single_mod+:} false; then :
14018  $as_echo_n "(cached) " >&6
14019else
14020  lt_cv_apple_cc_single_mod=no
14021      if test -z "$LT_MULTI_MODULE"; then
14022	# By default we will add the -single_module flag. You can override
14023	# by either setting the environment variable LT_MULTI_MODULE
14024	# non-empty at configure time, or by adding -multi_module to the
14025	# link flags.
14026	rm -rf libconftest.dylib*
14027	echo "int foo(void){return 1;}" > conftest.c
14028	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14029-dynamiclib -Wl,-single_module conftest.c" >&5
14030	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14031	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14032        _lt_result=$?
14033	# If there is a non-empty error log, and "single_module"
14034	# appears in it, assume the flag caused a linker warning
14035        if test -s conftest.err && $GREP single_module conftest.err; then
14036	  cat conftest.err >&5
14037	# Otherwise, if the output was created with a 0 exit code from
14038	# the compiler, it worked.
14039	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14040	  lt_cv_apple_cc_single_mod=yes
14041	else
14042	  cat conftest.err >&5
14043	fi
14044	rm -rf libconftest.dylib*
14045	rm -f conftest.*
14046      fi
14047fi
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14049$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14050
14051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14052$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14053if ${lt_cv_ld_exported_symbols_list+:} false; then :
14054  $as_echo_n "(cached) " >&6
14055else
14056  lt_cv_ld_exported_symbols_list=no
14057      save_LDFLAGS=$LDFLAGS
14058      echo "_main" > conftest.sym
14059      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14060      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061/* end confdefs.h.  */
14062
14063int
14064main ()
14065{
14066
14067  ;
14068  return 0;
14069}
14070_ACEOF
14071if ac_fn_c_try_link "$LINENO"; then :
14072  lt_cv_ld_exported_symbols_list=yes
14073else
14074  lt_cv_ld_exported_symbols_list=no
14075fi
14076rm -f core conftest.err conftest.$ac_objext \
14077    conftest$ac_exeext conftest.$ac_ext
14078	LDFLAGS=$save_LDFLAGS
14079
14080fi
14081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14082$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14083
14084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14085$as_echo_n "checking for -force_load linker flag... " >&6; }
14086if ${lt_cv_ld_force_load+:} false; then :
14087  $as_echo_n "(cached) " >&6
14088else
14089  lt_cv_ld_force_load=no
14090      cat > conftest.c << _LT_EOF
14091int forced_loaded() { return 2;}
14092_LT_EOF
14093      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14094      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14095      echo "$AR cru libconftest.a conftest.o" >&5
14096      $AR cru libconftest.a conftest.o 2>&5
14097      echo "$RANLIB libconftest.a" >&5
14098      $RANLIB libconftest.a 2>&5
14099      cat > conftest.c << _LT_EOF
14100int main() { return 0;}
14101_LT_EOF
14102      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14103      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14104      _lt_result=$?
14105      if test -s conftest.err && $GREP force_load conftest.err; then
14106	cat conftest.err >&5
14107      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14108	lt_cv_ld_force_load=yes
14109      else
14110	cat conftest.err >&5
14111      fi
14112        rm -f conftest.err libconftest.a conftest conftest.c
14113        rm -rf conftest.dSYM
14114
14115fi
14116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14117$as_echo "$lt_cv_ld_force_load" >&6; }
14118    case $host_os in
14119    rhapsody* | darwin1.[012])
14120      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14121    darwin1.*)
14122      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14123    darwin*) # darwin 5.x on
14124      # if running on 10.5 or later, the deployment target defaults
14125      # to the OS version, if on x86, and 10.4, the deployment
14126      # target defaults to 10.4. Don't you love it?
14127      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14128	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14129	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14130	10.[012][,.]*)
14131	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14132	10.*)
14133	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14134      esac
14135    ;;
14136  esac
14137    if test yes = "$lt_cv_apple_cc_single_mod"; then
14138      _lt_dar_single_mod='$single_module'
14139    fi
14140    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14141      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14142    else
14143      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14144    fi
14145    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14146      _lt_dsymutil='~$DSYMUTIL $lib || :'
14147    else
14148      _lt_dsymutil=
14149    fi
14150    ;;
14151  esac
14152
14153# func_munge_path_list VARIABLE PATH
14154# -----------------------------------
14155# VARIABLE is name of variable containing _space_ separated list of
14156# directories to be munged by the contents of PATH, which is string
14157# having a format:
14158# "DIR[:DIR]:"
14159#       string "DIR[ DIR]" will be prepended to VARIABLE
14160# ":DIR[:DIR]"
14161#       string "DIR[ DIR]" will be appended to VARIABLE
14162# "DIRP[:DIRP]::[DIRA:]DIRA"
14163#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14164#       "DIRA[ DIRA]" will be appended to VARIABLE
14165# "DIR[:DIR]"
14166#       VARIABLE will be replaced by "DIR[ DIR]"
14167func_munge_path_list ()
14168{
14169    case x$2 in
14170    x)
14171        ;;
14172    *:)
14173        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14174        ;;
14175    x:*)
14176        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14177        ;;
14178    *::*)
14179        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14180        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14181        ;;
14182    *)
14183        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14184        ;;
14185    esac
14186}
14187
14188for ac_header in dlfcn.h
14189do :
14190  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14191"
14192if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14193  cat >>confdefs.h <<_ACEOF
14194#define HAVE_DLFCN_H 1
14195_ACEOF
14196
14197fi
14198
14199done
14200
14201
14202
14203
14204
14205# Set options
14206
14207
14208
14209        enable_dlopen=no
14210
14211
14212  enable_win32_dll=no
14213
14214
14215            # Check whether --enable-shared was given.
14216if test "${enable_shared+set}" = set; then :
14217  enableval=$enable_shared; p=${PACKAGE-default}
14218    case $enableval in
14219    yes) enable_shared=yes ;;
14220    no) enable_shared=no ;;
14221    *)
14222      enable_shared=no
14223      # Look at the argument we got.  We use all the common list separators.
14224      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14225      for pkg in $enableval; do
14226	IFS=$lt_save_ifs
14227	if test "X$pkg" = "X$p"; then
14228	  enable_shared=yes
14229	fi
14230      done
14231      IFS=$lt_save_ifs
14232      ;;
14233    esac
14234else
14235  enable_shared=yes
14236fi
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248# Check whether --with-pic was given.
14249if test "${with_pic+set}" = set; then :
14250  withval=$with_pic; lt_p=${PACKAGE-default}
14251    case $withval in
14252    yes|no) pic_mode=$withval ;;
14253    *)
14254      pic_mode=default
14255      # Look at the argument we got.  We use all the common list separators.
14256      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14257      for lt_pkg in $withval; do
14258	IFS=$lt_save_ifs
14259	if test "X$lt_pkg" = "X$lt_p"; then
14260	  pic_mode=yes
14261	fi
14262      done
14263      IFS=$lt_save_ifs
14264      ;;
14265    esac
14266else
14267  pic_mode=default
14268fi
14269
14270
14271
14272
14273
14274
14275
14276
14277  # Check whether --enable-fast-install was given.
14278if test "${enable_fast_install+set}" = set; then :
14279  enableval=$enable_fast_install; p=${PACKAGE-default}
14280    case $enableval in
14281    yes) enable_fast_install=yes ;;
14282    no) enable_fast_install=no ;;
14283    *)
14284      enable_fast_install=no
14285      # Look at the argument we got.  We use all the common list separators.
14286      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14287      for pkg in $enableval; do
14288	IFS=$lt_save_ifs
14289	if test "X$pkg" = "X$p"; then
14290	  enable_fast_install=yes
14291	fi
14292      done
14293      IFS=$lt_save_ifs
14294      ;;
14295    esac
14296else
14297  enable_fast_install=yes
14298fi
14299
14300
14301
14302
14303
14304
14305
14306
14307  shared_archive_member_spec=
14308case $host,$enable_shared in
14309power*-*-aix[5-9]*,yes)
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14311$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14312
14313# Check whether --with-aix-soname was given.
14314if test "${with_aix_soname+set}" = set; then :
14315  withval=$with_aix_soname; case $withval in
14316    aix|svr4|both)
14317      ;;
14318    *)
14319      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14320      ;;
14321    esac
14322    lt_cv_with_aix_soname=$with_aix_soname
14323else
14324  if ${lt_cv_with_aix_soname+:} false; then :
14325  $as_echo_n "(cached) " >&6
14326else
14327  lt_cv_with_aix_soname=aix
14328fi
14329
14330    with_aix_soname=$lt_cv_with_aix_soname
14331fi
14332
14333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14334$as_echo "$with_aix_soname" >&6; }
14335  if test aix != "$with_aix_soname"; then
14336    # For the AIX way of multilib, we name the shared archive member
14337    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14338    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14339    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14340    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14341    if test 64 = "${OBJECT_MODE-32}"; then
14342      shared_archive_member_spec=shr_64
14343    else
14344      shared_archive_member_spec=shr
14345    fi
14346  fi
14347  ;;
14348*)
14349  with_aix_soname=aix
14350  ;;
14351esac
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362# This can be used to rebuild libtool when needed
14363LIBTOOL_DEPS=$ltmain
14364
14365# Always use our own libtool.
14366LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397test -z "$LN_S" && LN_S="ln -s"
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412if test -n "${ZSH_VERSION+set}"; then
14413   setopt NO_GLOB_SUBST
14414fi
14415
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14417$as_echo_n "checking for objdir... " >&6; }
14418if ${lt_cv_objdir+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421  rm -f .libs 2>/dev/null
14422mkdir .libs 2>/dev/null
14423if test -d .libs; then
14424  lt_cv_objdir=.libs
14425else
14426  # MS-DOS does not allow filenames that begin with a dot.
14427  lt_cv_objdir=_libs
14428fi
14429rmdir .libs 2>/dev/null
14430fi
14431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14432$as_echo "$lt_cv_objdir" >&6; }
14433objdir=$lt_cv_objdir
14434
14435
14436
14437
14438
14439cat >>confdefs.h <<_ACEOF
14440#define LT_OBJDIR "$lt_cv_objdir/"
14441_ACEOF
14442
14443
14444
14445
14446case $host_os in
14447aix3*)
14448  # AIX sometimes has problems with the GCC collect2 program.  For some
14449  # reason, if we set the COLLECT_NAMES environment variable, the problems
14450  # vanish in a puff of smoke.
14451  if test set != "${COLLECT_NAMES+set}"; then
14452    COLLECT_NAMES=
14453    export COLLECT_NAMES
14454  fi
14455  ;;
14456esac
14457
14458# Global variables:
14459ofile=libtool
14460can_build_shared=yes
14461
14462# All known linkers require a '.a' archive for static linking (except MSVC,
14463# which needs '.lib').
14464libext=a
14465
14466with_gnu_ld=$lt_cv_prog_gnu_ld
14467
14468old_CC=$CC
14469old_CFLAGS=$CFLAGS
14470
14471# Set sane defaults for various variables
14472test -z "$CC" && CC=cc
14473test -z "$LTCC" && LTCC=$CC
14474test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14475test -z "$LD" && LD=ld
14476test -z "$ac_objext" && ac_objext=o
14477
14478func_cc_basename $compiler
14479cc_basename=$func_cc_basename_result
14480
14481
14482# Only perform the check for file, if the check method requires it
14483test -z "$MAGIC_CMD" && MAGIC_CMD=file
14484case $deplibs_check_method in
14485file_magic*)
14486  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14488$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14489if ${lt_cv_path_MAGIC_CMD+:} false; then :
14490  $as_echo_n "(cached) " >&6
14491else
14492  case $MAGIC_CMD in
14493[\\/*] |  ?:[\\/]*)
14494  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14495  ;;
14496*)
14497  lt_save_MAGIC_CMD=$MAGIC_CMD
14498  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14499  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14500  for ac_dir in $ac_dummy; do
14501    IFS=$lt_save_ifs
14502    test -z "$ac_dir" && ac_dir=.
14503    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14504      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14505      if test -n "$file_magic_test_file"; then
14506	case $deplibs_check_method in
14507	"file_magic "*)
14508	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14509	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14510	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14511	    $EGREP "$file_magic_regex" > /dev/null; then
14512	    :
14513	  else
14514	    cat <<_LT_EOF 1>&2
14515
14516*** Warning: the command libtool uses to detect shared libraries,
14517*** $file_magic_cmd, produces output that libtool cannot recognize.
14518*** The result is that libtool may fail to recognize shared libraries
14519*** as such.  This will affect the creation of libtool libraries that
14520*** depend on shared libraries, but programs linked with such libtool
14521*** libraries will work regardless of this problem.  Nevertheless, you
14522*** may want to report the problem to your system manager and/or to
14523*** bug-libtool@gnu.org
14524
14525_LT_EOF
14526	  fi ;;
14527	esac
14528      fi
14529      break
14530    fi
14531  done
14532  IFS=$lt_save_ifs
14533  MAGIC_CMD=$lt_save_MAGIC_CMD
14534  ;;
14535esac
14536fi
14537
14538MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14539if test -n "$MAGIC_CMD"; then
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14541$as_echo "$MAGIC_CMD" >&6; }
14542else
14543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14544$as_echo "no" >&6; }
14545fi
14546
14547
14548
14549
14550
14551if test -z "$lt_cv_path_MAGIC_CMD"; then
14552  if test -n "$ac_tool_prefix"; then
14553    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14554$as_echo_n "checking for file... " >&6; }
14555if ${lt_cv_path_MAGIC_CMD+:} false; then :
14556  $as_echo_n "(cached) " >&6
14557else
14558  case $MAGIC_CMD in
14559[\\/*] |  ?:[\\/]*)
14560  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14561  ;;
14562*)
14563  lt_save_MAGIC_CMD=$MAGIC_CMD
14564  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14565  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14566  for ac_dir in $ac_dummy; do
14567    IFS=$lt_save_ifs
14568    test -z "$ac_dir" && ac_dir=.
14569    if test -f "$ac_dir/file"; then
14570      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14571      if test -n "$file_magic_test_file"; then
14572	case $deplibs_check_method in
14573	"file_magic "*)
14574	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14575	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14576	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14577	    $EGREP "$file_magic_regex" > /dev/null; then
14578	    :
14579	  else
14580	    cat <<_LT_EOF 1>&2
14581
14582*** Warning: the command libtool uses to detect shared libraries,
14583*** $file_magic_cmd, produces output that libtool cannot recognize.
14584*** The result is that libtool may fail to recognize shared libraries
14585*** as such.  This will affect the creation of libtool libraries that
14586*** depend on shared libraries, but programs linked with such libtool
14587*** libraries will work regardless of this problem.  Nevertheless, you
14588*** may want to report the problem to your system manager and/or to
14589*** bug-libtool@gnu.org
14590
14591_LT_EOF
14592	  fi ;;
14593	esac
14594      fi
14595      break
14596    fi
14597  done
14598  IFS=$lt_save_ifs
14599  MAGIC_CMD=$lt_save_MAGIC_CMD
14600  ;;
14601esac
14602fi
14603
14604MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14605if test -n "$MAGIC_CMD"; then
14606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14607$as_echo "$MAGIC_CMD" >&6; }
14608else
14609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14610$as_echo "no" >&6; }
14611fi
14612
14613
14614  else
14615    MAGIC_CMD=:
14616  fi
14617fi
14618
14619  fi
14620  ;;
14621esac
14622
14623# Use C for the default configuration in the libtool script
14624
14625lt_save_CC=$CC
14626ac_ext=c
14627ac_cpp='$CPP $CPPFLAGS'
14628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630ac_compiler_gnu=$ac_cv_c_compiler_gnu
14631
14632
14633# Source file extension for C test sources.
14634ac_ext=c
14635
14636# Object file extension for compiled C test sources.
14637objext=o
14638objext=$objext
14639
14640# Code to be used in simple compile tests
14641lt_simple_compile_test_code="int some_variable = 0;"
14642
14643# Code to be used in simple link tests
14644lt_simple_link_test_code='int main(){return(0);}'
14645
14646
14647
14648
14649
14650
14651
14652# If no C compiler was specified, use CC.
14653LTCC=${LTCC-"$CC"}
14654
14655# If no C compiler flags were specified, use CFLAGS.
14656LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14657
14658# Allow CC to be a program name with arguments.
14659compiler=$CC
14660
14661# Save the default compiler, since it gets overwritten when the other
14662# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14663compiler_DEFAULT=$CC
14664
14665# save warnings/boilerplate of simple test code
14666ac_outfile=conftest.$ac_objext
14667echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14668eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14669_lt_compiler_boilerplate=`cat conftest.err`
14670$RM conftest*
14671
14672ac_outfile=conftest.$ac_objext
14673echo "$lt_simple_link_test_code" >conftest.$ac_ext
14674eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14675_lt_linker_boilerplate=`cat conftest.err`
14676$RM -r conftest*
14677
14678
14679if test -n "$compiler"; then
14680
14681lt_prog_compiler_no_builtin_flag=
14682
14683if test yes = "$GCC"; then
14684  case $cc_basename in
14685  nvcc*)
14686    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14687  *)
14688    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14689  esac
14690
14691  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14692$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14693if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14694  $as_echo_n "(cached) " >&6
14695else
14696  lt_cv_prog_compiler_rtti_exceptions=no
14697   ac_outfile=conftest.$ac_objext
14698   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14699   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14700   # Insert the option either (1) after the last *FLAGS variable, or
14701   # (2) before a word containing "conftest.", or (3) at the end.
14702   # Note that $ac_compile itself does not contain backslashes and begins
14703   # with a dollar sign (not a hyphen), so the echo should work correctly.
14704   # The option is referenced via a variable to avoid confusing sed.
14705   lt_compile=`echo "$ac_compile" | $SED \
14706   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14707   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14708   -e 's:$: $lt_compiler_flag:'`
14709   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14710   (eval "$lt_compile" 2>conftest.err)
14711   ac_status=$?
14712   cat conftest.err >&5
14713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714   if (exit $ac_status) && test -s "$ac_outfile"; then
14715     # The compiler can only warn and ignore the option if not recognized
14716     # So say no if there are warnings other than the usual output.
14717     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14718     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14719     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14720       lt_cv_prog_compiler_rtti_exceptions=yes
14721     fi
14722   fi
14723   $RM conftest*
14724
14725fi
14726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14727$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14728
14729if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14730    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14731else
14732    :
14733fi
14734
14735fi
14736
14737
14738
14739
14740
14741
14742  lt_prog_compiler_wl=
14743lt_prog_compiler_pic=
14744lt_prog_compiler_static=
14745
14746
14747  if test yes = "$GCC"; then
14748    lt_prog_compiler_wl='-Wl,'
14749    lt_prog_compiler_static='-static'
14750
14751    case $host_os in
14752      aix*)
14753      # All AIX code is PIC.
14754      if test ia64 = "$host_cpu"; then
14755	# AIX 5 now supports IA64 processor
14756	lt_prog_compiler_static='-Bstatic'
14757      fi
14758      lt_prog_compiler_pic='-fPIC'
14759      ;;
14760
14761    amigaos*)
14762      case $host_cpu in
14763      powerpc)
14764            # see comment about AmigaOS4 .so support
14765            lt_prog_compiler_pic='-fPIC'
14766        ;;
14767      m68k)
14768            # FIXME: we need at least 68020 code to build shared libraries, but
14769            # adding the '-m68020' flag to GCC prevents building anything better,
14770            # like '-m68040'.
14771            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14772        ;;
14773      esac
14774      ;;
14775
14776    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14777      # PIC is the default for these OSes.
14778      ;;
14779
14780    mingw* | cygwin* | pw32* | os2* | cegcc*)
14781      # This hack is so that the source file can tell whether it is being
14782      # built for inclusion in a dll (and should export symbols for example).
14783      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14784      # (--disable-auto-import) libraries
14785      lt_prog_compiler_pic='-DDLL_EXPORT'
14786      case $host_os in
14787      os2*)
14788	lt_prog_compiler_static='$wl-static'
14789	;;
14790      esac
14791      ;;
14792
14793    darwin* | rhapsody*)
14794      # PIC is the default on this platform
14795      # Common symbols not allowed in MH_DYLIB files
14796      lt_prog_compiler_pic='-fno-common'
14797      ;;
14798
14799    haiku*)
14800      # PIC is the default for Haiku.
14801      # The "-static" flag exists, but is broken.
14802      lt_prog_compiler_static=
14803      ;;
14804
14805    hpux*)
14806      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14807      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14808      # sets the default TLS model and affects inlining.
14809      case $host_cpu in
14810      hppa*64*)
14811	# +Z the default
14812	;;
14813      *)
14814	lt_prog_compiler_pic='-fPIC'
14815	;;
14816      esac
14817      ;;
14818
14819    interix[3-9]*)
14820      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14821      # Instead, we relocate shared libraries at runtime.
14822      ;;
14823
14824    msdosdjgpp*)
14825      # Just because we use GCC doesn't mean we suddenly get shared libraries
14826      # on systems that don't support them.
14827      lt_prog_compiler_can_build_shared=no
14828      enable_shared=no
14829      ;;
14830
14831    *nto* | *qnx*)
14832      # QNX uses GNU C++, but need to define -shared option too, otherwise
14833      # it will coredump.
14834      lt_prog_compiler_pic='-fPIC -shared'
14835      ;;
14836
14837    sysv4*MP*)
14838      if test -d /usr/nec; then
14839	lt_prog_compiler_pic=-Kconform_pic
14840      fi
14841      ;;
14842
14843    *)
14844      lt_prog_compiler_pic='-fPIC'
14845      ;;
14846    esac
14847
14848    case $cc_basename in
14849    nvcc*) # Cuda Compiler Driver 2.2
14850      lt_prog_compiler_wl='-Xlinker '
14851      if test -n "$lt_prog_compiler_pic"; then
14852        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14853      fi
14854      ;;
14855    esac
14856  else
14857    # PORTME Check for flag to pass linker flags through the system compiler.
14858    case $host_os in
14859    aix*)
14860      lt_prog_compiler_wl='-Wl,'
14861      if test ia64 = "$host_cpu"; then
14862	# AIX 5 now supports IA64 processor
14863	lt_prog_compiler_static='-Bstatic'
14864      else
14865	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14866      fi
14867      ;;
14868
14869    darwin* | rhapsody*)
14870      # PIC is the default on this platform
14871      # Common symbols not allowed in MH_DYLIB files
14872      lt_prog_compiler_pic='-fno-common'
14873      case $cc_basename in
14874      nagfor*)
14875        # NAG Fortran compiler
14876        lt_prog_compiler_wl='-Wl,-Wl,,'
14877        lt_prog_compiler_pic='-PIC'
14878        lt_prog_compiler_static='-Bstatic'
14879        ;;
14880      esac
14881      ;;
14882
14883    mingw* | cygwin* | pw32* | os2* | cegcc*)
14884      # This hack is so that the source file can tell whether it is being
14885      # built for inclusion in a dll (and should export symbols for example).
14886      lt_prog_compiler_pic='-DDLL_EXPORT'
14887      case $host_os in
14888      os2*)
14889	lt_prog_compiler_static='$wl-static'
14890	;;
14891      esac
14892      ;;
14893
14894    hpux9* | hpux10* | hpux11*)
14895      lt_prog_compiler_wl='-Wl,'
14896      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14897      # not for PA HP-UX.
14898      case $host_cpu in
14899      hppa*64*|ia64*)
14900	# +Z the default
14901	;;
14902      *)
14903	lt_prog_compiler_pic='+Z'
14904	;;
14905      esac
14906      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14907      lt_prog_compiler_static='$wl-a ${wl}archive'
14908      ;;
14909
14910    irix5* | irix6* | nonstopux*)
14911      lt_prog_compiler_wl='-Wl,'
14912      # PIC (with -KPIC) is the default.
14913      lt_prog_compiler_static='-non_shared'
14914      ;;
14915
14916    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14917      case $cc_basename in
14918      # old Intel for x86_64, which still supported -KPIC.
14919      ecc*)
14920	lt_prog_compiler_wl='-Wl,'
14921	lt_prog_compiler_pic='-KPIC'
14922	lt_prog_compiler_static='-static'
14923        ;;
14924      # icc used to be incompatible with GCC.
14925      # ICC 10 doesn't accept -KPIC any more.
14926      icc* | ifort*)
14927	lt_prog_compiler_wl='-Wl,'
14928	lt_prog_compiler_pic='-fPIC'
14929	lt_prog_compiler_static='-static'
14930        ;;
14931      # Lahey Fortran 8.1.
14932      lf95*)
14933	lt_prog_compiler_wl='-Wl,'
14934	lt_prog_compiler_pic='--shared'
14935	lt_prog_compiler_static='--static'
14936	;;
14937      nagfor*)
14938	# NAG Fortran compiler
14939	lt_prog_compiler_wl='-Wl,-Wl,,'
14940	lt_prog_compiler_pic='-PIC'
14941	lt_prog_compiler_static='-Bstatic'
14942	;;
14943      tcc*)
14944	# Fabrice Bellard et al's Tiny C Compiler
14945	lt_prog_compiler_wl='-Wl,'
14946	lt_prog_compiler_pic='-fPIC'
14947	lt_prog_compiler_static='-static'
14948	;;
14949      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14950        # Portland Group compilers (*not* the Pentium gcc compiler,
14951	# which looks to be a dead project)
14952	lt_prog_compiler_wl='-Wl,'
14953	lt_prog_compiler_pic='-fpic'
14954	lt_prog_compiler_static='-Bstatic'
14955        ;;
14956      ccc*)
14957        lt_prog_compiler_wl='-Wl,'
14958        # All Alpha code is PIC.
14959        lt_prog_compiler_static='-non_shared'
14960        ;;
14961      xl* | bgxl* | bgf* | mpixl*)
14962	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14963	lt_prog_compiler_wl='-Wl,'
14964	lt_prog_compiler_pic='-qpic'
14965	lt_prog_compiler_static='-qstaticlink'
14966	;;
14967      *)
14968	case `$CC -V 2>&1 | sed 5q` in
14969	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14970	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14971	  lt_prog_compiler_pic='-KPIC'
14972	  lt_prog_compiler_static='-Bstatic'
14973	  lt_prog_compiler_wl=''
14974	  ;;
14975	*Sun\ F* | *Sun*Fortran*)
14976	  lt_prog_compiler_pic='-KPIC'
14977	  lt_prog_compiler_static='-Bstatic'
14978	  lt_prog_compiler_wl='-Qoption ld '
14979	  ;;
14980	*Sun\ C*)
14981	  # Sun C 5.9
14982	  lt_prog_compiler_pic='-KPIC'
14983	  lt_prog_compiler_static='-Bstatic'
14984	  lt_prog_compiler_wl='-Wl,'
14985	  ;;
14986        *Intel*\ [CF]*Compiler*)
14987	  lt_prog_compiler_wl='-Wl,'
14988	  lt_prog_compiler_pic='-fPIC'
14989	  lt_prog_compiler_static='-static'
14990	  ;;
14991	*Portland\ Group*)
14992	  lt_prog_compiler_wl='-Wl,'
14993	  lt_prog_compiler_pic='-fpic'
14994	  lt_prog_compiler_static='-Bstatic'
14995	  ;;
14996	esac
14997	;;
14998      esac
14999      ;;
15000
15001    newsos6)
15002      lt_prog_compiler_pic='-KPIC'
15003      lt_prog_compiler_static='-Bstatic'
15004      ;;
15005
15006    *nto* | *qnx*)
15007      # QNX uses GNU C++, but need to define -shared option too, otherwise
15008      # it will coredump.
15009      lt_prog_compiler_pic='-fPIC -shared'
15010      ;;
15011
15012    osf3* | osf4* | osf5*)
15013      lt_prog_compiler_wl='-Wl,'
15014      # All OSF/1 code is PIC.
15015      lt_prog_compiler_static='-non_shared'
15016      ;;
15017
15018    rdos*)
15019      lt_prog_compiler_static='-non_shared'
15020      ;;
15021
15022    solaris*)
15023      lt_prog_compiler_pic='-KPIC'
15024      lt_prog_compiler_static='-Bstatic'
15025      case $cc_basename in
15026      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15027	lt_prog_compiler_wl='-Qoption ld ';;
15028      *)
15029	lt_prog_compiler_wl='-Wl,';;
15030      esac
15031      ;;
15032
15033    sunos4*)
15034      lt_prog_compiler_wl='-Qoption ld '
15035      lt_prog_compiler_pic='-PIC'
15036      lt_prog_compiler_static='-Bstatic'
15037      ;;
15038
15039    sysv4 | sysv4.2uw2* | sysv4.3*)
15040      lt_prog_compiler_wl='-Wl,'
15041      lt_prog_compiler_pic='-KPIC'
15042      lt_prog_compiler_static='-Bstatic'
15043      ;;
15044
15045    sysv4*MP*)
15046      if test -d /usr/nec; then
15047	lt_prog_compiler_pic='-Kconform_pic'
15048	lt_prog_compiler_static='-Bstatic'
15049      fi
15050      ;;
15051
15052    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15053      lt_prog_compiler_wl='-Wl,'
15054      lt_prog_compiler_pic='-KPIC'
15055      lt_prog_compiler_static='-Bstatic'
15056      ;;
15057
15058    unicos*)
15059      lt_prog_compiler_wl='-Wl,'
15060      lt_prog_compiler_can_build_shared=no
15061      ;;
15062
15063    uts4*)
15064      lt_prog_compiler_pic='-pic'
15065      lt_prog_compiler_static='-Bstatic'
15066      ;;
15067
15068    *)
15069      lt_prog_compiler_can_build_shared=no
15070      ;;
15071    esac
15072  fi
15073
15074case $host_os in
15075  # For platforms that do not support PIC, -DPIC is meaningless:
15076  *djgpp*)
15077    lt_prog_compiler_pic=
15078    ;;
15079  *)
15080    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15081    ;;
15082esac
15083
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15085$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15086if ${lt_cv_prog_compiler_pic+:} false; then :
15087  $as_echo_n "(cached) " >&6
15088else
15089  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15090fi
15091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15092$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15093lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15094
15095#
15096# Check to make sure the PIC flag actually works.
15097#
15098if test -n "$lt_prog_compiler_pic"; then
15099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15100$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15101if ${lt_cv_prog_compiler_pic_works+:} false; then :
15102  $as_echo_n "(cached) " >&6
15103else
15104  lt_cv_prog_compiler_pic_works=no
15105   ac_outfile=conftest.$ac_objext
15106   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15107   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15108   # Insert the option either (1) after the last *FLAGS variable, or
15109   # (2) before a word containing "conftest.", or (3) at the end.
15110   # Note that $ac_compile itself does not contain backslashes and begins
15111   # with a dollar sign (not a hyphen), so the echo should work correctly.
15112   # The option is referenced via a variable to avoid confusing sed.
15113   lt_compile=`echo "$ac_compile" | $SED \
15114   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15115   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15116   -e 's:$: $lt_compiler_flag:'`
15117   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15118   (eval "$lt_compile" 2>conftest.err)
15119   ac_status=$?
15120   cat conftest.err >&5
15121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122   if (exit $ac_status) && test -s "$ac_outfile"; then
15123     # The compiler can only warn and ignore the option if not recognized
15124     # So say no if there are warnings other than the usual output.
15125     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15126     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15127     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15128       lt_cv_prog_compiler_pic_works=yes
15129     fi
15130   fi
15131   $RM conftest*
15132
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15135$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15136
15137if test yes = "$lt_cv_prog_compiler_pic_works"; then
15138    case $lt_prog_compiler_pic in
15139     "" | " "*) ;;
15140     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15141     esac
15142else
15143    lt_prog_compiler_pic=
15144     lt_prog_compiler_can_build_shared=no
15145fi
15146
15147fi
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159#
15160# Check to make sure the static flag actually works.
15161#
15162wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15164$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15165if ${lt_cv_prog_compiler_static_works+:} false; then :
15166  $as_echo_n "(cached) " >&6
15167else
15168  lt_cv_prog_compiler_static_works=no
15169   save_LDFLAGS=$LDFLAGS
15170   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15171   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15172   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15173     # The linker can only warn and ignore the option if not recognized
15174     # So say no if there are warnings
15175     if test -s conftest.err; then
15176       # Append any errors to the config.log.
15177       cat conftest.err 1>&5
15178       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15179       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15180       if diff conftest.exp conftest.er2 >/dev/null; then
15181         lt_cv_prog_compiler_static_works=yes
15182       fi
15183     else
15184       lt_cv_prog_compiler_static_works=yes
15185     fi
15186   fi
15187   $RM -r conftest*
15188   LDFLAGS=$save_LDFLAGS
15189
15190fi
15191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15192$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15193
15194if test yes = "$lt_cv_prog_compiler_static_works"; then
15195    :
15196else
15197    lt_prog_compiler_static=
15198fi
15199
15200
15201
15202
15203
15204
15205
15206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15207$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15208if ${lt_cv_prog_compiler_c_o+:} false; then :
15209  $as_echo_n "(cached) " >&6
15210else
15211  lt_cv_prog_compiler_c_o=no
15212   $RM -r conftest 2>/dev/null
15213   mkdir conftest
15214   cd conftest
15215   mkdir out
15216   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15217
15218   lt_compiler_flag="-o out/conftest2.$ac_objext"
15219   # Insert the option either (1) after the last *FLAGS variable, or
15220   # (2) before a word containing "conftest.", or (3) at the end.
15221   # Note that $ac_compile itself does not contain backslashes and begins
15222   # with a dollar sign (not a hyphen), so the echo should work correctly.
15223   lt_compile=`echo "$ac_compile" | $SED \
15224   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15226   -e 's:$: $lt_compiler_flag:'`
15227   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15228   (eval "$lt_compile" 2>out/conftest.err)
15229   ac_status=$?
15230   cat out/conftest.err >&5
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15233   then
15234     # The compiler can only warn and ignore the option if not recognized
15235     # So say no if there are warnings
15236     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15237     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15238     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15239       lt_cv_prog_compiler_c_o=yes
15240     fi
15241   fi
15242   chmod u+w . 2>&5
15243   $RM conftest*
15244   # SGI C++ compiler will create directory out/ii_files/ for
15245   # template instantiation
15246   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15247   $RM out/* && rmdir out
15248   cd ..
15249   $RM -r conftest
15250   $RM conftest*
15251
15252fi
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15254$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15255
15256
15257
15258
15259
15260
15261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15262$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15263if ${lt_cv_prog_compiler_c_o+:} false; then :
15264  $as_echo_n "(cached) " >&6
15265else
15266  lt_cv_prog_compiler_c_o=no
15267   $RM -r conftest 2>/dev/null
15268   mkdir conftest
15269   cd conftest
15270   mkdir out
15271   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15272
15273   lt_compiler_flag="-o out/conftest2.$ac_objext"
15274   # Insert the option either (1) after the last *FLAGS variable, or
15275   # (2) before a word containing "conftest.", or (3) at the end.
15276   # Note that $ac_compile itself does not contain backslashes and begins
15277   # with a dollar sign (not a hyphen), so the echo should work correctly.
15278   lt_compile=`echo "$ac_compile" | $SED \
15279   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15280   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15281   -e 's:$: $lt_compiler_flag:'`
15282   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15283   (eval "$lt_compile" 2>out/conftest.err)
15284   ac_status=$?
15285   cat out/conftest.err >&5
15286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15288   then
15289     # The compiler can only warn and ignore the option if not recognized
15290     # So say no if there are warnings
15291     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15292     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15293     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15294       lt_cv_prog_compiler_c_o=yes
15295     fi
15296   fi
15297   chmod u+w . 2>&5
15298   $RM conftest*
15299   # SGI C++ compiler will create directory out/ii_files/ for
15300   # template instantiation
15301   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15302   $RM out/* && rmdir out
15303   cd ..
15304   $RM -r conftest
15305   $RM conftest*
15306
15307fi
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15309$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15310
15311
15312
15313
15314hard_links=nottested
15315if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15316  # do not overwrite the value of need_locks provided by the user
15317  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15318$as_echo_n "checking if we can lock with hard links... " >&6; }
15319  hard_links=yes
15320  $RM conftest*
15321  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15322  touch conftest.a
15323  ln conftest.a conftest.b 2>&5 || hard_links=no
15324  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15326$as_echo "$hard_links" >&6; }
15327  if test no = "$hard_links"; then
15328    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15329$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15330    need_locks=warn
15331  fi
15332else
15333  need_locks=no
15334fi
15335
15336
15337
15338
15339
15340
15341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15342$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15343
15344  runpath_var=
15345  allow_undefined_flag=
15346  always_export_symbols=no
15347  archive_cmds=
15348  archive_expsym_cmds=
15349  compiler_needs_object=no
15350  enable_shared_with_static_runtimes=no
15351  export_dynamic_flag_spec=
15352  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15353  hardcode_automatic=no
15354  hardcode_direct=no
15355  hardcode_direct_absolute=no
15356  hardcode_libdir_flag_spec=
15357  hardcode_libdir_separator=
15358  hardcode_minus_L=no
15359  hardcode_shlibpath_var=unsupported
15360  inherit_rpath=no
15361  link_all_deplibs=unknown
15362  module_cmds=
15363  module_expsym_cmds=
15364  old_archive_from_new_cmds=
15365  old_archive_from_expsyms_cmds=
15366  thread_safe_flag_spec=
15367  whole_archive_flag_spec=
15368  # include_expsyms should be a list of space-separated symbols to be *always*
15369  # included in the symbol list
15370  include_expsyms=
15371  # exclude_expsyms can be an extended regexp of symbols to exclude
15372  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15373  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15374  # as well as any symbol that contains 'd'.
15375  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15376  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15377  # platforms (ab)use it in PIC code, but their linkers get confused if
15378  # the symbol is explicitly referenced.  Since portable code cannot
15379  # rely on this symbol name, it's probably fine to never include it in
15380  # preloaded symbol tables.
15381  # Exclude shared library initialization/finalization symbols.
15382  extract_expsyms_cmds=
15383
15384  case $host_os in
15385  cygwin* | mingw* | pw32* | cegcc*)
15386    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15387    # When not using gcc, we currently assume that we are using
15388    # Microsoft Visual C++.
15389    if test yes != "$GCC"; then
15390      with_gnu_ld=no
15391    fi
15392    ;;
15393  interix*)
15394    # we just hope/assume this is gcc and not c89 (= MSVC++)
15395    with_gnu_ld=yes
15396    ;;
15397  openbsd* | bitrig*)
15398    with_gnu_ld=no
15399    ;;
15400  linux* | k*bsd*-gnu | gnu*)
15401    link_all_deplibs=no
15402    ;;
15403  esac
15404
15405  ld_shlibs=yes
15406
15407  # On some targets, GNU ld is compatible enough with the native linker
15408  # that we're better off using the native interface for both.
15409  lt_use_gnu_ld_interface=no
15410  if test yes = "$with_gnu_ld"; then
15411    case $host_os in
15412      aix*)
15413	# The AIX port of GNU ld has always aspired to compatibility
15414	# with the native linker.  However, as the warning in the GNU ld
15415	# block says, versions before 2.19.5* couldn't really create working
15416	# shared libraries, regardless of the interface used.
15417	case `$LD -v 2>&1` in
15418	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15419	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15420	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15421	  *)
15422	    lt_use_gnu_ld_interface=yes
15423	    ;;
15424	esac
15425	;;
15426      *)
15427	lt_use_gnu_ld_interface=yes
15428	;;
15429    esac
15430  fi
15431
15432  if test yes = "$lt_use_gnu_ld_interface"; then
15433    # If archive_cmds runs LD, not CC, wlarc should be empty
15434    wlarc='$wl'
15435
15436    # Set some defaults for GNU ld with shared library support. These
15437    # are reset later if shared libraries are not supported. Putting them
15438    # here allows them to be overridden if necessary.
15439    runpath_var=LD_RUN_PATH
15440    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15441    export_dynamic_flag_spec='$wl--export-dynamic'
15442    # ancient GNU ld didn't support --whole-archive et. al.
15443    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15444      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15445    else
15446      whole_archive_flag_spec=
15447    fi
15448    supports_anon_versioning=no
15449    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15450      *GNU\ gold*) supports_anon_versioning=yes ;;
15451      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15452      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15453      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15454      *\ 2.11.*) ;; # other 2.11 versions
15455      *) supports_anon_versioning=yes ;;
15456    esac
15457
15458    # See if GNU ld supports shared libraries.
15459    case $host_os in
15460    aix[3-9]*)
15461      # On AIX/PPC, the GNU linker is very broken
15462      if test ia64 != "$host_cpu"; then
15463	ld_shlibs=no
15464	cat <<_LT_EOF 1>&2
15465
15466*** Warning: the GNU linker, at least up to release 2.19, is reported
15467*** to be unable to reliably create shared libraries on AIX.
15468*** Therefore, libtool is disabling shared libraries support.  If you
15469*** really care for shared libraries, you may want to install binutils
15470*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15471*** You will then need to restart the configuration process.
15472
15473_LT_EOF
15474      fi
15475      ;;
15476
15477    amigaos*)
15478      case $host_cpu in
15479      powerpc)
15480            # see comment about AmigaOS4 .so support
15481            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15482            archive_expsym_cmds=''
15483        ;;
15484      m68k)
15485            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)'
15486            hardcode_libdir_flag_spec='-L$libdir'
15487            hardcode_minus_L=yes
15488        ;;
15489      esac
15490      ;;
15491
15492    beos*)
15493      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15494	allow_undefined_flag=unsupported
15495	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15496	# support --undefined.  This deserves some investigation.  FIXME
15497	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15498      else
15499	ld_shlibs=no
15500      fi
15501      ;;
15502
15503    cygwin* | mingw* | pw32* | cegcc*)
15504      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15505      # as there is no search path for DLLs.
15506      hardcode_libdir_flag_spec='-L$libdir'
15507      export_dynamic_flag_spec='$wl--export-all-symbols'
15508      allow_undefined_flag=unsupported
15509      always_export_symbols=no
15510      enable_shared_with_static_runtimes=yes
15511      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'
15512      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15513
15514      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15515        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15516	# If the export-symbols file already is a .def file, use it as
15517	# is; otherwise, prepend EXPORTS...
15518	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15519          cp $export_symbols $output_objdir/$soname.def;
15520        else
15521          echo EXPORTS > $output_objdir/$soname.def;
15522          cat $export_symbols >> $output_objdir/$soname.def;
15523        fi~
15524        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15525      else
15526	ld_shlibs=no
15527      fi
15528      ;;
15529
15530    haiku*)
15531      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15532      link_all_deplibs=yes
15533      ;;
15534
15535    os2*)
15536      hardcode_libdir_flag_spec='-L$libdir'
15537      hardcode_minus_L=yes
15538      allow_undefined_flag=unsupported
15539      shrext_cmds=.dll
15540      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15541	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15542	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15543	$ECHO EXPORTS >> $output_objdir/$libname.def~
15544	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15545	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15546	emximp -o $lib $output_objdir/$libname.def'
15547      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15548	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15549	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15550	$ECHO EXPORTS >> $output_objdir/$libname.def~
15551	prefix_cmds="$SED"~
15552	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15553	  prefix_cmds="$prefix_cmds -e 1d";
15554	fi~
15555	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15556	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15557	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15558	emximp -o $lib $output_objdir/$libname.def'
15559      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15560      enable_shared_with_static_runtimes=yes
15561      ;;
15562
15563    interix[3-9]*)
15564      hardcode_direct=no
15565      hardcode_shlibpath_var=no
15566      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15567      export_dynamic_flag_spec='$wl-E'
15568      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15569      # Instead, shared libraries are loaded at an image base (0x10000000 by
15570      # default) and relocated if they conflict, which is a slow very memory
15571      # consuming and fragmenting process.  To avoid this, we pick a random,
15572      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15573      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15574      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15575      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'
15576      ;;
15577
15578    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15579      tmp_diet=no
15580      if test linux-dietlibc = "$host_os"; then
15581	case $cc_basename in
15582	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15583	esac
15584      fi
15585      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15586	 && test no = "$tmp_diet"
15587      then
15588	tmp_addflag=' $pic_flag'
15589	tmp_sharedflag='-shared'
15590	case $cc_basename,$host_cpu in
15591        pgcc*)				# Portland Group C compiler
15592	  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'
15593	  tmp_addflag=' $pic_flag'
15594	  ;;
15595	pgf77* | pgf90* | pgf95* | pgfortran*)
15596					# Portland Group f77 and f90 compilers
15597	  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'
15598	  tmp_addflag=' $pic_flag -Mnomain' ;;
15599	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15600	  tmp_addflag=' -i_dynamic' ;;
15601	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15602	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15603	ifc* | ifort*)			# Intel Fortran compiler
15604	  tmp_addflag=' -nofor_main' ;;
15605	lf95*)				# Lahey Fortran 8.1
15606	  whole_archive_flag_spec=
15607	  tmp_sharedflag='--shared' ;;
15608        nagfor*)                        # NAGFOR 5.3
15609          tmp_sharedflag='-Wl,-shared' ;;
15610	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15611	  tmp_sharedflag='-qmkshrobj'
15612	  tmp_addflag= ;;
15613	nvcc*)	# Cuda Compiler Driver 2.2
15614	  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'
15615	  compiler_needs_object=yes
15616	  ;;
15617	esac
15618	case `$CC -V 2>&1 | sed 5q` in
15619	*Sun\ C*)			# Sun C 5.9
15620	  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'
15621	  compiler_needs_object=yes
15622	  tmp_sharedflag='-G' ;;
15623	*Sun\ F*)			# Sun Fortran 8.3
15624	  tmp_sharedflag='-G' ;;
15625	esac
15626	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15627
15628        if test yes = "$supports_anon_versioning"; then
15629          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15630            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15631            echo "local: *; };" >> $output_objdir/$libname.ver~
15632            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15633        fi
15634
15635	case $cc_basename in
15636	tcc*)
15637	  export_dynamic_flag_spec='-rdynamic'
15638	  ;;
15639	xlf* | bgf* | bgxlf* | mpixlf*)
15640	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15641	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15642	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15643	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
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              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15649	  fi
15650	  ;;
15651	esac
15652      else
15653        ld_shlibs=no
15654      fi
15655      ;;
15656
15657    netbsd* | netbsdelf*-gnu)
15658      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15659	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15660	wlarc=
15661      else
15662	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15663	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15664      fi
15665      ;;
15666
15667    solaris*)
15668      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15669	ld_shlibs=no
15670	cat <<_LT_EOF 1>&2
15671
15672*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15673*** create shared libraries on Solaris systems.  Therefore, libtool
15674*** is disabling shared libraries support.  We urge you to upgrade GNU
15675*** binutils to release 2.9.1 or newer.  Another option is to modify
15676*** your PATH or compiler configuration so that the native linker is
15677*** used, and then restart.
15678
15679_LT_EOF
15680      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15681	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15682	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15683      else
15684	ld_shlibs=no
15685      fi
15686      ;;
15687
15688    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15689      case `$LD -v 2>&1` in
15690        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15691	ld_shlibs=no
15692	cat <<_LT_EOF 1>&2
15693
15694*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15695*** reliably create shared libraries on SCO systems.  Therefore, libtool
15696*** is disabling shared libraries support.  We urge you to upgrade GNU
15697*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15698*** your PATH or compiler configuration so that the native linker is
15699*** used, and then restart.
15700
15701_LT_EOF
15702	;;
15703	*)
15704	  # For security reasons, it is highly recommended that you always
15705	  # use absolute paths for naming shared libraries, and exclude the
15706	  # DT_RUNPATH tag from executables and libraries.  But doing so
15707	  # requires that you compile everything twice, which is a pain.
15708	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15709	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15710	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15711	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15712	  else
15713	    ld_shlibs=no
15714	  fi
15715	;;
15716      esac
15717      ;;
15718
15719    sunos4*)
15720      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15721      wlarc=
15722      hardcode_direct=yes
15723      hardcode_shlibpath_var=no
15724      ;;
15725
15726    *)
15727      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15728	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15729	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15730      else
15731	ld_shlibs=no
15732      fi
15733      ;;
15734    esac
15735
15736    if test no = "$ld_shlibs"; then
15737      runpath_var=
15738      hardcode_libdir_flag_spec=
15739      export_dynamic_flag_spec=
15740      whole_archive_flag_spec=
15741    fi
15742  else
15743    # PORTME fill in a description of your system's linker (not GNU ld)
15744    case $host_os in
15745    aix3*)
15746      allow_undefined_flag=unsupported
15747      always_export_symbols=yes
15748      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'
15749      # Note: this linker hardcodes the directories in LIBPATH if there
15750      # are no directories specified by -L.
15751      hardcode_minus_L=yes
15752      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15753	# Neither direct hardcoding nor static linking is supported with a
15754	# broken collect2.
15755	hardcode_direct=unsupported
15756      fi
15757      ;;
15758
15759    aix[4-9]*)
15760      if test ia64 = "$host_cpu"; then
15761	# On IA64, the linker does run time linking by default, so we don't
15762	# have to do anything special.
15763	aix_use_runtimelinking=no
15764	exp_sym_flag='-Bexport'
15765	no_entry_flag=
15766      else
15767	# If we're using GNU nm, then we don't want the "-C" option.
15768	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15769	# Without the "-l" option, or with the "-B" option, AIX nm treats
15770	# weak defined symbols like other global defined symbols, whereas
15771	# GNU nm marks them as "W".
15772	# While the 'weak' keyword is ignored in the Export File, we need
15773	# it in the Import File for the 'aix-soname' feature, so we have
15774	# to replace the "-B" option with "-P" for AIX nm.
15775	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15776	  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'
15777	else
15778	  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'
15779	fi
15780	aix_use_runtimelinking=no
15781
15782	# Test if we are trying to use run time linking or normal
15783	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15784	# have runtime linking enabled, and use it for executables.
15785	# For shared libraries, we enable/disable runtime linking
15786	# depending on the kind of the shared library created -
15787	# when "with_aix_soname,aix_use_runtimelinking" is:
15788	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15789	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15790	#            lib.a           static archive
15791	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15792	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15793	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15794	#            lib.a(lib.so.V) shared, rtl:no
15795	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15796	#            lib.a           static archive
15797	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15798	  for ld_flag in $LDFLAGS; do
15799	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15800	    aix_use_runtimelinking=yes
15801	    break
15802	  fi
15803	  done
15804	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15805	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15806	    # so we don't have lib.a shared libs to link our executables.
15807	    # We have to force runtime linking in this case.
15808	    aix_use_runtimelinking=yes
15809	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15810	  fi
15811	  ;;
15812	esac
15813
15814	exp_sym_flag='-bexport'
15815	no_entry_flag='-bnoentry'
15816      fi
15817
15818      # When large executables or shared objects are built, AIX ld can
15819      # have problems creating the table of contents.  If linking a library
15820      # or program results in "error TOC overflow" add -mminimal-toc to
15821      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15822      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15823
15824      archive_cmds=''
15825      hardcode_direct=yes
15826      hardcode_direct_absolute=yes
15827      hardcode_libdir_separator=':'
15828      link_all_deplibs=yes
15829      file_list_spec='$wl-f,'
15830      case $with_aix_soname,$aix_use_runtimelinking in
15831      aix,*) ;; # traditional, no import file
15832      svr4,* | *,yes) # use import file
15833	# The Import File defines what to hardcode.
15834	hardcode_direct=no
15835	hardcode_direct_absolute=no
15836	;;
15837      esac
15838
15839      if test yes = "$GCC"; then
15840	case $host_os in aix4.[012]|aix4.[012].*)
15841	# We only want to do this on AIX 4.2 and lower, the check
15842	# below for broken collect2 doesn't work under 4.3+
15843	  collect2name=`$CC -print-prog-name=collect2`
15844	  if test -f "$collect2name" &&
15845	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15846	  then
15847	  # We have reworked collect2
15848	  :
15849	  else
15850	  # We have old collect2
15851	  hardcode_direct=unsupported
15852	  # It fails to find uninstalled libraries when the uninstalled
15853	  # path is not listed in the libpath.  Setting hardcode_minus_L
15854	  # to unsupported forces relinking
15855	  hardcode_minus_L=yes
15856	  hardcode_libdir_flag_spec='-L$libdir'
15857	  hardcode_libdir_separator=
15858	  fi
15859	  ;;
15860	esac
15861	shared_flag='-shared'
15862	if test yes = "$aix_use_runtimelinking"; then
15863	  shared_flag="$shared_flag "'$wl-G'
15864	fi
15865	# Need to ensure runtime linking is disabled for the traditional
15866	# shared library, or the linker may eventually find shared libraries
15867	# /with/ Import File - we do not want to mix them.
15868	shared_flag_aix='-shared'
15869	shared_flag_svr4='-shared $wl-G'
15870      else
15871	# not using gcc
15872	if test ia64 = "$host_cpu"; then
15873	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15874	# chokes on -Wl,-G. The following line is correct:
15875	  shared_flag='-G'
15876	else
15877	  if test yes = "$aix_use_runtimelinking"; then
15878	    shared_flag='$wl-G'
15879	  else
15880	    shared_flag='$wl-bM:SRE'
15881	  fi
15882	  shared_flag_aix='$wl-bM:SRE'
15883	  shared_flag_svr4='$wl-G'
15884	fi
15885      fi
15886
15887      export_dynamic_flag_spec='$wl-bexpall'
15888      # It seems that -bexpall does not export symbols beginning with
15889      # underscore (_), so it is better to generate a list of symbols to export.
15890      always_export_symbols=yes
15891      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15892	# Warning - without using the other runtime loading flags (-brtl),
15893	# -berok will link without error, but may produce a broken library.
15894	allow_undefined_flag='-berok'
15895        # Determine the default libpath from the value encoded in an
15896        # empty executable.
15897        if test set = "${lt_cv_aix_libpath+set}"; then
15898  aix_libpath=$lt_cv_aix_libpath
15899else
15900  if ${lt_cv_aix_libpath_+:} false; then :
15901  $as_echo_n "(cached) " >&6
15902else
15903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905
15906int
15907main ()
15908{
15909
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914if ac_fn_c_try_link "$LINENO"; then :
15915
15916  lt_aix_libpath_sed='
15917      /Import File Strings/,/^$/ {
15918	  /^0/ {
15919	      s/^0  *\([^ ]*\) *$/\1/
15920	      p
15921	  }
15922      }'
15923  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15924  # Check for a 64-bit object if we didn't find anything.
15925  if test -z "$lt_cv_aix_libpath_"; then
15926    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15927  fi
15928fi
15929rm -f core conftest.err conftest.$ac_objext \
15930    conftest$ac_exeext conftest.$ac_ext
15931  if test -z "$lt_cv_aix_libpath_"; then
15932    lt_cv_aix_libpath_=/usr/lib:/lib
15933  fi
15934
15935fi
15936
15937  aix_libpath=$lt_cv_aix_libpath_
15938fi
15939
15940        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15941        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
15942      else
15943	if test ia64 = "$host_cpu"; then
15944	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15945	  allow_undefined_flag="-z nodefs"
15946	  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"
15947	else
15948	 # Determine the default libpath from the value encoded in an
15949	 # empty executable.
15950	 if test set = "${lt_cv_aix_libpath+set}"; then
15951  aix_libpath=$lt_cv_aix_libpath
15952else
15953  if ${lt_cv_aix_libpath_+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h.  */
15958
15959int
15960main ()
15961{
15962
15963  ;
15964  return 0;
15965}
15966_ACEOF
15967if ac_fn_c_try_link "$LINENO"; then :
15968
15969  lt_aix_libpath_sed='
15970      /Import File Strings/,/^$/ {
15971	  /^0/ {
15972	      s/^0  *\([^ ]*\) *$/\1/
15973	      p
15974	  }
15975      }'
15976  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15977  # Check for a 64-bit object if we didn't find anything.
15978  if test -z "$lt_cv_aix_libpath_"; then
15979    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15980  fi
15981fi
15982rm -f core conftest.err conftest.$ac_objext \
15983    conftest$ac_exeext conftest.$ac_ext
15984  if test -z "$lt_cv_aix_libpath_"; then
15985    lt_cv_aix_libpath_=/usr/lib:/lib
15986  fi
15987
15988fi
15989
15990  aix_libpath=$lt_cv_aix_libpath_
15991fi
15992
15993	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15994	  # Warning - without using the other run time loading flags,
15995	  # -berok will link without error, but may produce a broken library.
15996	  no_undefined_flag=' $wl-bernotok'
15997	  allow_undefined_flag=' $wl-berok'
15998	  if test yes = "$with_gnu_ld"; then
15999	    # We only use this code for GNU lds that support --whole-archive.
16000	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16001	  else
16002	    # Exported symbols can be pulled into shared objects from archives
16003	    whole_archive_flag_spec='$convenience'
16004	  fi
16005	  archive_cmds_need_lc=yes
16006	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16007	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16008	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16009	  if test svr4 != "$with_aix_soname"; then
16010	    # This is similar to how AIX traditionally builds its shared libraries.
16011	    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'
16012	  fi
16013	  if test aix != "$with_aix_soname"; then
16014	    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'
16015	  else
16016	    # used by -dlpreopen to get the symbols
16017	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16018	  fi
16019	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16020	fi
16021      fi
16022      ;;
16023
16024    amigaos*)
16025      case $host_cpu in
16026      powerpc)
16027            # see comment about AmigaOS4 .so support
16028            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16029            archive_expsym_cmds=''
16030        ;;
16031      m68k)
16032            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)'
16033            hardcode_libdir_flag_spec='-L$libdir'
16034            hardcode_minus_L=yes
16035        ;;
16036      esac
16037      ;;
16038
16039    bsdi[45]*)
16040      export_dynamic_flag_spec=-rdynamic
16041      ;;
16042
16043    cygwin* | mingw* | pw32* | cegcc*)
16044      # When not using gcc, we currently assume that we are using
16045      # Microsoft Visual C++.
16046      # hardcode_libdir_flag_spec is actually meaningless, as there is
16047      # no search path for DLLs.
16048      case $cc_basename in
16049      cl*)
16050	# Native MSVC
16051	hardcode_libdir_flag_spec=' '
16052	allow_undefined_flag=unsupported
16053	always_export_symbols=yes
16054	file_list_spec='@'
16055	# Tell ltmain to make .lib files, not .a files.
16056	libext=lib
16057	# Tell ltmain to make .dll files, not .so files.
16058	shrext_cmds=.dll
16059	# FIXME: Setting linknames here is a bad hack.
16060	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16061	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16062            cp "$export_symbols" "$output_objdir/$soname.def";
16063            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16064          else
16065            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16066          fi~
16067          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16068          linknames='
16069	# The linker will not automatically build a static lib if we build a DLL.
16070	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16071	enable_shared_with_static_runtimes=yes
16072	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16073	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16074	# Don't use ranlib
16075	old_postinstall_cmds='chmod 644 $oldlib'
16076	postlink_cmds='lt_outputfile="@OUTPUT@"~
16077          lt_tool_outputfile="@TOOL_OUTPUT@"~
16078          case $lt_outputfile in
16079            *.exe|*.EXE) ;;
16080            *)
16081              lt_outputfile=$lt_outputfile.exe
16082              lt_tool_outputfile=$lt_tool_outputfile.exe
16083              ;;
16084          esac~
16085          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16086            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16087            $RM "$lt_outputfile.manifest";
16088          fi'
16089	;;
16090      *)
16091	# Assume MSVC wrapper
16092	hardcode_libdir_flag_spec=' '
16093	allow_undefined_flag=unsupported
16094	# Tell ltmain to make .lib files, not .a files.
16095	libext=lib
16096	# Tell ltmain to make .dll files, not .so files.
16097	shrext_cmds=.dll
16098	# FIXME: Setting linknames here is a bad hack.
16099	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16100	# The linker will automatically build a .lib file if we build a DLL.
16101	old_archive_from_new_cmds='true'
16102	# FIXME: Should let the user specify the lib program.
16103	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16104	enable_shared_with_static_runtimes=yes
16105	;;
16106      esac
16107      ;;
16108
16109    darwin* | rhapsody*)
16110
16111
16112  archive_cmds_need_lc=no
16113  hardcode_direct=no
16114  hardcode_automatic=yes
16115  hardcode_shlibpath_var=unsupported
16116  if test yes = "$lt_cv_ld_force_load"; then
16117    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\"`'
16118
16119  else
16120    whole_archive_flag_spec=''
16121  fi
16122  link_all_deplibs=yes
16123  allow_undefined_flag=$_lt_dar_allow_undefined
16124  case $cc_basename in
16125     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16126     *) _lt_dar_can_shared=$GCC ;;
16127  esac
16128  if test yes = "$_lt_dar_can_shared"; then
16129    output_verbose_link_cmd=func_echo_all
16130    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16131    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16132    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"
16133    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"
16134
16135  else
16136  ld_shlibs=no
16137  fi
16138
16139      ;;
16140
16141    dgux*)
16142      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16143      hardcode_libdir_flag_spec='-L$libdir'
16144      hardcode_shlibpath_var=no
16145      ;;
16146
16147    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16148    # support.  Future versions do this automatically, but an explicit c++rt0.o
16149    # does not break anything, and helps significantly (at the cost of a little
16150    # extra space).
16151    freebsd2.2*)
16152      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16153      hardcode_libdir_flag_spec='-R$libdir'
16154      hardcode_direct=yes
16155      hardcode_shlibpath_var=no
16156      ;;
16157
16158    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16159    freebsd2.*)
16160      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16161      hardcode_direct=yes
16162      hardcode_minus_L=yes
16163      hardcode_shlibpath_var=no
16164      ;;
16165
16166    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16167    freebsd* | dragonfly*)
16168      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16169      hardcode_libdir_flag_spec='-R$libdir'
16170      hardcode_direct=yes
16171      hardcode_shlibpath_var=no
16172      ;;
16173
16174    hpux9*)
16175      if test yes = "$GCC"; then
16176	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'
16177      else
16178	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'
16179      fi
16180      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16181      hardcode_libdir_separator=:
16182      hardcode_direct=yes
16183
16184      # hardcode_minus_L: Not really in the search PATH,
16185      # but as the default location of the library.
16186      hardcode_minus_L=yes
16187      export_dynamic_flag_spec='$wl-E'
16188      ;;
16189
16190    hpux10*)
16191      if test yes,no = "$GCC,$with_gnu_ld"; then
16192	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16193      else
16194	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16195      fi
16196      if test no = "$with_gnu_ld"; then
16197	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16198	hardcode_libdir_separator=:
16199	hardcode_direct=yes
16200	hardcode_direct_absolute=yes
16201	export_dynamic_flag_spec='$wl-E'
16202	# hardcode_minus_L: Not really in the search PATH,
16203	# but as the default location of the library.
16204	hardcode_minus_L=yes
16205      fi
16206      ;;
16207
16208    hpux11*)
16209      if test yes,no = "$GCC,$with_gnu_ld"; then
16210	case $host_cpu in
16211	hppa*64*)
16212	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16213	  ;;
16214	ia64*)
16215	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16216	  ;;
16217	*)
16218	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16219	  ;;
16220	esac
16221      else
16222	case $host_cpu in
16223	hppa*64*)
16224	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16225	  ;;
16226	ia64*)
16227	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16228	  ;;
16229	*)
16230
16231	  # Older versions of the 11.00 compiler do not understand -b yet
16232	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16233	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16234$as_echo_n "checking if $CC understands -b... " >&6; }
16235if ${lt_cv_prog_compiler__b+:} false; then :
16236  $as_echo_n "(cached) " >&6
16237else
16238  lt_cv_prog_compiler__b=no
16239   save_LDFLAGS=$LDFLAGS
16240   LDFLAGS="$LDFLAGS -b"
16241   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16242   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16243     # The linker can only warn and ignore the option if not recognized
16244     # So say no if there are warnings
16245     if test -s conftest.err; then
16246       # Append any errors to the config.log.
16247       cat conftest.err 1>&5
16248       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16249       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16250       if diff conftest.exp conftest.er2 >/dev/null; then
16251         lt_cv_prog_compiler__b=yes
16252       fi
16253     else
16254       lt_cv_prog_compiler__b=yes
16255     fi
16256   fi
16257   $RM -r conftest*
16258   LDFLAGS=$save_LDFLAGS
16259
16260fi
16261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16262$as_echo "$lt_cv_prog_compiler__b" >&6; }
16263
16264if test yes = "$lt_cv_prog_compiler__b"; then
16265    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16266else
16267    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16268fi
16269
16270	  ;;
16271	esac
16272      fi
16273      if test no = "$with_gnu_ld"; then
16274	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16275	hardcode_libdir_separator=:
16276
16277	case $host_cpu in
16278	hppa*64*|ia64*)
16279	  hardcode_direct=no
16280	  hardcode_shlibpath_var=no
16281	  ;;
16282	*)
16283	  hardcode_direct=yes
16284	  hardcode_direct_absolute=yes
16285	  export_dynamic_flag_spec='$wl-E'
16286
16287	  # hardcode_minus_L: Not really in the search PATH,
16288	  # but as the default location of the library.
16289	  hardcode_minus_L=yes
16290	  ;;
16291	esac
16292      fi
16293      ;;
16294
16295    irix5* | irix6* | nonstopux*)
16296      if test yes = "$GCC"; then
16297	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'
16298	# Try to use the -exported_symbol ld option, if it does not
16299	# work, assume that -exports_file does not work either and
16300	# implicitly export all symbols.
16301	# This should be the same for all languages, so no per-tag cache variable.
16302	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16303$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16304if ${lt_cv_irix_exported_symbol+:} false; then :
16305  $as_echo_n "(cached) " >&6
16306else
16307  save_LDFLAGS=$LDFLAGS
16308	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16309	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16310/* end confdefs.h.  */
16311int foo (void) { return 0; }
16312_ACEOF
16313if ac_fn_c_try_link "$LINENO"; then :
16314  lt_cv_irix_exported_symbol=yes
16315else
16316  lt_cv_irix_exported_symbol=no
16317fi
16318rm -f core conftest.err conftest.$ac_objext \
16319    conftest$ac_exeext conftest.$ac_ext
16320           LDFLAGS=$save_LDFLAGS
16321fi
16322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16323$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16324	if test yes = "$lt_cv_irix_exported_symbol"; then
16325          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'
16326	fi
16327	link_all_deplibs=no
16328      else
16329	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'
16330	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'
16331      fi
16332      archive_cmds_need_lc='no'
16333      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16334      hardcode_libdir_separator=:
16335      inherit_rpath=yes
16336      link_all_deplibs=yes
16337      ;;
16338
16339    linux*)
16340      case $cc_basename in
16341      tcc*)
16342	# Fabrice Bellard et al's Tiny C Compiler
16343	ld_shlibs=yes
16344	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16345	;;
16346      esac
16347      ;;
16348
16349    netbsd* | netbsdelf*-gnu)
16350      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16351	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16352      else
16353	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16354      fi
16355      hardcode_libdir_flag_spec='-R$libdir'
16356      hardcode_direct=yes
16357      hardcode_shlibpath_var=no
16358      ;;
16359
16360    newsos6)
16361      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16362      hardcode_direct=yes
16363      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16364      hardcode_libdir_separator=:
16365      hardcode_shlibpath_var=no
16366      ;;
16367
16368    *nto* | *qnx*)
16369      ;;
16370
16371    openbsd* | bitrig*)
16372      if test -f /usr/libexec/ld.so; then
16373	hardcode_direct=yes
16374	hardcode_shlibpath_var=no
16375	hardcode_direct_absolute=yes
16376	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16377	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16378	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16379	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16380	  export_dynamic_flag_spec='$wl-E'
16381	else
16382	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16383	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16384	fi
16385      else
16386	ld_shlibs=no
16387      fi
16388      ;;
16389
16390    os2*)
16391      hardcode_libdir_flag_spec='-L$libdir'
16392      hardcode_minus_L=yes
16393      allow_undefined_flag=unsupported
16394      shrext_cmds=.dll
16395      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16396	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16397	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16398	$ECHO EXPORTS >> $output_objdir/$libname.def~
16399	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16400	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16401	emximp -o $lib $output_objdir/$libname.def'
16402      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16403	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16404	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16405	$ECHO EXPORTS >> $output_objdir/$libname.def~
16406	prefix_cmds="$SED"~
16407	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16408	  prefix_cmds="$prefix_cmds -e 1d";
16409	fi~
16410	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16411	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16412	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16413	emximp -o $lib $output_objdir/$libname.def'
16414      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16415      enable_shared_with_static_runtimes=yes
16416      ;;
16417
16418    osf3*)
16419      if test yes = "$GCC"; then
16420	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16421	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'
16422      else
16423	allow_undefined_flag=' -expect_unresolved \*'
16424	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'
16425      fi
16426      archive_cmds_need_lc='no'
16427      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16428      hardcode_libdir_separator=:
16429      ;;
16430
16431    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16432      if test yes = "$GCC"; then
16433	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16434	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'
16435	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16436      else
16437	allow_undefined_flag=' -expect_unresolved \*'
16438	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'
16439	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~
16440          $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'
16441
16442	# Both c and cxx compiler support -rpath directly
16443	hardcode_libdir_flag_spec='-rpath $libdir'
16444      fi
16445      archive_cmds_need_lc='no'
16446      hardcode_libdir_separator=:
16447      ;;
16448
16449    solaris*)
16450      no_undefined_flag=' -z defs'
16451      if test yes = "$GCC"; then
16452	wlarc='$wl'
16453	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16454	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16455          $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'
16456      else
16457	case `$CC -V 2>&1` in
16458	*"Compilers 5.0"*)
16459	  wlarc=''
16460	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16461	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16462            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16463	  ;;
16464	*)
16465	  wlarc='$wl'
16466	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16467	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16468            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16469	  ;;
16470	esac
16471      fi
16472      hardcode_libdir_flag_spec='-R$libdir'
16473      hardcode_shlibpath_var=no
16474      case $host_os in
16475      solaris2.[0-5] | solaris2.[0-5].*) ;;
16476      *)
16477	# The compiler driver will combine and reorder linker options,
16478	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16479	# but is careful enough not to reorder.
16480	# Supported since Solaris 2.6 (maybe 2.5.1?)
16481	if test yes = "$GCC"; then
16482	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16483	else
16484	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16485	fi
16486	;;
16487      esac
16488      link_all_deplibs=yes
16489      ;;
16490
16491    sunos4*)
16492      if test sequent = "$host_vendor"; then
16493	# Use $CC to link under sequent, because it throws in some extra .o
16494	# files that make .init and .fini sections work.
16495	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16496      else
16497	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16498      fi
16499      hardcode_libdir_flag_spec='-L$libdir'
16500      hardcode_direct=yes
16501      hardcode_minus_L=yes
16502      hardcode_shlibpath_var=no
16503      ;;
16504
16505    sysv4)
16506      case $host_vendor in
16507	sni)
16508	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16509	  hardcode_direct=yes # is this really true???
16510	;;
16511	siemens)
16512	  ## LD is ld it makes a PLAMLIB
16513	  ## CC just makes a GrossModule.
16514	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16515	  reload_cmds='$CC -r -o $output$reload_objs'
16516	  hardcode_direct=no
16517        ;;
16518	motorola)
16519	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16520	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16521	;;
16522      esac
16523      runpath_var='LD_RUN_PATH'
16524      hardcode_shlibpath_var=no
16525      ;;
16526
16527    sysv4.3*)
16528      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16529      hardcode_shlibpath_var=no
16530      export_dynamic_flag_spec='-Bexport'
16531      ;;
16532
16533    sysv4*MP*)
16534      if test -d /usr/nec; then
16535	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16536	hardcode_shlibpath_var=no
16537	runpath_var=LD_RUN_PATH
16538	hardcode_runpath_var=yes
16539	ld_shlibs=yes
16540      fi
16541      ;;
16542
16543    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16544      no_undefined_flag='$wl-z,text'
16545      archive_cmds_need_lc=no
16546      hardcode_shlibpath_var=no
16547      runpath_var='LD_RUN_PATH'
16548
16549      if test yes = "$GCC"; then
16550	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16551	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16552      else
16553	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16554	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16555      fi
16556      ;;
16557
16558    sysv5* | sco3.2v5* | sco5v6*)
16559      # Note: We CANNOT use -z defs as we might desire, because we do not
16560      # link with -lc, and that would cause any symbols used from libc to
16561      # always be unresolved, which means just about no library would
16562      # ever link correctly.  If we're not using GNU ld we use -z text
16563      # though, which does catch some bad symbols but isn't as heavy-handed
16564      # as -z defs.
16565      no_undefined_flag='$wl-z,text'
16566      allow_undefined_flag='$wl-z,nodefs'
16567      archive_cmds_need_lc=no
16568      hardcode_shlibpath_var=no
16569      hardcode_libdir_flag_spec='$wl-R,$libdir'
16570      hardcode_libdir_separator=':'
16571      link_all_deplibs=yes
16572      export_dynamic_flag_spec='$wl-Bexport'
16573      runpath_var='LD_RUN_PATH'
16574
16575      if test yes = "$GCC"; then
16576	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16577	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16578      else
16579	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16580	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16581      fi
16582      ;;
16583
16584    uts4*)
16585      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16586      hardcode_libdir_flag_spec='-L$libdir'
16587      hardcode_shlibpath_var=no
16588      ;;
16589
16590    *)
16591      ld_shlibs=no
16592      ;;
16593    esac
16594
16595    if test sni = "$host_vendor"; then
16596      case $host in
16597      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16598	export_dynamic_flag_spec='$wl-Blargedynsym'
16599	;;
16600      esac
16601    fi
16602  fi
16603
16604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16605$as_echo "$ld_shlibs" >&6; }
16606test no = "$ld_shlibs" && can_build_shared=no
16607
16608with_gnu_ld=$with_gnu_ld
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624#
16625# Do we need to explicitly link libc?
16626#
16627case "x$archive_cmds_need_lc" in
16628x|xyes)
16629  # Assume -lc should be added
16630  archive_cmds_need_lc=yes
16631
16632  if test yes,yes = "$GCC,$enable_shared"; then
16633    case $archive_cmds in
16634    *'~'*)
16635      # FIXME: we may have to deal with multi-command sequences.
16636      ;;
16637    '$CC '*)
16638      # Test whether the compiler implicitly links with -lc since on some
16639      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16640      # to ld, don't add -lc before -lgcc.
16641      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16642$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16643if ${lt_cv_archive_cmds_need_lc+:} false; then :
16644  $as_echo_n "(cached) " >&6
16645else
16646  $RM conftest*
16647	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16648
16649	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16650  (eval $ac_compile) 2>&5
16651  ac_status=$?
16652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16653  test $ac_status = 0; } 2>conftest.err; then
16654	  soname=conftest
16655	  lib=conftest
16656	  libobjs=conftest.$ac_objext
16657	  deplibs=
16658	  wl=$lt_prog_compiler_wl
16659	  pic_flag=$lt_prog_compiler_pic
16660	  compiler_flags=-v
16661	  linker_flags=-v
16662	  verstring=
16663	  output_objdir=.
16664	  libname=conftest
16665	  lt_save_allow_undefined_flag=$allow_undefined_flag
16666	  allow_undefined_flag=
16667	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16668  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16669  ac_status=$?
16670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16671  test $ac_status = 0; }
16672	  then
16673	    lt_cv_archive_cmds_need_lc=no
16674	  else
16675	    lt_cv_archive_cmds_need_lc=yes
16676	  fi
16677	  allow_undefined_flag=$lt_save_allow_undefined_flag
16678	else
16679	  cat conftest.err 1>&5
16680	fi
16681	$RM conftest*
16682
16683fi
16684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16685$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16686      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16687      ;;
16688    esac
16689  fi
16690  ;;
16691esac
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16845$as_echo_n "checking dynamic linker characteristics... " >&6; }
16846
16847if test yes = "$GCC"; then
16848  case $host_os in
16849    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16850    *) lt_awk_arg='/^libraries:/' ;;
16851  esac
16852  case $host_os in
16853    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16854    *) lt_sed_strip_eq='s|=/|/|g' ;;
16855  esac
16856  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16857  case $lt_search_path_spec in
16858  *\;*)
16859    # if the path contains ";" then we assume it to be the separator
16860    # otherwise default to the standard path separator (i.e. ":") - it is
16861    # assumed that no part of a normal pathname contains ";" but that should
16862    # okay in the real world where ";" in dirpaths is itself problematic.
16863    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16864    ;;
16865  *)
16866    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16867    ;;
16868  esac
16869  # Ok, now we have the path, separated by spaces, we can step through it
16870  # and add multilib dir if necessary...
16871  lt_tmp_lt_search_path_spec=
16872  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16873  # ...but if some path component already ends with the multilib dir we assume
16874  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16875  case "$lt_multi_os_dir; $lt_search_path_spec " in
16876  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16877    lt_multi_os_dir=
16878    ;;
16879  esac
16880  for lt_sys_path in $lt_search_path_spec; do
16881    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16882      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16883    elif test -n "$lt_multi_os_dir"; then
16884      test -d "$lt_sys_path" && \
16885	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16886    fi
16887  done
16888  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16889BEGIN {RS = " "; FS = "/|\n";} {
16890  lt_foo = "";
16891  lt_count = 0;
16892  for (lt_i = NF; lt_i > 0; lt_i--) {
16893    if ($lt_i != "" && $lt_i != ".") {
16894      if ($lt_i == "..") {
16895        lt_count++;
16896      } else {
16897        if (lt_count == 0) {
16898          lt_foo = "/" $lt_i lt_foo;
16899        } else {
16900          lt_count--;
16901        }
16902      }
16903    }
16904  }
16905  if (lt_foo != "") { lt_freq[lt_foo]++; }
16906  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16907}'`
16908  # AWK program above erroneously prepends '/' to C:/dos/paths
16909  # for these hosts.
16910  case $host_os in
16911    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16912      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16913  esac
16914  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16915else
16916  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16917fi
16918library_names_spec=
16919libname_spec='lib$name'
16920soname_spec=
16921shrext_cmds=.so
16922postinstall_cmds=
16923postuninstall_cmds=
16924finish_cmds=
16925finish_eval=
16926shlibpath_var=
16927shlibpath_overrides_runpath=unknown
16928version_type=none
16929dynamic_linker="$host_os ld.so"
16930sys_lib_dlsearch_path_spec="/lib /usr/lib"
16931need_lib_prefix=unknown
16932hardcode_into_libs=no
16933
16934# when you set need_version to no, make sure it does not cause -set_version
16935# flags to be left without arguments
16936need_version=unknown
16937
16938
16939
16940case $host_os in
16941aix3*)
16942  version_type=linux # correct to gnu/linux during the next big refactor
16943  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16944  shlibpath_var=LIBPATH
16945
16946  # AIX 3 has no versioning support, so we append a major version to the name.
16947  soname_spec='$libname$release$shared_ext$major'
16948  ;;
16949
16950aix[4-9]*)
16951  version_type=linux # correct to gnu/linux during the next big refactor
16952  need_lib_prefix=no
16953  need_version=no
16954  hardcode_into_libs=yes
16955  if test ia64 = "$host_cpu"; then
16956    # AIX 5 supports IA64
16957    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16958    shlibpath_var=LD_LIBRARY_PATH
16959  else
16960    # With GCC up to 2.95.x, collect2 would create an import file
16961    # for dependence libraries.  The import file would start with
16962    # the line '#! .'.  This would cause the generated library to
16963    # depend on '.', always an invalid library.  This was fixed in
16964    # development snapshots of GCC prior to 3.0.
16965    case $host_os in
16966      aix4 | aix4.[01] | aix4.[01].*)
16967      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16968	   echo ' yes '
16969	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16970	:
16971      else
16972	can_build_shared=no
16973      fi
16974      ;;
16975    esac
16976    # Using Import Files as archive members, it is possible to support
16977    # filename-based versioning of shared library archives on AIX. While
16978    # this would work for both with and without runtime linking, it will
16979    # prevent static linking of such archives. So we do filename-based
16980    # shared library versioning with .so extension only, which is used
16981    # when both runtime linking and shared linking is enabled.
16982    # Unfortunately, runtime linking may impact performance, so we do
16983    # not want this to be the default eventually. Also, we use the
16984    # versioned .so libs for executables only if there is the -brtl
16985    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16986    # To allow for filename-based versioning support, we need to create
16987    # libNAME.so.V as an archive file, containing:
16988    # *) an Import File, referring to the versioned filename of the
16989    #    archive as well as the shared archive member, telling the
16990    #    bitwidth (32 or 64) of that shared object, and providing the
16991    #    list of exported symbols of that shared object, eventually
16992    #    decorated with the 'weak' keyword
16993    # *) the shared object with the F_LOADONLY flag set, to really avoid
16994    #    it being seen by the linker.
16995    # At run time we better use the real file rather than another symlink,
16996    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16997
16998    case $with_aix_soname,$aix_use_runtimelinking in
16999    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17000    # soname into executable. Probably we can add versioning support to
17001    # collect2, so additional links can be useful in future.
17002    aix,yes) # traditional libtool
17003      dynamic_linker='AIX unversionable lib.so'
17004      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17005      # instead of lib<name>.a to let people know that these are not
17006      # typical AIX shared libraries.
17007      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17008      ;;
17009    aix,no) # traditional AIX only
17010      dynamic_linker='AIX lib.a(lib.so.V)'
17011      # We preserve .a as extension for shared libraries through AIX4.2
17012      # and later when we are not doing run time linking.
17013      library_names_spec='$libname$release.a $libname.a'
17014      soname_spec='$libname$release$shared_ext$major'
17015      ;;
17016    svr4,*) # full svr4 only
17017      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17018      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17019      # We do not specify a path in Import Files, so LIBPATH fires.
17020      shlibpath_overrides_runpath=yes
17021      ;;
17022    *,yes) # both, prefer svr4
17023      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17024      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17025      # unpreferred sharedlib libNAME.a needs extra handling
17026      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"'
17027      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"'
17028      # We do not specify a path in Import Files, so LIBPATH fires.
17029      shlibpath_overrides_runpath=yes
17030      ;;
17031    *,no) # both, prefer aix
17032      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17033      library_names_spec='$libname$release.a $libname.a'
17034      soname_spec='$libname$release$shared_ext$major'
17035      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17036      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)'
17037      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"'
17038      ;;
17039    esac
17040    shlibpath_var=LIBPATH
17041  fi
17042  ;;
17043
17044amigaos*)
17045  case $host_cpu in
17046  powerpc)
17047    # Since July 2007 AmigaOS4 officially supports .so libraries.
17048    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17049    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17050    ;;
17051  m68k)
17052    library_names_spec='$libname.ixlibrary $libname.a'
17053    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17054    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'
17055    ;;
17056  esac
17057  ;;
17058
17059beos*)
17060  library_names_spec='$libname$shared_ext'
17061  dynamic_linker="$host_os ld.so"
17062  shlibpath_var=LIBRARY_PATH
17063  ;;
17064
17065bsdi[45]*)
17066  version_type=linux # correct to gnu/linux during the next big refactor
17067  need_version=no
17068  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17069  soname_spec='$libname$release$shared_ext$major'
17070  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17071  shlibpath_var=LD_LIBRARY_PATH
17072  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17073  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17074  # the default ld.so.conf also contains /usr/contrib/lib and
17075  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17076  # libtool to hard-code these into programs
17077  ;;
17078
17079cygwin* | mingw* | pw32* | cegcc*)
17080  version_type=windows
17081  shrext_cmds=.dll
17082  need_version=no
17083  need_lib_prefix=no
17084
17085  case $GCC,$cc_basename in
17086  yes,*)
17087    # gcc
17088    library_names_spec='$libname.dll.a'
17089    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17090    postinstall_cmds='base_file=`basename \$file`~
17091      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17092      dldir=$destdir/`dirname \$dlpath`~
17093      test -d \$dldir || mkdir -p \$dldir~
17094      $install_prog $dir/$dlname \$dldir/$dlname~
17095      chmod a+x \$dldir/$dlname~
17096      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17097        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17098      fi'
17099    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17100      dlpath=$dir/\$dldll~
17101       $RM \$dlpath'
17102    shlibpath_overrides_runpath=yes
17103
17104    case $host_os in
17105    cygwin*)
17106      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17107      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17108
17109      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17110      ;;
17111    mingw* | cegcc*)
17112      # MinGW DLLs use traditional 'lib' prefix
17113      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17114      ;;
17115    pw32*)
17116      # pw32 DLLs use 'pw' prefix rather than 'lib'
17117      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17118      ;;
17119    esac
17120    dynamic_linker='Win32 ld.exe'
17121    ;;
17122
17123  *,cl*)
17124    # Native MSVC
17125    libname_spec='$name'
17126    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17127    library_names_spec='$libname.dll.lib'
17128
17129    case $build_os in
17130    mingw*)
17131      sys_lib_search_path_spec=
17132      lt_save_ifs=$IFS
17133      IFS=';'
17134      for lt_path in $LIB
17135      do
17136        IFS=$lt_save_ifs
17137        # Let DOS variable expansion print the short 8.3 style file name.
17138        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17139        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17140      done
17141      IFS=$lt_save_ifs
17142      # Convert to MSYS style.
17143      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17144      ;;
17145    cygwin*)
17146      # Convert to unix form, then to dos form, then back to unix form
17147      # but this time dos style (no spaces!) so that the unix form looks
17148      # like /cygdrive/c/PROGRA~1:/cygdr...
17149      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17150      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17151      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17152      ;;
17153    *)
17154      sys_lib_search_path_spec=$LIB
17155      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17156        # It is most probably a Windows format PATH.
17157        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17158      else
17159        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17160      fi
17161      # FIXME: find the short name or the path components, as spaces are
17162      # common. (e.g. "Program Files" -> "PROGRA~1")
17163      ;;
17164    esac
17165
17166    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17167    postinstall_cmds='base_file=`basename \$file`~
17168      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17169      dldir=$destdir/`dirname \$dlpath`~
17170      test -d \$dldir || mkdir -p \$dldir~
17171      $install_prog $dir/$dlname \$dldir/$dlname'
17172    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17173      dlpath=$dir/\$dldll~
17174       $RM \$dlpath'
17175    shlibpath_overrides_runpath=yes
17176    dynamic_linker='Win32 link.exe'
17177    ;;
17178
17179  *)
17180    # Assume MSVC wrapper
17181    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17182    dynamic_linker='Win32 ld.exe'
17183    ;;
17184  esac
17185  # FIXME: first we should search . and the directory the executable is in
17186  shlibpath_var=PATH
17187  ;;
17188
17189darwin* | rhapsody*)
17190  dynamic_linker="$host_os dyld"
17191  version_type=darwin
17192  need_lib_prefix=no
17193  need_version=no
17194  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17195  soname_spec='$libname$release$major$shared_ext'
17196  shlibpath_overrides_runpath=yes
17197  shlibpath_var=DYLD_LIBRARY_PATH
17198  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17199
17200  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17201  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17202  ;;
17203
17204dgux*)
17205  version_type=linux # correct to gnu/linux during the next big refactor
17206  need_lib_prefix=no
17207  need_version=no
17208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17209  soname_spec='$libname$release$shared_ext$major'
17210  shlibpath_var=LD_LIBRARY_PATH
17211  ;;
17212
17213freebsd* | dragonfly*)
17214  # DragonFly does not have aout.  When/if they implement a new
17215  # versioning mechanism, adjust this.
17216  if test -x /usr/bin/objformat; then
17217    objformat=`/usr/bin/objformat`
17218  else
17219    case $host_os in
17220    freebsd[23].*) objformat=aout ;;
17221    *) objformat=elf ;;
17222    esac
17223  fi
17224  version_type=freebsd-$objformat
17225  case $version_type in
17226    freebsd-elf*)
17227      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17228      soname_spec='$libname$release$shared_ext$major'
17229      need_version=no
17230      need_lib_prefix=no
17231      ;;
17232    freebsd-*)
17233      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17234      need_version=yes
17235      ;;
17236  esac
17237  shlibpath_var=LD_LIBRARY_PATH
17238  case $host_os in
17239  freebsd2.*)
17240    shlibpath_overrides_runpath=yes
17241    ;;
17242  freebsd3.[01]* | freebsdelf3.[01]*)
17243    shlibpath_overrides_runpath=yes
17244    hardcode_into_libs=yes
17245    ;;
17246  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17247  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17248    shlibpath_overrides_runpath=no
17249    hardcode_into_libs=yes
17250    ;;
17251  *) # from 4.6 on, and DragonFly
17252    shlibpath_overrides_runpath=yes
17253    hardcode_into_libs=yes
17254    ;;
17255  esac
17256  ;;
17257
17258haiku*)
17259  version_type=linux # correct to gnu/linux during the next big refactor
17260  need_lib_prefix=no
17261  need_version=no
17262  dynamic_linker="$host_os runtime_loader"
17263  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17264  soname_spec='$libname$release$shared_ext$major'
17265  shlibpath_var=LIBRARY_PATH
17266  shlibpath_overrides_runpath=no
17267  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17268  hardcode_into_libs=yes
17269  ;;
17270
17271hpux9* | hpux10* | hpux11*)
17272  # Give a soname corresponding to the major version so that dld.sl refuses to
17273  # link against other versions.
17274  version_type=sunos
17275  need_lib_prefix=no
17276  need_version=no
17277  case $host_cpu in
17278  ia64*)
17279    shrext_cmds='.so'
17280    hardcode_into_libs=yes
17281    dynamic_linker="$host_os dld.so"
17282    shlibpath_var=LD_LIBRARY_PATH
17283    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17284    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17285    soname_spec='$libname$release$shared_ext$major'
17286    if test 32 = "$HPUX_IA64_MODE"; then
17287      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17288      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17289    else
17290      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17291      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17292    fi
17293    ;;
17294  hppa*64*)
17295    shrext_cmds='.sl'
17296    hardcode_into_libs=yes
17297    dynamic_linker="$host_os dld.sl"
17298    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17299    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17300    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17301    soname_spec='$libname$release$shared_ext$major'
17302    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17303    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17304    ;;
17305  *)
17306    shrext_cmds='.sl'
17307    dynamic_linker="$host_os dld.sl"
17308    shlibpath_var=SHLIB_PATH
17309    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17310    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17311    soname_spec='$libname$release$shared_ext$major'
17312    ;;
17313  esac
17314  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17315  postinstall_cmds='chmod 555 $lib'
17316  # or fails outright, so override atomically:
17317  install_override_mode=555
17318  ;;
17319
17320interix[3-9]*)
17321  version_type=linux # correct to gnu/linux during the next big refactor
17322  need_lib_prefix=no
17323  need_version=no
17324  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17325  soname_spec='$libname$release$shared_ext$major'
17326  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17327  shlibpath_var=LD_LIBRARY_PATH
17328  shlibpath_overrides_runpath=no
17329  hardcode_into_libs=yes
17330  ;;
17331
17332irix5* | irix6* | nonstopux*)
17333  case $host_os in
17334    nonstopux*) version_type=nonstopux ;;
17335    *)
17336	if test yes = "$lt_cv_prog_gnu_ld"; then
17337		version_type=linux # correct to gnu/linux during the next big refactor
17338	else
17339		version_type=irix
17340	fi ;;
17341  esac
17342  need_lib_prefix=no
17343  need_version=no
17344  soname_spec='$libname$release$shared_ext$major'
17345  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17346  case $host_os in
17347  irix5* | nonstopux*)
17348    libsuff= shlibsuff=
17349    ;;
17350  *)
17351    case $LD in # libtool.m4 will add one of these switches to LD
17352    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17353      libsuff= shlibsuff= libmagic=32-bit;;
17354    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17355      libsuff=32 shlibsuff=N32 libmagic=N32;;
17356    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17357      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17358    *) libsuff= shlibsuff= libmagic=never-match;;
17359    esac
17360    ;;
17361  esac
17362  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17363  shlibpath_overrides_runpath=no
17364  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17365  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17366  hardcode_into_libs=yes
17367  ;;
17368
17369# No shared lib support for Linux oldld, aout, or coff.
17370linux*oldld* | linux*aout* | linux*coff*)
17371  dynamic_linker=no
17372  ;;
17373
17374linux*android*)
17375  version_type=none # Android doesn't support versioned libraries.
17376  need_lib_prefix=no
17377  need_version=no
17378  library_names_spec='$libname$release$shared_ext'
17379  soname_spec='$libname$release$shared_ext'
17380  finish_cmds=
17381  shlibpath_var=LD_LIBRARY_PATH
17382  shlibpath_overrides_runpath=yes
17383
17384  # This implies no fast_install, which is unacceptable.
17385  # Some rework will be needed to allow for fast_install
17386  # before this can be enabled.
17387  hardcode_into_libs=yes
17388
17389  dynamic_linker='Android linker'
17390  # Don't embed -rpath directories since the linker doesn't support them.
17391  hardcode_libdir_flag_spec='-L$libdir'
17392  ;;
17393
17394# This must be glibc/ELF.
17395linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17396  version_type=linux # correct to gnu/linux during the next big refactor
17397  need_lib_prefix=no
17398  need_version=no
17399  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17400  soname_spec='$libname$release$shared_ext$major'
17401  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17402  shlibpath_var=LD_LIBRARY_PATH
17403  shlibpath_overrides_runpath=no
17404
17405  # Some binutils ld are patched to set DT_RUNPATH
17406  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17407  $as_echo_n "(cached) " >&6
17408else
17409  lt_cv_shlibpath_overrides_runpath=no
17410    save_LDFLAGS=$LDFLAGS
17411    save_libdir=$libdir
17412    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17413	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415/* end confdefs.h.  */
17416
17417int
17418main ()
17419{
17420
17421  ;
17422  return 0;
17423}
17424_ACEOF
17425if ac_fn_c_try_link "$LINENO"; then :
17426  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17427  lt_cv_shlibpath_overrides_runpath=yes
17428fi
17429fi
17430rm -f core conftest.err conftest.$ac_objext \
17431    conftest$ac_exeext conftest.$ac_ext
17432    LDFLAGS=$save_LDFLAGS
17433    libdir=$save_libdir
17434
17435fi
17436
17437  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17438
17439  # This implies no fast_install, which is unacceptable.
17440  # Some rework will be needed to allow for fast_install
17441  # before this can be enabled.
17442  hardcode_into_libs=yes
17443
17444  # Ideally, we could use ldconfig to report *all* directores which are
17445  # searched for libraries, however this is still not possible.  Aside from not
17446  # being certain /sbin/ldconfig is available, command
17447  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17448  # even though it is searched at run-time.  Try to do the best guess by
17449  # appending ld.so.conf contents (and includes) to the search path.
17450  if test -f /etc/ld.so.conf; then
17451    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' ' '`
17452    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17453  fi
17454
17455  # We used to test for /lib/ld.so.1 and disable shared libraries on
17456  # powerpc, because MkLinux only supported shared libraries with the
17457  # GNU dynamic linker.  Since this was broken with cross compilers,
17458  # most powerpc-linux boxes support dynamic linking these days and
17459  # people can always --disable-shared, the test was removed, and we
17460  # assume the GNU/Linux dynamic linker is in use.
17461  dynamic_linker='GNU/Linux ld.so'
17462  ;;
17463
17464netbsdelf*-gnu)
17465  version_type=linux
17466  need_lib_prefix=no
17467  need_version=no
17468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17469  soname_spec='${libname}${release}${shared_ext}$major'
17470  shlibpath_var=LD_LIBRARY_PATH
17471  shlibpath_overrides_runpath=no
17472  hardcode_into_libs=yes
17473  dynamic_linker='NetBSD ld.elf_so'
17474  ;;
17475
17476netbsd*)
17477  version_type=sunos
17478  need_lib_prefix=no
17479  need_version=no
17480  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17481    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17482    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17483    dynamic_linker='NetBSD (a.out) ld.so'
17484  else
17485    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17486    soname_spec='$libname$release$shared_ext$major'
17487    dynamic_linker='NetBSD ld.elf_so'
17488  fi
17489  shlibpath_var=LD_LIBRARY_PATH
17490  shlibpath_overrides_runpath=yes
17491  hardcode_into_libs=yes
17492  ;;
17493
17494newsos6)
17495  version_type=linux # correct to gnu/linux during the next big refactor
17496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17497  shlibpath_var=LD_LIBRARY_PATH
17498  shlibpath_overrides_runpath=yes
17499  ;;
17500
17501*nto* | *qnx*)
17502  version_type=qnx
17503  need_lib_prefix=no
17504  need_version=no
17505  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17506  soname_spec='$libname$release$shared_ext$major'
17507  shlibpath_var=LD_LIBRARY_PATH
17508  shlibpath_overrides_runpath=no
17509  hardcode_into_libs=yes
17510  dynamic_linker='ldqnx.so'
17511  ;;
17512
17513openbsd* | bitrig*)
17514  version_type=sunos
17515  sys_lib_dlsearch_path_spec=/usr/lib
17516  need_lib_prefix=no
17517  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17518    need_version=no
17519  else
17520    need_version=yes
17521  fi
17522  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17523  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17524  shlibpath_var=LD_LIBRARY_PATH
17525  shlibpath_overrides_runpath=yes
17526  ;;
17527
17528os2*)
17529  libname_spec='$name'
17530  version_type=windows
17531  shrext_cmds=.dll
17532  need_version=no
17533  need_lib_prefix=no
17534  # OS/2 can only load a DLL with a base name of 8 characters or less.
17535  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17536    v=$($ECHO $release$versuffix | tr -d .-);
17537    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17538    $ECHO $n$v`$shared_ext'
17539  library_names_spec='${libname}_dll.$libext'
17540  dynamic_linker='OS/2 ld.exe'
17541  shlibpath_var=BEGINLIBPATH
17542  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17543  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17544  postinstall_cmds='base_file=`basename \$file`~
17545    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17546    dldir=$destdir/`dirname \$dlpath`~
17547    test -d \$dldir || mkdir -p \$dldir~
17548    $install_prog $dir/$dlname \$dldir/$dlname~
17549    chmod a+x \$dldir/$dlname~
17550    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17551      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17552    fi'
17553  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17554    dlpath=$dir/\$dldll~
17555    $RM \$dlpath'
17556  ;;
17557
17558osf3* | osf4* | osf5*)
17559  version_type=osf
17560  need_lib_prefix=no
17561  need_version=no
17562  soname_spec='$libname$release$shared_ext$major'
17563  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17564  shlibpath_var=LD_LIBRARY_PATH
17565  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17566  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17567  ;;
17568
17569rdos*)
17570  dynamic_linker=no
17571  ;;
17572
17573solaris*)
17574  version_type=linux # correct to gnu/linux during the next big refactor
17575  need_lib_prefix=no
17576  need_version=no
17577  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17578  soname_spec='$libname$release$shared_ext$major'
17579  shlibpath_var=LD_LIBRARY_PATH
17580  shlibpath_overrides_runpath=yes
17581  hardcode_into_libs=yes
17582  # ldd complains unless libraries are executable
17583  postinstall_cmds='chmod +x $lib'
17584  ;;
17585
17586sunos4*)
17587  version_type=sunos
17588  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17589  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17590  shlibpath_var=LD_LIBRARY_PATH
17591  shlibpath_overrides_runpath=yes
17592  if test yes = "$with_gnu_ld"; then
17593    need_lib_prefix=no
17594  fi
17595  need_version=yes
17596  ;;
17597
17598sysv4 | sysv4.3*)
17599  version_type=linux # correct to gnu/linux during the next big refactor
17600  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17601  soname_spec='$libname$release$shared_ext$major'
17602  shlibpath_var=LD_LIBRARY_PATH
17603  case $host_vendor in
17604    sni)
17605      shlibpath_overrides_runpath=no
17606      need_lib_prefix=no
17607      runpath_var=LD_RUN_PATH
17608      ;;
17609    siemens)
17610      need_lib_prefix=no
17611      ;;
17612    motorola)
17613      need_lib_prefix=no
17614      need_version=no
17615      shlibpath_overrides_runpath=no
17616      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17617      ;;
17618  esac
17619  ;;
17620
17621sysv4*MP*)
17622  if test -d /usr/nec; then
17623    version_type=linux # correct to gnu/linux during the next big refactor
17624    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17625    soname_spec='$libname$shared_ext.$major'
17626    shlibpath_var=LD_LIBRARY_PATH
17627  fi
17628  ;;
17629
17630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17631  version_type=sco
17632  need_lib_prefix=no
17633  need_version=no
17634  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17635  soname_spec='$libname$release$shared_ext$major'
17636  shlibpath_var=LD_LIBRARY_PATH
17637  shlibpath_overrides_runpath=yes
17638  hardcode_into_libs=yes
17639  if test yes = "$with_gnu_ld"; then
17640    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17641  else
17642    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17643    case $host_os in
17644      sco3.2v5*)
17645        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17646	;;
17647    esac
17648  fi
17649  sys_lib_dlsearch_path_spec='/usr/lib'
17650  ;;
17651
17652tpf*)
17653  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17654  version_type=linux # correct to gnu/linux during the next big refactor
17655  need_lib_prefix=no
17656  need_version=no
17657  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17658  shlibpath_var=LD_LIBRARY_PATH
17659  shlibpath_overrides_runpath=no
17660  hardcode_into_libs=yes
17661  ;;
17662
17663uts4*)
17664  version_type=linux # correct to gnu/linux during the next big refactor
17665  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17666  soname_spec='$libname$release$shared_ext$major'
17667  shlibpath_var=LD_LIBRARY_PATH
17668  ;;
17669
17670*)
17671  dynamic_linker=no
17672  ;;
17673esac
17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17675$as_echo "$dynamic_linker" >&6; }
17676test no = "$dynamic_linker" && can_build_shared=no
17677
17678variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17679if test yes = "$GCC"; then
17680  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17681fi
17682
17683if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17684  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17685fi
17686
17687if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17688  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17689fi
17690
17691# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17692configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17693
17694# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17695func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17696
17697# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17698configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17797$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17798hardcode_action=
17799if test -n "$hardcode_libdir_flag_spec" ||
17800   test -n "$runpath_var" ||
17801   test yes = "$hardcode_automatic"; then
17802
17803  # We can hardcode non-existent directories.
17804  if test no != "$hardcode_direct" &&
17805     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17806     # have to relink, otherwise we might link with an installed library
17807     # when we should be linking with a yet-to-be-installed one
17808     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17809     test no != "$hardcode_minus_L"; then
17810    # Linking always hardcodes the temporary library directory.
17811    hardcode_action=relink
17812  else
17813    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17814    hardcode_action=immediate
17815  fi
17816else
17817  # We cannot hardcode anything, or else we can only hardcode existing
17818  # directories.
17819  hardcode_action=unsupported
17820fi
17821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17822$as_echo "$hardcode_action" >&6; }
17823
17824if test relink = "$hardcode_action" ||
17825   test yes = "$inherit_rpath"; then
17826  # Fast installation is not supported
17827  enable_fast_install=no
17828elif test yes = "$shlibpath_overrides_runpath" ||
17829     test no = "$enable_shared"; then
17830  # Fast installation is not necessary
17831  enable_fast_install=needless
17832fi
17833
17834
17835
17836
17837
17838
17839  if test yes != "$enable_dlopen"; then
17840  enable_dlopen=unknown
17841  enable_dlopen_self=unknown
17842  enable_dlopen_self_static=unknown
17843else
17844  lt_cv_dlopen=no
17845  lt_cv_dlopen_libs=
17846
17847  case $host_os in
17848  beos*)
17849    lt_cv_dlopen=load_add_on
17850    lt_cv_dlopen_libs=
17851    lt_cv_dlopen_self=yes
17852    ;;
17853
17854  mingw* | pw32* | cegcc*)
17855    lt_cv_dlopen=LoadLibrary
17856    lt_cv_dlopen_libs=
17857    ;;
17858
17859  cygwin*)
17860    lt_cv_dlopen=dlopen
17861    lt_cv_dlopen_libs=
17862    ;;
17863
17864  darwin*)
17865    # if libdl is installed we need to link against it
17866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17867$as_echo_n "checking for dlopen in -ldl... " >&6; }
17868if ${ac_cv_lib_dl_dlopen+:} false; then :
17869  $as_echo_n "(cached) " >&6
17870else
17871  ac_check_lib_save_LIBS=$LIBS
17872LIBS="-ldl  $LIBS"
17873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17874/* end confdefs.h.  */
17875
17876/* Override any GCC internal prototype to avoid an error.
17877   Use char because int might match the return type of a GCC
17878   builtin and then its argument prototype would still apply.  */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882char dlopen ();
17883int
17884main ()
17885{
17886return dlopen ();
17887  ;
17888  return 0;
17889}
17890_ACEOF
17891if ac_fn_c_try_link "$LINENO"; then :
17892  ac_cv_lib_dl_dlopen=yes
17893else
17894  ac_cv_lib_dl_dlopen=no
17895fi
17896rm -f core conftest.err conftest.$ac_objext \
17897    conftest$ac_exeext conftest.$ac_ext
17898LIBS=$ac_check_lib_save_LIBS
17899fi
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17901$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17902if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17903  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17904else
17905
17906    lt_cv_dlopen=dyld
17907    lt_cv_dlopen_libs=
17908    lt_cv_dlopen_self=yes
17909
17910fi
17911
17912    ;;
17913
17914  tpf*)
17915    # Don't try to run any link tests for TPF.  We know it's impossible
17916    # because TPF is a cross-compiler, and we know how we open DSOs.
17917    lt_cv_dlopen=dlopen
17918    lt_cv_dlopen_libs=
17919    lt_cv_dlopen_self=no
17920    ;;
17921
17922  *)
17923    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17924if test "x$ac_cv_func_shl_load" = xyes; then :
17925  lt_cv_dlopen=shl_load
17926else
17927  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17928$as_echo_n "checking for shl_load in -ldld... " >&6; }
17929if ${ac_cv_lib_dld_shl_load+:} false; then :
17930  $as_echo_n "(cached) " >&6
17931else
17932  ac_check_lib_save_LIBS=$LIBS
17933LIBS="-ldld  $LIBS"
17934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935/* end confdefs.h.  */
17936
17937/* Override any GCC internal prototype to avoid an error.
17938   Use char because int might match the return type of a GCC
17939   builtin and then its argument prototype would still apply.  */
17940#ifdef __cplusplus
17941extern "C"
17942#endif
17943char shl_load ();
17944int
17945main ()
17946{
17947return shl_load ();
17948  ;
17949  return 0;
17950}
17951_ACEOF
17952if ac_fn_c_try_link "$LINENO"; then :
17953  ac_cv_lib_dld_shl_load=yes
17954else
17955  ac_cv_lib_dld_shl_load=no
17956fi
17957rm -f core conftest.err conftest.$ac_objext \
17958    conftest$ac_exeext conftest.$ac_ext
17959LIBS=$ac_check_lib_save_LIBS
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17962$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17963if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17964  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17965else
17966  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17967if test "x$ac_cv_func_dlopen" = xyes; then :
17968  lt_cv_dlopen=dlopen
17969else
17970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17971$as_echo_n "checking for dlopen in -ldl... " >&6; }
17972if ${ac_cv_lib_dl_dlopen+:} false; then :
17973  $as_echo_n "(cached) " >&6
17974else
17975  ac_check_lib_save_LIBS=$LIBS
17976LIBS="-ldl  $LIBS"
17977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979
17980/* Override any GCC internal prototype to avoid an error.
17981   Use char because int might match the return type of a GCC
17982   builtin and then its argument prototype would still apply.  */
17983#ifdef __cplusplus
17984extern "C"
17985#endif
17986char dlopen ();
17987int
17988main ()
17989{
17990return dlopen ();
17991  ;
17992  return 0;
17993}
17994_ACEOF
17995if ac_fn_c_try_link "$LINENO"; then :
17996  ac_cv_lib_dl_dlopen=yes
17997else
17998  ac_cv_lib_dl_dlopen=no
17999fi
18000rm -f core conftest.err conftest.$ac_objext \
18001    conftest$ac_exeext conftest.$ac_ext
18002LIBS=$ac_check_lib_save_LIBS
18003fi
18004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18005$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18006if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18007  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18008else
18009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18010$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18011if ${ac_cv_lib_svld_dlopen+:} false; then :
18012  $as_echo_n "(cached) " >&6
18013else
18014  ac_check_lib_save_LIBS=$LIBS
18015LIBS="-lsvld  $LIBS"
18016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017/* end confdefs.h.  */
18018
18019/* Override any GCC internal prototype to avoid an error.
18020   Use char because int might match the return type of a GCC
18021   builtin and then its argument prototype would still apply.  */
18022#ifdef __cplusplus
18023extern "C"
18024#endif
18025char dlopen ();
18026int
18027main ()
18028{
18029return dlopen ();
18030  ;
18031  return 0;
18032}
18033_ACEOF
18034if ac_fn_c_try_link "$LINENO"; then :
18035  ac_cv_lib_svld_dlopen=yes
18036else
18037  ac_cv_lib_svld_dlopen=no
18038fi
18039rm -f core conftest.err conftest.$ac_objext \
18040    conftest$ac_exeext conftest.$ac_ext
18041LIBS=$ac_check_lib_save_LIBS
18042fi
18043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18044$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18045if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18046  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18047else
18048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18049$as_echo_n "checking for dld_link in -ldld... " >&6; }
18050if ${ac_cv_lib_dld_dld_link+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053  ac_check_lib_save_LIBS=$LIBS
18054LIBS="-ldld  $LIBS"
18055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056/* end confdefs.h.  */
18057
18058/* Override any GCC internal prototype to avoid an error.
18059   Use char because int might match the return type of a GCC
18060   builtin and then its argument prototype would still apply.  */
18061#ifdef __cplusplus
18062extern "C"
18063#endif
18064char dld_link ();
18065int
18066main ()
18067{
18068return dld_link ();
18069  ;
18070  return 0;
18071}
18072_ACEOF
18073if ac_fn_c_try_link "$LINENO"; then :
18074  ac_cv_lib_dld_dld_link=yes
18075else
18076  ac_cv_lib_dld_dld_link=no
18077fi
18078rm -f core conftest.err conftest.$ac_objext \
18079    conftest$ac_exeext conftest.$ac_ext
18080LIBS=$ac_check_lib_save_LIBS
18081fi
18082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18083$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18084if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18085  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18086fi
18087
18088
18089fi
18090
18091
18092fi
18093
18094
18095fi
18096
18097
18098fi
18099
18100
18101fi
18102
18103    ;;
18104  esac
18105
18106  if test no = "$lt_cv_dlopen"; then
18107    enable_dlopen=no
18108  else
18109    enable_dlopen=yes
18110  fi
18111
18112  case $lt_cv_dlopen in
18113  dlopen)
18114    save_CPPFLAGS=$CPPFLAGS
18115    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18116
18117    save_LDFLAGS=$LDFLAGS
18118    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18119
18120    save_LIBS=$LIBS
18121    LIBS="$lt_cv_dlopen_libs $LIBS"
18122
18123    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18124$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18125if ${lt_cv_dlopen_self+:} false; then :
18126  $as_echo_n "(cached) " >&6
18127else
18128  	  if test yes = "$cross_compiling"; then :
18129  lt_cv_dlopen_self=cross
18130else
18131  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18132  lt_status=$lt_dlunknown
18133  cat > conftest.$ac_ext <<_LT_EOF
18134#line $LINENO "configure"
18135#include "confdefs.h"
18136
18137#if HAVE_DLFCN_H
18138#include <dlfcn.h>
18139#endif
18140
18141#include <stdio.h>
18142
18143#ifdef RTLD_GLOBAL
18144#  define LT_DLGLOBAL		RTLD_GLOBAL
18145#else
18146#  ifdef DL_GLOBAL
18147#    define LT_DLGLOBAL		DL_GLOBAL
18148#  else
18149#    define LT_DLGLOBAL		0
18150#  endif
18151#endif
18152
18153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18154   find out it does not work in some platform. */
18155#ifndef LT_DLLAZY_OR_NOW
18156#  ifdef RTLD_LAZY
18157#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18158#  else
18159#    ifdef DL_LAZY
18160#      define LT_DLLAZY_OR_NOW		DL_LAZY
18161#    else
18162#      ifdef RTLD_NOW
18163#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18164#      else
18165#        ifdef DL_NOW
18166#          define LT_DLLAZY_OR_NOW	DL_NOW
18167#        else
18168#          define LT_DLLAZY_OR_NOW	0
18169#        endif
18170#      endif
18171#    endif
18172#  endif
18173#endif
18174
18175/* When -fvisibility=hidden is used, assume the code has been annotated
18176   correspondingly for the symbols needed.  */
18177#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18178int fnord () __attribute__((visibility("default")));
18179#endif
18180
18181int fnord () { return 42; }
18182int main ()
18183{
18184  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18185  int status = $lt_dlunknown;
18186
18187  if (self)
18188    {
18189      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18190      else
18191        {
18192	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18193          else puts (dlerror ());
18194	}
18195      /* dlclose (self); */
18196    }
18197  else
18198    puts (dlerror ());
18199
18200  return status;
18201}
18202_LT_EOF
18203  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18204  (eval $ac_link) 2>&5
18205  ac_status=$?
18206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18208    (./conftest; exit; ) >&5 2>/dev/null
18209    lt_status=$?
18210    case x$lt_status in
18211      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18212      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18213      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18214    esac
18215  else :
18216    # compilation failed
18217    lt_cv_dlopen_self=no
18218  fi
18219fi
18220rm -fr conftest*
18221
18222
18223fi
18224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18225$as_echo "$lt_cv_dlopen_self" >&6; }
18226
18227    if test yes = "$lt_cv_dlopen_self"; then
18228      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18229      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18230$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18231if ${lt_cv_dlopen_self_static+:} false; then :
18232  $as_echo_n "(cached) " >&6
18233else
18234  	  if test yes = "$cross_compiling"; then :
18235  lt_cv_dlopen_self_static=cross
18236else
18237  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18238  lt_status=$lt_dlunknown
18239  cat > conftest.$ac_ext <<_LT_EOF
18240#line $LINENO "configure"
18241#include "confdefs.h"
18242
18243#if HAVE_DLFCN_H
18244#include <dlfcn.h>
18245#endif
18246
18247#include <stdio.h>
18248
18249#ifdef RTLD_GLOBAL
18250#  define LT_DLGLOBAL		RTLD_GLOBAL
18251#else
18252#  ifdef DL_GLOBAL
18253#    define LT_DLGLOBAL		DL_GLOBAL
18254#  else
18255#    define LT_DLGLOBAL		0
18256#  endif
18257#endif
18258
18259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18260   find out it does not work in some platform. */
18261#ifndef LT_DLLAZY_OR_NOW
18262#  ifdef RTLD_LAZY
18263#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18264#  else
18265#    ifdef DL_LAZY
18266#      define LT_DLLAZY_OR_NOW		DL_LAZY
18267#    else
18268#      ifdef RTLD_NOW
18269#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18270#      else
18271#        ifdef DL_NOW
18272#          define LT_DLLAZY_OR_NOW	DL_NOW
18273#        else
18274#          define LT_DLLAZY_OR_NOW	0
18275#        endif
18276#      endif
18277#    endif
18278#  endif
18279#endif
18280
18281/* When -fvisibility=hidden is used, assume the code has been annotated
18282   correspondingly for the symbols needed.  */
18283#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18284int fnord () __attribute__((visibility("default")));
18285#endif
18286
18287int fnord () { return 42; }
18288int main ()
18289{
18290  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18291  int status = $lt_dlunknown;
18292
18293  if (self)
18294    {
18295      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18296      else
18297        {
18298	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18299          else puts (dlerror ());
18300	}
18301      /* dlclose (self); */
18302    }
18303  else
18304    puts (dlerror ());
18305
18306  return status;
18307}
18308_LT_EOF
18309  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18310  (eval $ac_link) 2>&5
18311  ac_status=$?
18312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18313  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18314    (./conftest; exit; ) >&5 2>/dev/null
18315    lt_status=$?
18316    case x$lt_status in
18317      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18318      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18319      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18320    esac
18321  else :
18322    # compilation failed
18323    lt_cv_dlopen_self_static=no
18324  fi
18325fi
18326rm -fr conftest*
18327
18328
18329fi
18330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18331$as_echo "$lt_cv_dlopen_self_static" >&6; }
18332    fi
18333
18334    CPPFLAGS=$save_CPPFLAGS
18335    LDFLAGS=$save_LDFLAGS
18336    LIBS=$save_LIBS
18337    ;;
18338  esac
18339
18340  case $lt_cv_dlopen_self in
18341  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18342  *) enable_dlopen_self=unknown ;;
18343  esac
18344
18345  case $lt_cv_dlopen_self_static in
18346  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18347  *) enable_dlopen_self_static=unknown ;;
18348  esac
18349fi
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367striplib=
18368old_striplib=
18369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18370$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18371if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18372  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18373  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18375$as_echo "yes" >&6; }
18376else
18377# FIXME - insert some real tests, host_os isn't really good enough
18378  case $host_os in
18379  darwin*)
18380    if test -n "$STRIP"; then
18381      striplib="$STRIP -x"
18382      old_striplib="$STRIP -S"
18383      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18384$as_echo "yes" >&6; }
18385    else
18386      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18387$as_echo "no" >&6; }
18388    fi
18389    ;;
18390  *)
18391    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18392$as_echo "no" >&6; }
18393    ;;
18394  esac
18395fi
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408  # Report what library types will actually be built
18409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18410$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18412$as_echo "$can_build_shared" >&6; }
18413
18414  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18415$as_echo_n "checking whether to build shared libraries... " >&6; }
18416  test no = "$can_build_shared" && enable_shared=no
18417
18418  # On AIX, shared libraries and static libraries use the same namespace, and
18419  # are all built from PIC.
18420  case $host_os in
18421  aix3*)
18422    test yes = "$enable_shared" && enable_static=no
18423    if test -n "$RANLIB"; then
18424      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18425      postinstall_cmds='$RANLIB $lib'
18426    fi
18427    ;;
18428
18429  aix[4-9]*)
18430    if test ia64 != "$host_cpu"; then
18431      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18432      yes,aix,yes) ;;			# shared object as lib.so file only
18433      yes,svr4,*) ;;			# shared object as lib.so archive member only
18434      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18435      esac
18436    fi
18437    ;;
18438  esac
18439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18440$as_echo "$enable_shared" >&6; }
18441
18442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18443$as_echo_n "checking whether to build static libraries... " >&6; }
18444  # Make sure either enable_shared or enable_static is yes.
18445  test yes = "$enable_shared" || enable_static=yes
18446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18447$as_echo "$enable_static" >&6; }
18448
18449
18450
18451
18452fi
18453ac_ext=c
18454ac_cpp='$CPP $CPPFLAGS'
18455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18457ac_compiler_gnu=$ac_cv_c_compiler_gnu
18458
18459CC=$lt_save_CC
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475        ac_config_commands="$ac_config_commands libtool"
18476
18477
18478
18479
18480# Only expand once:
18481
18482
18483
18484if test "x$GCC" = "xyes"; then
18485	CPPFLAGS="$CPPFLAGS -Wall"
18486fi
18487
18488
18489
18490# Define a configure option for an alternate module directory
18491
18492# Check whether --with-xorg-module-dir was given.
18493if test "${with_xorg_module_dir+set}" = set; then :
18494  withval=$with_xorg_module_dir; moduledir="$withval"
18495else
18496  moduledir="$libdir/xorg/modules"
18497fi
18498
18499
18500# Check whether --enable-dri was given.
18501if test "${enable_dri+set}" = set; then :
18502  enableval=$enable_dri; DRI="$enableval"
18503else
18504  DRI=auto
18505fi
18506
18507
18508# Check whether --enable-exa was given.
18509if test "${enable_exa+set}" = set; then :
18510  enableval=$enable_exa; EXA="$enableval"
18511else
18512  EXA=yes
18513fi
18514
18515
18516# Store the list of server defined optional extensions in REQUIRED_MODULES
18517
18518
18519	SAVE_CFLAGS="$CFLAGS"
18520	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18521	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18522/* end confdefs.h.  */
18523
18524#include "xorg-server.h"
18525#if !defined RANDR
18526#error RANDR not defined
18527#endif
18528
18529int
18530main ()
18531{
18532
18533  ;
18534  return 0;
18535}
18536_ACEOF
18537if ac_fn_c_try_compile "$LINENO"; then :
18538  _EXT_CHECK=yes
18539else
18540  _EXT_CHECK=no
18541fi
18542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18543	CFLAGS="$SAVE_CFLAGS"
18544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18545$as_echo_n "checking if RANDR is defined... " >&6; }
18546	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18547$as_echo "$_EXT_CHECK" >&6; }
18548	if test "$_EXT_CHECK" != no; then
18549		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18550	fi
18551
18552
18553
18554	SAVE_CFLAGS="$CFLAGS"
18555	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18556	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18557/* end confdefs.h.  */
18558
18559#include "xorg-server.h"
18560#if !defined RENDER
18561#error RENDER not defined
18562#endif
18563
18564int
18565main ()
18566{
18567
18568  ;
18569  return 0;
18570}
18571_ACEOF
18572if ac_fn_c_try_compile "$LINENO"; then :
18573  _EXT_CHECK=yes
18574else
18575  _EXT_CHECK=no
18576fi
18577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578	CFLAGS="$SAVE_CFLAGS"
18579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18580$as_echo_n "checking if RENDER is defined... " >&6; }
18581	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18582$as_echo "$_EXT_CHECK" >&6; }
18583	if test "$_EXT_CHECK" != no; then
18584		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18585	fi
18586
18587
18588
18589	SAVE_CFLAGS="$CFLAGS"
18590	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18591	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592/* end confdefs.h.  */
18593
18594#include "xorg-server.h"
18595#if !defined XV
18596#error XV not defined
18597#endif
18598
18599int
18600main ()
18601{
18602
18603  ;
18604  return 0;
18605}
18606_ACEOF
18607if ac_fn_c_try_compile "$LINENO"; then :
18608  _EXT_CHECK=yes
18609else
18610  _EXT_CHECK=no
18611fi
18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613	CFLAGS="$SAVE_CFLAGS"
18614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18615$as_echo_n "checking if XV is defined... " >&6; }
18616	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18617$as_echo "$_EXT_CHECK" >&6; }
18618	if test "$_EXT_CHECK" != no; then
18619		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18620	fi
18621
18622
18623
18624	SAVE_CFLAGS="$CFLAGS"
18625	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18626	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628
18629#include "xorg-server.h"
18630#if !defined XF86MISC
18631#error XF86MISC not defined
18632#endif
18633
18634int
18635main ()
18636{
18637
18638  ;
18639  return 0;
18640}
18641_ACEOF
18642if ac_fn_c_try_compile "$LINENO"; then :
18643  _EXT_CHECK=yes
18644else
18645  _EXT_CHECK=no
18646fi
18647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18648	CFLAGS="$SAVE_CFLAGS"
18649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86MISC is defined" >&5
18650$as_echo_n "checking if XF86MISC is defined... " >&6; }
18651	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18652$as_echo "$_EXT_CHECK" >&6; }
18653	if test "$_EXT_CHECK" != no; then
18654		REQUIRED_MODULES="$REQUIRED_MODULES xf86miscproto"
18655	fi
18656
18657
18658
18659	SAVE_CFLAGS="$CFLAGS"
18660	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18661	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h.  */
18663
18664#include "xorg-server.h"
18665#if !defined DPMSExtension
18666#error DPMSExtension not defined
18667#endif
18668
18669int
18670main ()
18671{
18672
18673  ;
18674  return 0;
18675}
18676_ACEOF
18677if ac_fn_c_try_compile "$LINENO"; then :
18678  _EXT_CHECK=yes
18679else
18680  _EXT_CHECK=no
18681fi
18682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18683	CFLAGS="$SAVE_CFLAGS"
18684	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18685$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18686	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18687$as_echo "$_EXT_CHECK" >&6; }
18688	if test "$_EXT_CHECK" != no; then
18689		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18690	fi
18691
18692
18693# Obtain compiler/linker options for the driver dependencies
18694
18695pkg_failed=no
18696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18697$as_echo_n "checking for XORG... " >&6; }
18698
18699if test -n "$XORG_CFLAGS"; then
18700    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18701 elif test -n "$PKG_CONFIG"; then
18702    if test -n "$PKG_CONFIG" && \
18703    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18704  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
18705  ac_status=$?
18706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18707  test $ac_status = 0; }; then
18708  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18709		      test "x$?" != "x0" && pkg_failed=yes
18710else
18711  pkg_failed=yes
18712fi
18713 else
18714    pkg_failed=untried
18715fi
18716if test -n "$XORG_LIBS"; then
18717    pkg_cv_XORG_LIBS="$XORG_LIBS"
18718 elif test -n "$PKG_CONFIG"; then
18719    if test -n "$PKG_CONFIG" && \
18720    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18721  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
18722  ac_status=$?
18723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18724  test $ac_status = 0; }; then
18725  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18726		      test "x$?" != "x0" && pkg_failed=yes
18727else
18728  pkg_failed=yes
18729fi
18730 else
18731    pkg_failed=untried
18732fi
18733
18734
18735
18736if test $pkg_failed = yes; then
18737   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18738$as_echo "no" >&6; }
18739
18740if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18741        _pkg_short_errors_supported=yes
18742else
18743        _pkg_short_errors_supported=no
18744fi
18745        if test $_pkg_short_errors_supported = yes; then
18746	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18747        else
18748	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18749        fi
18750	# Put the nasty error message in config.log where it belongs
18751	echo "$XORG_PKG_ERRORS" >&5
18752
18753	as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
18754
18755$XORG_PKG_ERRORS
18756
18757Consider adjusting the PKG_CONFIG_PATH environment variable if you
18758installed software in a non-standard prefix.
18759
18760Alternatively, you may set the environment variables XORG_CFLAGS
18761and XORG_LIBS to avoid the need to call pkg-config.
18762See the pkg-config man page for more details." "$LINENO" 5
18763elif test $pkg_failed = untried; then
18764     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18765$as_echo "no" >&6; }
18766	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18768as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18769is in your PATH or set the PKG_CONFIG environment variable to the full
18770path to pkg-config.
18771
18772Alternatively, you may set the environment variables XORG_CFLAGS
18773and XORG_LIBS to avoid the need to call pkg-config.
18774See the pkg-config man page for more details.
18775
18776To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18777See \`config.log' for more details" "$LINENO" 5; }
18778else
18779	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18780	XORG_LIBS=$pkg_cv_XORG_LIBS
18781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18782$as_echo "yes" >&6; }
18783
18784fi
18785
18786pkg_failed=no
18787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18788$as_echo_n "checking for XEXT... " >&6; }
18789
18790if test -n "$XEXT_CFLAGS"; then
18791    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18792 elif test -n "$PKG_CONFIG"; then
18793    if test -n "$PKG_CONFIG" && \
18794    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18795  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18796  ac_status=$?
18797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18798  test $ac_status = 0; }; then
18799  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18800		      test "x$?" != "x0" && pkg_failed=yes
18801else
18802  pkg_failed=yes
18803fi
18804 else
18805    pkg_failed=untried
18806fi
18807if test -n "$XEXT_LIBS"; then
18808    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18809 elif test -n "$PKG_CONFIG"; then
18810    if test -n "$PKG_CONFIG" && \
18811    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18812  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18813  ac_status=$?
18814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18815  test $ac_status = 0; }; then
18816  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18817		      test "x$?" != "x0" && pkg_failed=yes
18818else
18819  pkg_failed=yes
18820fi
18821 else
18822    pkg_failed=untried
18823fi
18824
18825
18826
18827if test $pkg_failed = yes; then
18828   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18829$as_echo "no" >&6; }
18830
18831if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18832        _pkg_short_errors_supported=yes
18833else
18834        _pkg_short_errors_supported=no
18835fi
18836        if test $_pkg_short_errors_supported = yes; then
18837	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18838        else
18839	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18840        fi
18841	# Put the nasty error message in config.log where it belongs
18842	echo "$XEXT_PKG_ERRORS" >&5
18843
18844	HAVE_XEXTPROTO_71="no"
18845elif test $pkg_failed = untried; then
18846     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18847$as_echo "no" >&6; }
18848	HAVE_XEXTPROTO_71="no"
18849else
18850	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18851	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18852        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18853$as_echo "yes" >&6; }
18854	HAVE_XEXTPROTO_71="yes";
18855$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18856
18857fi
18858 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18859  HAVE_XEXTPROTO_71_TRUE=
18860  HAVE_XEXTPROTO_71_FALSE='#'
18861else
18862  HAVE_XEXTPROTO_71_TRUE='#'
18863  HAVE_XEXTPROTO_71_FALSE=
18864fi
18865
18866sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18867
18868# Checks for libraries.
18869
18870if test "$DRI" != no; then
18871	if test -f "${sdkdir}/dri.h"; then
18872		have_dri_h="yes"
18873	else
18874		have_dri_h="no"
18875	fi
18876	if test -f "${sdkdir}/sarea.h"; then
18877		have_sarea_h="yes"
18878	else
18879		have_sarea_h="no"
18880	fi
18881	if test -f "${sdkdir}/dristruct.h"; then
18882		have_dristruct_h="yes"
18883	else
18884		have_dristruct_h="no"
18885	fi
18886	if test -f "${sdkdir}/damage.h"; then
18887		have_damage_h="yes"
18888	else
18889		have_damage_h="no"
18890	fi
18891fi
18892
18893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18894$as_echo_n "checking whether to include DRI support... " >&6; }
18895if test x$DRI = xauto; then
18896	if test "$have_dri_h" = yes -a \
18897                "$have_sarea_h" = yes -a \
18898                "$have_dristruct_h" = yes; then
18899		DRI="yes"
18900	else
18901		DRI="no"
18902	fi
18903fi
18904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18905$as_echo "$DRI" >&6; }
18906
18907 if test x$DRI = xyes; then
18908  DRI_TRUE=
18909  DRI_FALSE='#'
18910else
18911  DRI_TRUE='#'
18912  DRI_FALSE=
18913fi
18914
18915if test "$DRI" = yes; then
18916
18917pkg_failed=no
18918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18919$as_echo_n "checking for DRI... " >&6; }
18920
18921if test -n "$DRI_CFLAGS"; then
18922    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18923 elif test -n "$PKG_CONFIG"; then
18924    if test -n "$PKG_CONFIG" && \
18925    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18926  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18927  ac_status=$?
18928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929  test $ac_status = 0; }; then
18930  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18931		      test "x$?" != "x0" && pkg_failed=yes
18932else
18933  pkg_failed=yes
18934fi
18935 else
18936    pkg_failed=untried
18937fi
18938if test -n "$DRI_LIBS"; then
18939    pkg_cv_DRI_LIBS="$DRI_LIBS"
18940 elif test -n "$PKG_CONFIG"; then
18941    if test -n "$PKG_CONFIG" && \
18942    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.2 xf86driproto\""; } >&5
18943  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.2 xf86driproto") 2>&5
18944  ac_status=$?
18945  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18946  test $ac_status = 0; }; then
18947  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.2 xf86driproto" 2>/dev/null`
18948		      test "x$?" != "x0" && pkg_failed=yes
18949else
18950  pkg_failed=yes
18951fi
18952 else
18953    pkg_failed=untried
18954fi
18955
18956
18957
18958if test $pkg_failed = yes; then
18959   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960$as_echo "no" >&6; }
18961
18962if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18963        _pkg_short_errors_supported=yes
18964else
18965        _pkg_short_errors_supported=no
18966fi
18967        if test $_pkg_short_errors_supported = yes; then
18968	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18969        else
18970	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.2 xf86driproto" 2>&1`
18971        fi
18972	# Put the nasty error message in config.log where it belongs
18973	echo "$DRI_PKG_ERRORS" >&5
18974
18975	as_fn_error $? "Package requirements (libdrm >= 2.2 xf86driproto) were not met:
18976
18977$DRI_PKG_ERRORS
18978
18979Consider adjusting the PKG_CONFIG_PATH environment variable if you
18980installed software in a non-standard prefix.
18981
18982Alternatively, you may set the environment variables DRI_CFLAGS
18983and DRI_LIBS to avoid the need to call pkg-config.
18984See the pkg-config man page for more details." "$LINENO" 5
18985elif test $pkg_failed = untried; then
18986     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18987$as_echo "no" >&6; }
18988	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18990as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18991is in your PATH or set the PKG_CONFIG environment variable to the full
18992path to pkg-config.
18993
18994Alternatively, you may set the environment variables DRI_CFLAGS
18995and DRI_LIBS to avoid the need to call pkg-config.
18996See the pkg-config man page for more details.
18997
18998To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18999See \`config.log' for more details" "$LINENO" 5; }
19000else
19001	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
19002	DRI_LIBS=$pkg_cv_DRI_LIBS
19003        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19004$as_echo "yes" >&6; }
19005
19006fi
19007
19008$as_echo "#define R128DRI 1" >>confdefs.h
19009
19010
19011$as_echo "#define R128DRI_DEVEL 1" >>confdefs.h
19012
19013fi
19014
19015SAVE_CPPFLAGS="$CPPFLAGS"
19016CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19017# Properly handle EXA.
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
19019$as_echo_n "checking whether to enable EXA support... " >&6; }
19020if test "x$EXA" = xyes; then
19021        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19022$as_echo "yes" >&6; }
19023        if test -f "${sdkdir}/exa.h"; then :
19024  have_exa_h="yes"
19025else
19026  have_exa_h="no"
19027fi
19028else
19029        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030$as_echo "no" >&6; }
19031fi
19032
19033SAVE_CPPFLAGS="$CPPFLAGS"
19034CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19035if test "x$have_exa_h" = xyes; then
19036        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
19037$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
19038        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19039/* end confdefs.h.  */
19040
19041#include "xorg-server.h"
19042#include "exa.h"
19043#if EXA_VERSION_MAJOR < 2
19044#error OLD EXA!
19045#endif
19046
19047int
19048main ()
19049{
19050
19051  ;
19052  return 0;
19053}
19054_ACEOF
19055if ac_fn_c_try_cpp "$LINENO"; then :
19056  USE_EXA=yes
19057else
19058  USE_EXA=no
19059fi
19060rm -f conftest.err conftest.i conftest.$ac_ext
19061        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
19062$as_echo "$USE_EXA" >&6; }
19063
19064        if test "x$USE_EXA" = xyes; then
19065
19066$as_echo "#define USE_EXA 1" >>confdefs.h
19067
19068        fi
19069fi
19070
19071ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19072"
19073if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
19074  XSERVER_LIBPCIACCESS=yes
19075else
19076  XSERVER_LIBPCIACCESS=no
19077fi
19078
19079CPPFLAGS="$SAVE_CPPFLAGS"
19080
19081# Check whether --enable-xaa was given.
19082if test "${enable_xaa+set}" = set; then :
19083  enableval=$enable_xaa; XAA="$enableval"
19084else
19085  XAA=auto
19086fi
19087
19088if test "x$XAA" != xno; then
19089        save_CFLAGS=$CFLAGS
19090        save_CPPFLAGS=$CPPFLAGS
19091        CFLAGS=$XORG_CFLAGS
19092        CPPFLAGS="$XORG_CFLAGS"
19093        for ac_header in xaa.h
19094do :
19095  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19096if test "x$ac_cv_header_xaa_h" = xyes; then :
19097  cat >>confdefs.h <<_ACEOF
19098#define HAVE_XAA_H 1
19099_ACEOF
19100 XAA=yes
19101else
19102  XAA=no
19103fi
19104
19105done
19106
19107        CFLAGS=$save_CFLAGS
19108        CPPFLAGS=$save_CPPFLAGS
19109fi
19110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19111$as_echo_n "checking whether to include XAA support... " >&6; }
19112 if test "x$XAA" = xyes; then
19113  XAA_TRUE=
19114  XAA_FALSE='#'
19115else
19116  XAA_TRUE='#'
19117  XAA_FALSE=
19118fi
19119
19120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19121$as_echo "$XAA" >&6; }
19122
19123 if test "x$USE_EXA" = xyes; then
19124  USE_EXA_TRUE=
19125  USE_EXA_FALSE='#'
19126else
19127  USE_EXA_TRUE='#'
19128  USE_EXA_FALSE=
19129fi
19130
19131
19132if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19133
19134pkg_failed=no
19135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19136$as_echo_n "checking for PCIACCESS... " >&6; }
19137
19138if test -n "$PCIACCESS_CFLAGS"; then
19139    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19140 elif test -n "$PKG_CONFIG"; then
19141    if test -n "$PKG_CONFIG" && \
19142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19143  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19144  ac_status=$?
19145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146  test $ac_status = 0; }; then
19147  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19148		      test "x$?" != "x0" && pkg_failed=yes
19149else
19150  pkg_failed=yes
19151fi
19152 else
19153    pkg_failed=untried
19154fi
19155if test -n "$PCIACCESS_LIBS"; then
19156    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19157 elif test -n "$PKG_CONFIG"; then
19158    if test -n "$PKG_CONFIG" && \
19159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19160  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19161  ac_status=$?
19162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19163  test $ac_status = 0; }; then
19164  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19165		      test "x$?" != "x0" && pkg_failed=yes
19166else
19167  pkg_failed=yes
19168fi
19169 else
19170    pkg_failed=untried
19171fi
19172
19173
19174
19175if test $pkg_failed = yes; then
19176   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177$as_echo "no" >&6; }
19178
19179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19180        _pkg_short_errors_supported=yes
19181else
19182        _pkg_short_errors_supported=no
19183fi
19184        if test $_pkg_short_errors_supported = yes; then
19185	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19186        else
19187	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19188        fi
19189	# Put the nasty error message in config.log where it belongs
19190	echo "$PCIACCESS_PKG_ERRORS" >&5
19191
19192	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19193
19194$PCIACCESS_PKG_ERRORS
19195
19196Consider adjusting the PKG_CONFIG_PATH environment variable if you
19197installed software in a non-standard prefix.
19198
19199Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19200and PCIACCESS_LIBS to avoid the need to call pkg-config.
19201See the pkg-config man page for more details." "$LINENO" 5
19202elif test $pkg_failed = untried; then
19203     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19204$as_echo "no" >&6; }
19205	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19207as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19208is in your PATH or set the PKG_CONFIG environment variable to the full
19209path to pkg-config.
19210
19211Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19212and PCIACCESS_LIBS to avoid the need to call pkg-config.
19213See the pkg-config man page for more details.
19214
19215To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19216See \`config.log' for more details" "$LINENO" 5; }
19217else
19218	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19219	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19220        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19221$as_echo "yes" >&6; }
19222
19223fi
19224    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19225fi
19226 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19227  XSERVER_LIBPCIACCESS_TRUE=
19228  XSERVER_LIBPCIACCESS_FALSE='#'
19229else
19230  XSERVER_LIBPCIACCESS_TRUE='#'
19231  XSERVER_LIBPCIACCESS_FALSE=
19232fi
19233
19234
19235# Checks for headers/macros for byte swapping
19236# Known variants:
19237#	<byteswap.h> bswap_16, bswap_32, bswap_64  (glibc)
19238#	<sys/endian.h> __swap16, __swap32, __swap64 (OpenBSD)
19239#	<sys/endian.h> bswap16, bswap32, bswap64 (other BSD's)
19240#	and a fallback to local macros if none of the above are found
19241
19242# if <byteswap.h> is found, assume it's the correct version
19243for ac_header in byteswap.h
19244do :
19245  ac_fn_c_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
19246if test "x$ac_cv_header_byteswap_h" = xyes; then :
19247  cat >>confdefs.h <<_ACEOF
19248#define HAVE_BYTESWAP_H 1
19249_ACEOF
19250
19251fi
19252
19253done
19254
19255
19256# if <sys/endian.h> is found, have to check which version
19257ac_fn_c_check_header_mongrel "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
19258if test "x$ac_cv_header_sys_endian_h" = xyes; then :
19259  HAVE_SYS_ENDIAN_H="yes"
19260else
19261  HAVE_SYS_ENDIAN_H="no"
19262fi
19263
19264
19265
19266if test "x$HAVE_SYS_ENDIAN_H" = "xyes" ; then
19267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __swap16 variant of <sys/endian.h> byteswapping macros" >&5
19268$as_echo_n "checking for __swap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19269	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19270/* end confdefs.h.  */
19271
19272#include <sys/types.h>
19273#include <sys/endian.h>
19274
19275int
19276main ()
19277{
19278
19279int a = 1, b;
19280b = __swap16(a);
19281
19282  ;
19283  return 0;
19284}
19285
19286_ACEOF
19287if ac_fn_c_try_link "$LINENO"; then :
19288  SYS_ENDIAN__SWAP='yes'
19289else
19290  SYS_ENDIAN__SWAP='no'
19291fi
19292rm -f core conftest.err conftest.$ac_objext \
19293    conftest$ac_exeext conftest.$ac_ext
19294	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN__SWAP" >&5
19295$as_echo "$SYS_ENDIAN__SWAP" >&6; }
19296
19297	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bswap16 variant of <sys/endian.h> byteswapping macros" >&5
19298$as_echo_n "checking for bswap16 variant of <sys/endian.h> byteswapping macros... " >&6; }
19299	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19300/* end confdefs.h.  */
19301
19302#include <sys/types.h>
19303#include <sys/endian.h>
19304
19305int
19306main ()
19307{
19308
19309int a = 1, b;
19310b = bswap16(a);
19311
19312  ;
19313  return 0;
19314}
19315
19316_ACEOF
19317if ac_fn_c_try_link "$LINENO"; then :
19318  SYS_ENDIAN_BSWAP='yes'
19319else
19320  SYS_ENDIAN_BSWAP='no'
19321fi
19322rm -f core conftest.err conftest.$ac_objext \
19323    conftest$ac_exeext conftest.$ac_ext
19324	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYS_ENDIAN_BSWAP" >&5
19325$as_echo "$SYS_ENDIAN_BSWAP" >&6; }
19326
19327	if test "$SYS_ENDIAN_BSWAP" = "yes" ; then
19328		USE_SYS_ENDIAN_H=yes
19329		BSWAP=bswap
19330	else
19331		if test "$SYS_ENDIAN__SWAP" = "yes" ; then
19332			USE_SYS_ENDIAN_H=yes
19333			BSWAP=__swap
19334		else
19335			USE_SYS_ENDIAN_H=no
19336		fi
19337	fi
19338
19339	if test "$USE_SYS_ENDIAN_H" = "yes" ; then
19340
19341$as_echo "#define USE_SYS_ENDIAN_H 1" >>confdefs.h
19342
19343
19344cat >>confdefs.h <<_ACEOF
19345#define bswap_16 ${BSWAP}16
19346_ACEOF
19347
19348
19349cat >>confdefs.h <<_ACEOF
19350#define bswap_32 ${BSWAP}32
19351_ACEOF
19352
19353
19354cat >>confdefs.h <<_ACEOF
19355#define bswap_64 ${BSWAP}64
19356_ACEOF
19357
19358	fi
19359fi
19360
19361
19362
19363DRIVER_NAME=r128
19364
19365
19366{ $as_echo "$as_me:${as_lineno-$LINENO}: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
19367the ati wrapper as well:
19368    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
19369" >&5
19370$as_echo "$as_me: Please change the Driver line in xorg.conf from \"ati\" to \"r128\" or install
19371the ati wrapper as well:
19372    git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
19373" >&6;}
19374
19375ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19376
19377cat >confcache <<\_ACEOF
19378# This file is a shell script that caches the results of configure
19379# tests run on this system so they can be shared between configure
19380# scripts and configure runs, see configure's option --config-cache.
19381# It is not useful on other systems.  If it contains results you don't
19382# want to keep, you may remove or edit it.
19383#
19384# config.status only pays attention to the cache file if you give it
19385# the --recheck option to rerun configure.
19386#
19387# `ac_cv_env_foo' variables (set or unset) will be overridden when
19388# loading this file, other *unset* `ac_cv_foo' will be assigned the
19389# following values.
19390
19391_ACEOF
19392
19393# The following way of writing the cache mishandles newlines in values,
19394# but we know of no workaround that is simple, portable, and efficient.
19395# So, we kill variables containing newlines.
19396# Ultrix sh set writes to stderr and can't be redirected directly,
19397# and sets the high bit in the cache file unless we assign to the vars.
19398(
19399  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19400    eval ac_val=\$$ac_var
19401    case $ac_val in #(
19402    *${as_nl}*)
19403      case $ac_var in #(
19404      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19406      esac
19407      case $ac_var in #(
19408      _ | IFS | as_nl) ;; #(
19409      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19410      *) { eval $ac_var=; unset $ac_var;} ;;
19411      esac ;;
19412    esac
19413  done
19414
19415  (set) 2>&1 |
19416    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19417    *${as_nl}ac_space=\ *)
19418      # `set' does not quote correctly, so add quotes: double-quote
19419      # substitution turns \\\\ into \\, and sed turns \\ into \.
19420      sed -n \
19421	"s/'/'\\\\''/g;
19422	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19423      ;; #(
19424    *)
19425      # `set' quotes correctly as required by POSIX, so do not add quotes.
19426      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19427      ;;
19428    esac |
19429    sort
19430) |
19431  sed '
19432     /^ac_cv_env_/b end
19433     t clear
19434     :clear
19435     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19436     t end
19437     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19438     :end' >>confcache
19439if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19440  if test -w "$cache_file"; then
19441    if test "x$cache_file" != "x/dev/null"; then
19442      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19443$as_echo "$as_me: updating cache $cache_file" >&6;}
19444      if test ! -f "$cache_file" || test -h "$cache_file"; then
19445	cat confcache >"$cache_file"
19446      else
19447        case $cache_file in #(
19448        */* | ?:*)
19449	  mv -f confcache "$cache_file"$$ &&
19450	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19451        *)
19452	  mv -f confcache "$cache_file" ;;
19453	esac
19454      fi
19455    fi
19456  else
19457    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19458$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19459  fi
19460fi
19461rm -f confcache
19462
19463test "x$prefix" = xNONE && prefix=$ac_default_prefix
19464# Let make expand exec_prefix.
19465test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19466
19467DEFS=-DHAVE_CONFIG_H
19468
19469ac_libobjs=
19470ac_ltlibobjs=
19471U=
19472for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19473  # 1. Remove the extension, and $U if already installed.
19474  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19475  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19476  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19477  #    will be set to the directory where LIBOBJS objects are built.
19478  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19479  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19480done
19481LIBOBJS=$ac_libobjs
19482
19483LTLIBOBJS=$ac_ltlibobjs
19484
19485
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19487$as_echo_n "checking that generated files are newer than configure... " >&6; }
19488   if test -n "$am_sleep_pid"; then
19489     # Hide warnings about reused PIDs.
19490     wait $am_sleep_pid 2>/dev/null
19491   fi
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19493$as_echo "done" >&6; }
19494 if test -n "$EXEEXT"; then
19495  am__EXEEXT_TRUE=
19496  am__EXEEXT_FALSE='#'
19497else
19498  am__EXEEXT_TRUE='#'
19499  am__EXEEXT_FALSE=
19500fi
19501
19502if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19503  as_fn_error $? "conditional \"AMDEP\" was never defined.
19504Usually this means the macro was only invoked conditionally." "$LINENO" 5
19505fi
19506if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19507  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19508Usually this means the macro was only invoked conditionally." "$LINENO" 5
19509fi
19510if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19511  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19512Usually this means the macro was only invoked conditionally." "$LINENO" 5
19513fi
19514if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19515  as_fn_error $? "conditional \"DRI\" was never defined.
19516Usually this means the macro was only invoked conditionally." "$LINENO" 5
19517fi
19518if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19519  as_fn_error $? "conditional \"XAA\" was never defined.
19520Usually this means the macro was only invoked conditionally." "$LINENO" 5
19521fi
19522if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
19523  as_fn_error $? "conditional \"USE_EXA\" was never defined.
19524Usually this means the macro was only invoked conditionally." "$LINENO" 5
19525fi
19526if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19527  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19528Usually this means the macro was only invoked conditionally." "$LINENO" 5
19529fi
19530
19531: "${CONFIG_STATUS=./config.status}"
19532ac_write_fail=0
19533ac_clean_files_save=$ac_clean_files
19534ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19535{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19536$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19537as_write_fail=0
19538cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19539#! $SHELL
19540# Generated by $as_me.
19541# Run this file to recreate the current configuration.
19542# Compiler output produced by configure, useful for debugging
19543# configure, is in config.log if it exists.
19544
19545debug=false
19546ac_cs_recheck=false
19547ac_cs_silent=false
19548
19549SHELL=\${CONFIG_SHELL-$SHELL}
19550export SHELL
19551_ASEOF
19552cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19553## -------------------- ##
19554## M4sh Initialization. ##
19555## -------------------- ##
19556
19557# Be more Bourne compatible
19558DUALCASE=1; export DUALCASE # for MKS sh
19559if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19560  emulate sh
19561  NULLCMD=:
19562  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19563  # is contrary to our usage.  Disable this feature.
19564  alias -g '${1+"$@"}'='"$@"'
19565  setopt NO_GLOB_SUBST
19566else
19567  case `(set -o) 2>/dev/null` in #(
19568  *posix*) :
19569    set -o posix ;; #(
19570  *) :
19571     ;;
19572esac
19573fi
19574
19575
19576as_nl='
19577'
19578export as_nl
19579# Printing a long string crashes Solaris 7 /usr/bin/printf.
19580as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19581as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19582as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19583# Prefer a ksh shell builtin over an external printf program on Solaris,
19584# but without wasting forks for bash or zsh.
19585if test -z "$BASH_VERSION$ZSH_VERSION" \
19586    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19587  as_echo='print -r --'
19588  as_echo_n='print -rn --'
19589elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19590  as_echo='printf %s\n'
19591  as_echo_n='printf %s'
19592else
19593  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19594    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19595    as_echo_n='/usr/ucb/echo -n'
19596  else
19597    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19598    as_echo_n_body='eval
19599      arg=$1;
19600      case $arg in #(
19601      *"$as_nl"*)
19602	expr "X$arg" : "X\\(.*\\)$as_nl";
19603	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19604      esac;
19605      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19606    '
19607    export as_echo_n_body
19608    as_echo_n='sh -c $as_echo_n_body as_echo'
19609  fi
19610  export as_echo_body
19611  as_echo='sh -c $as_echo_body as_echo'
19612fi
19613
19614# The user is always right.
19615if test "${PATH_SEPARATOR+set}" != set; then
19616  PATH_SEPARATOR=:
19617  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19618    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19619      PATH_SEPARATOR=';'
19620  }
19621fi
19622
19623
19624# IFS
19625# We need space, tab and new line, in precisely that order.  Quoting is
19626# there to prevent editors from complaining about space-tab.
19627# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19628# splitting by setting IFS to empty value.)
19629IFS=" ""	$as_nl"
19630
19631# Find who we are.  Look in the path if we contain no directory separator.
19632as_myself=
19633case $0 in #((
19634  *[\\/]* ) as_myself=$0 ;;
19635  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636for as_dir in $PATH
19637do
19638  IFS=$as_save_IFS
19639  test -z "$as_dir" && as_dir=.
19640    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19641  done
19642IFS=$as_save_IFS
19643
19644     ;;
19645esac
19646# We did not find ourselves, most probably we were run as `sh COMMAND'
19647# in which case we are not to be found in the path.
19648if test "x$as_myself" = x; then
19649  as_myself=$0
19650fi
19651if test ! -f "$as_myself"; then
19652  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19653  exit 1
19654fi
19655
19656# Unset variables that we do not need and which cause bugs (e.g. in
19657# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19658# suppresses any "Segmentation fault" message there.  '((' could
19659# trigger a bug in pdksh 5.2.14.
19660for as_var in BASH_ENV ENV MAIL MAILPATH
19661do eval test x\${$as_var+set} = xset \
19662  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19663done
19664PS1='$ '
19665PS2='> '
19666PS4='+ '
19667
19668# NLS nuisances.
19669LC_ALL=C
19670export LC_ALL
19671LANGUAGE=C
19672export LANGUAGE
19673
19674# CDPATH.
19675(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19676
19677
19678# as_fn_error STATUS ERROR [LINENO LOG_FD]
19679# ----------------------------------------
19680# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19681# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19682# script with STATUS, using 1 if that was 0.
19683as_fn_error ()
19684{
19685  as_status=$1; test $as_status -eq 0 && as_status=1
19686  if test "$4"; then
19687    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19688    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19689  fi
19690  $as_echo "$as_me: error: $2" >&2
19691  as_fn_exit $as_status
19692} # as_fn_error
19693
19694
19695# as_fn_set_status STATUS
19696# -----------------------
19697# Set $? to STATUS, without forking.
19698as_fn_set_status ()
19699{
19700  return $1
19701} # as_fn_set_status
19702
19703# as_fn_exit STATUS
19704# -----------------
19705# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19706as_fn_exit ()
19707{
19708  set +e
19709  as_fn_set_status $1
19710  exit $1
19711} # as_fn_exit
19712
19713# as_fn_unset VAR
19714# ---------------
19715# Portably unset VAR.
19716as_fn_unset ()
19717{
19718  { eval $1=; unset $1;}
19719}
19720as_unset=as_fn_unset
19721# as_fn_append VAR VALUE
19722# ----------------------
19723# Append the text in VALUE to the end of the definition contained in VAR. Take
19724# advantage of any shell optimizations that allow amortized linear growth over
19725# repeated appends, instead of the typical quadratic growth present in naive
19726# implementations.
19727if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19728  eval 'as_fn_append ()
19729  {
19730    eval $1+=\$2
19731  }'
19732else
19733  as_fn_append ()
19734  {
19735    eval $1=\$$1\$2
19736  }
19737fi # as_fn_append
19738
19739# as_fn_arith ARG...
19740# ------------------
19741# Perform arithmetic evaluation on the ARGs, and store the result in the
19742# global $as_val. Take advantage of shells that can avoid forks. The arguments
19743# must be portable across $(()) and expr.
19744if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19745  eval 'as_fn_arith ()
19746  {
19747    as_val=$(( $* ))
19748  }'
19749else
19750  as_fn_arith ()
19751  {
19752    as_val=`expr "$@" || test $? -eq 1`
19753  }
19754fi # as_fn_arith
19755
19756
19757if expr a : '\(a\)' >/dev/null 2>&1 &&
19758   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19759  as_expr=expr
19760else
19761  as_expr=false
19762fi
19763
19764if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19765  as_basename=basename
19766else
19767  as_basename=false
19768fi
19769
19770if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19771  as_dirname=dirname
19772else
19773  as_dirname=false
19774fi
19775
19776as_me=`$as_basename -- "$0" ||
19777$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19778	 X"$0" : 'X\(//\)$' \| \
19779	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19780$as_echo X/"$0" |
19781    sed '/^.*\/\([^/][^/]*\)\/*$/{
19782	    s//\1/
19783	    q
19784	  }
19785	  /^X\/\(\/\/\)$/{
19786	    s//\1/
19787	    q
19788	  }
19789	  /^X\/\(\/\).*/{
19790	    s//\1/
19791	    q
19792	  }
19793	  s/.*/./; q'`
19794
19795# Avoid depending upon Character Ranges.
19796as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19797as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19798as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19799as_cr_digits='0123456789'
19800as_cr_alnum=$as_cr_Letters$as_cr_digits
19801
19802ECHO_C= ECHO_N= ECHO_T=
19803case `echo -n x` in #(((((
19804-n*)
19805  case `echo 'xy\c'` in
19806  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19807  xy)  ECHO_C='\c';;
19808  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19809       ECHO_T='	';;
19810  esac;;
19811*)
19812  ECHO_N='-n';;
19813esac
19814
19815rm -f conf$$ conf$$.exe conf$$.file
19816if test -d conf$$.dir; then
19817  rm -f conf$$.dir/conf$$.file
19818else
19819  rm -f conf$$.dir
19820  mkdir conf$$.dir 2>/dev/null
19821fi
19822if (echo >conf$$.file) 2>/dev/null; then
19823  if ln -s conf$$.file conf$$ 2>/dev/null; then
19824    as_ln_s='ln -s'
19825    # ... but there are two gotchas:
19826    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19827    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19828    # In both cases, we have to default to `cp -pR'.
19829    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19830      as_ln_s='cp -pR'
19831  elif ln conf$$.file conf$$ 2>/dev/null; then
19832    as_ln_s=ln
19833  else
19834    as_ln_s='cp -pR'
19835  fi
19836else
19837  as_ln_s='cp -pR'
19838fi
19839rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19840rmdir conf$$.dir 2>/dev/null
19841
19842
19843# as_fn_mkdir_p
19844# -------------
19845# Create "$as_dir" as a directory, including parents if necessary.
19846as_fn_mkdir_p ()
19847{
19848
19849  case $as_dir in #(
19850  -*) as_dir=./$as_dir;;
19851  esac
19852  test -d "$as_dir" || eval $as_mkdir_p || {
19853    as_dirs=
19854    while :; do
19855      case $as_dir in #(
19856      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19857      *) as_qdir=$as_dir;;
19858      esac
19859      as_dirs="'$as_qdir' $as_dirs"
19860      as_dir=`$as_dirname -- "$as_dir" ||
19861$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19862	 X"$as_dir" : 'X\(//\)[^/]' \| \
19863	 X"$as_dir" : 'X\(//\)$' \| \
19864	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19865$as_echo X"$as_dir" |
19866    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19867	    s//\1/
19868	    q
19869	  }
19870	  /^X\(\/\/\)[^/].*/{
19871	    s//\1/
19872	    q
19873	  }
19874	  /^X\(\/\/\)$/{
19875	    s//\1/
19876	    q
19877	  }
19878	  /^X\(\/\).*/{
19879	    s//\1/
19880	    q
19881	  }
19882	  s/.*/./; q'`
19883      test -d "$as_dir" && break
19884    done
19885    test -z "$as_dirs" || eval "mkdir $as_dirs"
19886  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19887
19888
19889} # as_fn_mkdir_p
19890if mkdir -p . 2>/dev/null; then
19891  as_mkdir_p='mkdir -p "$as_dir"'
19892else
19893  test -d ./-p && rmdir ./-p
19894  as_mkdir_p=false
19895fi
19896
19897
19898# as_fn_executable_p FILE
19899# -----------------------
19900# Test if FILE is an executable regular file.
19901as_fn_executable_p ()
19902{
19903  test -f "$1" && test -x "$1"
19904} # as_fn_executable_p
19905as_test_x='test -x'
19906as_executable_p=as_fn_executable_p
19907
19908# Sed expression to map a string onto a valid CPP name.
19909as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19910
19911# Sed expression to map a string onto a valid variable name.
19912as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19913
19914
19915exec 6>&1
19916## ----------------------------------- ##
19917## Main body of $CONFIG_STATUS script. ##
19918## ----------------------------------- ##
19919_ASEOF
19920test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19921
19922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19923# Save the log message, to keep $0 and so on meaningful, and to
19924# report actual input values of CONFIG_FILES etc. instead of their
19925# values after options handling.
19926ac_log="
19927This file was extended by xf86-video-r128 $as_me 6.12.0, which was
19928generated by GNU Autoconf 2.69.  Invocation command line was
19929
19930  CONFIG_FILES    = $CONFIG_FILES
19931  CONFIG_HEADERS  = $CONFIG_HEADERS
19932  CONFIG_LINKS    = $CONFIG_LINKS
19933  CONFIG_COMMANDS = $CONFIG_COMMANDS
19934  $ $0 $@
19935
19936on `(hostname || uname -n) 2>/dev/null | sed 1q`
19937"
19938
19939_ACEOF
19940
19941case $ac_config_files in *"
19942"*) set x $ac_config_files; shift; ac_config_files=$*;;
19943esac
19944
19945case $ac_config_headers in *"
19946"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19947esac
19948
19949
19950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19951# Files that config.status was made for.
19952config_files="$ac_config_files"
19953config_headers="$ac_config_headers"
19954config_commands="$ac_config_commands"
19955
19956_ACEOF
19957
19958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19959ac_cs_usage="\
19960\`$as_me' instantiates files and other configuration actions
19961from templates according to the current configuration.  Unless the files
19962and actions are specified as TAGs, all are instantiated by default.
19963
19964Usage: $0 [OPTION]... [TAG]...
19965
19966  -h, --help       print this help, then exit
19967  -V, --version    print version number and configuration settings, then exit
19968      --config     print configuration, then exit
19969  -q, --quiet, --silent
19970                   do not print progress messages
19971  -d, --debug      don't remove temporary files
19972      --recheck    update $as_me by reconfiguring in the same conditions
19973      --file=FILE[:TEMPLATE]
19974                   instantiate the configuration file FILE
19975      --header=FILE[:TEMPLATE]
19976                   instantiate the configuration header FILE
19977
19978Configuration files:
19979$config_files
19980
19981Configuration headers:
19982$config_headers
19983
19984Configuration commands:
19985$config_commands
19986
19987Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19988
19989_ACEOF
19990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19991ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19992ac_cs_version="\\
19993xf86-video-r128 config.status 6.12.0
19994configured by $0, generated by GNU Autoconf 2.69,
19995  with options \\"\$ac_cs_config\\"
19996
19997Copyright (C) 2012 Free Software Foundation, Inc.
19998This config.status script is free software; the Free Software Foundation
19999gives unlimited permission to copy, distribute and modify it."
20000
20001ac_pwd='$ac_pwd'
20002srcdir='$srcdir'
20003INSTALL='$INSTALL'
20004MKDIR_P='$MKDIR_P'
20005AWK='$AWK'
20006test -n "\$AWK" || AWK=awk
20007_ACEOF
20008
20009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20010# The default lists apply if the user does not specify any file.
20011ac_need_defaults=:
20012while test $# != 0
20013do
20014  case $1 in
20015  --*=?*)
20016    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20017    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20018    ac_shift=:
20019    ;;
20020  --*=)
20021    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20022    ac_optarg=
20023    ac_shift=:
20024    ;;
20025  *)
20026    ac_option=$1
20027    ac_optarg=$2
20028    ac_shift=shift
20029    ;;
20030  esac
20031
20032  case $ac_option in
20033  # Handling of the options.
20034  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20035    ac_cs_recheck=: ;;
20036  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20037    $as_echo "$ac_cs_version"; exit ;;
20038  --config | --confi | --conf | --con | --co | --c )
20039    $as_echo "$ac_cs_config"; exit ;;
20040  --debug | --debu | --deb | --de | --d | -d )
20041    debug=: ;;
20042  --file | --fil | --fi | --f )
20043    $ac_shift
20044    case $ac_optarg in
20045    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20046    '') as_fn_error $? "missing file argument" ;;
20047    esac
20048    as_fn_append CONFIG_FILES " '$ac_optarg'"
20049    ac_need_defaults=false;;
20050  --header | --heade | --head | --hea )
20051    $ac_shift
20052    case $ac_optarg in
20053    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20054    esac
20055    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20056    ac_need_defaults=false;;
20057  --he | --h)
20058    # Conflict between --help and --header
20059    as_fn_error $? "ambiguous option: \`$1'
20060Try \`$0 --help' for more information.";;
20061  --help | --hel | -h )
20062    $as_echo "$ac_cs_usage"; exit ;;
20063  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20064  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20065    ac_cs_silent=: ;;
20066
20067  # This is an error.
20068  -*) as_fn_error $? "unrecognized option: \`$1'
20069Try \`$0 --help' for more information." ;;
20070
20071  *) as_fn_append ac_config_targets " $1"
20072     ac_need_defaults=false ;;
20073
20074  esac
20075  shift
20076done
20077
20078ac_configure_extra_args=
20079
20080if $ac_cs_silent; then
20081  exec 6>/dev/null
20082  ac_configure_extra_args="$ac_configure_extra_args --silent"
20083fi
20084
20085_ACEOF
20086cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20087if \$ac_cs_recheck; then
20088  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20089  shift
20090  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20091  CONFIG_SHELL='$SHELL'
20092  export CONFIG_SHELL
20093  exec "\$@"
20094fi
20095
20096_ACEOF
20097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20098exec 5>>config.log
20099{
20100  echo
20101  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20102## Running $as_me. ##
20103_ASBOX
20104  $as_echo "$ac_log"
20105} >&5
20106
20107_ACEOF
20108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20109#
20110# INIT-COMMANDS
20111#
20112AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20113
20114
20115# The HP-UX ksh and POSIX shell print the target directory to stdout
20116# if CDPATH is set.
20117(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20118
20119sed_quote_subst='$sed_quote_subst'
20120double_quote_subst='$double_quote_subst'
20121delay_variable_subst='$delay_variable_subst'
20122enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20123macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20124macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20125enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20126pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20127enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20128shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20129SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20130ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20131PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20132host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20133host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20134host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20135build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20136build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20137build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20138SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20139Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20140GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20141EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20142FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20143LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20144NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20145LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20146max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20147ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20148exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20149lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20150lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20151lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20152lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20153lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20154reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20155reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20156OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20157deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20158file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20159file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20160want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20161DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20162sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20163AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20164AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20165archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20166STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20167RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20168old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20169old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20170old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20171lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20172CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20173CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20174compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20175GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20176lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20177lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20178lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20179lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20180lt_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"`'
20181lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20182nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20183lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20184lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20185objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20186MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20187lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20188lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20189lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20190lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20191lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20192need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20193MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20194DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20195NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20196LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20197OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20198OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20199libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20200shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20201extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20202archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20203enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20204export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20205whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20206compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20207old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20208old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20209archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20210archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20211module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20212module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20213with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20214allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20215no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20216hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20217hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20218hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20219hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20220hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20221hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20222hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20223inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20224link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20225always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20226export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20227exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20228include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20229prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20230postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20231file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20232variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20233need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20234need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20235version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20236runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20237shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20238shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20239libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20240library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20241soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20242install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20243postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20244postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20245finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20246finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20247hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20248sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20249configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20250configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20251hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20252enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20253enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20254enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20255old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20256striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20257
20258LTCC='$LTCC'
20259LTCFLAGS='$LTCFLAGS'
20260compiler='$compiler_DEFAULT'
20261
20262# A function that is used when there is no print builtin or printf.
20263func_fallback_echo ()
20264{
20265  eval 'cat <<_LTECHO_EOF
20266\$1
20267_LTECHO_EOF'
20268}
20269
20270# Quote evaled strings.
20271for var in SHELL \
20272ECHO \
20273PATH_SEPARATOR \
20274SED \
20275GREP \
20276EGREP \
20277FGREP \
20278LD \
20279NM \
20280LN_S \
20281lt_SP2NL \
20282lt_NL2SP \
20283reload_flag \
20284OBJDUMP \
20285deplibs_check_method \
20286file_magic_cmd \
20287file_magic_glob \
20288want_nocaseglob \
20289DLLTOOL \
20290sharedlib_from_linklib_cmd \
20291AR \
20292AR_FLAGS \
20293archiver_list_spec \
20294STRIP \
20295RANLIB \
20296CC \
20297CFLAGS \
20298compiler \
20299lt_cv_sys_global_symbol_pipe \
20300lt_cv_sys_global_symbol_to_cdecl \
20301lt_cv_sys_global_symbol_to_import \
20302lt_cv_sys_global_symbol_to_c_name_address \
20303lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20304lt_cv_nm_interface \
20305nm_file_list_spec \
20306lt_cv_truncate_bin \
20307lt_prog_compiler_no_builtin_flag \
20308lt_prog_compiler_pic \
20309lt_prog_compiler_wl \
20310lt_prog_compiler_static \
20311lt_cv_prog_compiler_c_o \
20312need_locks \
20313MANIFEST_TOOL \
20314DSYMUTIL \
20315NMEDIT \
20316LIPO \
20317OTOOL \
20318OTOOL64 \
20319shrext_cmds \
20320export_dynamic_flag_spec \
20321whole_archive_flag_spec \
20322compiler_needs_object \
20323with_gnu_ld \
20324allow_undefined_flag \
20325no_undefined_flag \
20326hardcode_libdir_flag_spec \
20327hardcode_libdir_separator \
20328exclude_expsyms \
20329include_expsyms \
20330file_list_spec \
20331variables_saved_for_relink \
20332libname_spec \
20333library_names_spec \
20334soname_spec \
20335install_override_mode \
20336finish_eval \
20337old_striplib \
20338striplib; do
20339    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20340    *[\\\\\\\`\\"\\\$]*)
20341      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20342      ;;
20343    *)
20344      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20345      ;;
20346    esac
20347done
20348
20349# Double-quote double-evaled strings.
20350for var in reload_cmds \
20351old_postinstall_cmds \
20352old_postuninstall_cmds \
20353old_archive_cmds \
20354extract_expsyms_cmds \
20355old_archive_from_new_cmds \
20356old_archive_from_expsyms_cmds \
20357archive_cmds \
20358archive_expsym_cmds \
20359module_cmds \
20360module_expsym_cmds \
20361export_symbols_cmds \
20362prelink_cmds \
20363postlink_cmds \
20364postinstall_cmds \
20365postuninstall_cmds \
20366finish_cmds \
20367sys_lib_search_path_spec \
20368configure_time_dlsearch_path \
20369configure_time_lt_sys_library_path; do
20370    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20371    *[\\\\\\\`\\"\\\$]*)
20372      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20373      ;;
20374    *)
20375      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20376      ;;
20377    esac
20378done
20379
20380ac_aux_dir='$ac_aux_dir'
20381
20382# See if we are running on zsh, and set the options that allow our
20383# commands through without removal of \ escapes INIT.
20384if test -n "\${ZSH_VERSION+set}"; then
20385   setopt NO_GLOB_SUBST
20386fi
20387
20388
20389    PACKAGE='$PACKAGE'
20390    VERSION='$VERSION'
20391    RM='$RM'
20392    ofile='$ofile'
20393
20394
20395
20396
20397_ACEOF
20398
20399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20400
20401# Handling of arguments.
20402for ac_config_target in $ac_config_targets
20403do
20404  case $ac_config_target in
20405    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20406    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20407    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20408    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20409    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20410    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20411
20412  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20413  esac
20414done
20415
20416
20417# If the user did not use the arguments to specify the items to instantiate,
20418# then the envvar interface is used.  Set only those that are not.
20419# We use the long form for the default assignment because of an extremely
20420# bizarre bug on SunOS 4.1.3.
20421if $ac_need_defaults; then
20422  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20423  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20424  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20425fi
20426
20427# Have a temporary directory for convenience.  Make it in the build tree
20428# simply because there is no reason against having it here, and in addition,
20429# creating and moving files from /tmp can sometimes cause problems.
20430# Hook for its removal unless debugging.
20431# Note that there is a small window in which the directory will not be cleaned:
20432# after its creation but before its name has been assigned to `$tmp'.
20433$debug ||
20434{
20435  tmp= ac_tmp=
20436  trap 'exit_status=$?
20437  : "${ac_tmp:=$tmp}"
20438  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20439' 0
20440  trap 'as_fn_exit 1' 1 2 13 15
20441}
20442# Create a (secure) tmp directory for tmp files.
20443
20444{
20445  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20446  test -d "$tmp"
20447}  ||
20448{
20449  tmp=./conf$$-$RANDOM
20450  (umask 077 && mkdir "$tmp")
20451} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20452ac_tmp=$tmp
20453
20454# Set up the scripts for CONFIG_FILES section.
20455# No need to generate them if there are no CONFIG_FILES.
20456# This happens for instance with `./config.status config.h'.
20457if test -n "$CONFIG_FILES"; then
20458
20459
20460ac_cr=`echo X | tr X '\015'`
20461# On cygwin, bash can eat \r inside `` if the user requested igncr.
20462# But we know of no other shell where ac_cr would be empty at this
20463# point, so we can use a bashism as a fallback.
20464if test "x$ac_cr" = x; then
20465  eval ac_cr=\$\'\\r\'
20466fi
20467ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20468if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20469  ac_cs_awk_cr='\\r'
20470else
20471  ac_cs_awk_cr=$ac_cr
20472fi
20473
20474echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20475_ACEOF
20476
20477
20478{
20479  echo "cat >conf$$subs.awk <<_ACEOF" &&
20480  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20481  echo "_ACEOF"
20482} >conf$$subs.sh ||
20483  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20484ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20485ac_delim='%!_!# '
20486for ac_last_try in false false false false false :; do
20487  . ./conf$$subs.sh ||
20488    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20489
20490  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20491  if test $ac_delim_n = $ac_delim_num; then
20492    break
20493  elif $ac_last_try; then
20494    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20495  else
20496    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20497  fi
20498done
20499rm -f conf$$subs.sh
20500
20501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20502cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20503_ACEOF
20504sed -n '
20505h
20506s/^/S["/; s/!.*/"]=/
20507p
20508g
20509s/^[^!]*!//
20510:repl
20511t repl
20512s/'"$ac_delim"'$//
20513t delim
20514:nl
20515h
20516s/\(.\{148\}\)..*/\1/
20517t more1
20518s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20519p
20520n
20521b repl
20522:more1
20523s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20524p
20525g
20526s/.\{148\}//
20527t nl
20528:delim
20529h
20530s/\(.\{148\}\)..*/\1/
20531t more2
20532s/["\\]/\\&/g; s/^/"/; s/$/"/
20533p
20534b
20535:more2
20536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20537p
20538g
20539s/.\{148\}//
20540t delim
20541' <conf$$subs.awk | sed '
20542/^[^""]/{
20543  N
20544  s/\n//
20545}
20546' >>$CONFIG_STATUS || ac_write_fail=1
20547rm -f conf$$subs.awk
20548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20549_ACAWK
20550cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20551  for (key in S) S_is_set[key] = 1
20552  FS = ""
20553
20554}
20555{
20556  line = $ 0
20557  nfields = split(line, field, "@")
20558  substed = 0
20559  len = length(field[1])
20560  for (i = 2; i < nfields; i++) {
20561    key = field[i]
20562    keylen = length(key)
20563    if (S_is_set[key]) {
20564      value = S[key]
20565      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20566      len += length(value) + length(field[++i])
20567      substed = 1
20568    } else
20569      len += 1 + keylen
20570  }
20571
20572  print line
20573}
20574
20575_ACAWK
20576_ACEOF
20577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20578if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20579  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20580else
20581  cat
20582fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20583  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20584_ACEOF
20585
20586# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20587# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20588# trailing colons and then remove the whole line if VPATH becomes empty
20589# (actually we leave an empty line to preserve line numbers).
20590if test "x$srcdir" = x.; then
20591  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20592h
20593s///
20594s/^/:/
20595s/[	 ]*$/:/
20596s/:\$(srcdir):/:/g
20597s/:\${srcdir}:/:/g
20598s/:@srcdir@:/:/g
20599s/^:*//
20600s/:*$//
20601x
20602s/\(=[	 ]*\).*/\1/
20603G
20604s/\n//
20605s/^[^=]*=[	 ]*$//
20606}'
20607fi
20608
20609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20610fi # test -n "$CONFIG_FILES"
20611
20612# Set up the scripts for CONFIG_HEADERS section.
20613# No need to generate them if there are no CONFIG_HEADERS.
20614# This happens for instance with `./config.status Makefile'.
20615if test -n "$CONFIG_HEADERS"; then
20616cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20617BEGIN {
20618_ACEOF
20619
20620# Transform confdefs.h into an awk script `defines.awk', embedded as
20621# here-document in config.status, that substitutes the proper values into
20622# config.h.in to produce config.h.
20623
20624# Create a delimiter string that does not exist in confdefs.h, to ease
20625# handling of long lines.
20626ac_delim='%!_!# '
20627for ac_last_try in false false :; do
20628  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20629  if test -z "$ac_tt"; then
20630    break
20631  elif $ac_last_try; then
20632    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20633  else
20634    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20635  fi
20636done
20637
20638# For the awk script, D is an array of macro values keyed by name,
20639# likewise P contains macro parameters if any.  Preserve backslash
20640# newline sequences.
20641
20642ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20643sed -n '
20644s/.\{148\}/&'"$ac_delim"'/g
20645t rset
20646:rset
20647s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20648t def
20649d
20650:def
20651s/\\$//
20652t bsnl
20653s/["\\]/\\&/g
20654s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20655D["\1"]=" \3"/p
20656s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20657d
20658:bsnl
20659s/["\\]/\\&/g
20660s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20661D["\1"]=" \3\\\\\\n"\\/p
20662t cont
20663s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20664t cont
20665d
20666:cont
20667n
20668s/.\{148\}/&'"$ac_delim"'/g
20669t clear
20670:clear
20671s/\\$//
20672t bsnlc
20673s/["\\]/\\&/g; s/^/"/; s/$/"/p
20674d
20675:bsnlc
20676s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20677b cont
20678' <confdefs.h | sed '
20679s/'"$ac_delim"'/"\\\
20680"/g' >>$CONFIG_STATUS || ac_write_fail=1
20681
20682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20683  for (key in D) D_is_set[key] = 1
20684  FS = ""
20685}
20686/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20687  line = \$ 0
20688  split(line, arg, " ")
20689  if (arg[1] == "#") {
20690    defundef = arg[2]
20691    mac1 = arg[3]
20692  } else {
20693    defundef = substr(arg[1], 2)
20694    mac1 = arg[2]
20695  }
20696  split(mac1, mac2, "(") #)
20697  macro = mac2[1]
20698  prefix = substr(line, 1, index(line, defundef) - 1)
20699  if (D_is_set[macro]) {
20700    # Preserve the white space surrounding the "#".
20701    print prefix "define", macro P[macro] D[macro]
20702    next
20703  } else {
20704    # Replace #undef with comments.  This is necessary, for example,
20705    # in the case of _POSIX_SOURCE, which is predefined and required
20706    # on some systems where configure will not decide to define it.
20707    if (defundef == "undef") {
20708      print "/*", prefix defundef, macro, "*/"
20709      next
20710    }
20711  }
20712}
20713{ print }
20714_ACAWK
20715_ACEOF
20716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20717  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20718fi # test -n "$CONFIG_HEADERS"
20719
20720
20721eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20722shift
20723for ac_tag
20724do
20725  case $ac_tag in
20726  :[FHLC]) ac_mode=$ac_tag; continue;;
20727  esac
20728  case $ac_mode$ac_tag in
20729  :[FHL]*:*);;
20730  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20731  :[FH]-) ac_tag=-:-;;
20732  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20733  esac
20734  ac_save_IFS=$IFS
20735  IFS=:
20736  set x $ac_tag
20737  IFS=$ac_save_IFS
20738  shift
20739  ac_file=$1
20740  shift
20741
20742  case $ac_mode in
20743  :L) ac_source=$1;;
20744  :[FH])
20745    ac_file_inputs=
20746    for ac_f
20747    do
20748      case $ac_f in
20749      -) ac_f="$ac_tmp/stdin";;
20750      *) # Look for the file first in the build tree, then in the source tree
20751	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20752	 # because $ac_f cannot contain `:'.
20753	 test -f "$ac_f" ||
20754	   case $ac_f in
20755	   [\\/$]*) false;;
20756	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20757	   esac ||
20758	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20759      esac
20760      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20761      as_fn_append ac_file_inputs " '$ac_f'"
20762    done
20763
20764    # Let's still pretend it is `configure' which instantiates (i.e., don't
20765    # use $as_me), people would be surprised to read:
20766    #    /* config.h.  Generated by config.status.  */
20767    configure_input='Generated from '`
20768	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20769	`' by configure.'
20770    if test x"$ac_file" != x-; then
20771      configure_input="$ac_file.  $configure_input"
20772      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20773$as_echo "$as_me: creating $ac_file" >&6;}
20774    fi
20775    # Neutralize special characters interpreted by sed in replacement strings.
20776    case $configure_input in #(
20777    *\&* | *\|* | *\\* )
20778       ac_sed_conf_input=`$as_echo "$configure_input" |
20779       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20780    *) ac_sed_conf_input=$configure_input;;
20781    esac
20782
20783    case $ac_tag in
20784    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20785      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20786    esac
20787    ;;
20788  esac
20789
20790  ac_dir=`$as_dirname -- "$ac_file" ||
20791$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20792	 X"$ac_file" : 'X\(//\)[^/]' \| \
20793	 X"$ac_file" : 'X\(//\)$' \| \
20794	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20795$as_echo X"$ac_file" |
20796    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20797	    s//\1/
20798	    q
20799	  }
20800	  /^X\(\/\/\)[^/].*/{
20801	    s//\1/
20802	    q
20803	  }
20804	  /^X\(\/\/\)$/{
20805	    s//\1/
20806	    q
20807	  }
20808	  /^X\(\/\).*/{
20809	    s//\1/
20810	    q
20811	  }
20812	  s/.*/./; q'`
20813  as_dir="$ac_dir"; as_fn_mkdir_p
20814  ac_builddir=.
20815
20816case "$ac_dir" in
20817.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20818*)
20819  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20820  # A ".." for each directory in $ac_dir_suffix.
20821  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20822  case $ac_top_builddir_sub in
20823  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20824  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20825  esac ;;
20826esac
20827ac_abs_top_builddir=$ac_pwd
20828ac_abs_builddir=$ac_pwd$ac_dir_suffix
20829# for backward compatibility:
20830ac_top_builddir=$ac_top_build_prefix
20831
20832case $srcdir in
20833  .)  # We are building in place.
20834    ac_srcdir=.
20835    ac_top_srcdir=$ac_top_builddir_sub
20836    ac_abs_top_srcdir=$ac_pwd ;;
20837  [\\/]* | ?:[\\/]* )  # Absolute name.
20838    ac_srcdir=$srcdir$ac_dir_suffix;
20839    ac_top_srcdir=$srcdir
20840    ac_abs_top_srcdir=$srcdir ;;
20841  *) # Relative name.
20842    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20843    ac_top_srcdir=$ac_top_build_prefix$srcdir
20844    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20845esac
20846ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20847
20848
20849  case $ac_mode in
20850  :F)
20851  #
20852  # CONFIG_FILE
20853  #
20854
20855  case $INSTALL in
20856  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20857  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20858  esac
20859  ac_MKDIR_P=$MKDIR_P
20860  case $MKDIR_P in
20861  [\\/$]* | ?:[\\/]* ) ;;
20862  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20863  esac
20864_ACEOF
20865
20866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20867# If the template does not know about datarootdir, expand it.
20868# FIXME: This hack should be removed a few years after 2.60.
20869ac_datarootdir_hack=; ac_datarootdir_seen=
20870ac_sed_dataroot='
20871/datarootdir/ {
20872  p
20873  q
20874}
20875/@datadir@/p
20876/@docdir@/p
20877/@infodir@/p
20878/@localedir@/p
20879/@mandir@/p'
20880case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20881*datarootdir*) ac_datarootdir_seen=yes;;
20882*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20883  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20884$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20885_ACEOF
20886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20887  ac_datarootdir_hack='
20888  s&@datadir@&$datadir&g
20889  s&@docdir@&$docdir&g
20890  s&@infodir@&$infodir&g
20891  s&@localedir@&$localedir&g
20892  s&@mandir@&$mandir&g
20893  s&\\\${datarootdir}&$datarootdir&g' ;;
20894esac
20895_ACEOF
20896
20897# Neutralize VPATH when `$srcdir' = `.'.
20898# Shell code in configure.ac might set extrasub.
20899# FIXME: do we really want to maintain this feature?
20900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20901ac_sed_extra="$ac_vpsub
20902$extrasub
20903_ACEOF
20904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20905:t
20906/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20907s|@configure_input@|$ac_sed_conf_input|;t t
20908s&@top_builddir@&$ac_top_builddir_sub&;t t
20909s&@top_build_prefix@&$ac_top_build_prefix&;t t
20910s&@srcdir@&$ac_srcdir&;t t
20911s&@abs_srcdir@&$ac_abs_srcdir&;t t
20912s&@top_srcdir@&$ac_top_srcdir&;t t
20913s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20914s&@builddir@&$ac_builddir&;t t
20915s&@abs_builddir@&$ac_abs_builddir&;t t
20916s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20917s&@INSTALL@&$ac_INSTALL&;t t
20918s&@MKDIR_P@&$ac_MKDIR_P&;t t
20919$ac_datarootdir_hack
20920"
20921eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20922  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20923
20924test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20925  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20926  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20927      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20928  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20929which seems to be undefined.  Please make sure it is defined" >&5
20930$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20931which seems to be undefined.  Please make sure it is defined" >&2;}
20932
20933  rm -f "$ac_tmp/stdin"
20934  case $ac_file in
20935  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20936  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20937  esac \
20938  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20939 ;;
20940  :H)
20941  #
20942  # CONFIG_HEADER
20943  #
20944  if test x"$ac_file" != x-; then
20945    {
20946      $as_echo "/* $configure_input  */" \
20947      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20948    } >"$ac_tmp/config.h" \
20949      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20950    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20951      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20952$as_echo "$as_me: $ac_file is unchanged" >&6;}
20953    else
20954      rm -f "$ac_file"
20955      mv "$ac_tmp/config.h" "$ac_file" \
20956	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20957    fi
20958  else
20959    $as_echo "/* $configure_input  */" \
20960      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20961      || as_fn_error $? "could not create -" "$LINENO" 5
20962  fi
20963# Compute "$ac_file"'s index in $config_headers.
20964_am_arg="$ac_file"
20965_am_stamp_count=1
20966for _am_header in $config_headers :; do
20967  case $_am_header in
20968    $_am_arg | $_am_arg:* )
20969      break ;;
20970    * )
20971      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20972  esac
20973done
20974echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20975$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20976	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20977	 X"$_am_arg" : 'X\(//\)$' \| \
20978	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20979$as_echo X"$_am_arg" |
20980    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20981	    s//\1/
20982	    q
20983	  }
20984	  /^X\(\/\/\)[^/].*/{
20985	    s//\1/
20986	    q
20987	  }
20988	  /^X\(\/\/\)$/{
20989	    s//\1/
20990	    q
20991	  }
20992	  /^X\(\/\).*/{
20993	    s//\1/
20994	    q
20995	  }
20996	  s/.*/./; q'`/stamp-h$_am_stamp_count
20997 ;;
20998
20999  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21000$as_echo "$as_me: executing $ac_file commands" >&6;}
21001 ;;
21002  esac
21003
21004
21005  case $ac_file$ac_mode in
21006    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21007  # Older Autoconf quotes --file arguments for eval, but not when files
21008  # are listed without --file.  Let's play safe and only enable the eval
21009  # if we detect the quoting.
21010  case $CONFIG_FILES in
21011  *\'*) eval set x "$CONFIG_FILES" ;;
21012  *)   set x $CONFIG_FILES ;;
21013  esac
21014  shift
21015  for mf
21016  do
21017    # Strip MF so we end up with the name of the file.
21018    mf=`echo "$mf" | sed -e 's/:.*$//'`
21019    # Check whether this is an Automake generated Makefile or not.
21020    # We used to match only the files named 'Makefile.in', but
21021    # some people rename them; so instead we look at the file content.
21022    # Grep'ing the first line is not enough: some people post-process
21023    # each Makefile.in and add a new line on top of each file to say so.
21024    # Grep'ing the whole file is not good either: AIX grep has a line
21025    # limit of 2048, but all sed's we know have understand at least 4000.
21026    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21027      dirpart=`$as_dirname -- "$mf" ||
21028$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21029	 X"$mf" : 'X\(//\)[^/]' \| \
21030	 X"$mf" : 'X\(//\)$' \| \
21031	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21032$as_echo X"$mf" |
21033    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21034	    s//\1/
21035	    q
21036	  }
21037	  /^X\(\/\/\)[^/].*/{
21038	    s//\1/
21039	    q
21040	  }
21041	  /^X\(\/\/\)$/{
21042	    s//\1/
21043	    q
21044	  }
21045	  /^X\(\/\).*/{
21046	    s//\1/
21047	    q
21048	  }
21049	  s/.*/./; q'`
21050    else
21051      continue
21052    fi
21053    # Extract the definition of DEPDIR, am__include, and am__quote
21054    # from the Makefile without running 'make'.
21055    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21056    test -z "$DEPDIR" && continue
21057    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21058    test -z "$am__include" && continue
21059    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21060    # Find all dependency output files, they are included files with
21061    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21062    # simplest approach to changing $(DEPDIR) to its actual value in the
21063    # expansion.
21064    for file in `sed -n "
21065      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21066	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21067      # Make sure the directory exists.
21068      test -f "$dirpart/$file" && continue
21069      fdir=`$as_dirname -- "$file" ||
21070$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21071	 X"$file" : 'X\(//\)[^/]' \| \
21072	 X"$file" : 'X\(//\)$' \| \
21073	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21074$as_echo X"$file" |
21075    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21076	    s//\1/
21077	    q
21078	  }
21079	  /^X\(\/\/\)[^/].*/{
21080	    s//\1/
21081	    q
21082	  }
21083	  /^X\(\/\/\)$/{
21084	    s//\1/
21085	    q
21086	  }
21087	  /^X\(\/\).*/{
21088	    s//\1/
21089	    q
21090	  }
21091	  s/.*/./; q'`
21092      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21093      # echo "creating $dirpart/$file"
21094      echo '# dummy' > "$dirpart/$file"
21095    done
21096  done
21097}
21098 ;;
21099    "libtool":C)
21100
21101    # See if we are running on zsh, and set the options that allow our
21102    # commands through without removal of \ escapes.
21103    if test -n "${ZSH_VERSION+set}"; then
21104      setopt NO_GLOB_SUBST
21105    fi
21106
21107    cfgfile=${ofile}T
21108    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21109    $RM "$cfgfile"
21110
21111    cat <<_LT_EOF >> "$cfgfile"
21112#! $SHELL
21113# Generated automatically by $as_me ($PACKAGE) $VERSION
21114# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21115# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21116
21117# Provide generalized library-building support services.
21118# Written by Gordon Matzigkeit, 1996
21119
21120# Copyright (C) 2014 Free Software Foundation, Inc.
21121# This is free software; see the source for copying conditions.  There is NO
21122# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21123
21124# GNU Libtool is free software; you can redistribute it and/or modify
21125# it under the terms of the GNU General Public License as published by
21126# the Free Software Foundation; either version 2 of of the License, or
21127# (at your option) any later version.
21128#
21129# As a special exception to the GNU General Public License, if you
21130# distribute this file as part of a program or library that is built
21131# using GNU Libtool, you may include this file under the  same
21132# distribution terms that you use for the rest of that program.
21133#
21134# GNU Libtool is distributed in the hope that it will be useful, but
21135# WITHOUT ANY WARRANTY; without even the implied warranty of
21136# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21137# GNU General Public License for more details.
21138#
21139# You should have received a copy of the GNU General Public License
21140# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21141
21142
21143# The names of the tagged configurations supported by this script.
21144available_tags=''
21145
21146# Configured defaults for sys_lib_dlsearch_path munging.
21147: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21148
21149# ### BEGIN LIBTOOL CONFIG
21150
21151# Whether or not to build static libraries.
21152build_old_libs=$enable_static
21153
21154# Which release of libtool.m4 was used?
21155macro_version=$macro_version
21156macro_revision=$macro_revision
21157
21158# Whether or not to build shared libraries.
21159build_libtool_libs=$enable_shared
21160
21161# What type of objects to build.
21162pic_mode=$pic_mode
21163
21164# Whether or not to optimize for fast installation.
21165fast_install=$enable_fast_install
21166
21167# Shared archive member basename,for filename based shared library versioning on AIX.
21168shared_archive_member_spec=$shared_archive_member_spec
21169
21170# Shell to use when invoking shell scripts.
21171SHELL=$lt_SHELL
21172
21173# An echo program that protects backslashes.
21174ECHO=$lt_ECHO
21175
21176# The PATH separator for the build system.
21177PATH_SEPARATOR=$lt_PATH_SEPARATOR
21178
21179# The host system.
21180host_alias=$host_alias
21181host=$host
21182host_os=$host_os
21183
21184# The build system.
21185build_alias=$build_alias
21186build=$build
21187build_os=$build_os
21188
21189# A sed program that does not truncate output.
21190SED=$lt_SED
21191
21192# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21193Xsed="\$SED -e 1s/^X//"
21194
21195# A grep program that handles long lines.
21196GREP=$lt_GREP
21197
21198# An ERE matcher.
21199EGREP=$lt_EGREP
21200
21201# A literal string matcher.
21202FGREP=$lt_FGREP
21203
21204# A BSD- or MS-compatible name lister.
21205NM=$lt_NM
21206
21207# Whether we need soft or hard links.
21208LN_S=$lt_LN_S
21209
21210# What is the maximum length of a command?
21211max_cmd_len=$max_cmd_len
21212
21213# Object file suffix (normally "o").
21214objext=$ac_objext
21215
21216# Executable file suffix (normally "").
21217exeext=$exeext
21218
21219# whether the shell understands "unset".
21220lt_unset=$lt_unset
21221
21222# turn spaces into newlines.
21223SP2NL=$lt_lt_SP2NL
21224
21225# turn newlines into spaces.
21226NL2SP=$lt_lt_NL2SP
21227
21228# convert \$build file names to \$host format.
21229to_host_file_cmd=$lt_cv_to_host_file_cmd
21230
21231# convert \$build files to toolchain format.
21232to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21233
21234# An object symbol dumper.
21235OBJDUMP=$lt_OBJDUMP
21236
21237# Method to check whether dependent libraries are shared objects.
21238deplibs_check_method=$lt_deplibs_check_method
21239
21240# Command to use when deplibs_check_method = "file_magic".
21241file_magic_cmd=$lt_file_magic_cmd
21242
21243# How to find potential files when deplibs_check_method = "file_magic".
21244file_magic_glob=$lt_file_magic_glob
21245
21246# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21247want_nocaseglob=$lt_want_nocaseglob
21248
21249# DLL creation program.
21250DLLTOOL=$lt_DLLTOOL
21251
21252# Command to associate shared and link libraries.
21253sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21254
21255# The archiver.
21256AR=$lt_AR
21257
21258# Flags to create an archive.
21259AR_FLAGS=$lt_AR_FLAGS
21260
21261# How to feed a file listing to the archiver.
21262archiver_list_spec=$lt_archiver_list_spec
21263
21264# A symbol stripping program.
21265STRIP=$lt_STRIP
21266
21267# Commands used to install an old-style archive.
21268RANLIB=$lt_RANLIB
21269old_postinstall_cmds=$lt_old_postinstall_cmds
21270old_postuninstall_cmds=$lt_old_postuninstall_cmds
21271
21272# Whether to use a lock for old archive extraction.
21273lock_old_archive_extraction=$lock_old_archive_extraction
21274
21275# A C compiler.
21276LTCC=$lt_CC
21277
21278# LTCC compiler flags.
21279LTCFLAGS=$lt_CFLAGS
21280
21281# Take the output of nm and produce a listing of raw symbols and C names.
21282global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21283
21284# Transform the output of nm in a proper C declaration.
21285global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21286
21287# Transform the output of nm into a list of symbols to manually relocate.
21288global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21289
21290# Transform the output of nm in a C name address pair.
21291global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21292
21293# Transform the output of nm in a C name address pair when lib prefix is needed.
21294global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21295
21296# The name lister interface.
21297nm_interface=$lt_lt_cv_nm_interface
21298
21299# Specify filename containing input files for \$NM.
21300nm_file_list_spec=$lt_nm_file_list_spec
21301
21302# The root where to search for dependent libraries,and where our libraries should be installed.
21303lt_sysroot=$lt_sysroot
21304
21305# Command to truncate a binary pipe.
21306lt_truncate_bin=$lt_lt_cv_truncate_bin
21307
21308# The name of the directory that contains temporary libtool files.
21309objdir=$objdir
21310
21311# Used to examine libraries when file_magic_cmd begins with "file".
21312MAGIC_CMD=$MAGIC_CMD
21313
21314# Must we lock files when doing compilation?
21315need_locks=$lt_need_locks
21316
21317# Manifest tool.
21318MANIFEST_TOOL=$lt_MANIFEST_TOOL
21319
21320# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21321DSYMUTIL=$lt_DSYMUTIL
21322
21323# Tool to change global to local symbols on Mac OS X.
21324NMEDIT=$lt_NMEDIT
21325
21326# Tool to manipulate fat objects and archives on Mac OS X.
21327LIPO=$lt_LIPO
21328
21329# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21330OTOOL=$lt_OTOOL
21331
21332# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21333OTOOL64=$lt_OTOOL64
21334
21335# Old archive suffix (normally "a").
21336libext=$libext
21337
21338# Shared library suffix (normally ".so").
21339shrext_cmds=$lt_shrext_cmds
21340
21341# The commands to extract the exported symbol list from a shared archive.
21342extract_expsyms_cmds=$lt_extract_expsyms_cmds
21343
21344# Variables whose values should be saved in libtool wrapper scripts and
21345# restored at link time.
21346variables_saved_for_relink=$lt_variables_saved_for_relink
21347
21348# Do we need the "lib" prefix for modules?
21349need_lib_prefix=$need_lib_prefix
21350
21351# Do we need a version for libraries?
21352need_version=$need_version
21353
21354# Library versioning type.
21355version_type=$version_type
21356
21357# Shared library runtime path variable.
21358runpath_var=$runpath_var
21359
21360# Shared library path variable.
21361shlibpath_var=$shlibpath_var
21362
21363# Is shlibpath searched before the hard-coded library search path?
21364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21365
21366# Format of library name prefix.
21367libname_spec=$lt_libname_spec
21368
21369# List of archive names.  First name is the real one, the rest are links.
21370# The last name is the one that the linker finds with -lNAME
21371library_names_spec=$lt_library_names_spec
21372
21373# The coded name of the library, if different from the real name.
21374soname_spec=$lt_soname_spec
21375
21376# Permission mode override for installation of shared libraries.
21377install_override_mode=$lt_install_override_mode
21378
21379# Command to use after installation of a shared archive.
21380postinstall_cmds=$lt_postinstall_cmds
21381
21382# Command to use after uninstallation of a shared archive.
21383postuninstall_cmds=$lt_postuninstall_cmds
21384
21385# Commands used to finish a libtool library installation in a directory.
21386finish_cmds=$lt_finish_cmds
21387
21388# As "finish_cmds", except a single script fragment to be evaled but
21389# not shown.
21390finish_eval=$lt_finish_eval
21391
21392# Whether we should hardcode library paths into libraries.
21393hardcode_into_libs=$hardcode_into_libs
21394
21395# Compile-time system search path for libraries.
21396sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21397
21398# Detected run-time system search path for libraries.
21399sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21400
21401# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21402configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21403
21404# Whether dlopen is supported.
21405dlopen_support=$enable_dlopen
21406
21407# Whether dlopen of programs is supported.
21408dlopen_self=$enable_dlopen_self
21409
21410# Whether dlopen of statically linked programs is supported.
21411dlopen_self_static=$enable_dlopen_self_static
21412
21413# Commands to strip libraries.
21414old_striplib=$lt_old_striplib
21415striplib=$lt_striplib
21416
21417
21418# The linker used to build libraries.
21419LD=$lt_LD
21420
21421# How to create reloadable object files.
21422reload_flag=$lt_reload_flag
21423reload_cmds=$lt_reload_cmds
21424
21425# Commands used to build an old-style archive.
21426old_archive_cmds=$lt_old_archive_cmds
21427
21428# A language specific compiler.
21429CC=$lt_compiler
21430
21431# Is the compiler the GNU compiler?
21432with_gcc=$GCC
21433
21434# Compiler flag to turn off builtin functions.
21435no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21436
21437# Additional compiler flags for building library objects.
21438pic_flag=$lt_lt_prog_compiler_pic
21439
21440# How to pass a linker flag through the compiler.
21441wl=$lt_lt_prog_compiler_wl
21442
21443# Compiler flag to prevent dynamic linking.
21444link_static_flag=$lt_lt_prog_compiler_static
21445
21446# Does compiler simultaneously support -c and -o options?
21447compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21448
21449# Whether or not to add -lc for building shared libraries.
21450build_libtool_need_lc=$archive_cmds_need_lc
21451
21452# Whether or not to disallow shared libs when runtime libs are static.
21453allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21454
21455# Compiler flag to allow reflexive dlopens.
21456export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21457
21458# Compiler flag to generate shared objects directly from archives.
21459whole_archive_flag_spec=$lt_whole_archive_flag_spec
21460
21461# Whether the compiler copes with passing no objects directly.
21462compiler_needs_object=$lt_compiler_needs_object
21463
21464# Create an old-style archive from a shared archive.
21465old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21466
21467# Create a temporary old-style archive to link instead of a shared archive.
21468old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21469
21470# Commands used to build a shared archive.
21471archive_cmds=$lt_archive_cmds
21472archive_expsym_cmds=$lt_archive_expsym_cmds
21473
21474# Commands used to build a loadable module if different from building
21475# a shared archive.
21476module_cmds=$lt_module_cmds
21477module_expsym_cmds=$lt_module_expsym_cmds
21478
21479# Whether we are building with GNU ld or not.
21480with_gnu_ld=$lt_with_gnu_ld
21481
21482# Flag that allows shared libraries with undefined symbols to be built.
21483allow_undefined_flag=$lt_allow_undefined_flag
21484
21485# Flag that enforces no undefined symbols.
21486no_undefined_flag=$lt_no_undefined_flag
21487
21488# Flag to hardcode \$libdir into a binary during linking.
21489# This must work even if \$libdir does not exist
21490hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21491
21492# Whether we need a single "-rpath" flag with a separated argument.
21493hardcode_libdir_separator=$lt_hardcode_libdir_separator
21494
21495# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21496# DIR into the resulting binary.
21497hardcode_direct=$hardcode_direct
21498
21499# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21500# DIR into the resulting binary and the resulting library dependency is
21501# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21502# library is relocated.
21503hardcode_direct_absolute=$hardcode_direct_absolute
21504
21505# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21506# into the resulting binary.
21507hardcode_minus_L=$hardcode_minus_L
21508
21509# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21510# into the resulting binary.
21511hardcode_shlibpath_var=$hardcode_shlibpath_var
21512
21513# Set to "yes" if building a shared library automatically hardcodes DIR
21514# into the library and all subsequent libraries and executables linked
21515# against it.
21516hardcode_automatic=$hardcode_automatic
21517
21518# Set to yes if linker adds runtime paths of dependent libraries
21519# to runtime path list.
21520inherit_rpath=$inherit_rpath
21521
21522# Whether libtool must link a program against all its dependency libraries.
21523link_all_deplibs=$link_all_deplibs
21524
21525# Set to "yes" if exported symbols are required.
21526always_export_symbols=$always_export_symbols
21527
21528# The commands to list exported symbols.
21529export_symbols_cmds=$lt_export_symbols_cmds
21530
21531# Symbols that should not be listed in the preloaded symbols.
21532exclude_expsyms=$lt_exclude_expsyms
21533
21534# Symbols that must always be exported.
21535include_expsyms=$lt_include_expsyms
21536
21537# Commands necessary for linking programs (against libraries) with templates.
21538prelink_cmds=$lt_prelink_cmds
21539
21540# Commands necessary for finishing linking programs.
21541postlink_cmds=$lt_postlink_cmds
21542
21543# Specify filename containing input files.
21544file_list_spec=$lt_file_list_spec
21545
21546# How to hardcode a shared library path into an executable.
21547hardcode_action=$hardcode_action
21548
21549# ### END LIBTOOL CONFIG
21550
21551_LT_EOF
21552
21553    cat <<'_LT_EOF' >> "$cfgfile"
21554
21555# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21556
21557# func_munge_path_list VARIABLE PATH
21558# -----------------------------------
21559# VARIABLE is name of variable containing _space_ separated list of
21560# directories to be munged by the contents of PATH, which is string
21561# having a format:
21562# "DIR[:DIR]:"
21563#       string "DIR[ DIR]" will be prepended to VARIABLE
21564# ":DIR[:DIR]"
21565#       string "DIR[ DIR]" will be appended to VARIABLE
21566# "DIRP[:DIRP]::[DIRA:]DIRA"
21567#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21568#       "DIRA[ DIRA]" will be appended to VARIABLE
21569# "DIR[:DIR]"
21570#       VARIABLE will be replaced by "DIR[ DIR]"
21571func_munge_path_list ()
21572{
21573    case x$2 in
21574    x)
21575        ;;
21576    *:)
21577        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21578        ;;
21579    x:*)
21580        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21581        ;;
21582    *::*)
21583        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21584        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21585        ;;
21586    *)
21587        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21588        ;;
21589    esac
21590}
21591
21592
21593# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21594func_cc_basename ()
21595{
21596    for cc_temp in $*""; do
21597      case $cc_temp in
21598        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21599        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21600        \-*) ;;
21601        *) break;;
21602      esac
21603    done
21604    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21605}
21606
21607
21608# ### END FUNCTIONS SHARED WITH CONFIGURE
21609
21610_LT_EOF
21611
21612  case $host_os in
21613  aix3*)
21614    cat <<\_LT_EOF >> "$cfgfile"
21615# AIX sometimes has problems with the GCC collect2 program.  For some
21616# reason, if we set the COLLECT_NAMES environment variable, the problems
21617# vanish in a puff of smoke.
21618if test set != "${COLLECT_NAMES+set}"; then
21619  COLLECT_NAMES=
21620  export COLLECT_NAMES
21621fi
21622_LT_EOF
21623    ;;
21624  esac
21625
21626
21627ltmain=$ac_aux_dir/ltmain.sh
21628
21629
21630  # We use sed instead of cat because bash on DJGPP gets confused if
21631  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21632  # text mode, it properly converts lines to CR/LF.  This bash problem
21633  # is reportedly fixed, but why not run on old versions too?
21634  sed '$q' "$ltmain" >> "$cfgfile" \
21635     || (rm -f "$cfgfile"; exit 1)
21636
21637   mv -f "$cfgfile" "$ofile" ||
21638    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21639  chmod +x "$ofile"
21640
21641 ;;
21642
21643  esac
21644done # for ac_tag
21645
21646
21647as_fn_exit 0
21648_ACEOF
21649ac_clean_files=$ac_clean_files_save
21650
21651test $ac_write_fail = 0 ||
21652  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21653
21654
21655# configure is writing to config.log, and then calls config.status.
21656# config.status does its own redirection, appending to config.log.
21657# Unfortunately, on DOS this fails, as config.log is still kept open
21658# by configure, so config.status won't be able to write to it; its
21659# output is simply discarded.  So we exec the FD to /dev/null,
21660# effectively closing config.log, so it can be properly (re)opened and
21661# appended to by config.status.  When coming back to configure, we
21662# need to make the FD available again.
21663if test "$no_create" != yes; then
21664  ac_cs_success=:
21665  ac_config_status_args=
21666  test "$silent" = yes &&
21667    ac_config_status_args="$ac_config_status_args --quiet"
21668  exec 5>/dev/null
21669  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21670  exec 5>>config.log
21671  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21672  # would make configure fail if this is the last instruction.
21673  $ac_cs_success || as_fn_exit 1
21674fi
21675if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21676  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21677$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21678fi
21679
21680