configure revision 0bb88ba4
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-mga 1.6.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251$0: about your system, including any error possibly output
252$0: before this message. Then install a modern shell, or
253$0: manually run the script under such a shell if you do
254$0: have one."
255  fi
256  exit 1
257fi
258fi
259fi
260SHELL=${CONFIG_SHELL-/bin/sh}
261export SHELL
262# Unset more variables known to interfere with behavior of common tools.
263CLICOLOR_FORCE= GREP_OPTIONS=
264unset CLICOLOR_FORCE GREP_OPTIONS
265
266## --------------------- ##
267## M4sh Shell Functions. ##
268## --------------------- ##
269# as_fn_unset VAR
270# ---------------
271# Portably unset VAR.
272as_fn_unset ()
273{
274  { eval $1=; unset $1;}
275}
276as_unset=as_fn_unset
277
278# as_fn_set_status STATUS
279# -----------------------
280# Set $? to STATUS, without forking.
281as_fn_set_status ()
282{
283  return $1
284} # as_fn_set_status
285
286# as_fn_exit STATUS
287# -----------------
288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289as_fn_exit ()
290{
291  set +e
292  as_fn_set_status $1
293  exit $1
294} # as_fn_exit
295
296# as_fn_mkdir_p
297# -------------
298# Create "$as_dir" as a directory, including parents if necessary.
299as_fn_mkdir_p ()
300{
301
302  case $as_dir in #(
303  -*) as_dir=./$as_dir;;
304  esac
305  test -d "$as_dir" || eval $as_mkdir_p || {
306    as_dirs=
307    while :; do
308      case $as_dir in #(
309      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310      *) as_qdir=$as_dir;;
311      esac
312      as_dirs="'$as_qdir' $as_dirs"
313      as_dir=`$as_dirname -- "$as_dir" ||
314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315	 X"$as_dir" : 'X\(//\)[^/]' \| \
316	 X"$as_dir" : 'X\(//\)$' \| \
317	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318$as_echo X"$as_dir" |
319    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)[^/].*/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\/\)$/{
328	    s//\1/
329	    q
330	  }
331	  /^X\(\/\).*/{
332	    s//\1/
333	    q
334	  }
335	  s/.*/./; q'`
336      test -d "$as_dir" && break
337    done
338    test -z "$as_dirs" || eval "mkdir $as_dirs"
339  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342} # as_fn_mkdir_p
343# as_fn_append VAR VALUE
344# ----------------------
345# Append the text in VALUE to the end of the definition contained in VAR. Take
346# advantage of any shell optimizations that allow amortized linear growth over
347# repeated appends, instead of the typical quadratic growth present in naive
348# implementations.
349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350  eval 'as_fn_append ()
351  {
352    eval $1+=\$2
353  }'
354else
355  as_fn_append ()
356  {
357    eval $1=\$$1\$2
358  }
359fi # as_fn_append
360
361# as_fn_arith ARG...
362# ------------------
363# Perform arithmetic evaluation on the ARGs, and store the result in the
364# global $as_val. Take advantage of shells that can avoid forks. The arguments
365# must be portable across $(()) and expr.
366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367  eval 'as_fn_arith ()
368  {
369    as_val=$(( $* ))
370  }'
371else
372  as_fn_arith ()
373  {
374    as_val=`expr "$@" || test $? -eq 1`
375  }
376fi # as_fn_arith
377
378
379# as_fn_error STATUS ERROR [LINENO LOG_FD]
380# ----------------------------------------
381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383# script with STATUS, using 1 if that was 0.
384as_fn_error ()
385{
386  as_status=$1; test $as_status -eq 0 && as_status=1
387  if test "$4"; then
388    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390  fi
391  $as_echo "$as_me: error: $2" >&2
392  as_fn_exit $as_status
393} # as_fn_error
394
395if expr a : '\(a\)' >/dev/null 2>&1 &&
396   test "X`expr 00001 : '.*\(...\)'`" = X001; then
397  as_expr=expr
398else
399  as_expr=false
400fi
401
402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403  as_basename=basename
404else
405  as_basename=false
406fi
407
408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409  as_dirname=dirname
410else
411  as_dirname=false
412fi
413
414as_me=`$as_basename -- "$0" ||
415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416	 X"$0" : 'X\(//\)$' \| \
417	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418$as_echo X/"$0" |
419    sed '/^.*\/\([^/][^/]*\)\/*$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\/\)$/{
424	    s//\1/
425	    q
426	  }
427	  /^X\/\(\/\).*/{
428	    s//\1/
429	    q
430	  }
431	  s/.*/./; q'`
432
433# Avoid depending upon Character Ranges.
434as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437as_cr_digits='0123456789'
438as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441  as_lineno_1=$LINENO as_lineno_1a=$LINENO
442  as_lineno_2=$LINENO as_lineno_2a=$LINENO
443  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446  sed -n '
447    p
448    /[$]LINENO/=
449  ' <$as_myself |
450    sed '
451      s/[$]LINENO.*/&-/
452      t lineno
453      b
454      :lineno
455      N
456      :loop
457      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458      t loop
459      s/-\n.*//
460    ' >$as_me.lineno &&
461  chmod +x "$as_me.lineno" ||
462    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464  # Don't try to exec as it changes $[0], causing all sort of problems
465  # (the dirname of $[0] is not the place where we might find the
466  # original and so on.  Autoconf is especially sensitive to this).
467  . "./$as_me.lineno"
468  # Exit status is that of the last command.
469  exit
470}
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in #(((((
474-n*)
475  case `echo 'xy\c'` in
476  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
477  xy)  ECHO_C='\c';;
478  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479       ECHO_T='	';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485rm -f conf$$ conf$$.exe conf$$.file
486if test -d conf$$.dir; then
487  rm -f conf$$.dir/conf$$.file
488else
489  rm -f conf$$.dir
490  mkdir conf$$.dir 2>/dev/null
491fi
492if (echo >conf$$.file) 2>/dev/null; then
493  if ln -s conf$$.file conf$$ 2>/dev/null; then
494    as_ln_s='ln -s'
495    # ... but there are two gotchas:
496    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498    # In both cases, we have to default to `cp -p'.
499    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500      as_ln_s='cp -p'
501  elif ln conf$$.file conf$$ 2>/dev/null; then
502    as_ln_s=ln
503  else
504    as_ln_s='cp -p'
505  fi
506else
507  as_ln_s='cp -p'
508fi
509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
511
512if mkdir -p . 2>/dev/null; then
513  as_mkdir_p='mkdir -p "$as_dir"'
514else
515  test -d ./-p && rmdir ./-p
516  as_mkdir_p=false
517fi
518
519if test -x / >/dev/null 2>&1; then
520  as_test_x='test -x'
521else
522  if ls -dL / >/dev/null 2>&1; then
523    as_ls_L_option=L
524  else
525    as_ls_L_option=
526  fi
527  as_test_x='
528    eval sh -c '\''
529      if test -d "$1"; then
530	test -d "$1/.";
531      else
532	case $1 in #(
533	-*)set "./$1";;
534	esac;
535	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536	???[sx]*):;;*)false;;esac;fi
537    '\'' sh
538  '
539fi
540as_executable_p=$as_test_x
541
542# Sed expression to map a string onto a valid CPP name.
543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545# Sed expression to map a string onto a valid variable name.
546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570
571# Identity of this package.
572PACKAGE_NAME='xf86-video-mga'
573PACKAGE_TARNAME='xf86-video-mga'
574PACKAGE_VERSION='1.6.2'
575PACKAGE_STRING='xf86-video-mga 1.6.2'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621moduledir
622USE_EXA_FALSE
623USE_EXA_TRUE
624XAA_FALSE
625XAA_TRUE
626XSERVER_LIBPCIACCESS_FALSE
627XSERVER_LIBPCIACCESS_TRUE
628PCIACCESS_LIBS
629PCIACCESS_CFLAGS
630DRI_LIBS
631DRI_CFLAGS
632DRI_FALSE
633DRI_TRUE
634XORG_LIBS
635XORG_CFLAGS
636OTOOL64
637OTOOL
638LIPO
639NMEDIT
640DSYMUTIL
641MANIFEST_TOOL
642RANLIB
643ac_ct_AR
644AR
645DLLTOOL
646OBJDUMP
647LN_S
648NM
649ac_ct_DUMPBIN
650DUMPBIN
651LD
652FGREP
653LIBTOOL
654MAINT
655MAINTAINER_MODE_FALSE
656MAINTAINER_MODE_TRUE
657am__fastdepCC_FALSE
658am__fastdepCC_TRUE
659CCDEPMODE
660am__nodep
661AMDEPBACKSLASH
662AMDEP_FALSE
663AMDEP_TRUE
664am__quote
665am__include
666DEPDIR
667am__untar
668am__tar
669AMTAR
670am__leading_dot
671SET_MAKE
672AWK
673mkdir_p
674MKDIR_P
675INSTALL_STRIP_PROGRAM
676STRIP
677install_sh
678MAKEINFO
679AUTOHEADER
680AUTOMAKE
681AUTOCONF
682ACLOCAL
683VERSION
684PACKAGE
685CYGPATH_W
686am__isrc
687AM_BACKSLASH
688AM_DEFAULT_VERBOSITY
689AM_DEFAULT_V
690AM_V
691MAN_SUBSTS
692XORG_MAN_PAGE
693ADMIN_MAN_DIR
694DRIVER_MAN_DIR
695MISC_MAN_DIR
696FILE_MAN_DIR
697LIB_MAN_DIR
698APP_MAN_DIR
699ADMIN_MAN_SUFFIX
700DRIVER_MAN_SUFFIX
701MISC_MAN_SUFFIX
702FILE_MAN_SUFFIX
703LIB_MAN_SUFFIX
704APP_MAN_SUFFIX
705SED
706host_os
707host_vendor
708host_cpu
709host
710build_os
711build_vendor
712build_cpu
713build
714INSTALL_CMD
715PKG_CONFIG_LIBDIR
716PKG_CONFIG_PATH
717PKG_CONFIG
718CHANGELOG_CMD
719STRICT_CFLAGS
720CWARNFLAGS
721BASE_CFLAGS
722EGREP
723GREP
724CPP
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files=''
774ac_user_opts='
775enable_option_checking
776enable_selective_werror
777enable_strict_compilation
778enable_silent_rules
779enable_dependency_tracking
780enable_maintainer_mode
781enable_static
782enable_shared
783with_pic
784enable_fast_install
785with_gnu_ld
786with_sysroot
787enable_libtool_lock
788with_xorg_module_dir
789enable_dri
790enable_exa
791enable_xaa
792'
793      ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CPP
802PKG_CONFIG
803PKG_CONFIG_PATH
804PKG_CONFIG_LIBDIR
805XORG_CFLAGS
806XORG_LIBS
807DRI_CFLAGS
808DRI_LIBS
809PCIACCESS_CFLAGS
810PCIACCESS_LIBS'
811
812
813# Initialize some variables set by options.
814ac_init_help=
815ac_init_version=false
816ac_unrecognized_opts=
817ac_unrecognized_sep=
818# The variables have the same names as the options, with
819# dashes changed to underlines.
820cache_file=/dev/null
821exec_prefix=NONE
822no_create=
823no_recursion=
824prefix=NONE
825program_prefix=NONE
826program_suffix=NONE
827program_transform_name=s,x,x,
828silent=
829site=
830srcdir=
831verbose=
832x_includes=NONE
833x_libraries=NONE
834
835# Installation directory options.
836# These are left unexpanded so users can "make install exec_prefix=/foo"
837# and all the variables that are supposed to be based on exec_prefix
838# by default will actually change.
839# Use braces instead of parens because sh, perl, etc. also accept them.
840# (The list follows the same order as the GNU Coding Standards.)
841bindir='${exec_prefix}/bin'
842sbindir='${exec_prefix}/sbin'
843libexecdir='${exec_prefix}/libexec'
844datarootdir='${prefix}/share'
845datadir='${datarootdir}'
846sysconfdir='${prefix}/etc'
847sharedstatedir='${prefix}/com'
848localstatedir='${prefix}/var'
849includedir='${prefix}/include'
850oldincludedir='/usr/include'
851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852infodir='${datarootdir}/info'
853htmldir='${docdir}'
854dvidir='${docdir}'
855pdfdir='${docdir}'
856psdir='${docdir}'
857libdir='${exec_prefix}/lib'
858localedir='${datarootdir}/locale'
859mandir='${datarootdir}/man'
860
861ac_prev=
862ac_dashdash=
863for ac_option
864do
865  # If the previous option needs an argument, assign it.
866  if test -n "$ac_prev"; then
867    eval $ac_prev=\$ac_option
868    ac_prev=
869    continue
870  fi
871
872  case $ac_option in
873  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874  *=)   ac_optarg= ;;
875  *)    ac_optarg=yes ;;
876  esac
877
878  # Accept the important Cygnus configure options, so we can diagnose typos.
879
880  case $ac_dashdash$ac_option in
881  --)
882    ac_dashdash=yes ;;
883
884  -bindir | --bindir | --bindi | --bind | --bin | --bi)
885    ac_prev=bindir ;;
886  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887    bindir=$ac_optarg ;;
888
889  -build | --build | --buil | --bui | --bu)
890    ac_prev=build_alias ;;
891  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892    build_alias=$ac_optarg ;;
893
894  -cache-file | --cache-file | --cache-fil | --cache-fi \
895  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896    ac_prev=cache_file ;;
897  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899    cache_file=$ac_optarg ;;
900
901  --config-cache | -C)
902    cache_file=config.cache ;;
903
904  -datadir | --datadir | --datadi | --datad)
905    ac_prev=datadir ;;
906  -datadir=* | --datadir=* | --datadi=* | --datad=*)
907    datadir=$ac_optarg ;;
908
909  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910  | --dataroo | --dataro | --datar)
911    ac_prev=datarootdir ;;
912  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914    datarootdir=$ac_optarg ;;
915
916  -disable-* | --disable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=no ;;
931
932  -docdir | --docdir | --docdi | --doc | --do)
933    ac_prev=docdir ;;
934  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935    docdir=$ac_optarg ;;
936
937  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938    ac_prev=dvidir ;;
939  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940    dvidir=$ac_optarg ;;
941
942  -enable-* | --enable-*)
943    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944    # Reject names that are not valid shell variable names.
945    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946      as_fn_error $? "invalid feature name: $ac_useropt"
947    ac_useropt_orig=$ac_useropt
948    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949    case $ac_user_opts in
950      *"
951"enable_$ac_useropt"
952"*) ;;
953      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954	 ac_unrecognized_sep=', ';;
955    esac
956    eval enable_$ac_useropt=\$ac_optarg ;;
957
958  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960  | --exec | --exe | --ex)
961    ac_prev=exec_prefix ;;
962  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964  | --exec=* | --exe=* | --ex=*)
965    exec_prefix=$ac_optarg ;;
966
967  -gas | --gas | --ga | --g)
968    # Obsolete; use --with-gas.
969    with_gas=yes ;;
970
971  -help | --help | --hel | --he | -h)
972    ac_init_help=long ;;
973  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974    ac_init_help=recursive ;;
975  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976    ac_init_help=short ;;
977
978  -host | --host | --hos | --ho)
979    ac_prev=host_alias ;;
980  -host=* | --host=* | --hos=* | --ho=*)
981    host_alias=$ac_optarg ;;
982
983  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
984    ac_prev=htmldir ;;
985  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
986  | --ht=*)
987    htmldir=$ac_optarg ;;
988
989  -includedir | --includedir | --includedi | --included | --include \
990  | --includ | --inclu | --incl | --inc)
991    ac_prev=includedir ;;
992  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993  | --includ=* | --inclu=* | --incl=* | --inc=*)
994    includedir=$ac_optarg ;;
995
996  -infodir | --infodir | --infodi | --infod | --info | --inf)
997    ac_prev=infodir ;;
998  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999    infodir=$ac_optarg ;;
1000
1001  -libdir | --libdir | --libdi | --libd)
1002    ac_prev=libdir ;;
1003  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004    libdir=$ac_optarg ;;
1005
1006  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007  | --libexe | --libex | --libe)
1008    ac_prev=libexecdir ;;
1009  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010  | --libexe=* | --libex=* | --libe=*)
1011    libexecdir=$ac_optarg ;;
1012
1013  -localedir | --localedir | --localedi | --localed | --locale)
1014    ac_prev=localedir ;;
1015  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016    localedir=$ac_optarg ;;
1017
1018  -localstatedir | --localstatedir | --localstatedi | --localstated \
1019  | --localstate | --localstat | --localsta | --localst | --locals)
1020    ac_prev=localstatedir ;;
1021  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023    localstatedir=$ac_optarg ;;
1024
1025  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1026    ac_prev=mandir ;;
1027  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028    mandir=$ac_optarg ;;
1029
1030  -nfp | --nfp | --nf)
1031    # Obsolete; use --without-fp.
1032    with_fp=no ;;
1033
1034  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035  | --no-cr | --no-c | -n)
1036    no_create=yes ;;
1037
1038  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1040    no_recursion=yes ;;
1041
1042  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044  | --oldin | --oldi | --old | --ol | --o)
1045    ac_prev=oldincludedir ;;
1046  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049    oldincludedir=$ac_optarg ;;
1050
1051  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1052    ac_prev=prefix ;;
1053  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054    prefix=$ac_optarg ;;
1055
1056  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057  | --program-pre | --program-pr | --program-p)
1058    ac_prev=program_prefix ;;
1059  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061    program_prefix=$ac_optarg ;;
1062
1063  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064  | --program-suf | --program-su | --program-s)
1065    ac_prev=program_suffix ;;
1066  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068    program_suffix=$ac_optarg ;;
1069
1070  -program-transform-name | --program-transform-name \
1071  | --program-transform-nam | --program-transform-na \
1072  | --program-transform-n | --program-transform- \
1073  | --program-transform | --program-transfor \
1074  | --program-transfo | --program-transf \
1075  | --program-trans | --program-tran \
1076  | --progr-tra | --program-tr | --program-t)
1077    ac_prev=program_transform_name ;;
1078  -program-transform-name=* | --program-transform-name=* \
1079  | --program-transform-nam=* | --program-transform-na=* \
1080  | --program-transform-n=* | --program-transform-=* \
1081  | --program-transform=* | --program-transfor=* \
1082  | --program-transfo=* | --program-transf=* \
1083  | --program-trans=* | --program-tran=* \
1084  | --progr-tra=* | --program-tr=* | --program-t=*)
1085    program_transform_name=$ac_optarg ;;
1086
1087  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1088    ac_prev=pdfdir ;;
1089  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090    pdfdir=$ac_optarg ;;
1091
1092  -psdir | --psdir | --psdi | --psd | --ps)
1093    ac_prev=psdir ;;
1094  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1095    psdir=$ac_optarg ;;
1096
1097  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098  | -silent | --silent | --silen | --sile | --sil)
1099    silent=yes ;;
1100
1101  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1102    ac_prev=sbindir ;;
1103  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1104  | --sbi=* | --sb=*)
1105    sbindir=$ac_optarg ;;
1106
1107  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109  | --sharedst | --shareds | --shared | --share | --shar \
1110  | --sha | --sh)
1111    ac_prev=sharedstatedir ;;
1112  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1115  | --sha=* | --sh=*)
1116    sharedstatedir=$ac_optarg ;;
1117
1118  -site | --site | --sit)
1119    ac_prev=site ;;
1120  -site=* | --site=* | --sit=*)
1121    site=$ac_optarg ;;
1122
1123  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1124    ac_prev=srcdir ;;
1125  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126    srcdir=$ac_optarg ;;
1127
1128  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129  | --syscon | --sysco | --sysc | --sys | --sy)
1130    ac_prev=sysconfdir ;;
1131  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133    sysconfdir=$ac_optarg ;;
1134
1135  -target | --target | --targe | --targ | --tar | --ta | --t)
1136    ac_prev=target_alias ;;
1137  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138    target_alias=$ac_optarg ;;
1139
1140  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1141    verbose=yes ;;
1142
1143  -version | --version | --versio | --versi | --vers | -V)
1144    ac_init_version=: ;;
1145
1146  -with-* | --with-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=\$ac_optarg ;;
1161
1162  -without-* | --without-*)
1163    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164    # Reject names that are not valid shell variable names.
1165    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166      as_fn_error $? "invalid package name: $ac_useropt"
1167    ac_useropt_orig=$ac_useropt
1168    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169    case $ac_user_opts in
1170      *"
1171"with_$ac_useropt"
1172"*) ;;
1173      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174	 ac_unrecognized_sep=', ';;
1175    esac
1176    eval with_$ac_useropt=no ;;
1177
1178  --x)
1179    # Obsolete; use --with-x.
1180    with_x=yes ;;
1181
1182  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183  | --x-incl | --x-inc | --x-in | --x-i)
1184    ac_prev=x_includes ;;
1185  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187    x_includes=$ac_optarg ;;
1188
1189  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191    ac_prev=x_libraries ;;
1192  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194    x_libraries=$ac_optarg ;;
1195
1196  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197Try \`$0 --help' for more information"
1198    ;;
1199
1200  *=*)
1201    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202    # Reject names that are not valid shell variable names.
1203    case $ac_envvar in #(
1204      '' | [0-9]* | *[!_$as_cr_alnum]* )
1205      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1206    esac
1207    eval $ac_envvar=\$ac_optarg
1208    export $ac_envvar ;;
1209
1210  *)
1211    # FIXME: should be removed in autoconf 3.0.
1212    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1216    ;;
1217
1218  esac
1219done
1220
1221if test -n "$ac_prev"; then
1222  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223  as_fn_error $? "missing argument to $ac_option"
1224fi
1225
1226if test -n "$ac_unrecognized_opts"; then
1227  case $enable_option_checking in
1228    no) ;;
1229    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231  esac
1232fi
1233
1234# Check all directory arguments for consistency.
1235for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236		datadir sysconfdir sharedstatedir localstatedir includedir \
1237		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238		libdir localedir mandir
1239do
1240  eval ac_val=\$$ac_var
1241  # Remove trailing slashes.
1242  case $ac_val in
1243    */ )
1244      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245      eval $ac_var=\$ac_val;;
1246  esac
1247  # Be sure to have absolute directory names.
1248  case $ac_val in
1249    [\\/$]* | ?:[\\/]* )  continue;;
1250    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1251  esac
1252  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1253done
1254
1255# There might be people who depend on the old broken behavior: `$host'
1256# used to hold the argument of --host etc.
1257# FIXME: To remove some day.
1258build=$build_alias
1259host=$host_alias
1260target=$target_alias
1261
1262# FIXME: To remove some day.
1263if test "x$host_alias" != x; then
1264  if test "x$build_alias" = x; then
1265    cross_compiling=maybe
1266    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1267    If a cross compiler is detected then cross compile mode will be used" >&2
1268  elif test "x$build_alias" != "x$host_alias"; then
1269    cross_compiling=yes
1270  fi
1271fi
1272
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
1277
1278
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282  as_fn_error $? "working directory cannot be determined"
1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284  as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289  ac_srcdir_defaulted=yes
1290  # Try the directory containing this script, then the parent directory.
1291  ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293	 X"$as_myself" : 'X\(//\)[^/]' \| \
1294	 X"$as_myself" : 'X\(//\)$' \| \
1295	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)[^/].*/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\/\)$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\).*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  s/.*/./; q'`
1314  srcdir=$ac_confdir
1315  if test ! -r "$srcdir/$ac_unique_file"; then
1316    srcdir=..
1317  fi
1318else
1319  ac_srcdir_defaulted=no
1320fi
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
1327	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328	pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331  srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341  eval ac_env_${ac_var}_value=\$${ac_var}
1342  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
1345
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350  # Omit some internal or obsolete options to make the list less imposing.
1351  # This message is too long to be a string in the A/UX 3.1 sh.
1352  cat <<_ACEOF
1353\`configure' configures xf86-video-mga 1.6.2 to adapt to many kinds of systems.
1354
1355Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE.  See below for descriptions of some of the useful variables.
1359
1360Defaults for the options are specified in brackets.
1361
1362Configuration:
1363  -h, --help              display this help and exit
1364      --help=short        display options specific to this package
1365      --help=recursive    display the short help of all the included packages
1366  -V, --version           display version information and exit
1367  -q, --quiet, --silent   do not print \`checking ...' messages
1368      --cache-file=FILE   cache test results in FILE [disabled]
1369  -C, --config-cache      alias for \`--cache-file=config.cache'
1370  -n, --no-create         do not create output files
1371      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1372
1373Installation directories:
1374  --prefix=PREFIX         install architecture-independent files in PREFIX
1375                          [$ac_default_prefix]
1376  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1377                          [PREFIX]
1378
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
1383
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
1387  --bindir=DIR            user executables [EPREFIX/bin]
1388  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1389  --libexecdir=DIR        program executables [EPREFIX/libexec]
1390  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1391  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1392  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1393  --libdir=DIR            object code libraries [EPREFIX/lib]
1394  --includedir=DIR        C header files [PREFIX/include]
1395  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1396  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1397  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1398  --infodir=DIR           info documentation [DATAROOTDIR/info]
1399  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1400  --mandir=DIR            man documentation [DATAROOTDIR/man]
1401  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-mga]
1402  --htmldir=DIR           html documentation [DOCDIR]
1403  --dvidir=DIR            dvi documentation [DOCDIR]
1404  --pdfdir=DIR            pdf documentation [DOCDIR]
1405  --psdir=DIR             ps documentation [DOCDIR]
1406_ACEOF
1407
1408  cat <<\_ACEOF
1409
1410Program names:
1411  --program-prefix=C            prepend C to installed program names
1412  --program-suffix=SUFFIX            append SUFFIX to installed program names
1413  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1414
1415System types:
1416  --build=BUILD     configure for building on BUILD [guessed]
1417  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418_ACEOF
1419fi
1420
1421if test -n "$ac_init_help"; then
1422  case $ac_init_help in
1423     short | recursive ) echo "Configuration of xf86-video-mga 1.6.2:";;
1424   esac
1425  cat <<\_ACEOF
1426
1427Optional Features:
1428  --disable-option-checking  ignore unrecognized --enable/--with options
1429  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431  --disable-selective-werror
1432                          Turn off selective compiler errors. (default:
1433                          enabled)
1434  --enable-strict-compilation
1435                          Enable all warnings from compiler and make them
1436                          errors (default: disabled)
1437  --enable-silent-rules          less verbose build output (undo: `make V=1')
1438  --disable-silent-rules         verbose build output (undo: `make V=0')
1439  --disable-dependency-tracking  speeds up one-time build
1440  --enable-dependency-tracking   do not reject slow dependency extractors
1441  --enable-maintainer-mode  enable make rules and dependencies not useful
1442			  (and sometimes confusing) to the casual installer
1443  --enable-static[=PKGS]  build static libraries [default=no]
1444  --enable-shared[=PKGS]  build shared libraries [default=yes]
1445  --enable-fast-install[=PKGS]
1446                          optimize for fast installation [default=yes]
1447  --disable-libtool-lock  avoid locking (might break parallel builds)
1448  --disable-dri           Disable DRI support [[default=auto]]
1449  --disable-exa           Disable EXA support [[default=enabled]]
1450  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1451                          [default=auto]
1452
1453Optional Packages:
1454  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1455  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1456  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1457                          both]
1458  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459  --with-sysroot=DIR Search for dependent libraries within DIR
1460                        (or the compiler's sysroot if not specified).
1461  --with-xorg-module-dir=DIR
1462                          Default xorg module directory
1463                          [[default=$libdir/xorg/modules]]
1464
1465Some influential environment variables:
1466  CC          C compiler command
1467  CFLAGS      C compiler flags
1468  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469              nonstandard directory <lib dir>
1470  LIBS        libraries to pass to the linker, e.g. -l<library>
1471  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472              you have headers in a nonstandard directory <include dir>
1473  CPP         C preprocessor
1474  PKG_CONFIG  path to pkg-config utility
1475  PKG_CONFIG_PATH
1476              directories to add to pkg-config's search path
1477  PKG_CONFIG_LIBDIR
1478              path overriding pkg-config's built-in search path
1479  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1480  XORG_LIBS   linker flags for XORG, overriding pkg-config
1481  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1482  DRI_LIBS    linker flags for DRI, overriding pkg-config
1483  PCIACCESS_CFLAGS
1484              C compiler flags for PCIACCESS, overriding pkg-config
1485  PCIACCESS_LIBS
1486              linker flags for PCIACCESS, overriding pkg-config
1487
1488Use these variables to override the choices made by `configure' or to help
1489it to find libraries and programs with nonstandard names/locations.
1490
1491Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1492_ACEOF
1493ac_status=$?
1494fi
1495
1496if test "$ac_init_help" = "recursive"; then
1497  # If there are subdirs, report their specific --help.
1498  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499    test -d "$ac_dir" ||
1500      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1501      continue
1502    ac_builddir=.
1503
1504case "$ac_dir" in
1505.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506*)
1507  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508  # A ".." for each directory in $ac_dir_suffix.
1509  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510  case $ac_top_builddir_sub in
1511  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1513  esac ;;
1514esac
1515ac_abs_top_builddir=$ac_pwd
1516ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517# for backward compatibility:
1518ac_top_builddir=$ac_top_build_prefix
1519
1520case $srcdir in
1521  .)  # We are building in place.
1522    ac_srcdir=.
1523    ac_top_srcdir=$ac_top_builddir_sub
1524    ac_abs_top_srcdir=$ac_pwd ;;
1525  [\\/]* | ?:[\\/]* )  # Absolute name.
1526    ac_srcdir=$srcdir$ac_dir_suffix;
1527    ac_top_srcdir=$srcdir
1528    ac_abs_top_srcdir=$srcdir ;;
1529  *) # Relative name.
1530    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531    ac_top_srcdir=$ac_top_build_prefix$srcdir
1532    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1533esac
1534ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535
1536    cd "$ac_dir" || { ac_status=$?; continue; }
1537    # Check for guested configure.
1538    if test -f "$ac_srcdir/configure.gnu"; then
1539      echo &&
1540      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541    elif test -f "$ac_srcdir/configure"; then
1542      echo &&
1543      $SHELL "$ac_srcdir/configure" --help=recursive
1544    else
1545      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1546    fi || ac_status=$?
1547    cd "$ac_pwd" || { ac_status=$?; break; }
1548  done
1549fi
1550
1551test -n "$ac_init_help" && exit $ac_status
1552if $ac_init_version; then
1553  cat <<\_ACEOF
1554xf86-video-mga configure 1.6.2
1555generated by GNU Autoconf 2.68
1556
1557Copyright (C) 2010 Free Software Foundation, Inc.
1558This configure script is free software; the Free Software Foundation
1559gives unlimited permission to copy, distribute and modify it.
1560_ACEOF
1561  exit
1562fi
1563
1564## ------------------------ ##
1565## Autoconf initialization. ##
1566## ------------------------ ##
1567
1568# ac_fn_c_try_compile LINENO
1569# --------------------------
1570# Try to compile conftest.$ac_ext, and return whether this succeeded.
1571ac_fn_c_try_compile ()
1572{
1573  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574  rm -f conftest.$ac_objext
1575  if { { ac_try="$ac_compile"
1576case "(($ac_try" in
1577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578  *) ac_try_echo=$ac_try;;
1579esac
1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581$as_echo "$ac_try_echo"; } >&5
1582  (eval "$ac_compile") 2>conftest.err
1583  ac_status=$?
1584  if test -s conftest.err; then
1585    grep -v '^ *+' conftest.err >conftest.er1
1586    cat conftest.er1 >&5
1587    mv -f conftest.er1 conftest.err
1588  fi
1589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590  test $ac_status = 0; } && {
1591	 test -z "$ac_c_werror_flag" ||
1592	 test ! -s conftest.err
1593       } && test -s conftest.$ac_objext; then :
1594  ac_retval=0
1595else
1596  $as_echo "$as_me: failed program was:" >&5
1597sed 's/^/| /' conftest.$ac_ext >&5
1598
1599	ac_retval=1
1600fi
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_compile
1605
1606# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1607# ---------------------------------------------
1608# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1609# accordingly.
1610ac_fn_c_check_decl ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  as_decl_name=`echo $2|sed 's/ *(.*//'`
1614  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1615  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1616$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1617if eval \${$3+:} false; then :
1618  $as_echo_n "(cached) " >&6
1619else
1620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1621/* end confdefs.h.  */
1622$4
1623int
1624main ()
1625{
1626#ifndef $as_decl_name
1627#ifdef __cplusplus
1628  (void) $as_decl_use;
1629#else
1630  (void) $as_decl_name;
1631#endif
1632#endif
1633
1634  ;
1635  return 0;
1636}
1637_ACEOF
1638if ac_fn_c_try_compile "$LINENO"; then :
1639  eval "$3=yes"
1640else
1641  eval "$3=no"
1642fi
1643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1644fi
1645eval ac_res=\$$3
1646	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647$as_echo "$ac_res" >&6; }
1648  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649
1650} # ac_fn_c_check_decl
1651
1652# ac_fn_c_try_cpp LINENO
1653# ----------------------
1654# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1655ac_fn_c_try_cpp ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  if { { ac_try="$ac_cpp conftest.$ac_ext"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } > conftest.i && {
1674	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1675	 test ! -s conftest.err
1676       }; then :
1677  ac_retval=0
1678else
1679  $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682    ac_retval=1
1683fi
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685  as_fn_set_status $ac_retval
1686
1687} # ac_fn_c_try_cpp
1688
1689# ac_fn_c_try_run LINENO
1690# ----------------------
1691# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1692# that executables *can* be run.
1693ac_fn_c_try_run ()
1694{
1695  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696  if { { ac_try="$ac_link"
1697case "(($ac_try" in
1698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699  *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703  (eval "$ac_link") 2>&5
1704  ac_status=$?
1705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1707  { { case "(($ac_try" in
1708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709  *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713  (eval "$ac_try") 2>&5
1714  ac_status=$?
1715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716  test $ac_status = 0; }; }; then :
1717  ac_retval=0
1718else
1719  $as_echo "$as_me: program exited with status $ac_status" >&5
1720       $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723       ac_retval=$ac_status
1724fi
1725  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_run
1730
1731# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732# -------------------------------------------------------
1733# Tests whether HEADER exists and can be compiled using the include files in
1734# INCLUDES, setting the cache variable VAR accordingly.
1735ac_fn_c_check_header_compile ()
1736{
1737  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739$as_echo_n "checking for $2... " >&6; }
1740if eval \${$3+:} false; then :
1741  $as_echo_n "(cached) " >&6
1742else
1743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744/* end confdefs.h.  */
1745$4
1746#include <$2>
1747_ACEOF
1748if ac_fn_c_try_compile "$LINENO"; then :
1749  eval "$3=yes"
1750else
1751  eval "$3=no"
1752fi
1753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1754fi
1755eval ac_res=\$$3
1756	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757$as_echo "$ac_res" >&6; }
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759
1760} # ac_fn_c_check_header_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  rm -f conftest.$ac_objext conftest$ac_exeext
1769  if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_link") 2>conftest.err
1777  ac_status=$?
1778  if test -s conftest.err; then
1779    grep -v '^ *+' conftest.err >conftest.er1
1780    cat conftest.er1 >&5
1781    mv -f conftest.er1 conftest.err
1782  fi
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } && {
1785	 test -z "$ac_c_werror_flag" ||
1786	 test ! -s conftest.err
1787       } && test -s conftest$ac_exeext && {
1788	 test "$cross_compiling" = yes ||
1789	 $as_test_x conftest$ac_exeext
1790       }; then :
1791  ac_retval=0
1792else
1793  $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796	ac_retval=1
1797fi
1798  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800  # interfere with the next link command; also delete a directory that is
1801  # left behind by Apple's compiler.  We do this before executing the actions.
1802  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804  as_fn_set_status $ac_retval
1805
1806} # ac_fn_c_try_link
1807
1808# ac_fn_c_check_func LINENO FUNC VAR
1809# ----------------------------------
1810# Tests whether FUNC exists, setting the cache variable VAR accordingly
1811ac_fn_c_check_func ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815$as_echo_n "checking for $2... " >&6; }
1816if eval \${$3+:} false; then :
1817  $as_echo_n "(cached) " >&6
1818else
1819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820/* end confdefs.h.  */
1821/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1823#define $2 innocuous_$2
1824
1825/* System header to define __stub macros and hopefully few prototypes,
1826    which can conflict with char $2 (); below.
1827    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828    <limits.h> exists even on freestanding compilers.  */
1829
1830#ifdef __STDC__
1831# include <limits.h>
1832#else
1833# include <assert.h>
1834#endif
1835
1836#undef $2
1837
1838/* Override any GCC internal prototype to avoid an error.
1839   Use char because int might match the return type of a GCC
1840   builtin and then its argument prototype would still apply.  */
1841#ifdef __cplusplus
1842extern "C"
1843#endif
1844char $2 ();
1845/* The GNU C library defines this for functions which it implements
1846    to always fail with ENOSYS.  Some functions are actually named
1847    something starting with __ and the normal name is an alias.  */
1848#if defined __stub_$2 || defined __stub___$2
1849choke me
1850#endif
1851
1852int
1853main ()
1854{
1855return $2 ();
1856  ;
1857  return 0;
1858}
1859_ACEOF
1860if ac_fn_c_try_link "$LINENO"; then :
1861  eval "$3=yes"
1862else
1863  eval "$3=no"
1864fi
1865rm -f core conftest.err conftest.$ac_objext \
1866    conftest$ac_exeext conftest.$ac_ext
1867fi
1868eval ac_res=\$$3
1869	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870$as_echo "$ac_res" >&6; }
1871  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
1873} # ac_fn_c_check_func
1874
1875# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876# -------------------------------------------------------
1877# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878# the include files in INCLUDES and setting the cache variable VAR
1879# accordingly.
1880ac_fn_c_check_header_mongrel ()
1881{
1882  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883  if eval \${$3+:} false; then :
1884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885$as_echo_n "checking for $2... " >&6; }
1886if eval \${$3+:} false; then :
1887  $as_echo_n "(cached) " >&6
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892else
1893  # Is the header compilable?
1894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895$as_echo_n "checking $2 usability... " >&6; }
1896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897/* end confdefs.h.  */
1898$4
1899#include <$2>
1900_ACEOF
1901if ac_fn_c_try_compile "$LINENO"; then :
1902  ac_header_compiler=yes
1903else
1904  ac_header_compiler=no
1905fi
1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908$as_echo "$ac_header_compiler" >&6; }
1909
1910# Is the header present?
1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912$as_echo_n "checking $2 presence... " >&6; }
1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914/* end confdefs.h.  */
1915#include <$2>
1916_ACEOF
1917if ac_fn_c_try_cpp "$LINENO"; then :
1918  ac_header_preproc=yes
1919else
1920  ac_header_preproc=no
1921fi
1922rm -f conftest.err conftest.i conftest.$ac_ext
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924$as_echo "$ac_header_preproc" >&6; }
1925
1926# So?  What about this header?
1927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928  yes:no: )
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933    ;;
1934  no:yes:* )
1935    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1938$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1939    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1942$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945( $as_echo "## ---------------------------------------------------------------------- ##
1946## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1947## ---------------------------------------------------------------------- ##"
1948     ) | sed "s/^/$as_me: WARNING:     /" >&2
1949    ;;
1950esac
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if eval \${$3+:} false; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  eval "$3=\$ac_header_compiler"
1957fi
1958eval ac_res=\$$3
1959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960$as_echo "$ac_res" >&6; }
1961fi
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_header_mongrel
1965cat >config.log <<_ACEOF
1966This file contains any messages produced by compilers while
1967running configure, to aid debugging if configure makes a mistake.
1968
1969It was created by xf86-video-mga $as_me 1.6.2, which was
1970generated by GNU Autoconf 2.68.  Invocation command line was
1971
1972  $ $0 $@
1973
1974_ACEOF
1975exec 5>>config.log
1976{
1977cat <<_ASUNAME
1978## --------- ##
1979## Platform. ##
1980## --------- ##
1981
1982hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1983uname -m = `(uname -m) 2>/dev/null || echo unknown`
1984uname -r = `(uname -r) 2>/dev/null || echo unknown`
1985uname -s = `(uname -s) 2>/dev/null || echo unknown`
1986uname -v = `(uname -v) 2>/dev/null || echo unknown`
1987
1988/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1989/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1990
1991/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1992/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1993/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1994/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1995/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1996/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1997/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1998
1999_ASUNAME
2000
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006    $as_echo "PATH: $as_dir"
2007  done
2008IFS=$as_save_IFS
2009
2010} >&5
2011
2012cat >&5 <<_ACEOF
2013
2014
2015## ----------- ##
2016## Core tests. ##
2017## ----------- ##
2018
2019_ACEOF
2020
2021
2022# Keep a trace of the command line.
2023# Strip out --no-create and --no-recursion so they do not pile up.
2024# Strip out --silent because we don't want to record it for future runs.
2025# Also quote any args containing shell meta-characters.
2026# Make two passes to allow for proper duplicate-argument suppression.
2027ac_configure_args=
2028ac_configure_args0=
2029ac_configure_args1=
2030ac_must_keep_next=false
2031for ac_pass in 1 2
2032do
2033  for ac_arg
2034  do
2035    case $ac_arg in
2036    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2037    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2038    | -silent | --silent | --silen | --sile | --sil)
2039      continue ;;
2040    *\'*)
2041      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2042    esac
2043    case $ac_pass in
2044    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2045    2)
2046      as_fn_append ac_configure_args1 " '$ac_arg'"
2047      if test $ac_must_keep_next = true; then
2048	ac_must_keep_next=false # Got value, back to normal.
2049      else
2050	case $ac_arg in
2051	  *=* | --config-cache | -C | -disable-* | --disable-* \
2052	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2053	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2054	  | -with-* | --with-* | -without-* | --without-* | --x)
2055	    case "$ac_configure_args0 " in
2056	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2057	    esac
2058	    ;;
2059	  -* ) ac_must_keep_next=true ;;
2060	esac
2061      fi
2062      as_fn_append ac_configure_args " '$ac_arg'"
2063      ;;
2064    esac
2065  done
2066done
2067{ ac_configure_args0=; unset ac_configure_args0;}
2068{ ac_configure_args1=; unset ac_configure_args1;}
2069
2070# When interrupted or exit'd, cleanup temporary files, and complete
2071# config.log.  We remove comments because anyway the quotes in there
2072# would cause problems or look ugly.
2073# WARNING: Use '\'' to represent an apostrophe within the trap.
2074# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2075trap 'exit_status=$?
2076  # Save into config.log some information that might help in debugging.
2077  {
2078    echo
2079
2080    $as_echo "## ---------------- ##
2081## Cache variables. ##
2082## ---------------- ##"
2083    echo
2084    # The following way of writing the cache mishandles newlines in values,
2085(
2086  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2087    eval ac_val=\$$ac_var
2088    case $ac_val in #(
2089    *${as_nl}*)
2090      case $ac_var in #(
2091      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2092$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093      esac
2094      case $ac_var in #(
2095      _ | IFS | as_nl) ;; #(
2096      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2097      *) { eval $ac_var=; unset $ac_var;} ;;
2098      esac ;;
2099    esac
2100  done
2101  (set) 2>&1 |
2102    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2103    *${as_nl}ac_space=\ *)
2104      sed -n \
2105	"s/'\''/'\''\\\\'\'''\''/g;
2106	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107      ;; #(
2108    *)
2109      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110      ;;
2111    esac |
2112    sort
2113)
2114    echo
2115
2116    $as_echo "## ----------------- ##
2117## Output variables. ##
2118## ----------------- ##"
2119    echo
2120    for ac_var in $ac_subst_vars
2121    do
2122      eval ac_val=\$$ac_var
2123      case $ac_val in
2124      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125      esac
2126      $as_echo "$ac_var='\''$ac_val'\''"
2127    done | sort
2128    echo
2129
2130    if test -n "$ac_subst_files"; then
2131      $as_echo "## ------------------- ##
2132## File substitutions. ##
2133## ------------------- ##"
2134      echo
2135      for ac_var in $ac_subst_files
2136      do
2137	eval ac_val=\$$ac_var
2138	case $ac_val in
2139	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2140	esac
2141	$as_echo "$ac_var='\''$ac_val'\''"
2142      done | sort
2143      echo
2144    fi
2145
2146    if test -s confdefs.h; then
2147      $as_echo "## ----------- ##
2148## confdefs.h. ##
2149## ----------- ##"
2150      echo
2151      cat confdefs.h
2152      echo
2153    fi
2154    test "$ac_signal" != 0 &&
2155      $as_echo "$as_me: caught signal $ac_signal"
2156    $as_echo "$as_me: exit $exit_status"
2157  } >&5
2158  rm -f core *.core core.conftest.* &&
2159    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160    exit $exit_status
2161' 0
2162for ac_signal in 1 2 13 15; do
2163  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164done
2165ac_signal=0
2166
2167# confdefs.h avoids OS command line length limits that DEFS can exceed.
2168rm -f -r conftest* confdefs.h
2169
2170$as_echo "/* confdefs.h */" > confdefs.h
2171
2172# Predefined preprocessor variables.
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_NAME "$PACKAGE_NAME"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180_ACEOF
2181
2182cat >>confdefs.h <<_ACEOF
2183#define PACKAGE_VERSION "$PACKAGE_VERSION"
2184_ACEOF
2185
2186cat >>confdefs.h <<_ACEOF
2187#define PACKAGE_STRING "$PACKAGE_STRING"
2188_ACEOF
2189
2190cat >>confdefs.h <<_ACEOF
2191#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192_ACEOF
2193
2194cat >>confdefs.h <<_ACEOF
2195#define PACKAGE_URL "$PACKAGE_URL"
2196_ACEOF
2197
2198
2199# Let the site file select an alternate cache file if it wants to.
2200# Prefer an explicitly selected file to automatically selected ones.
2201ac_site_file1=NONE
2202ac_site_file2=NONE
2203if test -n "$CONFIG_SITE"; then
2204  # We do not want a PATH search for config.site.
2205  case $CONFIG_SITE in #((
2206    -*)  ac_site_file1=./$CONFIG_SITE;;
2207    */*) ac_site_file1=$CONFIG_SITE;;
2208    *)   ac_site_file1=./$CONFIG_SITE;;
2209  esac
2210elif test "x$prefix" != xNONE; then
2211  ac_site_file1=$prefix/share/config.site
2212  ac_site_file2=$prefix/etc/config.site
2213else
2214  ac_site_file1=$ac_default_prefix/share/config.site
2215  ac_site_file2=$ac_default_prefix/etc/config.site
2216fi
2217for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218do
2219  test "x$ac_site_file" = xNONE && continue
2220  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2221    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223    sed 's/^/| /' "$ac_site_file" >&5
2224    . "$ac_site_file" \
2225      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227as_fn_error $? "failed to load site script $ac_site_file
2228See \`config.log' for more details" "$LINENO" 5; }
2229  fi
2230done
2231
2232if test -r "$cache_file"; then
2233  # Some versions of bash will fail to source /dev/null (special files
2234  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2235  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2236    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2237$as_echo "$as_me: loading cache $cache_file" >&6;}
2238    case $cache_file in
2239      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2240      *)                      . "./$cache_file";;
2241    esac
2242  fi
2243else
2244  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2245$as_echo "$as_me: creating cache $cache_file" >&6;}
2246  >$cache_file
2247fi
2248
2249# Check that the precious variables saved in the cache have kept the same
2250# value.
2251ac_cache_corrupted=false
2252for ac_var in $ac_precious_vars; do
2253  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2254  eval ac_new_set=\$ac_env_${ac_var}_set
2255  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2256  eval ac_new_val=\$ac_env_${ac_var}_value
2257  case $ac_old_set,$ac_new_set in
2258    set,)
2259      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2260$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2261      ac_cache_corrupted=: ;;
2262    ,set)
2263      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2264$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2265      ac_cache_corrupted=: ;;
2266    ,);;
2267    *)
2268      if test "x$ac_old_val" != "x$ac_new_val"; then
2269	# differences in whitespace do not lead to failure.
2270	ac_old_val_w=`echo x $ac_old_val`
2271	ac_new_val_w=`echo x $ac_new_val`
2272	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2273	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2274$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2275	  ac_cache_corrupted=:
2276	else
2277	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2278$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2279	  eval $ac_var=\$ac_old_val
2280	fi
2281	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2282$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2283	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2284$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2285      fi;;
2286  esac
2287  # Pass precious variables to config.status.
2288  if test "$ac_new_set" = set; then
2289    case $ac_new_val in
2290    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2291    *) ac_arg=$ac_var=$ac_new_val ;;
2292    esac
2293    case " $ac_configure_args " in
2294      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2295      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2296    esac
2297  fi
2298done
2299if $ac_cache_corrupted; then
2300  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2303$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2304  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2305fi
2306## -------------------- ##
2307## Main body of script. ##
2308## -------------------- ##
2309
2310ac_ext=c
2311ac_cpp='$CPP $CPPFLAGS'
2312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
2316
2317
2318ac_config_headers="$ac_config_headers config.h"
2319
2320
2321# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333ac_aux_dir=
2334for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335  if test -f "$ac_dir/install-sh"; then
2336    ac_aux_dir=$ac_dir
2337    ac_install_sh="$ac_aux_dir/install-sh -c"
2338    break
2339  elif test -f "$ac_dir/install.sh"; then
2340    ac_aux_dir=$ac_dir
2341    ac_install_sh="$ac_aux_dir/install.sh -c"
2342    break
2343  elif test -f "$ac_dir/shtool"; then
2344    ac_aux_dir=$ac_dir
2345    ac_install_sh="$ac_aux_dir/shtool install -c"
2346    break
2347  fi
2348done
2349if test -z "$ac_aux_dir"; then
2350  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351fi
2352
2353# These three variables are undocumented and unsupported,
2354# and are intended to be withdrawn in a future Autoconf release.
2355# They can cause serious problems if a builder's source tree is in a directory
2356# whose full name contains unusual characters.
2357ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2358ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2359ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2360
2361
2362# Find a good install program.  We prefer a C program (faster),
2363# so one script is as good as another.  But avoid the broken or
2364# incompatible versions:
2365# SysV /etc/install, /usr/sbin/install
2366# SunOS /usr/etc/install
2367# IRIX /sbin/install
2368# AIX /bin/install
2369# AmigaOS /C/install, which installs bootblocks on floppy discs
2370# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373# OS/2's system install, which has a completely different semantic
2374# ./install, which can be erroneously created by make from ./install.sh.
2375# Reject install programs that cannot install multiple files.
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377$as_echo_n "checking for a BSD-compatible install... " >&6; }
2378if test -z "$INSTALL"; then
2379if ${ac_cv_path_install+:} false; then :
2380  $as_echo_n "(cached) " >&6
2381else
2382  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387    # Account for people who put trailing slashes in PATH elements.
2388case $as_dir/ in #((
2389  ./ | .// | /[cC]/* | \
2390  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392  /usr/ucb/* ) ;;
2393  *)
2394    # OSF1 and SCO ODT 3.0 have their own names for install.
2395    # Don't use installbsd from OSF since it installs stuff as root
2396    # by default.
2397    for ac_prog in ginstall scoinst install; do
2398      for ac_exec_ext in '' $ac_executable_extensions; do
2399	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2400	  if test $ac_prog = install &&
2401	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402	    # AIX install.  It has an incompatible calling convention.
2403	    :
2404	  elif test $ac_prog = install &&
2405	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406	    # program-specific install script used by HP pwplus--don't use.
2407	    :
2408	  else
2409	    rm -rf conftest.one conftest.two conftest.dir
2410	    echo one > conftest.one
2411	    echo two > conftest.two
2412	    mkdir conftest.dir
2413	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414	      test -s conftest.one && test -s conftest.two &&
2415	      test -s conftest.dir/conftest.one &&
2416	      test -s conftest.dir/conftest.two
2417	    then
2418	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419	      break 3
2420	    fi
2421	  fi
2422	fi
2423      done
2424    done
2425    ;;
2426esac
2427
2428  done
2429IFS=$as_save_IFS
2430
2431rm -rf conftest.one conftest.two conftest.dir
2432
2433fi
2434  if test "${ac_cv_path_install+set}" = set; then
2435    INSTALL=$ac_cv_path_install
2436  else
2437    # As a last resort, use the slow shell script.  Don't cache a
2438    # value for INSTALL within a source directory, because that will
2439    # break other packages using the cache if that directory is
2440    # removed, or if the value is a relative name.
2441    INSTALL=$ac_install_sh
2442  fi
2443fi
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445$as_echo "$INSTALL" >&6; }
2446
2447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448# It thinks the first close brace ends the variable substitution.
2449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
2451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2452
2453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
2455ac_ext=c
2456ac_cpp='$CPP $CPPFLAGS'
2457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460if test -n "$ac_tool_prefix"; then
2461  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2462set dummy ${ac_tool_prefix}gcc; ac_word=$2
2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464$as_echo_n "checking for $ac_word... " >&6; }
2465if ${ac_cv_prog_CC+:} false; then :
2466  $as_echo_n "(cached) " >&6
2467else
2468  if test -n "$CC"; then
2469  ac_cv_prog_CC="$CC" # Let the user override the test.
2470else
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472for as_dir in $PATH
2473do
2474  IFS=$as_save_IFS
2475  test -z "$as_dir" && as_dir=.
2476    for ac_exec_ext in '' $ac_executable_extensions; do
2477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2480    break 2
2481  fi
2482done
2483  done
2484IFS=$as_save_IFS
2485
2486fi
2487fi
2488CC=$ac_cv_prog_CC
2489if test -n "$CC"; then
2490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491$as_echo "$CC" >&6; }
2492else
2493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494$as_echo "no" >&6; }
2495fi
2496
2497
2498fi
2499if test -z "$ac_cv_prog_CC"; then
2500  ac_ct_CC=$CC
2501  # Extract the first word of "gcc", so it can be a program name with args.
2502set dummy gcc; ac_word=$2
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if ${ac_cv_prog_ac_ct_CC+:} false; then :
2506  $as_echo_n "(cached) " >&6
2507else
2508  if test -n "$ac_ct_CC"; then
2509  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514  IFS=$as_save_IFS
2515  test -z "$as_dir" && as_dir=.
2516    for ac_exec_ext in '' $ac_executable_extensions; do
2517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2518    ac_cv_prog_ac_ct_CC="gcc"
2519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520    break 2
2521  fi
2522done
2523  done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528ac_ct_CC=$ac_cv_prog_ac_ct_CC
2529if test -n "$ac_ct_CC"; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2531$as_echo "$ac_ct_CC" >&6; }
2532else
2533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
2535fi
2536
2537  if test "x$ac_ct_CC" = x; then
2538    CC=""
2539  else
2540    case $cross_compiling:$ac_tool_warned in
2541yes:)
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2544ac_tool_warned=yes ;;
2545esac
2546    CC=$ac_ct_CC
2547  fi
2548else
2549  CC="$ac_cv_prog_CC"
2550fi
2551
2552if test -z "$CC"; then
2553          if test -n "$ac_tool_prefix"; then
2554    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2555set dummy ${ac_tool_prefix}cc; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if ${ac_cv_prog_CC+:} false; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$CC"; then
2562  ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571    ac_cv_prog_CC="${ac_tool_prefix}cc"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581CC=$ac_cv_prog_CC
2582if test -n "$CC"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2584$as_echo "$CC" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591  fi
2592fi
2593if test -z "$CC"; then
2594  # Extract the first word of "cc", so it can be a program name with args.
2595set dummy cc; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if ${ac_cv_prog_CC+:} false; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$CC"; then
2602  ac_cv_prog_CC="$CC" # Let the user override the test.
2603else
2604  ac_prog_rejected=no
2605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606for as_dir in $PATH
2607do
2608  IFS=$as_save_IFS
2609  test -z "$as_dir" && as_dir=.
2610    for ac_exec_ext in '' $ac_executable_extensions; do
2611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613       ac_prog_rejected=yes
2614       continue
2615     fi
2616    ac_cv_prog_CC="cc"
2617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2618    break 2
2619  fi
2620done
2621  done
2622IFS=$as_save_IFS
2623
2624if test $ac_prog_rejected = yes; then
2625  # We found a bogon in the path, so make sure we never use it.
2626  set dummy $ac_cv_prog_CC
2627  shift
2628  if test $# != 0; then
2629    # We chose a different compiler from the bogus one.
2630    # However, it has the same basename, so the bogon will be chosen
2631    # first if we set CC to just the basename; use the full file name.
2632    shift
2633    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2634  fi
2635fi
2636fi
2637fi
2638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2641$as_echo "$CC" >&6; }
2642else
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644$as_echo "no" >&6; }
2645fi
2646
2647
2648fi
2649if test -z "$CC"; then
2650  if test -n "$ac_tool_prefix"; then
2651  for ac_prog in cl.exe
2652  do
2653    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if ${ac_cv_prog_CC+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  if test -n "$CC"; then
2661  ac_cv_prog_CC="$CC" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666  IFS=$as_save_IFS
2667  test -z "$as_dir" && as_dir=.
2668    for ac_exec_ext in '' $ac_executable_extensions; do
2669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2671    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672    break 2
2673  fi
2674done
2675  done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680CC=$ac_cv_prog_CC
2681if test -n "$CC"; then
2682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683$as_echo "$CC" >&6; }
2684else
2685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689
2690    test -n "$CC" && break
2691  done
2692fi
2693if test -z "$CC"; then
2694  ac_ct_CC=$CC
2695  for ac_prog in cl.exe
2696do
2697  # Extract the first word of "$ac_prog", so it can be a program name with args.
2698set dummy $ac_prog; ac_word=$2
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700$as_echo_n "checking for $ac_word... " >&6; }
2701if ${ac_cv_prog_ac_ct_CC+:} false; then :
2702  $as_echo_n "(cached) " >&6
2703else
2704  if test -n "$ac_ct_CC"; then
2705  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706else
2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708for as_dir in $PATH
2709do
2710  IFS=$as_save_IFS
2711  test -z "$as_dir" && as_dir=.
2712    for ac_exec_ext in '' $ac_executable_extensions; do
2713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714    ac_cv_prog_ac_ct_CC="$ac_prog"
2715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716    break 2
2717  fi
2718done
2719  done
2720IFS=$as_save_IFS
2721
2722fi
2723fi
2724ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725if test -n "$ac_ct_CC"; then
2726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2727$as_echo "$ac_ct_CC" >&6; }
2728else
2729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730$as_echo "no" >&6; }
2731fi
2732
2733
2734  test -n "$ac_ct_CC" && break
2735done
2736
2737  if test "x$ac_ct_CC" = x; then
2738    CC=""
2739  else
2740    case $cross_compiling:$ac_tool_warned in
2741yes:)
2742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744ac_tool_warned=yes ;;
2745esac
2746    CC=$ac_ct_CC
2747  fi
2748fi
2749
2750fi
2751
2752
2753test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755as_fn_error $? "no acceptable C compiler found in \$PATH
2756See \`config.log' for more details" "$LINENO" 5; }
2757
2758# Provide some information about the compiler.
2759$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2760set X $ac_compile
2761ac_compiler=$2
2762for ac_option in --version -v -V -qversion; do
2763  { { ac_try="$ac_compiler $ac_option >&5"
2764case "(($ac_try" in
2765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766  *) ac_try_echo=$ac_try;;
2767esac
2768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2769$as_echo "$ac_try_echo"; } >&5
2770  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2771  ac_status=$?
2772  if test -s conftest.err; then
2773    sed '10a\
2774... rest of stderr output deleted ...
2775         10q' conftest.err >conftest.er1
2776    cat conftest.er1 >&5
2777  fi
2778  rm -f conftest.er1 conftest.err
2779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2780  test $ac_status = 0; }
2781done
2782
2783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784/* end confdefs.h.  */
2785
2786int
2787main ()
2788{
2789
2790  ;
2791  return 0;
2792}
2793_ACEOF
2794ac_clean_files_save=$ac_clean_files
2795ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2796# Try to create an executable without -o first, disregard a.out.
2797# It will help us diagnose broken compilers, and finding out an intuition
2798# of exeext.
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2800$as_echo_n "checking whether the C compiler works... " >&6; }
2801ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2802
2803# The possible output files:
2804ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2805
2806ac_rmfiles=
2807for ac_file in $ac_files
2808do
2809  case $ac_file in
2810    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2811    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2812  esac
2813done
2814rm -f $ac_rmfiles
2815
2816if { { ac_try="$ac_link_default"
2817case "(($ac_try" in
2818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819  *) ac_try_echo=$ac_try;;
2820esac
2821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2822$as_echo "$ac_try_echo"; } >&5
2823  (eval "$ac_link_default") 2>&5
2824  ac_status=$?
2825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2826  test $ac_status = 0; }; then :
2827  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2828# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2829# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2830# so that the user can short-circuit this test for compilers unknown to
2831# Autoconf.
2832for ac_file in $ac_files ''
2833do
2834  test -f "$ac_file" || continue
2835  case $ac_file in
2836    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2837	;;
2838    [ab].out )
2839	# We found the default executable, but exeext='' is most
2840	# certainly right.
2841	break;;
2842    *.* )
2843	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2844	then :; else
2845	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2846	fi
2847	# We set ac_cv_exeext here because the later test for it is not
2848	# safe: cross compilers may not add the suffix if given an `-o'
2849	# argument, so we may need to know it at that point already.
2850	# Even if this section looks crufty: it has the advantage of
2851	# actually working.
2852	break;;
2853    * )
2854	break;;
2855  esac
2856done
2857test "$ac_cv_exeext" = no && ac_cv_exeext=
2858
2859else
2860  ac_file=''
2861fi
2862if test -z "$ac_file"; then :
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865$as_echo "$as_me: failed program was:" >&5
2866sed 's/^/| /' conftest.$ac_ext >&5
2867
2868{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2870as_fn_error 77 "C compiler cannot create executables
2871See \`config.log' for more details" "$LINENO" 5; }
2872else
2873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874$as_echo "yes" >&6; }
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2877$as_echo_n "checking for C compiler default output file name... " >&6; }
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2879$as_echo "$ac_file" >&6; }
2880ac_exeext=$ac_cv_exeext
2881
2882rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2883ac_clean_files=$ac_clean_files_save
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2885$as_echo_n "checking for suffix of executables... " >&6; }
2886if { { ac_try="$ac_link"
2887case "(($ac_try" in
2888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889  *) ac_try_echo=$ac_try;;
2890esac
2891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2892$as_echo "$ac_try_echo"; } >&5
2893  (eval "$ac_link") 2>&5
2894  ac_status=$?
2895  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2896  test $ac_status = 0; }; then :
2897  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2898# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2899# work properly (i.e., refer to `conftest.exe'), while it won't with
2900# `rm'.
2901for ac_file in conftest.exe conftest conftest.*; do
2902  test -f "$ac_file" || continue
2903  case $ac_file in
2904    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2905    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2906	  break;;
2907    * ) break;;
2908  esac
2909done
2910else
2911  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2913as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details" "$LINENO" 5; }
2915fi
2916rm -f conftest conftest$ac_cv_exeext
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2918$as_echo "$ac_cv_exeext" >&6; }
2919
2920rm -f conftest.$ac_ext
2921EXEEXT=$ac_cv_exeext
2922ac_exeext=$EXEEXT
2923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924/* end confdefs.h.  */
2925#include <stdio.h>
2926int
2927main ()
2928{
2929FILE *f = fopen ("conftest.out", "w");
2930 return ferror (f) || fclose (f) != 0;
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936ac_clean_files="$ac_clean_files conftest.out"
2937# Check that the compiler produces executables we can run.  If not, either
2938# the compiler is broken, or we cross compile.
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2940$as_echo_n "checking whether we are cross compiling... " >&6; }
2941if test "$cross_compiling" != yes; then
2942  { { ac_try="$ac_link"
2943case "(($ac_try" in
2944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945  *) ac_try_echo=$ac_try;;
2946esac
2947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2948$as_echo "$ac_try_echo"; } >&5
2949  (eval "$ac_link") 2>&5
2950  ac_status=$?
2951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2952  test $ac_status = 0; }
2953  if { ac_try='./conftest$ac_cv_exeext'
2954  { { case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959$as_echo "$ac_try_echo"; } >&5
2960  (eval "$ac_try") 2>&5
2961  ac_status=$?
2962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963  test $ac_status = 0; }; }; then
2964    cross_compiling=no
2965  else
2966    if test "$cross_compiling" = maybe; then
2967	cross_compiling=yes
2968    else
2969	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971as_fn_error $? "cannot run C compiled programs.
2972If you meant to cross compile, use \`--host'.
2973See \`config.log' for more details" "$LINENO" 5; }
2974    fi
2975  fi
2976fi
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2978$as_echo "$cross_compiling" >&6; }
2979
2980rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2981ac_clean_files=$ac_clean_files_save
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2983$as_echo_n "checking for suffix of object files... " >&6; }
2984if ${ac_cv_objext+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988/* end confdefs.h.  */
2989
2990int
2991main ()
2992{
2993
2994  ;
2995  return 0;
2996}
2997_ACEOF
2998rm -f conftest.o conftest.obj
2999if { { ac_try="$ac_compile"
3000case "(($ac_try" in
3001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002  *) ac_try_echo=$ac_try;;
3003esac
3004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005$as_echo "$ac_try_echo"; } >&5
3006  (eval "$ac_compile") 2>&5
3007  ac_status=$?
3008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009  test $ac_status = 0; }; then :
3010  for ac_file in conftest.o conftest.obj conftest.*; do
3011  test -f "$ac_file" || continue;
3012  case $ac_file in
3013    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3014    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3015       break;;
3016  esac
3017done
3018else
3019  $as_echo "$as_me: failed program was:" >&5
3020sed 's/^/| /' conftest.$ac_ext >&5
3021
3022{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024as_fn_error $? "cannot compute suffix of object files: cannot compile
3025See \`config.log' for more details" "$LINENO" 5; }
3026fi
3027rm -f conftest.$ac_cv_objext conftest.$ac_ext
3028fi
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3030$as_echo "$ac_cv_objext" >&6; }
3031OBJEXT=$ac_cv_objext
3032ac_objext=$OBJEXT
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3034$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3035if ${ac_cv_c_compiler_gnu+:} false; then :
3036  $as_echo_n "(cached) " >&6
3037else
3038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3039/* end confdefs.h.  */
3040
3041int
3042main ()
3043{
3044#ifndef __GNUC__
3045       choke me
3046#endif
3047
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052if ac_fn_c_try_compile "$LINENO"; then :
3053  ac_compiler_gnu=yes
3054else
3055  ac_compiler_gnu=no
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058ac_cv_c_compiler_gnu=$ac_compiler_gnu
3059
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3062$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3063if test $ac_compiler_gnu = yes; then
3064  GCC=yes
3065else
3066  GCC=
3067fi
3068ac_test_CFLAGS=${CFLAGS+set}
3069ac_save_CFLAGS=$CFLAGS
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3071$as_echo_n "checking whether $CC accepts -g... " >&6; }
3072if ${ac_cv_prog_cc_g+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  ac_save_c_werror_flag=$ac_c_werror_flag
3076   ac_c_werror_flag=yes
3077   ac_cv_prog_cc_g=no
3078   CFLAGS="-g"
3079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080/* end confdefs.h.  */
3081
3082int
3083main ()
3084{
3085
3086  ;
3087  return 0;
3088}
3089_ACEOF
3090if ac_fn_c_try_compile "$LINENO"; then :
3091  ac_cv_prog_cc_g=yes
3092else
3093  CFLAGS=""
3094      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095/* end confdefs.h.  */
3096
3097int
3098main ()
3099{
3100
3101  ;
3102  return 0;
3103}
3104_ACEOF
3105if ac_fn_c_try_compile "$LINENO"; then :
3106
3107else
3108  ac_c_werror_flag=$ac_save_c_werror_flag
3109	 CFLAGS="-g"
3110	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111/* end confdefs.h.  */
3112
3113int
3114main ()
3115{
3116
3117  ;
3118  return 0;
3119}
3120_ACEOF
3121if ac_fn_c_try_compile "$LINENO"; then :
3122  ac_cv_prog_cc_g=yes
3123fi
3124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125fi
3126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127fi
3128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129   ac_c_werror_flag=$ac_save_c_werror_flag
3130fi
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3132$as_echo "$ac_cv_prog_cc_g" >&6; }
3133if test "$ac_test_CFLAGS" = set; then
3134  CFLAGS=$ac_save_CFLAGS
3135elif test $ac_cv_prog_cc_g = yes; then
3136  if test "$GCC" = yes; then
3137    CFLAGS="-g -O2"
3138  else
3139    CFLAGS="-g"
3140  fi
3141else
3142  if test "$GCC" = yes; then
3143    CFLAGS="-O2"
3144  else
3145    CFLAGS=
3146  fi
3147fi
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3149$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3150if ${ac_cv_prog_cc_c89+:} false; then :
3151  $as_echo_n "(cached) " >&6
3152else
3153  ac_cv_prog_cc_c89=no
3154ac_save_CC=$CC
3155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156/* end confdefs.h.  */
3157#include <stdarg.h>
3158#include <stdio.h>
3159#include <sys/types.h>
3160#include <sys/stat.h>
3161/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3162struct buf { int x; };
3163FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164static char *e (p, i)
3165     char **p;
3166     int i;
3167{
3168  return p[i];
3169}
3170static char *f (char * (*g) (char **, int), char **p, ...)
3171{
3172  char *s;
3173  va_list v;
3174  va_start (v,p);
3175  s = g (p, va_arg (v,int));
3176  va_end (v);
3177  return s;
3178}
3179
3180/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3181   function prototypes and stuff, but not '\xHH' hex character constants.
3182   These don't provoke an error unfortunately, instead are silently treated
3183   as 'x'.  The following induces an error, until -std is added to get
3184   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3185   array size at least.  It's necessary to write '\x00'==0 to get something
3186   that's true only with -std.  */
3187int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3188
3189/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190   inside strings and character constants.  */
3191#define FOO(x) 'x'
3192int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3193
3194int test (int i, double x);
3195struct s1 {int (*f) (int a);};
3196struct s2 {int (*f) (double a);};
3197int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3198int argc;
3199char **argv;
3200int
3201main ()
3202{
3203return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3204  ;
3205  return 0;
3206}
3207_ACEOF
3208for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3210do
3211  CC="$ac_save_CC $ac_arg"
3212  if ac_fn_c_try_compile "$LINENO"; then :
3213  ac_cv_prog_cc_c89=$ac_arg
3214fi
3215rm -f core conftest.err conftest.$ac_objext
3216  test "x$ac_cv_prog_cc_c89" != "xno" && break
3217done
3218rm -f conftest.$ac_ext
3219CC=$ac_save_CC
3220
3221fi
3222# AC_CACHE_VAL
3223case "x$ac_cv_prog_cc_c89" in
3224  x)
3225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3226$as_echo "none needed" >&6; } ;;
3227  xno)
3228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3229$as_echo "unsupported" >&6; } ;;
3230  *)
3231    CC="$CC $ac_cv_prog_cc_c89"
3232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3233$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3234esac
3235if test "x$ac_cv_prog_cc_c89" != xno; then :
3236
3237fi
3238
3239ac_ext=c
3240ac_cpp='$CPP $CPPFLAGS'
3241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244
3245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3246$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3247if ${ac_cv_prog_cc_c99+:} false; then :
3248  $as_echo_n "(cached) " >&6
3249else
3250  ac_cv_prog_cc_c99=no
3251ac_save_CC=$CC
3252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254#include <stdarg.h>
3255#include <stdbool.h>
3256#include <stdlib.h>
3257#include <wchar.h>
3258#include <stdio.h>
3259
3260// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3261#define debug(...) fprintf (stderr, __VA_ARGS__)
3262#define showlist(...) puts (#__VA_ARGS__)
3263#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3264static void
3265test_varargs_macros (void)
3266{
3267  int x = 1234;
3268  int y = 5678;
3269  debug ("Flag");
3270  debug ("X = %d\n", x);
3271  showlist (The first, second, and third items.);
3272  report (x>y, "x is %d but y is %d", x, y);
3273}
3274
3275// Check long long types.
3276#define BIG64 18446744073709551615ull
3277#define BIG32 4294967295ul
3278#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3279#if !BIG_OK
3280  your preprocessor is broken;
3281#endif
3282#if BIG_OK
3283#else
3284  your preprocessor is broken;
3285#endif
3286static long long int bignum = -9223372036854775807LL;
3287static unsigned long long int ubignum = BIG64;
3288
3289struct incomplete_array
3290{
3291  int datasize;
3292  double data[];
3293};
3294
3295struct named_init {
3296  int number;
3297  const wchar_t *name;
3298  double average;
3299};
3300
3301typedef const char *ccp;
3302
3303static inline int
3304test_restrict (ccp restrict text)
3305{
3306  // See if C++-style comments work.
3307  // Iterate through items via the restricted pointer.
3308  // Also check for declarations in for loops.
3309  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3310    continue;
3311  return 0;
3312}
3313
3314// Check varargs and va_copy.
3315static void
3316test_varargs (const char *format, ...)
3317{
3318  va_list args;
3319  va_start (args, format);
3320  va_list args_copy;
3321  va_copy (args_copy, args);
3322
3323  const char *str;
3324  int number;
3325  float fnumber;
3326
3327  while (*format)
3328    {
3329      switch (*format++)
3330	{
3331	case 's': // string
3332	  str = va_arg (args_copy, const char *);
3333	  break;
3334	case 'd': // int
3335	  number = va_arg (args_copy, int);
3336	  break;
3337	case 'f': // float
3338	  fnumber = va_arg (args_copy, double);
3339	  break;
3340	default:
3341	  break;
3342	}
3343    }
3344  va_end (args_copy);
3345  va_end (args);
3346}
3347
3348int
3349main ()
3350{
3351
3352  // Check bool.
3353  _Bool success = false;
3354
3355  // Check restrict.
3356  if (test_restrict ("String literal") == 0)
3357    success = true;
3358  char *restrict newvar = "Another string";
3359
3360  // Check varargs.
3361  test_varargs ("s, d' f .", "string", 65, 34.234);
3362  test_varargs_macros ();
3363
3364  // Check flexible array members.
3365  struct incomplete_array *ia =
3366    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3367  ia->datasize = 10;
3368  for (int i = 0; i < ia->datasize; ++i)
3369    ia->data[i] = i * 1.234;
3370
3371  // Check named initializers.
3372  struct named_init ni = {
3373    .number = 34,
3374    .name = L"Test wide string",
3375    .average = 543.34343,
3376  };
3377
3378  ni.number = 58;
3379
3380  int dynamic_array[ni.number];
3381  dynamic_array[ni.number - 1] = 543;
3382
3383  // work around unused variable warnings
3384  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3385	  || dynamic_array[ni.number - 1] != 543);
3386
3387  ;
3388  return 0;
3389}
3390_ACEOF
3391for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3392do
3393  CC="$ac_save_CC $ac_arg"
3394  if ac_fn_c_try_compile "$LINENO"; then :
3395  ac_cv_prog_cc_c99=$ac_arg
3396fi
3397rm -f core conftest.err conftest.$ac_objext
3398  test "x$ac_cv_prog_cc_c99" != "xno" && break
3399done
3400rm -f conftest.$ac_ext
3401CC=$ac_save_CC
3402
3403fi
3404# AC_CACHE_VAL
3405case "x$ac_cv_prog_cc_c99" in
3406  x)
3407    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3408$as_echo "none needed" >&6; } ;;
3409  xno)
3410    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3411$as_echo "unsupported" >&6; } ;;
3412  *)
3413    CC="$CC $ac_cv_prog_cc_c99"
3414    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3415$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3416esac
3417if test "x$ac_cv_prog_cc_c99" != xno; then :
3418
3419fi
3420
3421
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3429$as_echo_n "checking how to run the C preprocessor... " >&6; }
3430# On Suns, sometimes $CPP names a directory.
3431if test -n "$CPP" && test -d "$CPP"; then
3432  CPP=
3433fi
3434if test -z "$CPP"; then
3435  if ${ac_cv_prog_CPP+:} false; then :
3436  $as_echo_n "(cached) " >&6
3437else
3438      # Double quotes because CPP needs to be expanded
3439    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3440    do
3441      ac_preproc_ok=false
3442for ac_c_preproc_warn_flag in '' yes
3443do
3444  # Use a header file that comes with gcc, so configuring glibc
3445  # with a fresh cross-compiler works.
3446  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447  # <limits.h> exists even on freestanding compilers.
3448  # On the NeXT, cc -E runs the code through the compiler's parser,
3449  # not just through cpp. "Syntax error" is here to catch this case.
3450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452#ifdef __STDC__
3453# include <limits.h>
3454#else
3455# include <assert.h>
3456#endif
3457		     Syntax error
3458_ACEOF
3459if ac_fn_c_try_cpp "$LINENO"; then :
3460
3461else
3462  # Broken: fails on valid input.
3463continue
3464fi
3465rm -f conftest.err conftest.i conftest.$ac_ext
3466
3467  # OK, works on sane cases.  Now check whether nonexistent headers
3468  # can be detected and how.
3469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471#include <ac_nonexistent.h>
3472_ACEOF
3473if ac_fn_c_try_cpp "$LINENO"; then :
3474  # Broken: success on invalid input.
3475continue
3476else
3477  # Passes both tests.
3478ac_preproc_ok=:
3479break
3480fi
3481rm -f conftest.err conftest.i conftest.$ac_ext
3482
3483done
3484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3485rm -f conftest.i conftest.err conftest.$ac_ext
3486if $ac_preproc_ok; then :
3487  break
3488fi
3489
3490    done
3491    ac_cv_prog_CPP=$CPP
3492
3493fi
3494  CPP=$ac_cv_prog_CPP
3495else
3496  ac_cv_prog_CPP=$CPP
3497fi
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3499$as_echo "$CPP" >&6; }
3500ac_preproc_ok=false
3501for ac_c_preproc_warn_flag in '' yes
3502do
3503  # Use a header file that comes with gcc, so configuring glibc
3504  # with a fresh cross-compiler works.
3505  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3506  # <limits.h> exists even on freestanding compilers.
3507  # On the NeXT, cc -E runs the code through the compiler's parser,
3508  # not just through cpp. "Syntax error" is here to catch this case.
3509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510/* end confdefs.h.  */
3511#ifdef __STDC__
3512# include <limits.h>
3513#else
3514# include <assert.h>
3515#endif
3516		     Syntax error
3517_ACEOF
3518if ac_fn_c_try_cpp "$LINENO"; then :
3519
3520else
3521  # Broken: fails on valid input.
3522continue
3523fi
3524rm -f conftest.err conftest.i conftest.$ac_ext
3525
3526  # OK, works on sane cases.  Now check whether nonexistent headers
3527  # can be detected and how.
3528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529/* end confdefs.h.  */
3530#include <ac_nonexistent.h>
3531_ACEOF
3532if ac_fn_c_try_cpp "$LINENO"; then :
3533  # Broken: success on invalid input.
3534continue
3535else
3536  # Passes both tests.
3537ac_preproc_ok=:
3538break
3539fi
3540rm -f conftest.err conftest.i conftest.$ac_ext
3541
3542done
3543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3544rm -f conftest.i conftest.err conftest.$ac_ext
3545if $ac_preproc_ok; then :
3546
3547else
3548  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3551See \`config.log' for more details" "$LINENO" 5; }
3552fi
3553
3554ac_ext=c
3555ac_cpp='$CPP $CPPFLAGS'
3556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3558ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559
3560
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3562$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3563if ${ac_cv_path_GREP+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  if test -z "$GREP"; then
3567  ac_path_GREP_found=false
3568  # Loop through the user's path and test for each of PROGNAME-LIST
3569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3571do
3572  IFS=$as_save_IFS
3573  test -z "$as_dir" && as_dir=.
3574    for ac_prog in grep ggrep; do
3575    for ac_exec_ext in '' $ac_executable_extensions; do
3576      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3577      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3578# Check for GNU ac_path_GREP and select it if it is found.
3579  # Check for GNU $ac_path_GREP
3580case `"$ac_path_GREP" --version 2>&1` in
3581*GNU*)
3582  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3583*)
3584  ac_count=0
3585  $as_echo_n 0123456789 >"conftest.in"
3586  while :
3587  do
3588    cat "conftest.in" "conftest.in" >"conftest.tmp"
3589    mv "conftest.tmp" "conftest.in"
3590    cp "conftest.in" "conftest.nl"
3591    $as_echo 'GREP' >> "conftest.nl"
3592    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3593    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3594    as_fn_arith $ac_count + 1 && ac_count=$as_val
3595    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3596      # Best one so far, save it but keep looking for a better one
3597      ac_cv_path_GREP="$ac_path_GREP"
3598      ac_path_GREP_max=$ac_count
3599    fi
3600    # 10*(2^10) chars as input seems more than enough
3601    test $ac_count -gt 10 && break
3602  done
3603  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3604esac
3605
3606      $ac_path_GREP_found && break 3
3607    done
3608  done
3609  done
3610IFS=$as_save_IFS
3611  if test -z "$ac_cv_path_GREP"; then
3612    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3613  fi
3614else
3615  ac_cv_path_GREP=$GREP
3616fi
3617
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3620$as_echo "$ac_cv_path_GREP" >&6; }
3621 GREP="$ac_cv_path_GREP"
3622
3623
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3625$as_echo_n "checking for egrep... " >&6; }
3626if ${ac_cv_path_EGREP+:} false; then :
3627  $as_echo_n "(cached) " >&6
3628else
3629  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3630   then ac_cv_path_EGREP="$GREP -E"
3631   else
3632     if test -z "$EGREP"; then
3633  ac_path_EGREP_found=false
3634  # Loop through the user's path and test for each of PROGNAME-LIST
3635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3637do
3638  IFS=$as_save_IFS
3639  test -z "$as_dir" && as_dir=.
3640    for ac_prog in egrep; do
3641    for ac_exec_ext in '' $ac_executable_extensions; do
3642      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3643      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3644# Check for GNU ac_path_EGREP and select it if it is found.
3645  # Check for GNU $ac_path_EGREP
3646case `"$ac_path_EGREP" --version 2>&1` in
3647*GNU*)
3648  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3649*)
3650  ac_count=0
3651  $as_echo_n 0123456789 >"conftest.in"
3652  while :
3653  do
3654    cat "conftest.in" "conftest.in" >"conftest.tmp"
3655    mv "conftest.tmp" "conftest.in"
3656    cp "conftest.in" "conftest.nl"
3657    $as_echo 'EGREP' >> "conftest.nl"
3658    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3659    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3660    as_fn_arith $ac_count + 1 && ac_count=$as_val
3661    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3662      # Best one so far, save it but keep looking for a better one
3663      ac_cv_path_EGREP="$ac_path_EGREP"
3664      ac_path_EGREP_max=$ac_count
3665    fi
3666    # 10*(2^10) chars as input seems more than enough
3667    test $ac_count -gt 10 && break
3668  done
3669  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3670esac
3671
3672      $ac_path_EGREP_found && break 3
3673    done
3674  done
3675  done
3676IFS=$as_save_IFS
3677  if test -z "$ac_cv_path_EGREP"; then
3678    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3679  fi
3680else
3681  ac_cv_path_EGREP=$EGREP
3682fi
3683
3684   fi
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3687$as_echo "$ac_cv_path_EGREP" >&6; }
3688 EGREP="$ac_cv_path_EGREP"
3689
3690
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3692$as_echo_n "checking for ANSI C header files... " >&6; }
3693if ${ac_cv_header_stdc+:} false; then :
3694  $as_echo_n "(cached) " >&6
3695else
3696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697/* end confdefs.h.  */
3698#include <stdlib.h>
3699#include <stdarg.h>
3700#include <string.h>
3701#include <float.h>
3702
3703int
3704main ()
3705{
3706
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711if ac_fn_c_try_compile "$LINENO"; then :
3712  ac_cv_header_stdc=yes
3713else
3714  ac_cv_header_stdc=no
3715fi
3716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717
3718if test $ac_cv_header_stdc = yes; then
3719  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722#include <string.h>
3723
3724_ACEOF
3725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3726  $EGREP "memchr" >/dev/null 2>&1; then :
3727
3728else
3729  ac_cv_header_stdc=no
3730fi
3731rm -f conftest*
3732
3733fi
3734
3735if test $ac_cv_header_stdc = yes; then
3736  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738/* end confdefs.h.  */
3739#include <stdlib.h>
3740
3741_ACEOF
3742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3743  $EGREP "free" >/dev/null 2>&1; then :
3744
3745else
3746  ac_cv_header_stdc=no
3747fi
3748rm -f conftest*
3749
3750fi
3751
3752if test $ac_cv_header_stdc = yes; then
3753  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3754  if test "$cross_compiling" = yes; then :
3755  :
3756else
3757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758/* end confdefs.h.  */
3759#include <ctype.h>
3760#include <stdlib.h>
3761#if ((' ' & 0x0FF) == 0x020)
3762# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3763# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3764#else
3765# define ISLOWER(c) \
3766		   (('a' <= (c) && (c) <= 'i') \
3767		     || ('j' <= (c) && (c) <= 'r') \
3768		     || ('s' <= (c) && (c) <= 'z'))
3769# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3770#endif
3771
3772#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3773int
3774main ()
3775{
3776  int i;
3777  for (i = 0; i < 256; i++)
3778    if (XOR (islower (i), ISLOWER (i))
3779	|| toupper (i) != TOUPPER (i))
3780      return 2;
3781  return 0;
3782}
3783_ACEOF
3784if ac_fn_c_try_run "$LINENO"; then :
3785
3786else
3787  ac_cv_header_stdc=no
3788fi
3789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3790  conftest.$ac_objext conftest.beam conftest.$ac_ext
3791fi
3792
3793fi
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3796$as_echo "$ac_cv_header_stdc" >&6; }
3797if test $ac_cv_header_stdc = yes; then
3798
3799$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3800
3801fi
3802
3803# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3804for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3805		  inttypes.h stdint.h unistd.h
3806do :
3807  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3808ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3809"
3810if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3811  cat >>confdefs.h <<_ACEOF
3812#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3813_ACEOF
3814
3815fi
3816
3817done
3818
3819
3820
3821
3822
3823
3824ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
3825if test "x$ac_cv_have_decl___clang__" = xyes; then :
3826  CLANGCC="yes"
3827else
3828  CLANGCC="no"
3829fi
3830
3831ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
3832if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
3833  INTELCC="yes"
3834else
3835  INTELCC="no"
3836fi
3837
3838ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
3839if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
3840  SUNCC="yes"
3841else
3842  SUNCC="no"
3843fi
3844
3845
3846
3847
3848
3849
3850
3851
3852if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3853	if test -n "$ac_tool_prefix"; then
3854  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3855set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857$as_echo_n "checking for $ac_word... " >&6; }
3858if ${ac_cv_path_PKG_CONFIG+:} false; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  case $PKG_CONFIG in
3862  [\\/]* | ?:[\\/]*)
3863  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3864  ;;
3865  *)
3866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869  IFS=$as_save_IFS
3870  test -z "$as_dir" && as_dir=.
3871    for ac_exec_ext in '' $ac_executable_extensions; do
3872  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3874    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875    break 2
3876  fi
3877done
3878  done
3879IFS=$as_save_IFS
3880
3881  ;;
3882esac
3883fi
3884PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3885if test -n "$PKG_CONFIG"; then
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3887$as_echo "$PKG_CONFIG" >&6; }
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893
3894fi
3895if test -z "$ac_cv_path_PKG_CONFIG"; then
3896  ac_pt_PKG_CONFIG=$PKG_CONFIG
3897  # Extract the first word of "pkg-config", so it can be a program name with args.
3898set dummy pkg-config; ac_word=$2
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3900$as_echo_n "checking for $ac_word... " >&6; }
3901if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3902  $as_echo_n "(cached) " >&6
3903else
3904  case $ac_pt_PKG_CONFIG in
3905  [\\/]* | ?:[\\/]*)
3906  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3907  ;;
3908  *)
3909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH
3911do
3912  IFS=$as_save_IFS
3913  test -z "$as_dir" && as_dir=.
3914    for ac_exec_ext in '' $ac_executable_extensions; do
3915  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918    break 2
3919  fi
3920done
3921  done
3922IFS=$as_save_IFS
3923
3924  ;;
3925esac
3926fi
3927ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3928if test -n "$ac_pt_PKG_CONFIG"; then
3929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3930$as_echo "$ac_pt_PKG_CONFIG" >&6; }
3931else
3932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933$as_echo "no" >&6; }
3934fi
3935
3936  if test "x$ac_pt_PKG_CONFIG" = x; then
3937    PKG_CONFIG=""
3938  else
3939    case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945    PKG_CONFIG=$ac_pt_PKG_CONFIG
3946  fi
3947else
3948  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3949fi
3950
3951fi
3952if test -n "$PKG_CONFIG"; then
3953	_pkg_min_version=0.9.0
3954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3955$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3956	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3957		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3958$as_echo "yes" >&6; }
3959	else
3960		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
3962		PKG_CONFIG=""
3963	fi
3964fi
3965# Make sure we can run config.sub.
3966$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3967  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3968
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3970$as_echo_n "checking build system type... " >&6; }
3971if ${ac_cv_build+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974  ac_build_alias=$build_alias
3975test "x$ac_build_alias" = x &&
3976  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3977test "x$ac_build_alias" = x &&
3978  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3979ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3980  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3981
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3984$as_echo "$ac_cv_build" >&6; }
3985case $ac_cv_build in
3986*-*-*) ;;
3987*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3988esac
3989build=$ac_cv_build
3990ac_save_IFS=$IFS; IFS='-'
3991set x $ac_cv_build
3992shift
3993build_cpu=$1
3994build_vendor=$2
3995shift; shift
3996# Remember, the first character of IFS is used to create $*,
3997# except with old shells:
3998build_os=$*
3999IFS=$ac_save_IFS
4000case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4001
4002
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4004$as_echo_n "checking host system type... " >&6; }
4005if ${ac_cv_host+:} false; then :
4006  $as_echo_n "(cached) " >&6
4007else
4008  if test "x$host_alias" = x; then
4009  ac_cv_host=$ac_cv_build
4010else
4011  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4012    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4013fi
4014
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4017$as_echo "$ac_cv_host" >&6; }
4018case $ac_cv_host in
4019*-*-*) ;;
4020*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4021esac
4022host=$ac_cv_host
4023ac_save_IFS=$IFS; IFS='-'
4024set x $ac_cv_host
4025shift
4026host_cpu=$1
4027host_vendor=$2
4028shift; shift
4029# Remember, the first character of IFS is used to create $*,
4030# except with old shells:
4031host_os=$*
4032IFS=$ac_save_IFS
4033case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4034
4035
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4037$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4038if ${ac_cv_path_SED+:} false; then :
4039  $as_echo_n "(cached) " >&6
4040else
4041            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4042     for ac_i in 1 2 3 4 5 6 7; do
4043       ac_script="$ac_script$as_nl$ac_script"
4044     done
4045     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4046     { ac_script=; unset ac_script;}
4047     if test -z "$SED"; then
4048  ac_path_SED_found=false
4049  # Loop through the user's path and test for each of PROGNAME-LIST
4050  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053  IFS=$as_save_IFS
4054  test -z "$as_dir" && as_dir=.
4055    for ac_prog in sed gsed; do
4056    for ac_exec_ext in '' $ac_executable_extensions; do
4057      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4058      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4059# Check for GNU ac_path_SED and select it if it is found.
4060  # Check for GNU $ac_path_SED
4061case `"$ac_path_SED" --version 2>&1` in
4062*GNU*)
4063  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4064*)
4065  ac_count=0
4066  $as_echo_n 0123456789 >"conftest.in"
4067  while :
4068  do
4069    cat "conftest.in" "conftest.in" >"conftest.tmp"
4070    mv "conftest.tmp" "conftest.in"
4071    cp "conftest.in" "conftest.nl"
4072    $as_echo '' >> "conftest.nl"
4073    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075    as_fn_arith $ac_count + 1 && ac_count=$as_val
4076    if test $ac_count -gt ${ac_path_SED_max-0}; then
4077      # Best one so far, save it but keep looking for a better one
4078      ac_cv_path_SED="$ac_path_SED"
4079      ac_path_SED_max=$ac_count
4080    fi
4081    # 10*(2^10) chars as input seems more than enough
4082    test $ac_count -gt 10 && break
4083  done
4084  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085esac
4086
4087      $ac_path_SED_found && break 3
4088    done
4089  done
4090  done
4091IFS=$as_save_IFS
4092  if test -z "$ac_cv_path_SED"; then
4093    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4094  fi
4095else
4096  ac_cv_path_SED=$SED
4097fi
4098
4099fi
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4101$as_echo "$ac_cv_path_SED" >&6; }
4102 SED="$ac_cv_path_SED"
4103  rm -f conftest.sed
4104
4105
4106
4107
4108
4109
4110# Check whether --enable-selective-werror was given.
4111if test "${enable_selective_werror+set}" = set; then :
4112  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4113else
4114  SELECTIVE_WERROR=yes
4115fi
4116
4117
4118
4119
4120
4121# -v is too short to test reliably with XORG_TESTSET_CFLAG
4122if test "x$SUNCC" = "xyes"; then
4123    BASE_CFLAGS="-v"
4124else
4125    BASE_CFLAGS=""
4126fi
4127
4128# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142xorg_testset_save_CFLAGS="$CFLAGS"
4143
4144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152/* end confdefs.h.  */
4153int i;
4154_ACEOF
4155if ac_fn_c_try_compile "$LINENO"; then :
4156  xorg_cv_cc_flag_unknown_warning_option=yes
4157else
4158  xorg_cv_cc_flag_unknown_warning_option=no
4159fi
4160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4165	CFLAGS="$xorg_testset_save_CFLAGS"
4166fi
4167
4168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4171	fi
4172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179/* end confdefs.h.  */
4180int i;
4181_ACEOF
4182if ac_fn_c_try_compile "$LINENO"; then :
4183  xorg_cv_cc_flag_unused_command_line_argument=yes
4184else
4185  xorg_cv_cc_flag_unused_command_line_argument=no
4186fi
4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188fi
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4192	CFLAGS="$xorg_testset_save_CFLAGS"
4193fi
4194
4195found="no"
4196
4197	if test $found = "no" ; then
4198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4200		fi
4201
4202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4204		fi
4205
4206		CFLAGS="$CFLAGS -Wall"
4207
4208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4209$as_echo_n "checking if $CC supports -Wall... " >&6; }
4210		cacheid=xorg_cv_cc_flag__Wall
4211		if eval \${$cacheid+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215/* end confdefs.h.  */
4216int i;
4217int
4218main ()
4219{
4220
4221  ;
4222  return 0;
4223}
4224_ACEOF
4225if ac_fn_c_try_link "$LINENO"; then :
4226  eval $cacheid=yes
4227else
4228  eval $cacheid=no
4229fi
4230rm -f core conftest.err conftest.$ac_objext \
4231    conftest$ac_exeext conftest.$ac_ext
4232fi
4233
4234
4235		CFLAGS="$xorg_testset_save_CFLAGS"
4236
4237		eval supported=\$$cacheid
4238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4239$as_echo "$supported" >&6; }
4240		if test "$supported" = "yes" ; then
4241			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4242			found="yes"
4243		fi
4244	fi
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260xorg_testset_save_CFLAGS="$CFLAGS"
4261
4262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4267  $as_echo_n "(cached) " >&6
4268else
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271int i;
4272_ACEOF
4273if ac_fn_c_try_compile "$LINENO"; then :
4274  xorg_cv_cc_flag_unknown_warning_option=yes
4275else
4276  xorg_cv_cc_flag_unknown_warning_option=no
4277fi
4278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279fi
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4283	CFLAGS="$xorg_testset_save_CFLAGS"
4284fi
4285
4286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4289	fi
4290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297/* end confdefs.h.  */
4298int i;
4299_ACEOF
4300if ac_fn_c_try_compile "$LINENO"; then :
4301  xorg_cv_cc_flag_unused_command_line_argument=yes
4302else
4303  xorg_cv_cc_flag_unused_command_line_argument=no
4304fi
4305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4310	CFLAGS="$xorg_testset_save_CFLAGS"
4311fi
4312
4313found="no"
4314
4315	if test $found = "no" ; then
4316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4318		fi
4319
4320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4322		fi
4323
4324		CFLAGS="$CFLAGS -Wpointer-arith"
4325
4326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4327$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4328		cacheid=xorg_cv_cc_flag__Wpointer_arith
4329		if eval \${$cacheid+:} false; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333/* end confdefs.h.  */
4334int i;
4335int
4336main ()
4337{
4338
4339  ;
4340  return 0;
4341}
4342_ACEOF
4343if ac_fn_c_try_link "$LINENO"; then :
4344  eval $cacheid=yes
4345else
4346  eval $cacheid=no
4347fi
4348rm -f core conftest.err conftest.$ac_objext \
4349    conftest$ac_exeext conftest.$ac_ext
4350fi
4351
4352
4353		CFLAGS="$xorg_testset_save_CFLAGS"
4354
4355		eval supported=\$$cacheid
4356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4357$as_echo "$supported" >&6; }
4358		if test "$supported" = "yes" ; then
4359			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4360			found="yes"
4361		fi
4362	fi
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378xorg_testset_save_CFLAGS="$CFLAGS"
4379
4380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4385  $as_echo_n "(cached) " >&6
4386else
4387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388/* end confdefs.h.  */
4389int i;
4390_ACEOF
4391if ac_fn_c_try_compile "$LINENO"; then :
4392  xorg_cv_cc_flag_unknown_warning_option=yes
4393else
4394  xorg_cv_cc_flag_unknown_warning_option=no
4395fi
4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397fi
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4401	CFLAGS="$xorg_testset_save_CFLAGS"
4402fi
4403
4404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4407	fi
4408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4412  $as_echo_n "(cached) " >&6
4413else
4414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h.  */
4416int i;
4417_ACEOF
4418if ac_fn_c_try_compile "$LINENO"; then :
4419  xorg_cv_cc_flag_unused_command_line_argument=yes
4420else
4421  xorg_cv_cc_flag_unused_command_line_argument=no
4422fi
4423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4428	CFLAGS="$xorg_testset_save_CFLAGS"
4429fi
4430
4431found="no"
4432
4433	if test $found = "no" ; then
4434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4436		fi
4437
4438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4440		fi
4441
4442		CFLAGS="$CFLAGS -Wmissing-declarations"
4443
4444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4445$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4446		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4447		if eval \${$cacheid+:} false; then :
4448  $as_echo_n "(cached) " >&6
4449else
4450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h.  */
4452int i;
4453int
4454main ()
4455{
4456
4457  ;
4458  return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_link "$LINENO"; then :
4462  eval $cacheid=yes
4463else
4464  eval $cacheid=no
4465fi
4466rm -f core conftest.err conftest.$ac_objext \
4467    conftest$ac_exeext conftest.$ac_ext
4468fi
4469
4470
4471		CFLAGS="$xorg_testset_save_CFLAGS"
4472
4473		eval supported=\$$cacheid
4474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4475$as_echo "$supported" >&6; }
4476		if test "$supported" = "yes" ; then
4477			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4478			found="yes"
4479		fi
4480	fi
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496xorg_testset_save_CFLAGS="$CFLAGS"
4497
4498if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4499	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4500	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4501$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4502if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4503  $as_echo_n "(cached) " >&6
4504else
4505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506/* end confdefs.h.  */
4507int i;
4508_ACEOF
4509if ac_fn_c_try_compile "$LINENO"; then :
4510  xorg_cv_cc_flag_unknown_warning_option=yes
4511else
4512  xorg_cv_cc_flag_unknown_warning_option=no
4513fi
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515fi
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4517$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4519	CFLAGS="$xorg_testset_save_CFLAGS"
4520fi
4521
4522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4525	fi
4526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4527	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4528$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4529if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4530  $as_echo_n "(cached) " >&6
4531else
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534int i;
4535_ACEOF
4536if ac_fn_c_try_compile "$LINENO"; then :
4537  xorg_cv_cc_flag_unused_command_line_argument=yes
4538else
4539  xorg_cv_cc_flag_unused_command_line_argument=no
4540fi
4541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4544$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4545	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4546	CFLAGS="$xorg_testset_save_CFLAGS"
4547fi
4548
4549found="no"
4550
4551	if test $found = "no" ; then
4552		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4553			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4554		fi
4555
4556		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4557			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4558		fi
4559
4560		CFLAGS="$CFLAGS -Wformat=2"
4561
4562		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4563$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
4564		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4565		if eval \${$cacheid+:} false; then :
4566  $as_echo_n "(cached) " >&6
4567else
4568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h.  */
4570int i;
4571int
4572main ()
4573{
4574
4575  ;
4576  return 0;
4577}
4578_ACEOF
4579if ac_fn_c_try_link "$LINENO"; then :
4580  eval $cacheid=yes
4581else
4582  eval $cacheid=no
4583fi
4584rm -f core conftest.err conftest.$ac_objext \
4585    conftest$ac_exeext conftest.$ac_ext
4586fi
4587
4588
4589		CFLAGS="$xorg_testset_save_CFLAGS"
4590
4591		eval supported=\$$cacheid
4592		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4593$as_echo "$supported" >&6; }
4594		if test "$supported" = "yes" ; then
4595			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4596			found="yes"
4597		fi
4598	fi
4599
4600	if test $found = "no" ; then
4601		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4603		fi
4604
4605		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4607		fi
4608
4609		CFLAGS="$CFLAGS -Wformat"
4610
4611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4612$as_echo_n "checking if $CC supports -Wformat... " >&6; }
4613		cacheid=xorg_cv_cc_flag__Wformat
4614		if eval \${$cacheid+:} false; then :
4615  $as_echo_n "(cached) " >&6
4616else
4617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618/* end confdefs.h.  */
4619int i;
4620int
4621main ()
4622{
4623
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628if ac_fn_c_try_link "$LINENO"; then :
4629  eval $cacheid=yes
4630else
4631  eval $cacheid=no
4632fi
4633rm -f core conftest.err conftest.$ac_objext \
4634    conftest$ac_exeext conftest.$ac_ext
4635fi
4636
4637
4638		CFLAGS="$xorg_testset_save_CFLAGS"
4639
4640		eval supported=\$$cacheid
4641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4642$as_echo "$supported" >&6; }
4643		if test "$supported" = "yes" ; then
4644			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4645			found="yes"
4646		fi
4647	fi
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665xorg_testset_save_CFLAGS="$CFLAGS"
4666
4667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4668	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4672  $as_echo_n "(cached) " >&6
4673else
4674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675/* end confdefs.h.  */
4676int i;
4677_ACEOF
4678if ac_fn_c_try_compile "$LINENO"; then :
4679  xorg_cv_cc_flag_unknown_warning_option=yes
4680else
4681  xorg_cv_cc_flag_unknown_warning_option=no
4682fi
4683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4688	CFLAGS="$xorg_testset_save_CFLAGS"
4689fi
4690
4691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4694	fi
4695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4699  $as_echo_n "(cached) " >&6
4700else
4701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703int i;
4704_ACEOF
4705if ac_fn_c_try_compile "$LINENO"; then :
4706  xorg_cv_cc_flag_unused_command_line_argument=yes
4707else
4708  xorg_cv_cc_flag_unused_command_line_argument=no
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711fi
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4715	CFLAGS="$xorg_testset_save_CFLAGS"
4716fi
4717
4718found="no"
4719
4720	if test $found = "no" ; then
4721		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4723		fi
4724
4725		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4727		fi
4728
4729		CFLAGS="$CFLAGS -Wstrict-prototypes"
4730
4731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4732$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4733		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4734		if eval \${$cacheid+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h.  */
4739int i;
4740int
4741main ()
4742{
4743
4744  ;
4745  return 0;
4746}
4747_ACEOF
4748if ac_fn_c_try_link "$LINENO"; then :
4749  eval $cacheid=yes
4750else
4751  eval $cacheid=no
4752fi
4753rm -f core conftest.err conftest.$ac_objext \
4754    conftest$ac_exeext conftest.$ac_ext
4755fi
4756
4757
4758		CFLAGS="$xorg_testset_save_CFLAGS"
4759
4760		eval supported=\$$cacheid
4761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4762$as_echo "$supported" >&6; }
4763		if test "$supported" = "yes" ; then
4764			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4765			found="yes"
4766		fi
4767	fi
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783xorg_testset_save_CFLAGS="$CFLAGS"
4784
4785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4790  $as_echo_n "(cached) " >&6
4791else
4792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793/* end confdefs.h.  */
4794int i;
4795_ACEOF
4796if ac_fn_c_try_compile "$LINENO"; then :
4797  xorg_cv_cc_flag_unknown_warning_option=yes
4798else
4799  xorg_cv_cc_flag_unknown_warning_option=no
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4806	CFLAGS="$xorg_testset_save_CFLAGS"
4807fi
4808
4809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4812	fi
4813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820/* end confdefs.h.  */
4821int i;
4822_ACEOF
4823if ac_fn_c_try_compile "$LINENO"; then :
4824  xorg_cv_cc_flag_unused_command_line_argument=yes
4825else
4826  xorg_cv_cc_flag_unused_command_line_argument=no
4827fi
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4833	CFLAGS="$xorg_testset_save_CFLAGS"
4834fi
4835
4836found="no"
4837
4838	if test $found = "no" ; then
4839		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4841		fi
4842
4843		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4845		fi
4846
4847		CFLAGS="$CFLAGS -Wmissing-prototypes"
4848
4849		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4850$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4851		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
4852		if eval \${$cacheid+:} false; then :
4853  $as_echo_n "(cached) " >&6
4854else
4855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h.  */
4857int i;
4858int
4859main ()
4860{
4861
4862  ;
4863  return 0;
4864}
4865_ACEOF
4866if ac_fn_c_try_link "$LINENO"; then :
4867  eval $cacheid=yes
4868else
4869  eval $cacheid=no
4870fi
4871rm -f core conftest.err conftest.$ac_objext \
4872    conftest$ac_exeext conftest.$ac_ext
4873fi
4874
4875
4876		CFLAGS="$xorg_testset_save_CFLAGS"
4877
4878		eval supported=\$$cacheid
4879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4880$as_echo "$supported" >&6; }
4881		if test "$supported" = "yes" ; then
4882			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4883			found="yes"
4884		fi
4885	fi
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901xorg_testset_save_CFLAGS="$CFLAGS"
4902
4903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911/* end confdefs.h.  */
4912int i;
4913_ACEOF
4914if ac_fn_c_try_compile "$LINENO"; then :
4915  xorg_cv_cc_flag_unknown_warning_option=yes
4916else
4917  xorg_cv_cc_flag_unknown_warning_option=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4924	CFLAGS="$xorg_testset_save_CFLAGS"
4925fi
4926
4927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4930	fi
4931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h.  */
4939int i;
4940_ACEOF
4941if ac_fn_c_try_compile "$LINENO"; then :
4942  xorg_cv_cc_flag_unused_command_line_argument=yes
4943else
4944  xorg_cv_cc_flag_unused_command_line_argument=no
4945fi
4946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4951	CFLAGS="$xorg_testset_save_CFLAGS"
4952fi
4953
4954found="no"
4955
4956	if test $found = "no" ; then
4957		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4959		fi
4960
4961		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4963		fi
4964
4965		CFLAGS="$CFLAGS -Wnested-externs"
4966
4967		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
4968$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
4969		cacheid=xorg_cv_cc_flag__Wnested_externs
4970		if eval \${$cacheid+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h.  */
4975int i;
4976int
4977main ()
4978{
4979
4980  ;
4981  return 0;
4982}
4983_ACEOF
4984if ac_fn_c_try_link "$LINENO"; then :
4985  eval $cacheid=yes
4986else
4987  eval $cacheid=no
4988fi
4989rm -f core conftest.err conftest.$ac_objext \
4990    conftest$ac_exeext conftest.$ac_ext
4991fi
4992
4993
4994		CFLAGS="$xorg_testset_save_CFLAGS"
4995
4996		eval supported=\$$cacheid
4997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4998$as_echo "$supported" >&6; }
4999		if test "$supported" = "yes" ; then
5000			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5001			found="yes"
5002		fi
5003	fi
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019xorg_testset_save_CFLAGS="$CFLAGS"
5020
5021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5024$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5025if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5026  $as_echo_n "(cached) " >&6
5027else
5028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029/* end confdefs.h.  */
5030int i;
5031_ACEOF
5032if ac_fn_c_try_compile "$LINENO"; then :
5033  xorg_cv_cc_flag_unknown_warning_option=yes
5034else
5035  xorg_cv_cc_flag_unknown_warning_option=no
5036fi
5037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038fi
5039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5040$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5041	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5042	CFLAGS="$xorg_testset_save_CFLAGS"
5043fi
5044
5045if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5046	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5047		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5048	fi
5049	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5051$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5052if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5053  $as_echo_n "(cached) " >&6
5054else
5055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056/* end confdefs.h.  */
5057int i;
5058_ACEOF
5059if ac_fn_c_try_compile "$LINENO"; then :
5060  xorg_cv_cc_flag_unused_command_line_argument=yes
5061else
5062  xorg_cv_cc_flag_unused_command_line_argument=no
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5067$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5068	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5069	CFLAGS="$xorg_testset_save_CFLAGS"
5070fi
5071
5072found="no"
5073
5074	if test $found = "no" ; then
5075		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5076			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5077		fi
5078
5079		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5080			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5081		fi
5082
5083		CFLAGS="$CFLAGS -Wbad-function-cast"
5084
5085		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5086$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5087		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5088		if eval \${$cacheid+:} false; then :
5089  $as_echo_n "(cached) " >&6
5090else
5091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092/* end confdefs.h.  */
5093int i;
5094int
5095main ()
5096{
5097
5098  ;
5099  return 0;
5100}
5101_ACEOF
5102if ac_fn_c_try_link "$LINENO"; then :
5103  eval $cacheid=yes
5104else
5105  eval $cacheid=no
5106fi
5107rm -f core conftest.err conftest.$ac_objext \
5108    conftest$ac_exeext conftest.$ac_ext
5109fi
5110
5111
5112		CFLAGS="$xorg_testset_save_CFLAGS"
5113
5114		eval supported=\$$cacheid
5115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5116$as_echo "$supported" >&6; }
5117		if test "$supported" = "yes" ; then
5118			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5119			found="yes"
5120		fi
5121	fi
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137xorg_testset_save_CFLAGS="$CFLAGS"
5138
5139if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5140	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5141	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5142$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5143if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147/* end confdefs.h.  */
5148int i;
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151  xorg_cv_cc_flag_unknown_warning_option=yes
5152else
5153  xorg_cv_cc_flag_unknown_warning_option=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156fi
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5158$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5160	CFLAGS="$xorg_testset_save_CFLAGS"
5161fi
5162
5163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5166	fi
5167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5168	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5169$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5170if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174/* end confdefs.h.  */
5175int i;
5176_ACEOF
5177if ac_fn_c_try_compile "$LINENO"; then :
5178  xorg_cv_cc_flag_unused_command_line_argument=yes
5179else
5180  xorg_cv_cc_flag_unused_command_line_argument=no
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5185$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5186	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5187	CFLAGS="$xorg_testset_save_CFLAGS"
5188fi
5189
5190found="no"
5191
5192	if test $found = "no" ; then
5193		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5194			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5195		fi
5196
5197		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199		fi
5200
5201		CFLAGS="$CFLAGS -Wold-style-definition"
5202
5203		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5204$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5205		cacheid=xorg_cv_cc_flag__Wold_style_definition
5206		if eval \${$cacheid+:} false; then :
5207  $as_echo_n "(cached) " >&6
5208else
5209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5210/* end confdefs.h.  */
5211int i;
5212int
5213main ()
5214{
5215
5216  ;
5217  return 0;
5218}
5219_ACEOF
5220if ac_fn_c_try_link "$LINENO"; then :
5221  eval $cacheid=yes
5222else
5223  eval $cacheid=no
5224fi
5225rm -f core conftest.err conftest.$ac_objext \
5226    conftest$ac_exeext conftest.$ac_ext
5227fi
5228
5229
5230		CFLAGS="$xorg_testset_save_CFLAGS"
5231
5232		eval supported=\$$cacheid
5233		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5234$as_echo "$supported" >&6; }
5235		if test "$supported" = "yes" ; then
5236			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5237			found="yes"
5238		fi
5239	fi
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255xorg_testset_save_CFLAGS="$CFLAGS"
5256
5257if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5258	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5259	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5260$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5261if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5262  $as_echo_n "(cached) " >&6
5263else
5264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h.  */
5266int i;
5267_ACEOF
5268if ac_fn_c_try_compile "$LINENO"; then :
5269  xorg_cv_cc_flag_unknown_warning_option=yes
5270else
5271  xorg_cv_cc_flag_unknown_warning_option=no
5272fi
5273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274fi
5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5276$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5278	CFLAGS="$xorg_testset_save_CFLAGS"
5279fi
5280
5281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284	fi
5285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5287$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5288if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5289  $as_echo_n "(cached) " >&6
5290else
5291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292/* end confdefs.h.  */
5293int i;
5294_ACEOF
5295if ac_fn_c_try_compile "$LINENO"; then :
5296  xorg_cv_cc_flag_unused_command_line_argument=yes
5297else
5298  xorg_cv_cc_flag_unused_command_line_argument=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5303$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5304	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5305	CFLAGS="$xorg_testset_save_CFLAGS"
5306fi
5307
5308found="no"
5309
5310	if test $found = "no" ; then
5311		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5312			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313		fi
5314
5315		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5316			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5317		fi
5318
5319		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5320
5321		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5322$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5323		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5324		if eval \${$cacheid+:} false; then :
5325  $as_echo_n "(cached) " >&6
5326else
5327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328/* end confdefs.h.  */
5329int i;
5330int
5331main ()
5332{
5333
5334  ;
5335  return 0;
5336}
5337_ACEOF
5338if ac_fn_c_try_link "$LINENO"; then :
5339  eval $cacheid=yes
5340else
5341  eval $cacheid=no
5342fi
5343rm -f core conftest.err conftest.$ac_objext \
5344    conftest$ac_exeext conftest.$ac_ext
5345fi
5346
5347
5348		CFLAGS="$xorg_testset_save_CFLAGS"
5349
5350		eval supported=\$$cacheid
5351		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5352$as_echo "$supported" >&6; }
5353		if test "$supported" = "yes" ; then
5354			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5355			found="yes"
5356		fi
5357	fi
5358
5359
5360
5361
5362
5363# This chunk adds additional warnings that could catch undesired effects.
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377xorg_testset_save_CFLAGS="$CFLAGS"
5378
5379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5382$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5383if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5384  $as_echo_n "(cached) " >&6
5385else
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388int i;
5389_ACEOF
5390if ac_fn_c_try_compile "$LINENO"; then :
5391  xorg_cv_cc_flag_unknown_warning_option=yes
5392else
5393  xorg_cv_cc_flag_unknown_warning_option=no
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396fi
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5398$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5399	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5400	CFLAGS="$xorg_testset_save_CFLAGS"
5401fi
5402
5403if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5404	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5405		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5406	fi
5407	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5409$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5410if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5411  $as_echo_n "(cached) " >&6
5412else
5413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414/* end confdefs.h.  */
5415int i;
5416_ACEOF
5417if ac_fn_c_try_compile "$LINENO"; then :
5418  xorg_cv_cc_flag_unused_command_line_argument=yes
5419else
5420  xorg_cv_cc_flag_unused_command_line_argument=no
5421fi
5422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5425$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5426	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5427	CFLAGS="$xorg_testset_save_CFLAGS"
5428fi
5429
5430found="no"
5431
5432	if test $found = "no" ; then
5433		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5434			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5435		fi
5436
5437		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5438			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5439		fi
5440
5441		CFLAGS="$CFLAGS -Wunused"
5442
5443		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5444$as_echo_n "checking if $CC supports -Wunused... " >&6; }
5445		cacheid=xorg_cv_cc_flag__Wunused
5446		if eval \${$cacheid+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5450/* end confdefs.h.  */
5451int i;
5452int
5453main ()
5454{
5455
5456  ;
5457  return 0;
5458}
5459_ACEOF
5460if ac_fn_c_try_link "$LINENO"; then :
5461  eval $cacheid=yes
5462else
5463  eval $cacheid=no
5464fi
5465rm -f core conftest.err conftest.$ac_objext \
5466    conftest$ac_exeext conftest.$ac_ext
5467fi
5468
5469
5470		CFLAGS="$xorg_testset_save_CFLAGS"
5471
5472		eval supported=\$$cacheid
5473		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5474$as_echo "$supported" >&6; }
5475		if test "$supported" = "yes" ; then
5476			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5477			found="yes"
5478		fi
5479	fi
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495xorg_testset_save_CFLAGS="$CFLAGS"
5496
5497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505/* end confdefs.h.  */
5506int i;
5507_ACEOF
5508if ac_fn_c_try_compile "$LINENO"; then :
5509  xorg_cv_cc_flag_unknown_warning_option=yes
5510else
5511  xorg_cv_cc_flag_unknown_warning_option=no
5512fi
5513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514fi
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5518	CFLAGS="$xorg_testset_save_CFLAGS"
5519fi
5520
5521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5524	fi
5525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532/* end confdefs.h.  */
5533int i;
5534_ACEOF
5535if ac_fn_c_try_compile "$LINENO"; then :
5536  xorg_cv_cc_flag_unused_command_line_argument=yes
5537else
5538  xorg_cv_cc_flag_unused_command_line_argument=no
5539fi
5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541fi
5542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5545	CFLAGS="$xorg_testset_save_CFLAGS"
5546fi
5547
5548found="no"
5549
5550	if test $found = "no" ; then
5551		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5553		fi
5554
5555		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5557		fi
5558
5559		CFLAGS="$CFLAGS -Wuninitialized"
5560
5561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5562$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5563		cacheid=xorg_cv_cc_flag__Wuninitialized
5564		if eval \${$cacheid+:} false; then :
5565  $as_echo_n "(cached) " >&6
5566else
5567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569int i;
5570int
5571main ()
5572{
5573
5574  ;
5575  return 0;
5576}
5577_ACEOF
5578if ac_fn_c_try_link "$LINENO"; then :
5579  eval $cacheid=yes
5580else
5581  eval $cacheid=no
5582fi
5583rm -f core conftest.err conftest.$ac_objext \
5584    conftest$ac_exeext conftest.$ac_ext
5585fi
5586
5587
5588		CFLAGS="$xorg_testset_save_CFLAGS"
5589
5590		eval supported=\$$cacheid
5591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5592$as_echo "$supported" >&6; }
5593		if test "$supported" = "yes" ; then
5594			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5595			found="yes"
5596		fi
5597	fi
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613xorg_testset_save_CFLAGS="$CFLAGS"
5614
5615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624int i;
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"; then :
5627  xorg_cv_cc_flag_unknown_warning_option=yes
5628else
5629  xorg_cv_cc_flag_unknown_warning_option=no
5630fi
5631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632fi
5633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5636	CFLAGS="$xorg_testset_save_CFLAGS"
5637fi
5638
5639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642	fi
5643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5647  $as_echo_n "(cached) " >&6
5648else
5649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h.  */
5651int i;
5652_ACEOF
5653if ac_fn_c_try_compile "$LINENO"; then :
5654  xorg_cv_cc_flag_unused_command_line_argument=yes
5655else
5656  xorg_cv_cc_flag_unused_command_line_argument=no
5657fi
5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5663	CFLAGS="$xorg_testset_save_CFLAGS"
5664fi
5665
5666found="no"
5667
5668	if test $found = "no" ; then
5669		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671		fi
5672
5673		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5675		fi
5676
5677		CFLAGS="$CFLAGS -Wshadow"
5678
5679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5680$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5681		cacheid=xorg_cv_cc_flag__Wshadow
5682		if eval \${$cacheid+:} false; then :
5683  $as_echo_n "(cached) " >&6
5684else
5685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687int i;
5688int
5689main ()
5690{
5691
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_link "$LINENO"; then :
5697  eval $cacheid=yes
5698else
5699  eval $cacheid=no
5700fi
5701rm -f core conftest.err conftest.$ac_objext \
5702    conftest$ac_exeext conftest.$ac_ext
5703fi
5704
5705
5706		CFLAGS="$xorg_testset_save_CFLAGS"
5707
5708		eval supported=\$$cacheid
5709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5710$as_echo "$supported" >&6; }
5711		if test "$supported" = "yes" ; then
5712			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5713			found="yes"
5714		fi
5715	fi
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731xorg_testset_save_CFLAGS="$CFLAGS"
5732
5733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h.  */
5742int i;
5743_ACEOF
5744if ac_fn_c_try_compile "$LINENO"; then :
5745  xorg_cv_cc_flag_unknown_warning_option=yes
5746else
5747  xorg_cv_cc_flag_unknown_warning_option=no
5748fi
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5754	CFLAGS="$xorg_testset_save_CFLAGS"
5755fi
5756
5757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760	fi
5761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5765  $as_echo_n "(cached) " >&6
5766else
5767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h.  */
5769int i;
5770_ACEOF
5771if ac_fn_c_try_compile "$LINENO"; then :
5772  xorg_cv_cc_flag_unused_command_line_argument=yes
5773else
5774  xorg_cv_cc_flag_unused_command_line_argument=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777fi
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5781	CFLAGS="$xorg_testset_save_CFLAGS"
5782fi
5783
5784found="no"
5785
5786	if test $found = "no" ; then
5787		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5789		fi
5790
5791		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793		fi
5794
5795		CFLAGS="$CFLAGS -Wcast-qual"
5796
5797		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
5798$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
5799		cacheid=xorg_cv_cc_flag__Wcast_qual
5800		if eval \${$cacheid+:} false; then :
5801  $as_echo_n "(cached) " >&6
5802else
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805int i;
5806int
5807main ()
5808{
5809
5810  ;
5811  return 0;
5812}
5813_ACEOF
5814if ac_fn_c_try_link "$LINENO"; then :
5815  eval $cacheid=yes
5816else
5817  eval $cacheid=no
5818fi
5819rm -f core conftest.err conftest.$ac_objext \
5820    conftest$ac_exeext conftest.$ac_ext
5821fi
5822
5823
5824		CFLAGS="$xorg_testset_save_CFLAGS"
5825
5826		eval supported=\$$cacheid
5827		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5828$as_echo "$supported" >&6; }
5829		if test "$supported" = "yes" ; then
5830			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
5831			found="yes"
5832		fi
5833	fi
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849xorg_testset_save_CFLAGS="$CFLAGS"
5850
5851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860int i;
5861_ACEOF
5862if ac_fn_c_try_compile "$LINENO"; then :
5863  xorg_cv_cc_flag_unknown_warning_option=yes
5864else
5865  xorg_cv_cc_flag_unknown_warning_option=no
5866fi
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868fi
5869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5872	CFLAGS="$xorg_testset_save_CFLAGS"
5873fi
5874
5875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5878	fi
5879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5883  $as_echo_n "(cached) " >&6
5884else
5885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5886/* end confdefs.h.  */
5887int i;
5888_ACEOF
5889if ac_fn_c_try_compile "$LINENO"; then :
5890  xorg_cv_cc_flag_unused_command_line_argument=yes
5891else
5892  xorg_cv_cc_flag_unused_command_line_argument=no
5893fi
5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5899	CFLAGS="$xorg_testset_save_CFLAGS"
5900fi
5901
5902found="no"
5903
5904	if test $found = "no" ; then
5905		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5907		fi
5908
5909		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911		fi
5912
5913		CFLAGS="$CFLAGS -Wmissing-noreturn"
5914
5915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
5916$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
5917		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
5918		if eval \${$cacheid+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922/* end confdefs.h.  */
5923int i;
5924int
5925main ()
5926{
5927
5928  ;
5929  return 0;
5930}
5931_ACEOF
5932if ac_fn_c_try_link "$LINENO"; then :
5933  eval $cacheid=yes
5934else
5935  eval $cacheid=no
5936fi
5937rm -f core conftest.err conftest.$ac_objext \
5938    conftest$ac_exeext conftest.$ac_ext
5939fi
5940
5941
5942		CFLAGS="$xorg_testset_save_CFLAGS"
5943
5944		eval supported=\$$cacheid
5945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5946$as_echo "$supported" >&6; }
5947		if test "$supported" = "yes" ; then
5948			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
5949			found="yes"
5950		fi
5951	fi
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967xorg_testset_save_CFLAGS="$CFLAGS"
5968
5969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978int i;
5979_ACEOF
5980if ac_fn_c_try_compile "$LINENO"; then :
5981  xorg_cv_cc_flag_unknown_warning_option=yes
5982else
5983  xorg_cv_cc_flag_unknown_warning_option=no
5984fi
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5990	CFLAGS="$xorg_testset_save_CFLAGS"
5991fi
5992
5993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5996	fi
5997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h.  */
6005int i;
6006_ACEOF
6007if ac_fn_c_try_compile "$LINENO"; then :
6008  xorg_cv_cc_flag_unused_command_line_argument=yes
6009else
6010  xorg_cv_cc_flag_unused_command_line_argument=no
6011fi
6012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013fi
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6017	CFLAGS="$xorg_testset_save_CFLAGS"
6018fi
6019
6020found="no"
6021
6022	if test $found = "no" ; then
6023		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025		fi
6026
6027		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6029		fi
6030
6031		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6032
6033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6034$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6035		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6036		if eval \${$cacheid+:} false; then :
6037  $as_echo_n "(cached) " >&6
6038else
6039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041int i;
6042int
6043main ()
6044{
6045
6046  ;
6047  return 0;
6048}
6049_ACEOF
6050if ac_fn_c_try_link "$LINENO"; then :
6051  eval $cacheid=yes
6052else
6053  eval $cacheid=no
6054fi
6055rm -f core conftest.err conftest.$ac_objext \
6056    conftest$ac_exeext conftest.$ac_ext
6057fi
6058
6059
6060		CFLAGS="$xorg_testset_save_CFLAGS"
6061
6062		eval supported=\$$cacheid
6063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6064$as_echo "$supported" >&6; }
6065		if test "$supported" = "yes" ; then
6066			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6067			found="yes"
6068		fi
6069	fi
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085xorg_testset_save_CFLAGS="$CFLAGS"
6086
6087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095/* end confdefs.h.  */
6096int i;
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"; then :
6099  xorg_cv_cc_flag_unknown_warning_option=yes
6100else
6101  xorg_cv_cc_flag_unknown_warning_option=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6108	CFLAGS="$xorg_testset_save_CFLAGS"
6109fi
6110
6111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114	fi
6115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6119  $as_echo_n "(cached) " >&6
6120else
6121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122/* end confdefs.h.  */
6123int i;
6124_ACEOF
6125if ac_fn_c_try_compile "$LINENO"; then :
6126  xorg_cv_cc_flag_unused_command_line_argument=yes
6127else
6128  xorg_cv_cc_flag_unused_command_line_argument=no
6129fi
6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131fi
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6135	CFLAGS="$xorg_testset_save_CFLAGS"
6136fi
6137
6138found="no"
6139
6140	if test $found = "no" ; then
6141		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6143		fi
6144
6145		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6147		fi
6148
6149		CFLAGS="$CFLAGS -Wredundant-decls"
6150
6151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6152$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6153		cacheid=xorg_cv_cc_flag__Wredundant_decls
6154		if eval \${$cacheid+:} false; then :
6155  $as_echo_n "(cached) " >&6
6156else
6157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158/* end confdefs.h.  */
6159int i;
6160int
6161main ()
6162{
6163
6164  ;
6165  return 0;
6166}
6167_ACEOF
6168if ac_fn_c_try_link "$LINENO"; then :
6169  eval $cacheid=yes
6170else
6171  eval $cacheid=no
6172fi
6173rm -f core conftest.err conftest.$ac_objext \
6174    conftest$ac_exeext conftest.$ac_ext
6175fi
6176
6177
6178		CFLAGS="$xorg_testset_save_CFLAGS"
6179
6180		eval supported=\$$cacheid
6181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6182$as_echo "$supported" >&6; }
6183		if test "$supported" = "yes" ; then
6184			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6185			found="yes"
6186		fi
6187	fi
6188
6189
6190
6191# These are currently disabled because they are noisy.  They will be enabled
6192# in the future once the codebase is sufficiently modernized to silence
6193# them.  For now, I don't want them to drown out the other warnings.
6194# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6195# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6196# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6197
6198# Turn some warnings into errors, so we don't accidently get successful builds
6199# when there are problems that should be fixed.
6200
6201if test "x$SELECTIVE_WERROR" = "xyes" ; then
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215xorg_testset_save_CFLAGS="$CFLAGS"
6216
6217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6220$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6221if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6222  $as_echo_n "(cached) " >&6
6223else
6224  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225/* end confdefs.h.  */
6226int i;
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229  xorg_cv_cc_flag_unknown_warning_option=yes
6230else
6231  xorg_cv_cc_flag_unknown_warning_option=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6236$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6237	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6238	CFLAGS="$xorg_testset_save_CFLAGS"
6239fi
6240
6241if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6242	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6243		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6244	fi
6245	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6247$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6248if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252/* end confdefs.h.  */
6253int i;
6254_ACEOF
6255if ac_fn_c_try_compile "$LINENO"; then :
6256  xorg_cv_cc_flag_unused_command_line_argument=yes
6257else
6258  xorg_cv_cc_flag_unused_command_line_argument=no
6259fi
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6263$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6265	CFLAGS="$xorg_testset_save_CFLAGS"
6266fi
6267
6268found="no"
6269
6270	if test $found = "no" ; then
6271		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6273		fi
6274
6275		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6277		fi
6278
6279		CFLAGS="$CFLAGS -Werror=implicit"
6280
6281		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6282$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6283		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6284		if eval \${$cacheid+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288/* end confdefs.h.  */
6289int i;
6290int
6291main ()
6292{
6293
6294  ;
6295  return 0;
6296}
6297_ACEOF
6298if ac_fn_c_try_link "$LINENO"; then :
6299  eval $cacheid=yes
6300else
6301  eval $cacheid=no
6302fi
6303rm -f core conftest.err conftest.$ac_objext \
6304    conftest$ac_exeext conftest.$ac_ext
6305fi
6306
6307
6308		CFLAGS="$xorg_testset_save_CFLAGS"
6309
6310		eval supported=\$$cacheid
6311		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6312$as_echo "$supported" >&6; }
6313		if test "$supported" = "yes" ; then
6314			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6315			found="yes"
6316		fi
6317	fi
6318
6319	if test $found = "no" ; then
6320		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6321			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6322		fi
6323
6324		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6325			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6326		fi
6327
6328		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6329
6330		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6331$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6332		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6333		if eval \${$cacheid+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339int
6340main ()
6341{
6342
6343  ;
6344  return 0;
6345}
6346_ACEOF
6347if ac_fn_c_try_link "$LINENO"; then :
6348  eval $cacheid=yes
6349else
6350  eval $cacheid=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext \
6353    conftest$ac_exeext conftest.$ac_ext
6354fi
6355
6356
6357		CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359		eval supported=\$$cacheid
6360		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361$as_echo "$supported" >&6; }
6362		if test "$supported" = "yes" ; then
6363			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6364			found="yes"
6365		fi
6366	fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392/* end confdefs.h.  */
6393int i;
6394_ACEOF
6395if ac_fn_c_try_compile "$LINENO"; then :
6396  xorg_cv_cc_flag_unknown_warning_option=yes
6397else
6398  xorg_cv_cc_flag_unknown_warning_option=no
6399fi
6400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401fi
6402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6403$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6404	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6405	CFLAGS="$xorg_testset_save_CFLAGS"
6406fi
6407
6408if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6409	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6410		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6411	fi
6412	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6413	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6414$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6415if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6416  $as_echo_n "(cached) " >&6
6417else
6418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419/* end confdefs.h.  */
6420int i;
6421_ACEOF
6422if ac_fn_c_try_compile "$LINENO"; then :
6423  xorg_cv_cc_flag_unused_command_line_argument=yes
6424else
6425  xorg_cv_cc_flag_unused_command_line_argument=no
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6430$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6431	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6432	CFLAGS="$xorg_testset_save_CFLAGS"
6433fi
6434
6435found="no"
6436
6437	if test $found = "no" ; then
6438		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6439			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440		fi
6441
6442		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6443			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6444		fi
6445
6446		CFLAGS="$CFLAGS -Werror=nonnull"
6447
6448		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6449$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6450		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6451		if eval \${$cacheid+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457int
6458main ()
6459{
6460
6461  ;
6462  return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_link "$LINENO"; then :
6466  eval $cacheid=yes
6467else
6468  eval $cacheid=no
6469fi
6470rm -f core conftest.err conftest.$ac_objext \
6471    conftest$ac_exeext conftest.$ac_ext
6472fi
6473
6474
6475		CFLAGS="$xorg_testset_save_CFLAGS"
6476
6477		eval supported=\$$cacheid
6478		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6479$as_echo "$supported" >&6; }
6480		if test "$supported" = "yes" ; then
6481			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6482			found="yes"
6483		fi
6484	fi
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500xorg_testset_save_CFLAGS="$CFLAGS"
6501
6502if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6503	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6504	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6505$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6506if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6507  $as_echo_n "(cached) " >&6
6508else
6509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510/* end confdefs.h.  */
6511int i;
6512_ACEOF
6513if ac_fn_c_try_compile "$LINENO"; then :
6514  xorg_cv_cc_flag_unknown_warning_option=yes
6515else
6516  xorg_cv_cc_flag_unknown_warning_option=no
6517fi
6518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519fi
6520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6521$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6522	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6523	CFLAGS="$xorg_testset_save_CFLAGS"
6524fi
6525
6526if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6527	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6528		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6529	fi
6530	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6531	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6532$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6533if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537/* end confdefs.h.  */
6538int i;
6539_ACEOF
6540if ac_fn_c_try_compile "$LINENO"; then :
6541  xorg_cv_cc_flag_unused_command_line_argument=yes
6542else
6543  xorg_cv_cc_flag_unused_command_line_argument=no
6544fi
6545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6548$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6549	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6550	CFLAGS="$xorg_testset_save_CFLAGS"
6551fi
6552
6553found="no"
6554
6555	if test $found = "no" ; then
6556		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6558		fi
6559
6560		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6562		fi
6563
6564		CFLAGS="$CFLAGS -Werror=init-self"
6565
6566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6567$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6568		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6569		if eval \${$cacheid+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575int
6576main ()
6577{
6578
6579  ;
6580  return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584  eval $cacheid=yes
6585else
6586  eval $cacheid=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext \
6589    conftest$ac_exeext conftest.$ac_ext
6590fi
6591
6592
6593		CFLAGS="$xorg_testset_save_CFLAGS"
6594
6595		eval supported=\$$cacheid
6596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6597$as_echo "$supported" >&6; }
6598		if test "$supported" = "yes" ; then
6599			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6600			found="yes"
6601		fi
6602	fi
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618xorg_testset_save_CFLAGS="$CFLAGS"
6619
6620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6623$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6624if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h.  */
6629int i;
6630_ACEOF
6631if ac_fn_c_try_compile "$LINENO"; then :
6632  xorg_cv_cc_flag_unknown_warning_option=yes
6633else
6634  xorg_cv_cc_flag_unknown_warning_option=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6639$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6641	CFLAGS="$xorg_testset_save_CFLAGS"
6642fi
6643
6644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6647	fi
6648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6650$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6651if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h.  */
6656int i;
6657_ACEOF
6658if ac_fn_c_try_compile "$LINENO"; then :
6659  xorg_cv_cc_flag_unused_command_line_argument=yes
6660else
6661  xorg_cv_cc_flag_unused_command_line_argument=no
6662fi
6663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664fi
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6666$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6668	CFLAGS="$xorg_testset_save_CFLAGS"
6669fi
6670
6671found="no"
6672
6673	if test $found = "no" ; then
6674		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676		fi
6677
6678		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6680		fi
6681
6682		CFLAGS="$CFLAGS -Werror=main"
6683
6684		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6685$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6686		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
6687		if eval \${$cacheid+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693int
6694main ()
6695{
6696
6697  ;
6698  return 0;
6699}
6700_ACEOF
6701if ac_fn_c_try_link "$LINENO"; then :
6702  eval $cacheid=yes
6703else
6704  eval $cacheid=no
6705fi
6706rm -f core conftest.err conftest.$ac_objext \
6707    conftest$ac_exeext conftest.$ac_ext
6708fi
6709
6710
6711		CFLAGS="$xorg_testset_save_CFLAGS"
6712
6713		eval supported=\$$cacheid
6714		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6715$as_echo "$supported" >&6; }
6716		if test "$supported" = "yes" ; then
6717			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6718			found="yes"
6719		fi
6720	fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736xorg_testset_save_CFLAGS="$CFLAGS"
6737
6738if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6739	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6741$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6742if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h.  */
6747int i;
6748_ACEOF
6749if ac_fn_c_try_compile "$LINENO"; then :
6750  xorg_cv_cc_flag_unknown_warning_option=yes
6751else
6752  xorg_cv_cc_flag_unknown_warning_option=no
6753fi
6754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755fi
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6757$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6758	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6759	CFLAGS="$xorg_testset_save_CFLAGS"
6760fi
6761
6762if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6763	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6764		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6765	fi
6766	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6767	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6768$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6769if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6770  $as_echo_n "(cached) " >&6
6771else
6772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773/* end confdefs.h.  */
6774int i;
6775_ACEOF
6776if ac_fn_c_try_compile "$LINENO"; then :
6777  xorg_cv_cc_flag_unused_command_line_argument=yes
6778else
6779  xorg_cv_cc_flag_unused_command_line_argument=no
6780fi
6781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782fi
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6784$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6785	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6786	CFLAGS="$xorg_testset_save_CFLAGS"
6787fi
6788
6789found="no"
6790
6791	if test $found = "no" ; then
6792		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6793			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6794		fi
6795
6796		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6797			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6798		fi
6799
6800		CFLAGS="$CFLAGS -Werror=missing-braces"
6801
6802		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6803$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6804		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
6805		if eval \${$cacheid+:} false; then :
6806  $as_echo_n "(cached) " >&6
6807else
6808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809/* end confdefs.h.  */
6810int i;
6811int
6812main ()
6813{
6814
6815  ;
6816  return 0;
6817}
6818_ACEOF
6819if ac_fn_c_try_link "$LINENO"; then :
6820  eval $cacheid=yes
6821else
6822  eval $cacheid=no
6823fi
6824rm -f core conftest.err conftest.$ac_objext \
6825    conftest$ac_exeext conftest.$ac_ext
6826fi
6827
6828
6829		CFLAGS="$xorg_testset_save_CFLAGS"
6830
6831		eval supported=\$$cacheid
6832		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6833$as_echo "$supported" >&6; }
6834		if test "$supported" = "yes" ; then
6835			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6836			found="yes"
6837		fi
6838	fi
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854xorg_testset_save_CFLAGS="$CFLAGS"
6855
6856if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6857	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6859$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6860if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6861  $as_echo_n "(cached) " >&6
6862else
6863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h.  */
6865int i;
6866_ACEOF
6867if ac_fn_c_try_compile "$LINENO"; then :
6868  xorg_cv_cc_flag_unknown_warning_option=yes
6869else
6870  xorg_cv_cc_flag_unknown_warning_option=no
6871fi
6872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6875$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6876	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6877	CFLAGS="$xorg_testset_save_CFLAGS"
6878fi
6879
6880if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6881	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6882		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6883	fi
6884	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6885	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6886$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6887if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6888  $as_echo_n "(cached) " >&6
6889else
6890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892int i;
6893_ACEOF
6894if ac_fn_c_try_compile "$LINENO"; then :
6895  xorg_cv_cc_flag_unused_command_line_argument=yes
6896else
6897  xorg_cv_cc_flag_unused_command_line_argument=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6900fi
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6902$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6903	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6904	CFLAGS="$xorg_testset_save_CFLAGS"
6905fi
6906
6907found="no"
6908
6909	if test $found = "no" ; then
6910		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6911			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6912		fi
6913
6914		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6915			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6916		fi
6917
6918		CFLAGS="$CFLAGS -Werror=sequence-point"
6919
6920		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
6921$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
6922		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
6923		if eval \${$cacheid+:} false; then :
6924  $as_echo_n "(cached) " >&6
6925else
6926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927/* end confdefs.h.  */
6928int i;
6929int
6930main ()
6931{
6932
6933  ;
6934  return 0;
6935}
6936_ACEOF
6937if ac_fn_c_try_link "$LINENO"; then :
6938  eval $cacheid=yes
6939else
6940  eval $cacheid=no
6941fi
6942rm -f core conftest.err conftest.$ac_objext \
6943    conftest$ac_exeext conftest.$ac_ext
6944fi
6945
6946
6947		CFLAGS="$xorg_testset_save_CFLAGS"
6948
6949		eval supported=\$$cacheid
6950		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6951$as_echo "$supported" >&6; }
6952		if test "$supported" = "yes" ; then
6953			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
6954			found="yes"
6955		fi
6956	fi
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972xorg_testset_save_CFLAGS="$CFLAGS"
6973
6974if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6975	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6977$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6978if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983int i;
6984_ACEOF
6985if ac_fn_c_try_compile "$LINENO"; then :
6986  xorg_cv_cc_flag_unknown_warning_option=yes
6987else
6988  xorg_cv_cc_flag_unknown_warning_option=no
6989fi
6990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6993$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6995	CFLAGS="$xorg_testset_save_CFLAGS"
6996fi
6997
6998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7001	fi
7002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7003	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7004$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7005if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7006  $as_echo_n "(cached) " >&6
7007else
7008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h.  */
7010int i;
7011_ACEOF
7012if ac_fn_c_try_compile "$LINENO"; then :
7013  xorg_cv_cc_flag_unused_command_line_argument=yes
7014else
7015  xorg_cv_cc_flag_unused_command_line_argument=no
7016fi
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018fi
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7020$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7021	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7022	CFLAGS="$xorg_testset_save_CFLAGS"
7023fi
7024
7025found="no"
7026
7027	if test $found = "no" ; then
7028		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7029			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030		fi
7031
7032		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7033			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7034		fi
7035
7036		CFLAGS="$CFLAGS -Werror=return-type"
7037
7038		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7039$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7040		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7041		if eval \${$cacheid+:} false; then :
7042  $as_echo_n "(cached) " >&6
7043else
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046int i;
7047int
7048main ()
7049{
7050
7051  ;
7052  return 0;
7053}
7054_ACEOF
7055if ac_fn_c_try_link "$LINENO"; then :
7056  eval $cacheid=yes
7057else
7058  eval $cacheid=no
7059fi
7060rm -f core conftest.err conftest.$ac_objext \
7061    conftest$ac_exeext conftest.$ac_ext
7062fi
7063
7064
7065		CFLAGS="$xorg_testset_save_CFLAGS"
7066
7067		eval supported=\$$cacheid
7068		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7069$as_echo "$supported" >&6; }
7070		if test "$supported" = "yes" ; then
7071			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7072			found="yes"
7073		fi
7074	fi
7075
7076	if test $found = "no" ; then
7077		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7078			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079		fi
7080
7081		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7082			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7083		fi
7084
7085		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7086
7087		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7088$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7089		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7090		if eval \${$cacheid+:} false; then :
7091  $as_echo_n "(cached) " >&6
7092else
7093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094/* end confdefs.h.  */
7095int i;
7096int
7097main ()
7098{
7099
7100  ;
7101  return 0;
7102}
7103_ACEOF
7104if ac_fn_c_try_link "$LINENO"; then :
7105  eval $cacheid=yes
7106else
7107  eval $cacheid=no
7108fi
7109rm -f core conftest.err conftest.$ac_objext \
7110    conftest$ac_exeext conftest.$ac_ext
7111fi
7112
7113
7114		CFLAGS="$xorg_testset_save_CFLAGS"
7115
7116		eval supported=\$$cacheid
7117		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7118$as_echo "$supported" >&6; }
7119		if test "$supported" = "yes" ; then
7120			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7121			found="yes"
7122		fi
7123	fi
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139xorg_testset_save_CFLAGS="$CFLAGS"
7140
7141if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7142	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7144$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7145if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150int i;
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"; then :
7153  xorg_cv_cc_flag_unknown_warning_option=yes
7154else
7155  xorg_cv_cc_flag_unknown_warning_option=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7160$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7161	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7162	CFLAGS="$xorg_testset_save_CFLAGS"
7163fi
7164
7165if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7166	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7167		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7168	fi
7169	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7171$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7172if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177int i;
7178_ACEOF
7179if ac_fn_c_try_compile "$LINENO"; then :
7180  xorg_cv_cc_flag_unused_command_line_argument=yes
7181else
7182  xorg_cv_cc_flag_unused_command_line_argument=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185fi
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7187$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7188	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7189	CFLAGS="$xorg_testset_save_CFLAGS"
7190fi
7191
7192found="no"
7193
7194	if test $found = "no" ; then
7195		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7197		fi
7198
7199		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7201		fi
7202
7203		CFLAGS="$CFLAGS -Werror=trigraphs"
7204
7205		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7206$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7207		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7208		if eval \${$cacheid+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212/* end confdefs.h.  */
7213int i;
7214int
7215main ()
7216{
7217
7218  ;
7219  return 0;
7220}
7221_ACEOF
7222if ac_fn_c_try_link "$LINENO"; then :
7223  eval $cacheid=yes
7224else
7225  eval $cacheid=no
7226fi
7227rm -f core conftest.err conftest.$ac_objext \
7228    conftest$ac_exeext conftest.$ac_ext
7229fi
7230
7231
7232		CFLAGS="$xorg_testset_save_CFLAGS"
7233
7234		eval supported=\$$cacheid
7235		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7236$as_echo "$supported" >&6; }
7237		if test "$supported" = "yes" ; then
7238			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7239			found="yes"
7240		fi
7241	fi
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257xorg_testset_save_CFLAGS="$CFLAGS"
7258
7259if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7260	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7262$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7263if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h.  */
7268int i;
7269_ACEOF
7270if ac_fn_c_try_compile "$LINENO"; then :
7271  xorg_cv_cc_flag_unknown_warning_option=yes
7272else
7273  xorg_cv_cc_flag_unknown_warning_option=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276fi
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7278$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7279	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7280	CFLAGS="$xorg_testset_save_CFLAGS"
7281fi
7282
7283if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7284	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7285		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7286	fi
7287	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7288	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7289$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7290if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295int i;
7296_ACEOF
7297if ac_fn_c_try_compile "$LINENO"; then :
7298  xorg_cv_cc_flag_unused_command_line_argument=yes
7299else
7300  xorg_cv_cc_flag_unused_command_line_argument=no
7301fi
7302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7305$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7306	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7307	CFLAGS="$xorg_testset_save_CFLAGS"
7308fi
7309
7310found="no"
7311
7312	if test $found = "no" ; then
7313		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315		fi
7316
7317		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319		fi
7320
7321		CFLAGS="$CFLAGS -Werror=array-bounds"
7322
7323		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7324$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7325		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7326		if eval \${$cacheid+:} false; then :
7327  $as_echo_n "(cached) " >&6
7328else
7329  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330/* end confdefs.h.  */
7331int i;
7332int
7333main ()
7334{
7335
7336  ;
7337  return 0;
7338}
7339_ACEOF
7340if ac_fn_c_try_link "$LINENO"; then :
7341  eval $cacheid=yes
7342else
7343  eval $cacheid=no
7344fi
7345rm -f core conftest.err conftest.$ac_objext \
7346    conftest$ac_exeext conftest.$ac_ext
7347fi
7348
7349
7350		CFLAGS="$xorg_testset_save_CFLAGS"
7351
7352		eval supported=\$$cacheid
7353		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7354$as_echo "$supported" >&6; }
7355		if test "$supported" = "yes" ; then
7356			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7357			found="yes"
7358		fi
7359	fi
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375xorg_testset_save_CFLAGS="$CFLAGS"
7376
7377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7380$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7381if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386int i;
7387_ACEOF
7388if ac_fn_c_try_compile "$LINENO"; then :
7389  xorg_cv_cc_flag_unknown_warning_option=yes
7390else
7391  xorg_cv_cc_flag_unknown_warning_option=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394fi
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7396$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7398	CFLAGS="$xorg_testset_save_CFLAGS"
7399fi
7400
7401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404	fi
7405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7407$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7408if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414_ACEOF
7415if ac_fn_c_try_compile "$LINENO"; then :
7416  xorg_cv_cc_flag_unused_command_line_argument=yes
7417else
7418  xorg_cv_cc_flag_unused_command_line_argument=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421fi
7422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7423$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7425	CFLAGS="$xorg_testset_save_CFLAGS"
7426fi
7427
7428found="no"
7429
7430	if test $found = "no" ; then
7431		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7433		fi
7434
7435		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7437		fi
7438
7439		CFLAGS="$CFLAGS -Werror=write-strings"
7440
7441		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7442$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7443		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7444		if eval \${$cacheid+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450int
7451main ()
7452{
7453
7454  ;
7455  return 0;
7456}
7457_ACEOF
7458if ac_fn_c_try_link "$LINENO"; then :
7459  eval $cacheid=yes
7460else
7461  eval $cacheid=no
7462fi
7463rm -f core conftest.err conftest.$ac_objext \
7464    conftest$ac_exeext conftest.$ac_ext
7465fi
7466
7467
7468		CFLAGS="$xorg_testset_save_CFLAGS"
7469
7470		eval supported=\$$cacheid
7471		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472$as_echo "$supported" >&6; }
7473		if test "$supported" = "yes" ; then
7474			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7475			found="yes"
7476		fi
7477	fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493xorg_testset_save_CFLAGS="$CFLAGS"
7494
7495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7498$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7499if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h.  */
7504int i;
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"; then :
7507  xorg_cv_cc_flag_unknown_warning_option=yes
7508else
7509  xorg_cv_cc_flag_unknown_warning_option=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512fi
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7514$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7515	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7516	CFLAGS="$xorg_testset_save_CFLAGS"
7517fi
7518
7519if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7520	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7521		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7522	fi
7523	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7524	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7525$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7526if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531int i;
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"; then :
7534  xorg_cv_cc_flag_unused_command_line_argument=yes
7535else
7536  xorg_cv_cc_flag_unused_command_line_argument=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539fi
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7541$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7542	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7543	CFLAGS="$xorg_testset_save_CFLAGS"
7544fi
7545
7546found="no"
7547
7548	if test $found = "no" ; then
7549		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7550			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7551		fi
7552
7553		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7554			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7555		fi
7556
7557		CFLAGS="$CFLAGS -Werror=address"
7558
7559		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7560$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7561		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7562		if eval \${$cacheid+:} false; then :
7563  $as_echo_n "(cached) " >&6
7564else
7565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566/* end confdefs.h.  */
7567int i;
7568int
7569main ()
7570{
7571
7572  ;
7573  return 0;
7574}
7575_ACEOF
7576if ac_fn_c_try_link "$LINENO"; then :
7577  eval $cacheid=yes
7578else
7579  eval $cacheid=no
7580fi
7581rm -f core conftest.err conftest.$ac_objext \
7582    conftest$ac_exeext conftest.$ac_ext
7583fi
7584
7585
7586		CFLAGS="$xorg_testset_save_CFLAGS"
7587
7588		eval supported=\$$cacheid
7589		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7590$as_echo "$supported" >&6; }
7591		if test "$supported" = "yes" ; then
7592			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7593			found="yes"
7594		fi
7595	fi
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611xorg_testset_save_CFLAGS="$CFLAGS"
7612
7613if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7614	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7616$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7617if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h.  */
7622int i;
7623_ACEOF
7624if ac_fn_c_try_compile "$LINENO"; then :
7625  xorg_cv_cc_flag_unknown_warning_option=yes
7626else
7627  xorg_cv_cc_flag_unknown_warning_option=no
7628fi
7629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7632$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7634	CFLAGS="$xorg_testset_save_CFLAGS"
7635fi
7636
7637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640	fi
7641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7642	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7643$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7644if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649int i;
7650_ACEOF
7651if ac_fn_c_try_compile "$LINENO"; then :
7652  xorg_cv_cc_flag_unused_command_line_argument=yes
7653else
7654  xorg_cv_cc_flag_unused_command_line_argument=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7657fi
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7659$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7660	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7661	CFLAGS="$xorg_testset_save_CFLAGS"
7662fi
7663
7664found="no"
7665
7666	if test $found = "no" ; then
7667		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7668			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669		fi
7670
7671		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7672			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673		fi
7674
7675		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7676
7677		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7678$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7679		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
7680		if eval \${$cacheid+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684/* end confdefs.h.  */
7685int i;
7686int
7687main ()
7688{
7689
7690  ;
7691  return 0;
7692}
7693_ACEOF
7694if ac_fn_c_try_link "$LINENO"; then :
7695  eval $cacheid=yes
7696else
7697  eval $cacheid=no
7698fi
7699rm -f core conftest.err conftest.$ac_objext \
7700    conftest$ac_exeext conftest.$ac_ext
7701fi
7702
7703
7704		CFLAGS="$xorg_testset_save_CFLAGS"
7705
7706		eval supported=\$$cacheid
7707		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7708$as_echo "$supported" >&6; }
7709		if test "$supported" = "yes" ; then
7710			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7711			found="yes"
7712		fi
7713	fi
7714
7715	if test $found = "no" ; then
7716		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7717			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7718		fi
7719
7720		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7721			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7722		fi
7723
7724		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7725
7726		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7727$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7728		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
7729		if eval \${$cacheid+:} false; then :
7730  $as_echo_n "(cached) " >&6
7731else
7732  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733/* end confdefs.h.  */
7734int i;
7735int
7736main ()
7737{
7738
7739  ;
7740  return 0;
7741}
7742_ACEOF
7743if ac_fn_c_try_link "$LINENO"; then :
7744  eval $cacheid=yes
7745else
7746  eval $cacheid=no
7747fi
7748rm -f core conftest.err conftest.$ac_objext \
7749    conftest$ac_exeext conftest.$ac_ext
7750fi
7751
7752
7753		CFLAGS="$xorg_testset_save_CFLAGS"
7754
7755		eval supported=\$$cacheid
7756		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7757$as_echo "$supported" >&6; }
7758		if test "$supported" = "yes" ; then
7759			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7760			found="yes"
7761		fi
7762	fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778xorg_testset_save_CFLAGS="$CFLAGS"
7779
7780if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7781	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7783$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7784if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7785  $as_echo_n "(cached) " >&6
7786else
7787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788/* end confdefs.h.  */
7789int i;
7790_ACEOF
7791if ac_fn_c_try_compile "$LINENO"; then :
7792  xorg_cv_cc_flag_unknown_warning_option=yes
7793else
7794  xorg_cv_cc_flag_unknown_warning_option=no
7795fi
7796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7799$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7800	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7801	CFLAGS="$xorg_testset_save_CFLAGS"
7802fi
7803
7804if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7805	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7806		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7807	fi
7808	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7809	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7810$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7811if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816int i;
7817_ACEOF
7818if ac_fn_c_try_compile "$LINENO"; then :
7819  xorg_cv_cc_flag_unused_command_line_argument=yes
7820else
7821  xorg_cv_cc_flag_unused_command_line_argument=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi
7825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7826$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7827	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7828	CFLAGS="$xorg_testset_save_CFLAGS"
7829fi
7830
7831found="no"
7832
7833	if test $found = "no" ; then
7834		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7835			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7836		fi
7837
7838		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7839			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840		fi
7841
7842		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7843
7844		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7845$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7846		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
7847		if eval \${$cacheid+:} false; then :
7848  $as_echo_n "(cached) " >&6
7849else
7850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7851/* end confdefs.h.  */
7852int i;
7853int
7854main ()
7855{
7856
7857  ;
7858  return 0;
7859}
7860_ACEOF
7861if ac_fn_c_try_link "$LINENO"; then :
7862  eval $cacheid=yes
7863else
7864  eval $cacheid=no
7865fi
7866rm -f core conftest.err conftest.$ac_objext \
7867    conftest$ac_exeext conftest.$ac_ext
7868fi
7869
7870
7871		CFLAGS="$xorg_testset_save_CFLAGS"
7872
7873		eval supported=\$$cacheid
7874		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7875$as_echo "$supported" >&6; }
7876		if test "$supported" = "yes" ; then
7877			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7878			found="yes"
7879		fi
7880	fi
7881
7882 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7883else
7884{ $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
7885$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;}
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899xorg_testset_save_CFLAGS="$CFLAGS"
7900
7901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7902	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7903	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7906  $as_echo_n "(cached) " >&6
7907else
7908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909/* end confdefs.h.  */
7910int i;
7911_ACEOF
7912if ac_fn_c_try_compile "$LINENO"; then :
7913  xorg_cv_cc_flag_unknown_warning_option=yes
7914else
7915  xorg_cv_cc_flag_unknown_warning_option=no
7916fi
7917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7918fi
7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7922	CFLAGS="$xorg_testset_save_CFLAGS"
7923fi
7924
7925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7928	fi
7929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7930	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7933  $as_echo_n "(cached) " >&6
7934else
7935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936/* end confdefs.h.  */
7937int i;
7938_ACEOF
7939if ac_fn_c_try_compile "$LINENO"; then :
7940  xorg_cv_cc_flag_unused_command_line_argument=yes
7941else
7942  xorg_cv_cc_flag_unused_command_line_argument=no
7943fi
7944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7949	CFLAGS="$xorg_testset_save_CFLAGS"
7950fi
7951
7952found="no"
7953
7954	if test $found = "no" ; then
7955		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957		fi
7958
7959		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961		fi
7962
7963		CFLAGS="$CFLAGS -Wimplicit"
7964
7965		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
7966$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
7967		cacheid=xorg_cv_cc_flag__Wimplicit
7968		if eval \${$cacheid+:} false; then :
7969  $as_echo_n "(cached) " >&6
7970else
7971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h.  */
7973int i;
7974int
7975main ()
7976{
7977
7978  ;
7979  return 0;
7980}
7981_ACEOF
7982if ac_fn_c_try_link "$LINENO"; then :
7983  eval $cacheid=yes
7984else
7985  eval $cacheid=no
7986fi
7987rm -f core conftest.err conftest.$ac_objext \
7988    conftest$ac_exeext conftest.$ac_ext
7989fi
7990
7991
7992		CFLAGS="$xorg_testset_save_CFLAGS"
7993
7994		eval supported=\$$cacheid
7995		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7996$as_echo "$supported" >&6; }
7997		if test "$supported" = "yes" ; then
7998			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
7999			found="yes"
8000		fi
8001	fi
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017xorg_testset_save_CFLAGS="$CFLAGS"
8018
8019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8020	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h.  */
8028int i;
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"; then :
8031  xorg_cv_cc_flag_unknown_warning_option=yes
8032else
8033  xorg_cv_cc_flag_unknown_warning_option=no
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036fi
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8039	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8040	CFLAGS="$xorg_testset_save_CFLAGS"
8041fi
8042
8043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8044	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8045		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8046	fi
8047	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8048	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8051  $as_echo_n "(cached) " >&6
8052else
8053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054/* end confdefs.h.  */
8055int i;
8056_ACEOF
8057if ac_fn_c_try_compile "$LINENO"; then :
8058  xorg_cv_cc_flag_unused_command_line_argument=yes
8059else
8060  xorg_cv_cc_flag_unused_command_line_argument=no
8061fi
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063fi
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8066	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8067	CFLAGS="$xorg_testset_save_CFLAGS"
8068fi
8069
8070found="no"
8071
8072	if test $found = "no" ; then
8073		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8074			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075		fi
8076
8077		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8078			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8079		fi
8080
8081		CFLAGS="$CFLAGS -Wnonnull"
8082
8083		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8084$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8085		cacheid=xorg_cv_cc_flag__Wnonnull
8086		if eval \${$cacheid+:} false; then :
8087  $as_echo_n "(cached) " >&6
8088else
8089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090/* end confdefs.h.  */
8091int i;
8092int
8093main ()
8094{
8095
8096  ;
8097  return 0;
8098}
8099_ACEOF
8100if ac_fn_c_try_link "$LINENO"; then :
8101  eval $cacheid=yes
8102else
8103  eval $cacheid=no
8104fi
8105rm -f core conftest.err conftest.$ac_objext \
8106    conftest$ac_exeext conftest.$ac_ext
8107fi
8108
8109
8110		CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112		eval supported=\$$cacheid
8113		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114$as_echo "$supported" >&6; }
8115		if test "$supported" = "yes" ; then
8116			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8117			found="yes"
8118		fi
8119	fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8145/* end confdefs.h.  */
8146int i;
8147_ACEOF
8148if ac_fn_c_try_compile "$LINENO"; then :
8149  xorg_cv_cc_flag_unknown_warning_option=yes
8150else
8151  xorg_cv_cc_flag_unknown_warning_option=no
8152fi
8153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8157	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8158	CFLAGS="$xorg_testset_save_CFLAGS"
8159fi
8160
8161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8162	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8163		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8164	fi
8165	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8166	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176  xorg_cv_cc_flag_unused_command_line_argument=yes
8177else
8178  xorg_cv_cc_flag_unused_command_line_argument=no
8179fi
8180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181fi
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8184	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8185	CFLAGS="$xorg_testset_save_CFLAGS"
8186fi
8187
8188found="no"
8189
8190	if test $found = "no" ; then
8191		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8192			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8193		fi
8194
8195		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8196			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8197		fi
8198
8199		CFLAGS="$CFLAGS -Winit-self"
8200
8201		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8202$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8203		cacheid=xorg_cv_cc_flag__Winit_self
8204		if eval \${$cacheid+:} false; then :
8205  $as_echo_n "(cached) " >&6
8206else
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209int i;
8210int
8211main ()
8212{
8213
8214  ;
8215  return 0;
8216}
8217_ACEOF
8218if ac_fn_c_try_link "$LINENO"; then :
8219  eval $cacheid=yes
8220else
8221  eval $cacheid=no
8222fi
8223rm -f core conftest.err conftest.$ac_objext \
8224    conftest$ac_exeext conftest.$ac_ext
8225fi
8226
8227
8228		CFLAGS="$xorg_testset_save_CFLAGS"
8229
8230		eval supported=\$$cacheid
8231		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8232$as_echo "$supported" >&6; }
8233		if test "$supported" = "yes" ; then
8234			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8235			found="yes"
8236		fi
8237	fi
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253xorg_testset_save_CFLAGS="$CFLAGS"
8254
8255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8256	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8260  $as_echo_n "(cached) " >&6
8261else
8262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263/* end confdefs.h.  */
8264int i;
8265_ACEOF
8266if ac_fn_c_try_compile "$LINENO"; then :
8267  xorg_cv_cc_flag_unknown_warning_option=yes
8268else
8269  xorg_cv_cc_flag_unknown_warning_option=no
8270fi
8271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272fi
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8275	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8276	CFLAGS="$xorg_testset_save_CFLAGS"
8277fi
8278
8279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8280	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8281		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8282	fi
8283	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8284	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8287  $as_echo_n "(cached) " >&6
8288else
8289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8290/* end confdefs.h.  */
8291int i;
8292_ACEOF
8293if ac_fn_c_try_compile "$LINENO"; then :
8294  xorg_cv_cc_flag_unused_command_line_argument=yes
8295else
8296  xorg_cv_cc_flag_unused_command_line_argument=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8302	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8303	CFLAGS="$xorg_testset_save_CFLAGS"
8304fi
8305
8306found="no"
8307
8308	if test $found = "no" ; then
8309		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8310			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311		fi
8312
8313		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8314			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8315		fi
8316
8317		CFLAGS="$CFLAGS -Wmain"
8318
8319		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8320$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8321		cacheid=xorg_cv_cc_flag__Wmain
8322		if eval \${$cacheid+:} false; then :
8323  $as_echo_n "(cached) " >&6
8324else
8325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327int i;
8328int
8329main ()
8330{
8331
8332  ;
8333  return 0;
8334}
8335_ACEOF
8336if ac_fn_c_try_link "$LINENO"; then :
8337  eval $cacheid=yes
8338else
8339  eval $cacheid=no
8340fi
8341rm -f core conftest.err conftest.$ac_objext \
8342    conftest$ac_exeext conftest.$ac_ext
8343fi
8344
8345
8346		CFLAGS="$xorg_testset_save_CFLAGS"
8347
8348		eval supported=\$$cacheid
8349		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8350$as_echo "$supported" >&6; }
8351		if test "$supported" = "yes" ; then
8352			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8353			found="yes"
8354		fi
8355	fi
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371xorg_testset_save_CFLAGS="$CFLAGS"
8372
8373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8375	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8378  $as_echo_n "(cached) " >&6
8379else
8380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h.  */
8382int i;
8383_ACEOF
8384if ac_fn_c_try_compile "$LINENO"; then :
8385  xorg_cv_cc_flag_unknown_warning_option=yes
8386else
8387  xorg_cv_cc_flag_unknown_warning_option=no
8388fi
8389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8390fi
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8394	CFLAGS="$xorg_testset_save_CFLAGS"
8395fi
8396
8397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400	fi
8401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8402	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408/* end confdefs.h.  */
8409int i;
8410_ACEOF
8411if ac_fn_c_try_compile "$LINENO"; then :
8412  xorg_cv_cc_flag_unused_command_line_argument=yes
8413else
8414  xorg_cv_cc_flag_unused_command_line_argument=no
8415fi
8416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417fi
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8421	CFLAGS="$xorg_testset_save_CFLAGS"
8422fi
8423
8424found="no"
8425
8426	if test $found = "no" ; then
8427		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8429		fi
8430
8431		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8433		fi
8434
8435		CFLAGS="$CFLAGS -Wmissing-braces"
8436
8437		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8438$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8439		cacheid=xorg_cv_cc_flag__Wmissing_braces
8440		if eval \${$cacheid+:} false; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445int i;
8446int
8447main ()
8448{
8449
8450  ;
8451  return 0;
8452}
8453_ACEOF
8454if ac_fn_c_try_link "$LINENO"; then :
8455  eval $cacheid=yes
8456else
8457  eval $cacheid=no
8458fi
8459rm -f core conftest.err conftest.$ac_objext \
8460    conftest$ac_exeext conftest.$ac_ext
8461fi
8462
8463
8464		CFLAGS="$xorg_testset_save_CFLAGS"
8465
8466		eval supported=\$$cacheid
8467		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8468$as_echo "$supported" >&6; }
8469		if test "$supported" = "yes" ; then
8470			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8471			found="yes"
8472		fi
8473	fi
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489xorg_testset_save_CFLAGS="$CFLAGS"
8490
8491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8492	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8493	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8496  $as_echo_n "(cached) " >&6
8497else
8498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8499/* end confdefs.h.  */
8500int i;
8501_ACEOF
8502if ac_fn_c_try_compile "$LINENO"; then :
8503  xorg_cv_cc_flag_unknown_warning_option=yes
8504else
8505  xorg_cv_cc_flag_unknown_warning_option=no
8506fi
8507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8511	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8512	CFLAGS="$xorg_testset_save_CFLAGS"
8513fi
8514
8515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8516	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8517		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518	fi
8519	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8520	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8523  $as_echo_n "(cached) " >&6
8524else
8525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526/* end confdefs.h.  */
8527int i;
8528_ACEOF
8529if ac_fn_c_try_compile "$LINENO"; then :
8530  xorg_cv_cc_flag_unused_command_line_argument=yes
8531else
8532  xorg_cv_cc_flag_unused_command_line_argument=no
8533fi
8534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535fi
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8538	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8539	CFLAGS="$xorg_testset_save_CFLAGS"
8540fi
8541
8542found="no"
8543
8544	if test $found = "no" ; then
8545		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8546			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547		fi
8548
8549		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8550			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8551		fi
8552
8553		CFLAGS="$CFLAGS -Wsequence-point"
8554
8555		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8556$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8557		cacheid=xorg_cv_cc_flag__Wsequence_point
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 -Wsequence-point"
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_unknown_warning_option" = "xyes" ; then
8664			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665		fi
8666
8667		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8668			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669		fi
8670
8671		CFLAGS="$CFLAGS -Wreturn-type"
8672
8673		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8674$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8675		cacheid=xorg_cv_cc_flag__Wreturn_type
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 -Wreturn-type"
8707			found="yes"
8708		fi
8709	fi
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725xorg_testset_save_CFLAGS="$CFLAGS"
8726
8727if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8728	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8729	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8730$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8731if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736int i;
8737_ACEOF
8738if ac_fn_c_try_compile "$LINENO"; then :
8739  xorg_cv_cc_flag_unknown_warning_option=yes
8740else
8741  xorg_cv_cc_flag_unknown_warning_option=no
8742fi
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8744fi
8745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8746$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8747	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8748	CFLAGS="$xorg_testset_save_CFLAGS"
8749fi
8750
8751if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8752	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8753		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8754	fi
8755	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8756	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8757$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8758if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8759  $as_echo_n "(cached) " >&6
8760else
8761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762/* end confdefs.h.  */
8763int i;
8764_ACEOF
8765if ac_fn_c_try_compile "$LINENO"; then :
8766  xorg_cv_cc_flag_unused_command_line_argument=yes
8767else
8768  xorg_cv_cc_flag_unused_command_line_argument=no
8769fi
8770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771fi
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8773$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8774	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8775	CFLAGS="$xorg_testset_save_CFLAGS"
8776fi
8777
8778found="no"
8779
8780	if test $found = "no" ; then
8781		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8782			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783		fi
8784
8785		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8786			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8787		fi
8788
8789		CFLAGS="$CFLAGS -Wtrigraphs"
8790
8791		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8792$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8793		cacheid=xorg_cv_cc_flag__Wtrigraphs
8794		if eval \${$cacheid+:} false; then :
8795  $as_echo_n "(cached) " >&6
8796else
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799int i;
8800int
8801main ()
8802{
8803
8804  ;
8805  return 0;
8806}
8807_ACEOF
8808if ac_fn_c_try_link "$LINENO"; then :
8809  eval $cacheid=yes
8810else
8811  eval $cacheid=no
8812fi
8813rm -f core conftest.err conftest.$ac_objext \
8814    conftest$ac_exeext conftest.$ac_ext
8815fi
8816
8817
8818		CFLAGS="$xorg_testset_save_CFLAGS"
8819
8820		eval supported=\$$cacheid
8821		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8822$as_echo "$supported" >&6; }
8823		if test "$supported" = "yes" ; then
8824			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8825			found="yes"
8826		fi
8827	fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8850  $as_echo_n "(cached) " >&6
8851else
8852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853/* end confdefs.h.  */
8854int i;
8855_ACEOF
8856if ac_fn_c_try_compile "$LINENO"; then :
8857  xorg_cv_cc_flag_unknown_warning_option=yes
8858else
8859  xorg_cv_cc_flag_unknown_warning_option=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8862fi
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8864$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8866	CFLAGS="$xorg_testset_save_CFLAGS"
8867fi
8868
8869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8872	fi
8873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8874	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8875$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8876if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8877  $as_echo_n "(cached) " >&6
8878else
8879  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h.  */
8881int i;
8882_ACEOF
8883if ac_fn_c_try_compile "$LINENO"; then :
8884  xorg_cv_cc_flag_unused_command_line_argument=yes
8885else
8886  xorg_cv_cc_flag_unused_command_line_argument=no
8887fi
8888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8889fi
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8891$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8892	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8893	CFLAGS="$xorg_testset_save_CFLAGS"
8894fi
8895
8896found="no"
8897
8898	if test $found = "no" ; then
8899		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8900			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901		fi
8902
8903		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8904			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8905		fi
8906
8907		CFLAGS="$CFLAGS -Warray-bounds"
8908
8909		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8910$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8911		cacheid=xorg_cv_cc_flag__Warray_bounds
8912		if eval \${$cacheid+:} false; then :
8913  $as_echo_n "(cached) " >&6
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917int i;
8918int
8919main ()
8920{
8921
8922  ;
8923  return 0;
8924}
8925_ACEOF
8926if ac_fn_c_try_link "$LINENO"; then :
8927  eval $cacheid=yes
8928else
8929  eval $cacheid=no
8930fi
8931rm -f core conftest.err conftest.$ac_objext \
8932    conftest$ac_exeext conftest.$ac_ext
8933fi
8934
8935
8936		CFLAGS="$xorg_testset_save_CFLAGS"
8937
8938		eval supported=\$$cacheid
8939		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8940$as_echo "$supported" >&6; }
8941		if test "$supported" = "yes" ; then
8942			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8943			found="yes"
8944		fi
8945	fi
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961xorg_testset_save_CFLAGS="$CFLAGS"
8962
8963if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8964	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8965	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8966$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8967if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8968  $as_echo_n "(cached) " >&6
8969else
8970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971/* end confdefs.h.  */
8972int i;
8973_ACEOF
8974if ac_fn_c_try_compile "$LINENO"; then :
8975  xorg_cv_cc_flag_unknown_warning_option=yes
8976else
8977  xorg_cv_cc_flag_unknown_warning_option=no
8978fi
8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980fi
8981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984	CFLAGS="$xorg_testset_save_CFLAGS"
8985fi
8986
8987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990	fi
8991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8995  $as_echo_n "(cached) " >&6
8996else
8997  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998/* end confdefs.h.  */
8999int i;
9000_ACEOF
9001if ac_fn_c_try_compile "$LINENO"; then :
9002  xorg_cv_cc_flag_unused_command_line_argument=yes
9003else
9004  xorg_cv_cc_flag_unused_command_line_argument=no
9005fi
9006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9007fi
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9009$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9010	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9011	CFLAGS="$xorg_testset_save_CFLAGS"
9012fi
9013
9014found="no"
9015
9016	if test $found = "no" ; then
9017		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9018			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019		fi
9020
9021		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9022			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023		fi
9024
9025		CFLAGS="$CFLAGS -Wwrite-strings"
9026
9027		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9028$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9029		cacheid=xorg_cv_cc_flag__Wwrite_strings
9030		if eval \${$cacheid+:} false; then :
9031  $as_echo_n "(cached) " >&6
9032else
9033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034/* end confdefs.h.  */
9035int i;
9036int
9037main ()
9038{
9039
9040  ;
9041  return 0;
9042}
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045  eval $cacheid=yes
9046else
9047  eval $cacheid=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050    conftest$ac_exeext conftest.$ac_ext
9051fi
9052
9053
9054		CFLAGS="$xorg_testset_save_CFLAGS"
9055
9056		eval supported=\$$cacheid
9057		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9058$as_echo "$supported" >&6; }
9059		if test "$supported" = "yes" ; then
9060			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9061			found="yes"
9062		fi
9063	fi
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079xorg_testset_save_CFLAGS="$CFLAGS"
9080
9081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9083	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9084$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9085if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9086  $as_echo_n "(cached) " >&6
9087else
9088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089/* end confdefs.h.  */
9090int i;
9091_ACEOF
9092if ac_fn_c_try_compile "$LINENO"; then :
9093  xorg_cv_cc_flag_unknown_warning_option=yes
9094else
9095  xorg_cv_cc_flag_unknown_warning_option=no
9096fi
9097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9098fi
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9100$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9101	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9102	CFLAGS="$xorg_testset_save_CFLAGS"
9103fi
9104
9105if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9106	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108	fi
9109	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9111$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9112if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9113  $as_echo_n "(cached) " >&6
9114else
9115  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116/* end confdefs.h.  */
9117int i;
9118_ACEOF
9119if ac_fn_c_try_compile "$LINENO"; then :
9120  xorg_cv_cc_flag_unused_command_line_argument=yes
9121else
9122  xorg_cv_cc_flag_unused_command_line_argument=no
9123fi
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125fi
9126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9127$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9129	CFLAGS="$xorg_testset_save_CFLAGS"
9130fi
9131
9132found="no"
9133
9134	if test $found = "no" ; then
9135		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137		fi
9138
9139		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141		fi
9142
9143		CFLAGS="$CFLAGS -Waddress"
9144
9145		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9146$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9147		cacheid=xorg_cv_cc_flag__Waddress
9148		if eval \${$cacheid+:} false; then :
9149  $as_echo_n "(cached) " >&6
9150else
9151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9152/* end confdefs.h.  */
9153int i;
9154int
9155main ()
9156{
9157
9158  ;
9159  return 0;
9160}
9161_ACEOF
9162if ac_fn_c_try_link "$LINENO"; then :
9163  eval $cacheid=yes
9164else
9165  eval $cacheid=no
9166fi
9167rm -f core conftest.err conftest.$ac_objext \
9168    conftest$ac_exeext conftest.$ac_ext
9169fi
9170
9171
9172		CFLAGS="$xorg_testset_save_CFLAGS"
9173
9174		eval supported=\$$cacheid
9175		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9176$as_echo "$supported" >&6; }
9177		if test "$supported" = "yes" ; then
9178			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9179			found="yes"
9180		fi
9181	fi
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197xorg_testset_save_CFLAGS="$CFLAGS"
9198
9199if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9200	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9201	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9202$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9203if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9204  $as_echo_n "(cached) " >&6
9205else
9206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207/* end confdefs.h.  */
9208int i;
9209_ACEOF
9210if ac_fn_c_try_compile "$LINENO"; then :
9211  xorg_cv_cc_flag_unknown_warning_option=yes
9212else
9213  xorg_cv_cc_flag_unknown_warning_option=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9218$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9226	fi
9227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9228	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9229$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9230if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9231  $as_echo_n "(cached) " >&6
9232else
9233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234/* end confdefs.h.  */
9235int i;
9236_ACEOF
9237if ac_fn_c_try_compile "$LINENO"; then :
9238  xorg_cv_cc_flag_unused_command_line_argument=yes
9239else
9240  xorg_cv_cc_flag_unused_command_line_argument=no
9241fi
9242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9243fi
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9245$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9247	CFLAGS="$xorg_testset_save_CFLAGS"
9248fi
9249
9250found="no"
9251
9252	if test $found = "no" ; then
9253		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255		fi
9256
9257		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9259		fi
9260
9261		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9262
9263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9264$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9265		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9266		if eval \${$cacheid+:} false; then :
9267  $as_echo_n "(cached) " >&6
9268else
9269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h.  */
9271int i;
9272int
9273main ()
9274{
9275
9276  ;
9277  return 0;
9278}
9279_ACEOF
9280if ac_fn_c_try_link "$LINENO"; then :
9281  eval $cacheid=yes
9282else
9283  eval $cacheid=no
9284fi
9285rm -f core conftest.err conftest.$ac_objext \
9286    conftest$ac_exeext conftest.$ac_ext
9287fi
9288
9289
9290		CFLAGS="$xorg_testset_save_CFLAGS"
9291
9292		eval supported=\$$cacheid
9293		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9294$as_echo "$supported" >&6; }
9295		if test "$supported" = "yes" ; then
9296			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9297			found="yes"
9298		fi
9299	fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315xorg_testset_save_CFLAGS="$CFLAGS"
9316
9317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9319	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9320$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9321if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325/* end confdefs.h.  */
9326int i;
9327_ACEOF
9328if ac_fn_c_try_compile "$LINENO"; then :
9329  xorg_cv_cc_flag_unknown_warning_option=yes
9330else
9331  xorg_cv_cc_flag_unknown_warning_option=no
9332fi
9333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9334fi
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9336$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9337	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9338	CFLAGS="$xorg_testset_save_CFLAGS"
9339fi
9340
9341if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9342	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9343		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9344	fi
9345	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9346	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9347$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9348if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9349  $as_echo_n "(cached) " >&6
9350else
9351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352/* end confdefs.h.  */
9353int i;
9354_ACEOF
9355if ac_fn_c_try_compile "$LINENO"; then :
9356  xorg_cv_cc_flag_unused_command_line_argument=yes
9357else
9358  xorg_cv_cc_flag_unused_command_line_argument=no
9359fi
9360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9363$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9365	CFLAGS="$xorg_testset_save_CFLAGS"
9366fi
9367
9368found="no"
9369
9370	if test $found = "no" ; then
9371		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373		fi
9374
9375		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9377		fi
9378
9379		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9380
9381		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9382$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9383		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9384		if eval \${$cacheid+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388/* end confdefs.h.  */
9389int i;
9390int
9391main ()
9392{
9393
9394  ;
9395  return 0;
9396}
9397_ACEOF
9398if ac_fn_c_try_link "$LINENO"; then :
9399  eval $cacheid=yes
9400else
9401  eval $cacheid=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext \
9404    conftest$ac_exeext conftest.$ac_ext
9405fi
9406
9407
9408		CFLAGS="$xorg_testset_save_CFLAGS"
9409
9410		eval supported=\$$cacheid
9411		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9412$as_echo "$supported" >&6; }
9413		if test "$supported" = "yes" ; then
9414			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9415			found="yes"
9416		fi
9417	fi
9418
9419
9420fi
9421
9422
9423
9424
9425
9426
9427
9428		CWARNFLAGS="$BASE_CFLAGS"
9429		if  test "x$GCC" = xyes ; then
9430		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9431		fi
9432
9433
9434
9435
9436
9437
9438
9439
9440# Check whether --enable-strict-compilation was given.
9441if test "${enable_strict_compilation+set}" = set; then :
9442  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9443else
9444  STRICT_COMPILE=no
9445fi
9446
9447
9448
9449
9450
9451
9452STRICT_CFLAGS=""
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478_ACEOF
9479if ac_fn_c_try_compile "$LINENO"; then :
9480  xorg_cv_cc_flag_unknown_warning_option=yes
9481else
9482  xorg_cv_cc_flag_unknown_warning_option=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9495	fi
9496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9500  $as_echo_n "(cached) " >&6
9501else
9502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504int i;
9505_ACEOF
9506if ac_fn_c_try_compile "$LINENO"; then :
9507  xorg_cv_cc_flag_unused_command_line_argument=yes
9508else
9509  xorg_cv_cc_flag_unused_command_line_argument=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512fi
9513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9516	CFLAGS="$xorg_testset_save_CFLAGS"
9517fi
9518
9519found="no"
9520
9521	if test $found = "no" ; then
9522		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524		fi
9525
9526		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528		fi
9529
9530		CFLAGS="$CFLAGS -pedantic"
9531
9532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9533$as_echo_n "checking if $CC supports -pedantic... " >&6; }
9534		cacheid=xorg_cv_cc_flag__pedantic
9535		if eval \${$cacheid+:} false; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539/* end confdefs.h.  */
9540int i;
9541int
9542main ()
9543{
9544
9545  ;
9546  return 0;
9547}
9548_ACEOF
9549if ac_fn_c_try_link "$LINENO"; then :
9550  eval $cacheid=yes
9551else
9552  eval $cacheid=no
9553fi
9554rm -f core conftest.err conftest.$ac_objext \
9555    conftest$ac_exeext conftest.$ac_ext
9556fi
9557
9558
9559		CFLAGS="$xorg_testset_save_CFLAGS"
9560
9561		eval supported=\$$cacheid
9562		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9563$as_echo "$supported" >&6; }
9564		if test "$supported" = "yes" ; then
9565			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9566			found="yes"
9567		fi
9568	fi
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584xorg_testset_save_CFLAGS="$CFLAGS"
9585
9586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"; then :
9598  xorg_cv_cc_flag_unknown_warning_option=yes
9599else
9600  xorg_cv_cc_flag_unknown_warning_option=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9607	CFLAGS="$xorg_testset_save_CFLAGS"
9608fi
9609
9610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9613	fi
9614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9618  $as_echo_n "(cached) " >&6
9619else
9620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621/* end confdefs.h.  */
9622int i;
9623_ACEOF
9624if ac_fn_c_try_compile "$LINENO"; then :
9625  xorg_cv_cc_flag_unused_command_line_argument=yes
9626else
9627  xorg_cv_cc_flag_unused_command_line_argument=no
9628fi
9629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9630fi
9631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9634	CFLAGS="$xorg_testset_save_CFLAGS"
9635fi
9636
9637found="no"
9638
9639	if test $found = "no" ; then
9640		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9642		fi
9643
9644		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9646		fi
9647
9648		CFLAGS="$CFLAGS -Werror"
9649
9650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9651$as_echo_n "checking if $CC supports -Werror... " >&6; }
9652		cacheid=xorg_cv_cc_flag__Werror
9653		if eval \${$cacheid+:} false; then :
9654  $as_echo_n "(cached) " >&6
9655else
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658int i;
9659int
9660main ()
9661{
9662
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_link "$LINENO"; then :
9668  eval $cacheid=yes
9669else
9670  eval $cacheid=no
9671fi
9672rm -f core conftest.err conftest.$ac_objext \
9673    conftest$ac_exeext conftest.$ac_ext
9674fi
9675
9676
9677		CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679		eval supported=\$$cacheid
9680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681$as_echo "$supported" >&6; }
9682		if test "$supported" = "yes" ; then
9683			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9684			found="yes"
9685		fi
9686	fi
9687
9688	if test $found = "no" ; then
9689		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9690			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9691		fi
9692
9693		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9694			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695		fi
9696
9697		CFLAGS="$CFLAGS -errwarn"
9698
9699		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9700$as_echo_n "checking if $CC supports -errwarn... " >&6; }
9701		cacheid=xorg_cv_cc_flag__errwarn
9702		if eval \${$cacheid+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706/* end confdefs.h.  */
9707int i;
9708int
9709main ()
9710{
9711
9712  ;
9713  return 0;
9714}
9715_ACEOF
9716if ac_fn_c_try_link "$LINENO"; then :
9717  eval $cacheid=yes
9718else
9719  eval $cacheid=no
9720fi
9721rm -f core conftest.err conftest.$ac_objext \
9722    conftest$ac_exeext conftest.$ac_ext
9723fi
9724
9725
9726		CFLAGS="$xorg_testset_save_CFLAGS"
9727
9728		eval supported=\$$cacheid
9729		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9730$as_echo "$supported" >&6; }
9731		if test "$supported" = "yes" ; then
9732			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9733			found="yes"
9734		fi
9735	fi
9736
9737
9738
9739# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9740# activate it with -Werror, so we add it here explicitly.
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754xorg_testset_save_CFLAGS="$CFLAGS"
9755
9756if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9757	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9759$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9760if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766_ACEOF
9767if ac_fn_c_try_compile "$LINENO"; then :
9768  xorg_cv_cc_flag_unknown_warning_option=yes
9769else
9770  xorg_cv_cc_flag_unknown_warning_option=no
9771fi
9772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9775$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9776	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9777	CFLAGS="$xorg_testset_save_CFLAGS"
9778fi
9779
9780if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9781	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9782		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9783	fi
9784	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9786$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9787if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9788  $as_echo_n "(cached) " >&6
9789else
9790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791/* end confdefs.h.  */
9792int i;
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"; then :
9795  xorg_cv_cc_flag_unused_command_line_argument=yes
9796else
9797  xorg_cv_cc_flag_unused_command_line_argument=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9802$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9803	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9804	CFLAGS="$xorg_testset_save_CFLAGS"
9805fi
9806
9807found="no"
9808
9809	if test $found = "no" ; then
9810		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9811			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9812		fi
9813
9814		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9815			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9816		fi
9817
9818		CFLAGS="$CFLAGS -Werror=attributes"
9819
9820		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9821$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9822		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
9823		if eval \${$cacheid+:} false; then :
9824  $as_echo_n "(cached) " >&6
9825else
9826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9827/* end confdefs.h.  */
9828int i;
9829int
9830main ()
9831{
9832
9833  ;
9834  return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838  eval $cacheid=yes
9839else
9840  eval $cacheid=no
9841fi
9842rm -f core conftest.err conftest.$ac_objext \
9843    conftest$ac_exeext conftest.$ac_ext
9844fi
9845
9846
9847		CFLAGS="$xorg_testset_save_CFLAGS"
9848
9849		eval supported=\$$cacheid
9850		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9851$as_echo "$supported" >&6; }
9852		if test "$supported" = "yes" ; then
9853			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9854			found="yes"
9855		fi
9856	fi
9857
9858
9859
9860if test "x$STRICT_COMPILE" = "xyes"; then
9861    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9862    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9863fi
9864
9865
9866
9867
9868
9869
9870cat >>confdefs.h <<_ACEOF
9871#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9872_ACEOF
9873
9874	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9875	if test "x$PVM" = "x"; then
9876		PVM="0"
9877	fi
9878
9879cat >>confdefs.h <<_ACEOF
9880#define PACKAGE_VERSION_MINOR $PVM
9881_ACEOF
9882
9883	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9884	if test "x$PVP" = "x"; then
9885		PVP="0"
9886	fi
9887
9888cat >>confdefs.h <<_ACEOF
9889#define PACKAGE_VERSION_PATCHLEVEL $PVP
9890_ACEOF
9891
9892
9893
9894CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9895mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9896|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9897echo 'git directory not found: installing possibly empty changelog.' >&2)"
9898
9899
9900
9901
9902macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9903INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9904mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9905|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9906echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9907
9908
9909
9910
9911
9912
9913if test x$APP_MAN_SUFFIX = x    ; then
9914    APP_MAN_SUFFIX=1
9915fi
9916if test x$APP_MAN_DIR = x    ; then
9917    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9918fi
9919
9920if test x$LIB_MAN_SUFFIX = x    ; then
9921    LIB_MAN_SUFFIX=3
9922fi
9923if test x$LIB_MAN_DIR = x    ; then
9924    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9925fi
9926
9927if test x$FILE_MAN_SUFFIX = x    ; then
9928    case $host_os in
9929	solaris*)	FILE_MAN_SUFFIX=4  ;;
9930	*)		FILE_MAN_SUFFIX=5  ;;
9931    esac
9932fi
9933if test x$FILE_MAN_DIR = x    ; then
9934    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9935fi
9936
9937if test x$MISC_MAN_SUFFIX = x    ; then
9938    case $host_os in
9939	solaris*)	MISC_MAN_SUFFIX=5  ;;
9940	*)		MISC_MAN_SUFFIX=7  ;;
9941    esac
9942fi
9943if test x$MISC_MAN_DIR = x    ; then
9944    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9945fi
9946
9947if test x$DRIVER_MAN_SUFFIX = x    ; then
9948    case $host_os in
9949	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
9950	*)		DRIVER_MAN_SUFFIX=4  ;;
9951    esac
9952fi
9953if test x$DRIVER_MAN_DIR = x    ; then
9954    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9955fi
9956
9957if test x$ADMIN_MAN_SUFFIX = x    ; then
9958    case $host_os in
9959	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
9960	*)		ADMIN_MAN_SUFFIX=8  ;;
9961    esac
9962fi
9963if test x$ADMIN_MAN_DIR = x    ; then
9964    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9965fi
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981XORG_MAN_PAGE="X Version 11"
9982
9983MAN_SUBSTS="\
9984	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9985	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9986	-e 's|__xservername__|Xorg|g' \
9987	-e 's|__xconfigfile__|xorg.conf|g' \
9988	-e 's|__projectroot__|\$(prefix)|g' \
9989	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
9990	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9991	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9992	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9993	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9994	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9995	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9996
9997
9998
9999# Check whether --enable-silent-rules was given.
10000if test "${enable_silent_rules+set}" = set; then :
10001  enableval=$enable_silent_rules;
10002fi
10003
10004case $enable_silent_rules in
10005yes) AM_DEFAULT_VERBOSITY=0;;
10006no)  AM_DEFAULT_VERBOSITY=1;;
10007*)   AM_DEFAULT_VERBOSITY=0;;
10008esac
10009am_make=${MAKE-make}
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10011$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10012if ${am_cv_make_support_nested_variables+:} false; then :
10013  $as_echo_n "(cached) " >&6
10014else
10015  if $as_echo 'TRUE=$(BAR$(V))
10016BAR0=false
10017BAR1=true
10018V=1
10019am__doit:
10020	@$(TRUE)
10021.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10022  am_cv_make_support_nested_variables=yes
10023else
10024  am_cv_make_support_nested_variables=no
10025fi
10026fi
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10028$as_echo "$am_cv_make_support_nested_variables" >&6; }
10029if test $am_cv_make_support_nested_variables = yes; then
10030    AM_V='$(V)'
10031  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10032else
10033  AM_V=$AM_DEFAULT_VERBOSITY
10034  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10035fi
10036AM_BACKSLASH='\'
10037
10038
10039
10040ac_aux_dir=
10041for ac_dir in . "$srcdir"/.; do
10042  if test -f "$ac_dir/install-sh"; then
10043    ac_aux_dir=$ac_dir
10044    ac_install_sh="$ac_aux_dir/install-sh -c"
10045    break
10046  elif test -f "$ac_dir/install.sh"; then
10047    ac_aux_dir=$ac_dir
10048    ac_install_sh="$ac_aux_dir/install.sh -c"
10049    break
10050  elif test -f "$ac_dir/shtool"; then
10051    ac_aux_dir=$ac_dir
10052    ac_install_sh="$ac_aux_dir/shtool install -c"
10053    break
10054  fi
10055done
10056if test -z "$ac_aux_dir"; then
10057  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
10058fi
10059
10060# These three variables are undocumented and unsupported,
10061# and are intended to be withdrawn in a future Autoconf release.
10062# They can cause serious problems if a builder's source tree is in a directory
10063# whose full name contains unusual characters.
10064ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
10065ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
10066ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
10067
10068
10069
10070# Initialize Automake
10071am__api_version='1.11'
10072
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10074$as_echo_n "checking whether build environment is sane... " >&6; }
10075# Just in case
10076sleep 1
10077echo timestamp > conftest.file
10078# Reject unsafe characters in $srcdir or the absolute working directory
10079# name.  Accept space and tab only in the latter.
10080am_lf='
10081'
10082case `pwd` in
10083  *[\\\"\#\$\&\'\`$am_lf]*)
10084    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10085esac
10086case $srcdir in
10087  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
10088    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
10089esac
10090
10091# Do `set' in a subshell so we don't clobber the current shell's
10092# arguments.  Must try -L first in case configure is actually a
10093# symlink; some systems play weird games with the mod time of symlinks
10094# (eg FreeBSD returns the mod time of the symlink's containing
10095# directory).
10096if (
10097   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10098   if test "$*" = "X"; then
10099      # -L didn't work.
10100      set X `ls -t "$srcdir/configure" conftest.file`
10101   fi
10102   rm -f conftest.file
10103   if test "$*" != "X $srcdir/configure conftest.file" \
10104      && test "$*" != "X conftest.file $srcdir/configure"; then
10105
10106      # If neither matched, then we have a broken ls.  This can happen
10107      # if, for instance, CONFIG_SHELL is bash and it inherits a
10108      # broken ls alias from the environment.  This has actually
10109      # happened.  Such a system could not be considered "sane".
10110      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10111alias in your environment" "$LINENO" 5
10112   fi
10113
10114   test "$2" = conftest.file
10115   )
10116then
10117   # Ok.
10118   :
10119else
10120   as_fn_error $? "newly created file is older than distributed files!
10121Check your system clock" "$LINENO" 5
10122fi
10123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10124$as_echo "yes" >&6; }
10125test "$program_prefix" != NONE &&
10126  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10127# Use a double $ so make ignores it.
10128test "$program_suffix" != NONE &&
10129  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10130# Double any \ or $.
10131# By default was `s,x,x', remove it if useless.
10132ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10133program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10134
10135# expand $ac_aux_dir to an absolute path
10136am_aux_dir=`cd $ac_aux_dir && pwd`
10137
10138if test x"${MISSING+set}" != xset; then
10139  case $am_aux_dir in
10140  *\ * | *\	*)
10141    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10142  *)
10143    MISSING="\${SHELL} $am_aux_dir/missing" ;;
10144  esac
10145fi
10146# Use eval to expand $SHELL
10147if eval "$MISSING --run true"; then
10148  am_missing_run="$MISSING --run "
10149else
10150  am_missing_run=
10151  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
10152$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10153fi
10154
10155if test x"${install_sh}" != xset; then
10156  case $am_aux_dir in
10157  *\ * | *\	*)
10158    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10159  *)
10160    install_sh="\${SHELL} $am_aux_dir/install-sh"
10161  esac
10162fi
10163
10164# Installed binaries are usually stripped using `strip' when the user
10165# run `make install-strip'.  However `strip' might not be the right
10166# tool to use in cross-compilation environments, therefore Automake
10167# will honor the `STRIP' environment variable to overrule this program.
10168if test "$cross_compiling" != no; then
10169  if test -n "$ac_tool_prefix"; then
10170  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10171set dummy ${ac_tool_prefix}strip; ac_word=$2
10172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173$as_echo_n "checking for $ac_word... " >&6; }
10174if ${ac_cv_prog_STRIP+:} false; then :
10175  $as_echo_n "(cached) " >&6
10176else
10177  if test -n "$STRIP"; then
10178  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10179else
10180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181for as_dir in $PATH
10182do
10183  IFS=$as_save_IFS
10184  test -z "$as_dir" && as_dir=.
10185    for ac_exec_ext in '' $ac_executable_extensions; do
10186  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10188    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189    break 2
10190  fi
10191done
10192  done
10193IFS=$as_save_IFS
10194
10195fi
10196fi
10197STRIP=$ac_cv_prog_STRIP
10198if test -n "$STRIP"; then
10199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10200$as_echo "$STRIP" >&6; }
10201else
10202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203$as_echo "no" >&6; }
10204fi
10205
10206
10207fi
10208if test -z "$ac_cv_prog_STRIP"; then
10209  ac_ct_STRIP=$STRIP
10210  # Extract the first word of "strip", so it can be a program name with args.
10211set dummy strip; ac_word=$2
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213$as_echo_n "checking for $ac_word... " >&6; }
10214if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10215  $as_echo_n "(cached) " >&6
10216else
10217  if test -n "$ac_ct_STRIP"; then
10218  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10219else
10220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221for as_dir in $PATH
10222do
10223  IFS=$as_save_IFS
10224  test -z "$as_dir" && as_dir=.
10225    for ac_exec_ext in '' $ac_executable_extensions; do
10226  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227    ac_cv_prog_ac_ct_STRIP="strip"
10228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229    break 2
10230  fi
10231done
10232  done
10233IFS=$as_save_IFS
10234
10235fi
10236fi
10237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10238if test -n "$ac_ct_STRIP"; then
10239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10240$as_echo "$ac_ct_STRIP" >&6; }
10241else
10242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
10244fi
10245
10246  if test "x$ac_ct_STRIP" = x; then
10247    STRIP=":"
10248  else
10249    case $cross_compiling:$ac_tool_warned in
10250yes:)
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253ac_tool_warned=yes ;;
10254esac
10255    STRIP=$ac_ct_STRIP
10256  fi
10257else
10258  STRIP="$ac_cv_prog_STRIP"
10259fi
10260
10261fi
10262INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10263
10264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10265$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10266if test -z "$MKDIR_P"; then
10267  if ${ac_cv_path_mkdir+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10272do
10273  IFS=$as_save_IFS
10274  test -z "$as_dir" && as_dir=.
10275    for ac_prog in mkdir gmkdir; do
10276	 for ac_exec_ext in '' $ac_executable_extensions; do
10277	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10278	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10279	     'mkdir (GNU coreutils) '* | \
10280	     'mkdir (coreutils) '* | \
10281	     'mkdir (fileutils) '4.1*)
10282	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10283	       break 3;;
10284	   esac
10285	 done
10286       done
10287  done
10288IFS=$as_save_IFS
10289
10290fi
10291
10292  test -d ./--version && rmdir ./--version
10293  if test "${ac_cv_path_mkdir+set}" = set; then
10294    MKDIR_P="$ac_cv_path_mkdir -p"
10295  else
10296    # As a last resort, use the slow shell script.  Don't cache a
10297    # value for MKDIR_P within a source directory, because that will
10298    # break other packages using the cache if that directory is
10299    # removed, or if the value is a relative name.
10300    MKDIR_P="$ac_install_sh -d"
10301  fi
10302fi
10303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10304$as_echo "$MKDIR_P" >&6; }
10305
10306mkdir_p="$MKDIR_P"
10307case $mkdir_p in
10308  [\\/$]* | ?:[\\/]*) ;;
10309  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
10310esac
10311
10312for ac_prog in gawk mawk nawk awk
10313do
10314  # Extract the first word of "$ac_prog", so it can be a program name with args.
10315set dummy $ac_prog; ac_word=$2
10316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10317$as_echo_n "checking for $ac_word... " >&6; }
10318if ${ac_cv_prog_AWK+:} false; then :
10319  $as_echo_n "(cached) " >&6
10320else
10321  if test -n "$AWK"; then
10322  ac_cv_prog_AWK="$AWK" # Let the user override the test.
10323else
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327  IFS=$as_save_IFS
10328  test -z "$as_dir" && as_dir=.
10329    for ac_exec_ext in '' $ac_executable_extensions; do
10330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10331    ac_cv_prog_AWK="$ac_prog"
10332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333    break 2
10334  fi
10335done
10336  done
10337IFS=$as_save_IFS
10338
10339fi
10340fi
10341AWK=$ac_cv_prog_AWK
10342if test -n "$AWK"; then
10343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
10344$as_echo "$AWK" >&6; }
10345else
10346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10347$as_echo "no" >&6; }
10348fi
10349
10350
10351  test -n "$AWK" && break
10352done
10353
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10355$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10356set x ${MAKE-make}
10357ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10358if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
10359  $as_echo_n "(cached) " >&6
10360else
10361  cat >conftest.make <<\_ACEOF
10362SHELL = /bin/sh
10363all:
10364	@echo '@@@%%%=$(MAKE)=@@@%%%'
10365_ACEOF
10366# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10367case `${MAKE-make} -f conftest.make 2>/dev/null` in
10368  *@@@%%%=?*=@@@%%%*)
10369    eval ac_cv_prog_make_${ac_make}_set=yes;;
10370  *)
10371    eval ac_cv_prog_make_${ac_make}_set=no;;
10372esac
10373rm -f conftest.make
10374fi
10375if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10377$as_echo "yes" >&6; }
10378  SET_MAKE=
10379else
10380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
10382  SET_MAKE="MAKE=${MAKE-make}"
10383fi
10384
10385rm -rf .tst 2>/dev/null
10386mkdir .tst 2>/dev/null
10387if test -d .tst; then
10388  am__leading_dot=.
10389else
10390  am__leading_dot=_
10391fi
10392rmdir .tst 2>/dev/null
10393
10394DEPDIR="${am__leading_dot}deps"
10395
10396ac_config_commands="$ac_config_commands depfiles"
10397
10398
10399am_make=${MAKE-make}
10400cat > confinc << 'END'
10401am__doit:
10402	@echo this is the am__doit target
10403.PHONY: am__doit
10404END
10405# If we don't find an include directive, just comment out the code.
10406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
10407$as_echo_n "checking for style of include used by $am_make... " >&6; }
10408am__include="#"
10409am__quote=
10410_am_result=none
10411# First try GNU make style include.
10412echo "include confinc" > confmf
10413# Ignore all kinds of additional output from `make'.
10414case `$am_make -s -f confmf 2> /dev/null` in #(
10415*the\ am__doit\ target*)
10416  am__include=include
10417  am__quote=
10418  _am_result=GNU
10419  ;;
10420esac
10421# Now try BSD make style include.
10422if test "$am__include" = "#"; then
10423   echo '.include "confinc"' > confmf
10424   case `$am_make -s -f confmf 2> /dev/null` in #(
10425   *the\ am__doit\ target*)
10426     am__include=.include
10427     am__quote="\""
10428     _am_result=BSD
10429     ;;
10430   esac
10431fi
10432
10433
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
10435$as_echo "$_am_result" >&6; }
10436rm -f confinc confmf
10437
10438# Check whether --enable-dependency-tracking was given.
10439if test "${enable_dependency_tracking+set}" = set; then :
10440  enableval=$enable_dependency_tracking;
10441fi
10442
10443if test "x$enable_dependency_tracking" != xno; then
10444  am_depcomp="$ac_aux_dir/depcomp"
10445  AMDEPBACKSLASH='\'
10446  am__nodep='_no'
10447fi
10448 if test "x$enable_dependency_tracking" != xno; then
10449  AMDEP_TRUE=
10450  AMDEP_FALSE='#'
10451else
10452  AMDEP_TRUE='#'
10453  AMDEP_FALSE=
10454fi
10455
10456
10457if test "`cd $srcdir && pwd`" != "`pwd`"; then
10458  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
10459  # is not polluted with repeated "-I."
10460  am__isrc=' -I$(srcdir)'
10461  # test to see if srcdir already configured
10462  if test -f $srcdir/config.status; then
10463    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
10464  fi
10465fi
10466
10467# test whether we have cygpath
10468if test -z "$CYGPATH_W"; then
10469  if (cygpath --version) >/dev/null 2>/dev/null; then
10470    CYGPATH_W='cygpath -w'
10471  else
10472    CYGPATH_W=echo
10473  fi
10474fi
10475
10476
10477# Define the identity of the package.
10478 PACKAGE='xf86-video-mga'
10479 VERSION='1.6.2'
10480
10481
10482cat >>confdefs.h <<_ACEOF
10483#define PACKAGE "$PACKAGE"
10484_ACEOF
10485
10486
10487cat >>confdefs.h <<_ACEOF
10488#define VERSION "$VERSION"
10489_ACEOF
10490
10491# Some tools Automake needs.
10492
10493ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
10494
10495
10496AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
10497
10498
10499AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
10500
10501
10502AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
10503
10504
10505MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
10506
10507# We need awk for the "check" target.  The system "awk" is bad on
10508# some platforms.
10509# Always define AMTAR for backward compatibility.  Yes, it's still used
10510# in the wild :-(  We should find a proper way to deprecate it ...
10511AMTAR='$${TAR-tar}'
10512
10513am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
10514
10515
10516
10517
10518depcc="$CC"   am_compiler_list=
10519
10520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10521$as_echo_n "checking dependency style of $depcc... " >&6; }
10522if ${am_cv_CC_dependencies_compiler_type+:} false; then :
10523  $as_echo_n "(cached) " >&6
10524else
10525  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10526  # We make a subdir and do the tests there.  Otherwise we can end up
10527  # making bogus files that we don't know about and never remove.  For
10528  # instance it was reported that on HP-UX the gcc test will end up
10529  # making a dummy file named `D' -- because `-MD' means `put the output
10530  # in D'.
10531  rm -rf conftest.dir
10532  mkdir conftest.dir
10533  # Copy depcomp to subdir because otherwise we won't find it if we're
10534  # using a relative directory.
10535  cp "$am_depcomp" conftest.dir
10536  cd conftest.dir
10537  # We will build objects and dependencies in a subdirectory because
10538  # it helps to detect inapplicable dependency modes.  For instance
10539  # both Tru64's cc and ICC support -MD to output dependencies as a
10540  # side effect of compilation, but ICC will put the dependencies in
10541  # the current directory while Tru64 will put them in the object
10542  # directory.
10543  mkdir sub
10544
10545  am_cv_CC_dependencies_compiler_type=none
10546  if test "$am_compiler_list" = ""; then
10547     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10548  fi
10549  am__universal=false
10550  case " $depcc " in #(
10551     *\ -arch\ *\ -arch\ *) am__universal=true ;;
10552     esac
10553
10554  for depmode in $am_compiler_list; do
10555    # Setup a source with many dependencies, because some compilers
10556    # like to wrap large dependency lists on column 80 (with \), and
10557    # we should not choose a depcomp mode which is confused by this.
10558    #
10559    # We need to recreate these files for each test, as the compiler may
10560    # overwrite some of them when testing with obscure command lines.
10561    # This happens at least with the AIX C compiler.
10562    : > sub/conftest.c
10563    for i in 1 2 3 4 5 6; do
10564      echo '#include "conftst'$i'.h"' >> sub/conftest.c
10565      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10566      # Solaris 8's {/usr,}/bin/sh.
10567      touch sub/conftst$i.h
10568    done
10569    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10570
10571    # We check with `-c' and `-o' for the sake of the "dashmstdout"
10572    # mode.  It turns out that the SunPro C++ compiler does not properly
10573    # handle `-M -o', and we need to detect this.  Also, some Intel
10574    # versions had trouble with output in subdirs
10575    am__obj=sub/conftest.${OBJEXT-o}
10576    am__minus_obj="-o $am__obj"
10577    case $depmode in
10578    gcc)
10579      # This depmode causes a compiler race in universal mode.
10580      test "$am__universal" = false || continue
10581      ;;
10582    nosideeffect)
10583      # after this tag, mechanisms are not by side-effect, so they'll
10584      # only be used when explicitly requested
10585      if test "x$enable_dependency_tracking" = xyes; then
10586	continue
10587      else
10588	break
10589      fi
10590      ;;
10591    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
10592      # This compiler won't grok `-c -o', but also, the minuso test has
10593      # not run yet.  These depmodes are late enough in the game, and
10594      # so weak that their functioning should not be impacted.
10595      am__obj=conftest.${OBJEXT-o}
10596      am__minus_obj=
10597      ;;
10598    none) break ;;
10599    esac
10600    if depmode=$depmode \
10601       source=sub/conftest.c object=$am__obj \
10602       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10603       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10604         >/dev/null 2>conftest.err &&
10605       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10606       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10607       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10608       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10609      # icc doesn't choke on unknown options, it will just issue warnings
10610      # or remarks (even with -Werror).  So we grep stderr for any message
10611      # that says an option was ignored or not supported.
10612      # When given -MP, icc 7.0 and 7.1 complain thusly:
10613      #   icc: Command line warning: ignoring option '-M'; no argument required
10614      # The diagnosis changed in icc 8.0:
10615      #   icc: Command line remark: option '-MP' not supported
10616      if (grep 'ignoring option' conftest.err ||
10617          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10618        am_cv_CC_dependencies_compiler_type=$depmode
10619        break
10620      fi
10621    fi
10622  done
10623
10624  cd ..
10625  rm -rf conftest.dir
10626else
10627  am_cv_CC_dependencies_compiler_type=none
10628fi
10629
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
10632$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
10633CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
10634
10635 if
10636  test "x$enable_dependency_tracking" != xno \
10637  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
10638  am__fastdepCC_TRUE=
10639  am__fastdepCC_FALSE='#'
10640else
10641  am__fastdepCC_TRUE='#'
10642  am__fastdepCC_FALSE=
10643fi
10644
10645
10646
10647
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10649$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10650    # Check whether --enable-maintainer-mode was given.
10651if test "${enable_maintainer_mode+set}" = set; then :
10652  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10653else
10654  USE_MAINTAINER_MODE=no
10655fi
10656
10657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10658$as_echo "$USE_MAINTAINER_MODE" >&6; }
10659   if test $USE_MAINTAINER_MODE = yes; then
10660  MAINTAINER_MODE_TRUE=
10661  MAINTAINER_MODE_FALSE='#'
10662else
10663  MAINTAINER_MODE_TRUE='#'
10664  MAINTAINER_MODE_FALSE=
10665fi
10666
10667  MAINT=$MAINTAINER_MODE_TRUE
10668
10669
10670
10671# Initialize libtool
10672# Check whether --enable-static was given.
10673if test "${enable_static+set}" = set; then :
10674  enableval=$enable_static; p=${PACKAGE-default}
10675    case $enableval in
10676    yes) enable_static=yes ;;
10677    no) enable_static=no ;;
10678    *)
10679     enable_static=no
10680      # Look at the argument we got.  We use all the common list separators.
10681      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10682      for pkg in $enableval; do
10683	IFS="$lt_save_ifs"
10684	if test "X$pkg" = "X$p"; then
10685	  enable_static=yes
10686	fi
10687      done
10688      IFS="$lt_save_ifs"
10689      ;;
10690    esac
10691else
10692  enable_static=no
10693fi
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703case `pwd` in
10704  *\ * | *\	*)
10705    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10706$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10707esac
10708
10709
10710
10711macro_version='2.4.2'
10712macro_revision='1.3337'
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726ltmain="$ac_aux_dir/ltmain.sh"
10727
10728# Backslashify metacharacters that are still active within
10729# double-quoted strings.
10730sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10731
10732# Same as above, but do not quote variable references.
10733double_quote_subst='s/\(["`\\]\)/\\\1/g'
10734
10735# Sed substitution to delay expansion of an escaped shell variable in a
10736# double_quote_subst'ed string.
10737delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10738
10739# Sed substitution to delay expansion of an escaped single quote.
10740delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10741
10742# Sed substitution to avoid accidental globbing in evaled expressions
10743no_glob_subst='s/\*/\\\*/g'
10744
10745ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10746ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10747ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10748
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10750$as_echo_n "checking how to print strings... " >&6; }
10751# Test print first, because it will be a builtin if present.
10752if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10753   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10754  ECHO='print -r --'
10755elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10756  ECHO='printf %s\n'
10757else
10758  # Use this function as a fallback that always works.
10759  func_fallback_echo ()
10760  {
10761    eval 'cat <<_LTECHO_EOF
10762$1
10763_LTECHO_EOF'
10764  }
10765  ECHO='func_fallback_echo'
10766fi
10767
10768# func_echo_all arg...
10769# Invoke $ECHO with all args, space-separated.
10770func_echo_all ()
10771{
10772    $ECHO ""
10773}
10774
10775case "$ECHO" in
10776  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10777$as_echo "printf" >&6; } ;;
10778  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10779$as_echo "print -r" >&6; } ;;
10780  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10781$as_echo "cat" >&6; } ;;
10782esac
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10798$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10799if ${ac_cv_path_SED+:} false; then :
10800  $as_echo_n "(cached) " >&6
10801else
10802            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10803     for ac_i in 1 2 3 4 5 6 7; do
10804       ac_script="$ac_script$as_nl$ac_script"
10805     done
10806     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10807     { ac_script=; unset ac_script;}
10808     if test -z "$SED"; then
10809  ac_path_SED_found=false
10810  # Loop through the user's path and test for each of PROGNAME-LIST
10811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812for as_dir in $PATH
10813do
10814  IFS=$as_save_IFS
10815  test -z "$as_dir" && as_dir=.
10816    for ac_prog in sed gsed; do
10817    for ac_exec_ext in '' $ac_executable_extensions; do
10818      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10819      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10820# Check for GNU ac_path_SED and select it if it is found.
10821  # Check for GNU $ac_path_SED
10822case `"$ac_path_SED" --version 2>&1` in
10823*GNU*)
10824  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10825*)
10826  ac_count=0
10827  $as_echo_n 0123456789 >"conftest.in"
10828  while :
10829  do
10830    cat "conftest.in" "conftest.in" >"conftest.tmp"
10831    mv "conftest.tmp" "conftest.in"
10832    cp "conftest.in" "conftest.nl"
10833    $as_echo '' >> "conftest.nl"
10834    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10835    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10836    as_fn_arith $ac_count + 1 && ac_count=$as_val
10837    if test $ac_count -gt ${ac_path_SED_max-0}; then
10838      # Best one so far, save it but keep looking for a better one
10839      ac_cv_path_SED="$ac_path_SED"
10840      ac_path_SED_max=$ac_count
10841    fi
10842    # 10*(2^10) chars as input seems more than enough
10843    test $ac_count -gt 10 && break
10844  done
10845  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10846esac
10847
10848      $ac_path_SED_found && break 3
10849    done
10850  done
10851  done
10852IFS=$as_save_IFS
10853  if test -z "$ac_cv_path_SED"; then
10854    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10855  fi
10856else
10857  ac_cv_path_SED=$SED
10858fi
10859
10860fi
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10862$as_echo "$ac_cv_path_SED" >&6; }
10863 SED="$ac_cv_path_SED"
10864  rm -f conftest.sed
10865
10866test -z "$SED" && SED=sed
10867Xsed="$SED -e 1s/^X//"
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10880$as_echo_n "checking for fgrep... " >&6; }
10881if ${ac_cv_path_FGREP+:} false; then :
10882  $as_echo_n "(cached) " >&6
10883else
10884  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10885   then ac_cv_path_FGREP="$GREP -F"
10886   else
10887     if test -z "$FGREP"; then
10888  ac_path_FGREP_found=false
10889  # Loop through the user's path and test for each of PROGNAME-LIST
10890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10892do
10893  IFS=$as_save_IFS
10894  test -z "$as_dir" && as_dir=.
10895    for ac_prog in fgrep; do
10896    for ac_exec_ext in '' $ac_executable_extensions; do
10897      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10898      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10899# Check for GNU ac_path_FGREP and select it if it is found.
10900  # Check for GNU $ac_path_FGREP
10901case `"$ac_path_FGREP" --version 2>&1` in
10902*GNU*)
10903  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10904*)
10905  ac_count=0
10906  $as_echo_n 0123456789 >"conftest.in"
10907  while :
10908  do
10909    cat "conftest.in" "conftest.in" >"conftest.tmp"
10910    mv "conftest.tmp" "conftest.in"
10911    cp "conftest.in" "conftest.nl"
10912    $as_echo 'FGREP' >> "conftest.nl"
10913    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10914    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10915    as_fn_arith $ac_count + 1 && ac_count=$as_val
10916    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10917      # Best one so far, save it but keep looking for a better one
10918      ac_cv_path_FGREP="$ac_path_FGREP"
10919      ac_path_FGREP_max=$ac_count
10920    fi
10921    # 10*(2^10) chars as input seems more than enough
10922    test $ac_count -gt 10 && break
10923  done
10924  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10925esac
10926
10927      $ac_path_FGREP_found && break 3
10928    done
10929  done
10930  done
10931IFS=$as_save_IFS
10932  if test -z "$ac_cv_path_FGREP"; then
10933    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10934  fi
10935else
10936  ac_cv_path_FGREP=$FGREP
10937fi
10938
10939   fi
10940fi
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10942$as_echo "$ac_cv_path_FGREP" >&6; }
10943 FGREP="$ac_cv_path_FGREP"
10944
10945
10946test -z "$GREP" && GREP=grep
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966# Check whether --with-gnu-ld was given.
10967if test "${with_gnu_ld+set}" = set; then :
10968  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10969else
10970  with_gnu_ld=no
10971fi
10972
10973ac_prog=ld
10974if test "$GCC" = yes; then
10975  # Check if gcc -print-prog-name=ld gives a path.
10976  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10977$as_echo_n "checking for ld used by $CC... " >&6; }
10978  case $host in
10979  *-*-mingw*)
10980    # gcc leaves a trailing carriage return which upsets mingw
10981    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10982  *)
10983    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10984  esac
10985  case $ac_prog in
10986    # Accept absolute paths.
10987    [\\/]* | ?:[\\/]*)
10988      re_direlt='/[^/][^/]*/\.\./'
10989      # Canonicalize the pathname of ld
10990      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10991      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10992	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10993      done
10994      test -z "$LD" && LD="$ac_prog"
10995      ;;
10996  "")
10997    # If it fails, then pretend we aren't using GCC.
10998    ac_prog=ld
10999    ;;
11000  *)
11001    # If it is relative, then search for the first ld in PATH.
11002    with_gnu_ld=unknown
11003    ;;
11004  esac
11005elif test "$with_gnu_ld" = yes; then
11006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11007$as_echo_n "checking for GNU ld... " >&6; }
11008else
11009  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11010$as_echo_n "checking for non-GNU ld... " >&6; }
11011fi
11012if ${lt_cv_path_LD+:} false; then :
11013  $as_echo_n "(cached) " >&6
11014else
11015  if test -z "$LD"; then
11016  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11017  for ac_dir in $PATH; do
11018    IFS="$lt_save_ifs"
11019    test -z "$ac_dir" && ac_dir=.
11020    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11021      lt_cv_path_LD="$ac_dir/$ac_prog"
11022      # Check to see if the program is GNU ld.  I'd rather use --version,
11023      # but apparently some variants of GNU ld only accept -v.
11024      # Break only if it was the GNU/non-GNU ld that we prefer.
11025      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11026      *GNU* | *'with BFD'*)
11027	test "$with_gnu_ld" != no && break
11028	;;
11029      *)
11030	test "$with_gnu_ld" != yes && break
11031	;;
11032      esac
11033    fi
11034  done
11035  IFS="$lt_save_ifs"
11036else
11037  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11038fi
11039fi
11040
11041LD="$lt_cv_path_LD"
11042if test -n "$LD"; then
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11044$as_echo "$LD" >&6; }
11045else
11046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
11048fi
11049test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11051$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11052if ${lt_cv_prog_gnu_ld+:} false; then :
11053  $as_echo_n "(cached) " >&6
11054else
11055  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11056case `$LD -v 2>&1 </dev/null` in
11057*GNU* | *'with BFD'*)
11058  lt_cv_prog_gnu_ld=yes
11059  ;;
11060*)
11061  lt_cv_prog_gnu_ld=no
11062  ;;
11063esac
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11066$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11067with_gnu_ld=$lt_cv_prog_gnu_ld
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11078$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11079if ${lt_cv_path_NM+:} false; then :
11080  $as_echo_n "(cached) " >&6
11081else
11082  if test -n "$NM"; then
11083  # Let the user override the test.
11084  lt_cv_path_NM="$NM"
11085else
11086  lt_nm_to_check="${ac_tool_prefix}nm"
11087  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11088    lt_nm_to_check="$lt_nm_to_check nm"
11089  fi
11090  for lt_tmp_nm in $lt_nm_to_check; do
11091    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11092    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11093      IFS="$lt_save_ifs"
11094      test -z "$ac_dir" && ac_dir=.
11095      tmp_nm="$ac_dir/$lt_tmp_nm"
11096      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11097	# Check to see if the nm accepts a BSD-compat flag.
11098	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11099	#   nm: unknown option "B" ignored
11100	# Tru64's nm complains that /dev/null is an invalid object file
11101	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11102	*/dev/null* | *'Invalid file or object type'*)
11103	  lt_cv_path_NM="$tmp_nm -B"
11104	  break
11105	  ;;
11106	*)
11107	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11108	  */dev/null*)
11109	    lt_cv_path_NM="$tmp_nm -p"
11110	    break
11111	    ;;
11112	  *)
11113	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11114	    continue # so that we can try to find one that supports BSD flags
11115	    ;;
11116	  esac
11117	  ;;
11118	esac
11119      fi
11120    done
11121    IFS="$lt_save_ifs"
11122  done
11123  : ${lt_cv_path_NM=no}
11124fi
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11127$as_echo "$lt_cv_path_NM" >&6; }
11128if test "$lt_cv_path_NM" != "no"; then
11129  NM="$lt_cv_path_NM"
11130else
11131  # Didn't find any BSD compatible name lister, look for dumpbin.
11132  if test -n "$DUMPBIN"; then :
11133    # Let the user override the test.
11134  else
11135    if test -n "$ac_tool_prefix"; then
11136  for ac_prog in dumpbin "link -dump"
11137  do
11138    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11139set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11141$as_echo_n "checking for $ac_word... " >&6; }
11142if ${ac_cv_prog_DUMPBIN+:} false; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  if test -n "$DUMPBIN"; then
11146  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11147else
11148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11149for as_dir in $PATH
11150do
11151  IFS=$as_save_IFS
11152  test -z "$as_dir" && as_dir=.
11153    for ac_exec_ext in '' $ac_executable_extensions; do
11154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11155    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157    break 2
11158  fi
11159done
11160  done
11161IFS=$as_save_IFS
11162
11163fi
11164fi
11165DUMPBIN=$ac_cv_prog_DUMPBIN
11166if test -n "$DUMPBIN"; then
11167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11168$as_echo "$DUMPBIN" >&6; }
11169else
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
11172fi
11173
11174
11175    test -n "$DUMPBIN" && break
11176  done
11177fi
11178if test -z "$DUMPBIN"; then
11179  ac_ct_DUMPBIN=$DUMPBIN
11180  for ac_prog in dumpbin "link -dump"
11181do
11182  # Extract the first word of "$ac_prog", so it can be a program name with args.
11183set dummy $ac_prog; ac_word=$2
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185$as_echo_n "checking for $ac_word... " >&6; }
11186if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11187  $as_echo_n "(cached) " >&6
11188else
11189  if test -n "$ac_ct_DUMPBIN"; then
11190  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11191else
11192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193for as_dir in $PATH
11194do
11195  IFS=$as_save_IFS
11196  test -z "$as_dir" && as_dir=.
11197    for ac_exec_ext in '' $ac_executable_extensions; do
11198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11201    break 2
11202  fi
11203done
11204  done
11205IFS=$as_save_IFS
11206
11207fi
11208fi
11209ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11210if test -n "$ac_ct_DUMPBIN"; then
11211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11212$as_echo "$ac_ct_DUMPBIN" >&6; }
11213else
11214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215$as_echo "no" >&6; }
11216fi
11217
11218
11219  test -n "$ac_ct_DUMPBIN" && break
11220done
11221
11222  if test "x$ac_ct_DUMPBIN" = x; then
11223    DUMPBIN=":"
11224  else
11225    case $cross_compiling:$ac_tool_warned in
11226yes:)
11227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11229ac_tool_warned=yes ;;
11230esac
11231    DUMPBIN=$ac_ct_DUMPBIN
11232  fi
11233fi
11234
11235    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11236    *COFF*)
11237      DUMPBIN="$DUMPBIN -symbols"
11238      ;;
11239    *)
11240      DUMPBIN=:
11241      ;;
11242    esac
11243  fi
11244
11245  if test "$DUMPBIN" != ":"; then
11246    NM="$DUMPBIN"
11247  fi
11248fi
11249test -z "$NM" && NM=nm
11250
11251
11252
11253
11254
11255
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11257$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11258if ${lt_cv_nm_interface+:} false; then :
11259  $as_echo_n "(cached) " >&6
11260else
11261  lt_cv_nm_interface="BSD nm"
11262  echo "int some_variable = 0;" > conftest.$ac_ext
11263  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11264  (eval "$ac_compile" 2>conftest.err)
11265  cat conftest.err >&5
11266  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11267  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11268  cat conftest.err >&5
11269  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11270  cat conftest.out >&5
11271  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11272    lt_cv_nm_interface="MS dumpbin"
11273  fi
11274  rm -f conftest*
11275fi
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11277$as_echo "$lt_cv_nm_interface" >&6; }
11278
11279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11280$as_echo_n "checking whether ln -s works... " >&6; }
11281LN_S=$as_ln_s
11282if test "$LN_S" = "ln -s"; then
11283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11284$as_echo "yes" >&6; }
11285else
11286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11287$as_echo "no, using $LN_S" >&6; }
11288fi
11289
11290# find the maximum length of command line arguments
11291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11292$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11293if ${lt_cv_sys_max_cmd_len+:} false; then :
11294  $as_echo_n "(cached) " >&6
11295else
11296    i=0
11297  teststring="ABCD"
11298
11299  case $build_os in
11300  msdosdjgpp*)
11301    # On DJGPP, this test can blow up pretty badly due to problems in libc
11302    # (any single argument exceeding 2000 bytes causes a buffer overrun
11303    # during glob expansion).  Even if it were fixed, the result of this
11304    # check would be larger than it should be.
11305    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11306    ;;
11307
11308  gnu*)
11309    # Under GNU Hurd, this test is not required because there is
11310    # no limit to the length of command line arguments.
11311    # Libtool will interpret -1 as no limit whatsoever
11312    lt_cv_sys_max_cmd_len=-1;
11313    ;;
11314
11315  cygwin* | mingw* | cegcc*)
11316    # On Win9x/ME, this test blows up -- it succeeds, but takes
11317    # about 5 minutes as the teststring grows exponentially.
11318    # Worse, since 9x/ME are not pre-emptively multitasking,
11319    # you end up with a "frozen" computer, even though with patience
11320    # the test eventually succeeds (with a max line length of 256k).
11321    # Instead, let's just punt: use the minimum linelength reported by
11322    # all of the supported platforms: 8192 (on NT/2K/XP).
11323    lt_cv_sys_max_cmd_len=8192;
11324    ;;
11325
11326  mint*)
11327    # On MiNT this can take a long time and run out of memory.
11328    lt_cv_sys_max_cmd_len=8192;
11329    ;;
11330
11331  amigaos*)
11332    # On AmigaOS with pdksh, this test takes hours, literally.
11333    # So we just punt and use a minimum line length of 8192.
11334    lt_cv_sys_max_cmd_len=8192;
11335    ;;
11336
11337  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11338    # This has been around since 386BSD, at least.  Likely further.
11339    if test -x /sbin/sysctl; then
11340      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11341    elif test -x /usr/sbin/sysctl; then
11342      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11343    else
11344      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11345    fi
11346    # And add a safety zone
11347    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11348    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11349    ;;
11350
11351  interix*)
11352    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11353    lt_cv_sys_max_cmd_len=196608
11354    ;;
11355
11356  os2*)
11357    # The test takes a long time on OS/2.
11358    lt_cv_sys_max_cmd_len=8192
11359    ;;
11360
11361  osf*)
11362    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11363    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11364    # nice to cause kernel panics so lets avoid the loop below.
11365    # First set a reasonable default.
11366    lt_cv_sys_max_cmd_len=16384
11367    #
11368    if test -x /sbin/sysconfig; then
11369      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11370        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11371      esac
11372    fi
11373    ;;
11374  sco3.2v5*)
11375    lt_cv_sys_max_cmd_len=102400
11376    ;;
11377  sysv5* | sco5v6* | sysv4.2uw2*)
11378    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11379    if test -n "$kargmax"; then
11380      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11381    else
11382      lt_cv_sys_max_cmd_len=32768
11383    fi
11384    ;;
11385  *)
11386    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11387    if test -n "$lt_cv_sys_max_cmd_len"; then
11388      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11389      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11390    else
11391      # Make teststring a little bigger before we do anything with it.
11392      # a 1K string should be a reasonable start.
11393      for i in 1 2 3 4 5 6 7 8 ; do
11394        teststring=$teststring$teststring
11395      done
11396      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11397      # If test is not a shell built-in, we'll probably end up computing a
11398      # maximum length that is only half of the actual maximum length, but
11399      # we can't tell.
11400      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11401	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11402	      test $i != 17 # 1/2 MB should be enough
11403      do
11404        i=`expr $i + 1`
11405        teststring=$teststring$teststring
11406      done
11407      # Only check the string length outside the loop.
11408      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11409      teststring=
11410      # Add a significant safety factor because C++ compilers can tack on
11411      # massive amounts of additional arguments before passing them to the
11412      # linker.  It appears as though 1/2 is a usable value.
11413      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11414    fi
11415    ;;
11416  esac
11417
11418fi
11419
11420if test -n $lt_cv_sys_max_cmd_len ; then
11421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11422$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11423else
11424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11425$as_echo "none" >&6; }
11426fi
11427max_cmd_len=$lt_cv_sys_max_cmd_len
11428
11429
11430
11431
11432
11433
11434: ${CP="cp -f"}
11435: ${MV="mv -f"}
11436: ${RM="rm -f"}
11437
11438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11439$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11440# Try some XSI features
11441xsi_shell=no
11442( _lt_dummy="a/b/c"
11443  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11444      = c,a/b,b/c, \
11445    && eval 'test $(( 1 + 1 )) -eq 2 \
11446    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11447  && xsi_shell=yes
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11449$as_echo "$xsi_shell" >&6; }
11450
11451
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11453$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11454lt_shell_append=no
11455( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11456    >/dev/null 2>&1 \
11457  && lt_shell_append=yes
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11459$as_echo "$lt_shell_append" >&6; }
11460
11461
11462if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11463  lt_unset=unset
11464else
11465  lt_unset=false
11466fi
11467
11468
11469
11470
11471
11472# test EBCDIC or ASCII
11473case `echo X|tr X '\101'` in
11474 A) # ASCII based system
11475    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11476  lt_SP2NL='tr \040 \012'
11477  lt_NL2SP='tr \015\012 \040\040'
11478  ;;
11479 *) # EBCDIC based system
11480  lt_SP2NL='tr \100 \n'
11481  lt_NL2SP='tr \r\n \100\100'
11482  ;;
11483esac
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11494$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11495if ${lt_cv_to_host_file_cmd+:} false; then :
11496  $as_echo_n "(cached) " >&6
11497else
11498  case $host in
11499  *-*-mingw* )
11500    case $build in
11501      *-*-mingw* ) # actually msys
11502        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11503        ;;
11504      *-*-cygwin* )
11505        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11506        ;;
11507      * ) # otherwise, assume *nix
11508        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11509        ;;
11510    esac
11511    ;;
11512  *-*-cygwin* )
11513    case $build in
11514      *-*-mingw* ) # actually msys
11515        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11516        ;;
11517      *-*-cygwin* )
11518        lt_cv_to_host_file_cmd=func_convert_file_noop
11519        ;;
11520      * ) # otherwise, assume *nix
11521        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11522        ;;
11523    esac
11524    ;;
11525  * ) # unhandled hosts (and "normal" native builds)
11526    lt_cv_to_host_file_cmd=func_convert_file_noop
11527    ;;
11528esac
11529
11530fi
11531
11532to_host_file_cmd=$lt_cv_to_host_file_cmd
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11534$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11535
11536
11537
11538
11539
11540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11541$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11542if ${lt_cv_to_tool_file_cmd+:} false; then :
11543  $as_echo_n "(cached) " >&6
11544else
11545  #assume ordinary cross tools, or native build.
11546lt_cv_to_tool_file_cmd=func_convert_file_noop
11547case $host in
11548  *-*-mingw* )
11549    case $build in
11550      *-*-mingw* ) # actually msys
11551        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11552        ;;
11553    esac
11554    ;;
11555esac
11556
11557fi
11558
11559to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11561$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11562
11563
11564
11565
11566
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11568$as_echo_n "checking for $LD option to reload object files... " >&6; }
11569if ${lt_cv_ld_reload_flag+:} false; then :
11570  $as_echo_n "(cached) " >&6
11571else
11572  lt_cv_ld_reload_flag='-r'
11573fi
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11575$as_echo "$lt_cv_ld_reload_flag" >&6; }
11576reload_flag=$lt_cv_ld_reload_flag
11577case $reload_flag in
11578"" | " "*) ;;
11579*) reload_flag=" $reload_flag" ;;
11580esac
11581reload_cmds='$LD$reload_flag -o $output$reload_objs'
11582case $host_os in
11583  cygwin* | mingw* | pw32* | cegcc*)
11584    if test "$GCC" != yes; then
11585      reload_cmds=false
11586    fi
11587    ;;
11588  darwin*)
11589    if test "$GCC" = yes; then
11590      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11591    else
11592      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11593    fi
11594    ;;
11595esac
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605if test -n "$ac_tool_prefix"; then
11606  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11607set dummy ${ac_tool_prefix}objdump; ac_word=$2
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609$as_echo_n "checking for $ac_word... " >&6; }
11610if ${ac_cv_prog_OBJDUMP+:} false; then :
11611  $as_echo_n "(cached) " >&6
11612else
11613  if test -n "$OBJDUMP"; then
11614  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11615else
11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619  IFS=$as_save_IFS
11620  test -z "$as_dir" && as_dir=.
11621    for ac_exec_ext in '' $ac_executable_extensions; do
11622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11623    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11625    break 2
11626  fi
11627done
11628  done
11629IFS=$as_save_IFS
11630
11631fi
11632fi
11633OBJDUMP=$ac_cv_prog_OBJDUMP
11634if test -n "$OBJDUMP"; then
11635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11636$as_echo "$OBJDUMP" >&6; }
11637else
11638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639$as_echo "no" >&6; }
11640fi
11641
11642
11643fi
11644if test -z "$ac_cv_prog_OBJDUMP"; then
11645  ac_ct_OBJDUMP=$OBJDUMP
11646  # Extract the first word of "objdump", so it can be a program name with args.
11647set dummy objdump; ac_word=$2
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11649$as_echo_n "checking for $ac_word... " >&6; }
11650if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653  if test -n "$ac_ct_OBJDUMP"; then
11654  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11655else
11656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659  IFS=$as_save_IFS
11660  test -z "$as_dir" && as_dir=.
11661    for ac_exec_ext in '' $ac_executable_extensions; do
11662  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11663    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11664    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665    break 2
11666  fi
11667done
11668  done
11669IFS=$as_save_IFS
11670
11671fi
11672fi
11673ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11674if test -n "$ac_ct_OBJDUMP"; then
11675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11676$as_echo "$ac_ct_OBJDUMP" >&6; }
11677else
11678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11679$as_echo "no" >&6; }
11680fi
11681
11682  if test "x$ac_ct_OBJDUMP" = x; then
11683    OBJDUMP="false"
11684  else
11685    case $cross_compiling:$ac_tool_warned in
11686yes:)
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11689ac_tool_warned=yes ;;
11690esac
11691    OBJDUMP=$ac_ct_OBJDUMP
11692  fi
11693else
11694  OBJDUMP="$ac_cv_prog_OBJDUMP"
11695fi
11696
11697test -z "$OBJDUMP" && OBJDUMP=objdump
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11708$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11709if ${lt_cv_deplibs_check_method+:} false; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  lt_cv_file_magic_cmd='$MAGIC_CMD'
11713lt_cv_file_magic_test_file=
11714lt_cv_deplibs_check_method='unknown'
11715# Need to set the preceding variable on all platforms that support
11716# interlibrary dependencies.
11717# 'none' -- dependencies not supported.
11718# `unknown' -- same as none, but documents that we really don't know.
11719# 'pass_all' -- all dependencies passed with no checks.
11720# 'test_compile' -- check by making test program.
11721# 'file_magic [[regex]]' -- check by looking for files in library path
11722# which responds to the $file_magic_cmd with a given extended regex.
11723# If you have `file' or equivalent on your system and you're not sure
11724# whether `pass_all' will *always* work, you probably want this one.
11725
11726case $host_os in
11727aix[4-9]*)
11728  lt_cv_deplibs_check_method=pass_all
11729  ;;
11730
11731beos*)
11732  lt_cv_deplibs_check_method=pass_all
11733  ;;
11734
11735bsdi[45]*)
11736  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11737  lt_cv_file_magic_cmd='/usr/bin/file -L'
11738  lt_cv_file_magic_test_file=/shlib/libc.so
11739  ;;
11740
11741cygwin*)
11742  # func_win32_libid is a shell function defined in ltmain.sh
11743  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11744  lt_cv_file_magic_cmd='func_win32_libid'
11745  ;;
11746
11747mingw* | pw32*)
11748  # Base MSYS/MinGW do not provide the 'file' command needed by
11749  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11750  # unless we find 'file', for example because we are cross-compiling.
11751  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11752  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11753    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11754    lt_cv_file_magic_cmd='func_win32_libid'
11755  else
11756    # Keep this pattern in sync with the one in func_win32_libid.
11757    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11758    lt_cv_file_magic_cmd='$OBJDUMP -f'
11759  fi
11760  ;;
11761
11762cegcc*)
11763  # use the weaker test based on 'objdump'. See mingw*.
11764  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11765  lt_cv_file_magic_cmd='$OBJDUMP -f'
11766  ;;
11767
11768darwin* | rhapsody*)
11769  lt_cv_deplibs_check_method=pass_all
11770  ;;
11771
11772freebsd* | dragonfly*)
11773  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11774    case $host_cpu in
11775    i*86 )
11776      # Not sure whether the presence of OpenBSD here was a mistake.
11777      # Let's accept both of them until this is cleared up.
11778      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11779      lt_cv_file_magic_cmd=/usr/bin/file
11780      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11781      ;;
11782    esac
11783  else
11784    lt_cv_deplibs_check_method=pass_all
11785  fi
11786  ;;
11787
11788gnu*)
11789  lt_cv_deplibs_check_method=pass_all
11790  ;;
11791
11792haiku*)
11793  lt_cv_deplibs_check_method=pass_all
11794  ;;
11795
11796hpux10.20* | hpux11*)
11797  lt_cv_file_magic_cmd=/usr/bin/file
11798  case $host_cpu in
11799  ia64*)
11800    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11801    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11802    ;;
11803  hppa*64*)
11804    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]'
11805    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11806    ;;
11807  *)
11808    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11809    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11810    ;;
11811  esac
11812  ;;
11813
11814interix[3-9]*)
11815  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11816  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11817  ;;
11818
11819irix5* | irix6* | nonstopux*)
11820  case $LD in
11821  *-32|*"-32 ") libmagic=32-bit;;
11822  *-n32|*"-n32 ") libmagic=N32;;
11823  *-64|*"-64 ") libmagic=64-bit;;
11824  *) libmagic=never-match;;
11825  esac
11826  lt_cv_deplibs_check_method=pass_all
11827  ;;
11828
11829# This must be glibc/ELF.
11830linux* | k*bsd*-gnu | kopensolaris*-gnu)
11831  lt_cv_deplibs_check_method=pass_all
11832  ;;
11833
11834netbsd*)
11835  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11836    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11837  else
11838    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11839  fi
11840  ;;
11841
11842newos6*)
11843  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11844  lt_cv_file_magic_cmd=/usr/bin/file
11845  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11846  ;;
11847
11848*nto* | *qnx*)
11849  lt_cv_deplibs_check_method=pass_all
11850  ;;
11851
11852openbsd*)
11853  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11854    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11855  else
11856    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11857  fi
11858  ;;
11859
11860osf3* | osf4* | osf5*)
11861  lt_cv_deplibs_check_method=pass_all
11862  ;;
11863
11864rdos*)
11865  lt_cv_deplibs_check_method=pass_all
11866  ;;
11867
11868solaris*)
11869  lt_cv_deplibs_check_method=pass_all
11870  ;;
11871
11872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11873  lt_cv_deplibs_check_method=pass_all
11874  ;;
11875
11876sysv4 | sysv4.3*)
11877  case $host_vendor in
11878  motorola)
11879    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]'
11880    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11881    ;;
11882  ncr)
11883    lt_cv_deplibs_check_method=pass_all
11884    ;;
11885  sequent)
11886    lt_cv_file_magic_cmd='/bin/file'
11887    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11888    ;;
11889  sni)
11890    lt_cv_file_magic_cmd='/bin/file'
11891    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11892    lt_cv_file_magic_test_file=/lib/libc.so
11893    ;;
11894  siemens)
11895    lt_cv_deplibs_check_method=pass_all
11896    ;;
11897  pc)
11898    lt_cv_deplibs_check_method=pass_all
11899    ;;
11900  esac
11901  ;;
11902
11903tpf*)
11904  lt_cv_deplibs_check_method=pass_all
11905  ;;
11906esac
11907
11908fi
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11910$as_echo "$lt_cv_deplibs_check_method" >&6; }
11911
11912file_magic_glob=
11913want_nocaseglob=no
11914if test "$build" = "$host"; then
11915  case $host_os in
11916  mingw* | pw32*)
11917    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11918      want_nocaseglob=yes
11919    else
11920      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11921    fi
11922    ;;
11923  esac
11924fi
11925
11926file_magic_cmd=$lt_cv_file_magic_cmd
11927deplibs_check_method=$lt_cv_deplibs_check_method
11928test -z "$deplibs_check_method" && deplibs_check_method=unknown
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951if test -n "$ac_tool_prefix"; then
11952  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11953set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955$as_echo_n "checking for $ac_word... " >&6; }
11956if ${ac_cv_prog_DLLTOOL+:} false; then :
11957  $as_echo_n "(cached) " >&6
11958else
11959  if test -n "$DLLTOOL"; then
11960  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11961else
11962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965  IFS=$as_save_IFS
11966  test -z "$as_dir" && as_dir=.
11967    for ac_exec_ext in '' $ac_executable_extensions; do
11968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11971    break 2
11972  fi
11973done
11974  done
11975IFS=$as_save_IFS
11976
11977fi
11978fi
11979DLLTOOL=$ac_cv_prog_DLLTOOL
11980if test -n "$DLLTOOL"; then
11981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11982$as_echo "$DLLTOOL" >&6; }
11983else
11984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
11986fi
11987
11988
11989fi
11990if test -z "$ac_cv_prog_DLLTOOL"; then
11991  ac_ct_DLLTOOL=$DLLTOOL
11992  # Extract the first word of "dlltool", so it can be a program name with args.
11993set dummy dlltool; ac_word=$2
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995$as_echo_n "checking for $ac_word... " >&6; }
11996if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11997  $as_echo_n "(cached) " >&6
11998else
11999  if test -n "$ac_ct_DLLTOOL"; then
12000  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12001else
12002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003for as_dir in $PATH
12004do
12005  IFS=$as_save_IFS
12006  test -z "$as_dir" && as_dir=.
12007    for ac_exec_ext in '' $ac_executable_extensions; do
12008  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12011    break 2
12012  fi
12013done
12014  done
12015IFS=$as_save_IFS
12016
12017fi
12018fi
12019ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12020if test -n "$ac_ct_DLLTOOL"; then
12021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12022$as_echo "$ac_ct_DLLTOOL" >&6; }
12023else
12024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
12026fi
12027
12028  if test "x$ac_ct_DLLTOOL" = x; then
12029    DLLTOOL="false"
12030  else
12031    case $cross_compiling:$ac_tool_warned in
12032yes:)
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035ac_tool_warned=yes ;;
12036esac
12037    DLLTOOL=$ac_ct_DLLTOOL
12038  fi
12039else
12040  DLLTOOL="$ac_cv_prog_DLLTOOL"
12041fi
12042
12043test -z "$DLLTOOL" && DLLTOOL=dlltool
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12055$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12056if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12057  $as_echo_n "(cached) " >&6
12058else
12059  lt_cv_sharedlib_from_linklib_cmd='unknown'
12060
12061case $host_os in
12062cygwin* | mingw* | pw32* | cegcc*)
12063  # two different shell functions defined in ltmain.sh
12064  # decide which to use based on capabilities of $DLLTOOL
12065  case `$DLLTOOL --help 2>&1` in
12066  *--identify-strict*)
12067    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12068    ;;
12069  *)
12070    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12071    ;;
12072  esac
12073  ;;
12074*)
12075  # fallback: assume linklib IS sharedlib
12076  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12077  ;;
12078esac
12079
12080fi
12081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12082$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12083sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12084test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12085
12086
12087
12088
12089
12090
12091
12092if test -n "$ac_tool_prefix"; then
12093  for ac_prog in ar
12094  do
12095    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12096set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12098$as_echo_n "checking for $ac_word... " >&6; }
12099if ${ac_cv_prog_AR+:} false; then :
12100  $as_echo_n "(cached) " >&6
12101else
12102  if test -n "$AR"; then
12103  ac_cv_prog_AR="$AR" # Let the user override the test.
12104else
12105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106for as_dir in $PATH
12107do
12108  IFS=$as_save_IFS
12109  test -z "$as_dir" && as_dir=.
12110    for ac_exec_ext in '' $ac_executable_extensions; do
12111  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12112    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12113    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114    break 2
12115  fi
12116done
12117  done
12118IFS=$as_save_IFS
12119
12120fi
12121fi
12122AR=$ac_cv_prog_AR
12123if test -n "$AR"; then
12124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12125$as_echo "$AR" >&6; }
12126else
12127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12128$as_echo "no" >&6; }
12129fi
12130
12131
12132    test -n "$AR" && break
12133  done
12134fi
12135if test -z "$AR"; then
12136  ac_ct_AR=$AR
12137  for ac_prog in ar
12138do
12139  # Extract the first word of "$ac_prog", so it can be a program name with args.
12140set dummy $ac_prog; ac_word=$2
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142$as_echo_n "checking for $ac_word... " >&6; }
12143if ${ac_cv_prog_ac_ct_AR+:} false; then :
12144  $as_echo_n "(cached) " >&6
12145else
12146  if test -n "$ac_ct_AR"; then
12147  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12148else
12149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150for as_dir in $PATH
12151do
12152  IFS=$as_save_IFS
12153  test -z "$as_dir" && as_dir=.
12154    for ac_exec_ext in '' $ac_executable_extensions; do
12155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12156    ac_cv_prog_ac_ct_AR="$ac_prog"
12157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158    break 2
12159  fi
12160done
12161  done
12162IFS=$as_save_IFS
12163
12164fi
12165fi
12166ac_ct_AR=$ac_cv_prog_ac_ct_AR
12167if test -n "$ac_ct_AR"; then
12168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12169$as_echo "$ac_ct_AR" >&6; }
12170else
12171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
12173fi
12174
12175
12176  test -n "$ac_ct_AR" && break
12177done
12178
12179  if test "x$ac_ct_AR" = x; then
12180    AR="false"
12181  else
12182    case $cross_compiling:$ac_tool_warned in
12183yes:)
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12186ac_tool_warned=yes ;;
12187esac
12188    AR=$ac_ct_AR
12189  fi
12190fi
12191
12192: ${AR=ar}
12193: ${AR_FLAGS=cru}
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12206$as_echo_n "checking for archiver @FILE support... " >&6; }
12207if ${lt_cv_ar_at_file+:} false; then :
12208  $as_echo_n "(cached) " >&6
12209else
12210  lt_cv_ar_at_file=no
12211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12212/* end confdefs.h.  */
12213
12214int
12215main ()
12216{
12217
12218  ;
12219  return 0;
12220}
12221_ACEOF
12222if ac_fn_c_try_compile "$LINENO"; then :
12223  echo conftest.$ac_objext > conftest.lst
12224      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12225      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12226  (eval $lt_ar_try) 2>&5
12227  ac_status=$?
12228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12229  test $ac_status = 0; }
12230      if test "$ac_status" -eq 0; then
12231	# Ensure the archiver fails upon bogus file names.
12232	rm -f conftest.$ac_objext libconftest.a
12233	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12234  (eval $lt_ar_try) 2>&5
12235  ac_status=$?
12236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12237  test $ac_status = 0; }
12238	if test "$ac_status" -ne 0; then
12239          lt_cv_ar_at_file=@
12240        fi
12241      fi
12242      rm -f conftest.* libconftest.a
12243
12244fi
12245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12246
12247fi
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12249$as_echo "$lt_cv_ar_at_file" >&6; }
12250
12251if test "x$lt_cv_ar_at_file" = xno; then
12252  archiver_list_spec=
12253else
12254  archiver_list_spec=$lt_cv_ar_at_file
12255fi
12256
12257
12258
12259
12260
12261
12262
12263if test -n "$ac_tool_prefix"; then
12264  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12265set dummy ${ac_tool_prefix}strip; ac_word=$2
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if ${ac_cv_prog_STRIP+:} false; then :
12269  $as_echo_n "(cached) " >&6
12270else
12271  if test -n "$STRIP"; then
12272  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12273else
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277  IFS=$as_save_IFS
12278  test -z "$as_dir" && as_dir=.
12279    for ac_exec_ext in '' $ac_executable_extensions; do
12280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12281    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12283    break 2
12284  fi
12285done
12286  done
12287IFS=$as_save_IFS
12288
12289fi
12290fi
12291STRIP=$ac_cv_prog_STRIP
12292if test -n "$STRIP"; then
12293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12294$as_echo "$STRIP" >&6; }
12295else
12296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
12298fi
12299
12300
12301fi
12302if test -z "$ac_cv_prog_STRIP"; then
12303  ac_ct_STRIP=$STRIP
12304  # Extract the first word of "strip", so it can be a program name with args.
12305set dummy strip; ac_word=$2
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
12308if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  if test -n "$ac_ct_STRIP"; then
12312  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12313else
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317  IFS=$as_save_IFS
12318  test -z "$as_dir" && as_dir=.
12319    for ac_exec_ext in '' $ac_executable_extensions; do
12320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12321    ac_cv_prog_ac_ct_STRIP="strip"
12322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323    break 2
12324  fi
12325done
12326  done
12327IFS=$as_save_IFS
12328
12329fi
12330fi
12331ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12332if test -n "$ac_ct_STRIP"; then
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12334$as_echo "$ac_ct_STRIP" >&6; }
12335else
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339
12340  if test "x$ac_ct_STRIP" = x; then
12341    STRIP=":"
12342  else
12343    case $cross_compiling:$ac_tool_warned in
12344yes:)
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12347ac_tool_warned=yes ;;
12348esac
12349    STRIP=$ac_ct_STRIP
12350  fi
12351else
12352  STRIP="$ac_cv_prog_STRIP"
12353fi
12354
12355test -z "$STRIP" && STRIP=:
12356
12357
12358
12359
12360
12361
12362if test -n "$ac_tool_prefix"; then
12363  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12364set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
12367if ${ac_cv_prog_RANLIB+:} false; then :
12368  $as_echo_n "(cached) " >&6
12369else
12370  if test -n "$RANLIB"; then
12371  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12372else
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376  IFS=$as_save_IFS
12377  test -z "$as_dir" && as_dir=.
12378    for ac_exec_ext in '' $ac_executable_extensions; do
12379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12382    break 2
12383  fi
12384done
12385  done
12386IFS=$as_save_IFS
12387
12388fi
12389fi
12390RANLIB=$ac_cv_prog_RANLIB
12391if test -n "$RANLIB"; then
12392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12393$as_echo "$RANLIB" >&6; }
12394else
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
12397fi
12398
12399
12400fi
12401if test -z "$ac_cv_prog_RANLIB"; then
12402  ac_ct_RANLIB=$RANLIB
12403  # Extract the first word of "ranlib", so it can be a program name with args.
12404set dummy ranlib; ac_word=$2
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12408  $as_echo_n "(cached) " >&6
12409else
12410  if test -n "$ac_ct_RANLIB"; then
12411  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416  IFS=$as_save_IFS
12417  test -z "$as_dir" && as_dir=.
12418    for ac_exec_ext in '' $ac_executable_extensions; do
12419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420    ac_cv_prog_ac_ct_RANLIB="ranlib"
12421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422    break 2
12423  fi
12424done
12425  done
12426IFS=$as_save_IFS
12427
12428fi
12429fi
12430ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12431if test -n "$ac_ct_RANLIB"; then
12432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12433$as_echo "$ac_ct_RANLIB" >&6; }
12434else
12435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
12437fi
12438
12439  if test "x$ac_ct_RANLIB" = x; then
12440    RANLIB=":"
12441  else
12442    case $cross_compiling:$ac_tool_warned in
12443yes:)
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12446ac_tool_warned=yes ;;
12447esac
12448    RANLIB=$ac_ct_RANLIB
12449  fi
12450else
12451  RANLIB="$ac_cv_prog_RANLIB"
12452fi
12453
12454test -z "$RANLIB" && RANLIB=:
12455
12456
12457
12458
12459
12460
12461# Determine commands to create old-style static archives.
12462old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12463old_postinstall_cmds='chmod 644 $oldlib'
12464old_postuninstall_cmds=
12465
12466if test -n "$RANLIB"; then
12467  case $host_os in
12468  openbsd*)
12469    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12470    ;;
12471  *)
12472    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12473    ;;
12474  esac
12475  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12476fi
12477
12478case $host_os in
12479  darwin*)
12480    lock_old_archive_extraction=yes ;;
12481  *)
12482    lock_old_archive_extraction=no ;;
12483esac
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523# If no C compiler was specified, use CC.
12524LTCC=${LTCC-"$CC"}
12525
12526# If no C compiler flags were specified, use CFLAGS.
12527LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12528
12529# Allow CC to be a program name with arguments.
12530compiler=$CC
12531
12532
12533# Check for command to grab the raw symbol name followed by C symbol from nm.
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12535$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12536if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12537  $as_echo_n "(cached) " >&6
12538else
12539
12540# These are sane defaults that work on at least a few old systems.
12541# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12542
12543# Character class describing NM global symbol codes.
12544symcode='[BCDEGRST]'
12545
12546# Regexp to match symbols that can be accessed directly from C.
12547sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12548
12549# Define system-specific variables.
12550case $host_os in
12551aix*)
12552  symcode='[BCDT]'
12553  ;;
12554cygwin* | mingw* | pw32* | cegcc*)
12555  symcode='[ABCDGISTW]'
12556  ;;
12557hpux*)
12558  if test "$host_cpu" = ia64; then
12559    symcode='[ABCDEGRST]'
12560  fi
12561  ;;
12562irix* | nonstopux*)
12563  symcode='[BCDEGRST]'
12564  ;;
12565osf*)
12566  symcode='[BCDEGQRST]'
12567  ;;
12568solaris*)
12569  symcode='[BDRT]'
12570  ;;
12571sco3.2v5*)
12572  symcode='[DT]'
12573  ;;
12574sysv4.2uw2*)
12575  symcode='[DT]'
12576  ;;
12577sysv5* | sco5v6* | unixware* | OpenUNIX*)
12578  symcode='[ABDT]'
12579  ;;
12580sysv4)
12581  symcode='[DFNSTU]'
12582  ;;
12583esac
12584
12585# If we're using GNU nm, then use its standard symbol codes.
12586case `$NM -V 2>&1` in
12587*GNU* | *'with BFD'*)
12588  symcode='[ABCDGIRSTW]' ;;
12589esac
12590
12591# Transform an extracted symbol line into a proper C declaration.
12592# Some systems (esp. on ia64) link data and code symbols differently,
12593# so use this general approach.
12594lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12595
12596# Transform an extracted symbol line into symbol name and symbol address
12597lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12598lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12599
12600# Handle CRLF in mingw tool chain
12601opt_cr=
12602case $build_os in
12603mingw*)
12604  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12605  ;;
12606esac
12607
12608# Try without a prefix underscore, then with it.
12609for ac_symprfx in "" "_"; do
12610
12611  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12612  symxfrm="\\1 $ac_symprfx\\2 \\2"
12613
12614  # Write the raw and C identifiers.
12615  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12616    # Fake it for dumpbin and say T for any non-static function
12617    # and D for any global variable.
12618    # Also find C++ and __fastcall symbols from MSVC++,
12619    # which start with @ or ?.
12620    lt_cv_sys_global_symbol_pipe="$AWK '"\
12621"     {last_section=section; section=\$ 3};"\
12622"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12623"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12624"     \$ 0!~/External *\|/{next};"\
12625"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12626"     {if(hide[section]) next};"\
12627"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12628"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12629"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12630"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12631"     ' prfx=^$ac_symprfx"
12632  else
12633    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12634  fi
12635  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12636
12637  # Check to see that the pipe works correctly.
12638  pipe_works=no
12639
12640  rm -f conftest*
12641  cat > conftest.$ac_ext <<_LT_EOF
12642#ifdef __cplusplus
12643extern "C" {
12644#endif
12645char nm_test_var;
12646void nm_test_func(void);
12647void nm_test_func(void){}
12648#ifdef __cplusplus
12649}
12650#endif
12651int main(){nm_test_var='a';nm_test_func();return(0);}
12652_LT_EOF
12653
12654  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12655  (eval $ac_compile) 2>&5
12656  ac_status=$?
12657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12658  test $ac_status = 0; }; then
12659    # Now try to grab the symbols.
12660    nlist=conftest.nm
12661    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12662  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12663  ac_status=$?
12664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12665  test $ac_status = 0; } && test -s "$nlist"; then
12666      # Try sorting and uniquifying the output.
12667      if sort "$nlist" | uniq > "$nlist"T; then
12668	mv -f "$nlist"T "$nlist"
12669      else
12670	rm -f "$nlist"T
12671      fi
12672
12673      # Make sure that we snagged all the symbols we need.
12674      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12675	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12676	  cat <<_LT_EOF > conftest.$ac_ext
12677/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12678#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12679/* DATA imports from DLLs on WIN32 con't be const, because runtime
12680   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12681# define LT_DLSYM_CONST
12682#elif defined(__osf__)
12683/* This system does not cope well with relocations in const data.  */
12684# define LT_DLSYM_CONST
12685#else
12686# define LT_DLSYM_CONST const
12687#endif
12688
12689#ifdef __cplusplus
12690extern "C" {
12691#endif
12692
12693_LT_EOF
12694	  # Now generate the symbol file.
12695	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12696
12697	  cat <<_LT_EOF >> conftest.$ac_ext
12698
12699/* The mapping between symbol names and symbols.  */
12700LT_DLSYM_CONST struct {
12701  const char *name;
12702  void       *address;
12703}
12704lt__PROGRAM__LTX_preloaded_symbols[] =
12705{
12706  { "@PROGRAM@", (void *) 0 },
12707_LT_EOF
12708	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12709	  cat <<\_LT_EOF >> conftest.$ac_ext
12710  {0, (void *) 0}
12711};
12712
12713/* This works around a problem in FreeBSD linker */
12714#ifdef FREEBSD_WORKAROUND
12715static const void *lt_preloaded_setup() {
12716  return lt__PROGRAM__LTX_preloaded_symbols;
12717}
12718#endif
12719
12720#ifdef __cplusplus
12721}
12722#endif
12723_LT_EOF
12724	  # Now try linking the two files.
12725	  mv conftest.$ac_objext conftstm.$ac_objext
12726	  lt_globsym_save_LIBS=$LIBS
12727	  lt_globsym_save_CFLAGS=$CFLAGS
12728	  LIBS="conftstm.$ac_objext"
12729	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12730	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12731  (eval $ac_link) 2>&5
12732  ac_status=$?
12733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12734  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12735	    pipe_works=yes
12736	  fi
12737	  LIBS=$lt_globsym_save_LIBS
12738	  CFLAGS=$lt_globsym_save_CFLAGS
12739	else
12740	  echo "cannot find nm_test_func in $nlist" >&5
12741	fi
12742      else
12743	echo "cannot find nm_test_var in $nlist" >&5
12744      fi
12745    else
12746      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12747    fi
12748  else
12749    echo "$progname: failed program was:" >&5
12750    cat conftest.$ac_ext >&5
12751  fi
12752  rm -rf conftest* conftst*
12753
12754  # Do not use the global_symbol_pipe unless it works.
12755  if test "$pipe_works" = yes; then
12756    break
12757  else
12758    lt_cv_sys_global_symbol_pipe=
12759  fi
12760done
12761
12762fi
12763
12764if test -z "$lt_cv_sys_global_symbol_pipe"; then
12765  lt_cv_sys_global_symbol_to_cdecl=
12766fi
12767if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12769$as_echo "failed" >&6; }
12770else
12771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12772$as_echo "ok" >&6; }
12773fi
12774
12775# Response file support.
12776if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12777  nm_file_list_spec='@'
12778elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12779  nm_file_list_spec='@'
12780fi
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12809$as_echo_n "checking for sysroot... " >&6; }
12810
12811# Check whether --with-sysroot was given.
12812if test "${with_sysroot+set}" = set; then :
12813  withval=$with_sysroot;
12814else
12815  with_sysroot=no
12816fi
12817
12818
12819lt_sysroot=
12820case ${with_sysroot} in #(
12821 yes)
12822   if test "$GCC" = yes; then
12823     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12824   fi
12825   ;; #(
12826 /*)
12827   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12828   ;; #(
12829 no|'')
12830   ;; #(
12831 *)
12832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12833$as_echo "${with_sysroot}" >&6; }
12834   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12835   ;;
12836esac
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12839$as_echo "${lt_sysroot:-no}" >&6; }
12840
12841
12842
12843
12844
12845# Check whether --enable-libtool-lock was given.
12846if test "${enable_libtool_lock+set}" = set; then :
12847  enableval=$enable_libtool_lock;
12848fi
12849
12850test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12851
12852# Some flags need to be propagated to the compiler or linker for good
12853# libtool support.
12854case $host in
12855ia64-*-hpux*)
12856  # Find out which ABI we are using.
12857  echo 'int i;' > conftest.$ac_ext
12858  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12859  (eval $ac_compile) 2>&5
12860  ac_status=$?
12861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12862  test $ac_status = 0; }; then
12863    case `/usr/bin/file conftest.$ac_objext` in
12864      *ELF-32*)
12865	HPUX_IA64_MODE="32"
12866	;;
12867      *ELF-64*)
12868	HPUX_IA64_MODE="64"
12869	;;
12870    esac
12871  fi
12872  rm -rf conftest*
12873  ;;
12874*-*-irix6*)
12875  # Find out which ABI we are using.
12876  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12877  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12878  (eval $ac_compile) 2>&5
12879  ac_status=$?
12880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12881  test $ac_status = 0; }; then
12882    if test "$lt_cv_prog_gnu_ld" = yes; then
12883      case `/usr/bin/file conftest.$ac_objext` in
12884	*32-bit*)
12885	  LD="${LD-ld} -melf32bsmip"
12886	  ;;
12887	*N32*)
12888	  LD="${LD-ld} -melf32bmipn32"
12889	  ;;
12890	*64-bit*)
12891	  LD="${LD-ld} -melf64bmip"
12892	;;
12893      esac
12894    else
12895      case `/usr/bin/file conftest.$ac_objext` in
12896	*32-bit*)
12897	  LD="${LD-ld} -32"
12898	  ;;
12899	*N32*)
12900	  LD="${LD-ld} -n32"
12901	  ;;
12902	*64-bit*)
12903	  LD="${LD-ld} -64"
12904	  ;;
12905      esac
12906    fi
12907  fi
12908  rm -rf conftest*
12909  ;;
12910
12911x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12912s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12913  # Find out which ABI we are using.
12914  echo 'int i;' > conftest.$ac_ext
12915  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12916  (eval $ac_compile) 2>&5
12917  ac_status=$?
12918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12919  test $ac_status = 0; }; then
12920    case `/usr/bin/file conftest.o` in
12921      *32-bit*)
12922	case $host in
12923	  x86_64-*kfreebsd*-gnu)
12924	    LD="${LD-ld} -m elf_i386_fbsd"
12925	    ;;
12926	  x86_64-*linux*)
12927	    LD="${LD-ld} -m elf_i386"
12928	    ;;
12929	  ppc64-*linux*|powerpc64-*linux*)
12930	    LD="${LD-ld} -m elf32ppclinux"
12931	    ;;
12932	  s390x-*linux*)
12933	    LD="${LD-ld} -m elf_s390"
12934	    ;;
12935	  sparc64-*linux*)
12936	    LD="${LD-ld} -m elf32_sparc"
12937	    ;;
12938	esac
12939	;;
12940      *64-bit*)
12941	case $host in
12942	  x86_64-*kfreebsd*-gnu)
12943	    LD="${LD-ld} -m elf_x86_64_fbsd"
12944	    ;;
12945	  x86_64-*linux*)
12946	    LD="${LD-ld} -m elf_x86_64"
12947	    ;;
12948	  ppc*-*linux*|powerpc*-*linux*)
12949	    LD="${LD-ld} -m elf64ppc"
12950	    ;;
12951	  s390*-*linux*|s390*-*tpf*)
12952	    LD="${LD-ld} -m elf64_s390"
12953	    ;;
12954	  sparc*-*linux*)
12955	    LD="${LD-ld} -m elf64_sparc"
12956	    ;;
12957	esac
12958	;;
12959    esac
12960  fi
12961  rm -rf conftest*
12962  ;;
12963
12964*-*-sco3.2v5*)
12965  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12966  SAVE_CFLAGS="$CFLAGS"
12967  CFLAGS="$CFLAGS -belf"
12968  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12969$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12970if ${lt_cv_cc_needs_belf+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  ac_ext=c
12974ac_cpp='$CPP $CPPFLAGS'
12975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12977ac_compiler_gnu=$ac_cv_c_compiler_gnu
12978
12979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980/* end confdefs.h.  */
12981
12982int
12983main ()
12984{
12985
12986  ;
12987  return 0;
12988}
12989_ACEOF
12990if ac_fn_c_try_link "$LINENO"; then :
12991  lt_cv_cc_needs_belf=yes
12992else
12993  lt_cv_cc_needs_belf=no
12994fi
12995rm -f core conftest.err conftest.$ac_objext \
12996    conftest$ac_exeext conftest.$ac_ext
12997     ac_ext=c
12998ac_cpp='$CPP $CPPFLAGS'
12999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13001ac_compiler_gnu=$ac_cv_c_compiler_gnu
13002
13003fi
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13005$as_echo "$lt_cv_cc_needs_belf" >&6; }
13006  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13007    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13008    CFLAGS="$SAVE_CFLAGS"
13009  fi
13010  ;;
13011*-*solaris*)
13012  # Find out which ABI we are using.
13013  echo 'int i;' > conftest.$ac_ext
13014  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13015  (eval $ac_compile) 2>&5
13016  ac_status=$?
13017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018  test $ac_status = 0; }; then
13019    case `/usr/bin/file conftest.o` in
13020    *64-bit*)
13021      case $lt_cv_prog_gnu_ld in
13022      yes*)
13023        case $host in
13024        i?86-*-solaris*)
13025          LD="${LD-ld} -m elf_x86_64"
13026          ;;
13027        sparc*-*-solaris*)
13028          LD="${LD-ld} -m elf64_sparc"
13029          ;;
13030        esac
13031        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13032        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13033          LD="${LD-ld}_sol2"
13034        fi
13035        ;;
13036      *)
13037	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13038	  LD="${LD-ld} -64"
13039	fi
13040	;;
13041      esac
13042      ;;
13043    esac
13044  fi
13045  rm -rf conftest*
13046  ;;
13047esac
13048
13049need_locks="$enable_libtool_lock"
13050
13051if test -n "$ac_tool_prefix"; then
13052  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13053set dummy ${ac_tool_prefix}mt; ac_word=$2
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055$as_echo_n "checking for $ac_word... " >&6; }
13056if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  if test -n "$MANIFEST_TOOL"; then
13060  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13061else
13062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063for as_dir in $PATH
13064do
13065  IFS=$as_save_IFS
13066  test -z "$as_dir" && as_dir=.
13067    for ac_exec_ext in '' $ac_executable_extensions; do
13068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13069    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13071    break 2
13072  fi
13073done
13074  done
13075IFS=$as_save_IFS
13076
13077fi
13078fi
13079MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13080if test -n "$MANIFEST_TOOL"; then
13081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13082$as_echo "$MANIFEST_TOOL" >&6; }
13083else
13084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13085$as_echo "no" >&6; }
13086fi
13087
13088
13089fi
13090if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13091  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13092  # Extract the first word of "mt", so it can be a program name with args.
13093set dummy mt; ac_word=$2
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095$as_echo_n "checking for $ac_word... " >&6; }
13096if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13097  $as_echo_n "(cached) " >&6
13098else
13099  if test -n "$ac_ct_MANIFEST_TOOL"; then
13100  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13101else
13102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103for as_dir in $PATH
13104do
13105  IFS=$as_save_IFS
13106  test -z "$as_dir" && as_dir=.
13107    for ac_exec_ext in '' $ac_executable_extensions; do
13108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13109    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13111    break 2
13112  fi
13113done
13114  done
13115IFS=$as_save_IFS
13116
13117fi
13118fi
13119ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13120if test -n "$ac_ct_MANIFEST_TOOL"; then
13121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13122$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13123else
13124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125$as_echo "no" >&6; }
13126fi
13127
13128  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13129    MANIFEST_TOOL=":"
13130  else
13131    case $cross_compiling:$ac_tool_warned in
13132yes:)
13133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13135ac_tool_warned=yes ;;
13136esac
13137    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13138  fi
13139else
13140  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13141fi
13142
13143test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13145$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13146if ${lt_cv_path_mainfest_tool+:} false; then :
13147  $as_echo_n "(cached) " >&6
13148else
13149  lt_cv_path_mainfest_tool=no
13150  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13151  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13152  cat conftest.err >&5
13153  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13154    lt_cv_path_mainfest_tool=yes
13155  fi
13156  rm -f conftest*
13157fi
13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13159$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13160if test "x$lt_cv_path_mainfest_tool" != xyes; then
13161  MANIFEST_TOOL=:
13162fi
13163
13164
13165
13166
13167
13168
13169  case $host_os in
13170    rhapsody* | darwin*)
13171    if test -n "$ac_tool_prefix"; then
13172  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13173set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13175$as_echo_n "checking for $ac_word... " >&6; }
13176if ${ac_cv_prog_DSYMUTIL+:} false; then :
13177  $as_echo_n "(cached) " >&6
13178else
13179  if test -n "$DSYMUTIL"; then
13180  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13181else
13182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183for as_dir in $PATH
13184do
13185  IFS=$as_save_IFS
13186  test -z "$as_dir" && as_dir=.
13187    for ac_exec_ext in '' $ac_executable_extensions; do
13188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13189    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13191    break 2
13192  fi
13193done
13194  done
13195IFS=$as_save_IFS
13196
13197fi
13198fi
13199DSYMUTIL=$ac_cv_prog_DSYMUTIL
13200if test -n "$DSYMUTIL"; then
13201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13202$as_echo "$DSYMUTIL" >&6; }
13203else
13204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13205$as_echo "no" >&6; }
13206fi
13207
13208
13209fi
13210if test -z "$ac_cv_prog_DSYMUTIL"; then
13211  ac_ct_DSYMUTIL=$DSYMUTIL
13212  # Extract the first word of "dsymutil", so it can be a program name with args.
13213set dummy dsymutil; ac_word=$2
13214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13215$as_echo_n "checking for $ac_word... " >&6; }
13216if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13217  $as_echo_n "(cached) " >&6
13218else
13219  if test -n "$ac_ct_DSYMUTIL"; then
13220  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13221else
13222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223for as_dir in $PATH
13224do
13225  IFS=$as_save_IFS
13226  test -z "$as_dir" && as_dir=.
13227    for ac_exec_ext in '' $ac_executable_extensions; do
13228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13229    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13231    break 2
13232  fi
13233done
13234  done
13235IFS=$as_save_IFS
13236
13237fi
13238fi
13239ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13240if test -n "$ac_ct_DSYMUTIL"; then
13241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13242$as_echo "$ac_ct_DSYMUTIL" >&6; }
13243else
13244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245$as_echo "no" >&6; }
13246fi
13247
13248  if test "x$ac_ct_DSYMUTIL" = x; then
13249    DSYMUTIL=":"
13250  else
13251    case $cross_compiling:$ac_tool_warned in
13252yes:)
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13255ac_tool_warned=yes ;;
13256esac
13257    DSYMUTIL=$ac_ct_DSYMUTIL
13258  fi
13259else
13260  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13261fi
13262
13263    if test -n "$ac_tool_prefix"; then
13264  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13265set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if ${ac_cv_prog_NMEDIT+:} false; then :
13269  $as_echo_n "(cached) " >&6
13270else
13271  if test -n "$NMEDIT"; then
13272  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277  IFS=$as_save_IFS
13278  test -z "$as_dir" && as_dir=.
13279    for ac_exec_ext in '' $ac_executable_extensions; do
13280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13283    break 2
13284  fi
13285done
13286  done
13287IFS=$as_save_IFS
13288
13289fi
13290fi
13291NMEDIT=$ac_cv_prog_NMEDIT
13292if test -n "$NMEDIT"; then
13293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13294$as_echo "$NMEDIT" >&6; }
13295else
13296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297$as_echo "no" >&6; }
13298fi
13299
13300
13301fi
13302if test -z "$ac_cv_prog_NMEDIT"; then
13303  ac_ct_NMEDIT=$NMEDIT
13304  # Extract the first word of "nmedit", so it can be a program name with args.
13305set dummy nmedit; ac_word=$2
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13307$as_echo_n "checking for $ac_word... " >&6; }
13308if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13309  $as_echo_n "(cached) " >&6
13310else
13311  if test -n "$ac_ct_NMEDIT"; then
13312  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13313else
13314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315for as_dir in $PATH
13316do
13317  IFS=$as_save_IFS
13318  test -z "$as_dir" && as_dir=.
13319    for ac_exec_ext in '' $ac_executable_extensions; do
13320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13321    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13323    break 2
13324  fi
13325done
13326  done
13327IFS=$as_save_IFS
13328
13329fi
13330fi
13331ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13332if test -n "$ac_ct_NMEDIT"; then
13333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13334$as_echo "$ac_ct_NMEDIT" >&6; }
13335else
13336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337$as_echo "no" >&6; }
13338fi
13339
13340  if test "x$ac_ct_NMEDIT" = x; then
13341    NMEDIT=":"
13342  else
13343    case $cross_compiling:$ac_tool_warned in
13344yes:)
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13347ac_tool_warned=yes ;;
13348esac
13349    NMEDIT=$ac_ct_NMEDIT
13350  fi
13351else
13352  NMEDIT="$ac_cv_prog_NMEDIT"
13353fi
13354
13355    if test -n "$ac_tool_prefix"; then
13356  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13357set dummy ${ac_tool_prefix}lipo; ac_word=$2
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359$as_echo_n "checking for $ac_word... " >&6; }
13360if ${ac_cv_prog_LIPO+:} false; then :
13361  $as_echo_n "(cached) " >&6
13362else
13363  if test -n "$LIPO"; then
13364  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13365else
13366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13367for as_dir in $PATH
13368do
13369  IFS=$as_save_IFS
13370  test -z "$as_dir" && as_dir=.
13371    for ac_exec_ext in '' $ac_executable_extensions; do
13372  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13373    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13375    break 2
13376  fi
13377done
13378  done
13379IFS=$as_save_IFS
13380
13381fi
13382fi
13383LIPO=$ac_cv_prog_LIPO
13384if test -n "$LIPO"; then
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13386$as_echo "$LIPO" >&6; }
13387else
13388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13389$as_echo "no" >&6; }
13390fi
13391
13392
13393fi
13394if test -z "$ac_cv_prog_LIPO"; then
13395  ac_ct_LIPO=$LIPO
13396  # Extract the first word of "lipo", so it can be a program name with args.
13397set dummy lipo; ac_word=$2
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13399$as_echo_n "checking for $ac_word... " >&6; }
13400if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13401  $as_echo_n "(cached) " >&6
13402else
13403  if test -n "$ac_ct_LIPO"; then
13404  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13405else
13406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407for as_dir in $PATH
13408do
13409  IFS=$as_save_IFS
13410  test -z "$as_dir" && as_dir=.
13411    for ac_exec_ext in '' $ac_executable_extensions; do
13412  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13413    ac_cv_prog_ac_ct_LIPO="lipo"
13414    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415    break 2
13416  fi
13417done
13418  done
13419IFS=$as_save_IFS
13420
13421fi
13422fi
13423ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13424if test -n "$ac_ct_LIPO"; then
13425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13426$as_echo "$ac_ct_LIPO" >&6; }
13427else
13428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13429$as_echo "no" >&6; }
13430fi
13431
13432  if test "x$ac_ct_LIPO" = x; then
13433    LIPO=":"
13434  else
13435    case $cross_compiling:$ac_tool_warned in
13436yes:)
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13439ac_tool_warned=yes ;;
13440esac
13441    LIPO=$ac_ct_LIPO
13442  fi
13443else
13444  LIPO="$ac_cv_prog_LIPO"
13445fi
13446
13447    if test -n "$ac_tool_prefix"; then
13448  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13449set dummy ${ac_tool_prefix}otool; ac_word=$2
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451$as_echo_n "checking for $ac_word... " >&6; }
13452if ${ac_cv_prog_OTOOL+:} false; then :
13453  $as_echo_n "(cached) " >&6
13454else
13455  if test -n "$OTOOL"; then
13456  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13457else
13458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459for as_dir in $PATH
13460do
13461  IFS=$as_save_IFS
13462  test -z "$as_dir" && as_dir=.
13463    for ac_exec_ext in '' $ac_executable_extensions; do
13464  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13465    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467    break 2
13468  fi
13469done
13470  done
13471IFS=$as_save_IFS
13472
13473fi
13474fi
13475OTOOL=$ac_cv_prog_OTOOL
13476if test -n "$OTOOL"; then
13477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13478$as_echo "$OTOOL" >&6; }
13479else
13480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
13482fi
13483
13484
13485fi
13486if test -z "$ac_cv_prog_OTOOL"; then
13487  ac_ct_OTOOL=$OTOOL
13488  # Extract the first word of "otool", so it can be a program name with args.
13489set dummy otool; ac_word=$2
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13491$as_echo_n "checking for $ac_word... " >&6; }
13492if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13493  $as_echo_n "(cached) " >&6
13494else
13495  if test -n "$ac_ct_OTOOL"; then
13496  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13497else
13498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13499for as_dir in $PATH
13500do
13501  IFS=$as_save_IFS
13502  test -z "$as_dir" && as_dir=.
13503    for ac_exec_ext in '' $ac_executable_extensions; do
13504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13505    ac_cv_prog_ac_ct_OTOOL="otool"
13506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13507    break 2
13508  fi
13509done
13510  done
13511IFS=$as_save_IFS
13512
13513fi
13514fi
13515ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13516if test -n "$ac_ct_OTOOL"; then
13517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13518$as_echo "$ac_ct_OTOOL" >&6; }
13519else
13520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521$as_echo "no" >&6; }
13522fi
13523
13524  if test "x$ac_ct_OTOOL" = x; then
13525    OTOOL=":"
13526  else
13527    case $cross_compiling:$ac_tool_warned in
13528yes:)
13529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13531ac_tool_warned=yes ;;
13532esac
13533    OTOOL=$ac_ct_OTOOL
13534  fi
13535else
13536  OTOOL="$ac_cv_prog_OTOOL"
13537fi
13538
13539    if test -n "$ac_tool_prefix"; then
13540  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13541set dummy ${ac_tool_prefix}otool64; ac_word=$2
13542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13543$as_echo_n "checking for $ac_word... " >&6; }
13544if ${ac_cv_prog_OTOOL64+:} false; then :
13545  $as_echo_n "(cached) " >&6
13546else
13547  if test -n "$OTOOL64"; then
13548  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13549else
13550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13551for as_dir in $PATH
13552do
13553  IFS=$as_save_IFS
13554  test -z "$as_dir" && as_dir=.
13555    for ac_exec_ext in '' $ac_executable_extensions; do
13556  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13557    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13558    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13559    break 2
13560  fi
13561done
13562  done
13563IFS=$as_save_IFS
13564
13565fi
13566fi
13567OTOOL64=$ac_cv_prog_OTOOL64
13568if test -n "$OTOOL64"; then
13569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13570$as_echo "$OTOOL64" >&6; }
13571else
13572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573$as_echo "no" >&6; }
13574fi
13575
13576
13577fi
13578if test -z "$ac_cv_prog_OTOOL64"; then
13579  ac_ct_OTOOL64=$OTOOL64
13580  # Extract the first word of "otool64", so it can be a program name with args.
13581set dummy otool64; ac_word=$2
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13583$as_echo_n "checking for $ac_word... " >&6; }
13584if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13585  $as_echo_n "(cached) " >&6
13586else
13587  if test -n "$ac_ct_OTOOL64"; then
13588  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13589else
13590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591for as_dir in $PATH
13592do
13593  IFS=$as_save_IFS
13594  test -z "$as_dir" && as_dir=.
13595    for ac_exec_ext in '' $ac_executable_extensions; do
13596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13597    ac_cv_prog_ac_ct_OTOOL64="otool64"
13598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13599    break 2
13600  fi
13601done
13602  done
13603IFS=$as_save_IFS
13604
13605fi
13606fi
13607ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13608if test -n "$ac_ct_OTOOL64"; then
13609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13610$as_echo "$ac_ct_OTOOL64" >&6; }
13611else
13612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13613$as_echo "no" >&6; }
13614fi
13615
13616  if test "x$ac_ct_OTOOL64" = x; then
13617    OTOOL64=":"
13618  else
13619    case $cross_compiling:$ac_tool_warned in
13620yes:)
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13623ac_tool_warned=yes ;;
13624esac
13625    OTOOL64=$ac_ct_OTOOL64
13626  fi
13627else
13628  OTOOL64="$ac_cv_prog_OTOOL64"
13629fi
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13658$as_echo_n "checking for -single_module linker flag... " >&6; }
13659if ${lt_cv_apple_cc_single_mod+:} false; then :
13660  $as_echo_n "(cached) " >&6
13661else
13662  lt_cv_apple_cc_single_mod=no
13663      if test -z "${LT_MULTI_MODULE}"; then
13664	# By default we will add the -single_module flag. You can override
13665	# by either setting the environment variable LT_MULTI_MODULE
13666	# non-empty at configure time, or by adding -multi_module to the
13667	# link flags.
13668	rm -rf libconftest.dylib*
13669	echo "int foo(void){return 1;}" > conftest.c
13670	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13671-dynamiclib -Wl,-single_module conftest.c" >&5
13672	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13673	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13674        _lt_result=$?
13675	# If there is a non-empty error log, and "single_module"
13676	# appears in it, assume the flag caused a linker warning
13677        if test -s conftest.err && $GREP single_module conftest.err; then
13678	  cat conftest.err >&5
13679	# Otherwise, if the output was created with a 0 exit code from
13680	# the compiler, it worked.
13681	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13682	  lt_cv_apple_cc_single_mod=yes
13683	else
13684	  cat conftest.err >&5
13685	fi
13686	rm -rf libconftest.dylib*
13687	rm -f conftest.*
13688      fi
13689fi
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13691$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13692
13693    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13694$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13695if ${lt_cv_ld_exported_symbols_list+:} false; then :
13696  $as_echo_n "(cached) " >&6
13697else
13698  lt_cv_ld_exported_symbols_list=no
13699      save_LDFLAGS=$LDFLAGS
13700      echo "_main" > conftest.sym
13701      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13702      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13703/* end confdefs.h.  */
13704
13705int
13706main ()
13707{
13708
13709  ;
13710  return 0;
13711}
13712_ACEOF
13713if ac_fn_c_try_link "$LINENO"; then :
13714  lt_cv_ld_exported_symbols_list=yes
13715else
13716  lt_cv_ld_exported_symbols_list=no
13717fi
13718rm -f core conftest.err conftest.$ac_objext \
13719    conftest$ac_exeext conftest.$ac_ext
13720	LDFLAGS="$save_LDFLAGS"
13721
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13724$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13725
13726    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13727$as_echo_n "checking for -force_load linker flag... " >&6; }
13728if ${lt_cv_ld_force_load+:} false; then :
13729  $as_echo_n "(cached) " >&6
13730else
13731  lt_cv_ld_force_load=no
13732      cat > conftest.c << _LT_EOF
13733int forced_loaded() { return 2;}
13734_LT_EOF
13735      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13736      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13737      echo "$AR cru libconftest.a conftest.o" >&5
13738      $AR cru libconftest.a conftest.o 2>&5
13739      echo "$RANLIB libconftest.a" >&5
13740      $RANLIB libconftest.a 2>&5
13741      cat > conftest.c << _LT_EOF
13742int main() { return 0;}
13743_LT_EOF
13744      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13745      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13746      _lt_result=$?
13747      if test -s conftest.err && $GREP force_load conftest.err; then
13748	cat conftest.err >&5
13749      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13750	lt_cv_ld_force_load=yes
13751      else
13752	cat conftest.err >&5
13753      fi
13754        rm -f conftest.err libconftest.a conftest conftest.c
13755        rm -rf conftest.dSYM
13756
13757fi
13758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13759$as_echo "$lt_cv_ld_force_load" >&6; }
13760    case $host_os in
13761    rhapsody* | darwin1.[012])
13762      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13763    darwin1.*)
13764      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13765    darwin*) # darwin 5.x on
13766      # if running on 10.5 or later, the deployment target defaults
13767      # to the OS version, if on x86, and 10.4, the deployment
13768      # target defaults to 10.4. Don't you love it?
13769      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13770	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13771	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13772	10.[012]*)
13773	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13774	10.*)
13775	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13776      esac
13777    ;;
13778  esac
13779    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13780      _lt_dar_single_mod='$single_module'
13781    fi
13782    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13783      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13784    else
13785      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13786    fi
13787    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13788      _lt_dsymutil='~$DSYMUTIL $lib || :'
13789    else
13790      _lt_dsymutil=
13791    fi
13792    ;;
13793  esac
13794
13795for ac_header in dlfcn.h
13796do :
13797  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13798"
13799if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13800  cat >>confdefs.h <<_ACEOF
13801#define HAVE_DLFCN_H 1
13802_ACEOF
13803
13804fi
13805
13806done
13807
13808
13809
13810
13811
13812# Set options
13813
13814
13815
13816        enable_dlopen=no
13817
13818
13819  enable_win32_dll=no
13820
13821
13822            # Check whether --enable-shared was given.
13823if test "${enable_shared+set}" = set; then :
13824  enableval=$enable_shared; p=${PACKAGE-default}
13825    case $enableval in
13826    yes) enable_shared=yes ;;
13827    no) enable_shared=no ;;
13828    *)
13829      enable_shared=no
13830      # Look at the argument we got.  We use all the common list separators.
13831      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13832      for pkg in $enableval; do
13833	IFS="$lt_save_ifs"
13834	if test "X$pkg" = "X$p"; then
13835	  enable_shared=yes
13836	fi
13837      done
13838      IFS="$lt_save_ifs"
13839      ;;
13840    esac
13841else
13842  enable_shared=yes
13843fi
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855# Check whether --with-pic was given.
13856if test "${with_pic+set}" = set; then :
13857  withval=$with_pic; lt_p=${PACKAGE-default}
13858    case $withval in
13859    yes|no) pic_mode=$withval ;;
13860    *)
13861      pic_mode=default
13862      # Look at the argument we got.  We use all the common list separators.
13863      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13864      for lt_pkg in $withval; do
13865	IFS="$lt_save_ifs"
13866	if test "X$lt_pkg" = "X$lt_p"; then
13867	  pic_mode=yes
13868	fi
13869      done
13870      IFS="$lt_save_ifs"
13871      ;;
13872    esac
13873else
13874  pic_mode=default
13875fi
13876
13877
13878test -z "$pic_mode" && pic_mode=default
13879
13880
13881
13882
13883
13884
13885
13886  # Check whether --enable-fast-install was given.
13887if test "${enable_fast_install+set}" = set; then :
13888  enableval=$enable_fast_install; p=${PACKAGE-default}
13889    case $enableval in
13890    yes) enable_fast_install=yes ;;
13891    no) enable_fast_install=no ;;
13892    *)
13893      enable_fast_install=no
13894      # Look at the argument we got.  We use all the common list separators.
13895      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13896      for pkg in $enableval; do
13897	IFS="$lt_save_ifs"
13898	if test "X$pkg" = "X$p"; then
13899	  enable_fast_install=yes
13900	fi
13901      done
13902      IFS="$lt_save_ifs"
13903      ;;
13904    esac
13905else
13906  enable_fast_install=yes
13907fi
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919# This can be used to rebuild libtool when needed
13920LIBTOOL_DEPS="$ltmain"
13921
13922# Always use our own libtool.
13923LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954test -z "$LN_S" && LN_S="ln -s"
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969if test -n "${ZSH_VERSION+set}" ; then
13970   setopt NO_GLOB_SUBST
13971fi
13972
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13974$as_echo_n "checking for objdir... " >&6; }
13975if ${lt_cv_objdir+:} false; then :
13976  $as_echo_n "(cached) " >&6
13977else
13978  rm -f .libs 2>/dev/null
13979mkdir .libs 2>/dev/null
13980if test -d .libs; then
13981  lt_cv_objdir=.libs
13982else
13983  # MS-DOS does not allow filenames that begin with a dot.
13984  lt_cv_objdir=_libs
13985fi
13986rmdir .libs 2>/dev/null
13987fi
13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13989$as_echo "$lt_cv_objdir" >&6; }
13990objdir=$lt_cv_objdir
13991
13992
13993
13994
13995
13996cat >>confdefs.h <<_ACEOF
13997#define LT_OBJDIR "$lt_cv_objdir/"
13998_ACEOF
13999
14000
14001
14002
14003case $host_os in
14004aix3*)
14005  # AIX sometimes has problems with the GCC collect2 program.  For some
14006  # reason, if we set the COLLECT_NAMES environment variable, the problems
14007  # vanish in a puff of smoke.
14008  if test "X${COLLECT_NAMES+set}" != Xset; then
14009    COLLECT_NAMES=
14010    export COLLECT_NAMES
14011  fi
14012  ;;
14013esac
14014
14015# Global variables:
14016ofile=libtool
14017can_build_shared=yes
14018
14019# All known linkers require a `.a' archive for static linking (except MSVC,
14020# which needs '.lib').
14021libext=a
14022
14023with_gnu_ld="$lt_cv_prog_gnu_ld"
14024
14025old_CC="$CC"
14026old_CFLAGS="$CFLAGS"
14027
14028# Set sane defaults for various variables
14029test -z "$CC" && CC=cc
14030test -z "$LTCC" && LTCC=$CC
14031test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14032test -z "$LD" && LD=ld
14033test -z "$ac_objext" && ac_objext=o
14034
14035for cc_temp in $compiler""; do
14036  case $cc_temp in
14037    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14038    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14039    \-*) ;;
14040    *) break;;
14041  esac
14042done
14043cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14044
14045
14046# Only perform the check for file, if the check method requires it
14047test -z "$MAGIC_CMD" && MAGIC_CMD=file
14048case $deplibs_check_method in
14049file_magic*)
14050  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14051    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14052$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14053if ${lt_cv_path_MAGIC_CMD+:} false; then :
14054  $as_echo_n "(cached) " >&6
14055else
14056  case $MAGIC_CMD in
14057[\\/*] |  ?:[\\/]*)
14058  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14059  ;;
14060*)
14061  lt_save_MAGIC_CMD="$MAGIC_CMD"
14062  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14063  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14064  for ac_dir in $ac_dummy; do
14065    IFS="$lt_save_ifs"
14066    test -z "$ac_dir" && ac_dir=.
14067    if test -f $ac_dir/${ac_tool_prefix}file; then
14068      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14069      if test -n "$file_magic_test_file"; then
14070	case $deplibs_check_method in
14071	"file_magic "*)
14072	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14073	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14074	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14075	    $EGREP "$file_magic_regex" > /dev/null; then
14076	    :
14077	  else
14078	    cat <<_LT_EOF 1>&2
14079
14080*** Warning: the command libtool uses to detect shared libraries,
14081*** $file_magic_cmd, produces output that libtool cannot recognize.
14082*** The result is that libtool may fail to recognize shared libraries
14083*** as such.  This will affect the creation of libtool libraries that
14084*** depend on shared libraries, but programs linked with such libtool
14085*** libraries will work regardless of this problem.  Nevertheless, you
14086*** may want to report the problem to your system manager and/or to
14087*** bug-libtool@gnu.org
14088
14089_LT_EOF
14090	  fi ;;
14091	esac
14092      fi
14093      break
14094    fi
14095  done
14096  IFS="$lt_save_ifs"
14097  MAGIC_CMD="$lt_save_MAGIC_CMD"
14098  ;;
14099esac
14100fi
14101
14102MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14103if test -n "$MAGIC_CMD"; then
14104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14105$as_echo "$MAGIC_CMD" >&6; }
14106else
14107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14108$as_echo "no" >&6; }
14109fi
14110
14111
14112
14113
14114
14115if test -z "$lt_cv_path_MAGIC_CMD"; then
14116  if test -n "$ac_tool_prefix"; then
14117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14118$as_echo_n "checking for file... " >&6; }
14119if ${lt_cv_path_MAGIC_CMD+:} false; then :
14120  $as_echo_n "(cached) " >&6
14121else
14122  case $MAGIC_CMD in
14123[\\/*] |  ?:[\\/]*)
14124  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14125  ;;
14126*)
14127  lt_save_MAGIC_CMD="$MAGIC_CMD"
14128  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14129  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14130  for ac_dir in $ac_dummy; do
14131    IFS="$lt_save_ifs"
14132    test -z "$ac_dir" && ac_dir=.
14133    if test -f $ac_dir/file; then
14134      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14135      if test -n "$file_magic_test_file"; then
14136	case $deplibs_check_method in
14137	"file_magic "*)
14138	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14139	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14140	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14141	    $EGREP "$file_magic_regex" > /dev/null; then
14142	    :
14143	  else
14144	    cat <<_LT_EOF 1>&2
14145
14146*** Warning: the command libtool uses to detect shared libraries,
14147*** $file_magic_cmd, produces output that libtool cannot recognize.
14148*** The result is that libtool may fail to recognize shared libraries
14149*** as such.  This will affect the creation of libtool libraries that
14150*** depend on shared libraries, but programs linked with such libtool
14151*** libraries will work regardless of this problem.  Nevertheless, you
14152*** may want to report the problem to your system manager and/or to
14153*** bug-libtool@gnu.org
14154
14155_LT_EOF
14156	  fi ;;
14157	esac
14158      fi
14159      break
14160    fi
14161  done
14162  IFS="$lt_save_ifs"
14163  MAGIC_CMD="$lt_save_MAGIC_CMD"
14164  ;;
14165esac
14166fi
14167
14168MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14169if test -n "$MAGIC_CMD"; then
14170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14171$as_echo "$MAGIC_CMD" >&6; }
14172else
14173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174$as_echo "no" >&6; }
14175fi
14176
14177
14178  else
14179    MAGIC_CMD=:
14180  fi
14181fi
14182
14183  fi
14184  ;;
14185esac
14186
14187# Use C for the default configuration in the libtool script
14188
14189lt_save_CC="$CC"
14190ac_ext=c
14191ac_cpp='$CPP $CPPFLAGS'
14192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14194ac_compiler_gnu=$ac_cv_c_compiler_gnu
14195
14196
14197# Source file extension for C test sources.
14198ac_ext=c
14199
14200# Object file extension for compiled C test sources.
14201objext=o
14202objext=$objext
14203
14204# Code to be used in simple compile tests
14205lt_simple_compile_test_code="int some_variable = 0;"
14206
14207# Code to be used in simple link tests
14208lt_simple_link_test_code='int main(){return(0);}'
14209
14210
14211
14212
14213
14214
14215
14216# If no C compiler was specified, use CC.
14217LTCC=${LTCC-"$CC"}
14218
14219# If no C compiler flags were specified, use CFLAGS.
14220LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14221
14222# Allow CC to be a program name with arguments.
14223compiler=$CC
14224
14225# Save the default compiler, since it gets overwritten when the other
14226# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14227compiler_DEFAULT=$CC
14228
14229# save warnings/boilerplate of simple test code
14230ac_outfile=conftest.$ac_objext
14231echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14232eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14233_lt_compiler_boilerplate=`cat conftest.err`
14234$RM conftest*
14235
14236ac_outfile=conftest.$ac_objext
14237echo "$lt_simple_link_test_code" >conftest.$ac_ext
14238eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14239_lt_linker_boilerplate=`cat conftest.err`
14240$RM -r conftest*
14241
14242
14243if test -n "$compiler"; then
14244
14245lt_prog_compiler_no_builtin_flag=
14246
14247if test "$GCC" = yes; then
14248  case $cc_basename in
14249  nvcc*)
14250    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14251  *)
14252    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14253  esac
14254
14255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14256$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14257if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14258  $as_echo_n "(cached) " >&6
14259else
14260  lt_cv_prog_compiler_rtti_exceptions=no
14261   ac_outfile=conftest.$ac_objext
14262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14263   lt_compiler_flag="-fno-rtti -fno-exceptions"
14264   # Insert the option either (1) after the last *FLAGS variable, or
14265   # (2) before a word containing "conftest.", or (3) at the end.
14266   # Note that $ac_compile itself does not contain backslashes and begins
14267   # with a dollar sign (not a hyphen), so the echo should work correctly.
14268   # The option is referenced via a variable to avoid confusing sed.
14269   lt_compile=`echo "$ac_compile" | $SED \
14270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14272   -e 's:$: $lt_compiler_flag:'`
14273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14274   (eval "$lt_compile" 2>conftest.err)
14275   ac_status=$?
14276   cat conftest.err >&5
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   if (exit $ac_status) && test -s "$ac_outfile"; then
14279     # The compiler can only warn and ignore the option if not recognized
14280     # So say no if there are warnings other than the usual output.
14281     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14282     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14283     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14284       lt_cv_prog_compiler_rtti_exceptions=yes
14285     fi
14286   fi
14287   $RM conftest*
14288
14289fi
14290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14291$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14292
14293if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14294    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14295else
14296    :
14297fi
14298
14299fi
14300
14301
14302
14303
14304
14305
14306  lt_prog_compiler_wl=
14307lt_prog_compiler_pic=
14308lt_prog_compiler_static=
14309
14310
14311  if test "$GCC" = yes; then
14312    lt_prog_compiler_wl='-Wl,'
14313    lt_prog_compiler_static='-static'
14314
14315    case $host_os in
14316      aix*)
14317      # All AIX code is PIC.
14318      if test "$host_cpu" = ia64; then
14319	# AIX 5 now supports IA64 processor
14320	lt_prog_compiler_static='-Bstatic'
14321      fi
14322      ;;
14323
14324    amigaos*)
14325      case $host_cpu in
14326      powerpc)
14327            # see comment about AmigaOS4 .so support
14328            lt_prog_compiler_pic='-fPIC'
14329        ;;
14330      m68k)
14331            # FIXME: we need at least 68020 code to build shared libraries, but
14332            # adding the `-m68020' flag to GCC prevents building anything better,
14333            # like `-m68040'.
14334            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14335        ;;
14336      esac
14337      ;;
14338
14339    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14340      # PIC is the default for these OSes.
14341      ;;
14342
14343    mingw* | cygwin* | pw32* | os2* | cegcc*)
14344      # This hack is so that the source file can tell whether it is being
14345      # built for inclusion in a dll (and should export symbols for example).
14346      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14347      # (--disable-auto-import) libraries
14348      lt_prog_compiler_pic='-DDLL_EXPORT'
14349      ;;
14350
14351    darwin* | rhapsody*)
14352      # PIC is the default on this platform
14353      # Common symbols not allowed in MH_DYLIB files
14354      lt_prog_compiler_pic='-fno-common'
14355      ;;
14356
14357    haiku*)
14358      # PIC is the default for Haiku.
14359      # The "-static" flag exists, but is broken.
14360      lt_prog_compiler_static=
14361      ;;
14362
14363    hpux*)
14364      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14365      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14366      # sets the default TLS model and affects inlining.
14367      case $host_cpu in
14368      hppa*64*)
14369	# +Z the default
14370	;;
14371      *)
14372	lt_prog_compiler_pic='-fPIC'
14373	;;
14374      esac
14375      ;;
14376
14377    interix[3-9]*)
14378      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14379      # Instead, we relocate shared libraries at runtime.
14380      ;;
14381
14382    msdosdjgpp*)
14383      # Just because we use GCC doesn't mean we suddenly get shared libraries
14384      # on systems that don't support them.
14385      lt_prog_compiler_can_build_shared=no
14386      enable_shared=no
14387      ;;
14388
14389    *nto* | *qnx*)
14390      # QNX uses GNU C++, but need to define -shared option too, otherwise
14391      # it will coredump.
14392      lt_prog_compiler_pic='-fPIC -shared'
14393      ;;
14394
14395    sysv4*MP*)
14396      if test -d /usr/nec; then
14397	lt_prog_compiler_pic=-Kconform_pic
14398      fi
14399      ;;
14400
14401    *)
14402      lt_prog_compiler_pic='-fPIC'
14403      ;;
14404    esac
14405
14406    case $cc_basename in
14407    nvcc*) # Cuda Compiler Driver 2.2
14408      lt_prog_compiler_wl='-Xlinker '
14409      if test -n "$lt_prog_compiler_pic"; then
14410        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14411      fi
14412      ;;
14413    esac
14414  else
14415    # PORTME Check for flag to pass linker flags through the system compiler.
14416    case $host_os in
14417    aix*)
14418      lt_prog_compiler_wl='-Wl,'
14419      if test "$host_cpu" = ia64; then
14420	# AIX 5 now supports IA64 processor
14421	lt_prog_compiler_static='-Bstatic'
14422      else
14423	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14424      fi
14425      ;;
14426
14427    mingw* | cygwin* | pw32* | os2* | cegcc*)
14428      # This hack is so that the source file can tell whether it is being
14429      # built for inclusion in a dll (and should export symbols for example).
14430      lt_prog_compiler_pic='-DDLL_EXPORT'
14431      ;;
14432
14433    hpux9* | hpux10* | hpux11*)
14434      lt_prog_compiler_wl='-Wl,'
14435      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14436      # not for PA HP-UX.
14437      case $host_cpu in
14438      hppa*64*|ia64*)
14439	# +Z the default
14440	;;
14441      *)
14442	lt_prog_compiler_pic='+Z'
14443	;;
14444      esac
14445      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14446      lt_prog_compiler_static='${wl}-a ${wl}archive'
14447      ;;
14448
14449    irix5* | irix6* | nonstopux*)
14450      lt_prog_compiler_wl='-Wl,'
14451      # PIC (with -KPIC) is the default.
14452      lt_prog_compiler_static='-non_shared'
14453      ;;
14454
14455    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14456      case $cc_basename in
14457      # old Intel for x86_64 which still supported -KPIC.
14458      ecc*)
14459	lt_prog_compiler_wl='-Wl,'
14460	lt_prog_compiler_pic='-KPIC'
14461	lt_prog_compiler_static='-static'
14462        ;;
14463      # icc used to be incompatible with GCC.
14464      # ICC 10 doesn't accept -KPIC any more.
14465      icc* | ifort*)
14466	lt_prog_compiler_wl='-Wl,'
14467	lt_prog_compiler_pic='-fPIC'
14468	lt_prog_compiler_static='-static'
14469        ;;
14470      # Lahey Fortran 8.1.
14471      lf95*)
14472	lt_prog_compiler_wl='-Wl,'
14473	lt_prog_compiler_pic='--shared'
14474	lt_prog_compiler_static='--static'
14475	;;
14476      nagfor*)
14477	# NAG Fortran compiler
14478	lt_prog_compiler_wl='-Wl,-Wl,,'
14479	lt_prog_compiler_pic='-PIC'
14480	lt_prog_compiler_static='-Bstatic'
14481	;;
14482      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14483        # Portland Group compilers (*not* the Pentium gcc compiler,
14484	# which looks to be a dead project)
14485	lt_prog_compiler_wl='-Wl,'
14486	lt_prog_compiler_pic='-fpic'
14487	lt_prog_compiler_static='-Bstatic'
14488        ;;
14489      ccc*)
14490        lt_prog_compiler_wl='-Wl,'
14491        # All Alpha code is PIC.
14492        lt_prog_compiler_static='-non_shared'
14493        ;;
14494      xl* | bgxl* | bgf* | mpixl*)
14495	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14496	lt_prog_compiler_wl='-Wl,'
14497	lt_prog_compiler_pic='-qpic'
14498	lt_prog_compiler_static='-qstaticlink'
14499	;;
14500      *)
14501	case `$CC -V 2>&1 | sed 5q` in
14502	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14503	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14504	  lt_prog_compiler_pic='-KPIC'
14505	  lt_prog_compiler_static='-Bstatic'
14506	  lt_prog_compiler_wl=''
14507	  ;;
14508	*Sun\ F* | *Sun*Fortran*)
14509	  lt_prog_compiler_pic='-KPIC'
14510	  lt_prog_compiler_static='-Bstatic'
14511	  lt_prog_compiler_wl='-Qoption ld '
14512	  ;;
14513	*Sun\ C*)
14514	  # Sun C 5.9
14515	  lt_prog_compiler_pic='-KPIC'
14516	  lt_prog_compiler_static='-Bstatic'
14517	  lt_prog_compiler_wl='-Wl,'
14518	  ;;
14519        *Intel*\ [CF]*Compiler*)
14520	  lt_prog_compiler_wl='-Wl,'
14521	  lt_prog_compiler_pic='-fPIC'
14522	  lt_prog_compiler_static='-static'
14523	  ;;
14524	*Portland\ Group*)
14525	  lt_prog_compiler_wl='-Wl,'
14526	  lt_prog_compiler_pic='-fpic'
14527	  lt_prog_compiler_static='-Bstatic'
14528	  ;;
14529	esac
14530	;;
14531      esac
14532      ;;
14533
14534    newsos6)
14535      lt_prog_compiler_pic='-KPIC'
14536      lt_prog_compiler_static='-Bstatic'
14537      ;;
14538
14539    *nto* | *qnx*)
14540      # QNX uses GNU C++, but need to define -shared option too, otherwise
14541      # it will coredump.
14542      lt_prog_compiler_pic='-fPIC -shared'
14543      ;;
14544
14545    osf3* | osf4* | osf5*)
14546      lt_prog_compiler_wl='-Wl,'
14547      # All OSF/1 code is PIC.
14548      lt_prog_compiler_static='-non_shared'
14549      ;;
14550
14551    rdos*)
14552      lt_prog_compiler_static='-non_shared'
14553      ;;
14554
14555    solaris*)
14556      lt_prog_compiler_pic='-KPIC'
14557      lt_prog_compiler_static='-Bstatic'
14558      case $cc_basename in
14559      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14560	lt_prog_compiler_wl='-Qoption ld ';;
14561      *)
14562	lt_prog_compiler_wl='-Wl,';;
14563      esac
14564      ;;
14565
14566    sunos4*)
14567      lt_prog_compiler_wl='-Qoption ld '
14568      lt_prog_compiler_pic='-PIC'
14569      lt_prog_compiler_static='-Bstatic'
14570      ;;
14571
14572    sysv4 | sysv4.2uw2* | sysv4.3*)
14573      lt_prog_compiler_wl='-Wl,'
14574      lt_prog_compiler_pic='-KPIC'
14575      lt_prog_compiler_static='-Bstatic'
14576      ;;
14577
14578    sysv4*MP*)
14579      if test -d /usr/nec ;then
14580	lt_prog_compiler_pic='-Kconform_pic'
14581	lt_prog_compiler_static='-Bstatic'
14582      fi
14583      ;;
14584
14585    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14586      lt_prog_compiler_wl='-Wl,'
14587      lt_prog_compiler_pic='-KPIC'
14588      lt_prog_compiler_static='-Bstatic'
14589      ;;
14590
14591    unicos*)
14592      lt_prog_compiler_wl='-Wl,'
14593      lt_prog_compiler_can_build_shared=no
14594      ;;
14595
14596    uts4*)
14597      lt_prog_compiler_pic='-pic'
14598      lt_prog_compiler_static='-Bstatic'
14599      ;;
14600
14601    *)
14602      lt_prog_compiler_can_build_shared=no
14603      ;;
14604    esac
14605  fi
14606
14607case $host_os in
14608  # For platforms which do not support PIC, -DPIC is meaningless:
14609  *djgpp*)
14610    lt_prog_compiler_pic=
14611    ;;
14612  *)
14613    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14614    ;;
14615esac
14616
14617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14618$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14619if ${lt_cv_prog_compiler_pic+:} false; then :
14620  $as_echo_n "(cached) " >&6
14621else
14622  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14623fi
14624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14625$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14626lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14627
14628#
14629# Check to make sure the PIC flag actually works.
14630#
14631if test -n "$lt_prog_compiler_pic"; then
14632  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14633$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14634if ${lt_cv_prog_compiler_pic_works+:} false; then :
14635  $as_echo_n "(cached) " >&6
14636else
14637  lt_cv_prog_compiler_pic_works=no
14638   ac_outfile=conftest.$ac_objext
14639   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14640   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14641   # Insert the option either (1) after the last *FLAGS variable, or
14642   # (2) before a word containing "conftest.", or (3) at the end.
14643   # Note that $ac_compile itself does not contain backslashes and begins
14644   # with a dollar sign (not a hyphen), so the echo should work correctly.
14645   # The option is referenced via a variable to avoid confusing sed.
14646   lt_compile=`echo "$ac_compile" | $SED \
14647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14649   -e 's:$: $lt_compiler_flag:'`
14650   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14651   (eval "$lt_compile" 2>conftest.err)
14652   ac_status=$?
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   if (exit $ac_status) && test -s "$ac_outfile"; then
14656     # The compiler can only warn and ignore the option if not recognized
14657     # So say no if there are warnings other than the usual output.
14658     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14659     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14660     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14661       lt_cv_prog_compiler_pic_works=yes
14662     fi
14663   fi
14664   $RM conftest*
14665
14666fi
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14668$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14669
14670if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14671    case $lt_prog_compiler_pic in
14672     "" | " "*) ;;
14673     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14674     esac
14675else
14676    lt_prog_compiler_pic=
14677     lt_prog_compiler_can_build_shared=no
14678fi
14679
14680fi
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692#
14693# Check to make sure the static flag actually works.
14694#
14695wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14697$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14698if ${lt_cv_prog_compiler_static_works+:} false; then :
14699  $as_echo_n "(cached) " >&6
14700else
14701  lt_cv_prog_compiler_static_works=no
14702   save_LDFLAGS="$LDFLAGS"
14703   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14704   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14705   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14706     # The linker can only warn and ignore the option if not recognized
14707     # So say no if there are warnings
14708     if test -s conftest.err; then
14709       # Append any errors to the config.log.
14710       cat conftest.err 1>&5
14711       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14712       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14713       if diff conftest.exp conftest.er2 >/dev/null; then
14714         lt_cv_prog_compiler_static_works=yes
14715       fi
14716     else
14717       lt_cv_prog_compiler_static_works=yes
14718     fi
14719   fi
14720   $RM -r conftest*
14721   LDFLAGS="$save_LDFLAGS"
14722
14723fi
14724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14725$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14726
14727if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14728    :
14729else
14730    lt_prog_compiler_static=
14731fi
14732
14733
14734
14735
14736
14737
14738
14739  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14740$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14741if ${lt_cv_prog_compiler_c_o+:} false; then :
14742  $as_echo_n "(cached) " >&6
14743else
14744  lt_cv_prog_compiler_c_o=no
14745   $RM -r conftest 2>/dev/null
14746   mkdir conftest
14747   cd conftest
14748   mkdir out
14749   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14750
14751   lt_compiler_flag="-o out/conftest2.$ac_objext"
14752   # Insert the option either (1) after the last *FLAGS variable, or
14753   # (2) before a word containing "conftest.", or (3) at the end.
14754   # Note that $ac_compile itself does not contain backslashes and begins
14755   # with a dollar sign (not a hyphen), so the echo should work correctly.
14756   lt_compile=`echo "$ac_compile" | $SED \
14757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14759   -e 's:$: $lt_compiler_flag:'`
14760   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14761   (eval "$lt_compile" 2>out/conftest.err)
14762   ac_status=$?
14763   cat out/conftest.err >&5
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14766   then
14767     # The compiler can only warn and ignore the option if not recognized
14768     # So say no if there are warnings
14769     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14770     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14771     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14772       lt_cv_prog_compiler_c_o=yes
14773     fi
14774   fi
14775   chmod u+w . 2>&5
14776   $RM conftest*
14777   # SGI C++ compiler will create directory out/ii_files/ for
14778   # template instantiation
14779   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14780   $RM out/* && rmdir out
14781   cd ..
14782   $RM -r conftest
14783   $RM conftest*
14784
14785fi
14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14787$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14788
14789
14790
14791
14792
14793
14794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14795$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14796if ${lt_cv_prog_compiler_c_o+:} false; then :
14797  $as_echo_n "(cached) " >&6
14798else
14799  lt_cv_prog_compiler_c_o=no
14800   $RM -r conftest 2>/dev/null
14801   mkdir conftest
14802   cd conftest
14803   mkdir out
14804   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14805
14806   lt_compiler_flag="-o out/conftest2.$ac_objext"
14807   # Insert the option either (1) after the last *FLAGS variable, or
14808   # (2) before a word containing "conftest.", or (3) at the end.
14809   # Note that $ac_compile itself does not contain backslashes and begins
14810   # with a dollar sign (not a hyphen), so the echo should work correctly.
14811   lt_compile=`echo "$ac_compile" | $SED \
14812   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14813   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14814   -e 's:$: $lt_compiler_flag:'`
14815   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14816   (eval "$lt_compile" 2>out/conftest.err)
14817   ac_status=$?
14818   cat out/conftest.err >&5
14819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14821   then
14822     # The compiler can only warn and ignore the option if not recognized
14823     # So say no if there are warnings
14824     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14825     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14826     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14827       lt_cv_prog_compiler_c_o=yes
14828     fi
14829   fi
14830   chmod u+w . 2>&5
14831   $RM conftest*
14832   # SGI C++ compiler will create directory out/ii_files/ for
14833   # template instantiation
14834   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14835   $RM out/* && rmdir out
14836   cd ..
14837   $RM -r conftest
14838   $RM conftest*
14839
14840fi
14841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14842$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14843
14844
14845
14846
14847hard_links="nottested"
14848if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14849  # do not overwrite the value of need_locks provided by the user
14850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14851$as_echo_n "checking if we can lock with hard links... " >&6; }
14852  hard_links=yes
14853  $RM conftest*
14854  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14855  touch conftest.a
14856  ln conftest.a conftest.b 2>&5 || hard_links=no
14857  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14859$as_echo "$hard_links" >&6; }
14860  if test "$hard_links" = no; then
14861    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14862$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14863    need_locks=warn
14864  fi
14865else
14866  need_locks=no
14867fi
14868
14869
14870
14871
14872
14873
14874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14875$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14876
14877  runpath_var=
14878  allow_undefined_flag=
14879  always_export_symbols=no
14880  archive_cmds=
14881  archive_expsym_cmds=
14882  compiler_needs_object=no
14883  enable_shared_with_static_runtimes=no
14884  export_dynamic_flag_spec=
14885  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14886  hardcode_automatic=no
14887  hardcode_direct=no
14888  hardcode_direct_absolute=no
14889  hardcode_libdir_flag_spec=
14890  hardcode_libdir_separator=
14891  hardcode_minus_L=no
14892  hardcode_shlibpath_var=unsupported
14893  inherit_rpath=no
14894  link_all_deplibs=unknown
14895  module_cmds=
14896  module_expsym_cmds=
14897  old_archive_from_new_cmds=
14898  old_archive_from_expsyms_cmds=
14899  thread_safe_flag_spec=
14900  whole_archive_flag_spec=
14901  # include_expsyms should be a list of space-separated symbols to be *always*
14902  # included in the symbol list
14903  include_expsyms=
14904  # exclude_expsyms can be an extended regexp of symbols to exclude
14905  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14906  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14907  # as well as any symbol that contains `d'.
14908  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14909  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14910  # platforms (ab)use it in PIC code, but their linkers get confused if
14911  # the symbol is explicitly referenced.  Since portable code cannot
14912  # rely on this symbol name, it's probably fine to never include it in
14913  # preloaded symbol tables.
14914  # Exclude shared library initialization/finalization symbols.
14915  extract_expsyms_cmds=
14916
14917  case $host_os in
14918  cygwin* | mingw* | pw32* | cegcc*)
14919    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14920    # When not using gcc, we currently assume that we are using
14921    # Microsoft Visual C++.
14922    if test "$GCC" != yes; then
14923      with_gnu_ld=no
14924    fi
14925    ;;
14926  interix*)
14927    # we just hope/assume this is gcc and not c89 (= MSVC++)
14928    with_gnu_ld=yes
14929    ;;
14930  openbsd*)
14931    with_gnu_ld=no
14932    ;;
14933  esac
14934
14935  ld_shlibs=yes
14936
14937  # On some targets, GNU ld is compatible enough with the native linker
14938  # that we're better off using the native interface for both.
14939  lt_use_gnu_ld_interface=no
14940  if test "$with_gnu_ld" = yes; then
14941    case $host_os in
14942      aix*)
14943	# The AIX port of GNU ld has always aspired to compatibility
14944	# with the native linker.  However, as the warning in the GNU ld
14945	# block says, versions before 2.19.5* couldn't really create working
14946	# shared libraries, regardless of the interface used.
14947	case `$LD -v 2>&1` in
14948	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14949	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14950	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14951	  *)
14952	    lt_use_gnu_ld_interface=yes
14953	    ;;
14954	esac
14955	;;
14956      *)
14957	lt_use_gnu_ld_interface=yes
14958	;;
14959    esac
14960  fi
14961
14962  if test "$lt_use_gnu_ld_interface" = yes; then
14963    # If archive_cmds runs LD, not CC, wlarc should be empty
14964    wlarc='${wl}'
14965
14966    # Set some defaults for GNU ld with shared library support. These
14967    # are reset later if shared libraries are not supported. Putting them
14968    # here allows them to be overridden if necessary.
14969    runpath_var=LD_RUN_PATH
14970    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14971    export_dynamic_flag_spec='${wl}--export-dynamic'
14972    # ancient GNU ld didn't support --whole-archive et. al.
14973    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14974      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14975    else
14976      whole_archive_flag_spec=
14977    fi
14978    supports_anon_versioning=no
14979    case `$LD -v 2>&1` in
14980      *GNU\ gold*) supports_anon_versioning=yes ;;
14981      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14982      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14983      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14984      *\ 2.11.*) ;; # other 2.11 versions
14985      *) supports_anon_versioning=yes ;;
14986    esac
14987
14988    # See if GNU ld supports shared libraries.
14989    case $host_os in
14990    aix[3-9]*)
14991      # On AIX/PPC, the GNU linker is very broken
14992      if test "$host_cpu" != ia64; then
14993	ld_shlibs=no
14994	cat <<_LT_EOF 1>&2
14995
14996*** Warning: the GNU linker, at least up to release 2.19, is reported
14997*** to be unable to reliably create shared libraries on AIX.
14998*** Therefore, libtool is disabling shared libraries support.  If you
14999*** really care for shared libraries, you may want to install binutils
15000*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15001*** You will then need to restart the configuration process.
15002
15003_LT_EOF
15004      fi
15005      ;;
15006
15007    amigaos*)
15008      case $host_cpu in
15009      powerpc)
15010            # see comment about AmigaOS4 .so support
15011            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15012            archive_expsym_cmds=''
15013        ;;
15014      m68k)
15015            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)'
15016            hardcode_libdir_flag_spec='-L$libdir'
15017            hardcode_minus_L=yes
15018        ;;
15019      esac
15020      ;;
15021
15022    beos*)
15023      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15024	allow_undefined_flag=unsupported
15025	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15026	# support --undefined.  This deserves some investigation.  FIXME
15027	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15028      else
15029	ld_shlibs=no
15030      fi
15031      ;;
15032
15033    cygwin* | mingw* | pw32* | cegcc*)
15034      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15035      # as there is no search path for DLLs.
15036      hardcode_libdir_flag_spec='-L$libdir'
15037      export_dynamic_flag_spec='${wl}--export-all-symbols'
15038      allow_undefined_flag=unsupported
15039      always_export_symbols=no
15040      enable_shared_with_static_runtimes=yes
15041      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'
15042      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15043
15044      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15045        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15046	# If the export-symbols file already is a .def file (1st line
15047	# is EXPORTS), use it as is; otherwise, prepend...
15048	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15049	  cp $export_symbols $output_objdir/$soname.def;
15050	else
15051	  echo EXPORTS > $output_objdir/$soname.def;
15052	  cat $export_symbols >> $output_objdir/$soname.def;
15053	fi~
15054	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15055      else
15056	ld_shlibs=no
15057      fi
15058      ;;
15059
15060    haiku*)
15061      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15062      link_all_deplibs=yes
15063      ;;
15064
15065    interix[3-9]*)
15066      hardcode_direct=no
15067      hardcode_shlibpath_var=no
15068      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15069      export_dynamic_flag_spec='${wl}-E'
15070      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15071      # Instead, shared libraries are loaded at an image base (0x10000000 by
15072      # default) and relocated if they conflict, which is a slow very memory
15073      # consuming and fragmenting process.  To avoid this, we pick a random,
15074      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15075      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15076      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15077      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'
15078      ;;
15079
15080    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15081      tmp_diet=no
15082      if test "$host_os" = linux-dietlibc; then
15083	case $cc_basename in
15084	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15085	esac
15086      fi
15087      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15088	 && test "$tmp_diet" = no
15089      then
15090	tmp_addflag=' $pic_flag'
15091	tmp_sharedflag='-shared'
15092	case $cc_basename,$host_cpu in
15093        pgcc*)				# Portland Group C compiler
15094	  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'
15095	  tmp_addflag=' $pic_flag'
15096	  ;;
15097	pgf77* | pgf90* | pgf95* | pgfortran*)
15098					# Portland Group f77 and f90 compilers
15099	  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'
15100	  tmp_addflag=' $pic_flag -Mnomain' ;;
15101	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15102	  tmp_addflag=' -i_dynamic' ;;
15103	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15104	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15105	ifc* | ifort*)			# Intel Fortran compiler
15106	  tmp_addflag=' -nofor_main' ;;
15107	lf95*)				# Lahey Fortran 8.1
15108	  whole_archive_flag_spec=
15109	  tmp_sharedflag='--shared' ;;
15110	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15111	  tmp_sharedflag='-qmkshrobj'
15112	  tmp_addflag= ;;
15113	nvcc*)	# Cuda Compiler Driver 2.2
15114	  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'
15115	  compiler_needs_object=yes
15116	  ;;
15117	esac
15118	case `$CC -V 2>&1 | sed 5q` in
15119	*Sun\ C*)			# Sun C 5.9
15120	  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'
15121	  compiler_needs_object=yes
15122	  tmp_sharedflag='-G' ;;
15123	*Sun\ F*)			# Sun Fortran 8.3
15124	  tmp_sharedflag='-G' ;;
15125	esac
15126	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127
15128        if test "x$supports_anon_versioning" = xyes; then
15129          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15130	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15131	    echo "local: *; };" >> $output_objdir/$libname.ver~
15132	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15133        fi
15134
15135	case $cc_basename in
15136	xlf* | bgf* | bgxlf* | mpixlf*)
15137	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15138	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15139	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15140	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15141	  if test "x$supports_anon_versioning" = xyes; then
15142	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15143	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15144	      echo "local: *; };" >> $output_objdir/$libname.ver~
15145	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15146	  fi
15147	  ;;
15148	esac
15149      else
15150        ld_shlibs=no
15151      fi
15152      ;;
15153
15154    netbsd*)
15155      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15156	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15157	wlarc=
15158      else
15159	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15160	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15161      fi
15162      ;;
15163
15164    solaris*)
15165      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15166	ld_shlibs=no
15167	cat <<_LT_EOF 1>&2
15168
15169*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15170*** create shared libraries on Solaris systems.  Therefore, libtool
15171*** is disabling shared libraries support.  We urge you to upgrade GNU
15172*** binutils to release 2.9.1 or newer.  Another option is to modify
15173*** your PATH or compiler configuration so that the native linker is
15174*** used, and then restart.
15175
15176_LT_EOF
15177      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15178	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15180      else
15181	ld_shlibs=no
15182      fi
15183      ;;
15184
15185    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15186      case `$LD -v 2>&1` in
15187        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15188	ld_shlibs=no
15189	cat <<_LT_EOF 1>&2
15190
15191*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15192*** reliably create shared libraries on SCO systems.  Therefore, libtool
15193*** is disabling shared libraries support.  We urge you to upgrade GNU
15194*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15195*** your PATH or compiler configuration so that the native linker is
15196*** used, and then restart.
15197
15198_LT_EOF
15199	;;
15200	*)
15201	  # For security reasons, it is highly recommended that you always
15202	  # use absolute paths for naming shared libraries, and exclude the
15203	  # DT_RUNPATH tag from executables and libraries.  But doing so
15204	  # requires that you compile everything twice, which is a pain.
15205	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15206	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15207	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15209	  else
15210	    ld_shlibs=no
15211	  fi
15212	;;
15213      esac
15214      ;;
15215
15216    sunos4*)
15217      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15218      wlarc=
15219      hardcode_direct=yes
15220      hardcode_shlibpath_var=no
15221      ;;
15222
15223    *)
15224      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15225	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15226	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15227      else
15228	ld_shlibs=no
15229      fi
15230      ;;
15231    esac
15232
15233    if test "$ld_shlibs" = no; then
15234      runpath_var=
15235      hardcode_libdir_flag_spec=
15236      export_dynamic_flag_spec=
15237      whole_archive_flag_spec=
15238    fi
15239  else
15240    # PORTME fill in a description of your system's linker (not GNU ld)
15241    case $host_os in
15242    aix3*)
15243      allow_undefined_flag=unsupported
15244      always_export_symbols=yes
15245      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'
15246      # Note: this linker hardcodes the directories in LIBPATH if there
15247      # are no directories specified by -L.
15248      hardcode_minus_L=yes
15249      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15250	# Neither direct hardcoding nor static linking is supported with a
15251	# broken collect2.
15252	hardcode_direct=unsupported
15253      fi
15254      ;;
15255
15256    aix[4-9]*)
15257      if test "$host_cpu" = ia64; then
15258	# On IA64, the linker does run time linking by default, so we don't
15259	# have to do anything special.
15260	aix_use_runtimelinking=no
15261	exp_sym_flag='-Bexport'
15262	no_entry_flag=""
15263      else
15264	# If we're using GNU nm, then we don't want the "-C" option.
15265	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15266	# Also, AIX nm treats weak defined symbols like other global
15267	# defined symbols, whereas GNU nm marks them as "W".
15268	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15269	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15270	else
15271	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15272	fi
15273	aix_use_runtimelinking=no
15274
15275	# Test if we are trying to use run time linking or normal
15276	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15277	# need to do runtime linking.
15278	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15279	  for ld_flag in $LDFLAGS; do
15280	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15281	    aix_use_runtimelinking=yes
15282	    break
15283	  fi
15284	  done
15285	  ;;
15286	esac
15287
15288	exp_sym_flag='-bexport'
15289	no_entry_flag='-bnoentry'
15290      fi
15291
15292      # When large executables or shared objects are built, AIX ld can
15293      # have problems creating the table of contents.  If linking a library
15294      # or program results in "error TOC overflow" add -mminimal-toc to
15295      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15296      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15297
15298      archive_cmds=''
15299      hardcode_direct=yes
15300      hardcode_direct_absolute=yes
15301      hardcode_libdir_separator=':'
15302      link_all_deplibs=yes
15303      file_list_spec='${wl}-f,'
15304
15305      if test "$GCC" = yes; then
15306	case $host_os in aix4.[012]|aix4.[012].*)
15307	# We only want to do this on AIX 4.2 and lower, the check
15308	# below for broken collect2 doesn't work under 4.3+
15309	  collect2name=`${CC} -print-prog-name=collect2`
15310	  if test -f "$collect2name" &&
15311	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15312	  then
15313	  # We have reworked collect2
15314	  :
15315	  else
15316	  # We have old collect2
15317	  hardcode_direct=unsupported
15318	  # It fails to find uninstalled libraries when the uninstalled
15319	  # path is not listed in the libpath.  Setting hardcode_minus_L
15320	  # to unsupported forces relinking
15321	  hardcode_minus_L=yes
15322	  hardcode_libdir_flag_spec='-L$libdir'
15323	  hardcode_libdir_separator=
15324	  fi
15325	  ;;
15326	esac
15327	shared_flag='-shared'
15328	if test "$aix_use_runtimelinking" = yes; then
15329	  shared_flag="$shared_flag "'${wl}-G'
15330	fi
15331      else
15332	# not using gcc
15333	if test "$host_cpu" = ia64; then
15334	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15335	# chokes on -Wl,-G. The following line is correct:
15336	  shared_flag='-G'
15337	else
15338	  if test "$aix_use_runtimelinking" = yes; then
15339	    shared_flag='${wl}-G'
15340	  else
15341	    shared_flag='${wl}-bM:SRE'
15342	  fi
15343	fi
15344      fi
15345
15346      export_dynamic_flag_spec='${wl}-bexpall'
15347      # It seems that -bexpall does not export symbols beginning with
15348      # underscore (_), so it is better to generate a list of symbols to export.
15349      always_export_symbols=yes
15350      if test "$aix_use_runtimelinking" = yes; then
15351	# Warning - without using the other runtime loading flags (-brtl),
15352	# -berok will link without error, but may produce a broken library.
15353	allow_undefined_flag='-berok'
15354        # Determine the default libpath from the value encoded in an
15355        # empty executable.
15356        if test "${lt_cv_aix_libpath+set}" = set; then
15357  aix_libpath=$lt_cv_aix_libpath
15358else
15359  if ${lt_cv_aix_libpath_+:} false; then :
15360  $as_echo_n "(cached) " >&6
15361else
15362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363/* end confdefs.h.  */
15364
15365int
15366main ()
15367{
15368
15369  ;
15370  return 0;
15371}
15372_ACEOF
15373if ac_fn_c_try_link "$LINENO"; then :
15374
15375  lt_aix_libpath_sed='
15376      /Import File Strings/,/^$/ {
15377	  /^0/ {
15378	      s/^0  *\([^ ]*\) *$/\1/
15379	      p
15380	  }
15381      }'
15382  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15383  # Check for a 64-bit object if we didn't find anything.
15384  if test -z "$lt_cv_aix_libpath_"; then
15385    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15386  fi
15387fi
15388rm -f core conftest.err conftest.$ac_objext \
15389    conftest$ac_exeext conftest.$ac_ext
15390  if test -z "$lt_cv_aix_libpath_"; then
15391    lt_cv_aix_libpath_="/usr/lib:/lib"
15392  fi
15393
15394fi
15395
15396  aix_libpath=$lt_cv_aix_libpath_
15397fi
15398
15399        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15400        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15401      else
15402	if test "$host_cpu" = ia64; then
15403	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15404	  allow_undefined_flag="-z nodefs"
15405	  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"
15406	else
15407	 # Determine the default libpath from the value encoded in an
15408	 # empty executable.
15409	 if test "${lt_cv_aix_libpath+set}" = set; then
15410  aix_libpath=$lt_cv_aix_libpath
15411else
15412  if ${lt_cv_aix_libpath_+:} false; then :
15413  $as_echo_n "(cached) " >&6
15414else
15415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416/* end confdefs.h.  */
15417
15418int
15419main ()
15420{
15421
15422  ;
15423  return 0;
15424}
15425_ACEOF
15426if ac_fn_c_try_link "$LINENO"; then :
15427
15428  lt_aix_libpath_sed='
15429      /Import File Strings/,/^$/ {
15430	  /^0/ {
15431	      s/^0  *\([^ ]*\) *$/\1/
15432	      p
15433	  }
15434      }'
15435  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15436  # Check for a 64-bit object if we didn't find anything.
15437  if test -z "$lt_cv_aix_libpath_"; then
15438    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15439  fi
15440fi
15441rm -f core conftest.err conftest.$ac_objext \
15442    conftest$ac_exeext conftest.$ac_ext
15443  if test -z "$lt_cv_aix_libpath_"; then
15444    lt_cv_aix_libpath_="/usr/lib:/lib"
15445  fi
15446
15447fi
15448
15449  aix_libpath=$lt_cv_aix_libpath_
15450fi
15451
15452	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15453	  # Warning - without using the other run time loading flags,
15454	  # -berok will link without error, but may produce a broken library.
15455	  no_undefined_flag=' ${wl}-bernotok'
15456	  allow_undefined_flag=' ${wl}-berok'
15457	  if test "$with_gnu_ld" = yes; then
15458	    # We only use this code for GNU lds that support --whole-archive.
15459	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15460	  else
15461	    # Exported symbols can be pulled into shared objects from archives
15462	    whole_archive_flag_spec='$convenience'
15463	  fi
15464	  archive_cmds_need_lc=yes
15465	  # This is similar to how AIX traditionally builds its shared libraries.
15466	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15467	fi
15468      fi
15469      ;;
15470
15471    amigaos*)
15472      case $host_cpu in
15473      powerpc)
15474            # see comment about AmigaOS4 .so support
15475            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15476            archive_expsym_cmds=''
15477        ;;
15478      m68k)
15479            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)'
15480            hardcode_libdir_flag_spec='-L$libdir'
15481            hardcode_minus_L=yes
15482        ;;
15483      esac
15484      ;;
15485
15486    bsdi[45]*)
15487      export_dynamic_flag_spec=-rdynamic
15488      ;;
15489
15490    cygwin* | mingw* | pw32* | cegcc*)
15491      # When not using gcc, we currently assume that we are using
15492      # Microsoft Visual C++.
15493      # hardcode_libdir_flag_spec is actually meaningless, as there is
15494      # no search path for DLLs.
15495      case $cc_basename in
15496      cl*)
15497	# Native MSVC
15498	hardcode_libdir_flag_spec=' '
15499	allow_undefined_flag=unsupported
15500	always_export_symbols=yes
15501	file_list_spec='@'
15502	# Tell ltmain to make .lib files, not .a files.
15503	libext=lib
15504	# Tell ltmain to make .dll files, not .so files.
15505	shrext_cmds=".dll"
15506	# FIXME: Setting linknames here is a bad hack.
15507	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15508	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15509	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15510	  else
15511	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15512	  fi~
15513	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15514	  linknames='
15515	# The linker will not automatically build a static lib if we build a DLL.
15516	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15517	enable_shared_with_static_runtimes=yes
15518	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15519	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15520	# Don't use ranlib
15521	old_postinstall_cmds='chmod 644 $oldlib'
15522	postlink_cmds='lt_outputfile="@OUTPUT@"~
15523	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15524	  case $lt_outputfile in
15525	    *.exe|*.EXE) ;;
15526	    *)
15527	      lt_outputfile="$lt_outputfile.exe"
15528	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15529	      ;;
15530	  esac~
15531	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15532	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15533	    $RM "$lt_outputfile.manifest";
15534	  fi'
15535	;;
15536      *)
15537	# Assume MSVC wrapper
15538	hardcode_libdir_flag_spec=' '
15539	allow_undefined_flag=unsupported
15540	# Tell ltmain to make .lib files, not .a files.
15541	libext=lib
15542	# Tell ltmain to make .dll files, not .so files.
15543	shrext_cmds=".dll"
15544	# FIXME: Setting linknames here is a bad hack.
15545	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15546	# The linker will automatically build a .lib file if we build a DLL.
15547	old_archive_from_new_cmds='true'
15548	# FIXME: Should let the user specify the lib program.
15549	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15550	enable_shared_with_static_runtimes=yes
15551	;;
15552      esac
15553      ;;
15554
15555    darwin* | rhapsody*)
15556
15557
15558  archive_cmds_need_lc=no
15559  hardcode_direct=no
15560  hardcode_automatic=yes
15561  hardcode_shlibpath_var=unsupported
15562  if test "$lt_cv_ld_force_load" = "yes"; then
15563    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\"`'
15564
15565  else
15566    whole_archive_flag_spec=''
15567  fi
15568  link_all_deplibs=yes
15569  allow_undefined_flag="$_lt_dar_allow_undefined"
15570  case $cc_basename in
15571     ifort*) _lt_dar_can_shared=yes ;;
15572     *) _lt_dar_can_shared=$GCC ;;
15573  esac
15574  if test "$_lt_dar_can_shared" = "yes"; then
15575    output_verbose_link_cmd=func_echo_all
15576    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15577    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15578    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}"
15579    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}"
15580
15581  else
15582  ld_shlibs=no
15583  fi
15584
15585      ;;
15586
15587    dgux*)
15588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15589      hardcode_libdir_flag_spec='-L$libdir'
15590      hardcode_shlibpath_var=no
15591      ;;
15592
15593    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15594    # support.  Future versions do this automatically, but an explicit c++rt0.o
15595    # does not break anything, and helps significantly (at the cost of a little
15596    # extra space).
15597    freebsd2.2*)
15598      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15599      hardcode_libdir_flag_spec='-R$libdir'
15600      hardcode_direct=yes
15601      hardcode_shlibpath_var=no
15602      ;;
15603
15604    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15605    freebsd2.*)
15606      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15607      hardcode_direct=yes
15608      hardcode_minus_L=yes
15609      hardcode_shlibpath_var=no
15610      ;;
15611
15612    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15613    freebsd* | dragonfly*)
15614      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15615      hardcode_libdir_flag_spec='-R$libdir'
15616      hardcode_direct=yes
15617      hardcode_shlibpath_var=no
15618      ;;
15619
15620    hpux9*)
15621      if test "$GCC" = yes; then
15622	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15623      else
15624	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15625      fi
15626      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15627      hardcode_libdir_separator=:
15628      hardcode_direct=yes
15629
15630      # hardcode_minus_L: Not really in the search PATH,
15631      # but as the default location of the library.
15632      hardcode_minus_L=yes
15633      export_dynamic_flag_spec='${wl}-E'
15634      ;;
15635
15636    hpux10*)
15637      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15638	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15639      else
15640	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15641      fi
15642      if test "$with_gnu_ld" = no; then
15643	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15644	hardcode_libdir_separator=:
15645	hardcode_direct=yes
15646	hardcode_direct_absolute=yes
15647	export_dynamic_flag_spec='${wl}-E'
15648	# hardcode_minus_L: Not really in the search PATH,
15649	# but as the default location of the library.
15650	hardcode_minus_L=yes
15651      fi
15652      ;;
15653
15654    hpux11*)
15655      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15656	case $host_cpu in
15657	hppa*64*)
15658	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15659	  ;;
15660	ia64*)
15661	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15662	  ;;
15663	*)
15664	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15665	  ;;
15666	esac
15667      else
15668	case $host_cpu in
15669	hppa*64*)
15670	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671	  ;;
15672	ia64*)
15673	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15674	  ;;
15675	*)
15676
15677	  # Older versions of the 11.00 compiler do not understand -b yet
15678	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15679	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15680$as_echo_n "checking if $CC understands -b... " >&6; }
15681if ${lt_cv_prog_compiler__b+:} false; then :
15682  $as_echo_n "(cached) " >&6
15683else
15684  lt_cv_prog_compiler__b=no
15685   save_LDFLAGS="$LDFLAGS"
15686   LDFLAGS="$LDFLAGS -b"
15687   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15688   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15689     # The linker can only warn and ignore the option if not recognized
15690     # So say no if there are warnings
15691     if test -s conftest.err; then
15692       # Append any errors to the config.log.
15693       cat conftest.err 1>&5
15694       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15695       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15696       if diff conftest.exp conftest.er2 >/dev/null; then
15697         lt_cv_prog_compiler__b=yes
15698       fi
15699     else
15700       lt_cv_prog_compiler__b=yes
15701     fi
15702   fi
15703   $RM -r conftest*
15704   LDFLAGS="$save_LDFLAGS"
15705
15706fi
15707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15708$as_echo "$lt_cv_prog_compiler__b" >&6; }
15709
15710if test x"$lt_cv_prog_compiler__b" = xyes; then
15711    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15712else
15713    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15714fi
15715
15716	  ;;
15717	esac
15718      fi
15719      if test "$with_gnu_ld" = no; then
15720	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15721	hardcode_libdir_separator=:
15722
15723	case $host_cpu in
15724	hppa*64*|ia64*)
15725	  hardcode_direct=no
15726	  hardcode_shlibpath_var=no
15727	  ;;
15728	*)
15729	  hardcode_direct=yes
15730	  hardcode_direct_absolute=yes
15731	  export_dynamic_flag_spec='${wl}-E'
15732
15733	  # hardcode_minus_L: Not really in the search PATH,
15734	  # but as the default location of the library.
15735	  hardcode_minus_L=yes
15736	  ;;
15737	esac
15738      fi
15739      ;;
15740
15741    irix5* | irix6* | nonstopux*)
15742      if test "$GCC" = yes; then
15743	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'
15744	# Try to use the -exported_symbol ld option, if it does not
15745	# work, assume that -exports_file does not work either and
15746	# implicitly export all symbols.
15747	# This should be the same for all languages, so no per-tag cache variable.
15748	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15749$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15750if ${lt_cv_irix_exported_symbol+:} false; then :
15751  $as_echo_n "(cached) " >&6
15752else
15753  save_LDFLAGS="$LDFLAGS"
15754	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15755	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756/* end confdefs.h.  */
15757int foo (void) { return 0; }
15758_ACEOF
15759if ac_fn_c_try_link "$LINENO"; then :
15760  lt_cv_irix_exported_symbol=yes
15761else
15762  lt_cv_irix_exported_symbol=no
15763fi
15764rm -f core conftest.err conftest.$ac_objext \
15765    conftest$ac_exeext conftest.$ac_ext
15766           LDFLAGS="$save_LDFLAGS"
15767fi
15768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15769$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15770	if test "$lt_cv_irix_exported_symbol" = yes; then
15771          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'
15772	fi
15773      else
15774	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'
15775	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'
15776      fi
15777      archive_cmds_need_lc='no'
15778      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15779      hardcode_libdir_separator=:
15780      inherit_rpath=yes
15781      link_all_deplibs=yes
15782      ;;
15783
15784    netbsd*)
15785      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15786	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15787      else
15788	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15789      fi
15790      hardcode_libdir_flag_spec='-R$libdir'
15791      hardcode_direct=yes
15792      hardcode_shlibpath_var=no
15793      ;;
15794
15795    newsos6)
15796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797      hardcode_direct=yes
15798      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15799      hardcode_libdir_separator=:
15800      hardcode_shlibpath_var=no
15801      ;;
15802
15803    *nto* | *qnx*)
15804      ;;
15805
15806    openbsd*)
15807      if test -f /usr/libexec/ld.so; then
15808	hardcode_direct=yes
15809	hardcode_shlibpath_var=no
15810	hardcode_direct_absolute=yes
15811	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15812	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15813	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15814	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15815	  export_dynamic_flag_spec='${wl}-E'
15816	else
15817	  case $host_os in
15818	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15819	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15820	     hardcode_libdir_flag_spec='-R$libdir'
15821	     ;;
15822	   *)
15823	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15824	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15825	     ;;
15826	  esac
15827	fi
15828      else
15829	ld_shlibs=no
15830      fi
15831      ;;
15832
15833    os2*)
15834      hardcode_libdir_flag_spec='-L$libdir'
15835      hardcode_minus_L=yes
15836      allow_undefined_flag=unsupported
15837      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15838      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15839      ;;
15840
15841    osf3*)
15842      if test "$GCC" = yes; then
15843	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15844	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'
15845      else
15846	allow_undefined_flag=' -expect_unresolved \*'
15847	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'
15848      fi
15849      archive_cmds_need_lc='no'
15850      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15851      hardcode_libdir_separator=:
15852      ;;
15853
15854    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15855      if test "$GCC" = yes; then
15856	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15857	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'
15858	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15859      else
15860	allow_undefined_flag=' -expect_unresolved \*'
15861	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'
15862	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~
15863	$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'
15864
15865	# Both c and cxx compiler support -rpath directly
15866	hardcode_libdir_flag_spec='-rpath $libdir'
15867      fi
15868      archive_cmds_need_lc='no'
15869      hardcode_libdir_separator=:
15870      ;;
15871
15872    solaris*)
15873      no_undefined_flag=' -z defs'
15874      if test "$GCC" = yes; then
15875	wlarc='${wl}'
15876	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15878	  $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'
15879      else
15880	case `$CC -V 2>&1` in
15881	*"Compilers 5.0"*)
15882	  wlarc=''
15883	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15884	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15885	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15886	  ;;
15887	*)
15888	  wlarc='${wl}'
15889	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15890	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15891	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15892	  ;;
15893	esac
15894      fi
15895      hardcode_libdir_flag_spec='-R$libdir'
15896      hardcode_shlibpath_var=no
15897      case $host_os in
15898      solaris2.[0-5] | solaris2.[0-5].*) ;;
15899      *)
15900	# The compiler driver will combine and reorder linker options,
15901	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15902	# but is careful enough not to reorder.
15903	# Supported since Solaris 2.6 (maybe 2.5.1?)
15904	if test "$GCC" = yes; then
15905	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15906	else
15907	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15908	fi
15909	;;
15910      esac
15911      link_all_deplibs=yes
15912      ;;
15913
15914    sunos4*)
15915      if test "x$host_vendor" = xsequent; then
15916	# Use $CC to link under sequent, because it throws in some extra .o
15917	# files that make .init and .fini sections work.
15918	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15919      else
15920	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15921      fi
15922      hardcode_libdir_flag_spec='-L$libdir'
15923      hardcode_direct=yes
15924      hardcode_minus_L=yes
15925      hardcode_shlibpath_var=no
15926      ;;
15927
15928    sysv4)
15929      case $host_vendor in
15930	sni)
15931	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932	  hardcode_direct=yes # is this really true???
15933	;;
15934	siemens)
15935	  ## LD is ld it makes a PLAMLIB
15936	  ## CC just makes a GrossModule.
15937	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15938	  reload_cmds='$CC -r -o $output$reload_objs'
15939	  hardcode_direct=no
15940        ;;
15941	motorola)
15942	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15944	;;
15945      esac
15946      runpath_var='LD_RUN_PATH'
15947      hardcode_shlibpath_var=no
15948      ;;
15949
15950    sysv4.3*)
15951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952      hardcode_shlibpath_var=no
15953      export_dynamic_flag_spec='-Bexport'
15954      ;;
15955
15956    sysv4*MP*)
15957      if test -d /usr/nec; then
15958	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15959	hardcode_shlibpath_var=no
15960	runpath_var=LD_RUN_PATH
15961	hardcode_runpath_var=yes
15962	ld_shlibs=yes
15963      fi
15964      ;;
15965
15966    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15967      no_undefined_flag='${wl}-z,text'
15968      archive_cmds_need_lc=no
15969      hardcode_shlibpath_var=no
15970      runpath_var='LD_RUN_PATH'
15971
15972      if test "$GCC" = yes; then
15973	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15974	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15975      else
15976	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978      fi
15979      ;;
15980
15981    sysv5* | sco3.2v5* | sco5v6*)
15982      # Note: We can NOT use -z defs as we might desire, because we do not
15983      # link with -lc, and that would cause any symbols used from libc to
15984      # always be unresolved, which means just about no library would
15985      # ever link correctly.  If we're not using GNU ld we use -z text
15986      # though, which does catch some bad symbols but isn't as heavy-handed
15987      # as -z defs.
15988      no_undefined_flag='${wl}-z,text'
15989      allow_undefined_flag='${wl}-z,nodefs'
15990      archive_cmds_need_lc=no
15991      hardcode_shlibpath_var=no
15992      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15993      hardcode_libdir_separator=':'
15994      link_all_deplibs=yes
15995      export_dynamic_flag_spec='${wl}-Bexport'
15996      runpath_var='LD_RUN_PATH'
15997
15998      if test "$GCC" = yes; then
15999	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16000	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16001      else
16002	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16003	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16004      fi
16005      ;;
16006
16007    uts4*)
16008      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009      hardcode_libdir_flag_spec='-L$libdir'
16010      hardcode_shlibpath_var=no
16011      ;;
16012
16013    *)
16014      ld_shlibs=no
16015      ;;
16016    esac
16017
16018    if test x$host_vendor = xsni; then
16019      case $host in
16020      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16021	export_dynamic_flag_spec='${wl}-Blargedynsym'
16022	;;
16023      esac
16024    fi
16025  fi
16026
16027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16028$as_echo "$ld_shlibs" >&6; }
16029test "$ld_shlibs" = no && can_build_shared=no
16030
16031with_gnu_ld=$with_gnu_ld
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047#
16048# Do we need to explicitly link libc?
16049#
16050case "x$archive_cmds_need_lc" in
16051x|xyes)
16052  # Assume -lc should be added
16053  archive_cmds_need_lc=yes
16054
16055  if test "$enable_shared" = yes && test "$GCC" = yes; then
16056    case $archive_cmds in
16057    *'~'*)
16058      # FIXME: we may have to deal with multi-command sequences.
16059      ;;
16060    '$CC '*)
16061      # Test whether the compiler implicitly links with -lc since on some
16062      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16063      # to ld, don't add -lc before -lgcc.
16064      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16065$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16066if ${lt_cv_archive_cmds_need_lc+:} false; then :
16067  $as_echo_n "(cached) " >&6
16068else
16069  $RM conftest*
16070	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16071
16072	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16073  (eval $ac_compile) 2>&5
16074  ac_status=$?
16075  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16076  test $ac_status = 0; } 2>conftest.err; then
16077	  soname=conftest
16078	  lib=conftest
16079	  libobjs=conftest.$ac_objext
16080	  deplibs=
16081	  wl=$lt_prog_compiler_wl
16082	  pic_flag=$lt_prog_compiler_pic
16083	  compiler_flags=-v
16084	  linker_flags=-v
16085	  verstring=
16086	  output_objdir=.
16087	  libname=conftest
16088	  lt_save_allow_undefined_flag=$allow_undefined_flag
16089	  allow_undefined_flag=
16090	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16091  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16092  ac_status=$?
16093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16094  test $ac_status = 0; }
16095	  then
16096	    lt_cv_archive_cmds_need_lc=no
16097	  else
16098	    lt_cv_archive_cmds_need_lc=yes
16099	  fi
16100	  allow_undefined_flag=$lt_save_allow_undefined_flag
16101	else
16102	  cat conftest.err 1>&5
16103	fi
16104	$RM conftest*
16105
16106fi
16107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16108$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16109      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16110      ;;
16111    esac
16112  fi
16113  ;;
16114esac
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16268$as_echo_n "checking dynamic linker characteristics... " >&6; }
16269
16270if test "$GCC" = yes; then
16271  case $host_os in
16272    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16273    *) lt_awk_arg="/^libraries:/" ;;
16274  esac
16275  case $host_os in
16276    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16277    *) lt_sed_strip_eq="s,=/,/,g" ;;
16278  esac
16279  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16280  case $lt_search_path_spec in
16281  *\;*)
16282    # if the path contains ";" then we assume it to be the separator
16283    # otherwise default to the standard path separator (i.e. ":") - it is
16284    # assumed that no part of a normal pathname contains ";" but that should
16285    # okay in the real world where ";" in dirpaths is itself problematic.
16286    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16287    ;;
16288  *)
16289    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16290    ;;
16291  esac
16292  # Ok, now we have the path, separated by spaces, we can step through it
16293  # and add multilib dir if necessary.
16294  lt_tmp_lt_search_path_spec=
16295  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16296  for lt_sys_path in $lt_search_path_spec; do
16297    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16298      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16299    else
16300      test -d "$lt_sys_path" && \
16301	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16302    fi
16303  done
16304  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16305BEGIN {RS=" "; FS="/|\n";} {
16306  lt_foo="";
16307  lt_count=0;
16308  for (lt_i = NF; lt_i > 0; lt_i--) {
16309    if ($lt_i != "" && $lt_i != ".") {
16310      if ($lt_i == "..") {
16311        lt_count++;
16312      } else {
16313        if (lt_count == 0) {
16314          lt_foo="/" $lt_i lt_foo;
16315        } else {
16316          lt_count--;
16317        }
16318      }
16319    }
16320  }
16321  if (lt_foo != "") { lt_freq[lt_foo]++; }
16322  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16323}'`
16324  # AWK program above erroneously prepends '/' to C:/dos/paths
16325  # for these hosts.
16326  case $host_os in
16327    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16328      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16329  esac
16330  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16331else
16332  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16333fi
16334library_names_spec=
16335libname_spec='lib$name'
16336soname_spec=
16337shrext_cmds=".so"
16338postinstall_cmds=
16339postuninstall_cmds=
16340finish_cmds=
16341finish_eval=
16342shlibpath_var=
16343shlibpath_overrides_runpath=unknown
16344version_type=none
16345dynamic_linker="$host_os ld.so"
16346sys_lib_dlsearch_path_spec="/lib /usr/lib"
16347need_lib_prefix=unknown
16348hardcode_into_libs=no
16349
16350# when you set need_version to no, make sure it does not cause -set_version
16351# flags to be left without arguments
16352need_version=unknown
16353
16354case $host_os in
16355aix3*)
16356  version_type=linux # correct to gnu/linux during the next big refactor
16357  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16358  shlibpath_var=LIBPATH
16359
16360  # AIX 3 has no versioning support, so we append a major version to the name.
16361  soname_spec='${libname}${release}${shared_ext}$major'
16362  ;;
16363
16364aix[4-9]*)
16365  version_type=linux # correct to gnu/linux during the next big refactor
16366  need_lib_prefix=no
16367  need_version=no
16368  hardcode_into_libs=yes
16369  if test "$host_cpu" = ia64; then
16370    # AIX 5 supports IA64
16371    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16372    shlibpath_var=LD_LIBRARY_PATH
16373  else
16374    # With GCC up to 2.95.x, collect2 would create an import file
16375    # for dependence libraries.  The import file would start with
16376    # the line `#! .'.  This would cause the generated library to
16377    # depend on `.', always an invalid library.  This was fixed in
16378    # development snapshots of GCC prior to 3.0.
16379    case $host_os in
16380      aix4 | aix4.[01] | aix4.[01].*)
16381      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16382	   echo ' yes '
16383	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16384	:
16385      else
16386	can_build_shared=no
16387      fi
16388      ;;
16389    esac
16390    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16391    # soname into executable. Probably we can add versioning support to
16392    # collect2, so additional links can be useful in future.
16393    if test "$aix_use_runtimelinking" = yes; then
16394      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16395      # instead of lib<name>.a to let people know that these are not
16396      # typical AIX shared libraries.
16397      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398    else
16399      # We preserve .a as extension for shared libraries through AIX4.2
16400      # and later when we are not doing run time linking.
16401      library_names_spec='${libname}${release}.a $libname.a'
16402      soname_spec='${libname}${release}${shared_ext}$major'
16403    fi
16404    shlibpath_var=LIBPATH
16405  fi
16406  ;;
16407
16408amigaos*)
16409  case $host_cpu in
16410  powerpc)
16411    # Since July 2007 AmigaOS4 officially supports .so libraries.
16412    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16413    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414    ;;
16415  m68k)
16416    library_names_spec='$libname.ixlibrary $libname.a'
16417    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16418    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16419    ;;
16420  esac
16421  ;;
16422
16423beos*)
16424  library_names_spec='${libname}${shared_ext}'
16425  dynamic_linker="$host_os ld.so"
16426  shlibpath_var=LIBRARY_PATH
16427  ;;
16428
16429bsdi[45]*)
16430  version_type=linux # correct to gnu/linux during the next big refactor
16431  need_version=no
16432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16433  soname_spec='${libname}${release}${shared_ext}$major'
16434  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16435  shlibpath_var=LD_LIBRARY_PATH
16436  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16437  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16438  # the default ld.so.conf also contains /usr/contrib/lib and
16439  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16440  # libtool to hard-code these into programs
16441  ;;
16442
16443cygwin* | mingw* | pw32* | cegcc*)
16444  version_type=windows
16445  shrext_cmds=".dll"
16446  need_version=no
16447  need_lib_prefix=no
16448
16449  case $GCC,$cc_basename in
16450  yes,*)
16451    # gcc
16452    library_names_spec='$libname.dll.a'
16453    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16454    postinstall_cmds='base_file=`basename \${file}`~
16455      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16456      dldir=$destdir/`dirname \$dlpath`~
16457      test -d \$dldir || mkdir -p \$dldir~
16458      $install_prog $dir/$dlname \$dldir/$dlname~
16459      chmod a+x \$dldir/$dlname~
16460      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16461        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16462      fi'
16463    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16464      dlpath=$dir/\$dldll~
16465       $RM \$dlpath'
16466    shlibpath_overrides_runpath=yes
16467
16468    case $host_os in
16469    cygwin*)
16470      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16471      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16472
16473      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16474      ;;
16475    mingw* | cegcc*)
16476      # MinGW DLLs use traditional 'lib' prefix
16477      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16478      ;;
16479    pw32*)
16480      # pw32 DLLs use 'pw' prefix rather than 'lib'
16481      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16482      ;;
16483    esac
16484    dynamic_linker='Win32 ld.exe'
16485    ;;
16486
16487  *,cl*)
16488    # Native MSVC
16489    libname_spec='$name'
16490    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16491    library_names_spec='${libname}.dll.lib'
16492
16493    case $build_os in
16494    mingw*)
16495      sys_lib_search_path_spec=
16496      lt_save_ifs=$IFS
16497      IFS=';'
16498      for lt_path in $LIB
16499      do
16500        IFS=$lt_save_ifs
16501        # Let DOS variable expansion print the short 8.3 style file name.
16502        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16503        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16504      done
16505      IFS=$lt_save_ifs
16506      # Convert to MSYS style.
16507      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16508      ;;
16509    cygwin*)
16510      # Convert to unix form, then to dos form, then back to unix form
16511      # but this time dos style (no spaces!) so that the unix form looks
16512      # like /cygdrive/c/PROGRA~1:/cygdr...
16513      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16514      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16515      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16516      ;;
16517    *)
16518      sys_lib_search_path_spec="$LIB"
16519      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16520        # It is most probably a Windows format PATH.
16521        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16522      else
16523        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16524      fi
16525      # FIXME: find the short name or the path components, as spaces are
16526      # common. (e.g. "Program Files" -> "PROGRA~1")
16527      ;;
16528    esac
16529
16530    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16531    postinstall_cmds='base_file=`basename \${file}`~
16532      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16533      dldir=$destdir/`dirname \$dlpath`~
16534      test -d \$dldir || mkdir -p \$dldir~
16535      $install_prog $dir/$dlname \$dldir/$dlname'
16536    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16537      dlpath=$dir/\$dldll~
16538       $RM \$dlpath'
16539    shlibpath_overrides_runpath=yes
16540    dynamic_linker='Win32 link.exe'
16541    ;;
16542
16543  *)
16544    # Assume MSVC wrapper
16545    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16546    dynamic_linker='Win32 ld.exe'
16547    ;;
16548  esac
16549  # FIXME: first we should search . and the directory the executable is in
16550  shlibpath_var=PATH
16551  ;;
16552
16553darwin* | rhapsody*)
16554  dynamic_linker="$host_os dyld"
16555  version_type=darwin
16556  need_lib_prefix=no
16557  need_version=no
16558  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16559  soname_spec='${libname}${release}${major}$shared_ext'
16560  shlibpath_overrides_runpath=yes
16561  shlibpath_var=DYLD_LIBRARY_PATH
16562  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16563
16564  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16565  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16566  ;;
16567
16568dgux*)
16569  version_type=linux # correct to gnu/linux during the next big refactor
16570  need_lib_prefix=no
16571  need_version=no
16572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16573  soname_spec='${libname}${release}${shared_ext}$major'
16574  shlibpath_var=LD_LIBRARY_PATH
16575  ;;
16576
16577freebsd* | dragonfly*)
16578  # DragonFly does not have aout.  When/if they implement a new
16579  # versioning mechanism, adjust this.
16580  if test -x /usr/bin/objformat; then
16581    objformat=`/usr/bin/objformat`
16582  else
16583    case $host_os in
16584    freebsd[23].*) objformat=aout ;;
16585    *) objformat=elf ;;
16586    esac
16587  fi
16588  version_type=freebsd-$objformat
16589  case $version_type in
16590    freebsd-elf*)
16591      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16592      need_version=no
16593      need_lib_prefix=no
16594      ;;
16595    freebsd-*)
16596      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16597      need_version=yes
16598      ;;
16599  esac
16600  shlibpath_var=LD_LIBRARY_PATH
16601  case $host_os in
16602  freebsd2.*)
16603    shlibpath_overrides_runpath=yes
16604    ;;
16605  freebsd3.[01]* | freebsdelf3.[01]*)
16606    shlibpath_overrides_runpath=yes
16607    hardcode_into_libs=yes
16608    ;;
16609  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16610  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16611    shlibpath_overrides_runpath=no
16612    hardcode_into_libs=yes
16613    ;;
16614  *) # from 4.6 on, and DragonFly
16615    shlibpath_overrides_runpath=yes
16616    hardcode_into_libs=yes
16617    ;;
16618  esac
16619  ;;
16620
16621gnu*)
16622  version_type=linux # correct to gnu/linux during the next big refactor
16623  need_lib_prefix=no
16624  need_version=no
16625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16626  soname_spec='${libname}${release}${shared_ext}$major'
16627  shlibpath_var=LD_LIBRARY_PATH
16628  shlibpath_overrides_runpath=no
16629  hardcode_into_libs=yes
16630  ;;
16631
16632haiku*)
16633  version_type=linux # correct to gnu/linux during the next big refactor
16634  need_lib_prefix=no
16635  need_version=no
16636  dynamic_linker="$host_os runtime_loader"
16637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16638  soname_spec='${libname}${release}${shared_ext}$major'
16639  shlibpath_var=LIBRARY_PATH
16640  shlibpath_overrides_runpath=yes
16641  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16642  hardcode_into_libs=yes
16643  ;;
16644
16645hpux9* | hpux10* | hpux11*)
16646  # Give a soname corresponding to the major version so that dld.sl refuses to
16647  # link against other versions.
16648  version_type=sunos
16649  need_lib_prefix=no
16650  need_version=no
16651  case $host_cpu in
16652  ia64*)
16653    shrext_cmds='.so'
16654    hardcode_into_libs=yes
16655    dynamic_linker="$host_os dld.so"
16656    shlibpath_var=LD_LIBRARY_PATH
16657    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16658    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659    soname_spec='${libname}${release}${shared_ext}$major'
16660    if test "X$HPUX_IA64_MODE" = X32; then
16661      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16662    else
16663      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16664    fi
16665    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16666    ;;
16667  hppa*64*)
16668    shrext_cmds='.sl'
16669    hardcode_into_libs=yes
16670    dynamic_linker="$host_os dld.sl"
16671    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16672    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16673    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16674    soname_spec='${libname}${release}${shared_ext}$major'
16675    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16676    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16677    ;;
16678  *)
16679    shrext_cmds='.sl'
16680    dynamic_linker="$host_os dld.sl"
16681    shlibpath_var=SHLIB_PATH
16682    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16683    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16684    soname_spec='${libname}${release}${shared_ext}$major'
16685    ;;
16686  esac
16687  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16688  postinstall_cmds='chmod 555 $lib'
16689  # or fails outright, so override atomically:
16690  install_override_mode=555
16691  ;;
16692
16693interix[3-9]*)
16694  version_type=linux # correct to gnu/linux during the next big refactor
16695  need_lib_prefix=no
16696  need_version=no
16697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16698  soname_spec='${libname}${release}${shared_ext}$major'
16699  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16700  shlibpath_var=LD_LIBRARY_PATH
16701  shlibpath_overrides_runpath=no
16702  hardcode_into_libs=yes
16703  ;;
16704
16705irix5* | irix6* | nonstopux*)
16706  case $host_os in
16707    nonstopux*) version_type=nonstopux ;;
16708    *)
16709	if test "$lt_cv_prog_gnu_ld" = yes; then
16710		version_type=linux # correct to gnu/linux during the next big refactor
16711	else
16712		version_type=irix
16713	fi ;;
16714  esac
16715  need_lib_prefix=no
16716  need_version=no
16717  soname_spec='${libname}${release}${shared_ext}$major'
16718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16719  case $host_os in
16720  irix5* | nonstopux*)
16721    libsuff= shlibsuff=
16722    ;;
16723  *)
16724    case $LD in # libtool.m4 will add one of these switches to LD
16725    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16726      libsuff= shlibsuff= libmagic=32-bit;;
16727    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16728      libsuff=32 shlibsuff=N32 libmagic=N32;;
16729    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16730      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16731    *) libsuff= shlibsuff= libmagic=never-match;;
16732    esac
16733    ;;
16734  esac
16735  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16736  shlibpath_overrides_runpath=no
16737  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16738  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16739  hardcode_into_libs=yes
16740  ;;
16741
16742# No shared lib support for Linux oldld, aout, or coff.
16743linux*oldld* | linux*aout* | linux*coff*)
16744  dynamic_linker=no
16745  ;;
16746
16747# This must be glibc/ELF.
16748linux* | k*bsd*-gnu | kopensolaris*-gnu)
16749  version_type=linux # correct to gnu/linux during the next big refactor
16750  need_lib_prefix=no
16751  need_version=no
16752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753  soname_spec='${libname}${release}${shared_ext}$major'
16754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16755  shlibpath_var=LD_LIBRARY_PATH
16756  shlibpath_overrides_runpath=no
16757
16758  # Some binutils ld are patched to set DT_RUNPATH
16759  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16760  $as_echo_n "(cached) " >&6
16761else
16762  lt_cv_shlibpath_overrides_runpath=no
16763    save_LDFLAGS=$LDFLAGS
16764    save_libdir=$libdir
16765    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16766	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768/* end confdefs.h.  */
16769
16770int
16771main ()
16772{
16773
16774  ;
16775  return 0;
16776}
16777_ACEOF
16778if ac_fn_c_try_link "$LINENO"; then :
16779  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16780  lt_cv_shlibpath_overrides_runpath=yes
16781fi
16782fi
16783rm -f core conftest.err conftest.$ac_objext \
16784    conftest$ac_exeext conftest.$ac_ext
16785    LDFLAGS=$save_LDFLAGS
16786    libdir=$save_libdir
16787
16788fi
16789
16790  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16791
16792  # This implies no fast_install, which is unacceptable.
16793  # Some rework will be needed to allow for fast_install
16794  # before this can be enabled.
16795  hardcode_into_libs=yes
16796
16797  # Add ABI-specific directories to the system library path.
16798  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16799
16800  # Append ld.so.conf contents to the search path
16801  if test -f /etc/ld.so.conf; then
16802    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' ' '`
16803    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16804
16805  fi
16806
16807  # We used to test for /lib/ld.so.1 and disable shared libraries on
16808  # powerpc, because MkLinux only supported shared libraries with the
16809  # GNU dynamic linker.  Since this was broken with cross compilers,
16810  # most powerpc-linux boxes support dynamic linking these days and
16811  # people can always --disable-shared, the test was removed, and we
16812  # assume the GNU/Linux dynamic linker is in use.
16813  dynamic_linker='GNU/Linux ld.so'
16814  ;;
16815
16816netbsd*)
16817  version_type=sunos
16818  need_lib_prefix=no
16819  need_version=no
16820  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16821    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16822    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16823    dynamic_linker='NetBSD (a.out) ld.so'
16824  else
16825    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16826    soname_spec='${libname}${release}${shared_ext}$major'
16827    dynamic_linker='NetBSD ld.elf_so'
16828  fi
16829  shlibpath_var=LD_LIBRARY_PATH
16830  shlibpath_overrides_runpath=yes
16831  hardcode_into_libs=yes
16832  ;;
16833
16834newsos6)
16835  version_type=linux # correct to gnu/linux during the next big refactor
16836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16837  shlibpath_var=LD_LIBRARY_PATH
16838  shlibpath_overrides_runpath=yes
16839  ;;
16840
16841*nto* | *qnx*)
16842  version_type=qnx
16843  need_lib_prefix=no
16844  need_version=no
16845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16846  soname_spec='${libname}${release}${shared_ext}$major'
16847  shlibpath_var=LD_LIBRARY_PATH
16848  shlibpath_overrides_runpath=no
16849  hardcode_into_libs=yes
16850  dynamic_linker='ldqnx.so'
16851  ;;
16852
16853openbsd*)
16854  version_type=sunos
16855  sys_lib_dlsearch_path_spec="/usr/lib"
16856  need_lib_prefix=no
16857  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16858  case $host_os in
16859    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16860    *)				need_version=no  ;;
16861  esac
16862  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16864  shlibpath_var=LD_LIBRARY_PATH
16865  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16866    case $host_os in
16867      openbsd2.[89] | openbsd2.[89].*)
16868	shlibpath_overrides_runpath=no
16869	;;
16870      *)
16871	shlibpath_overrides_runpath=yes
16872	;;
16873      esac
16874  else
16875    shlibpath_overrides_runpath=yes
16876  fi
16877  ;;
16878
16879os2*)
16880  libname_spec='$name'
16881  shrext_cmds=".dll"
16882  need_lib_prefix=no
16883  library_names_spec='$libname${shared_ext} $libname.a'
16884  dynamic_linker='OS/2 ld.exe'
16885  shlibpath_var=LIBPATH
16886  ;;
16887
16888osf3* | osf4* | osf5*)
16889  version_type=osf
16890  need_lib_prefix=no
16891  need_version=no
16892  soname_spec='${libname}${release}${shared_ext}$major'
16893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894  shlibpath_var=LD_LIBRARY_PATH
16895  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16896  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16897  ;;
16898
16899rdos*)
16900  dynamic_linker=no
16901  ;;
16902
16903solaris*)
16904  version_type=linux # correct to gnu/linux during the next big refactor
16905  need_lib_prefix=no
16906  need_version=no
16907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908  soname_spec='${libname}${release}${shared_ext}$major'
16909  shlibpath_var=LD_LIBRARY_PATH
16910  shlibpath_overrides_runpath=yes
16911  hardcode_into_libs=yes
16912  # ldd complains unless libraries are executable
16913  postinstall_cmds='chmod +x $lib'
16914  ;;
16915
16916sunos4*)
16917  version_type=sunos
16918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16919  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16920  shlibpath_var=LD_LIBRARY_PATH
16921  shlibpath_overrides_runpath=yes
16922  if test "$with_gnu_ld" = yes; then
16923    need_lib_prefix=no
16924  fi
16925  need_version=yes
16926  ;;
16927
16928sysv4 | sysv4.3*)
16929  version_type=linux # correct to gnu/linux during the next big refactor
16930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931  soname_spec='${libname}${release}${shared_ext}$major'
16932  shlibpath_var=LD_LIBRARY_PATH
16933  case $host_vendor in
16934    sni)
16935      shlibpath_overrides_runpath=no
16936      need_lib_prefix=no
16937      runpath_var=LD_RUN_PATH
16938      ;;
16939    siemens)
16940      need_lib_prefix=no
16941      ;;
16942    motorola)
16943      need_lib_prefix=no
16944      need_version=no
16945      shlibpath_overrides_runpath=no
16946      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16947      ;;
16948  esac
16949  ;;
16950
16951sysv4*MP*)
16952  if test -d /usr/nec ;then
16953    version_type=linux # correct to gnu/linux during the next big refactor
16954    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16955    soname_spec='$libname${shared_ext}.$major'
16956    shlibpath_var=LD_LIBRARY_PATH
16957  fi
16958  ;;
16959
16960sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16961  version_type=freebsd-elf
16962  need_lib_prefix=no
16963  need_version=no
16964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16965  soname_spec='${libname}${release}${shared_ext}$major'
16966  shlibpath_var=LD_LIBRARY_PATH
16967  shlibpath_overrides_runpath=yes
16968  hardcode_into_libs=yes
16969  if test "$with_gnu_ld" = yes; then
16970    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16971  else
16972    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16973    case $host_os in
16974      sco3.2v5*)
16975        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16976	;;
16977    esac
16978  fi
16979  sys_lib_dlsearch_path_spec='/usr/lib'
16980  ;;
16981
16982tpf*)
16983  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16984  version_type=linux # correct to gnu/linux during the next big refactor
16985  need_lib_prefix=no
16986  need_version=no
16987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988  shlibpath_var=LD_LIBRARY_PATH
16989  shlibpath_overrides_runpath=no
16990  hardcode_into_libs=yes
16991  ;;
16992
16993uts4*)
16994  version_type=linux # correct to gnu/linux during the next big refactor
16995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996  soname_spec='${libname}${release}${shared_ext}$major'
16997  shlibpath_var=LD_LIBRARY_PATH
16998  ;;
16999
17000*)
17001  dynamic_linker=no
17002  ;;
17003esac
17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17005$as_echo "$dynamic_linker" >&6; }
17006test "$dynamic_linker" = no && can_build_shared=no
17007
17008variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17009if test "$GCC" = yes; then
17010  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17011fi
17012
17013if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17014  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17015fi
17016if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17017  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17018fi
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17112$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17113hardcode_action=
17114if test -n "$hardcode_libdir_flag_spec" ||
17115   test -n "$runpath_var" ||
17116   test "X$hardcode_automatic" = "Xyes" ; then
17117
17118  # We can hardcode non-existent directories.
17119  if test "$hardcode_direct" != no &&
17120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17121     # have to relink, otherwise we might link with an installed library
17122     # when we should be linking with a yet-to-be-installed one
17123     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17124     test "$hardcode_minus_L" != no; then
17125    # Linking always hardcodes the temporary library directory.
17126    hardcode_action=relink
17127  else
17128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17129    hardcode_action=immediate
17130  fi
17131else
17132  # We cannot hardcode anything, or else we can only hardcode existing
17133  # directories.
17134  hardcode_action=unsupported
17135fi
17136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17137$as_echo "$hardcode_action" >&6; }
17138
17139if test "$hardcode_action" = relink ||
17140   test "$inherit_rpath" = yes; then
17141  # Fast installation is not supported
17142  enable_fast_install=no
17143elif test "$shlibpath_overrides_runpath" = yes ||
17144     test "$enable_shared" = no; then
17145  # Fast installation is not necessary
17146  enable_fast_install=needless
17147fi
17148
17149
17150
17151
17152
17153
17154  if test "x$enable_dlopen" != xyes; then
17155  enable_dlopen=unknown
17156  enable_dlopen_self=unknown
17157  enable_dlopen_self_static=unknown
17158else
17159  lt_cv_dlopen=no
17160  lt_cv_dlopen_libs=
17161
17162  case $host_os in
17163  beos*)
17164    lt_cv_dlopen="load_add_on"
17165    lt_cv_dlopen_libs=
17166    lt_cv_dlopen_self=yes
17167    ;;
17168
17169  mingw* | pw32* | cegcc*)
17170    lt_cv_dlopen="LoadLibrary"
17171    lt_cv_dlopen_libs=
17172    ;;
17173
17174  cygwin*)
17175    lt_cv_dlopen="dlopen"
17176    lt_cv_dlopen_libs=
17177    ;;
17178
17179  darwin*)
17180  # if libdl is installed we need to link against it
17181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17182$as_echo_n "checking for dlopen in -ldl... " >&6; }
17183if ${ac_cv_lib_dl_dlopen+:} false; then :
17184  $as_echo_n "(cached) " >&6
17185else
17186  ac_check_lib_save_LIBS=$LIBS
17187LIBS="-ldl  $LIBS"
17188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17189/* end confdefs.h.  */
17190
17191/* Override any GCC internal prototype to avoid an error.
17192   Use char because int might match the return type of a GCC
17193   builtin and then its argument prototype would still apply.  */
17194#ifdef __cplusplus
17195extern "C"
17196#endif
17197char dlopen ();
17198int
17199main ()
17200{
17201return dlopen ();
17202  ;
17203  return 0;
17204}
17205_ACEOF
17206if ac_fn_c_try_link "$LINENO"; then :
17207  ac_cv_lib_dl_dlopen=yes
17208else
17209  ac_cv_lib_dl_dlopen=no
17210fi
17211rm -f core conftest.err conftest.$ac_objext \
17212    conftest$ac_exeext conftest.$ac_ext
17213LIBS=$ac_check_lib_save_LIBS
17214fi
17215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17216$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17217if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17218  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17219else
17220
17221    lt_cv_dlopen="dyld"
17222    lt_cv_dlopen_libs=
17223    lt_cv_dlopen_self=yes
17224
17225fi
17226
17227    ;;
17228
17229  *)
17230    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17231if test "x$ac_cv_func_shl_load" = xyes; then :
17232  lt_cv_dlopen="shl_load"
17233else
17234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17235$as_echo_n "checking for shl_load in -ldld... " >&6; }
17236if ${ac_cv_lib_dld_shl_load+:} false; then :
17237  $as_echo_n "(cached) " >&6
17238else
17239  ac_check_lib_save_LIBS=$LIBS
17240LIBS="-ldld  $LIBS"
17241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242/* end confdefs.h.  */
17243
17244/* Override any GCC internal prototype to avoid an error.
17245   Use char because int might match the return type of a GCC
17246   builtin and then its argument prototype would still apply.  */
17247#ifdef __cplusplus
17248extern "C"
17249#endif
17250char shl_load ();
17251int
17252main ()
17253{
17254return shl_load ();
17255  ;
17256  return 0;
17257}
17258_ACEOF
17259if ac_fn_c_try_link "$LINENO"; then :
17260  ac_cv_lib_dld_shl_load=yes
17261else
17262  ac_cv_lib_dld_shl_load=no
17263fi
17264rm -f core conftest.err conftest.$ac_objext \
17265    conftest$ac_exeext conftest.$ac_ext
17266LIBS=$ac_check_lib_save_LIBS
17267fi
17268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17269$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17270if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17271  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17272else
17273  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17274if test "x$ac_cv_func_dlopen" = xyes; then :
17275  lt_cv_dlopen="dlopen"
17276else
17277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17278$as_echo_n "checking for dlopen in -ldl... " >&6; }
17279if ${ac_cv_lib_dl_dlopen+:} false; then :
17280  $as_echo_n "(cached) " >&6
17281else
17282  ac_check_lib_save_LIBS=$LIBS
17283LIBS="-ldl  $LIBS"
17284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285/* end confdefs.h.  */
17286
17287/* Override any GCC internal prototype to avoid an error.
17288   Use char because int might match the return type of a GCC
17289   builtin and then its argument prototype would still apply.  */
17290#ifdef __cplusplus
17291extern "C"
17292#endif
17293char dlopen ();
17294int
17295main ()
17296{
17297return dlopen ();
17298  ;
17299  return 0;
17300}
17301_ACEOF
17302if ac_fn_c_try_link "$LINENO"; then :
17303  ac_cv_lib_dl_dlopen=yes
17304else
17305  ac_cv_lib_dl_dlopen=no
17306fi
17307rm -f core conftest.err conftest.$ac_objext \
17308    conftest$ac_exeext conftest.$ac_ext
17309LIBS=$ac_check_lib_save_LIBS
17310fi
17311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17312$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17313if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17314  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17315else
17316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17317$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17318if ${ac_cv_lib_svld_dlopen+:} false; then :
17319  $as_echo_n "(cached) " >&6
17320else
17321  ac_check_lib_save_LIBS=$LIBS
17322LIBS="-lsvld  $LIBS"
17323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h.  */
17325
17326/* Override any GCC internal prototype to avoid an error.
17327   Use char because int might match the return type of a GCC
17328   builtin and then its argument prototype would still apply.  */
17329#ifdef __cplusplus
17330extern "C"
17331#endif
17332char dlopen ();
17333int
17334main ()
17335{
17336return dlopen ();
17337  ;
17338  return 0;
17339}
17340_ACEOF
17341if ac_fn_c_try_link "$LINENO"; then :
17342  ac_cv_lib_svld_dlopen=yes
17343else
17344  ac_cv_lib_svld_dlopen=no
17345fi
17346rm -f core conftest.err conftest.$ac_objext \
17347    conftest$ac_exeext conftest.$ac_ext
17348LIBS=$ac_check_lib_save_LIBS
17349fi
17350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17351$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17352if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17353  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17354else
17355  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17356$as_echo_n "checking for dld_link in -ldld... " >&6; }
17357if ${ac_cv_lib_dld_dld_link+:} false; then :
17358  $as_echo_n "(cached) " >&6
17359else
17360  ac_check_lib_save_LIBS=$LIBS
17361LIBS="-ldld  $LIBS"
17362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363/* end confdefs.h.  */
17364
17365/* Override any GCC internal prototype to avoid an error.
17366   Use char because int might match the return type of a GCC
17367   builtin and then its argument prototype would still apply.  */
17368#ifdef __cplusplus
17369extern "C"
17370#endif
17371char dld_link ();
17372int
17373main ()
17374{
17375return dld_link ();
17376  ;
17377  return 0;
17378}
17379_ACEOF
17380if ac_fn_c_try_link "$LINENO"; then :
17381  ac_cv_lib_dld_dld_link=yes
17382else
17383  ac_cv_lib_dld_dld_link=no
17384fi
17385rm -f core conftest.err conftest.$ac_objext \
17386    conftest$ac_exeext conftest.$ac_ext
17387LIBS=$ac_check_lib_save_LIBS
17388fi
17389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17390$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17391if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17392  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17393fi
17394
17395
17396fi
17397
17398
17399fi
17400
17401
17402fi
17403
17404
17405fi
17406
17407
17408fi
17409
17410    ;;
17411  esac
17412
17413  if test "x$lt_cv_dlopen" != xno; then
17414    enable_dlopen=yes
17415  else
17416    enable_dlopen=no
17417  fi
17418
17419  case $lt_cv_dlopen in
17420  dlopen)
17421    save_CPPFLAGS="$CPPFLAGS"
17422    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17423
17424    save_LDFLAGS="$LDFLAGS"
17425    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17426
17427    save_LIBS="$LIBS"
17428    LIBS="$lt_cv_dlopen_libs $LIBS"
17429
17430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17431$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17432if ${lt_cv_dlopen_self+:} false; then :
17433  $as_echo_n "(cached) " >&6
17434else
17435  	  if test "$cross_compiling" = yes; then :
17436  lt_cv_dlopen_self=cross
17437else
17438  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17439  lt_status=$lt_dlunknown
17440  cat > conftest.$ac_ext <<_LT_EOF
17441#line $LINENO "configure"
17442#include "confdefs.h"
17443
17444#if HAVE_DLFCN_H
17445#include <dlfcn.h>
17446#endif
17447
17448#include <stdio.h>
17449
17450#ifdef RTLD_GLOBAL
17451#  define LT_DLGLOBAL		RTLD_GLOBAL
17452#else
17453#  ifdef DL_GLOBAL
17454#    define LT_DLGLOBAL		DL_GLOBAL
17455#  else
17456#    define LT_DLGLOBAL		0
17457#  endif
17458#endif
17459
17460/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17461   find out it does not work in some platform. */
17462#ifndef LT_DLLAZY_OR_NOW
17463#  ifdef RTLD_LAZY
17464#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17465#  else
17466#    ifdef DL_LAZY
17467#      define LT_DLLAZY_OR_NOW		DL_LAZY
17468#    else
17469#      ifdef RTLD_NOW
17470#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17471#      else
17472#        ifdef DL_NOW
17473#          define LT_DLLAZY_OR_NOW	DL_NOW
17474#        else
17475#          define LT_DLLAZY_OR_NOW	0
17476#        endif
17477#      endif
17478#    endif
17479#  endif
17480#endif
17481
17482/* When -fvisbility=hidden is used, assume the code has been annotated
17483   correspondingly for the symbols needed.  */
17484#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17485int fnord () __attribute__((visibility("default")));
17486#endif
17487
17488int fnord () { return 42; }
17489int main ()
17490{
17491  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17492  int status = $lt_dlunknown;
17493
17494  if (self)
17495    {
17496      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17497      else
17498        {
17499	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17500          else puts (dlerror ());
17501	}
17502      /* dlclose (self); */
17503    }
17504  else
17505    puts (dlerror ());
17506
17507  return status;
17508}
17509_LT_EOF
17510  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17511  (eval $ac_link) 2>&5
17512  ac_status=$?
17513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17514  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17515    (./conftest; exit; ) >&5 2>/dev/null
17516    lt_status=$?
17517    case x$lt_status in
17518      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17519      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17520      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17521    esac
17522  else :
17523    # compilation failed
17524    lt_cv_dlopen_self=no
17525  fi
17526fi
17527rm -fr conftest*
17528
17529
17530fi
17531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17532$as_echo "$lt_cv_dlopen_self" >&6; }
17533
17534    if test "x$lt_cv_dlopen_self" = xyes; then
17535      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17537$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17538if ${lt_cv_dlopen_self_static+:} false; then :
17539  $as_echo_n "(cached) " >&6
17540else
17541  	  if test "$cross_compiling" = yes; then :
17542  lt_cv_dlopen_self_static=cross
17543else
17544  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17545  lt_status=$lt_dlunknown
17546  cat > conftest.$ac_ext <<_LT_EOF
17547#line $LINENO "configure"
17548#include "confdefs.h"
17549
17550#if HAVE_DLFCN_H
17551#include <dlfcn.h>
17552#endif
17553
17554#include <stdio.h>
17555
17556#ifdef RTLD_GLOBAL
17557#  define LT_DLGLOBAL		RTLD_GLOBAL
17558#else
17559#  ifdef DL_GLOBAL
17560#    define LT_DLGLOBAL		DL_GLOBAL
17561#  else
17562#    define LT_DLGLOBAL		0
17563#  endif
17564#endif
17565
17566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17567   find out it does not work in some platform. */
17568#ifndef LT_DLLAZY_OR_NOW
17569#  ifdef RTLD_LAZY
17570#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17571#  else
17572#    ifdef DL_LAZY
17573#      define LT_DLLAZY_OR_NOW		DL_LAZY
17574#    else
17575#      ifdef RTLD_NOW
17576#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17577#      else
17578#        ifdef DL_NOW
17579#          define LT_DLLAZY_OR_NOW	DL_NOW
17580#        else
17581#          define LT_DLLAZY_OR_NOW	0
17582#        endif
17583#      endif
17584#    endif
17585#  endif
17586#endif
17587
17588/* When -fvisbility=hidden is used, assume the code has been annotated
17589   correspondingly for the symbols needed.  */
17590#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17591int fnord () __attribute__((visibility("default")));
17592#endif
17593
17594int fnord () { return 42; }
17595int main ()
17596{
17597  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17598  int status = $lt_dlunknown;
17599
17600  if (self)
17601    {
17602      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17603      else
17604        {
17605	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17606          else puts (dlerror ());
17607	}
17608      /* dlclose (self); */
17609    }
17610  else
17611    puts (dlerror ());
17612
17613  return status;
17614}
17615_LT_EOF
17616  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17617  (eval $ac_link) 2>&5
17618  ac_status=$?
17619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17620  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17621    (./conftest; exit; ) >&5 2>/dev/null
17622    lt_status=$?
17623    case x$lt_status in
17624      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17625      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17626      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17627    esac
17628  else :
17629    # compilation failed
17630    lt_cv_dlopen_self_static=no
17631  fi
17632fi
17633rm -fr conftest*
17634
17635
17636fi
17637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17638$as_echo "$lt_cv_dlopen_self_static" >&6; }
17639    fi
17640
17641    CPPFLAGS="$save_CPPFLAGS"
17642    LDFLAGS="$save_LDFLAGS"
17643    LIBS="$save_LIBS"
17644    ;;
17645  esac
17646
17647  case $lt_cv_dlopen_self in
17648  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17649  *) enable_dlopen_self=unknown ;;
17650  esac
17651
17652  case $lt_cv_dlopen_self_static in
17653  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17654  *) enable_dlopen_self_static=unknown ;;
17655  esac
17656fi
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674striplib=
17675old_striplib=
17676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17677$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17678if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17679  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17680  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17682$as_echo "yes" >&6; }
17683else
17684# FIXME - insert some real tests, host_os isn't really good enough
17685  case $host_os in
17686  darwin*)
17687    if test -n "$STRIP" ; then
17688      striplib="$STRIP -x"
17689      old_striplib="$STRIP -S"
17690      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17691$as_echo "yes" >&6; }
17692    else
17693      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17694$as_echo "no" >&6; }
17695    fi
17696    ;;
17697  *)
17698    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17699$as_echo "no" >&6; }
17700    ;;
17701  esac
17702fi
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715  # Report which library types will actually be built
17716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17717$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17719$as_echo "$can_build_shared" >&6; }
17720
17721  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17722$as_echo_n "checking whether to build shared libraries... " >&6; }
17723  test "$can_build_shared" = "no" && enable_shared=no
17724
17725  # On AIX, shared libraries and static libraries use the same namespace, and
17726  # are all built from PIC.
17727  case $host_os in
17728  aix3*)
17729    test "$enable_shared" = yes && enable_static=no
17730    if test -n "$RANLIB"; then
17731      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17732      postinstall_cmds='$RANLIB $lib'
17733    fi
17734    ;;
17735
17736  aix[4-9]*)
17737    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17738      test "$enable_shared" = yes && enable_static=no
17739    fi
17740    ;;
17741  esac
17742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17743$as_echo "$enable_shared" >&6; }
17744
17745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17746$as_echo_n "checking whether to build static libraries... " >&6; }
17747  # Make sure either enable_shared or enable_static is yes.
17748  test "$enable_shared" = yes || enable_static=yes
17749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17750$as_echo "$enable_static" >&6; }
17751
17752
17753
17754
17755fi
17756ac_ext=c
17757ac_cpp='$CPP $CPPFLAGS'
17758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17760ac_compiler_gnu=$ac_cv_c_compiler_gnu
17761
17762CC="$lt_save_CC"
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778        ac_config_commands="$ac_config_commands libtool"
17779
17780
17781
17782
17783# Only expand once:
17784
17785
17786
17787
17788
17789# Define a configure option for an alternate module directory
17790
17791# Check whether --with-xorg-module-dir was given.
17792if test "${with_xorg_module_dir+set}" = set; then :
17793  withval=$with_xorg_module_dir; moduledir="$withval"
17794else
17795  moduledir="$libdir/xorg/modules"
17796fi
17797
17798
17799# Check whether --enable-dri was given.
17800if test "${enable_dri+set}" = set; then :
17801  enableval=$enable_dri; DRI="$enableval"
17802else
17803  DRI=auto
17804fi
17805
17806# Check whether --enable-exa was given.
17807if test "${enable_exa+set}" = set; then :
17808  enableval=$enable_exa; EXA="$enableval"
17809else
17810  EXA=yes
17811fi
17812
17813
17814# Store the list of server defined optional extensions in REQUIRED_MODULES
17815
17816
17817	SAVE_CFLAGS="$CFLAGS"
17818	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17819	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17820/* end confdefs.h.  */
17821
17822#include "xorg-server.h"
17823#if !defined RANDR
17824#error RANDR not defined
17825#endif
17826
17827int
17828main ()
17829{
17830
17831  ;
17832  return 0;
17833}
17834_ACEOF
17835if ac_fn_c_try_compile "$LINENO"; then :
17836  _EXT_CHECK=yes
17837else
17838  _EXT_CHECK=no
17839fi
17840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17841	CFLAGS="$SAVE_CFLAGS"
17842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17843$as_echo_n "checking if RANDR is defined... " >&6; }
17844	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17845$as_echo "$_EXT_CHECK" >&6; }
17846	if test "$_EXT_CHECK" != no; then
17847		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17848	fi
17849
17850
17851
17852	SAVE_CFLAGS="$CFLAGS"
17853	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17854	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855/* end confdefs.h.  */
17856
17857#include "xorg-server.h"
17858#if !defined RENDER
17859#error RENDER not defined
17860#endif
17861
17862int
17863main ()
17864{
17865
17866  ;
17867  return 0;
17868}
17869_ACEOF
17870if ac_fn_c_try_compile "$LINENO"; then :
17871  _EXT_CHECK=yes
17872else
17873  _EXT_CHECK=no
17874fi
17875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876	CFLAGS="$SAVE_CFLAGS"
17877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17878$as_echo_n "checking if RENDER is defined... " >&6; }
17879	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17880$as_echo "$_EXT_CHECK" >&6; }
17881	if test "$_EXT_CHECK" != no; then
17882		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17883	fi
17884
17885
17886
17887	SAVE_CFLAGS="$CFLAGS"
17888	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17889	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891
17892#include "xorg-server.h"
17893#if !defined XV
17894#error XV not defined
17895#endif
17896
17897int
17898main ()
17899{
17900
17901  ;
17902  return 0;
17903}
17904_ACEOF
17905if ac_fn_c_try_compile "$LINENO"; then :
17906  _EXT_CHECK=yes
17907else
17908  _EXT_CHECK=no
17909fi
17910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911	CFLAGS="$SAVE_CFLAGS"
17912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17913$as_echo_n "checking if XV is defined... " >&6; }
17914	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17915$as_echo "$_EXT_CHECK" >&6; }
17916	if test "$_EXT_CHECK" != no; then
17917		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17918	fi
17919
17920
17921
17922	SAVE_CFLAGS="$CFLAGS"
17923	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17924	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h.  */
17926
17927#include "xorg-server.h"
17928#if !defined DPMSExtension
17929#error DPMSExtension not defined
17930#endif
17931
17932int
17933main ()
17934{
17935
17936  ;
17937  return 0;
17938}
17939_ACEOF
17940if ac_fn_c_try_compile "$LINENO"; then :
17941  _EXT_CHECK=yes
17942else
17943  _EXT_CHECK=no
17944fi
17945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946	CFLAGS="$SAVE_CFLAGS"
17947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17948$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17949	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17950$as_echo "$_EXT_CHECK" >&6; }
17951	if test "$_EXT_CHECK" != no; then
17952		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17953	fi
17954
17955
17956# Obtain compiler/linker options for the driver dependencies
17957
17958pkg_failed=no
17959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17960$as_echo_n "checking for XORG... " >&6; }
17961
17962if test -n "$XORG_CFLAGS"; then
17963    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17964 elif test -n "$PKG_CONFIG"; then
17965    if test -n "$PKG_CONFIG" && \
17966    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17967  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17968  ac_status=$?
17969  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970  test $ac_status = 0; }; then
17971  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17972else
17973  pkg_failed=yes
17974fi
17975 else
17976    pkg_failed=untried
17977fi
17978if test -n "$XORG_LIBS"; then
17979    pkg_cv_XORG_LIBS="$XORG_LIBS"
17980 elif test -n "$PKG_CONFIG"; then
17981    if test -n "$PKG_CONFIG" && \
17982    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17983  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES") 2>&5
17984  ac_status=$?
17985  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17986  test $ac_status = 0; }; then
17987  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17988else
17989  pkg_failed=yes
17990fi
17991 else
17992    pkg_failed=untried
17993fi
17994
17995
17996
17997if test $pkg_failed = yes; then
17998   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17999$as_echo "no" >&6; }
18000
18001if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18002        _pkg_short_errors_supported=yes
18003else
18004        _pkg_short_errors_supported=no
18005fi
18006        if test $_pkg_short_errors_supported = yes; then
18007	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18008        else
18009	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18010        fi
18011	# Put the nasty error message in config.log where it belongs
18012	echo "$XORG_PKG_ERRORS" >&5
18013
18014	as_fn_error $? "Package requirements (xorg-server >= 1.1.0 xproto fontsproto $REQUIRED_MODULES) were not met:
18015
18016$XORG_PKG_ERRORS
18017
18018Consider adjusting the PKG_CONFIG_PATH environment variable if you
18019installed software in a non-standard prefix.
18020
18021Alternatively, you may set the environment variables XORG_CFLAGS
18022and XORG_LIBS to avoid the need to call pkg-config.
18023See the pkg-config man page for more details." "$LINENO" 5
18024
18025elif test $pkg_failed = untried; then
18026     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18027$as_echo "no" >&6; }
18028	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18029$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18030as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18031is in your PATH or set the PKG_CONFIG environment variable to the full
18032path to pkg-config.
18033
18034Alternatively, you may set the environment variables XORG_CFLAGS
18035and XORG_LIBS to avoid the need to call pkg-config.
18036See the pkg-config man page for more details.
18037
18038To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18039See \`config.log' for more details" "$LINENO" 5; }
18040
18041else
18042	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18043	XORG_LIBS=$pkg_cv_XORG_LIBS
18044        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045$as_echo "yes" >&6; }
18046
18047fi
18048sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18049
18050# Checks for libraries.
18051
18052if test "x$DRI" != xno; then
18053        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18055$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18056if eval \${$as_ac_File+:} false; then :
18057  $as_echo_n "(cached) " >&6
18058else
18059  test "$cross_compiling" = yes &&
18060  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18061if test -r "${sdkdir}/dri.h"; then
18062  eval "$as_ac_File=yes"
18063else
18064  eval "$as_ac_File=no"
18065fi
18066fi
18067eval ac_res=\$$as_ac_File
18068	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18069$as_echo "$ac_res" >&6; }
18070if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18071  have_dri_h="yes"
18072else
18073  have_dri_h="no"
18074fi
18075
18076        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18078$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18079if eval \${$as_ac_File+:} false; then :
18080  $as_echo_n "(cached) " >&6
18081else
18082  test "$cross_compiling" = yes &&
18083  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18084if test -r "${sdkdir}/sarea.h"; then
18085  eval "$as_ac_File=yes"
18086else
18087  eval "$as_ac_File=no"
18088fi
18089fi
18090eval ac_res=\$$as_ac_File
18091	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18092$as_echo "$ac_res" >&6; }
18093if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18094  have_sarea_h="yes"
18095else
18096  have_sarea_h="no"
18097fi
18098
18099        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18101$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18102if eval \${$as_ac_File+:} false; then :
18103  $as_echo_n "(cached) " >&6
18104else
18105  test "$cross_compiling" = yes &&
18106  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18107if test -r "${sdkdir}/dristruct.h"; then
18108  eval "$as_ac_File=yes"
18109else
18110  eval "$as_ac_File=no"
18111fi
18112fi
18113eval ac_res=\$$as_ac_File
18114	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18115$as_echo "$ac_res" >&6; }
18116if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18117  have_dristruct_h="yes"
18118else
18119  have_dristruct_h="no"
18120fi
18121
18122fi
18123
18124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18125$as_echo_n "checking whether to include DRI support... " >&6; }
18126if test "x$DRI" = xauto; then
18127        if test "x$have_dri_h" = xyes && \
18128           test "x$have_sarea_h" = xyes && \
18129           test "x$have_dristruct_h" = xyes; then
18130                DRI="yes"
18131        else
18132                DRI="no"
18133        fi
18134fi
18135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18136$as_echo "$DRI" >&6; }
18137
18138 if test "x$DRI" = xyes; then
18139  DRI_TRUE=
18140  DRI_FALSE='#'
18141else
18142  DRI_TRUE='#'
18143  DRI_FALSE=
18144fi
18145
18146if test "x$DRI" = xyes; then
18147
18148pkg_failed=no
18149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18150$as_echo_n "checking for DRI... " >&6; }
18151
18152if test -n "$DRI_CFLAGS"; then
18153    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18154 elif test -n "$PKG_CONFIG"; then
18155    if test -n "$PKG_CONFIG" && \
18156    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18157  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18158  ac_status=$?
18159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18160  test $ac_status = 0; }; then
18161  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18162else
18163  pkg_failed=yes
18164fi
18165 else
18166    pkg_failed=untried
18167fi
18168if test -n "$DRI_LIBS"; then
18169    pkg_cv_DRI_LIBS="$DRI_LIBS"
18170 elif test -n "$PKG_CONFIG"; then
18171    if test -n "$PKG_CONFIG" && \
18172    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18173  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18174  ac_status=$?
18175  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18176  test $ac_status = 0; }; then
18177  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18178else
18179  pkg_failed=yes
18180fi
18181 else
18182    pkg_failed=untried
18183fi
18184
18185
18186
18187if test $pkg_failed = yes; then
18188   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18189$as_echo "no" >&6; }
18190
18191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18192        _pkg_short_errors_supported=yes
18193else
18194        _pkg_short_errors_supported=no
18195fi
18196        if test $_pkg_short_errors_supported = yes; then
18197	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18198        else
18199	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.0 xf86driproto" 2>&1`
18200        fi
18201	# Put the nasty error message in config.log where it belongs
18202	echo "$DRI_PKG_ERRORS" >&5
18203
18204	as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18205
18206$DRI_PKG_ERRORS
18207
18208Consider adjusting the PKG_CONFIG_PATH environment variable if you
18209installed software in a non-standard prefix.
18210
18211Alternatively, you may set the environment variables DRI_CFLAGS
18212and DRI_LIBS to avoid the need to call pkg-config.
18213See the pkg-config man page for more details." "$LINENO" 5
18214
18215elif test $pkg_failed = untried; then
18216     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18217$as_echo "no" >&6; }
18218	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18219$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18220as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18221is in your PATH or set the PKG_CONFIG environment variable to the full
18222path to pkg-config.
18223
18224Alternatively, you may set the environment variables DRI_CFLAGS
18225and DRI_LIBS to avoid the need to call pkg-config.
18226See the pkg-config man page for more details.
18227
18228To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18229See \`config.log' for more details" "$LINENO" 5; }
18230
18231else
18232	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18233	DRI_LIBS=$pkg_cv_DRI_LIBS
18234        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18235$as_echo "yes" >&6; }
18236
18237fi
18238
18239$as_echo "#define MGADRI 1" >>confdefs.h
18240
18241
18242$as_echo "#define MGADRI_DEVEL 1" >>confdefs.h
18243
18244fi
18245
18246save_CFLAGS="$CFLAGS"
18247CFLAGS="$XORG_CFLAGS"
18248ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18249"
18250if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18251  XSERVER_LIBPCIACCESS=yes
18252else
18253  XSERVER_LIBPCIACCESS=no
18254fi
18255
18256CFLAGS="$save_CFLAGS"
18257
18258save_CFLAGS="$CFLAGS"
18259CFLAGS="$XORG_CFLAGS"
18260ac_fn_c_check_decl "$LINENO" "xf86ModeBandwidth" "ac_cv_have_decl_xf86ModeBandwidth" "#include <X11/extensions/randr.h>
18261	       #include \"xorg-server.h\"
18262	       #include \"xf86Modes.h\"
18263"
18264if test "x$ac_cv_have_decl_xf86ModeBandwidth" = xyes; then :
18265
18266$as_echo "#define HAVE_XF86MODEBANDWIDTH 1" >>confdefs.h
18267
18268fi
18269
18270CFLAGS="$save_CFLAGS"
18271
18272if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18273
18274pkg_failed=no
18275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18276$as_echo_n "checking for PCIACCESS... " >&6; }
18277
18278if test -n "$PCIACCESS_CFLAGS"; then
18279    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18280 elif test -n "$PKG_CONFIG"; then
18281    if test -n "$PKG_CONFIG" && \
18282    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18283  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18284  ac_status=$?
18285  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18286  test $ac_status = 0; }; then
18287  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18288else
18289  pkg_failed=yes
18290fi
18291 else
18292    pkg_failed=untried
18293fi
18294if test -n "$PCIACCESS_LIBS"; then
18295    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18296 elif test -n "$PKG_CONFIG"; then
18297    if test -n "$PKG_CONFIG" && \
18298    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18299  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18300  ac_status=$?
18301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18302  test $ac_status = 0; }; then
18303  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18304else
18305  pkg_failed=yes
18306fi
18307 else
18308    pkg_failed=untried
18309fi
18310
18311
18312
18313if test $pkg_failed = yes; then
18314   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315$as_echo "no" >&6; }
18316
18317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18318        _pkg_short_errors_supported=yes
18319else
18320        _pkg_short_errors_supported=no
18321fi
18322        if test $_pkg_short_errors_supported = yes; then
18323	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18324        else
18325	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18326        fi
18327	# Put the nasty error message in config.log where it belongs
18328	echo "$PCIACCESS_PKG_ERRORS" >&5
18329
18330	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18331
18332$PCIACCESS_PKG_ERRORS
18333
18334Consider adjusting the PKG_CONFIG_PATH environment variable if you
18335installed software in a non-standard prefix.
18336
18337Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18338and PCIACCESS_LIBS to avoid the need to call pkg-config.
18339See the pkg-config man page for more details." "$LINENO" 5
18340
18341elif test $pkg_failed = untried; then
18342     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18343$as_echo "no" >&6; }
18344	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18346as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18347is in your PATH or set the PKG_CONFIG environment variable to the full
18348path to pkg-config.
18349
18350Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18351and PCIACCESS_LIBS to avoid the need to call pkg-config.
18352See the pkg-config man page for more details.
18353
18354To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18355See \`config.log' for more details" "$LINENO" 5; }
18356
18357else
18358	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18359	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18360        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361$as_echo "yes" >&6; }
18362
18363fi
18364fi
18365 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18366  XSERVER_LIBPCIACCESS_TRUE=
18367  XSERVER_LIBPCIACCESS_FALSE='#'
18368else
18369  XSERVER_LIBPCIACCESS_TRUE='#'
18370  XSERVER_LIBPCIACCESS_FALSE=
18371fi
18372
18373
18374
18375# Check whether --enable-xaa was given.
18376if test "${enable_xaa+set}" = set; then :
18377  enableval=$enable_xaa; XAA="$enableval"
18378else
18379  XAA=auto
18380fi
18381
18382if test "x$XAA" != xno; then
18383        save_CFLAGS=$CFLAGS
18384        save_CPPFLAGS=$CPPFLAGS
18385        CFLAGS=$XORG_CFLAGS
18386        CPPFLAGS="$XORG_CFLAGS"
18387        for ac_header in xaa.h
18388do :
18389  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18390if test "x$ac_cv_header_xaa_h" = xyes; then :
18391  cat >>confdefs.h <<_ACEOF
18392#define HAVE_XAA_H 1
18393_ACEOF
18394 XAA=yes
18395else
18396  XAA=no
18397fi
18398
18399done
18400
18401        CFLAGS=$save_CFLAGS
18402        CPPFLAGS=$save_CPPFLAGS
18403fi
18404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18405$as_echo_n "checking whether to include XAA support... " >&6; }
18406 if test "x$XAA" = xyes; then
18407  XAA_TRUE=
18408  XAA_FALSE='#'
18409else
18410  XAA_TRUE='#'
18411  XAA_FALSE=
18412fi
18413
18414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18415$as_echo "$XAA" >&6; }
18416
18417# Properly handle EXA.
18418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EXA support" >&5
18419$as_echo_n "checking whether to enable EXA support... " >&6; }
18420if test "x$EXA" = xyes; then
18421    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18422$as_echo "yes" >&6; }
18423
18424    SAVE_CPPFLAGS="$CPPFLAGS"
18425    CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18426    ac_fn_c_check_header_mongrel "$LINENO" "exa.h" "ac_cv_header_exa_h" "$ac_includes_default"
18427if test "x$ac_cv_header_exa_h" = xyes; then :
18428  have_exa_h="yes"
18429else
18430  have_exa_h="no"
18431fi
18432
18433
18434    CPPFLAGS="$SAVE_CPPFLAGS"
18435else
18436    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437$as_echo "no" >&6; }
18438fi
18439
18440SAVE_CPPFLAGS="$CPPFLAGS"
18441CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18442if test "x$have_exa_h" = xyes; then
18443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXA version is at least 2.0.0" >&5
18444$as_echo_n "checking whether EXA version is at least 2.0.0... " >&6; }
18445    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h.  */
18447
18448#include "exa.h"
18449#if EXA_VERSION_MAJOR < 2
18450#error OLD EXA!
18451#endif
18452
18453int
18454main ()
18455{
18456
18457  ;
18458  return 0;
18459}
18460_ACEOF
18461if ac_fn_c_try_cpp "$LINENO"; then :
18462  USE_EXA=yes
18463else
18464  USE_EXA=no
18465fi
18466rm -f conftest.err conftest.i conftest.$ac_ext
18467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_EXA" >&5
18468$as_echo "$USE_EXA" >&6; }
18469
18470    if test "x$USE_EXA" = xyes; then
18471
18472$as_echo "#define USE_EXA 1" >>confdefs.h
18473
18474    fi
18475fi
18476CPPFLAGS="$SAVE_CPPFLAGS"
18477
18478 if test "x$USE_EXA" = xyes; then
18479  USE_EXA_TRUE=
18480  USE_EXA_FALSE='#'
18481else
18482  USE_EXA_TRUE='#'
18483  USE_EXA_FALSE=
18484fi
18485
18486
18487
18488
18489DRIVER_NAME=mga
18490
18491
18492ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
18493
18494cat >confcache <<\_ACEOF
18495# This file is a shell script that caches the results of configure
18496# tests run on this system so they can be shared between configure
18497# scripts and configure runs, see configure's option --config-cache.
18498# It is not useful on other systems.  If it contains results you don't
18499# want to keep, you may remove or edit it.
18500#
18501# config.status only pays attention to the cache file if you give it
18502# the --recheck option to rerun configure.
18503#
18504# `ac_cv_env_foo' variables (set or unset) will be overridden when
18505# loading this file, other *unset* `ac_cv_foo' will be assigned the
18506# following values.
18507
18508_ACEOF
18509
18510# The following way of writing the cache mishandles newlines in values,
18511# but we know of no workaround that is simple, portable, and efficient.
18512# So, we kill variables containing newlines.
18513# Ultrix sh set writes to stderr and can't be redirected directly,
18514# and sets the high bit in the cache file unless we assign to the vars.
18515(
18516  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18517    eval ac_val=\$$ac_var
18518    case $ac_val in #(
18519    *${as_nl}*)
18520      case $ac_var in #(
18521      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18522$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18523      esac
18524      case $ac_var in #(
18525      _ | IFS | as_nl) ;; #(
18526      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18527      *) { eval $ac_var=; unset $ac_var;} ;;
18528      esac ;;
18529    esac
18530  done
18531
18532  (set) 2>&1 |
18533    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18534    *${as_nl}ac_space=\ *)
18535      # `set' does not quote correctly, so add quotes: double-quote
18536      # substitution turns \\\\ into \\, and sed turns \\ into \.
18537      sed -n \
18538	"s/'/'\\\\''/g;
18539	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18540      ;; #(
18541    *)
18542      # `set' quotes correctly as required by POSIX, so do not add quotes.
18543      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18544      ;;
18545    esac |
18546    sort
18547) |
18548  sed '
18549     /^ac_cv_env_/b end
18550     t clear
18551     :clear
18552     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18553     t end
18554     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18555     :end' >>confcache
18556if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18557  if test -w "$cache_file"; then
18558    if test "x$cache_file" != "x/dev/null"; then
18559      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18560$as_echo "$as_me: updating cache $cache_file" >&6;}
18561      if test ! -f "$cache_file" || test -h "$cache_file"; then
18562	cat confcache >"$cache_file"
18563      else
18564        case $cache_file in #(
18565        */* | ?:*)
18566	  mv -f confcache "$cache_file"$$ &&
18567	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18568        *)
18569	  mv -f confcache "$cache_file" ;;
18570	esac
18571      fi
18572    fi
18573  else
18574    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18575$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18576  fi
18577fi
18578rm -f confcache
18579
18580test "x$prefix" = xNONE && prefix=$ac_default_prefix
18581# Let make expand exec_prefix.
18582test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18583
18584DEFS=-DHAVE_CONFIG_H
18585
18586ac_libobjs=
18587ac_ltlibobjs=
18588U=
18589for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18590  # 1. Remove the extension, and $U if already installed.
18591  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18592  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18593  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18594  #    will be set to the directory where LIBOBJS objects are built.
18595  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18596  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18597done
18598LIBOBJS=$ac_libobjs
18599
18600LTLIBOBJS=$ac_ltlibobjs
18601
18602
18603if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18604  as_fn_error $? "conditional \"AMDEP\" was never defined.
18605Usually this means the macro was only invoked conditionally." "$LINENO" 5
18606fi
18607if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18608  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18609Usually this means the macro was only invoked conditionally." "$LINENO" 5
18610fi
18611 if test -n "$EXEEXT"; then
18612  am__EXEEXT_TRUE=
18613  am__EXEEXT_FALSE='#'
18614else
18615  am__EXEEXT_TRUE='#'
18616  am__EXEEXT_FALSE=
18617fi
18618
18619if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18620  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18621Usually this means the macro was only invoked conditionally." "$LINENO" 5
18622fi
18623if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
18624  as_fn_error $? "conditional \"DRI\" was never defined.
18625Usually this means the macro was only invoked conditionally." "$LINENO" 5
18626fi
18627if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18628  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18629Usually this means the macro was only invoked conditionally." "$LINENO" 5
18630fi
18631if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18632  as_fn_error $? "conditional \"XAA\" was never defined.
18633Usually this means the macro was only invoked conditionally." "$LINENO" 5
18634fi
18635if test -z "${USE_EXA_TRUE}" && test -z "${USE_EXA_FALSE}"; then
18636  as_fn_error $? "conditional \"USE_EXA\" was never defined.
18637Usually this means the macro was only invoked conditionally." "$LINENO" 5
18638fi
18639
18640: "${CONFIG_STATUS=./config.status}"
18641ac_write_fail=0
18642ac_clean_files_save=$ac_clean_files
18643ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18644{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18645$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18646as_write_fail=0
18647cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18648#! $SHELL
18649# Generated by $as_me.
18650# Run this file to recreate the current configuration.
18651# Compiler output produced by configure, useful for debugging
18652# configure, is in config.log if it exists.
18653
18654debug=false
18655ac_cs_recheck=false
18656ac_cs_silent=false
18657
18658SHELL=\${CONFIG_SHELL-$SHELL}
18659export SHELL
18660_ASEOF
18661cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18662## -------------------- ##
18663## M4sh Initialization. ##
18664## -------------------- ##
18665
18666# Be more Bourne compatible
18667DUALCASE=1; export DUALCASE # for MKS sh
18668if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18669  emulate sh
18670  NULLCMD=:
18671  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18672  # is contrary to our usage.  Disable this feature.
18673  alias -g '${1+"$@"}'='"$@"'
18674  setopt NO_GLOB_SUBST
18675else
18676  case `(set -o) 2>/dev/null` in #(
18677  *posix*) :
18678    set -o posix ;; #(
18679  *) :
18680     ;;
18681esac
18682fi
18683
18684
18685as_nl='
18686'
18687export as_nl
18688# Printing a long string crashes Solaris 7 /usr/bin/printf.
18689as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18690as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18691as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18692# Prefer a ksh shell builtin over an external printf program on Solaris,
18693# but without wasting forks for bash or zsh.
18694if test -z "$BASH_VERSION$ZSH_VERSION" \
18695    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18696  as_echo='print -r --'
18697  as_echo_n='print -rn --'
18698elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18699  as_echo='printf %s\n'
18700  as_echo_n='printf %s'
18701else
18702  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18703    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18704    as_echo_n='/usr/ucb/echo -n'
18705  else
18706    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18707    as_echo_n_body='eval
18708      arg=$1;
18709      case $arg in #(
18710      *"$as_nl"*)
18711	expr "X$arg" : "X\\(.*\\)$as_nl";
18712	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18713      esac;
18714      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18715    '
18716    export as_echo_n_body
18717    as_echo_n='sh -c $as_echo_n_body as_echo'
18718  fi
18719  export as_echo_body
18720  as_echo='sh -c $as_echo_body as_echo'
18721fi
18722
18723# The user is always right.
18724if test "${PATH_SEPARATOR+set}" != set; then
18725  PATH_SEPARATOR=:
18726  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18727    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18728      PATH_SEPARATOR=';'
18729  }
18730fi
18731
18732
18733# IFS
18734# We need space, tab and new line, in precisely that order.  Quoting is
18735# there to prevent editors from complaining about space-tab.
18736# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18737# splitting by setting IFS to empty value.)
18738IFS=" ""	$as_nl"
18739
18740# Find who we are.  Look in the path if we contain no directory separator.
18741as_myself=
18742case $0 in #((
18743  *[\\/]* ) as_myself=$0 ;;
18744  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745for as_dir in $PATH
18746do
18747  IFS=$as_save_IFS
18748  test -z "$as_dir" && as_dir=.
18749    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18750  done
18751IFS=$as_save_IFS
18752
18753     ;;
18754esac
18755# We did not find ourselves, most probably we were run as `sh COMMAND'
18756# in which case we are not to be found in the path.
18757if test "x$as_myself" = x; then
18758  as_myself=$0
18759fi
18760if test ! -f "$as_myself"; then
18761  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18762  exit 1
18763fi
18764
18765# Unset variables that we do not need and which cause bugs (e.g. in
18766# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18767# suppresses any "Segmentation fault" message there.  '((' could
18768# trigger a bug in pdksh 5.2.14.
18769for as_var in BASH_ENV ENV MAIL MAILPATH
18770do eval test x\${$as_var+set} = xset \
18771  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18772done
18773PS1='$ '
18774PS2='> '
18775PS4='+ '
18776
18777# NLS nuisances.
18778LC_ALL=C
18779export LC_ALL
18780LANGUAGE=C
18781export LANGUAGE
18782
18783# CDPATH.
18784(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18785
18786
18787# as_fn_error STATUS ERROR [LINENO LOG_FD]
18788# ----------------------------------------
18789# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18790# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18791# script with STATUS, using 1 if that was 0.
18792as_fn_error ()
18793{
18794  as_status=$1; test $as_status -eq 0 && as_status=1
18795  if test "$4"; then
18796    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18797    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18798  fi
18799  $as_echo "$as_me: error: $2" >&2
18800  as_fn_exit $as_status
18801} # as_fn_error
18802
18803
18804# as_fn_set_status STATUS
18805# -----------------------
18806# Set $? to STATUS, without forking.
18807as_fn_set_status ()
18808{
18809  return $1
18810} # as_fn_set_status
18811
18812# as_fn_exit STATUS
18813# -----------------
18814# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18815as_fn_exit ()
18816{
18817  set +e
18818  as_fn_set_status $1
18819  exit $1
18820} # as_fn_exit
18821
18822# as_fn_unset VAR
18823# ---------------
18824# Portably unset VAR.
18825as_fn_unset ()
18826{
18827  { eval $1=; unset $1;}
18828}
18829as_unset=as_fn_unset
18830# as_fn_append VAR VALUE
18831# ----------------------
18832# Append the text in VALUE to the end of the definition contained in VAR. Take
18833# advantage of any shell optimizations that allow amortized linear growth over
18834# repeated appends, instead of the typical quadratic growth present in naive
18835# implementations.
18836if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18837  eval 'as_fn_append ()
18838  {
18839    eval $1+=\$2
18840  }'
18841else
18842  as_fn_append ()
18843  {
18844    eval $1=\$$1\$2
18845  }
18846fi # as_fn_append
18847
18848# as_fn_arith ARG...
18849# ------------------
18850# Perform arithmetic evaluation on the ARGs, and store the result in the
18851# global $as_val. Take advantage of shells that can avoid forks. The arguments
18852# must be portable across $(()) and expr.
18853if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18854  eval 'as_fn_arith ()
18855  {
18856    as_val=$(( $* ))
18857  }'
18858else
18859  as_fn_arith ()
18860  {
18861    as_val=`expr "$@" || test $? -eq 1`
18862  }
18863fi # as_fn_arith
18864
18865
18866if expr a : '\(a\)' >/dev/null 2>&1 &&
18867   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18868  as_expr=expr
18869else
18870  as_expr=false
18871fi
18872
18873if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18874  as_basename=basename
18875else
18876  as_basename=false
18877fi
18878
18879if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18880  as_dirname=dirname
18881else
18882  as_dirname=false
18883fi
18884
18885as_me=`$as_basename -- "$0" ||
18886$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18887	 X"$0" : 'X\(//\)$' \| \
18888	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18889$as_echo X/"$0" |
18890    sed '/^.*\/\([^/][^/]*\)\/*$/{
18891	    s//\1/
18892	    q
18893	  }
18894	  /^X\/\(\/\/\)$/{
18895	    s//\1/
18896	    q
18897	  }
18898	  /^X\/\(\/\).*/{
18899	    s//\1/
18900	    q
18901	  }
18902	  s/.*/./; q'`
18903
18904# Avoid depending upon Character Ranges.
18905as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18906as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18907as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18908as_cr_digits='0123456789'
18909as_cr_alnum=$as_cr_Letters$as_cr_digits
18910
18911ECHO_C= ECHO_N= ECHO_T=
18912case `echo -n x` in #(((((
18913-n*)
18914  case `echo 'xy\c'` in
18915  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18916  xy)  ECHO_C='\c';;
18917  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18918       ECHO_T='	';;
18919  esac;;
18920*)
18921  ECHO_N='-n';;
18922esac
18923
18924rm -f conf$$ conf$$.exe conf$$.file
18925if test -d conf$$.dir; then
18926  rm -f conf$$.dir/conf$$.file
18927else
18928  rm -f conf$$.dir
18929  mkdir conf$$.dir 2>/dev/null
18930fi
18931if (echo >conf$$.file) 2>/dev/null; then
18932  if ln -s conf$$.file conf$$ 2>/dev/null; then
18933    as_ln_s='ln -s'
18934    # ... but there are two gotchas:
18935    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18936    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18937    # In both cases, we have to default to `cp -p'.
18938    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18939      as_ln_s='cp -p'
18940  elif ln conf$$.file conf$$ 2>/dev/null; then
18941    as_ln_s=ln
18942  else
18943    as_ln_s='cp -p'
18944  fi
18945else
18946  as_ln_s='cp -p'
18947fi
18948rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18949rmdir conf$$.dir 2>/dev/null
18950
18951
18952# as_fn_mkdir_p
18953# -------------
18954# Create "$as_dir" as a directory, including parents if necessary.
18955as_fn_mkdir_p ()
18956{
18957
18958  case $as_dir in #(
18959  -*) as_dir=./$as_dir;;
18960  esac
18961  test -d "$as_dir" || eval $as_mkdir_p || {
18962    as_dirs=
18963    while :; do
18964      case $as_dir in #(
18965      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18966      *) as_qdir=$as_dir;;
18967      esac
18968      as_dirs="'$as_qdir' $as_dirs"
18969      as_dir=`$as_dirname -- "$as_dir" ||
18970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18971	 X"$as_dir" : 'X\(//\)[^/]' \| \
18972	 X"$as_dir" : 'X\(//\)$' \| \
18973	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18974$as_echo X"$as_dir" |
18975    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18976	    s//\1/
18977	    q
18978	  }
18979	  /^X\(\/\/\)[^/].*/{
18980	    s//\1/
18981	    q
18982	  }
18983	  /^X\(\/\/\)$/{
18984	    s//\1/
18985	    q
18986	  }
18987	  /^X\(\/\).*/{
18988	    s//\1/
18989	    q
18990	  }
18991	  s/.*/./; q'`
18992      test -d "$as_dir" && break
18993    done
18994    test -z "$as_dirs" || eval "mkdir $as_dirs"
18995  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18996
18997
18998} # as_fn_mkdir_p
18999if mkdir -p . 2>/dev/null; then
19000  as_mkdir_p='mkdir -p "$as_dir"'
19001else
19002  test -d ./-p && rmdir ./-p
19003  as_mkdir_p=false
19004fi
19005
19006if test -x / >/dev/null 2>&1; then
19007  as_test_x='test -x'
19008else
19009  if ls -dL / >/dev/null 2>&1; then
19010    as_ls_L_option=L
19011  else
19012    as_ls_L_option=
19013  fi
19014  as_test_x='
19015    eval sh -c '\''
19016      if test -d "$1"; then
19017	test -d "$1/.";
19018      else
19019	case $1 in #(
19020	-*)set "./$1";;
19021	esac;
19022	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19023	???[sx]*):;;*)false;;esac;fi
19024    '\'' sh
19025  '
19026fi
19027as_executable_p=$as_test_x
19028
19029# Sed expression to map a string onto a valid CPP name.
19030as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19031
19032# Sed expression to map a string onto a valid variable name.
19033as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19034
19035
19036exec 6>&1
19037## ----------------------------------- ##
19038## Main body of $CONFIG_STATUS script. ##
19039## ----------------------------------- ##
19040_ASEOF
19041test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19042
19043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19044# Save the log message, to keep $0 and so on meaningful, and to
19045# report actual input values of CONFIG_FILES etc. instead of their
19046# values after options handling.
19047ac_log="
19048This file was extended by xf86-video-mga $as_me 1.6.2, which was
19049generated by GNU Autoconf 2.68.  Invocation command line was
19050
19051  CONFIG_FILES    = $CONFIG_FILES
19052  CONFIG_HEADERS  = $CONFIG_HEADERS
19053  CONFIG_LINKS    = $CONFIG_LINKS
19054  CONFIG_COMMANDS = $CONFIG_COMMANDS
19055  $ $0 $@
19056
19057on `(hostname || uname -n) 2>/dev/null | sed 1q`
19058"
19059
19060_ACEOF
19061
19062case $ac_config_files in *"
19063"*) set x $ac_config_files; shift; ac_config_files=$*;;
19064esac
19065
19066case $ac_config_headers in *"
19067"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19068esac
19069
19070
19071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19072# Files that config.status was made for.
19073config_files="$ac_config_files"
19074config_headers="$ac_config_headers"
19075config_commands="$ac_config_commands"
19076
19077_ACEOF
19078
19079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19080ac_cs_usage="\
19081\`$as_me' instantiates files and other configuration actions
19082from templates according to the current configuration.  Unless the files
19083and actions are specified as TAGs, all are instantiated by default.
19084
19085Usage: $0 [OPTION]... [TAG]...
19086
19087  -h, --help       print this help, then exit
19088  -V, --version    print version number and configuration settings, then exit
19089      --config     print configuration, then exit
19090  -q, --quiet, --silent
19091                   do not print progress messages
19092  -d, --debug      don't remove temporary files
19093      --recheck    update $as_me by reconfiguring in the same conditions
19094      --file=FILE[:TEMPLATE]
19095                   instantiate the configuration file FILE
19096      --header=FILE[:TEMPLATE]
19097                   instantiate the configuration header FILE
19098
19099Configuration files:
19100$config_files
19101
19102Configuration headers:
19103$config_headers
19104
19105Configuration commands:
19106$config_commands
19107
19108Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19109
19110_ACEOF
19111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19112ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19113ac_cs_version="\\
19114xf86-video-mga config.status 1.6.2
19115configured by $0, generated by GNU Autoconf 2.68,
19116  with options \\"\$ac_cs_config\\"
19117
19118Copyright (C) 2010 Free Software Foundation, Inc.
19119This config.status script is free software; the Free Software Foundation
19120gives unlimited permission to copy, distribute and modify it."
19121
19122ac_pwd='$ac_pwd'
19123srcdir='$srcdir'
19124INSTALL='$INSTALL'
19125MKDIR_P='$MKDIR_P'
19126AWK='$AWK'
19127test -n "\$AWK" || AWK=awk
19128_ACEOF
19129
19130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19131# The default lists apply if the user does not specify any file.
19132ac_need_defaults=:
19133while test $# != 0
19134do
19135  case $1 in
19136  --*=?*)
19137    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19138    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19139    ac_shift=:
19140    ;;
19141  --*=)
19142    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19143    ac_optarg=
19144    ac_shift=:
19145    ;;
19146  *)
19147    ac_option=$1
19148    ac_optarg=$2
19149    ac_shift=shift
19150    ;;
19151  esac
19152
19153  case $ac_option in
19154  # Handling of the options.
19155  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19156    ac_cs_recheck=: ;;
19157  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19158    $as_echo "$ac_cs_version"; exit ;;
19159  --config | --confi | --conf | --con | --co | --c )
19160    $as_echo "$ac_cs_config"; exit ;;
19161  --debug | --debu | --deb | --de | --d | -d )
19162    debug=: ;;
19163  --file | --fil | --fi | --f )
19164    $ac_shift
19165    case $ac_optarg in
19166    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19167    '') as_fn_error $? "missing file argument" ;;
19168    esac
19169    as_fn_append CONFIG_FILES " '$ac_optarg'"
19170    ac_need_defaults=false;;
19171  --header | --heade | --head | --hea )
19172    $ac_shift
19173    case $ac_optarg in
19174    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19175    esac
19176    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19177    ac_need_defaults=false;;
19178  --he | --h)
19179    # Conflict between --help and --header
19180    as_fn_error $? "ambiguous option: \`$1'
19181Try \`$0 --help' for more information.";;
19182  --help | --hel | -h )
19183    $as_echo "$ac_cs_usage"; exit ;;
19184  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19185  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19186    ac_cs_silent=: ;;
19187
19188  # This is an error.
19189  -*) as_fn_error $? "unrecognized option: \`$1'
19190Try \`$0 --help' for more information." ;;
19191
19192  *) as_fn_append ac_config_targets " $1"
19193     ac_need_defaults=false ;;
19194
19195  esac
19196  shift
19197done
19198
19199ac_configure_extra_args=
19200
19201if $ac_cs_silent; then
19202  exec 6>/dev/null
19203  ac_configure_extra_args="$ac_configure_extra_args --silent"
19204fi
19205
19206_ACEOF
19207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19208if \$ac_cs_recheck; then
19209  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19210  shift
19211  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19212  CONFIG_SHELL='$SHELL'
19213  export CONFIG_SHELL
19214  exec "\$@"
19215fi
19216
19217_ACEOF
19218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19219exec 5>>config.log
19220{
19221  echo
19222  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19223## Running $as_me. ##
19224_ASBOX
19225  $as_echo "$ac_log"
19226} >&5
19227
19228_ACEOF
19229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19230#
19231# INIT-COMMANDS
19232#
19233AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19234
19235
19236# The HP-UX ksh and POSIX shell print the target directory to stdout
19237# if CDPATH is set.
19238(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19239
19240sed_quote_subst='$sed_quote_subst'
19241double_quote_subst='$double_quote_subst'
19242delay_variable_subst='$delay_variable_subst'
19243enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19244macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19245macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19246enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19247pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19248enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19249SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19250ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19251PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19252host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19253host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19254host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19255build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19256build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19257build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19258SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19259Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19260GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19261EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19262FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19263LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19264NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19265LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19266max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19267ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19268exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19269lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19270lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19271lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19272lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19273lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19274reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19275reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19276OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19277deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19278file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19279file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19280want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19281DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19282sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19283AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19284AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19285archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19286STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19287RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19288old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19289old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19290old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19291lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19292CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19293CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19294compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19295GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19296lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19297lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19298lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19299lt_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"`'
19300nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19301lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19302objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19303MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19304lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19305lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19306lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19307lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19308lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19309need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19310MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19311DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19312NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19313LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19314OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19315OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19316libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19317shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19318extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19319archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19320enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19321export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19322whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19323compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19324old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19325old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19326archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19327archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19328module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19329module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19330with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19331allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19332no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19333hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19334hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19335hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19336hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19337hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19338hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19339hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19340inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19341link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19342always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19343export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19344exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19345include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19346prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19347postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19348file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19349variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19350need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19351need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19352version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19353runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19354shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19355shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19356libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19357library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19358soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19359install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19360postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19361postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19362finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19363finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19364hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19365sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19366sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19367hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19368enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19369enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19370enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19371old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19372striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19373
19374LTCC='$LTCC'
19375LTCFLAGS='$LTCFLAGS'
19376compiler='$compiler_DEFAULT'
19377
19378# A function that is used when there is no print builtin or printf.
19379func_fallback_echo ()
19380{
19381  eval 'cat <<_LTECHO_EOF
19382\$1
19383_LTECHO_EOF'
19384}
19385
19386# Quote evaled strings.
19387for var in SHELL \
19388ECHO \
19389PATH_SEPARATOR \
19390SED \
19391GREP \
19392EGREP \
19393FGREP \
19394LD \
19395NM \
19396LN_S \
19397lt_SP2NL \
19398lt_NL2SP \
19399reload_flag \
19400OBJDUMP \
19401deplibs_check_method \
19402file_magic_cmd \
19403file_magic_glob \
19404want_nocaseglob \
19405DLLTOOL \
19406sharedlib_from_linklib_cmd \
19407AR \
19408AR_FLAGS \
19409archiver_list_spec \
19410STRIP \
19411RANLIB \
19412CC \
19413CFLAGS \
19414compiler \
19415lt_cv_sys_global_symbol_pipe \
19416lt_cv_sys_global_symbol_to_cdecl \
19417lt_cv_sys_global_symbol_to_c_name_address \
19418lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19419nm_file_list_spec \
19420lt_prog_compiler_no_builtin_flag \
19421lt_prog_compiler_pic \
19422lt_prog_compiler_wl \
19423lt_prog_compiler_static \
19424lt_cv_prog_compiler_c_o \
19425need_locks \
19426MANIFEST_TOOL \
19427DSYMUTIL \
19428NMEDIT \
19429LIPO \
19430OTOOL \
19431OTOOL64 \
19432shrext_cmds \
19433export_dynamic_flag_spec \
19434whole_archive_flag_spec \
19435compiler_needs_object \
19436with_gnu_ld \
19437allow_undefined_flag \
19438no_undefined_flag \
19439hardcode_libdir_flag_spec \
19440hardcode_libdir_separator \
19441exclude_expsyms \
19442include_expsyms \
19443file_list_spec \
19444variables_saved_for_relink \
19445libname_spec \
19446library_names_spec \
19447soname_spec \
19448install_override_mode \
19449finish_eval \
19450old_striplib \
19451striplib; do
19452    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19453    *[\\\\\\\`\\"\\\$]*)
19454      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19455      ;;
19456    *)
19457      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19458      ;;
19459    esac
19460done
19461
19462# Double-quote double-evaled strings.
19463for var in reload_cmds \
19464old_postinstall_cmds \
19465old_postuninstall_cmds \
19466old_archive_cmds \
19467extract_expsyms_cmds \
19468old_archive_from_new_cmds \
19469old_archive_from_expsyms_cmds \
19470archive_cmds \
19471archive_expsym_cmds \
19472module_cmds \
19473module_expsym_cmds \
19474export_symbols_cmds \
19475prelink_cmds \
19476postlink_cmds \
19477postinstall_cmds \
19478postuninstall_cmds \
19479finish_cmds \
19480sys_lib_search_path_spec \
19481sys_lib_dlsearch_path_spec; do
19482    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19483    *[\\\\\\\`\\"\\\$]*)
19484      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19485      ;;
19486    *)
19487      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19488      ;;
19489    esac
19490done
19491
19492ac_aux_dir='$ac_aux_dir'
19493xsi_shell='$xsi_shell'
19494lt_shell_append='$lt_shell_append'
19495
19496# See if we are running on zsh, and set the options which allow our
19497# commands through without removal of \ escapes INIT.
19498if test -n "\${ZSH_VERSION+set}" ; then
19499   setopt NO_GLOB_SUBST
19500fi
19501
19502
19503    PACKAGE='$PACKAGE'
19504    VERSION='$VERSION'
19505    TIMESTAMP='$TIMESTAMP'
19506    RM='$RM'
19507    ofile='$ofile'
19508
19509
19510
19511
19512_ACEOF
19513
19514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19515
19516# Handling of arguments.
19517for ac_config_target in $ac_config_targets
19518do
19519  case $ac_config_target in
19520    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19521    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19522    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19523    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19524    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19525    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19526    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
19527
19528  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19529  esac
19530done
19531
19532
19533# If the user did not use the arguments to specify the items to instantiate,
19534# then the envvar interface is used.  Set only those that are not.
19535# We use the long form for the default assignment because of an extremely
19536# bizarre bug on SunOS 4.1.3.
19537if $ac_need_defaults; then
19538  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19539  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19540  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19541fi
19542
19543# Have a temporary directory for convenience.  Make it in the build tree
19544# simply because there is no reason against having it here, and in addition,
19545# creating and moving files from /tmp can sometimes cause problems.
19546# Hook for its removal unless debugging.
19547# Note that there is a small window in which the directory will not be cleaned:
19548# after its creation but before its name has been assigned to `$tmp'.
19549$debug ||
19550{
19551  tmp= ac_tmp=
19552  trap 'exit_status=$?
19553  : "${ac_tmp:=$tmp}"
19554  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19555' 0
19556  trap 'as_fn_exit 1' 1 2 13 15
19557}
19558# Create a (secure) tmp directory for tmp files.
19559
19560{
19561  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19562  test -d "$tmp"
19563}  ||
19564{
19565  tmp=./conf$$-$RANDOM
19566  (umask 077 && mkdir "$tmp")
19567} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19568ac_tmp=$tmp
19569
19570# Set up the scripts for CONFIG_FILES section.
19571# No need to generate them if there are no CONFIG_FILES.
19572# This happens for instance with `./config.status config.h'.
19573if test -n "$CONFIG_FILES"; then
19574
19575
19576ac_cr=`echo X | tr X '\015'`
19577# On cygwin, bash can eat \r inside `` if the user requested igncr.
19578# But we know of no other shell where ac_cr would be empty at this
19579# point, so we can use a bashism as a fallback.
19580if test "x$ac_cr" = x; then
19581  eval ac_cr=\$\'\\r\'
19582fi
19583ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19584if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19585  ac_cs_awk_cr='\\r'
19586else
19587  ac_cs_awk_cr=$ac_cr
19588fi
19589
19590echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19591_ACEOF
19592
19593
19594{
19595  echo "cat >conf$$subs.awk <<_ACEOF" &&
19596  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19597  echo "_ACEOF"
19598} >conf$$subs.sh ||
19599  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19600ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19601ac_delim='%!_!# '
19602for ac_last_try in false false false false false :; do
19603  . ./conf$$subs.sh ||
19604    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19605
19606  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19607  if test $ac_delim_n = $ac_delim_num; then
19608    break
19609  elif $ac_last_try; then
19610    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19611  else
19612    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19613  fi
19614done
19615rm -f conf$$subs.sh
19616
19617cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19618cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19619_ACEOF
19620sed -n '
19621h
19622s/^/S["/; s/!.*/"]=/
19623p
19624g
19625s/^[^!]*!//
19626:repl
19627t repl
19628s/'"$ac_delim"'$//
19629t delim
19630:nl
19631h
19632s/\(.\{148\}\)..*/\1/
19633t more1
19634s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19635p
19636n
19637b repl
19638:more1
19639s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19640p
19641g
19642s/.\{148\}//
19643t nl
19644:delim
19645h
19646s/\(.\{148\}\)..*/\1/
19647t more2
19648s/["\\]/\\&/g; s/^/"/; s/$/"/
19649p
19650b
19651:more2
19652s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19653p
19654g
19655s/.\{148\}//
19656t delim
19657' <conf$$subs.awk | sed '
19658/^[^""]/{
19659  N
19660  s/\n//
19661}
19662' >>$CONFIG_STATUS || ac_write_fail=1
19663rm -f conf$$subs.awk
19664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19665_ACAWK
19666cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19667  for (key in S) S_is_set[key] = 1
19668  FS = ""
19669
19670}
19671{
19672  line = $ 0
19673  nfields = split(line, field, "@")
19674  substed = 0
19675  len = length(field[1])
19676  for (i = 2; i < nfields; i++) {
19677    key = field[i]
19678    keylen = length(key)
19679    if (S_is_set[key]) {
19680      value = S[key]
19681      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19682      len += length(value) + length(field[++i])
19683      substed = 1
19684    } else
19685      len += 1 + keylen
19686  }
19687
19688  print line
19689}
19690
19691_ACAWK
19692_ACEOF
19693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19694if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19695  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19696else
19697  cat
19698fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19699  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19700_ACEOF
19701
19702# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19703# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19704# trailing colons and then remove the whole line if VPATH becomes empty
19705# (actually we leave an empty line to preserve line numbers).
19706if test "x$srcdir" = x.; then
19707  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19708h
19709s///
19710s/^/:/
19711s/[	 ]*$/:/
19712s/:\$(srcdir):/:/g
19713s/:\${srcdir}:/:/g
19714s/:@srcdir@:/:/g
19715s/^:*//
19716s/:*$//
19717x
19718s/\(=[	 ]*\).*/\1/
19719G
19720s/\n//
19721s/^[^=]*=[	 ]*$//
19722}'
19723fi
19724
19725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19726fi # test -n "$CONFIG_FILES"
19727
19728# Set up the scripts for CONFIG_HEADERS section.
19729# No need to generate them if there are no CONFIG_HEADERS.
19730# This happens for instance with `./config.status Makefile'.
19731if test -n "$CONFIG_HEADERS"; then
19732cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19733BEGIN {
19734_ACEOF
19735
19736# Transform confdefs.h into an awk script `defines.awk', embedded as
19737# here-document in config.status, that substitutes the proper values into
19738# config.h.in to produce config.h.
19739
19740# Create a delimiter string that does not exist in confdefs.h, to ease
19741# handling of long lines.
19742ac_delim='%!_!# '
19743for ac_last_try in false false :; do
19744  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19745  if test -z "$ac_tt"; then
19746    break
19747  elif $ac_last_try; then
19748    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19749  else
19750    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19751  fi
19752done
19753
19754# For the awk script, D is an array of macro values keyed by name,
19755# likewise P contains macro parameters if any.  Preserve backslash
19756# newline sequences.
19757
19758ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19759sed -n '
19760s/.\{148\}/&'"$ac_delim"'/g
19761t rset
19762:rset
19763s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19764t def
19765d
19766:def
19767s/\\$//
19768t bsnl
19769s/["\\]/\\&/g
19770s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19771D["\1"]=" \3"/p
19772s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19773d
19774:bsnl
19775s/["\\]/\\&/g
19776s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19777D["\1"]=" \3\\\\\\n"\\/p
19778t cont
19779s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19780t cont
19781d
19782:cont
19783n
19784s/.\{148\}/&'"$ac_delim"'/g
19785t clear
19786:clear
19787s/\\$//
19788t bsnlc
19789s/["\\]/\\&/g; s/^/"/; s/$/"/p
19790d
19791:bsnlc
19792s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19793b cont
19794' <confdefs.h | sed '
19795s/'"$ac_delim"'/"\\\
19796"/g' >>$CONFIG_STATUS || ac_write_fail=1
19797
19798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19799  for (key in D) D_is_set[key] = 1
19800  FS = ""
19801}
19802/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19803  line = \$ 0
19804  split(line, arg, " ")
19805  if (arg[1] == "#") {
19806    defundef = arg[2]
19807    mac1 = arg[3]
19808  } else {
19809    defundef = substr(arg[1], 2)
19810    mac1 = arg[2]
19811  }
19812  split(mac1, mac2, "(") #)
19813  macro = mac2[1]
19814  prefix = substr(line, 1, index(line, defundef) - 1)
19815  if (D_is_set[macro]) {
19816    # Preserve the white space surrounding the "#".
19817    print prefix "define", macro P[macro] D[macro]
19818    next
19819  } else {
19820    # Replace #undef with comments.  This is necessary, for example,
19821    # in the case of _POSIX_SOURCE, which is predefined and required
19822    # on some systems where configure will not decide to define it.
19823    if (defundef == "undef") {
19824      print "/*", prefix defundef, macro, "*/"
19825      next
19826    }
19827  }
19828}
19829{ print }
19830_ACAWK
19831_ACEOF
19832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19833  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19834fi # test -n "$CONFIG_HEADERS"
19835
19836
19837eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19838shift
19839for ac_tag
19840do
19841  case $ac_tag in
19842  :[FHLC]) ac_mode=$ac_tag; continue;;
19843  esac
19844  case $ac_mode$ac_tag in
19845  :[FHL]*:*);;
19846  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19847  :[FH]-) ac_tag=-:-;;
19848  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19849  esac
19850  ac_save_IFS=$IFS
19851  IFS=:
19852  set x $ac_tag
19853  IFS=$ac_save_IFS
19854  shift
19855  ac_file=$1
19856  shift
19857
19858  case $ac_mode in
19859  :L) ac_source=$1;;
19860  :[FH])
19861    ac_file_inputs=
19862    for ac_f
19863    do
19864      case $ac_f in
19865      -) ac_f="$ac_tmp/stdin";;
19866      *) # Look for the file first in the build tree, then in the source tree
19867	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19868	 # because $ac_f cannot contain `:'.
19869	 test -f "$ac_f" ||
19870	   case $ac_f in
19871	   [\\/$]*) false;;
19872	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19873	   esac ||
19874	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19875      esac
19876      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19877      as_fn_append ac_file_inputs " '$ac_f'"
19878    done
19879
19880    # Let's still pretend it is `configure' which instantiates (i.e., don't
19881    # use $as_me), people would be surprised to read:
19882    #    /* config.h.  Generated by config.status.  */
19883    configure_input='Generated from '`
19884	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19885	`' by configure.'
19886    if test x"$ac_file" != x-; then
19887      configure_input="$ac_file.  $configure_input"
19888      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19889$as_echo "$as_me: creating $ac_file" >&6;}
19890    fi
19891    # Neutralize special characters interpreted by sed in replacement strings.
19892    case $configure_input in #(
19893    *\&* | *\|* | *\\* )
19894       ac_sed_conf_input=`$as_echo "$configure_input" |
19895       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19896    *) ac_sed_conf_input=$configure_input;;
19897    esac
19898
19899    case $ac_tag in
19900    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19901      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19902    esac
19903    ;;
19904  esac
19905
19906  ac_dir=`$as_dirname -- "$ac_file" ||
19907$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19908	 X"$ac_file" : 'X\(//\)[^/]' \| \
19909	 X"$ac_file" : 'X\(//\)$' \| \
19910	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19911$as_echo X"$ac_file" |
19912    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19913	    s//\1/
19914	    q
19915	  }
19916	  /^X\(\/\/\)[^/].*/{
19917	    s//\1/
19918	    q
19919	  }
19920	  /^X\(\/\/\)$/{
19921	    s//\1/
19922	    q
19923	  }
19924	  /^X\(\/\).*/{
19925	    s//\1/
19926	    q
19927	  }
19928	  s/.*/./; q'`
19929  as_dir="$ac_dir"; as_fn_mkdir_p
19930  ac_builddir=.
19931
19932case "$ac_dir" in
19933.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19934*)
19935  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19936  # A ".." for each directory in $ac_dir_suffix.
19937  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19938  case $ac_top_builddir_sub in
19939  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19940  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19941  esac ;;
19942esac
19943ac_abs_top_builddir=$ac_pwd
19944ac_abs_builddir=$ac_pwd$ac_dir_suffix
19945# for backward compatibility:
19946ac_top_builddir=$ac_top_build_prefix
19947
19948case $srcdir in
19949  .)  # We are building in place.
19950    ac_srcdir=.
19951    ac_top_srcdir=$ac_top_builddir_sub
19952    ac_abs_top_srcdir=$ac_pwd ;;
19953  [\\/]* | ?:[\\/]* )  # Absolute name.
19954    ac_srcdir=$srcdir$ac_dir_suffix;
19955    ac_top_srcdir=$srcdir
19956    ac_abs_top_srcdir=$srcdir ;;
19957  *) # Relative name.
19958    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19959    ac_top_srcdir=$ac_top_build_prefix$srcdir
19960    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19961esac
19962ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19963
19964
19965  case $ac_mode in
19966  :F)
19967  #
19968  # CONFIG_FILE
19969  #
19970
19971  case $INSTALL in
19972  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19973  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19974  esac
19975  ac_MKDIR_P=$MKDIR_P
19976  case $MKDIR_P in
19977  [\\/$]* | ?:[\\/]* ) ;;
19978  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19979  esac
19980_ACEOF
19981
19982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19983# If the template does not know about datarootdir, expand it.
19984# FIXME: This hack should be removed a few years after 2.60.
19985ac_datarootdir_hack=; ac_datarootdir_seen=
19986ac_sed_dataroot='
19987/datarootdir/ {
19988  p
19989  q
19990}
19991/@datadir@/p
19992/@docdir@/p
19993/@infodir@/p
19994/@localedir@/p
19995/@mandir@/p'
19996case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19997*datarootdir*) ac_datarootdir_seen=yes;;
19998*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19999  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20000$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20001_ACEOF
20002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20003  ac_datarootdir_hack='
20004  s&@datadir@&$datadir&g
20005  s&@docdir@&$docdir&g
20006  s&@infodir@&$infodir&g
20007  s&@localedir@&$localedir&g
20008  s&@mandir@&$mandir&g
20009  s&\\\${datarootdir}&$datarootdir&g' ;;
20010esac
20011_ACEOF
20012
20013# Neutralize VPATH when `$srcdir' = `.'.
20014# Shell code in configure.ac might set extrasub.
20015# FIXME: do we really want to maintain this feature?
20016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20017ac_sed_extra="$ac_vpsub
20018$extrasub
20019_ACEOF
20020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20021:t
20022/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20023s|@configure_input@|$ac_sed_conf_input|;t t
20024s&@top_builddir@&$ac_top_builddir_sub&;t t
20025s&@top_build_prefix@&$ac_top_build_prefix&;t t
20026s&@srcdir@&$ac_srcdir&;t t
20027s&@abs_srcdir@&$ac_abs_srcdir&;t t
20028s&@top_srcdir@&$ac_top_srcdir&;t t
20029s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20030s&@builddir@&$ac_builddir&;t t
20031s&@abs_builddir@&$ac_abs_builddir&;t t
20032s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20033s&@INSTALL@&$ac_INSTALL&;t t
20034s&@MKDIR_P@&$ac_MKDIR_P&;t t
20035$ac_datarootdir_hack
20036"
20037eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20038  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20039
20040test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20041  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20042  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20043      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20044  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20045which seems to be undefined.  Please make sure it is defined" >&5
20046$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20047which seems to be undefined.  Please make sure it is defined" >&2;}
20048
20049  rm -f "$ac_tmp/stdin"
20050  case $ac_file in
20051  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20052  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20053  esac \
20054  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20055 ;;
20056  :H)
20057  #
20058  # CONFIG_HEADER
20059  #
20060  if test x"$ac_file" != x-; then
20061    {
20062      $as_echo "/* $configure_input  */" \
20063      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20064    } >"$ac_tmp/config.h" \
20065      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20066    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20067      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20068$as_echo "$as_me: $ac_file is unchanged" >&6;}
20069    else
20070      rm -f "$ac_file"
20071      mv "$ac_tmp/config.h" "$ac_file" \
20072	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20073    fi
20074  else
20075    $as_echo "/* $configure_input  */" \
20076      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20077      || as_fn_error $? "could not create -" "$LINENO" 5
20078  fi
20079# Compute "$ac_file"'s index in $config_headers.
20080_am_arg="$ac_file"
20081_am_stamp_count=1
20082for _am_header in $config_headers :; do
20083  case $_am_header in
20084    $_am_arg | $_am_arg:* )
20085      break ;;
20086    * )
20087      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20088  esac
20089done
20090echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20091$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20092	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20093	 X"$_am_arg" : 'X\(//\)$' \| \
20094	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20095$as_echo X"$_am_arg" |
20096    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20097	    s//\1/
20098	    q
20099	  }
20100	  /^X\(\/\/\)[^/].*/{
20101	    s//\1/
20102	    q
20103	  }
20104	  /^X\(\/\/\)$/{
20105	    s//\1/
20106	    q
20107	  }
20108	  /^X\(\/\).*/{
20109	    s//\1/
20110	    q
20111	  }
20112	  s/.*/./; q'`/stamp-h$_am_stamp_count
20113 ;;
20114
20115  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20116$as_echo "$as_me: executing $ac_file commands" >&6;}
20117 ;;
20118  esac
20119
20120
20121  case $ac_file$ac_mode in
20122    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20123  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20124  # are listed without --file.  Let's play safe and only enable the eval
20125  # if we detect the quoting.
20126  case $CONFIG_FILES in
20127  *\'*) eval set x "$CONFIG_FILES" ;;
20128  *)   set x $CONFIG_FILES ;;
20129  esac
20130  shift
20131  for mf
20132  do
20133    # Strip MF so we end up with the name of the file.
20134    mf=`echo "$mf" | sed -e 's/:.*$//'`
20135    # Check whether this is an Automake generated Makefile or not.
20136    # We used to match only the files named `Makefile.in', but
20137    # some people rename them; so instead we look at the file content.
20138    # Grep'ing the first line is not enough: some people post-process
20139    # each Makefile.in and add a new line on top of each file to say so.
20140    # Grep'ing the whole file is not good either: AIX grep has a line
20141    # limit of 2048, but all sed's we know have understand at least 4000.
20142    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20143      dirpart=`$as_dirname -- "$mf" ||
20144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20145	 X"$mf" : 'X\(//\)[^/]' \| \
20146	 X"$mf" : 'X\(//\)$' \| \
20147	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20148$as_echo X"$mf" |
20149    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20150	    s//\1/
20151	    q
20152	  }
20153	  /^X\(\/\/\)[^/].*/{
20154	    s//\1/
20155	    q
20156	  }
20157	  /^X\(\/\/\)$/{
20158	    s//\1/
20159	    q
20160	  }
20161	  /^X\(\/\).*/{
20162	    s//\1/
20163	    q
20164	  }
20165	  s/.*/./; q'`
20166    else
20167      continue
20168    fi
20169    # Extract the definition of DEPDIR, am__include, and am__quote
20170    # from the Makefile without running `make'.
20171    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20172    test -z "$DEPDIR" && continue
20173    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20174    test -z "am__include" && continue
20175    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20176    # When using ansi2knr, U may be empty or an underscore; expand it
20177    U=`sed -n 's/^U = //p' < "$mf"`
20178    # Find all dependency output files, they are included files with
20179    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20180    # simplest approach to changing $(DEPDIR) to its actual value in the
20181    # expansion.
20182    for file in `sed -n "
20183      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20184	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20185      # Make sure the directory exists.
20186      test -f "$dirpart/$file" && continue
20187      fdir=`$as_dirname -- "$file" ||
20188$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20189	 X"$file" : 'X\(//\)[^/]' \| \
20190	 X"$file" : 'X\(//\)$' \| \
20191	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20192$as_echo X"$file" |
20193    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20194	    s//\1/
20195	    q
20196	  }
20197	  /^X\(\/\/\)[^/].*/{
20198	    s//\1/
20199	    q
20200	  }
20201	  /^X\(\/\/\)$/{
20202	    s//\1/
20203	    q
20204	  }
20205	  /^X\(\/\).*/{
20206	    s//\1/
20207	    q
20208	  }
20209	  s/.*/./; q'`
20210      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20211      # echo "creating $dirpart/$file"
20212      echo '# dummy' > "$dirpart/$file"
20213    done
20214  done
20215}
20216 ;;
20217    "libtool":C)
20218
20219    # See if we are running on zsh, and set the options which allow our
20220    # commands through without removal of \ escapes.
20221    if test -n "${ZSH_VERSION+set}" ; then
20222      setopt NO_GLOB_SUBST
20223    fi
20224
20225    cfgfile="${ofile}T"
20226    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20227    $RM "$cfgfile"
20228
20229    cat <<_LT_EOF >> "$cfgfile"
20230#! $SHELL
20231
20232# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20233# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20234# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20235# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20236#
20237#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20238#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20239#                 Foundation, Inc.
20240#   Written by Gordon Matzigkeit, 1996
20241#
20242#   This file is part of GNU Libtool.
20243#
20244# GNU Libtool is free software; you can redistribute it and/or
20245# modify it under the terms of the GNU General Public License as
20246# published by the Free Software Foundation; either version 2 of
20247# the License, or (at your option) any later version.
20248#
20249# As a special exception to the GNU General Public License,
20250# if you distribute this file as part of a program or library that
20251# is built using GNU Libtool, you may include this file under the
20252# same distribution terms that you use for the rest of that program.
20253#
20254# GNU Libtool is distributed in the hope that it will be useful,
20255# but WITHOUT ANY WARRANTY; without even the implied warranty of
20256# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20257# GNU General Public License for more details.
20258#
20259# You should have received a copy of the GNU General Public License
20260# along with GNU Libtool; see the file COPYING.  If not, a copy
20261# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20262# obtained by writing to the Free Software Foundation, Inc.,
20263# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20264
20265
20266# The names of the tagged configurations supported by this script.
20267available_tags=""
20268
20269# ### BEGIN LIBTOOL CONFIG
20270
20271# Whether or not to build static libraries.
20272build_old_libs=$enable_static
20273
20274# Which release of libtool.m4 was used?
20275macro_version=$macro_version
20276macro_revision=$macro_revision
20277
20278# Whether or not to build shared libraries.
20279build_libtool_libs=$enable_shared
20280
20281# What type of objects to build.
20282pic_mode=$pic_mode
20283
20284# Whether or not to optimize for fast installation.
20285fast_install=$enable_fast_install
20286
20287# Shell to use when invoking shell scripts.
20288SHELL=$lt_SHELL
20289
20290# An echo program that protects backslashes.
20291ECHO=$lt_ECHO
20292
20293# The PATH separator for the build system.
20294PATH_SEPARATOR=$lt_PATH_SEPARATOR
20295
20296# The host system.
20297host_alias=$host_alias
20298host=$host
20299host_os=$host_os
20300
20301# The build system.
20302build_alias=$build_alias
20303build=$build
20304build_os=$build_os
20305
20306# A sed program that does not truncate output.
20307SED=$lt_SED
20308
20309# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20310Xsed="\$SED -e 1s/^X//"
20311
20312# A grep program that handles long lines.
20313GREP=$lt_GREP
20314
20315# An ERE matcher.
20316EGREP=$lt_EGREP
20317
20318# A literal string matcher.
20319FGREP=$lt_FGREP
20320
20321# A BSD- or MS-compatible name lister.
20322NM=$lt_NM
20323
20324# Whether we need soft or hard links.
20325LN_S=$lt_LN_S
20326
20327# What is the maximum length of a command?
20328max_cmd_len=$max_cmd_len
20329
20330# Object file suffix (normally "o").
20331objext=$ac_objext
20332
20333# Executable file suffix (normally "").
20334exeext=$exeext
20335
20336# whether the shell understands "unset".
20337lt_unset=$lt_unset
20338
20339# turn spaces into newlines.
20340SP2NL=$lt_lt_SP2NL
20341
20342# turn newlines into spaces.
20343NL2SP=$lt_lt_NL2SP
20344
20345# convert \$build file names to \$host format.
20346to_host_file_cmd=$lt_cv_to_host_file_cmd
20347
20348# convert \$build files to toolchain format.
20349to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20350
20351# An object symbol dumper.
20352OBJDUMP=$lt_OBJDUMP
20353
20354# Method to check whether dependent libraries are shared objects.
20355deplibs_check_method=$lt_deplibs_check_method
20356
20357# Command to use when deplibs_check_method = "file_magic".
20358file_magic_cmd=$lt_file_magic_cmd
20359
20360# How to find potential files when deplibs_check_method = "file_magic".
20361file_magic_glob=$lt_file_magic_glob
20362
20363# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20364want_nocaseglob=$lt_want_nocaseglob
20365
20366# DLL creation program.
20367DLLTOOL=$lt_DLLTOOL
20368
20369# Command to associate shared and link libraries.
20370sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20371
20372# The archiver.
20373AR=$lt_AR
20374
20375# Flags to create an archive.
20376AR_FLAGS=$lt_AR_FLAGS
20377
20378# How to feed a file listing to the archiver.
20379archiver_list_spec=$lt_archiver_list_spec
20380
20381# A symbol stripping program.
20382STRIP=$lt_STRIP
20383
20384# Commands used to install an old-style archive.
20385RANLIB=$lt_RANLIB
20386old_postinstall_cmds=$lt_old_postinstall_cmds
20387old_postuninstall_cmds=$lt_old_postuninstall_cmds
20388
20389# Whether to use a lock for old archive extraction.
20390lock_old_archive_extraction=$lock_old_archive_extraction
20391
20392# A C compiler.
20393LTCC=$lt_CC
20394
20395# LTCC compiler flags.
20396LTCFLAGS=$lt_CFLAGS
20397
20398# Take the output of nm and produce a listing of raw symbols and C names.
20399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20400
20401# Transform the output of nm in a proper C declaration.
20402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20403
20404# Transform the output of nm in a C name address pair.
20405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20406
20407# Transform the output of nm in a C name address pair when lib prefix is needed.
20408global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20409
20410# Specify filename containing input files for \$NM.
20411nm_file_list_spec=$lt_nm_file_list_spec
20412
20413# The root where to search for dependent libraries,and in which our libraries should be installed.
20414lt_sysroot=$lt_sysroot
20415
20416# The name of the directory that contains temporary libtool files.
20417objdir=$objdir
20418
20419# Used to examine libraries when file_magic_cmd begins with "file".
20420MAGIC_CMD=$MAGIC_CMD
20421
20422# Must we lock files when doing compilation?
20423need_locks=$lt_need_locks
20424
20425# Manifest tool.
20426MANIFEST_TOOL=$lt_MANIFEST_TOOL
20427
20428# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20429DSYMUTIL=$lt_DSYMUTIL
20430
20431# Tool to change global to local symbols on Mac OS X.
20432NMEDIT=$lt_NMEDIT
20433
20434# Tool to manipulate fat objects and archives on Mac OS X.
20435LIPO=$lt_LIPO
20436
20437# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20438OTOOL=$lt_OTOOL
20439
20440# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20441OTOOL64=$lt_OTOOL64
20442
20443# Old archive suffix (normally "a").
20444libext=$libext
20445
20446# Shared library suffix (normally ".so").
20447shrext_cmds=$lt_shrext_cmds
20448
20449# The commands to extract the exported symbol list from a shared archive.
20450extract_expsyms_cmds=$lt_extract_expsyms_cmds
20451
20452# Variables whose values should be saved in libtool wrapper scripts and
20453# restored at link time.
20454variables_saved_for_relink=$lt_variables_saved_for_relink
20455
20456# Do we need the "lib" prefix for modules?
20457need_lib_prefix=$need_lib_prefix
20458
20459# Do we need a version for libraries?
20460need_version=$need_version
20461
20462# Library versioning type.
20463version_type=$version_type
20464
20465# Shared library runtime path variable.
20466runpath_var=$runpath_var
20467
20468# Shared library path variable.
20469shlibpath_var=$shlibpath_var
20470
20471# Is shlibpath searched before the hard-coded library search path?
20472shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20473
20474# Format of library name prefix.
20475libname_spec=$lt_libname_spec
20476
20477# List of archive names.  First name is the real one, the rest are links.
20478# The last name is the one that the linker finds with -lNAME
20479library_names_spec=$lt_library_names_spec
20480
20481# The coded name of the library, if different from the real name.
20482soname_spec=$lt_soname_spec
20483
20484# Permission mode override for installation of shared libraries.
20485install_override_mode=$lt_install_override_mode
20486
20487# Command to use after installation of a shared archive.
20488postinstall_cmds=$lt_postinstall_cmds
20489
20490# Command to use after uninstallation of a shared archive.
20491postuninstall_cmds=$lt_postuninstall_cmds
20492
20493# Commands used to finish a libtool library installation in a directory.
20494finish_cmds=$lt_finish_cmds
20495
20496# As "finish_cmds", except a single script fragment to be evaled but
20497# not shown.
20498finish_eval=$lt_finish_eval
20499
20500# Whether we should hardcode library paths into libraries.
20501hardcode_into_libs=$hardcode_into_libs
20502
20503# Compile-time system search path for libraries.
20504sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20505
20506# Run-time system search path for libraries.
20507sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20508
20509# Whether dlopen is supported.
20510dlopen_support=$enable_dlopen
20511
20512# Whether dlopen of programs is supported.
20513dlopen_self=$enable_dlopen_self
20514
20515# Whether dlopen of statically linked programs is supported.
20516dlopen_self_static=$enable_dlopen_self_static
20517
20518# Commands to strip libraries.
20519old_striplib=$lt_old_striplib
20520striplib=$lt_striplib
20521
20522
20523# The linker used to build libraries.
20524LD=$lt_LD
20525
20526# How to create reloadable object files.
20527reload_flag=$lt_reload_flag
20528reload_cmds=$lt_reload_cmds
20529
20530# Commands used to build an old-style archive.
20531old_archive_cmds=$lt_old_archive_cmds
20532
20533# A language specific compiler.
20534CC=$lt_compiler
20535
20536# Is the compiler the GNU compiler?
20537with_gcc=$GCC
20538
20539# Compiler flag to turn off builtin functions.
20540no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20541
20542# Additional compiler flags for building library objects.
20543pic_flag=$lt_lt_prog_compiler_pic
20544
20545# How to pass a linker flag through the compiler.
20546wl=$lt_lt_prog_compiler_wl
20547
20548# Compiler flag to prevent dynamic linking.
20549link_static_flag=$lt_lt_prog_compiler_static
20550
20551# Does compiler simultaneously support -c and -o options?
20552compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20553
20554# Whether or not to add -lc for building shared libraries.
20555build_libtool_need_lc=$archive_cmds_need_lc
20556
20557# Whether or not to disallow shared libs when runtime libs are static.
20558allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20559
20560# Compiler flag to allow reflexive dlopens.
20561export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20562
20563# Compiler flag to generate shared objects directly from archives.
20564whole_archive_flag_spec=$lt_whole_archive_flag_spec
20565
20566# Whether the compiler copes with passing no objects directly.
20567compiler_needs_object=$lt_compiler_needs_object
20568
20569# Create an old-style archive from a shared archive.
20570old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20571
20572# Create a temporary old-style archive to link instead of a shared archive.
20573old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20574
20575# Commands used to build a shared archive.
20576archive_cmds=$lt_archive_cmds
20577archive_expsym_cmds=$lt_archive_expsym_cmds
20578
20579# Commands used to build a loadable module if different from building
20580# a shared archive.
20581module_cmds=$lt_module_cmds
20582module_expsym_cmds=$lt_module_expsym_cmds
20583
20584# Whether we are building with GNU ld or not.
20585with_gnu_ld=$lt_with_gnu_ld
20586
20587# Flag that allows shared libraries with undefined symbols to be built.
20588allow_undefined_flag=$lt_allow_undefined_flag
20589
20590# Flag that enforces no undefined symbols.
20591no_undefined_flag=$lt_no_undefined_flag
20592
20593# Flag to hardcode \$libdir into a binary during linking.
20594# This must work even if \$libdir does not exist
20595hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20596
20597# Whether we need a single "-rpath" flag with a separated argument.
20598hardcode_libdir_separator=$lt_hardcode_libdir_separator
20599
20600# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20601# DIR into the resulting binary.
20602hardcode_direct=$hardcode_direct
20603
20604# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20605# DIR into the resulting binary and the resulting library dependency is
20606# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20607# library is relocated.
20608hardcode_direct_absolute=$hardcode_direct_absolute
20609
20610# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20611# into the resulting binary.
20612hardcode_minus_L=$hardcode_minus_L
20613
20614# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20615# into the resulting binary.
20616hardcode_shlibpath_var=$hardcode_shlibpath_var
20617
20618# Set to "yes" if building a shared library automatically hardcodes DIR
20619# into the library and all subsequent libraries and executables linked
20620# against it.
20621hardcode_automatic=$hardcode_automatic
20622
20623# Set to yes if linker adds runtime paths of dependent libraries
20624# to runtime path list.
20625inherit_rpath=$inherit_rpath
20626
20627# Whether libtool must link a program against all its dependency libraries.
20628link_all_deplibs=$link_all_deplibs
20629
20630# Set to "yes" if exported symbols are required.
20631always_export_symbols=$always_export_symbols
20632
20633# The commands to list exported symbols.
20634export_symbols_cmds=$lt_export_symbols_cmds
20635
20636# Symbols that should not be listed in the preloaded symbols.
20637exclude_expsyms=$lt_exclude_expsyms
20638
20639# Symbols that must always be exported.
20640include_expsyms=$lt_include_expsyms
20641
20642# Commands necessary for linking programs (against libraries) with templates.
20643prelink_cmds=$lt_prelink_cmds
20644
20645# Commands necessary for finishing linking programs.
20646postlink_cmds=$lt_postlink_cmds
20647
20648# Specify filename containing input files.
20649file_list_spec=$lt_file_list_spec
20650
20651# How to hardcode a shared library path into an executable.
20652hardcode_action=$hardcode_action
20653
20654# ### END LIBTOOL CONFIG
20655
20656_LT_EOF
20657
20658  case $host_os in
20659  aix3*)
20660    cat <<\_LT_EOF >> "$cfgfile"
20661# AIX sometimes has problems with the GCC collect2 program.  For some
20662# reason, if we set the COLLECT_NAMES environment variable, the problems
20663# vanish in a puff of smoke.
20664if test "X${COLLECT_NAMES+set}" != Xset; then
20665  COLLECT_NAMES=
20666  export COLLECT_NAMES
20667fi
20668_LT_EOF
20669    ;;
20670  esac
20671
20672
20673ltmain="$ac_aux_dir/ltmain.sh"
20674
20675
20676  # We use sed instead of cat because bash on DJGPP gets confused if
20677  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20678  # text mode, it properly converts lines to CR/LF.  This bash problem
20679  # is reportedly fixed, but why not run on old versions too?
20680  sed '$q' "$ltmain" >> "$cfgfile" \
20681     || (rm -f "$cfgfile"; exit 1)
20682
20683  if test x"$xsi_shell" = xyes; then
20684  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20685func_dirname ()\
20686{\
20687\    case ${1} in\
20688\      */*) func_dirname_result="${1%/*}${2}" ;;\
20689\      *  ) func_dirname_result="${3}" ;;\
20690\    esac\
20691} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20692  && mv -f "$cfgfile.tmp" "$cfgfile" \
20693    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20694test 0 -eq $? || _lt_function_replace_fail=:
20695
20696
20697  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20698func_basename ()\
20699{\
20700\    func_basename_result="${1##*/}"\
20701} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20702  && mv -f "$cfgfile.tmp" "$cfgfile" \
20703    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20704test 0 -eq $? || _lt_function_replace_fail=:
20705
20706
20707  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20708func_dirname_and_basename ()\
20709{\
20710\    case ${1} in\
20711\      */*) func_dirname_result="${1%/*}${2}" ;;\
20712\      *  ) func_dirname_result="${3}" ;;\
20713\    esac\
20714\    func_basename_result="${1##*/}"\
20715} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20716  && mv -f "$cfgfile.tmp" "$cfgfile" \
20717    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20718test 0 -eq $? || _lt_function_replace_fail=:
20719
20720
20721  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20722func_stripname ()\
20723{\
20724\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20725\    # positional parameters, so assign one to ordinary parameter first.\
20726\    func_stripname_result=${3}\
20727\    func_stripname_result=${func_stripname_result#"${1}"}\
20728\    func_stripname_result=${func_stripname_result%"${2}"}\
20729} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20730  && mv -f "$cfgfile.tmp" "$cfgfile" \
20731    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20732test 0 -eq $? || _lt_function_replace_fail=:
20733
20734
20735  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20736func_split_long_opt ()\
20737{\
20738\    func_split_long_opt_name=${1%%=*}\
20739\    func_split_long_opt_arg=${1#*=}\
20740} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20741  && mv -f "$cfgfile.tmp" "$cfgfile" \
20742    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20743test 0 -eq $? || _lt_function_replace_fail=:
20744
20745
20746  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20747func_split_short_opt ()\
20748{\
20749\    func_split_short_opt_arg=${1#??}\
20750\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20751} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20752  && mv -f "$cfgfile.tmp" "$cfgfile" \
20753    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20754test 0 -eq $? || _lt_function_replace_fail=:
20755
20756
20757  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20758func_lo2o ()\
20759{\
20760\    case ${1} in\
20761\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20762\      *)    func_lo2o_result=${1} ;;\
20763\    esac\
20764} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20765  && mv -f "$cfgfile.tmp" "$cfgfile" \
20766    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20767test 0 -eq $? || _lt_function_replace_fail=:
20768
20769
20770  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20771func_xform ()\
20772{\
20773    func_xform_result=${1%.*}.lo\
20774} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20775  && mv -f "$cfgfile.tmp" "$cfgfile" \
20776    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20777test 0 -eq $? || _lt_function_replace_fail=:
20778
20779
20780  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20781func_arith ()\
20782{\
20783    func_arith_result=$(( $* ))\
20784} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20785  && mv -f "$cfgfile.tmp" "$cfgfile" \
20786    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20787test 0 -eq $? || _lt_function_replace_fail=:
20788
20789
20790  sed -e '/^func_len ()$/,/^} # func_len /c\
20791func_len ()\
20792{\
20793    func_len_result=${#1}\
20794} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20795  && mv -f "$cfgfile.tmp" "$cfgfile" \
20796    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20797test 0 -eq $? || _lt_function_replace_fail=:
20798
20799fi
20800
20801if test x"$lt_shell_append" = xyes; then
20802  sed -e '/^func_append ()$/,/^} # func_append /c\
20803func_append ()\
20804{\
20805    eval "${1}+=\\${2}"\
20806} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20807  && mv -f "$cfgfile.tmp" "$cfgfile" \
20808    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20809test 0 -eq $? || _lt_function_replace_fail=:
20810
20811
20812  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20813func_append_quoted ()\
20814{\
20815\    func_quote_for_eval "${2}"\
20816\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20817} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20818  && mv -f "$cfgfile.tmp" "$cfgfile" \
20819    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20820test 0 -eq $? || _lt_function_replace_fail=:
20821
20822
20823  # Save a `func_append' function call where possible by direct use of '+='
20824  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20825    && mv -f "$cfgfile.tmp" "$cfgfile" \
20826      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20827  test 0 -eq $? || _lt_function_replace_fail=:
20828else
20829  # Save a `func_append' function call even when '+=' is not available
20830  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20831    && mv -f "$cfgfile.tmp" "$cfgfile" \
20832      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20833  test 0 -eq $? || _lt_function_replace_fail=:
20834fi
20835
20836if test x"$_lt_function_replace_fail" = x":"; then
20837  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20838$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20839fi
20840
20841
20842   mv -f "$cfgfile" "$ofile" ||
20843    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20844  chmod +x "$ofile"
20845
20846 ;;
20847
20848  esac
20849done # for ac_tag
20850
20851
20852as_fn_exit 0
20853_ACEOF
20854ac_clean_files=$ac_clean_files_save
20855
20856test $ac_write_fail = 0 ||
20857  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20858
20859
20860# configure is writing to config.log, and then calls config.status.
20861# config.status does its own redirection, appending to config.log.
20862# Unfortunately, on DOS this fails, as config.log is still kept open
20863# by configure, so config.status won't be able to write to it; its
20864# output is simply discarded.  So we exec the FD to /dev/null,
20865# effectively closing config.log, so it can be properly (re)opened and
20866# appended to by config.status.  When coming back to configure, we
20867# need to make the FD available again.
20868if test "$no_create" != yes; then
20869  ac_cs_success=:
20870  ac_config_status_args=
20871  test "$silent" = yes &&
20872    ac_config_status_args="$ac_config_status_args --quiet"
20873  exec 5>/dev/null
20874  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20875  exec 5>>config.log
20876  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20877  # would make configure fail if this is the last instruction.
20878  $ac_cs_success || as_fn_exit 1
20879fi
20880if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20881  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20882$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20883fi
20884
20885