configure revision 3bfa90b6
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-vmware 13.0.1.
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-vmware'
573PACKAGE_TARNAME='xf86-video-vmware'
574PACKAGE_VERSION='13.0.1'
575PACKAGE_STRING='xf86-video-vmware 13.0.1'
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
620BUILD_VMWGFX_FALSE
621BUILD_VMWGFX_TRUE
622DRIVER_NAME
623XATRACKER_LIBS
624XATRACKER_CFLAGS
625LIBDRM_LIBS
626LIBDRM_CFLAGS
627moduledir
628XSERVER_LIBPCIACCESS_FALSE
629XSERVER_LIBPCIACCESS_TRUE
630PCIACCESS_LIBS
631PCIACCESS_CFLAGS
632X11_LIBS
633X11_CFLAGS
634XORG_LIBS
635XORG_CFLAGS
636BUILD_VMWARECTRL_FALSE
637BUILD_VMWARECTRL_TRUE
638OTOOL64
639OTOOL
640LIPO
641NMEDIT
642DSYMUTIL
643MANIFEST_TOOL
644RANLIB
645ac_ct_AR
646AR
647DLLTOOL
648OBJDUMP
649LN_S
650NM
651ac_ct_DUMPBIN
652DUMPBIN
653LD
654FGREP
655LIBTOOL
656AM_BACKSLASH
657AM_DEFAULT_VERBOSITY
658AM_DEFAULT_V
659AM_V
660MAN_SUBSTS
661XORG_MAN_PAGE
662ADMIN_MAN_DIR
663DRIVER_MAN_DIR
664MISC_MAN_DIR
665FILE_MAN_DIR
666LIB_MAN_DIR
667APP_MAN_DIR
668ADMIN_MAN_SUFFIX
669DRIVER_MAN_SUFFIX
670MISC_MAN_SUFFIX
671FILE_MAN_SUFFIX
672LIB_MAN_SUFFIX
673APP_MAN_SUFFIX
674SED
675host_os
676host_vendor
677host_cpu
678host
679build_os
680build_vendor
681build_cpu
682build
683INSTALL_CMD
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
686PKG_CONFIG
687CHANGELOG_CMD
688STRICT_CFLAGS
689CWARNFLAGS
690BASE_CFLAGS
691EGREP
692GREP
693CPP
694MAINT
695MAINTAINER_MODE_FALSE
696MAINTAINER_MODE_TRUE
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__quote
705am__include
706DEPDIR
707am__untar
708am__tar
709AMTAR
710am__leading_dot
711SET_MAKE
712AWK
713mkdir_p
714MKDIR_P
715INSTALL_STRIP_PROGRAM
716STRIP
717install_sh
718MAKEINFO
719AUTOHEADER
720AUTOMAKE
721AUTOCONF
722ACLOCAL
723VERSION
724PACKAGE
725CYGPATH_W
726am__isrc
727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730OBJEXT
731EXEEXT
732ac_ct_CC
733CPPFLAGS
734LDFLAGS
735CFLAGS
736CC
737target_alias
738host_alias
739build_alias
740LIBS
741ECHO_T
742ECHO_N
743ECHO_C
744DEFS
745mandir
746localedir
747libdir
748psdir
749pdfdir
750dvidir
751htmldir
752infodir
753docdir
754oldincludedir
755includedir
756localstatedir
757sharedstatedir
758sysconfdir
759datadir
760datarootdir
761libexecdir
762sbindir
763bindir
764program_transform_name
765prefix
766exec_prefix
767PACKAGE_URL
768PACKAGE_BUGREPORT
769PACKAGE_STRING
770PACKAGE_VERSION
771PACKAGE_TARNAME
772PACKAGE_NAME
773PATH_SEPARATOR
774SHELL'
775ac_subst_files=''
776ac_user_opts='
777enable_option_checking
778enable_largefile
779enable_dependency_tracking
780enable_maintainer_mode
781enable_selective_werror
782enable_strict_compilation
783enable_silent_rules
784enable_static
785enable_shared
786with_pic
787enable_fast_install
788with_gnu_ld
789with_sysroot
790enable_libtool_lock
791with_xorg_module_dir
792enable_vmwarectrl_client
793'
794      ac_precious_vars='build_alias
795host_alias
796target_alias
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
802CPP
803PKG_CONFIG
804PKG_CONFIG_PATH
805PKG_CONFIG_LIBDIR
806XORG_CFLAGS
807XORG_LIBS
808X11_CFLAGS
809X11_LIBS
810PCIACCESS_CFLAGS
811PCIACCESS_LIBS
812LIBDRM_CFLAGS
813LIBDRM_LIBS
814XATRACKER_CFLAGS
815XATRACKER_LIBS'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870  # If the previous option needs an argument, assign it.
871  if test -n "$ac_prev"; then
872    eval $ac_prev=\$ac_option
873    ac_prev=
874    continue
875  fi
876
877  case $ac_option in
878  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879  *=)   ac_optarg= ;;
880  *)    ac_optarg=yes ;;
881  esac
882
883  # Accept the important Cygnus configure options, so we can diagnose typos.
884
885  case $ac_dashdash$ac_option in
886  --)
887    ac_dashdash=yes ;;
888
889  -bindir | --bindir | --bindi | --bind | --bin | --bi)
890    ac_prev=bindir ;;
891  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892    bindir=$ac_optarg ;;
893
894  -build | --build | --buil | --bui | --bu)
895    ac_prev=build_alias ;;
896  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897    build_alias=$ac_optarg ;;
898
899  -cache-file | --cache-file | --cache-fil | --cache-fi \
900  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901    ac_prev=cache_file ;;
902  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904    cache_file=$ac_optarg ;;
905
906  --config-cache | -C)
907    cache_file=config.cache ;;
908
909  -datadir | --datadir | --datadi | --datad)
910    ac_prev=datadir ;;
911  -datadir=* | --datadir=* | --datadi=* | --datad=*)
912    datadir=$ac_optarg ;;
913
914  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915  | --dataroo | --dataro | --datar)
916    ac_prev=datarootdir ;;
917  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919    datarootdir=$ac_optarg ;;
920
921  -disable-* | --disable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error $? "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=no ;;
936
937  -docdir | --docdir | --docdi | --doc | --do)
938    ac_prev=docdir ;;
939  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940    docdir=$ac_optarg ;;
941
942  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943    ac_prev=dvidir ;;
944  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945    dvidir=$ac_optarg ;;
946
947  -enable-* | --enable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: $ac_useropt"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=\$ac_optarg ;;
962
963  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965  | --exec | --exe | --ex)
966    ac_prev=exec_prefix ;;
967  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969  | --exec=* | --exe=* | --ex=*)
970    exec_prefix=$ac_optarg ;;
971
972  -gas | --gas | --ga | --g)
973    # Obsolete; use --with-gas.
974    with_gas=yes ;;
975
976  -help | --help | --hel | --he | -h)
977    ac_init_help=long ;;
978  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979    ac_init_help=recursive ;;
980  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981    ac_init_help=short ;;
982
983  -host | --host | --hos | --ho)
984    ac_prev=host_alias ;;
985  -host=* | --host=* | --hos=* | --ho=*)
986    host_alias=$ac_optarg ;;
987
988  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989    ac_prev=htmldir ;;
990  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991  | --ht=*)
992    htmldir=$ac_optarg ;;
993
994  -includedir | --includedir | --includedi | --included | --include \
995  | --includ | --inclu | --incl | --inc)
996    ac_prev=includedir ;;
997  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998  | --includ=* | --inclu=* | --incl=* | --inc=*)
999    includedir=$ac_optarg ;;
1000
1001  -infodir | --infodir | --infodi | --infod | --info | --inf)
1002    ac_prev=infodir ;;
1003  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004    infodir=$ac_optarg ;;
1005
1006  -libdir | --libdir | --libdi | --libd)
1007    ac_prev=libdir ;;
1008  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009    libdir=$ac_optarg ;;
1010
1011  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012  | --libexe | --libex | --libe)
1013    ac_prev=libexecdir ;;
1014  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015  | --libexe=* | --libex=* | --libe=*)
1016    libexecdir=$ac_optarg ;;
1017
1018  -localedir | --localedir | --localedi | --localed | --locale)
1019    ac_prev=localedir ;;
1020  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021    localedir=$ac_optarg ;;
1022
1023  -localstatedir | --localstatedir | --localstatedi | --localstated \
1024  | --localstate | --localstat | --localsta | --localst | --locals)
1025    ac_prev=localstatedir ;;
1026  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028    localstatedir=$ac_optarg ;;
1029
1030  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031    ac_prev=mandir ;;
1032  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033    mandir=$ac_optarg ;;
1034
1035  -nfp | --nfp | --nf)
1036    # Obsolete; use --without-fp.
1037    with_fp=no ;;
1038
1039  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040  | --no-cr | --no-c | -n)
1041    no_create=yes ;;
1042
1043  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045    no_recursion=yes ;;
1046
1047  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049  | --oldin | --oldi | --old | --ol | --o)
1050    ac_prev=oldincludedir ;;
1051  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054    oldincludedir=$ac_optarg ;;
1055
1056  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057    ac_prev=prefix ;;
1058  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059    prefix=$ac_optarg ;;
1060
1061  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062  | --program-pre | --program-pr | --program-p)
1063    ac_prev=program_prefix ;;
1064  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066    program_prefix=$ac_optarg ;;
1067
1068  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069  | --program-suf | --program-su | --program-s)
1070    ac_prev=program_suffix ;;
1071  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073    program_suffix=$ac_optarg ;;
1074
1075  -program-transform-name | --program-transform-name \
1076  | --program-transform-nam | --program-transform-na \
1077  | --program-transform-n | --program-transform- \
1078  | --program-transform | --program-transfor \
1079  | --program-transfo | --program-transf \
1080  | --program-trans | --program-tran \
1081  | --progr-tra | --program-tr | --program-t)
1082    ac_prev=program_transform_name ;;
1083  -program-transform-name=* | --program-transform-name=* \
1084  | --program-transform-nam=* | --program-transform-na=* \
1085  | --program-transform-n=* | --program-transform-=* \
1086  | --program-transform=* | --program-transfor=* \
1087  | --program-transfo=* | --program-transf=* \
1088  | --program-trans=* | --program-tran=* \
1089  | --progr-tra=* | --program-tr=* | --program-t=*)
1090    program_transform_name=$ac_optarg ;;
1091
1092  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093    ac_prev=pdfdir ;;
1094  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095    pdfdir=$ac_optarg ;;
1096
1097  -psdir | --psdir | --psdi | --psd | --ps)
1098    ac_prev=psdir ;;
1099  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100    psdir=$ac_optarg ;;
1101
1102  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103  | -silent | --silent | --silen | --sile | --sil)
1104    silent=yes ;;
1105
1106  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107    ac_prev=sbindir ;;
1108  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109  | --sbi=* | --sb=*)
1110    sbindir=$ac_optarg ;;
1111
1112  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114  | --sharedst | --shareds | --shared | --share | --shar \
1115  | --sha | --sh)
1116    ac_prev=sharedstatedir ;;
1117  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120  | --sha=* | --sh=*)
1121    sharedstatedir=$ac_optarg ;;
1122
1123  -site | --site | --sit)
1124    ac_prev=site ;;
1125  -site=* | --site=* | --sit=*)
1126    site=$ac_optarg ;;
1127
1128  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129    ac_prev=srcdir ;;
1130  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131    srcdir=$ac_optarg ;;
1132
1133  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134  | --syscon | --sysco | --sysc | --sys | --sy)
1135    ac_prev=sysconfdir ;;
1136  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138    sysconfdir=$ac_optarg ;;
1139
1140  -target | --target | --targe | --targ | --tar | --ta | --t)
1141    ac_prev=target_alias ;;
1142  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143    target_alias=$ac_optarg ;;
1144
1145  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146    verbose=yes ;;
1147
1148  -version | --version | --versio | --versi | --vers | -V)
1149    ac_init_version=: ;;
1150
1151  -with-* | --with-*)
1152    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153    # Reject names that are not valid shell variable names.
1154    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155      as_fn_error $? "invalid package name: $ac_useropt"
1156    ac_useropt_orig=$ac_useropt
1157    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158    case $ac_user_opts in
1159      *"
1160"with_$ac_useropt"
1161"*) ;;
1162      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163	 ac_unrecognized_sep=', ';;
1164    esac
1165    eval with_$ac_useropt=\$ac_optarg ;;
1166
1167  -without-* | --without-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=no ;;
1182
1183  --x)
1184    # Obsolete; use --with-x.
1185    with_x=yes ;;
1186
1187  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188  | --x-incl | --x-inc | --x-in | --x-i)
1189    ac_prev=x_includes ;;
1190  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192    x_includes=$ac_optarg ;;
1193
1194  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196    ac_prev=x_libraries ;;
1197  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199    x_libraries=$ac_optarg ;;
1200
1201  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information"
1203    ;;
1204
1205  *=*)
1206    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207    # Reject names that are not valid shell variable names.
1208    case $ac_envvar in #(
1209      '' | [0-9]* | *[!_$as_cr_alnum]* )
1210      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1211    esac
1212    eval $ac_envvar=\$ac_optarg
1213    export $ac_envvar ;;
1214
1215  *)
1216    # FIXME: should be removed in autoconf 3.0.
1217    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221    ;;
1222
1223  esac
1224done
1225
1226if test -n "$ac_prev"; then
1227  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228  as_fn_error $? "missing argument to $ac_option"
1229fi
1230
1231if test -n "$ac_unrecognized_opts"; then
1232  case $enable_option_checking in
1233    no) ;;
1234    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1235    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236  esac
1237fi
1238
1239# Check all directory arguments for consistency.
1240for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241		datadir sysconfdir sharedstatedir localstatedir includedir \
1242		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243		libdir localedir mandir
1244do
1245  eval ac_val=\$$ac_var
1246  # Remove trailing slashes.
1247  case $ac_val in
1248    */ )
1249      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250      eval $ac_var=\$ac_val;;
1251  esac
1252  # Be sure to have absolute directory names.
1253  case $ac_val in
1254    [\\/$]* | ?:[\\/]* )  continue;;
1255    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256  esac
1257  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1258done
1259
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
1266
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269  if test "x$build_alias" = x; then
1270    cross_compiling=maybe
1271    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1272    If a cross compiler is detected then cross compile mode will be used" >&2
1273  elif test "x$build_alias" != "x$host_alias"; then
1274    cross_compiling=yes
1275  fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
1282
1283
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287  as_fn_error $? "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289  as_fn_error $? "pwd does not report name of working directory"
1290
1291
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294  ac_srcdir_defaulted=yes
1295  # Try the directory containing this script, then the parent directory.
1296  ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298	 X"$as_myself" : 'X\(//\)[^/]' \| \
1299	 X"$as_myself" : 'X\(//\)$' \| \
1300	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303	    s//\1/
1304	    q
1305	  }
1306	  /^X\(\/\/\)[^/].*/{
1307	    s//\1/
1308	    q
1309	  }
1310	  /^X\(\/\/\)$/{
1311	    s//\1/
1312	    q
1313	  }
1314	  /^X\(\/\).*/{
1315	    s//\1/
1316	    q
1317	  }
1318	  s/.*/./; q'`
1319  srcdir=$ac_confdir
1320  if test ! -r "$srcdir/$ac_unique_file"; then
1321    srcdir=..
1322  fi
1323else
1324  ac_srcdir_defaulted=no
1325fi
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1333	pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336  srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
1344for ac_var in $ac_precious_vars; do
1345  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346  eval ac_env_${ac_var}_value=\$${ac_var}
1347  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349done
1350
1351#
1352# Report the --help message.
1353#
1354if test "$ac_init_help" = "long"; then
1355  # Omit some internal or obsolete options to make the list less imposing.
1356  # This message is too long to be a string in the A/UX 3.1 sh.
1357  cat <<_ACEOF
1358\`configure' configures xf86-video-vmware 13.0.1 to adapt to many kinds of systems.
1359
1360Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363VAR=VALUE.  See below for descriptions of some of the useful variables.
1364
1365Defaults for the options are specified in brackets.
1366
1367Configuration:
1368  -h, --help              display this help and exit
1369      --help=short        display options specific to this package
1370      --help=recursive    display the short help of all the included packages
1371  -V, --version           display version information and exit
1372  -q, --quiet, --silent   do not print \`checking ...' messages
1373      --cache-file=FILE   cache test results in FILE [disabled]
1374  -C, --config-cache      alias for \`--cache-file=config.cache'
1375  -n, --no-create         do not create output files
1376      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1377
1378Installation directories:
1379  --prefix=PREFIX         install architecture-independent files in PREFIX
1380                          [$ac_default_prefix]
1381  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1382                          [PREFIX]
1383
1384By default, \`make install' will install all the files in
1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1386an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387for instance \`--prefix=\$HOME'.
1388
1389For better control, use the options below.
1390
1391Fine tuning of the installation directories:
1392  --bindir=DIR            user executables [EPREFIX/bin]
1393  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1394  --libexecdir=DIR        program executables [EPREFIX/libexec]
1395  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1396  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1397  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1398  --libdir=DIR            object code libraries [EPREFIX/lib]
1399  --includedir=DIR        C header files [PREFIX/include]
1400  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1401  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1402  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1403  --infodir=DIR           info documentation [DATAROOTDIR/info]
1404  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1405  --mandir=DIR            man documentation [DATAROOTDIR/man]
1406  --docdir=DIR            documentation root
1407                          [DATAROOTDIR/doc/xf86-video-vmware]
1408  --htmldir=DIR           html documentation [DOCDIR]
1409  --dvidir=DIR            dvi documentation [DOCDIR]
1410  --pdfdir=DIR            pdf documentation [DOCDIR]
1411  --psdir=DIR             ps documentation [DOCDIR]
1412_ACEOF
1413
1414  cat <<\_ACEOF
1415
1416Program names:
1417  --program-prefix=PREFIX            prepend PREFIX to installed program names
1418  --program-suffix=SUFFIX            append SUFFIX to installed program names
1419  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1420
1421System types:
1422  --build=BUILD     configure for building on BUILD [guessed]
1423  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1424_ACEOF
1425fi
1426
1427if test -n "$ac_init_help"; then
1428  case $ac_init_help in
1429     short | recursive ) echo "Configuration of xf86-video-vmware 13.0.1:";;
1430   esac
1431  cat <<\_ACEOF
1432
1433Optional Features:
1434  --disable-option-checking  ignore unrecognized --enable/--with options
1435  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437  --disable-largefile     omit support for large files
1438  --disable-dependency-tracking  speeds up one-time build
1439  --enable-dependency-tracking   do not reject slow dependency extractors
1440  --enable-maintainer-mode  enable make rules and dependencies not useful
1441			  (and sometimes confusing) to the casual installer
1442  --disable-selective-werror
1443                          Turn off selective compiler errors. (default:
1444                          enabled)
1445  --enable-strict-compilation
1446                          Enable all warnings from compiler and make them
1447                          errors (default: disabled)
1448  --enable-silent-rules          less verbose build output (undo: `make V=1')
1449  --disable-silent-rules         verbose build output (undo: `make V=0')
1450  --enable-static[=PKGS]  build static libraries [default=no]
1451  --enable-shared[=PKGS]  build shared libraries [default=yes]
1452  --enable-fast-install[=PKGS]
1453                          optimize for fast installation [default=yes]
1454  --disable-libtool-lock  avoid locking (might break parallel builds)
1455  --enable-vmwarectrl-client
1456                          Enable vmwarectrl client (default: disabled)
1457
1458Optional Packages:
1459  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1460  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1461  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1462                          both]
1463  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1464  --with-sysroot=DIR Search for dependent libraries within DIR
1465                        (or the compiler's sysroot if not specified).
1466  --with-xorg-module-dir=DIR
1467                          Default xorg module directory
1468                          [[default=$libdir/xorg/modules]]
1469
1470Some influential environment variables:
1471  CC          C compiler command
1472  CFLAGS      C compiler flags
1473  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1474              nonstandard directory <lib dir>
1475  LIBS        libraries to pass to the linker, e.g. -l<library>
1476  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477              you have headers in a nonstandard directory <include dir>
1478  CPP         C preprocessor
1479  PKG_CONFIG  path to pkg-config utility
1480  PKG_CONFIG_PATH
1481              directories to add to pkg-config's search path
1482  PKG_CONFIG_LIBDIR
1483              path overriding pkg-config's built-in search path
1484  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1485  XORG_LIBS   linker flags for XORG, overriding pkg-config
1486  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1487  X11_LIBS    linker flags for X11, overriding pkg-config
1488  PCIACCESS_CFLAGS
1489              C compiler flags for PCIACCESS, overriding pkg-config
1490  PCIACCESS_LIBS
1491              linker flags for PCIACCESS, overriding pkg-config
1492  LIBDRM_CFLAGS
1493              C compiler flags for LIBDRM, overriding pkg-config
1494  LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1495  XATRACKER_CFLAGS
1496              C compiler flags for XATRACKER, overriding pkg-config
1497  XATRACKER_LIBS
1498              linker flags for XATRACKER, overriding pkg-config
1499
1500Use these variables to override the choices made by `configure' or to help
1501it to find libraries and programs with nonstandard names/locations.
1502
1503Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509  # If there are subdirs, report their specific --help.
1510  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511    test -d "$ac_dir" ||
1512      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513      continue
1514    ac_builddir=.
1515
1516case "$ac_dir" in
1517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518*)
1519  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520  # A ".." for each directory in $ac_dir_suffix.
1521  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522  case $ac_top_builddir_sub in
1523  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525  esac ;;
1526esac
1527ac_abs_top_builddir=$ac_pwd
1528ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529# for backward compatibility:
1530ac_top_builddir=$ac_top_build_prefix
1531
1532case $srcdir in
1533  .)  # We are building in place.
1534    ac_srcdir=.
1535    ac_top_srcdir=$ac_top_builddir_sub
1536    ac_abs_top_srcdir=$ac_pwd ;;
1537  [\\/]* | ?:[\\/]* )  # Absolute name.
1538    ac_srcdir=$srcdir$ac_dir_suffix;
1539    ac_top_srcdir=$srcdir
1540    ac_abs_top_srcdir=$srcdir ;;
1541  *) # Relative name.
1542    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543    ac_top_srcdir=$ac_top_build_prefix$srcdir
1544    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545esac
1546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548    cd "$ac_dir" || { ac_status=$?; continue; }
1549    # Check for guested configure.
1550    if test -f "$ac_srcdir/configure.gnu"; then
1551      echo &&
1552      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553    elif test -f "$ac_srcdir/configure"; then
1554      echo &&
1555      $SHELL "$ac_srcdir/configure" --help=recursive
1556    else
1557      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558    fi || ac_status=$?
1559    cd "$ac_pwd" || { ac_status=$?; break; }
1560  done
1561fi
1562
1563test -n "$ac_init_help" && exit $ac_status
1564if $ac_init_version; then
1565  cat <<\_ACEOF
1566xf86-video-vmware configure 13.0.1
1567generated by GNU Autoconf 2.68
1568
1569Copyright (C) 2010 Free Software Foundation, Inc.
1570This configure script is free software; the Free Software Foundation
1571gives unlimited permission to copy, distribute and modify it.
1572_ACEOF
1573  exit
1574fi
1575
1576## ------------------------ ##
1577## Autoconf initialization. ##
1578## ------------------------ ##
1579
1580# ac_fn_c_try_compile LINENO
1581# --------------------------
1582# Try to compile conftest.$ac_ext, and return whether this succeeded.
1583ac_fn_c_try_compile ()
1584{
1585  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586  rm -f conftest.$ac_objext
1587  if { { ac_try="$ac_compile"
1588case "(($ac_try" in
1589  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590  *) ac_try_echo=$ac_try;;
1591esac
1592eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593$as_echo "$ac_try_echo"; } >&5
1594  (eval "$ac_compile") 2>conftest.err
1595  ac_status=$?
1596  if test -s conftest.err; then
1597    grep -v '^ *+' conftest.err >conftest.er1
1598    cat conftest.er1 >&5
1599    mv -f conftest.er1 conftest.err
1600  fi
1601  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602  test $ac_status = 0; } && {
1603	 test -z "$ac_c_werror_flag" ||
1604	 test ! -s conftest.err
1605       } && test -s conftest.$ac_objext; then :
1606  ac_retval=0
1607else
1608  $as_echo "$as_me: failed program was:" >&5
1609sed 's/^/| /' conftest.$ac_ext >&5
1610
1611	ac_retval=1
1612fi
1613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_compile
1617
1618# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1619# ---------------------------------------------
1620# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1621# accordingly.
1622ac_fn_c_check_decl ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  as_decl_name=`echo $2|sed 's/ *(.*//'`
1626  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1628$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1629if eval \${$3+:} false; then :
1630  $as_echo_n "(cached) " >&6
1631else
1632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633/* end confdefs.h.  */
1634$4
1635int
1636main ()
1637{
1638#ifndef $as_decl_name
1639#ifdef __cplusplus
1640  (void) $as_decl_use;
1641#else
1642  (void) $as_decl_name;
1643#endif
1644#endif
1645
1646  ;
1647  return 0;
1648}
1649_ACEOF
1650if ac_fn_c_try_compile "$LINENO"; then :
1651  eval "$3=yes"
1652else
1653  eval "$3=no"
1654fi
1655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656fi
1657eval ac_res=\$$3
1658	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659$as_echo "$ac_res" >&6; }
1660  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662} # ac_fn_c_check_decl
1663
1664# ac_fn_c_try_cpp LINENO
1665# ----------------------
1666# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667ac_fn_c_try_cpp ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  if { { ac_try="$ac_cpp conftest.$ac_ext"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } > conftest.i && {
1686	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       }; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694    ac_retval=1
1695fi
1696  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697  as_fn_set_status $ac_retval
1698
1699} # ac_fn_c_try_cpp
1700
1701# ac_fn_c_try_run LINENO
1702# ----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704# that executables *can* be run.
1705ac_fn_c_try_run ()
1706{
1707  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>&5
1716  ac_status=$?
1717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719  { { case "(($ac_try" in
1720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721  *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725  (eval "$ac_try") 2>&5
1726  ac_status=$?
1727  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728  test $ac_status = 0; }; }; then :
1729  ac_retval=0
1730else
1731  $as_echo "$as_me: program exited with status $ac_status" >&5
1732       $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735       ac_retval=$ac_status
1736fi
1737  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_run
1742
1743# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists and can be compiled using the include files in
1746# INCLUDES, setting the cache variable VAR accordingly.
1747ac_fn_c_check_header_compile ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1751$as_echo_n "checking for $2... " >&6; }
1752if eval \${$3+:} false; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756/* end confdefs.h.  */
1757$4
1758#include <$2>
1759_ACEOF
1760if ac_fn_c_try_compile "$LINENO"; then :
1761  eval "$3=yes"
1762else
1763  eval "$3=no"
1764fi
1765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1766fi
1767eval ac_res=\$$3
1768	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771
1772} # ac_fn_c_check_header_compile
1773
1774# ac_fn_c_try_link LINENO
1775# -----------------------
1776# Try to link conftest.$ac_ext, and return whether this succeeded.
1777ac_fn_c_try_link ()
1778{
1779  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780  rm -f conftest.$ac_objext conftest$ac_exeext
1781  if { { ac_try="$ac_link"
1782case "(($ac_try" in
1783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784  *) ac_try_echo=$ac_try;;
1785esac
1786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787$as_echo "$ac_try_echo"; } >&5
1788  (eval "$ac_link") 2>conftest.err
1789  ac_status=$?
1790  if test -s conftest.err; then
1791    grep -v '^ *+' conftest.err >conftest.er1
1792    cat conftest.er1 >&5
1793    mv -f conftest.er1 conftest.err
1794  fi
1795  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796  test $ac_status = 0; } && {
1797	 test -z "$ac_c_werror_flag" ||
1798	 test ! -s conftest.err
1799       } && test -s conftest$ac_exeext && {
1800	 test "$cross_compiling" = yes ||
1801	 $as_test_x conftest$ac_exeext
1802       }; then :
1803  ac_retval=0
1804else
1805  $as_echo "$as_me: failed program was:" >&5
1806sed 's/^/| /' conftest.$ac_ext >&5
1807
1808	ac_retval=1
1809fi
1810  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1811  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1812  # interfere with the next link command; also delete a directory that is
1813  # left behind by Apple's compiler.  We do this before executing the actions.
1814  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1815  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816  as_fn_set_status $ac_retval
1817
1818} # ac_fn_c_try_link
1819
1820# ac_fn_c_check_func LINENO FUNC VAR
1821# ----------------------------------
1822# Tests whether FUNC exists, setting the cache variable VAR accordingly
1823ac_fn_c_check_func ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827$as_echo_n "checking for $2... " >&6; }
1828if eval \${$3+:} false; then :
1829  $as_echo_n "(cached) " >&6
1830else
1831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832/* end confdefs.h.  */
1833/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1834   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1835#define $2 innocuous_$2
1836
1837/* System header to define __stub macros and hopefully few prototypes,
1838    which can conflict with char $2 (); below.
1839    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1840    <limits.h> exists even on freestanding compilers.  */
1841
1842#ifdef __STDC__
1843# include <limits.h>
1844#else
1845# include <assert.h>
1846#endif
1847
1848#undef $2
1849
1850/* Override any GCC internal prototype to avoid an error.
1851   Use char because int might match the return type of a GCC
1852   builtin and then its argument prototype would still apply.  */
1853#ifdef __cplusplus
1854extern "C"
1855#endif
1856char $2 ();
1857/* The GNU C library defines this for functions which it implements
1858    to always fail with ENOSYS.  Some functions are actually named
1859    something starting with __ and the normal name is an alias.  */
1860#if defined __stub_$2 || defined __stub___$2
1861choke me
1862#endif
1863
1864int
1865main ()
1866{
1867return $2 ();
1868  ;
1869  return 0;
1870}
1871_ACEOF
1872if ac_fn_c_try_link "$LINENO"; then :
1873  eval "$3=yes"
1874else
1875  eval "$3=no"
1876fi
1877rm -f core conftest.err conftest.$ac_objext \
1878    conftest$ac_exeext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884
1885} # ac_fn_c_check_func
1886cat >config.log <<_ACEOF
1887This file contains any messages produced by compilers while
1888running configure, to aid debugging if configure makes a mistake.
1889
1890It was created by xf86-video-vmware $as_me 13.0.1, which was
1891generated by GNU Autoconf 2.68.  Invocation command line was
1892
1893  $ $0 $@
1894
1895_ACEOF
1896exec 5>>config.log
1897{
1898cat <<_ASUNAME
1899## --------- ##
1900## Platform. ##
1901## --------- ##
1902
1903hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1904uname -m = `(uname -m) 2>/dev/null || echo unknown`
1905uname -r = `(uname -r) 2>/dev/null || echo unknown`
1906uname -s = `(uname -s) 2>/dev/null || echo unknown`
1907uname -v = `(uname -v) 2>/dev/null || echo unknown`
1908
1909/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1910/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1911
1912/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1913/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1914/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1915/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1916/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1917/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1918/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1919
1920_ASUNAME
1921
1922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923for as_dir in $PATH
1924do
1925  IFS=$as_save_IFS
1926  test -z "$as_dir" && as_dir=.
1927    $as_echo "PATH: $as_dir"
1928  done
1929IFS=$as_save_IFS
1930
1931} >&5
1932
1933cat >&5 <<_ACEOF
1934
1935
1936## ----------- ##
1937## Core tests. ##
1938## ----------- ##
1939
1940_ACEOF
1941
1942
1943# Keep a trace of the command line.
1944# Strip out --no-create and --no-recursion so they do not pile up.
1945# Strip out --silent because we don't want to record it for future runs.
1946# Also quote any args containing shell meta-characters.
1947# Make two passes to allow for proper duplicate-argument suppression.
1948ac_configure_args=
1949ac_configure_args0=
1950ac_configure_args1=
1951ac_must_keep_next=false
1952for ac_pass in 1 2
1953do
1954  for ac_arg
1955  do
1956    case $ac_arg in
1957    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959    | -silent | --silent | --silen | --sile | --sil)
1960      continue ;;
1961    *\'*)
1962      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963    esac
1964    case $ac_pass in
1965    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966    2)
1967      as_fn_append ac_configure_args1 " '$ac_arg'"
1968      if test $ac_must_keep_next = true; then
1969	ac_must_keep_next=false # Got value, back to normal.
1970      else
1971	case $ac_arg in
1972	  *=* | --config-cache | -C | -disable-* | --disable-* \
1973	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975	  | -with-* | --with-* | -without-* | --without-* | --x)
1976	    case "$ac_configure_args0 " in
1977	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978	    esac
1979	    ;;
1980	  -* ) ac_must_keep_next=true ;;
1981	esac
1982      fi
1983      as_fn_append ac_configure_args " '$ac_arg'"
1984      ;;
1985    esac
1986  done
1987done
1988{ ac_configure_args0=; unset ac_configure_args0;}
1989{ ac_configure_args1=; unset ac_configure_args1;}
1990
1991# When interrupted or exit'd, cleanup temporary files, and complete
1992# config.log.  We remove comments because anyway the quotes in there
1993# would cause problems or look ugly.
1994# WARNING: Use '\'' to represent an apostrophe within the trap.
1995# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996trap 'exit_status=$?
1997  # Save into config.log some information that might help in debugging.
1998  {
1999    echo
2000
2001    $as_echo "## ---------------- ##
2002## Cache variables. ##
2003## ---------------- ##"
2004    echo
2005    # The following way of writing the cache mishandles newlines in values,
2006(
2007  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2008    eval ac_val=\$$ac_var
2009    case $ac_val in #(
2010    *${as_nl}*)
2011      case $ac_var in #(
2012      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2013$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2014      esac
2015      case $ac_var in #(
2016      _ | IFS | as_nl) ;; #(
2017      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2018      *) { eval $ac_var=; unset $ac_var;} ;;
2019      esac ;;
2020    esac
2021  done
2022  (set) 2>&1 |
2023    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2024    *${as_nl}ac_space=\ *)
2025      sed -n \
2026	"s/'\''/'\''\\\\'\'''\''/g;
2027	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2028      ;; #(
2029    *)
2030      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2031      ;;
2032    esac |
2033    sort
2034)
2035    echo
2036
2037    $as_echo "## ----------------- ##
2038## Output variables. ##
2039## ----------------- ##"
2040    echo
2041    for ac_var in $ac_subst_vars
2042    do
2043      eval ac_val=\$$ac_var
2044      case $ac_val in
2045      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046      esac
2047      $as_echo "$ac_var='\''$ac_val'\''"
2048    done | sort
2049    echo
2050
2051    if test -n "$ac_subst_files"; then
2052      $as_echo "## ------------------- ##
2053## File substitutions. ##
2054## ------------------- ##"
2055      echo
2056      for ac_var in $ac_subst_files
2057      do
2058	eval ac_val=\$$ac_var
2059	case $ac_val in
2060	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061	esac
2062	$as_echo "$ac_var='\''$ac_val'\''"
2063      done | sort
2064      echo
2065    fi
2066
2067    if test -s confdefs.h; then
2068      $as_echo "## ----------- ##
2069## confdefs.h. ##
2070## ----------- ##"
2071      echo
2072      cat confdefs.h
2073      echo
2074    fi
2075    test "$ac_signal" != 0 &&
2076      $as_echo "$as_me: caught signal $ac_signal"
2077    $as_echo "$as_me: exit $exit_status"
2078  } >&5
2079  rm -f core *.core core.conftest.* &&
2080    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2081    exit $exit_status
2082' 0
2083for ac_signal in 1 2 13 15; do
2084  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2085done
2086ac_signal=0
2087
2088# confdefs.h avoids OS command line length limits that DEFS can exceed.
2089rm -f -r conftest* confdefs.h
2090
2091$as_echo "/* confdefs.h */" > confdefs.h
2092
2093# Predefined preprocessor variables.
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_NAME "$PACKAGE_NAME"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2101_ACEOF
2102
2103cat >>confdefs.h <<_ACEOF
2104#define PACKAGE_VERSION "$PACKAGE_VERSION"
2105_ACEOF
2106
2107cat >>confdefs.h <<_ACEOF
2108#define PACKAGE_STRING "$PACKAGE_STRING"
2109_ACEOF
2110
2111cat >>confdefs.h <<_ACEOF
2112#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2113_ACEOF
2114
2115cat >>confdefs.h <<_ACEOF
2116#define PACKAGE_URL "$PACKAGE_URL"
2117_ACEOF
2118
2119
2120# Let the site file select an alternate cache file if it wants to.
2121# Prefer an explicitly selected file to automatically selected ones.
2122ac_site_file1=NONE
2123ac_site_file2=NONE
2124if test -n "$CONFIG_SITE"; then
2125  # We do not want a PATH search for config.site.
2126  case $CONFIG_SITE in #((
2127    -*)  ac_site_file1=./$CONFIG_SITE;;
2128    */*) ac_site_file1=$CONFIG_SITE;;
2129    *)   ac_site_file1=./$CONFIG_SITE;;
2130  esac
2131elif test "x$prefix" != xNONE; then
2132  ac_site_file1=$prefix/share/config.site
2133  ac_site_file2=$prefix/etc/config.site
2134else
2135  ac_site_file1=$ac_default_prefix/share/config.site
2136  ac_site_file2=$ac_default_prefix/etc/config.site
2137fi
2138for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139do
2140  test "x$ac_site_file" = xNONE && continue
2141  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2142    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2144    sed 's/^/| /' "$ac_site_file" >&5
2145    . "$ac_site_file" \
2146      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2148as_fn_error $? "failed to load site script $ac_site_file
2149See \`config.log' for more details" "$LINENO" 5; }
2150  fi
2151done
2152
2153if test -r "$cache_file"; then
2154  # Some versions of bash will fail to source /dev/null (special files
2155  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2156  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2157    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158$as_echo "$as_me: loading cache $cache_file" >&6;}
2159    case $cache_file in
2160      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161      *)                      . "./$cache_file";;
2162    esac
2163  fi
2164else
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166$as_echo "$as_me: creating cache $cache_file" >&6;}
2167  >$cache_file
2168fi
2169
2170# Check that the precious variables saved in the cache have kept the same
2171# value.
2172ac_cache_corrupted=false
2173for ac_var in $ac_precious_vars; do
2174  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175  eval ac_new_set=\$ac_env_${ac_var}_set
2176  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177  eval ac_new_val=\$ac_env_${ac_var}_value
2178  case $ac_old_set,$ac_new_set in
2179    set,)
2180      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2182      ac_cache_corrupted=: ;;
2183    ,set)
2184      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2186      ac_cache_corrupted=: ;;
2187    ,);;
2188    *)
2189      if test "x$ac_old_val" != "x$ac_new_val"; then
2190	# differences in whitespace do not lead to failure.
2191	ac_old_val_w=`echo x $ac_old_val`
2192	ac_new_val_w=`echo x $ac_new_val`
2193	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196	  ac_cache_corrupted=:
2197	else
2198	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200	  eval $ac_var=\$ac_old_val
2201	fi
2202	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2203$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2204	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2205$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2206      fi;;
2207  esac
2208  # Pass precious variables to config.status.
2209  if test "$ac_new_set" = set; then
2210    case $ac_new_val in
2211    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2212    *) ac_arg=$ac_var=$ac_new_val ;;
2213    esac
2214    case " $ac_configure_args " in
2215      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2216      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2217    esac
2218  fi
2219done
2220if $ac_cache_corrupted; then
2221  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2226fi
2227## -------------------- ##
2228## Main body of script. ##
2229## -------------------- ##
2230
2231ac_ext=c
2232ac_cpp='$CPP $CPPFLAGS'
2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239ac_config_headers="$ac_config_headers config.h"
2240
2241ac_aux_dir=
2242for ac_dir in . "$srcdir"/.; do
2243  if test -f "$ac_dir/install-sh"; then
2244    ac_aux_dir=$ac_dir
2245    ac_install_sh="$ac_aux_dir/install-sh -c"
2246    break
2247  elif test -f "$ac_dir/install.sh"; then
2248    ac_aux_dir=$ac_dir
2249    ac_install_sh="$ac_aux_dir/install.sh -c"
2250    break
2251  elif test -f "$ac_dir/shtool"; then
2252    ac_aux_dir=$ac_dir
2253    ac_install_sh="$ac_aux_dir/shtool install -c"
2254    break
2255  fi
2256done
2257if test -z "$ac_aux_dir"; then
2258  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2259fi
2260
2261# These three variables are undocumented and unsupported,
2262# and are intended to be withdrawn in a future Autoconf release.
2263# They can cause serious problems if a builder's source tree is in a directory
2264# whose full name contains unusual characters.
2265ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2266ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2267ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2268
2269
2270ac_ext=c
2271ac_cpp='$CPP $CPPFLAGS'
2272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2274ac_compiler_gnu=$ac_cv_c_compiler_gnu
2275if test -n "$ac_tool_prefix"; then
2276  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2277set dummy ${ac_tool_prefix}gcc; ac_word=$2
2278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2279$as_echo_n "checking for $ac_word... " >&6; }
2280if ${ac_cv_prog_CC+:} false; then :
2281  $as_echo_n "(cached) " >&6
2282else
2283  if test -n "$CC"; then
2284  ac_cv_prog_CC="$CC" # Let the user override the test.
2285else
2286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287for as_dir in $PATH
2288do
2289  IFS=$as_save_IFS
2290  test -z "$as_dir" && as_dir=.
2291    for ac_exec_ext in '' $ac_executable_extensions; do
2292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2295    break 2
2296  fi
2297done
2298  done
2299IFS=$as_save_IFS
2300
2301fi
2302fi
2303CC=$ac_cv_prog_CC
2304if test -n "$CC"; then
2305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2306$as_echo "$CC" >&6; }
2307else
2308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2309$as_echo "no" >&6; }
2310fi
2311
2312
2313fi
2314if test -z "$ac_cv_prog_CC"; then
2315  ac_ct_CC=$CC
2316  # Extract the first word of "gcc", so it can be a program name with args.
2317set dummy gcc; ac_word=$2
2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2319$as_echo_n "checking for $ac_word... " >&6; }
2320if ${ac_cv_prog_ac_ct_CC+:} false; then :
2321  $as_echo_n "(cached) " >&6
2322else
2323  if test -n "$ac_ct_CC"; then
2324  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325else
2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329  IFS=$as_save_IFS
2330  test -z "$as_dir" && as_dir=.
2331    for ac_exec_ext in '' $ac_executable_extensions; do
2332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333    ac_cv_prog_ac_ct_CC="gcc"
2334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335    break 2
2336  fi
2337done
2338  done
2339IFS=$as_save_IFS
2340
2341fi
2342fi
2343ac_ct_CC=$ac_cv_prog_ac_ct_CC
2344if test -n "$ac_ct_CC"; then
2345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2346$as_echo "$ac_ct_CC" >&6; }
2347else
2348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349$as_echo "no" >&6; }
2350fi
2351
2352  if test "x$ac_ct_CC" = x; then
2353    CC=""
2354  else
2355    case $cross_compiling:$ac_tool_warned in
2356yes:)
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2359ac_tool_warned=yes ;;
2360esac
2361    CC=$ac_ct_CC
2362  fi
2363else
2364  CC="$ac_cv_prog_CC"
2365fi
2366
2367if test -z "$CC"; then
2368          if test -n "$ac_tool_prefix"; then
2369    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2370set dummy ${ac_tool_prefix}cc; ac_word=$2
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
2373if ${ac_cv_prog_CC+:} false; then :
2374  $as_echo_n "(cached) " >&6
2375else
2376  if test -n "$CC"; then
2377  ac_cv_prog_CC="$CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382  IFS=$as_save_IFS
2383  test -z "$as_dir" && as_dir=.
2384    for ac_exec_ext in '' $ac_executable_extensions; do
2385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386    ac_cv_prog_CC="${ac_tool_prefix}cc"
2387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2388    break 2
2389  fi
2390done
2391  done
2392IFS=$as_save_IFS
2393
2394fi
2395fi
2396CC=$ac_cv_prog_CC
2397if test -n "$CC"; then
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2399$as_echo "$CC" >&6; }
2400else
2401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402$as_echo "no" >&6; }
2403fi
2404
2405
2406  fi
2407fi
2408if test -z "$CC"; then
2409  # Extract the first word of "cc", so it can be a program name with args.
2410set dummy cc; ac_word=$2
2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412$as_echo_n "checking for $ac_word... " >&6; }
2413if ${ac_cv_prog_CC+:} false; then :
2414  $as_echo_n "(cached) " >&6
2415else
2416  if test -n "$CC"; then
2417  ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419  ac_prog_rejected=no
2420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425    for ac_exec_ext in '' $ac_executable_extensions; do
2426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2428       ac_prog_rejected=yes
2429       continue
2430     fi
2431    ac_cv_prog_CC="cc"
2432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433    break 2
2434  fi
2435done
2436  done
2437IFS=$as_save_IFS
2438
2439if test $ac_prog_rejected = yes; then
2440  # We found a bogon in the path, so make sure we never use it.
2441  set dummy $ac_cv_prog_CC
2442  shift
2443  if test $# != 0; then
2444    # We chose a different compiler from the bogus one.
2445    # However, it has the same basename, so the bogon will be chosen
2446    # first if we set CC to just the basename; use the full file name.
2447    shift
2448    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2449  fi
2450fi
2451fi
2452fi
2453CC=$ac_cv_prog_CC
2454if test -n "$CC"; then
2455  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2456$as_echo "$CC" >&6; }
2457else
2458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459$as_echo "no" >&6; }
2460fi
2461
2462
2463fi
2464if test -z "$CC"; then
2465  if test -n "$ac_tool_prefix"; then
2466  for ac_prog in cl.exe
2467  do
2468    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2471$as_echo_n "checking for $ac_word... " >&6; }
2472if ${ac_cv_prog_CC+:} false; then :
2473  $as_echo_n "(cached) " >&6
2474else
2475  if test -n "$CC"; then
2476  ac_cv_prog_CC="$CC" # Let the user override the test.
2477else
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481  IFS=$as_save_IFS
2482  test -z "$as_dir" && as_dir=.
2483    for ac_exec_ext in '' $ac_executable_extensions; do
2484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487    break 2
2488  fi
2489done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494fi
2495CC=$ac_cv_prog_CC
2496if test -n "$CC"; then
2497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2498$as_echo "$CC" >&6; }
2499else
2500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501$as_echo "no" >&6; }
2502fi
2503
2504
2505    test -n "$CC" && break
2506  done
2507fi
2508if test -z "$CC"; then
2509  ac_ct_CC=$CC
2510  for ac_prog in cl.exe
2511do
2512  # Extract the first word of "$ac_prog", so it can be a program name with args.
2513set dummy $ac_prog; ac_word=$2
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2515$as_echo_n "checking for $ac_word... " >&6; }
2516if ${ac_cv_prog_ac_ct_CC+:} false; then :
2517  $as_echo_n "(cached) " >&6
2518else
2519  if test -n "$ac_ct_CC"; then
2520  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525  IFS=$as_save_IFS
2526  test -z "$as_dir" && as_dir=.
2527    for ac_exec_ext in '' $ac_executable_extensions; do
2528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2529    ac_cv_prog_ac_ct_CC="$ac_prog"
2530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531    break 2
2532  fi
2533done
2534  done
2535IFS=$as_save_IFS
2536
2537fi
2538fi
2539ac_ct_CC=$ac_cv_prog_ac_ct_CC
2540if test -n "$ac_ct_CC"; then
2541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2542$as_echo "$ac_ct_CC" >&6; }
2543else
2544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2545$as_echo "no" >&6; }
2546fi
2547
2548
2549  test -n "$ac_ct_CC" && break
2550done
2551
2552  if test "x$ac_ct_CC" = x; then
2553    CC=""
2554  else
2555    case $cross_compiling:$ac_tool_warned in
2556yes:)
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2559ac_tool_warned=yes ;;
2560esac
2561    CC=$ac_ct_CC
2562  fi
2563fi
2564
2565fi
2566
2567
2568test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570as_fn_error $? "no acceptable C compiler found in \$PATH
2571See \`config.log' for more details" "$LINENO" 5; }
2572
2573# Provide some information about the compiler.
2574$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2575set X $ac_compile
2576ac_compiler=$2
2577for ac_option in --version -v -V -qversion; do
2578  { { ac_try="$ac_compiler $ac_option >&5"
2579case "(($ac_try" in
2580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581  *) ac_try_echo=$ac_try;;
2582esac
2583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2584$as_echo "$ac_try_echo"; } >&5
2585  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2586  ac_status=$?
2587  if test -s conftest.err; then
2588    sed '10a\
2589... rest of stderr output deleted ...
2590         10q' conftest.err >conftest.er1
2591    cat conftest.er1 >&5
2592  fi
2593  rm -f conftest.er1 conftest.err
2594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595  test $ac_status = 0; }
2596done
2597
2598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h.  */
2600
2601int
2602main ()
2603{
2604
2605  ;
2606  return 0;
2607}
2608_ACEOF
2609ac_clean_files_save=$ac_clean_files
2610ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2611# Try to create an executable without -o first, disregard a.out.
2612# It will help us diagnose broken compilers, and finding out an intuition
2613# of exeext.
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2615$as_echo_n "checking whether the C compiler works... " >&6; }
2616ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2617
2618# The possible output files:
2619ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2620
2621ac_rmfiles=
2622for ac_file in $ac_files
2623do
2624  case $ac_file in
2625    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2626    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2627  esac
2628done
2629rm -f $ac_rmfiles
2630
2631if { { ac_try="$ac_link_default"
2632case "(($ac_try" in
2633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634  *) ac_try_echo=$ac_try;;
2635esac
2636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2637$as_echo "$ac_try_echo"; } >&5
2638  (eval "$ac_link_default") 2>&5
2639  ac_status=$?
2640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641  test $ac_status = 0; }; then :
2642  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2643# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2644# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2645# so that the user can short-circuit this test for compilers unknown to
2646# Autoconf.
2647for ac_file in $ac_files ''
2648do
2649  test -f "$ac_file" || continue
2650  case $ac_file in
2651    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2652	;;
2653    [ab].out )
2654	# We found the default executable, but exeext='' is most
2655	# certainly right.
2656	break;;
2657    *.* )
2658	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2659	then :; else
2660	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661	fi
2662	# We set ac_cv_exeext here because the later test for it is not
2663	# safe: cross compilers may not add the suffix if given an `-o'
2664	# argument, so we may need to know it at that point already.
2665	# Even if this section looks crufty: it has the advantage of
2666	# actually working.
2667	break;;
2668    * )
2669	break;;
2670  esac
2671done
2672test "$ac_cv_exeext" = no && ac_cv_exeext=
2673
2674else
2675  ac_file=''
2676fi
2677if test -z "$ac_file"; then :
2678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680$as_echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2684$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2685as_fn_error 77 "C compiler cannot create executables
2686See \`config.log' for more details" "$LINENO" 5; }
2687else
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689$as_echo "yes" >&6; }
2690fi
2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2692$as_echo_n "checking for C compiler default output file name... " >&6; }
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2694$as_echo "$ac_file" >&6; }
2695ac_exeext=$ac_cv_exeext
2696
2697rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2698ac_clean_files=$ac_clean_files_save
2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2700$as_echo_n "checking for suffix of executables... " >&6; }
2701if { { ac_try="$ac_link"
2702case "(($ac_try" in
2703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704  *) ac_try_echo=$ac_try;;
2705esac
2706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707$as_echo "$ac_try_echo"; } >&5
2708  (eval "$ac_link") 2>&5
2709  ac_status=$?
2710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2711  test $ac_status = 0; }; then :
2712  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2713# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2714# work properly (i.e., refer to `conftest.exe'), while it won't with
2715# `rm'.
2716for ac_file in conftest.exe conftest conftest.*; do
2717  test -f "$ac_file" || continue
2718  case $ac_file in
2719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2720    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721	  break;;
2722    * ) break;;
2723  esac
2724done
2725else
2726  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2729See \`config.log' for more details" "$LINENO" 5; }
2730fi
2731rm -f conftest conftest$ac_cv_exeext
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2733$as_echo "$ac_cv_exeext" >&6; }
2734
2735rm -f conftest.$ac_ext
2736EXEEXT=$ac_cv_exeext
2737ac_exeext=$EXEEXT
2738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739/* end confdefs.h.  */
2740#include <stdio.h>
2741int
2742main ()
2743{
2744FILE *f = fopen ("conftest.out", "w");
2745 return ferror (f) || fclose (f) != 0;
2746
2747  ;
2748  return 0;
2749}
2750_ACEOF
2751ac_clean_files="$ac_clean_files conftest.out"
2752# Check that the compiler produces executables we can run.  If not, either
2753# the compiler is broken, or we cross compile.
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2755$as_echo_n "checking whether we are cross compiling... " >&6; }
2756if test "$cross_compiling" != yes; then
2757  { { ac_try="$ac_link"
2758case "(($ac_try" in
2759  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760  *) ac_try_echo=$ac_try;;
2761esac
2762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2763$as_echo "$ac_try_echo"; } >&5
2764  (eval "$ac_link") 2>&5
2765  ac_status=$?
2766  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2767  test $ac_status = 0; }
2768  if { ac_try='./conftest$ac_cv_exeext'
2769  { { case "(($ac_try" in
2770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771  *) ac_try_echo=$ac_try;;
2772esac
2773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2774$as_echo "$ac_try_echo"; } >&5
2775  (eval "$ac_try") 2>&5
2776  ac_status=$?
2777  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778  test $ac_status = 0; }; }; then
2779    cross_compiling=no
2780  else
2781    if test "$cross_compiling" = maybe; then
2782	cross_compiling=yes
2783    else
2784	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786as_fn_error $? "cannot run C compiled programs.
2787If you meant to cross compile, use \`--host'.
2788See \`config.log' for more details" "$LINENO" 5; }
2789    fi
2790  fi
2791fi
2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2793$as_echo "$cross_compiling" >&6; }
2794
2795rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2796ac_clean_files=$ac_clean_files_save
2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2798$as_echo_n "checking for suffix of object files... " >&6; }
2799if ${ac_cv_objext+:} false; then :
2800  $as_echo_n "(cached) " >&6
2801else
2802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h.  */
2804
2805int
2806main ()
2807{
2808
2809  ;
2810  return 0;
2811}
2812_ACEOF
2813rm -f conftest.o conftest.obj
2814if { { ac_try="$ac_compile"
2815case "(($ac_try" in
2816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817  *) ac_try_echo=$ac_try;;
2818esac
2819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820$as_echo "$ac_try_echo"; } >&5
2821  (eval "$ac_compile") 2>&5
2822  ac_status=$?
2823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824  test $ac_status = 0; }; then :
2825  for ac_file in conftest.o conftest.obj conftest.*; do
2826  test -f "$ac_file" || continue;
2827  case $ac_file in
2828    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2829    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2830       break;;
2831  esac
2832done
2833else
2834  $as_echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839as_fn_error $? "cannot compute suffix of object files: cannot compile
2840See \`config.log' for more details" "$LINENO" 5; }
2841fi
2842rm -f conftest.$ac_cv_objext conftest.$ac_ext
2843fi
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2845$as_echo "$ac_cv_objext" >&6; }
2846OBJEXT=$ac_cv_objext
2847ac_objext=$OBJEXT
2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2849$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2850if ${ac_cv_c_compiler_gnu+:} false; then :
2851  $as_echo_n "(cached) " >&6
2852else
2853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859#ifndef __GNUC__
2860       choke me
2861#endif
2862
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867if ac_fn_c_try_compile "$LINENO"; then :
2868  ac_compiler_gnu=yes
2869else
2870  ac_compiler_gnu=no
2871fi
2872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873ac_cv_c_compiler_gnu=$ac_compiler_gnu
2874
2875fi
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2877$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2878if test $ac_compiler_gnu = yes; then
2879  GCC=yes
2880else
2881  GCC=
2882fi
2883ac_test_CFLAGS=${CFLAGS+set}
2884ac_save_CFLAGS=$CFLAGS
2885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2886$as_echo_n "checking whether $CC accepts -g... " >&6; }
2887if ${ac_cv_prog_cc_g+:} false; then :
2888  $as_echo_n "(cached) " >&6
2889else
2890  ac_save_c_werror_flag=$ac_c_werror_flag
2891   ac_c_werror_flag=yes
2892   ac_cv_prog_cc_g=no
2893   CFLAGS="-g"
2894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h.  */
2896
2897int
2898main ()
2899{
2900
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905if ac_fn_c_try_compile "$LINENO"; then :
2906  ac_cv_prog_cc_g=yes
2907else
2908  CFLAGS=""
2909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910/* end confdefs.h.  */
2911
2912int
2913main ()
2914{
2915
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921
2922else
2923  ac_c_werror_flag=$ac_save_c_werror_flag
2924	 CFLAGS="-g"
2925	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926/* end confdefs.h.  */
2927
2928int
2929main ()
2930{
2931
2932  ;
2933  return 0;
2934}
2935_ACEOF
2936if ac_fn_c_try_compile "$LINENO"; then :
2937  ac_cv_prog_cc_g=yes
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942fi
2943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944   ac_c_werror_flag=$ac_save_c_werror_flag
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2947$as_echo "$ac_cv_prog_cc_g" >&6; }
2948if test "$ac_test_CFLAGS" = set; then
2949  CFLAGS=$ac_save_CFLAGS
2950elif test $ac_cv_prog_cc_g = yes; then
2951  if test "$GCC" = yes; then
2952    CFLAGS="-g -O2"
2953  else
2954    CFLAGS="-g"
2955  fi
2956else
2957  if test "$GCC" = yes; then
2958    CFLAGS="-O2"
2959  else
2960    CFLAGS=
2961  fi
2962fi
2963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2964$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2965if ${ac_cv_prog_cc_c89+:} false; then :
2966  $as_echo_n "(cached) " >&6
2967else
2968  ac_cv_prog_cc_c89=no
2969ac_save_CC=$CC
2970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2971/* end confdefs.h.  */
2972#include <stdarg.h>
2973#include <stdio.h>
2974#include <sys/types.h>
2975#include <sys/stat.h>
2976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2977struct buf { int x; };
2978FILE * (*rcsopen) (struct buf *, struct stat *, int);
2979static char *e (p, i)
2980     char **p;
2981     int i;
2982{
2983  return p[i];
2984}
2985static char *f (char * (*g) (char **, int), char **p, ...)
2986{
2987  char *s;
2988  va_list v;
2989  va_start (v,p);
2990  s = g (p, va_arg (v,int));
2991  va_end (v);
2992  return s;
2993}
2994
2995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2996   function prototypes and stuff, but not '\xHH' hex character constants.
2997   These don't provoke an error unfortunately, instead are silently treated
2998   as 'x'.  The following induces an error, until -std is added to get
2999   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3000   array size at least.  It's necessary to write '\x00'==0 to get something
3001   that's true only with -std.  */
3002int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3003
3004/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3005   inside strings and character constants.  */
3006#define FOO(x) 'x'
3007int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3008
3009int test (int i, double x);
3010struct s1 {int (*f) (int a);};
3011struct s2 {int (*f) (double a);};
3012int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3013int argc;
3014char **argv;
3015int
3016main ()
3017{
3018return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3019  ;
3020  return 0;
3021}
3022_ACEOF
3023for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3024	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3025do
3026  CC="$ac_save_CC $ac_arg"
3027  if ac_fn_c_try_compile "$LINENO"; then :
3028  ac_cv_prog_cc_c89=$ac_arg
3029fi
3030rm -f core conftest.err conftest.$ac_objext
3031  test "x$ac_cv_prog_cc_c89" != "xno" && break
3032done
3033rm -f conftest.$ac_ext
3034CC=$ac_save_CC
3035
3036fi
3037# AC_CACHE_VAL
3038case "x$ac_cv_prog_cc_c89" in
3039  x)
3040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3041$as_echo "none needed" >&6; } ;;
3042  xno)
3043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3044$as_echo "unsupported" >&6; } ;;
3045  *)
3046    CC="$CC $ac_cv_prog_cc_c89"
3047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3048$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3049esac
3050if test "x$ac_cv_prog_cc_c89" != xno; then :
3051
3052fi
3053
3054ac_ext=c
3055ac_cpp='$CPP $CPPFLAGS'
3056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058ac_compiler_gnu=$ac_cv_c_compiler_gnu
3059
3060
3061# Check whether --enable-largefile was given.
3062if test "${enable_largefile+set}" = set; then :
3063  enableval=$enable_largefile;
3064fi
3065
3066if test "$enable_largefile" != no; then
3067
3068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3069$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3070if ${ac_cv_sys_largefile_CC+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  ac_cv_sys_largefile_CC=no
3074     if test "$GCC" != yes; then
3075       ac_save_CC=$CC
3076       while :; do
3077	 # IRIX 6.2 and later do not support large files by default,
3078	 # so use the C compiler's -n32 option if that helps.
3079	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3080/* end confdefs.h.  */
3081#include <sys/types.h>
3082 /* Check that off_t can represent 2**63 - 1 correctly.
3083    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3084    since some C++ compilers masquerading as C compilers
3085    incorrectly reject 9223372036854775807.  */
3086#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3087  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3088		       && LARGE_OFF_T % 2147483647 == 1)
3089		      ? 1 : -1];
3090int
3091main ()
3092{
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098	 if ac_fn_c_try_compile "$LINENO"; then :
3099  break
3100fi
3101rm -f core conftest.err conftest.$ac_objext
3102	 CC="$CC -n32"
3103	 if ac_fn_c_try_compile "$LINENO"; then :
3104  ac_cv_sys_largefile_CC=' -n32'; break
3105fi
3106rm -f core conftest.err conftest.$ac_objext
3107	 break
3108       done
3109       CC=$ac_save_CC
3110       rm -f conftest.$ac_ext
3111    fi
3112fi
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3114$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3115  if test "$ac_cv_sys_largefile_CC" != no; then
3116    CC=$CC$ac_cv_sys_largefile_CC
3117  fi
3118
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3120$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3121if ${ac_cv_sys_file_offset_bits+:} false; then :
3122  $as_echo_n "(cached) " >&6
3123else
3124  while :; do
3125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126/* end confdefs.h.  */
3127#include <sys/types.h>
3128 /* Check that off_t can represent 2**63 - 1 correctly.
3129    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3130    since some C++ compilers masquerading as C compilers
3131    incorrectly reject 9223372036854775807.  */
3132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3133  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3134		       && LARGE_OFF_T % 2147483647 == 1)
3135		      ? 1 : -1];
3136int
3137main ()
3138{
3139
3140  ;
3141  return 0;
3142}
3143_ACEOF
3144if ac_fn_c_try_compile "$LINENO"; then :
3145  ac_cv_sys_file_offset_bits=no; break
3146fi
3147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149/* end confdefs.h.  */
3150#define _FILE_OFFSET_BITS 64
3151#include <sys/types.h>
3152 /* Check that off_t can represent 2**63 - 1 correctly.
3153    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3154    since some C++ compilers masquerading as C compilers
3155    incorrectly reject 9223372036854775807.  */
3156#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3157  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3158		       && LARGE_OFF_T % 2147483647 == 1)
3159		      ? 1 : -1];
3160int
3161main ()
3162{
3163
3164  ;
3165  return 0;
3166}
3167_ACEOF
3168if ac_fn_c_try_compile "$LINENO"; then :
3169  ac_cv_sys_file_offset_bits=64; break
3170fi
3171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172  ac_cv_sys_file_offset_bits=unknown
3173  break
3174done
3175fi
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3177$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3178case $ac_cv_sys_file_offset_bits in #(
3179  no | unknown) ;;
3180  *)
3181cat >>confdefs.h <<_ACEOF
3182#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3183_ACEOF
3184;;
3185esac
3186rm -rf conftest*
3187  if test $ac_cv_sys_file_offset_bits = unknown; then
3188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3189$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3190if ${ac_cv_sys_large_files+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  while :; do
3194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h.  */
3196#include <sys/types.h>
3197 /* Check that off_t can represent 2**63 - 1 correctly.
3198    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3199    since some C++ compilers masquerading as C compilers
3200    incorrectly reject 9223372036854775807.  */
3201#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3202  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3203		       && LARGE_OFF_T % 2147483647 == 1)
3204		      ? 1 : -1];
3205int
3206main ()
3207{
3208
3209  ;
3210  return 0;
3211}
3212_ACEOF
3213if ac_fn_c_try_compile "$LINENO"; then :
3214  ac_cv_sys_large_files=no; break
3215fi
3216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219#define _LARGE_FILES 1
3220#include <sys/types.h>
3221 /* Check that off_t can represent 2**63 - 1 correctly.
3222    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3223    since some C++ compilers masquerading as C compilers
3224    incorrectly reject 9223372036854775807.  */
3225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3226  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3227		       && LARGE_OFF_T % 2147483647 == 1)
3228		      ? 1 : -1];
3229int
3230main ()
3231{
3232
3233  ;
3234  return 0;
3235}
3236_ACEOF
3237if ac_fn_c_try_compile "$LINENO"; then :
3238  ac_cv_sys_large_files=1; break
3239fi
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241  ac_cv_sys_large_files=unknown
3242  break
3243done
3244fi
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3246$as_echo "$ac_cv_sys_large_files" >&6; }
3247case $ac_cv_sys_large_files in #(
3248  no | unknown) ;;
3249  *)
3250cat >>confdefs.h <<_ACEOF
3251#define _LARGE_FILES $ac_cv_sys_large_files
3252_ACEOF
3253;;
3254esac
3255rm -rf conftest*
3256  fi
3257fi
3258
3259
3260# Initialize Automake
3261am__api_version='1.11'
3262
3263# Find a good install program.  We prefer a C program (faster),
3264# so one script is as good as another.  But avoid the broken or
3265# incompatible versions:
3266# SysV /etc/install, /usr/sbin/install
3267# SunOS /usr/etc/install
3268# IRIX /sbin/install
3269# AIX /bin/install
3270# AmigaOS /C/install, which installs bootblocks on floppy discs
3271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3272# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3274# OS/2's system install, which has a completely different semantic
3275# ./install, which can be erroneously created by make from ./install.sh.
3276# Reject install programs that cannot install multiple files.
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3278$as_echo_n "checking for a BSD-compatible install... " >&6; }
3279if test -z "$INSTALL"; then
3280if ${ac_cv_path_install+:} false; then :
3281  $as_echo_n "(cached) " >&6
3282else
3283  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284for as_dir in $PATH
3285do
3286  IFS=$as_save_IFS
3287  test -z "$as_dir" && as_dir=.
3288    # Account for people who put trailing slashes in PATH elements.
3289case $as_dir/ in #((
3290  ./ | .// | /[cC]/* | \
3291  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3293  /usr/ucb/* ) ;;
3294  *)
3295    # OSF1 and SCO ODT 3.0 have their own names for install.
3296    # Don't use installbsd from OSF since it installs stuff as root
3297    # by default.
3298    for ac_prog in ginstall scoinst install; do
3299      for ac_exec_ext in '' $ac_executable_extensions; do
3300	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3301	  if test $ac_prog = install &&
3302	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303	    # AIX install.  It has an incompatible calling convention.
3304	    :
3305	  elif test $ac_prog = install &&
3306	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307	    # program-specific install script used by HP pwplus--don't use.
3308	    :
3309	  else
3310	    rm -rf conftest.one conftest.two conftest.dir
3311	    echo one > conftest.one
3312	    echo two > conftest.two
3313	    mkdir conftest.dir
3314	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3315	      test -s conftest.one && test -s conftest.two &&
3316	      test -s conftest.dir/conftest.one &&
3317	      test -s conftest.dir/conftest.two
3318	    then
3319	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3320	      break 3
3321	    fi
3322	  fi
3323	fi
3324      done
3325    done
3326    ;;
3327esac
3328
3329  done
3330IFS=$as_save_IFS
3331
3332rm -rf conftest.one conftest.two conftest.dir
3333
3334fi
3335  if test "${ac_cv_path_install+set}" = set; then
3336    INSTALL=$ac_cv_path_install
3337  else
3338    # As a last resort, use the slow shell script.  Don't cache a
3339    # value for INSTALL within a source directory, because that will
3340    # break other packages using the cache if that directory is
3341    # removed, or if the value is a relative name.
3342    INSTALL=$ac_install_sh
3343  fi
3344fi
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3346$as_echo "$INSTALL" >&6; }
3347
3348# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3349# It thinks the first close brace ends the variable substitution.
3350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3351
3352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3353
3354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3355
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3357$as_echo_n "checking whether build environment is sane... " >&6; }
3358# Just in case
3359sleep 1
3360echo timestamp > conftest.file
3361# Reject unsafe characters in $srcdir or the absolute working directory
3362# name.  Accept space and tab only in the latter.
3363am_lf='
3364'
3365case `pwd` in
3366  *[\\\"\#\$\&\'\`$am_lf]*)
3367    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3368esac
3369case $srcdir in
3370  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3371    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3372esac
3373
3374# Do `set' in a subshell so we don't clobber the current shell's
3375# arguments.  Must try -L first in case configure is actually a
3376# symlink; some systems play weird games with the mod time of symlinks
3377# (eg FreeBSD returns the mod time of the symlink's containing
3378# directory).
3379if (
3380   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3381   if test "$*" = "X"; then
3382      # -L didn't work.
3383      set X `ls -t "$srcdir/configure" conftest.file`
3384   fi
3385   rm -f conftest.file
3386   if test "$*" != "X $srcdir/configure conftest.file" \
3387      && test "$*" != "X conftest.file $srcdir/configure"; then
3388
3389      # If neither matched, then we have a broken ls.  This can happen
3390      # if, for instance, CONFIG_SHELL is bash and it inherits a
3391      # broken ls alias from the environment.  This has actually
3392      # happened.  Such a system could not be considered "sane".
3393      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3394alias in your environment" "$LINENO" 5
3395   fi
3396
3397   test "$2" = conftest.file
3398   )
3399then
3400   # Ok.
3401   :
3402else
3403   as_fn_error $? "newly created file is older than distributed files!
3404Check your system clock" "$LINENO" 5
3405fi
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3407$as_echo "yes" >&6; }
3408test "$program_prefix" != NONE &&
3409  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3410# Use a double $ so make ignores it.
3411test "$program_suffix" != NONE &&
3412  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3413# Double any \ or $.
3414# By default was `s,x,x', remove it if useless.
3415ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3416program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3417
3418# expand $ac_aux_dir to an absolute path
3419am_aux_dir=`cd $ac_aux_dir && pwd`
3420
3421if test x"${MISSING+set}" != xset; then
3422  case $am_aux_dir in
3423  *\ * | *\	*)
3424    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3425  *)
3426    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3427  esac
3428fi
3429# Use eval to expand $SHELL
3430if eval "$MISSING --run true"; then
3431  am_missing_run="$MISSING --run "
3432else
3433  am_missing_run=
3434  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3435$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3436fi
3437
3438if test x"${install_sh}" != xset; then
3439  case $am_aux_dir in
3440  *\ * | *\	*)
3441    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3442  *)
3443    install_sh="\${SHELL} $am_aux_dir/install-sh"
3444  esac
3445fi
3446
3447# Installed binaries are usually stripped using `strip' when the user
3448# run `make install-strip'.  However `strip' might not be the right
3449# tool to use in cross-compilation environments, therefore Automake
3450# will honor the `STRIP' environment variable to overrule this program.
3451if test "$cross_compiling" != no; then
3452  if test -n "$ac_tool_prefix"; then
3453  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3454set dummy ${ac_tool_prefix}strip; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if ${ac_cv_prog_STRIP+:} false; then :
3458  $as_echo_n "(cached) " >&6
3459else
3460  if test -n "$STRIP"; then
3461  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3462else
3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464for as_dir in $PATH
3465do
3466  IFS=$as_save_IFS
3467  test -z "$as_dir" && as_dir=.
3468    for ac_exec_ext in '' $ac_executable_extensions; do
3469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472    break 2
3473  fi
3474done
3475  done
3476IFS=$as_save_IFS
3477
3478fi
3479fi
3480STRIP=$ac_cv_prog_STRIP
3481if test -n "$STRIP"; then
3482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3483$as_echo "$STRIP" >&6; }
3484else
3485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486$as_echo "no" >&6; }
3487fi
3488
3489
3490fi
3491if test -z "$ac_cv_prog_STRIP"; then
3492  ac_ct_STRIP=$STRIP
3493  # Extract the first word of "strip", so it can be a program name with args.
3494set dummy strip; ac_word=$2
3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496$as_echo_n "checking for $ac_word... " >&6; }
3497if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3498  $as_echo_n "(cached) " >&6
3499else
3500  if test -n "$ac_ct_STRIP"; then
3501  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3502else
3503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504for as_dir in $PATH
3505do
3506  IFS=$as_save_IFS
3507  test -z "$as_dir" && as_dir=.
3508    for ac_exec_ext in '' $ac_executable_extensions; do
3509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510    ac_cv_prog_ac_ct_STRIP="strip"
3511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512    break 2
3513  fi
3514done
3515  done
3516IFS=$as_save_IFS
3517
3518fi
3519fi
3520ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3521if test -n "$ac_ct_STRIP"; then
3522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3523$as_echo "$ac_ct_STRIP" >&6; }
3524else
3525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526$as_echo "no" >&6; }
3527fi
3528
3529  if test "x$ac_ct_STRIP" = x; then
3530    STRIP=":"
3531  else
3532    case $cross_compiling:$ac_tool_warned in
3533yes:)
3534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3536ac_tool_warned=yes ;;
3537esac
3538    STRIP=$ac_ct_STRIP
3539  fi
3540else
3541  STRIP="$ac_cv_prog_STRIP"
3542fi
3543
3544fi
3545INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3546
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3548$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3549if test -z "$MKDIR_P"; then
3550  if ${ac_cv_path_mkdir+:} false; then :
3551  $as_echo_n "(cached) " >&6
3552else
3553  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3555do
3556  IFS=$as_save_IFS
3557  test -z "$as_dir" && as_dir=.
3558    for ac_prog in mkdir gmkdir; do
3559	 for ac_exec_ext in '' $ac_executable_extensions; do
3560	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3561	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3562	     'mkdir (GNU coreutils) '* | \
3563	     'mkdir (coreutils) '* | \
3564	     'mkdir (fileutils) '4.1*)
3565	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3566	       break 3;;
3567	   esac
3568	 done
3569       done
3570  done
3571IFS=$as_save_IFS
3572
3573fi
3574
3575  test -d ./--version && rmdir ./--version
3576  if test "${ac_cv_path_mkdir+set}" = set; then
3577    MKDIR_P="$ac_cv_path_mkdir -p"
3578  else
3579    # As a last resort, use the slow shell script.  Don't cache a
3580    # value for MKDIR_P within a source directory, because that will
3581    # break other packages using the cache if that directory is
3582    # removed, or if the value is a relative name.
3583    MKDIR_P="$ac_install_sh -d"
3584  fi
3585fi
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3587$as_echo "$MKDIR_P" >&6; }
3588
3589mkdir_p="$MKDIR_P"
3590case $mkdir_p in
3591  [\\/$]* | ?:[\\/]*) ;;
3592  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3593esac
3594
3595for ac_prog in gawk mawk nawk awk
3596do
3597  # Extract the first word of "$ac_prog", so it can be a program name with args.
3598set dummy $ac_prog; ac_word=$2
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600$as_echo_n "checking for $ac_word... " >&6; }
3601if ${ac_cv_prog_AWK+:} false; then :
3602  $as_echo_n "(cached) " >&6
3603else
3604  if test -n "$AWK"; then
3605  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3606else
3607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608for as_dir in $PATH
3609do
3610  IFS=$as_save_IFS
3611  test -z "$as_dir" && as_dir=.
3612    for ac_exec_ext in '' $ac_executable_extensions; do
3613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614    ac_cv_prog_AWK="$ac_prog"
3615    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616    break 2
3617  fi
3618done
3619  done
3620IFS=$as_save_IFS
3621
3622fi
3623fi
3624AWK=$ac_cv_prog_AWK
3625if test -n "$AWK"; then
3626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3627$as_echo "$AWK" >&6; }
3628else
3629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630$as_echo "no" >&6; }
3631fi
3632
3633
3634  test -n "$AWK" && break
3635done
3636
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3638$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3639set x ${MAKE-make}
3640ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3641if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3642  $as_echo_n "(cached) " >&6
3643else
3644  cat >conftest.make <<\_ACEOF
3645SHELL = /bin/sh
3646all:
3647	@echo '@@@%%%=$(MAKE)=@@@%%%'
3648_ACEOF
3649# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3650case `${MAKE-make} -f conftest.make 2>/dev/null` in
3651  *@@@%%%=?*=@@@%%%*)
3652    eval ac_cv_prog_make_${ac_make}_set=yes;;
3653  *)
3654    eval ac_cv_prog_make_${ac_make}_set=no;;
3655esac
3656rm -f conftest.make
3657fi
3658if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660$as_echo "yes" >&6; }
3661  SET_MAKE=
3662else
3663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664$as_echo "no" >&6; }
3665  SET_MAKE="MAKE=${MAKE-make}"
3666fi
3667
3668rm -rf .tst 2>/dev/null
3669mkdir .tst 2>/dev/null
3670if test -d .tst; then
3671  am__leading_dot=.
3672else
3673  am__leading_dot=_
3674fi
3675rmdir .tst 2>/dev/null
3676
3677DEPDIR="${am__leading_dot}deps"
3678
3679ac_config_commands="$ac_config_commands depfiles"
3680
3681
3682am_make=${MAKE-make}
3683cat > confinc << 'END'
3684am__doit:
3685	@echo this is the am__doit target
3686.PHONY: am__doit
3687END
3688# If we don't find an include directive, just comment out the code.
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3690$as_echo_n "checking for style of include used by $am_make... " >&6; }
3691am__include="#"
3692am__quote=
3693_am_result=none
3694# First try GNU make style include.
3695echo "include confinc" > confmf
3696# Ignore all kinds of additional output from `make'.
3697case `$am_make -s -f confmf 2> /dev/null` in #(
3698*the\ am__doit\ target*)
3699  am__include=include
3700  am__quote=
3701  _am_result=GNU
3702  ;;
3703esac
3704# Now try BSD make style include.
3705if test "$am__include" = "#"; then
3706   echo '.include "confinc"' > confmf
3707   case `$am_make -s -f confmf 2> /dev/null` in #(
3708   *the\ am__doit\ target*)
3709     am__include=.include
3710     am__quote="\""
3711     _am_result=BSD
3712     ;;
3713   esac
3714fi
3715
3716
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3718$as_echo "$_am_result" >&6; }
3719rm -f confinc confmf
3720
3721# Check whether --enable-dependency-tracking was given.
3722if test "${enable_dependency_tracking+set}" = set; then :
3723  enableval=$enable_dependency_tracking;
3724fi
3725
3726if test "x$enable_dependency_tracking" != xno; then
3727  am_depcomp="$ac_aux_dir/depcomp"
3728  AMDEPBACKSLASH='\'
3729  am__nodep='_no'
3730fi
3731 if test "x$enable_dependency_tracking" != xno; then
3732  AMDEP_TRUE=
3733  AMDEP_FALSE='#'
3734else
3735  AMDEP_TRUE='#'
3736  AMDEP_FALSE=
3737fi
3738
3739
3740if test "`cd $srcdir && pwd`" != "`pwd`"; then
3741  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3742  # is not polluted with repeated "-I."
3743  am__isrc=' -I$(srcdir)'
3744  # test to see if srcdir already configured
3745  if test -f $srcdir/config.status; then
3746    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3747  fi
3748fi
3749
3750# test whether we have cygpath
3751if test -z "$CYGPATH_W"; then
3752  if (cygpath --version) >/dev/null 2>/dev/null; then
3753    CYGPATH_W='cygpath -w'
3754  else
3755    CYGPATH_W=echo
3756  fi
3757fi
3758
3759
3760# Define the identity of the package.
3761 PACKAGE='xf86-video-vmware'
3762 VERSION='13.0.1'
3763
3764
3765cat >>confdefs.h <<_ACEOF
3766#define PACKAGE "$PACKAGE"
3767_ACEOF
3768
3769
3770cat >>confdefs.h <<_ACEOF
3771#define VERSION "$VERSION"
3772_ACEOF
3773
3774# Some tools Automake needs.
3775
3776ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3777
3778
3779AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3780
3781
3782AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3783
3784
3785AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3786
3787
3788MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3789
3790# We need awk for the "check" target.  The system "awk" is bad on
3791# some platforms.
3792# Always define AMTAR for backward compatibility.  Yes, it's still used
3793# in the wild :-(  We should find a proper way to deprecate it ...
3794AMTAR='$${TAR-tar}'
3795
3796am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3797
3798
3799
3800
3801depcc="$CC"   am_compiler_list=
3802
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3804$as_echo_n "checking dependency style of $depcc... " >&6; }
3805if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3806  $as_echo_n "(cached) " >&6
3807else
3808  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3809  # We make a subdir and do the tests there.  Otherwise we can end up
3810  # making bogus files that we don't know about and never remove.  For
3811  # instance it was reported that on HP-UX the gcc test will end up
3812  # making a dummy file named `D' -- because `-MD' means `put the output
3813  # in D'.
3814  rm -rf conftest.dir
3815  mkdir conftest.dir
3816  # Copy depcomp to subdir because otherwise we won't find it if we're
3817  # using a relative directory.
3818  cp "$am_depcomp" conftest.dir
3819  cd conftest.dir
3820  # We will build objects and dependencies in a subdirectory because
3821  # it helps to detect inapplicable dependency modes.  For instance
3822  # both Tru64's cc and ICC support -MD to output dependencies as a
3823  # side effect of compilation, but ICC will put the dependencies in
3824  # the current directory while Tru64 will put them in the object
3825  # directory.
3826  mkdir sub
3827
3828  am_cv_CC_dependencies_compiler_type=none
3829  if test "$am_compiler_list" = ""; then
3830     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3831  fi
3832  am__universal=false
3833  case " $depcc " in #(
3834     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3835     esac
3836
3837  for depmode in $am_compiler_list; do
3838    # Setup a source with many dependencies, because some compilers
3839    # like to wrap large dependency lists on column 80 (with \), and
3840    # we should not choose a depcomp mode which is confused by this.
3841    #
3842    # We need to recreate these files for each test, as the compiler may
3843    # overwrite some of them when testing with obscure command lines.
3844    # This happens at least with the AIX C compiler.
3845    : > sub/conftest.c
3846    for i in 1 2 3 4 5 6; do
3847      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3848      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3849      # Solaris 8's {/usr,}/bin/sh.
3850      touch sub/conftst$i.h
3851    done
3852    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3853
3854    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3855    # mode.  It turns out that the SunPro C++ compiler does not properly
3856    # handle `-M -o', and we need to detect this.  Also, some Intel
3857    # versions had trouble with output in subdirs
3858    am__obj=sub/conftest.${OBJEXT-o}
3859    am__minus_obj="-o $am__obj"
3860    case $depmode in
3861    gcc)
3862      # This depmode causes a compiler race in universal mode.
3863      test "$am__universal" = false || continue
3864      ;;
3865    nosideeffect)
3866      # after this tag, mechanisms are not by side-effect, so they'll
3867      # only be used when explicitly requested
3868      if test "x$enable_dependency_tracking" = xyes; then
3869	continue
3870      else
3871	break
3872      fi
3873      ;;
3874    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3875      # This compiler won't grok `-c -o', but also, the minuso test has
3876      # not run yet.  These depmodes are late enough in the game, and
3877      # so weak that their functioning should not be impacted.
3878      am__obj=conftest.${OBJEXT-o}
3879      am__minus_obj=
3880      ;;
3881    none) break ;;
3882    esac
3883    if depmode=$depmode \
3884       source=sub/conftest.c object=$am__obj \
3885       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3886       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3887         >/dev/null 2>conftest.err &&
3888       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3889       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3890       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3891       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3892      # icc doesn't choke on unknown options, it will just issue warnings
3893      # or remarks (even with -Werror).  So we grep stderr for any message
3894      # that says an option was ignored or not supported.
3895      # When given -MP, icc 7.0 and 7.1 complain thusly:
3896      #   icc: Command line warning: ignoring option '-M'; no argument required
3897      # The diagnosis changed in icc 8.0:
3898      #   icc: Command line remark: option '-MP' not supported
3899      if (grep 'ignoring option' conftest.err ||
3900          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3901        am_cv_CC_dependencies_compiler_type=$depmode
3902        break
3903      fi
3904    fi
3905  done
3906
3907  cd ..
3908  rm -rf conftest.dir
3909else
3910  am_cv_CC_dependencies_compiler_type=none
3911fi
3912
3913fi
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3915$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3916CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3917
3918 if
3919  test "x$enable_dependency_tracking" != xno \
3920  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3921  am__fastdepCC_TRUE=
3922  am__fastdepCC_FALSE='#'
3923else
3924  am__fastdepCC_TRUE='#'
3925  am__fastdepCC_FALSE=
3926fi
3927
3928
3929
3930
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3932$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3933    # Check whether --enable-maintainer-mode was given.
3934if test "${enable_maintainer_mode+set}" = set; then :
3935  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3936else
3937  USE_MAINTAINER_MODE=no
3938fi
3939
3940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3941$as_echo "$USE_MAINTAINER_MODE" >&6; }
3942   if test $USE_MAINTAINER_MODE = yes; then
3943  MAINTAINER_MODE_TRUE=
3944  MAINTAINER_MODE_FALSE='#'
3945else
3946  MAINTAINER_MODE_TRUE='#'
3947  MAINTAINER_MODE_FALSE=
3948fi
3949
3950  MAINT=$MAINTAINER_MODE_TRUE
3951
3952
3953
3954# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3967$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3968if ${ac_cv_prog_cc_c99+:} false; then :
3969  $as_echo_n "(cached) " >&6
3970else
3971  ac_cv_prog_cc_c99=no
3972ac_save_CC=$CC
3973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h.  */
3975#include <stdarg.h>
3976#include <stdbool.h>
3977#include <stdlib.h>
3978#include <wchar.h>
3979#include <stdio.h>
3980
3981// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3982#define debug(...) fprintf (stderr, __VA_ARGS__)
3983#define showlist(...) puts (#__VA_ARGS__)
3984#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3985static void
3986test_varargs_macros (void)
3987{
3988  int x = 1234;
3989  int y = 5678;
3990  debug ("Flag");
3991  debug ("X = %d\n", x);
3992  showlist (The first, second, and third items.);
3993  report (x>y, "x is %d but y is %d", x, y);
3994}
3995
3996// Check long long types.
3997#define BIG64 18446744073709551615ull
3998#define BIG32 4294967295ul
3999#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4000#if !BIG_OK
4001  your preprocessor is broken;
4002#endif
4003#if BIG_OK
4004#else
4005  your preprocessor is broken;
4006#endif
4007static long long int bignum = -9223372036854775807LL;
4008static unsigned long long int ubignum = BIG64;
4009
4010struct incomplete_array
4011{
4012  int datasize;
4013  double data[];
4014};
4015
4016struct named_init {
4017  int number;
4018  const wchar_t *name;
4019  double average;
4020};
4021
4022typedef const char *ccp;
4023
4024static inline int
4025test_restrict (ccp restrict text)
4026{
4027  // See if C++-style comments work.
4028  // Iterate through items via the restricted pointer.
4029  // Also check for declarations in for loops.
4030  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4031    continue;
4032  return 0;
4033}
4034
4035// Check varargs and va_copy.
4036static void
4037test_varargs (const char *format, ...)
4038{
4039  va_list args;
4040  va_start (args, format);
4041  va_list args_copy;
4042  va_copy (args_copy, args);
4043
4044  const char *str;
4045  int number;
4046  float fnumber;
4047
4048  while (*format)
4049    {
4050      switch (*format++)
4051	{
4052	case 's': // string
4053	  str = va_arg (args_copy, const char *);
4054	  break;
4055	case 'd': // int
4056	  number = va_arg (args_copy, int);
4057	  break;
4058	case 'f': // float
4059	  fnumber = va_arg (args_copy, double);
4060	  break;
4061	default:
4062	  break;
4063	}
4064    }
4065  va_end (args_copy);
4066  va_end (args);
4067}
4068
4069int
4070main ()
4071{
4072
4073  // Check bool.
4074  _Bool success = false;
4075
4076  // Check restrict.
4077  if (test_restrict ("String literal") == 0)
4078    success = true;
4079  char *restrict newvar = "Another string";
4080
4081  // Check varargs.
4082  test_varargs ("s, d' f .", "string", 65, 34.234);
4083  test_varargs_macros ();
4084
4085  // Check flexible array members.
4086  struct incomplete_array *ia =
4087    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4088  ia->datasize = 10;
4089  for (int i = 0; i < ia->datasize; ++i)
4090    ia->data[i] = i * 1.234;
4091
4092  // Check named initializers.
4093  struct named_init ni = {
4094    .number = 34,
4095    .name = L"Test wide string",
4096    .average = 543.34343,
4097  };
4098
4099  ni.number = 58;
4100
4101  int dynamic_array[ni.number];
4102  dynamic_array[ni.number - 1] = 543;
4103
4104  // work around unused variable warnings
4105  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4106	  || dynamic_array[ni.number - 1] != 543);
4107
4108  ;
4109  return 0;
4110}
4111_ACEOF
4112for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4113do
4114  CC="$ac_save_CC $ac_arg"
4115  if ac_fn_c_try_compile "$LINENO"; then :
4116  ac_cv_prog_cc_c99=$ac_arg
4117fi
4118rm -f core conftest.err conftest.$ac_objext
4119  test "x$ac_cv_prog_cc_c99" != "xno" && break
4120done
4121rm -f conftest.$ac_ext
4122CC=$ac_save_CC
4123
4124fi
4125# AC_CACHE_VAL
4126case "x$ac_cv_prog_cc_c99" in
4127  x)
4128    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4129$as_echo "none needed" >&6; } ;;
4130  xno)
4131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132$as_echo "unsupported" >&6; } ;;
4133  *)
4134    CC="$CC $ac_cv_prog_cc_c99"
4135    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4136$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4137esac
4138if test "x$ac_cv_prog_cc_c99" != xno; then :
4139
4140fi
4141
4142
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4149$as_echo_n "checking how to run the C preprocessor... " >&6; }
4150# On Suns, sometimes $CPP names a directory.
4151if test -n "$CPP" && test -d "$CPP"; then
4152  CPP=
4153fi
4154if test -z "$CPP"; then
4155  if ${ac_cv_prog_CPP+:} false; then :
4156  $as_echo_n "(cached) " >&6
4157else
4158      # Double quotes because CPP needs to be expanded
4159    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4160    do
4161      ac_preproc_ok=false
4162for ac_c_preproc_warn_flag in '' yes
4163do
4164  # Use a header file that comes with gcc, so configuring glibc
4165  # with a fresh cross-compiler works.
4166  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4167  # <limits.h> exists even on freestanding compilers.
4168  # On the NeXT, cc -E runs the code through the compiler's parser,
4169  # not just through cpp. "Syntax error" is here to catch this case.
4170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171/* end confdefs.h.  */
4172#ifdef __STDC__
4173# include <limits.h>
4174#else
4175# include <assert.h>
4176#endif
4177		     Syntax error
4178_ACEOF
4179if ac_fn_c_try_cpp "$LINENO"; then :
4180
4181else
4182  # Broken: fails on valid input.
4183continue
4184fi
4185rm -f conftest.err conftest.i conftest.$ac_ext
4186
4187  # OK, works on sane cases.  Now check whether nonexistent headers
4188  # can be detected and how.
4189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191#include <ac_nonexistent.h>
4192_ACEOF
4193if ac_fn_c_try_cpp "$LINENO"; then :
4194  # Broken: success on invalid input.
4195continue
4196else
4197  # Passes both tests.
4198ac_preproc_ok=:
4199break
4200fi
4201rm -f conftest.err conftest.i conftest.$ac_ext
4202
4203done
4204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4205rm -f conftest.i conftest.err conftest.$ac_ext
4206if $ac_preproc_ok; then :
4207  break
4208fi
4209
4210    done
4211    ac_cv_prog_CPP=$CPP
4212
4213fi
4214  CPP=$ac_cv_prog_CPP
4215else
4216  ac_cv_prog_CPP=$CPP
4217fi
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4219$as_echo "$CPP" >&6; }
4220ac_preproc_ok=false
4221for ac_c_preproc_warn_flag in '' yes
4222do
4223  # Use a header file that comes with gcc, so configuring glibc
4224  # with a fresh cross-compiler works.
4225  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226  # <limits.h> exists even on freestanding compilers.
4227  # On the NeXT, cc -E runs the code through the compiler's parser,
4228  # not just through cpp. "Syntax error" is here to catch this case.
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#ifdef __STDC__
4232# include <limits.h>
4233#else
4234# include <assert.h>
4235#endif
4236		     Syntax error
4237_ACEOF
4238if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240else
4241  # Broken: fails on valid input.
4242continue
4243fi
4244rm -f conftest.err conftest.i conftest.$ac_ext
4245
4246  # OK, works on sane cases.  Now check whether nonexistent headers
4247  # can be detected and how.
4248  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249/* end confdefs.h.  */
4250#include <ac_nonexistent.h>
4251_ACEOF
4252if ac_fn_c_try_cpp "$LINENO"; then :
4253  # Broken: success on invalid input.
4254continue
4255else
4256  # Passes both tests.
4257ac_preproc_ok=:
4258break
4259fi
4260rm -f conftest.err conftest.i conftest.$ac_ext
4261
4262done
4263# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264rm -f conftest.i conftest.err conftest.$ac_ext
4265if $ac_preproc_ok; then :
4266
4267else
4268  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4271See \`config.log' for more details" "$LINENO" 5; }
4272fi
4273
4274ac_ext=c
4275ac_cpp='$CPP $CPPFLAGS'
4276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278ac_compiler_gnu=$ac_cv_c_compiler_gnu
4279
4280
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4282$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4283if ${ac_cv_path_GREP+:} false; then :
4284  $as_echo_n "(cached) " >&6
4285else
4286  if test -z "$GREP"; then
4287  ac_path_GREP_found=false
4288  # Loop through the user's path and test for each of PROGNAME-LIST
4289  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4291do
4292  IFS=$as_save_IFS
4293  test -z "$as_dir" && as_dir=.
4294    for ac_prog in grep ggrep; do
4295    for ac_exec_ext in '' $ac_executable_extensions; do
4296      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4297      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4298# Check for GNU ac_path_GREP and select it if it is found.
4299  # Check for GNU $ac_path_GREP
4300case `"$ac_path_GREP" --version 2>&1` in
4301*GNU*)
4302  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4303*)
4304  ac_count=0
4305  $as_echo_n 0123456789 >"conftest.in"
4306  while :
4307  do
4308    cat "conftest.in" "conftest.in" >"conftest.tmp"
4309    mv "conftest.tmp" "conftest.in"
4310    cp "conftest.in" "conftest.nl"
4311    $as_echo 'GREP' >> "conftest.nl"
4312    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4313    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4314    as_fn_arith $ac_count + 1 && ac_count=$as_val
4315    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4316      # Best one so far, save it but keep looking for a better one
4317      ac_cv_path_GREP="$ac_path_GREP"
4318      ac_path_GREP_max=$ac_count
4319    fi
4320    # 10*(2^10) chars as input seems more than enough
4321    test $ac_count -gt 10 && break
4322  done
4323  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4324esac
4325
4326      $ac_path_GREP_found && break 3
4327    done
4328  done
4329  done
4330IFS=$as_save_IFS
4331  if test -z "$ac_cv_path_GREP"; then
4332    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4333  fi
4334else
4335  ac_cv_path_GREP=$GREP
4336fi
4337
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4340$as_echo "$ac_cv_path_GREP" >&6; }
4341 GREP="$ac_cv_path_GREP"
4342
4343
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4345$as_echo_n "checking for egrep... " >&6; }
4346if ${ac_cv_path_EGREP+:} false; then :
4347  $as_echo_n "(cached) " >&6
4348else
4349  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4350   then ac_cv_path_EGREP="$GREP -E"
4351   else
4352     if test -z "$EGREP"; then
4353  ac_path_EGREP_found=false
4354  # Loop through the user's path and test for each of PROGNAME-LIST
4355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4357do
4358  IFS=$as_save_IFS
4359  test -z "$as_dir" && as_dir=.
4360    for ac_prog in egrep; do
4361    for ac_exec_ext in '' $ac_executable_extensions; do
4362      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4363      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4364# Check for GNU ac_path_EGREP and select it if it is found.
4365  # Check for GNU $ac_path_EGREP
4366case `"$ac_path_EGREP" --version 2>&1` in
4367*GNU*)
4368  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4369*)
4370  ac_count=0
4371  $as_echo_n 0123456789 >"conftest.in"
4372  while :
4373  do
4374    cat "conftest.in" "conftest.in" >"conftest.tmp"
4375    mv "conftest.tmp" "conftest.in"
4376    cp "conftest.in" "conftest.nl"
4377    $as_echo 'EGREP' >> "conftest.nl"
4378    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4379    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4380    as_fn_arith $ac_count + 1 && ac_count=$as_val
4381    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4382      # Best one so far, save it but keep looking for a better one
4383      ac_cv_path_EGREP="$ac_path_EGREP"
4384      ac_path_EGREP_max=$ac_count
4385    fi
4386    # 10*(2^10) chars as input seems more than enough
4387    test $ac_count -gt 10 && break
4388  done
4389  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4390esac
4391
4392      $ac_path_EGREP_found && break 3
4393    done
4394  done
4395  done
4396IFS=$as_save_IFS
4397  if test -z "$ac_cv_path_EGREP"; then
4398    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4399  fi
4400else
4401  ac_cv_path_EGREP=$EGREP
4402fi
4403
4404   fi
4405fi
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4407$as_echo "$ac_cv_path_EGREP" >&6; }
4408 EGREP="$ac_cv_path_EGREP"
4409
4410
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4412$as_echo_n "checking for ANSI C header files... " >&6; }
4413if ${ac_cv_header_stdc+:} false; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418#include <stdlib.h>
4419#include <stdarg.h>
4420#include <string.h>
4421#include <float.h>
4422
4423int
4424main ()
4425{
4426
4427  ;
4428  return 0;
4429}
4430_ACEOF
4431if ac_fn_c_try_compile "$LINENO"; then :
4432  ac_cv_header_stdc=yes
4433else
4434  ac_cv_header_stdc=no
4435fi
4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4437
4438if test $ac_cv_header_stdc = yes; then
4439  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441/* end confdefs.h.  */
4442#include <string.h>
4443
4444_ACEOF
4445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4446  $EGREP "memchr" >/dev/null 2>&1; then :
4447
4448else
4449  ac_cv_header_stdc=no
4450fi
4451rm -f conftest*
4452
4453fi
4454
4455if test $ac_cv_header_stdc = yes; then
4456  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458/* end confdefs.h.  */
4459#include <stdlib.h>
4460
4461_ACEOF
4462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463  $EGREP "free" >/dev/null 2>&1; then :
4464
4465else
4466  ac_cv_header_stdc=no
4467fi
4468rm -f conftest*
4469
4470fi
4471
4472if test $ac_cv_header_stdc = yes; then
4473  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4474  if test "$cross_compiling" = yes; then :
4475  :
4476else
4477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478/* end confdefs.h.  */
4479#include <ctype.h>
4480#include <stdlib.h>
4481#if ((' ' & 0x0FF) == 0x020)
4482# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4483# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4484#else
4485# define ISLOWER(c) \
4486		   (('a' <= (c) && (c) <= 'i') \
4487		     || ('j' <= (c) && (c) <= 'r') \
4488		     || ('s' <= (c) && (c) <= 'z'))
4489# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4490#endif
4491
4492#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4493int
4494main ()
4495{
4496  int i;
4497  for (i = 0; i < 256; i++)
4498    if (XOR (islower (i), ISLOWER (i))
4499	|| toupper (i) != TOUPPER (i))
4500      return 2;
4501  return 0;
4502}
4503_ACEOF
4504if ac_fn_c_try_run "$LINENO"; then :
4505
4506else
4507  ac_cv_header_stdc=no
4508fi
4509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4510  conftest.$ac_objext conftest.beam conftest.$ac_ext
4511fi
4512
4513fi
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4516$as_echo "$ac_cv_header_stdc" >&6; }
4517if test $ac_cv_header_stdc = yes; then
4518
4519$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4520
4521fi
4522
4523# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525		  inttypes.h stdint.h unistd.h
4526do :
4527  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4528ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4529"
4530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4531  cat >>confdefs.h <<_ACEOF
4532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4533_ACEOF
4534
4535fi
4536
4537done
4538
4539
4540
4541
4542
4543
4544ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4545if test "x$ac_cv_have_decl___clang__" = xyes; then :
4546  CLANGCC="yes"
4547else
4548  CLANGCC="no"
4549fi
4550
4551ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4552if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4553  INTELCC="yes"
4554else
4555  INTELCC="no"
4556fi
4557
4558ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4559if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4560  SUNCC="yes"
4561else
4562  SUNCC="no"
4563fi
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4574	if test -n "$ac_tool_prefix"; then
4575  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4576set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4578$as_echo_n "checking for $ac_word... " >&6; }
4579if ${ac_cv_path_PKG_CONFIG+:} false; then :
4580  $as_echo_n "(cached) " >&6
4581else
4582  case $PKG_CONFIG in
4583  [\\/]* | ?:[\\/]*)
4584  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4585  ;;
4586  *)
4587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588for as_dir in $PATH
4589do
4590  IFS=$as_save_IFS
4591  test -z "$as_dir" && as_dir=.
4592    for ac_exec_ext in '' $ac_executable_extensions; do
4593  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4595    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4596    break 2
4597  fi
4598done
4599  done
4600IFS=$as_save_IFS
4601
4602  ;;
4603esac
4604fi
4605PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4606if test -n "$PKG_CONFIG"; then
4607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4608$as_echo "$PKG_CONFIG" >&6; }
4609else
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611$as_echo "no" >&6; }
4612fi
4613
4614
4615fi
4616if test -z "$ac_cv_path_PKG_CONFIG"; then
4617  ac_pt_PKG_CONFIG=$PKG_CONFIG
4618  # Extract the first word of "pkg-config", so it can be a program name with args.
4619set dummy pkg-config; ac_word=$2
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621$as_echo_n "checking for $ac_word... " >&6; }
4622if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4623  $as_echo_n "(cached) " >&6
4624else
4625  case $ac_pt_PKG_CONFIG in
4626  [\\/]* | ?:[\\/]*)
4627  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4628  ;;
4629  *)
4630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633  IFS=$as_save_IFS
4634  test -z "$as_dir" && as_dir=.
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639    break 2
4640  fi
4641done
4642  done
4643IFS=$as_save_IFS
4644
4645  ;;
4646esac
4647fi
4648ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4649if test -n "$ac_pt_PKG_CONFIG"; then
4650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4651$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4652else
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654$as_echo "no" >&6; }
4655fi
4656
4657  if test "x$ac_pt_PKG_CONFIG" = x; then
4658    PKG_CONFIG=""
4659  else
4660    case $cross_compiling:$ac_tool_warned in
4661yes:)
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664ac_tool_warned=yes ;;
4665esac
4666    PKG_CONFIG=$ac_pt_PKG_CONFIG
4667  fi
4668else
4669  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4670fi
4671
4672fi
4673if test -n "$PKG_CONFIG"; then
4674	_pkg_min_version=0.9.0
4675	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4676$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4677	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4679$as_echo "yes" >&6; }
4680	else
4681		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683		PKG_CONFIG=""
4684	fi
4685fi
4686# Make sure we can run config.sub.
4687$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4688  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4691$as_echo_n "checking build system type... " >&6; }
4692if ${ac_cv_build+:} false; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  ac_build_alias=$build_alias
4696test "x$ac_build_alias" = x &&
4697  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4698test "x$ac_build_alias" = x &&
4699  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4700ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4701  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4702
4703fi
4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4705$as_echo "$ac_cv_build" >&6; }
4706case $ac_cv_build in
4707*-*-*) ;;
4708*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4709esac
4710build=$ac_cv_build
4711ac_save_IFS=$IFS; IFS='-'
4712set x $ac_cv_build
4713shift
4714build_cpu=$1
4715build_vendor=$2
4716shift; shift
4717# Remember, the first character of IFS is used to create $*,
4718# except with old shells:
4719build_os=$*
4720IFS=$ac_save_IFS
4721case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4722
4723
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4725$as_echo_n "checking host system type... " >&6; }
4726if ${ac_cv_host+:} false; then :
4727  $as_echo_n "(cached) " >&6
4728else
4729  if test "x$host_alias" = x; then
4730  ac_cv_host=$ac_cv_build
4731else
4732  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4733    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4734fi
4735
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4738$as_echo "$ac_cv_host" >&6; }
4739case $ac_cv_host in
4740*-*-*) ;;
4741*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4742esac
4743host=$ac_cv_host
4744ac_save_IFS=$IFS; IFS='-'
4745set x $ac_cv_host
4746shift
4747host_cpu=$1
4748host_vendor=$2
4749shift; shift
4750# Remember, the first character of IFS is used to create $*,
4751# except with old shells:
4752host_os=$*
4753IFS=$ac_save_IFS
4754case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4755
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4758$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4759if ${ac_cv_path_SED+:} false; then :
4760  $as_echo_n "(cached) " >&6
4761else
4762            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4763     for ac_i in 1 2 3 4 5 6 7; do
4764       ac_script="$ac_script$as_nl$ac_script"
4765     done
4766     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4767     { ac_script=; unset ac_script;}
4768     if test -z "$SED"; then
4769  ac_path_SED_found=false
4770  # Loop through the user's path and test for each of PROGNAME-LIST
4771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774  IFS=$as_save_IFS
4775  test -z "$as_dir" && as_dir=.
4776    for ac_prog in sed gsed; do
4777    for ac_exec_ext in '' $ac_executable_extensions; do
4778      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4779      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4780# Check for GNU ac_path_SED and select it if it is found.
4781  # Check for GNU $ac_path_SED
4782case `"$ac_path_SED" --version 2>&1` in
4783*GNU*)
4784  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4785*)
4786  ac_count=0
4787  $as_echo_n 0123456789 >"conftest.in"
4788  while :
4789  do
4790    cat "conftest.in" "conftest.in" >"conftest.tmp"
4791    mv "conftest.tmp" "conftest.in"
4792    cp "conftest.in" "conftest.nl"
4793    $as_echo '' >> "conftest.nl"
4794    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4795    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4796    as_fn_arith $ac_count + 1 && ac_count=$as_val
4797    if test $ac_count -gt ${ac_path_SED_max-0}; then
4798      # Best one so far, save it but keep looking for a better one
4799      ac_cv_path_SED="$ac_path_SED"
4800      ac_path_SED_max=$ac_count
4801    fi
4802    # 10*(2^10) chars as input seems more than enough
4803    test $ac_count -gt 10 && break
4804  done
4805  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806esac
4807
4808      $ac_path_SED_found && break 3
4809    done
4810  done
4811  done
4812IFS=$as_save_IFS
4813  if test -z "$ac_cv_path_SED"; then
4814    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4815  fi
4816else
4817  ac_cv_path_SED=$SED
4818fi
4819
4820fi
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4822$as_echo "$ac_cv_path_SED" >&6; }
4823 SED="$ac_cv_path_SED"
4824  rm -f conftest.sed
4825
4826
4827
4828
4829
4830
4831# Check whether --enable-selective-werror was given.
4832if test "${enable_selective_werror+set}" = set; then :
4833  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4834else
4835  SELECTIVE_WERROR=yes
4836fi
4837
4838
4839
4840
4841
4842# -v is too short to test reliably with XORG_TESTSET_CFLAG
4843if test "x$SUNCC" = "xyes"; then
4844    BASE_CFLAGS="-v"
4845else
4846    BASE_CFLAGS=""
4847fi
4848
4849# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863xorg_testset_save_CFLAGS="$CFLAGS"
4864
4865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4866	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4870  $as_echo_n "(cached) " >&6
4871else
4872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873/* end confdefs.h.  */
4874int i;
4875_ACEOF
4876if ac_fn_c_try_compile "$LINENO"; then :
4877  xorg_cv_cc_flag_unknown_warning_option=yes
4878else
4879  xorg_cv_cc_flag_unknown_warning_option=no
4880fi
4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882fi
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4885	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4886	CFLAGS="$xorg_testset_save_CFLAGS"
4887fi
4888
4889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4890	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4891		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4892	fi
4893	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4894	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h.  */
4901int i;
4902_ACEOF
4903if ac_fn_c_try_compile "$LINENO"; then :
4904  xorg_cv_cc_flag_unused_command_line_argument=yes
4905else
4906  xorg_cv_cc_flag_unused_command_line_argument=no
4907fi
4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909fi
4910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4912	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4913	CFLAGS="$xorg_testset_save_CFLAGS"
4914fi
4915
4916found="no"
4917
4918	if test $found = "no" ; then
4919		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4920			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4921		fi
4922
4923		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4924			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4925		fi
4926
4927		CFLAGS="$CFLAGS -Wall"
4928
4929		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4930$as_echo_n "checking if $CC supports-Wall... " >&6; }
4931		cacheid=xorg_cv_cc_flag__Wall
4932		if eval \${$cacheid+:} false; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936/* end confdefs.h.  */
4937int i;
4938int
4939main ()
4940{
4941
4942  ;
4943  return 0;
4944}
4945_ACEOF
4946if ac_fn_c_try_link "$LINENO"; then :
4947  eval $cacheid=yes
4948else
4949  eval $cacheid=no
4950fi
4951rm -f core conftest.err conftest.$ac_objext \
4952    conftest$ac_exeext conftest.$ac_ext
4953fi
4954
4955
4956		CFLAGS="$xorg_testset_save_CFLAGS"
4957
4958		eval supported=\$$cacheid
4959		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4960$as_echo "$supported" >&6; }
4961		if test "$supported" = "yes" ; then
4962			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4963			found="yes"
4964		fi
4965	fi
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981xorg_testset_save_CFLAGS="$CFLAGS"
4982
4983if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4984	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4986$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4987if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4988  $as_echo_n "(cached) " >&6
4989else
4990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991/* end confdefs.h.  */
4992int i;
4993_ACEOF
4994if ac_fn_c_try_compile "$LINENO"; then :
4995  xorg_cv_cc_flag_unknown_warning_option=yes
4996else
4997  xorg_cv_cc_flag_unknown_warning_option=no
4998fi
4999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5000fi
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5002$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5003	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5004	CFLAGS="$xorg_testset_save_CFLAGS"
5005fi
5006
5007if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5008	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5009		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5010	fi
5011	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5012	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5013$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5014if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018/* end confdefs.h.  */
5019int i;
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022  xorg_cv_cc_flag_unused_command_line_argument=yes
5023else
5024  xorg_cv_cc_flag_unused_command_line_argument=no
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5029$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5031	CFLAGS="$xorg_testset_save_CFLAGS"
5032fi
5033
5034found="no"
5035
5036	if test $found = "no" ; then
5037		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5039		fi
5040
5041		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043		fi
5044
5045		CFLAGS="$CFLAGS -Wpointer-arith"
5046
5047		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
5048$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
5049		cacheid=xorg_cv_cc_flag__Wpointer_arith
5050		if eval \${$cacheid+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054/* end confdefs.h.  */
5055int i;
5056int
5057main ()
5058{
5059
5060  ;
5061  return 0;
5062}
5063_ACEOF
5064if ac_fn_c_try_link "$LINENO"; then :
5065  eval $cacheid=yes
5066else
5067  eval $cacheid=no
5068fi
5069rm -f core conftest.err conftest.$ac_objext \
5070    conftest$ac_exeext conftest.$ac_ext
5071fi
5072
5073
5074		CFLAGS="$xorg_testset_save_CFLAGS"
5075
5076		eval supported=\$$cacheid
5077		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5078$as_echo "$supported" >&6; }
5079		if test "$supported" = "yes" ; then
5080			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5081			found="yes"
5082		fi
5083	fi
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099xorg_testset_save_CFLAGS="$CFLAGS"
5100
5101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5106  $as_echo_n "(cached) " >&6
5107else
5108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110int i;
5111_ACEOF
5112if ac_fn_c_try_compile "$LINENO"; then :
5113  xorg_cv_cc_flag_unknown_warning_option=yes
5114else
5115  xorg_cv_cc_flag_unknown_warning_option=no
5116fi
5117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118fi
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5121	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5122	CFLAGS="$xorg_testset_save_CFLAGS"
5123fi
5124
5125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5126	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5127		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128	fi
5129	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5130	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136/* end confdefs.h.  */
5137int i;
5138_ACEOF
5139if ac_fn_c_try_compile "$LINENO"; then :
5140  xorg_cv_cc_flag_unused_command_line_argument=yes
5141else
5142  xorg_cv_cc_flag_unused_command_line_argument=no
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5148	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5149	CFLAGS="$xorg_testset_save_CFLAGS"
5150fi
5151
5152found="no"
5153
5154	if test $found = "no" ; then
5155		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5156			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5157		fi
5158
5159		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5160			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161		fi
5162
5163		CFLAGS="$CFLAGS -Wmissing-declarations"
5164
5165		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
5166$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
5167		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5168		if eval \${$cacheid+:} false; then :
5169  $as_echo_n "(cached) " >&6
5170else
5171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h.  */
5173int i;
5174int
5175main ()
5176{
5177
5178  ;
5179  return 0;
5180}
5181_ACEOF
5182if ac_fn_c_try_link "$LINENO"; then :
5183  eval $cacheid=yes
5184else
5185  eval $cacheid=no
5186fi
5187rm -f core conftest.err conftest.$ac_objext \
5188    conftest$ac_exeext conftest.$ac_ext
5189fi
5190
5191
5192		CFLAGS="$xorg_testset_save_CFLAGS"
5193
5194		eval supported=\$$cacheid
5195		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5196$as_echo "$supported" >&6; }
5197		if test "$supported" = "yes" ; then
5198			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5199			found="yes"
5200		fi
5201	fi
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217xorg_testset_save_CFLAGS="$CFLAGS"
5218
5219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5220	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5224  $as_echo_n "(cached) " >&6
5225else
5226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5227/* end confdefs.h.  */
5228int i;
5229_ACEOF
5230if ac_fn_c_try_compile "$LINENO"; then :
5231  xorg_cv_cc_flag_unknown_warning_option=yes
5232else
5233  xorg_cv_cc_flag_unknown_warning_option=no
5234fi
5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236fi
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5240	CFLAGS="$xorg_testset_save_CFLAGS"
5241fi
5242
5243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	fi
5247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5251  $as_echo_n "(cached) " >&6
5252else
5253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255int i;
5256_ACEOF
5257if ac_fn_c_try_compile "$LINENO"; then :
5258  xorg_cv_cc_flag_unused_command_line_argument=yes
5259else
5260  xorg_cv_cc_flag_unused_command_line_argument=no
5261fi
5262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263fi
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5266	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5267	CFLAGS="$xorg_testset_save_CFLAGS"
5268fi
5269
5270found="no"
5271
5272	if test $found = "no" ; then
5273		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5274			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5275		fi
5276
5277		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5278			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279		fi
5280
5281		CFLAGS="$CFLAGS -Wformat=2"
5282
5283		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
5284$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
5285		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5286		if eval \${$cacheid+:} false; then :
5287  $as_echo_n "(cached) " >&6
5288else
5289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290/* end confdefs.h.  */
5291int i;
5292int
5293main ()
5294{
5295
5296  ;
5297  return 0;
5298}
5299_ACEOF
5300if ac_fn_c_try_link "$LINENO"; then :
5301  eval $cacheid=yes
5302else
5303  eval $cacheid=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext \
5306    conftest$ac_exeext conftest.$ac_ext
5307fi
5308
5309
5310		CFLAGS="$xorg_testset_save_CFLAGS"
5311
5312		eval supported=\$$cacheid
5313		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5314$as_echo "$supported" >&6; }
5315		if test "$supported" = "yes" ; then
5316			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5317			found="yes"
5318		fi
5319	fi
5320
5321	if test $found = "no" ; then
5322		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324		fi
5325
5326		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5328		fi
5329
5330		CFLAGS="$CFLAGS -Wformat"
5331
5332		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5333$as_echo_n "checking if $CC supports-Wformat... " >&6; }
5334		cacheid=xorg_cv_cc_flag__Wformat
5335		if eval \${$cacheid+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340int i;
5341int
5342main ()
5343{
5344
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_link "$LINENO"; then :
5350  eval $cacheid=yes
5351else
5352  eval $cacheid=no
5353fi
5354rm -f core conftest.err conftest.$ac_objext \
5355    conftest$ac_exeext conftest.$ac_ext
5356fi
5357
5358
5359		CFLAGS="$xorg_testset_save_CFLAGS"
5360
5361		eval supported=\$$cacheid
5362		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5363$as_echo "$supported" >&6; }
5364		if test "$supported" = "yes" ; then
5365			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5366			found="yes"
5367		fi
5368	fi
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386xorg_testset_save_CFLAGS="$CFLAGS"
5387
5388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5389	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h.  */
5397int i;
5398_ACEOF
5399if ac_fn_c_try_compile "$LINENO"; then :
5400  xorg_cv_cc_flag_unknown_warning_option=yes
5401else
5402  xorg_cv_cc_flag_unknown_warning_option=no
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405fi
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5408	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5409	CFLAGS="$xorg_testset_save_CFLAGS"
5410fi
5411
5412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5413	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5414		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5415	fi
5416	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5417	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h.  */
5424int i;
5425_ACEOF
5426if ac_fn_c_try_compile "$LINENO"; then :
5427  xorg_cv_cc_flag_unused_command_line_argument=yes
5428else
5429  xorg_cv_cc_flag_unused_command_line_argument=no
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5435	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5436	CFLAGS="$xorg_testset_save_CFLAGS"
5437fi
5438
5439found="no"
5440
5441	if test $found = "no" ; then
5442		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5443			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5444		fi
5445
5446		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5447			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5448		fi
5449
5450		CFLAGS="$CFLAGS -Wstrict-prototypes"
5451
5452		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5453$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5454		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5455		if eval \${$cacheid+:} false; then :
5456  $as_echo_n "(cached) " >&6
5457else
5458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459/* end confdefs.h.  */
5460int i;
5461int
5462main ()
5463{
5464
5465  ;
5466  return 0;
5467}
5468_ACEOF
5469if ac_fn_c_try_link "$LINENO"; then :
5470  eval $cacheid=yes
5471else
5472  eval $cacheid=no
5473fi
5474rm -f core conftest.err conftest.$ac_objext \
5475    conftest$ac_exeext conftest.$ac_ext
5476fi
5477
5478
5479		CFLAGS="$xorg_testset_save_CFLAGS"
5480
5481		eval supported=\$$cacheid
5482		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5483$as_echo "$supported" >&6; }
5484		if test "$supported" = "yes" ; then
5485			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5486			found="yes"
5487		fi
5488	fi
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504xorg_testset_save_CFLAGS="$CFLAGS"
5505
5506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5507	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5511  $as_echo_n "(cached) " >&6
5512else
5513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514/* end confdefs.h.  */
5515int i;
5516_ACEOF
5517if ac_fn_c_try_compile "$LINENO"; then :
5518  xorg_cv_cc_flag_unknown_warning_option=yes
5519else
5520  xorg_cv_cc_flag_unknown_warning_option=no
5521fi
5522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523fi
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5526	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5527	CFLAGS="$xorg_testset_save_CFLAGS"
5528fi
5529
5530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5531	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5532		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533	fi
5534	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5535	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542int i;
5543_ACEOF
5544if ac_fn_c_try_compile "$LINENO"; then :
5545  xorg_cv_cc_flag_unused_command_line_argument=yes
5546else
5547  xorg_cv_cc_flag_unused_command_line_argument=no
5548fi
5549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550fi
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5553	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5554	CFLAGS="$xorg_testset_save_CFLAGS"
5555fi
5556
5557found="no"
5558
5559	if test $found = "no" ; then
5560		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5561			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5562		fi
5563
5564		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5565			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5566		fi
5567
5568		CFLAGS="$CFLAGS -Wmissing-prototypes"
5569
5570		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5571$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5572		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5573		if eval \${$cacheid+:} false; then :
5574  $as_echo_n "(cached) " >&6
5575else
5576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577/* end confdefs.h.  */
5578int i;
5579int
5580main ()
5581{
5582
5583  ;
5584  return 0;
5585}
5586_ACEOF
5587if ac_fn_c_try_link "$LINENO"; then :
5588  eval $cacheid=yes
5589else
5590  eval $cacheid=no
5591fi
5592rm -f core conftest.err conftest.$ac_objext \
5593    conftest$ac_exeext conftest.$ac_ext
5594fi
5595
5596
5597		CFLAGS="$xorg_testset_save_CFLAGS"
5598
5599		eval supported=\$$cacheid
5600		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5601$as_echo "$supported" >&6; }
5602		if test "$supported" = "yes" ; then
5603			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5604			found="yes"
5605		fi
5606	fi
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622xorg_testset_save_CFLAGS="$CFLAGS"
5623
5624if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5625	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5627$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5628if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632/* end confdefs.h.  */
5633int i;
5634_ACEOF
5635if ac_fn_c_try_compile "$LINENO"; then :
5636  xorg_cv_cc_flag_unknown_warning_option=yes
5637else
5638  xorg_cv_cc_flag_unknown_warning_option=no
5639fi
5640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641fi
5642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645	CFLAGS="$xorg_testset_save_CFLAGS"
5646fi
5647
5648if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651	fi
5652	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5656  $as_echo_n "(cached) " >&6
5657else
5658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h.  */
5660int i;
5661_ACEOF
5662if ac_fn_c_try_compile "$LINENO"; then :
5663  xorg_cv_cc_flag_unused_command_line_argument=yes
5664else
5665  xorg_cv_cc_flag_unused_command_line_argument=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668fi
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5670$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5672	CFLAGS="$xorg_testset_save_CFLAGS"
5673fi
5674
5675found="no"
5676
5677	if test $found = "no" ; then
5678		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5680		fi
5681
5682		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5684		fi
5685
5686		CFLAGS="$CFLAGS -Wnested-externs"
5687
5688		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5689$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5690		cacheid=xorg_cv_cc_flag__Wnested_externs
5691		if eval \${$cacheid+:} false; then :
5692  $as_echo_n "(cached) " >&6
5693else
5694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695/* end confdefs.h.  */
5696int i;
5697int
5698main ()
5699{
5700
5701  ;
5702  return 0;
5703}
5704_ACEOF
5705if ac_fn_c_try_link "$LINENO"; then :
5706  eval $cacheid=yes
5707else
5708  eval $cacheid=no
5709fi
5710rm -f core conftest.err conftest.$ac_objext \
5711    conftest$ac_exeext conftest.$ac_ext
5712fi
5713
5714
5715		CFLAGS="$xorg_testset_save_CFLAGS"
5716
5717		eval supported=\$$cacheid
5718		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5719$as_echo "$supported" >&6; }
5720		if test "$supported" = "yes" ; then
5721			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5722			found="yes"
5723		fi
5724	fi
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740xorg_testset_save_CFLAGS="$CFLAGS"
5741
5742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5745$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5746if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5747  $as_echo_n "(cached) " >&6
5748else
5749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750/* end confdefs.h.  */
5751int i;
5752_ACEOF
5753if ac_fn_c_try_compile "$LINENO"; then :
5754  xorg_cv_cc_flag_unknown_warning_option=yes
5755else
5756  xorg_cv_cc_flag_unknown_warning_option=no
5757fi
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5761$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5763	CFLAGS="$xorg_testset_save_CFLAGS"
5764fi
5765
5766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769	fi
5770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5772$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5773if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777/* end confdefs.h.  */
5778int i;
5779_ACEOF
5780if ac_fn_c_try_compile "$LINENO"; then :
5781  xorg_cv_cc_flag_unused_command_line_argument=yes
5782else
5783  xorg_cv_cc_flag_unused_command_line_argument=no
5784fi
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786fi
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5788$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5789	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5790	CFLAGS="$xorg_testset_save_CFLAGS"
5791fi
5792
5793found="no"
5794
5795	if test $found = "no" ; then
5796		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5797			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5798		fi
5799
5800		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5801			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5802		fi
5803
5804		CFLAGS="$CFLAGS -Wbad-function-cast"
5805
5806		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5807$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5808		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5809		if eval \${$cacheid+:} false; then :
5810  $as_echo_n "(cached) " >&6
5811else
5812  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813/* end confdefs.h.  */
5814int i;
5815int
5816main ()
5817{
5818
5819  ;
5820  return 0;
5821}
5822_ACEOF
5823if ac_fn_c_try_link "$LINENO"; then :
5824  eval $cacheid=yes
5825else
5826  eval $cacheid=no
5827fi
5828rm -f core conftest.err conftest.$ac_objext \
5829    conftest$ac_exeext conftest.$ac_ext
5830fi
5831
5832
5833		CFLAGS="$xorg_testset_save_CFLAGS"
5834
5835		eval supported=\$$cacheid
5836		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5837$as_echo "$supported" >&6; }
5838		if test "$supported" = "yes" ; then
5839			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5840			found="yes"
5841		fi
5842	fi
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858xorg_testset_save_CFLAGS="$CFLAGS"
5859
5860if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5861	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5863$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5864if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h.  */
5869int i;
5870_ACEOF
5871if ac_fn_c_try_compile "$LINENO"; then :
5872  xorg_cv_cc_flag_unknown_warning_option=yes
5873else
5874  xorg_cv_cc_flag_unknown_warning_option=no
5875fi
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5879$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5880	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5881	CFLAGS="$xorg_testset_save_CFLAGS"
5882fi
5883
5884if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5885	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5886		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5887	fi
5888	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5890$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5891if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"; then :
5899  xorg_cv_cc_flag_unused_command_line_argument=yes
5900else
5901  xorg_cv_cc_flag_unused_command_line_argument=no
5902fi
5903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904fi
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5906$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5907	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5908	CFLAGS="$xorg_testset_save_CFLAGS"
5909fi
5910
5911found="no"
5912
5913	if test $found = "no" ; then
5914		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5915			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5916		fi
5917
5918		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5919			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5920		fi
5921
5922		CFLAGS="$CFLAGS -Wold-style-definition"
5923
5924		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5925$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5926		cacheid=xorg_cv_cc_flag__Wold_style_definition
5927		if eval \${$cacheid+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932int i;
5933int
5934main ()
5935{
5936
5937  ;
5938  return 0;
5939}
5940_ACEOF
5941if ac_fn_c_try_link "$LINENO"; then :
5942  eval $cacheid=yes
5943else
5944  eval $cacheid=no
5945fi
5946rm -f core conftest.err conftest.$ac_objext \
5947    conftest$ac_exeext conftest.$ac_ext
5948fi
5949
5950
5951		CFLAGS="$xorg_testset_save_CFLAGS"
5952
5953		eval supported=\$$cacheid
5954		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5955$as_echo "$supported" >&6; }
5956		if test "$supported" = "yes" ; then
5957			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5958			found="yes"
5959		fi
5960	fi
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976xorg_testset_save_CFLAGS="$CFLAGS"
5977
5978if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5979	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5980	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5981$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5982if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5983  $as_echo_n "(cached) " >&6
5984else
5985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h.  */
5987int i;
5988_ACEOF
5989if ac_fn_c_try_compile "$LINENO"; then :
5990  xorg_cv_cc_flag_unknown_warning_option=yes
5991else
5992  xorg_cv_cc_flag_unknown_warning_option=no
5993fi
5994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5997$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5999	CFLAGS="$xorg_testset_save_CFLAGS"
6000fi
6001
6002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005	fi
6006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6007	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6008$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6009if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"; then :
6017  xorg_cv_cc_flag_unused_command_line_argument=yes
6018else
6019  xorg_cv_cc_flag_unused_command_line_argument=no
6020fi
6021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022fi
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6024$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6025	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6026	CFLAGS="$xorg_testset_save_CFLAGS"
6027fi
6028
6029found="no"
6030
6031	if test $found = "no" ; then
6032		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6033			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6034		fi
6035
6036		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6037			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6038		fi
6039
6040		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6041
6042		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
6043$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
6044		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6045		if eval \${$cacheid+:} false; then :
6046  $as_echo_n "(cached) " >&6
6047else
6048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050int i;
6051int
6052main ()
6053{
6054
6055  ;
6056  return 0;
6057}
6058_ACEOF
6059if ac_fn_c_try_link "$LINENO"; then :
6060  eval $cacheid=yes
6061else
6062  eval $cacheid=no
6063fi
6064rm -f core conftest.err conftest.$ac_objext \
6065    conftest$ac_exeext conftest.$ac_ext
6066fi
6067
6068
6069		CFLAGS="$xorg_testset_save_CFLAGS"
6070
6071		eval supported=\$$cacheid
6072		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6073$as_echo "$supported" >&6; }
6074		if test "$supported" = "yes" ; then
6075			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6076			found="yes"
6077		fi
6078	fi
6079
6080
6081
6082
6083
6084# This chunk adds additional warnings that could catch undesired effects.
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098xorg_testset_save_CFLAGS="$CFLAGS"
6099
6100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"; then :
6112  xorg_cv_cc_flag_unknown_warning_option=yes
6113else
6114  xorg_cv_cc_flag_unknown_warning_option=no
6115fi
6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6121	CFLAGS="$xorg_testset_save_CFLAGS"
6122fi
6123
6124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127	fi
6128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135/* end confdefs.h.  */
6136int i;
6137_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then :
6139  xorg_cv_cc_flag_unused_command_line_argument=yes
6140else
6141  xorg_cv_cc_flag_unused_command_line_argument=no
6142fi
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144fi
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6148	CFLAGS="$xorg_testset_save_CFLAGS"
6149fi
6150
6151found="no"
6152
6153	if test $found = "no" ; then
6154		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6156		fi
6157
6158		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6160		fi
6161
6162		CFLAGS="$CFLAGS -Wunused"
6163
6164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
6165$as_echo_n "checking if $CC supports-Wunused... " >&6; }
6166		cacheid=xorg_cv_cc_flag__Wunused
6167		if eval \${$cacheid+:} false; then :
6168  $as_echo_n "(cached) " >&6
6169else
6170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171/* end confdefs.h.  */
6172int i;
6173int
6174main ()
6175{
6176
6177  ;
6178  return 0;
6179}
6180_ACEOF
6181if ac_fn_c_try_link "$LINENO"; then :
6182  eval $cacheid=yes
6183else
6184  eval $cacheid=no
6185fi
6186rm -f core conftest.err conftest.$ac_objext \
6187    conftest$ac_exeext conftest.$ac_ext
6188fi
6189
6190
6191		CFLAGS="$xorg_testset_save_CFLAGS"
6192
6193		eval supported=\$$cacheid
6194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6195$as_echo "$supported" >&6; }
6196		if test "$supported" = "yes" ; then
6197			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6198			found="yes"
6199		fi
6200	fi
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216xorg_testset_save_CFLAGS="$CFLAGS"
6217
6218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6223  $as_echo_n "(cached) " >&6
6224else
6225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226/* end confdefs.h.  */
6227int i;
6228_ACEOF
6229if ac_fn_c_try_compile "$LINENO"; then :
6230  xorg_cv_cc_flag_unknown_warning_option=yes
6231else
6232  xorg_cv_cc_flag_unknown_warning_option=no
6233fi
6234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235fi
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6239	CFLAGS="$xorg_testset_save_CFLAGS"
6240fi
6241
6242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245	fi
6246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6250  $as_echo_n "(cached) " >&6
6251else
6252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254int i;
6255_ACEOF
6256if ac_fn_c_try_compile "$LINENO"; then :
6257  xorg_cv_cc_flag_unused_command_line_argument=yes
6258else
6259  xorg_cv_cc_flag_unused_command_line_argument=no
6260fi
6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6266	CFLAGS="$xorg_testset_save_CFLAGS"
6267fi
6268
6269found="no"
6270
6271	if test $found = "no" ; then
6272		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6274		fi
6275
6276		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6278		fi
6279
6280		CFLAGS="$CFLAGS -Wuninitialized"
6281
6282		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
6283$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
6284		cacheid=xorg_cv_cc_flag__Wuninitialized
6285		if eval \${$cacheid+:} false; then :
6286  $as_echo_n "(cached) " >&6
6287else
6288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290int i;
6291int
6292main ()
6293{
6294
6295  ;
6296  return 0;
6297}
6298_ACEOF
6299if ac_fn_c_try_link "$LINENO"; then :
6300  eval $cacheid=yes
6301else
6302  eval $cacheid=no
6303fi
6304rm -f core conftest.err conftest.$ac_objext \
6305    conftest$ac_exeext conftest.$ac_ext
6306fi
6307
6308
6309		CFLAGS="$xorg_testset_save_CFLAGS"
6310
6311		eval supported=\$$cacheid
6312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6313$as_echo "$supported" >&6; }
6314		if test "$supported" = "yes" ; then
6315			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6316			found="yes"
6317		fi
6318	fi
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334xorg_testset_save_CFLAGS="$CFLAGS"
6335
6336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344/* end confdefs.h.  */
6345int i;
6346_ACEOF
6347if ac_fn_c_try_compile "$LINENO"; then :
6348  xorg_cv_cc_flag_unknown_warning_option=yes
6349else
6350  xorg_cv_cc_flag_unknown_warning_option=no
6351fi
6352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6353fi
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6357	CFLAGS="$xorg_testset_save_CFLAGS"
6358fi
6359
6360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6363	fi
6364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6368  $as_echo_n "(cached) " >&6
6369else
6370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6371/* end confdefs.h.  */
6372int i;
6373_ACEOF
6374if ac_fn_c_try_compile "$LINENO"; then :
6375  xorg_cv_cc_flag_unused_command_line_argument=yes
6376else
6377  xorg_cv_cc_flag_unused_command_line_argument=no
6378fi
6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6384	CFLAGS="$xorg_testset_save_CFLAGS"
6385fi
6386
6387found="no"
6388
6389	if test $found = "no" ; then
6390		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392		fi
6393
6394		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6396		fi
6397
6398		CFLAGS="$CFLAGS -Wshadow"
6399
6400		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6401$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6402		cacheid=xorg_cv_cc_flag__Wshadow
6403		if eval \${$cacheid+:} false; then :
6404  $as_echo_n "(cached) " >&6
6405else
6406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407/* end confdefs.h.  */
6408int i;
6409int
6410main ()
6411{
6412
6413  ;
6414  return 0;
6415}
6416_ACEOF
6417if ac_fn_c_try_link "$LINENO"; then :
6418  eval $cacheid=yes
6419else
6420  eval $cacheid=no
6421fi
6422rm -f core conftest.err conftest.$ac_objext \
6423    conftest$ac_exeext conftest.$ac_ext
6424fi
6425
6426
6427		CFLAGS="$xorg_testset_save_CFLAGS"
6428
6429		eval supported=\$$cacheid
6430		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6431$as_echo "$supported" >&6; }
6432		if test "$supported" = "yes" ; then
6433			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6434			found="yes"
6435		fi
6436	fi
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452xorg_testset_save_CFLAGS="$CFLAGS"
6453
6454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6459  $as_echo_n "(cached) " >&6
6460else
6461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h.  */
6463int i;
6464_ACEOF
6465if ac_fn_c_try_compile "$LINENO"; then :
6466  xorg_cv_cc_flag_unknown_warning_option=yes
6467else
6468  xorg_cv_cc_flag_unknown_warning_option=no
6469fi
6470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471fi
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6475	CFLAGS="$xorg_testset_save_CFLAGS"
6476fi
6477
6478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6481	fi
6482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6486  $as_echo_n "(cached) " >&6
6487else
6488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489/* end confdefs.h.  */
6490int i;
6491_ACEOF
6492if ac_fn_c_try_compile "$LINENO"; then :
6493  xorg_cv_cc_flag_unused_command_line_argument=yes
6494else
6495  xorg_cv_cc_flag_unused_command_line_argument=no
6496fi
6497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6502	CFLAGS="$xorg_testset_save_CFLAGS"
6503fi
6504
6505found="no"
6506
6507	if test $found = "no" ; then
6508		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510		fi
6511
6512		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6514		fi
6515
6516		CFLAGS="$CFLAGS -Wcast-qual"
6517
6518		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6519$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6520		cacheid=xorg_cv_cc_flag__Wcast_qual
6521		if eval \${$cacheid+:} false; then :
6522  $as_echo_n "(cached) " >&6
6523else
6524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525/* end confdefs.h.  */
6526int i;
6527int
6528main ()
6529{
6530
6531  ;
6532  return 0;
6533}
6534_ACEOF
6535if ac_fn_c_try_link "$LINENO"; then :
6536  eval $cacheid=yes
6537else
6538  eval $cacheid=no
6539fi
6540rm -f core conftest.err conftest.$ac_objext \
6541    conftest$ac_exeext conftest.$ac_ext
6542fi
6543
6544
6545		CFLAGS="$xorg_testset_save_CFLAGS"
6546
6547		eval supported=\$$cacheid
6548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6549$as_echo "$supported" >&6; }
6550		if test "$supported" = "yes" ; then
6551			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6552			found="yes"
6553		fi
6554	fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570xorg_testset_save_CFLAGS="$CFLAGS"
6571
6572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6577  $as_echo_n "(cached) " >&6
6578else
6579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h.  */
6581int i;
6582_ACEOF
6583if ac_fn_c_try_compile "$LINENO"; then :
6584  xorg_cv_cc_flag_unknown_warning_option=yes
6585else
6586  xorg_cv_cc_flag_unknown_warning_option=no
6587fi
6588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6589fi
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6593	CFLAGS="$xorg_testset_save_CFLAGS"
6594fi
6595
6596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6599	fi
6600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6604  $as_echo_n "(cached) " >&6
6605else
6606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607/* end confdefs.h.  */
6608int i;
6609_ACEOF
6610if ac_fn_c_try_compile "$LINENO"; then :
6611  xorg_cv_cc_flag_unused_command_line_argument=yes
6612else
6613  xorg_cv_cc_flag_unused_command_line_argument=no
6614fi
6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616fi
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6620	CFLAGS="$xorg_testset_save_CFLAGS"
6621fi
6622
6623found="no"
6624
6625	if test $found = "no" ; then
6626		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6628		fi
6629
6630		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6632		fi
6633
6634		CFLAGS="$CFLAGS -Wmissing-noreturn"
6635
6636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6637$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6638		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6639		if eval \${$cacheid+:} false; then :
6640  $as_echo_n "(cached) " >&6
6641else
6642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h.  */
6644int i;
6645int
6646main ()
6647{
6648
6649  ;
6650  return 0;
6651}
6652_ACEOF
6653if ac_fn_c_try_link "$LINENO"; then :
6654  eval $cacheid=yes
6655else
6656  eval $cacheid=no
6657fi
6658rm -f core conftest.err conftest.$ac_objext \
6659    conftest$ac_exeext conftest.$ac_ext
6660fi
6661
6662
6663		CFLAGS="$xorg_testset_save_CFLAGS"
6664
6665		eval supported=\$$cacheid
6666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6667$as_echo "$supported" >&6; }
6668		if test "$supported" = "yes" ; then
6669			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6670			found="yes"
6671		fi
6672	fi
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688xorg_testset_save_CFLAGS="$CFLAGS"
6689
6690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698/* end confdefs.h.  */
6699int i;
6700_ACEOF
6701if ac_fn_c_try_compile "$LINENO"; then :
6702  xorg_cv_cc_flag_unknown_warning_option=yes
6703else
6704  xorg_cv_cc_flag_unknown_warning_option=no
6705fi
6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707fi
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6711	CFLAGS="$xorg_testset_save_CFLAGS"
6712fi
6713
6714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6717	fi
6718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6722  $as_echo_n "(cached) " >&6
6723else
6724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725/* end confdefs.h.  */
6726int i;
6727_ACEOF
6728if ac_fn_c_try_compile "$LINENO"; then :
6729  xorg_cv_cc_flag_unused_command_line_argument=yes
6730else
6731  xorg_cv_cc_flag_unused_command_line_argument=no
6732fi
6733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734fi
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6738	CFLAGS="$xorg_testset_save_CFLAGS"
6739fi
6740
6741found="no"
6742
6743	if test $found = "no" ; then
6744		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746		fi
6747
6748		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750		fi
6751
6752		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6753
6754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6755$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6756		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6757		if eval \${$cacheid+:} false; then :
6758  $as_echo_n "(cached) " >&6
6759else
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762int i;
6763int
6764main ()
6765{
6766
6767  ;
6768  return 0;
6769}
6770_ACEOF
6771if ac_fn_c_try_link "$LINENO"; then :
6772  eval $cacheid=yes
6773else
6774  eval $cacheid=no
6775fi
6776rm -f core conftest.err conftest.$ac_objext \
6777    conftest$ac_exeext conftest.$ac_ext
6778fi
6779
6780
6781		CFLAGS="$xorg_testset_save_CFLAGS"
6782
6783		eval supported=\$$cacheid
6784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6785$as_echo "$supported" >&6; }
6786		if test "$supported" = "yes" ; then
6787			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6788			found="yes"
6789		fi
6790	fi
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806xorg_testset_save_CFLAGS="$CFLAGS"
6807
6808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6810	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6813  $as_echo_n "(cached) " >&6
6814else
6815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816/* end confdefs.h.  */
6817int i;
6818_ACEOF
6819if ac_fn_c_try_compile "$LINENO"; then :
6820  xorg_cv_cc_flag_unknown_warning_option=yes
6821else
6822  xorg_cv_cc_flag_unknown_warning_option=no
6823fi
6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6825fi
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6828	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6829	CFLAGS="$xorg_testset_save_CFLAGS"
6830fi
6831
6832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6833	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6834		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6835	fi
6836	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6840  $as_echo_n "(cached) " >&6
6841else
6842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843/* end confdefs.h.  */
6844int i;
6845_ACEOF
6846if ac_fn_c_try_compile "$LINENO"; then :
6847  xorg_cv_cc_flag_unused_command_line_argument=yes
6848else
6849  xorg_cv_cc_flag_unused_command_line_argument=no
6850fi
6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6855	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6856	CFLAGS="$xorg_testset_save_CFLAGS"
6857fi
6858
6859found="no"
6860
6861	if test $found = "no" ; then
6862		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6863			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864		fi
6865
6866		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6867			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868		fi
6869
6870		CFLAGS="$CFLAGS -Wredundant-decls"
6871
6872		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6873$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6874		cacheid=xorg_cv_cc_flag__Wredundant_decls
6875		if eval \${$cacheid+:} false; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879/* end confdefs.h.  */
6880int i;
6881int
6882main ()
6883{
6884
6885  ;
6886  return 0;
6887}
6888_ACEOF
6889if ac_fn_c_try_link "$LINENO"; then :
6890  eval $cacheid=yes
6891else
6892  eval $cacheid=no
6893fi
6894rm -f core conftest.err conftest.$ac_objext \
6895    conftest$ac_exeext conftest.$ac_ext
6896fi
6897
6898
6899		CFLAGS="$xorg_testset_save_CFLAGS"
6900
6901		eval supported=\$$cacheid
6902		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6903$as_echo "$supported" >&6; }
6904		if test "$supported" = "yes" ; then
6905			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6906			found="yes"
6907		fi
6908	fi
6909
6910
6911
6912# These are currently disabled because they are noisy.  They will be enabled
6913# in the future once the codebase is sufficiently modernized to silence
6914# them.  For now, I don't want them to drown out the other warnings.
6915# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6916# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6917# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6918
6919# Turn some warnings into errors, so we don't accidently get successful builds
6920# when there are problems that should be fixed.
6921
6922if test "x$SELECTIVE_WERROR" = "xyes" ; then
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936xorg_testset_save_CFLAGS="$CFLAGS"
6937
6938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6941$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6942if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6943  $as_echo_n "(cached) " >&6
6944else
6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947int i;
6948_ACEOF
6949if ac_fn_c_try_compile "$LINENO"; then :
6950  xorg_cv_cc_flag_unknown_warning_option=yes
6951else
6952  xorg_cv_cc_flag_unknown_warning_option=no
6953fi
6954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955fi
6956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6957$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6958	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6959	CFLAGS="$xorg_testset_save_CFLAGS"
6960fi
6961
6962if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6963	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6964		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6965	fi
6966	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6968$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6969if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6970  $as_echo_n "(cached) " >&6
6971else
6972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h.  */
6974int i;
6975_ACEOF
6976if ac_fn_c_try_compile "$LINENO"; then :
6977  xorg_cv_cc_flag_unused_command_line_argument=yes
6978else
6979  xorg_cv_cc_flag_unused_command_line_argument=no
6980fi
6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982fi
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6984$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6985	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6986	CFLAGS="$xorg_testset_save_CFLAGS"
6987fi
6988
6989found="no"
6990
6991	if test $found = "no" ; then
6992		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6993			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994		fi
6995
6996		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6997			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998		fi
6999
7000		CFLAGS="$CFLAGS -Werror=implicit"
7001
7002		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
7003$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
7004		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
7005		if eval \${$cacheid+:} false; then :
7006  $as_echo_n "(cached) " >&6
7007else
7008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h.  */
7010int i;
7011int
7012main ()
7013{
7014
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019if ac_fn_c_try_link "$LINENO"; then :
7020  eval $cacheid=yes
7021else
7022  eval $cacheid=no
7023fi
7024rm -f core conftest.err conftest.$ac_objext \
7025    conftest$ac_exeext conftest.$ac_ext
7026fi
7027
7028
7029		CFLAGS="$xorg_testset_save_CFLAGS"
7030
7031		eval supported=\$$cacheid
7032		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7033$as_echo "$supported" >&6; }
7034		if test "$supported" = "yes" ; then
7035			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7036			found="yes"
7037		fi
7038	fi
7039
7040	if test $found = "no" ; then
7041		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7043		fi
7044
7045		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7047		fi
7048
7049		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7050
7051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7052$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7053		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
7054		if eval \${$cacheid+:} false; then :
7055  $as_echo_n "(cached) " >&6
7056else
7057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058/* end confdefs.h.  */
7059int i;
7060int
7061main ()
7062{
7063
7064  ;
7065  return 0;
7066}
7067_ACEOF
7068if ac_fn_c_try_link "$LINENO"; then :
7069  eval $cacheid=yes
7070else
7071  eval $cacheid=no
7072fi
7073rm -f core conftest.err conftest.$ac_objext \
7074    conftest$ac_exeext conftest.$ac_ext
7075fi
7076
7077
7078		CFLAGS="$xorg_testset_save_CFLAGS"
7079
7080		eval supported=\$$cacheid
7081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7082$as_echo "$supported" >&6; }
7083		if test "$supported" = "yes" ; then
7084			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7085			found="yes"
7086		fi
7087	fi
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103xorg_testset_save_CFLAGS="$CFLAGS"
7104
7105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7108$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7109if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7110  $as_echo_n "(cached) " >&6
7111else
7112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h.  */
7114int i;
7115_ACEOF
7116if ac_fn_c_try_compile "$LINENO"; then :
7117  xorg_cv_cc_flag_unknown_warning_option=yes
7118else
7119  xorg_cv_cc_flag_unknown_warning_option=no
7120fi
7121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122fi
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7124$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7126	CFLAGS="$xorg_testset_save_CFLAGS"
7127fi
7128
7129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132	fi
7133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7134	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7135$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7136if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140/* end confdefs.h.  */
7141int i;
7142_ACEOF
7143if ac_fn_c_try_compile "$LINENO"; then :
7144  xorg_cv_cc_flag_unused_command_line_argument=yes
7145else
7146  xorg_cv_cc_flag_unused_command_line_argument=no
7147fi
7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149fi
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7151$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7152	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7153	CFLAGS="$xorg_testset_save_CFLAGS"
7154fi
7155
7156found="no"
7157
7158	if test $found = "no" ; then
7159		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7160			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7161		fi
7162
7163		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7164			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7165		fi
7166
7167		CFLAGS="$CFLAGS -Werror=nonnull"
7168
7169		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
7170$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
7171		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7172		if eval \${$cacheid+:} false; then :
7173  $as_echo_n "(cached) " >&6
7174else
7175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176/* end confdefs.h.  */
7177int i;
7178int
7179main ()
7180{
7181
7182  ;
7183  return 0;
7184}
7185_ACEOF
7186if ac_fn_c_try_link "$LINENO"; then :
7187  eval $cacheid=yes
7188else
7189  eval $cacheid=no
7190fi
7191rm -f core conftest.err conftest.$ac_objext \
7192    conftest$ac_exeext conftest.$ac_ext
7193fi
7194
7195
7196		CFLAGS="$xorg_testset_save_CFLAGS"
7197
7198		eval supported=\$$cacheid
7199		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7200$as_echo "$supported" >&6; }
7201		if test "$supported" = "yes" ; then
7202			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7203			found="yes"
7204		fi
7205	fi
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221xorg_testset_save_CFLAGS="$CFLAGS"
7222
7223if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7224	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7226$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7227if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h.  */
7232int i;
7233_ACEOF
7234if ac_fn_c_try_compile "$LINENO"; then :
7235  xorg_cv_cc_flag_unknown_warning_option=yes
7236else
7237  xorg_cv_cc_flag_unknown_warning_option=no
7238fi
7239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7242$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7243	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7244	CFLAGS="$xorg_testset_save_CFLAGS"
7245fi
7246
7247if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7248	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7249		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7250	fi
7251	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7252	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7253$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7254if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7255  $as_echo_n "(cached) " >&6
7256else
7257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h.  */
7259int i;
7260_ACEOF
7261if ac_fn_c_try_compile "$LINENO"; then :
7262  xorg_cv_cc_flag_unused_command_line_argument=yes
7263else
7264  xorg_cv_cc_flag_unused_command_line_argument=no
7265fi
7266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267fi
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7269$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7270	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7271	CFLAGS="$xorg_testset_save_CFLAGS"
7272fi
7273
7274found="no"
7275
7276	if test $found = "no" ; then
7277		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7278			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279		fi
7280
7281		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7282			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7283		fi
7284
7285		CFLAGS="$CFLAGS -Werror=init-self"
7286
7287		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
7288$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
7289		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7290		if eval \${$cacheid+:} false; then :
7291  $as_echo_n "(cached) " >&6
7292else
7293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294/* end confdefs.h.  */
7295int i;
7296int
7297main ()
7298{
7299
7300  ;
7301  return 0;
7302}
7303_ACEOF
7304if ac_fn_c_try_link "$LINENO"; then :
7305  eval $cacheid=yes
7306else
7307  eval $cacheid=no
7308fi
7309rm -f core conftest.err conftest.$ac_objext \
7310    conftest$ac_exeext conftest.$ac_ext
7311fi
7312
7313
7314		CFLAGS="$xorg_testset_save_CFLAGS"
7315
7316		eval supported=\$$cacheid
7317		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7318$as_echo "$supported" >&6; }
7319		if test "$supported" = "yes" ; then
7320			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7321			found="yes"
7322		fi
7323	fi
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339xorg_testset_save_CFLAGS="$CFLAGS"
7340
7341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7346  $as_echo_n "(cached) " >&6
7347else
7348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349/* end confdefs.h.  */
7350int i;
7351_ACEOF
7352if ac_fn_c_try_compile "$LINENO"; then :
7353  xorg_cv_cc_flag_unknown_warning_option=yes
7354else
7355  xorg_cv_cc_flag_unknown_warning_option=no
7356fi
7357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7358fi
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7362	CFLAGS="$xorg_testset_save_CFLAGS"
7363fi
7364
7365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368	fi
7369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376/* end confdefs.h.  */
7377int i;
7378_ACEOF
7379if ac_fn_c_try_compile "$LINENO"; then :
7380  xorg_cv_cc_flag_unused_command_line_argument=yes
7381else
7382  xorg_cv_cc_flag_unused_command_line_argument=no
7383fi
7384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385fi
7386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7389	CFLAGS="$xorg_testset_save_CFLAGS"
7390fi
7391
7392found="no"
7393
7394	if test $found = "no" ; then
7395		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397		fi
7398
7399		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7401		fi
7402
7403		CFLAGS="$CFLAGS -Werror=main"
7404
7405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7406$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7407		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7408		if eval \${$cacheid+:} false; then :
7409  $as_echo_n "(cached) " >&6
7410else
7411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412/* end confdefs.h.  */
7413int i;
7414int
7415main ()
7416{
7417
7418  ;
7419  return 0;
7420}
7421_ACEOF
7422if ac_fn_c_try_link "$LINENO"; then :
7423  eval $cacheid=yes
7424else
7425  eval $cacheid=no
7426fi
7427rm -f core conftest.err conftest.$ac_objext \
7428    conftest$ac_exeext conftest.$ac_ext
7429fi
7430
7431
7432		CFLAGS="$xorg_testset_save_CFLAGS"
7433
7434		eval supported=\$$cacheid
7435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7436$as_echo "$supported" >&6; }
7437		if test "$supported" = "yes" ; then
7438			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7439			found="yes"
7440		fi
7441	fi
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457xorg_testset_save_CFLAGS="$CFLAGS"
7458
7459if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7460	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7462$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7463if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7464  $as_echo_n "(cached) " >&6
7465else
7466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467/* end confdefs.h.  */
7468int i;
7469_ACEOF
7470if ac_fn_c_try_compile "$LINENO"; then :
7471  xorg_cv_cc_flag_unknown_warning_option=yes
7472else
7473  xorg_cv_cc_flag_unknown_warning_option=no
7474fi
7475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476fi
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7478$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7480	CFLAGS="$xorg_testset_save_CFLAGS"
7481fi
7482
7483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7486	fi
7487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7489$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7490if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7491  $as_echo_n "(cached) " >&6
7492else
7493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494/* end confdefs.h.  */
7495int i;
7496_ACEOF
7497if ac_fn_c_try_compile "$LINENO"; then :
7498  xorg_cv_cc_flag_unused_command_line_argument=yes
7499else
7500  xorg_cv_cc_flag_unused_command_line_argument=no
7501fi
7502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503fi
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7505$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7507	CFLAGS="$xorg_testset_save_CFLAGS"
7508fi
7509
7510found="no"
7511
7512	if test $found = "no" ; then
7513		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515		fi
7516
7517		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7519		fi
7520
7521		CFLAGS="$CFLAGS -Werror=missing-braces"
7522
7523		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7524$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7525		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7526		if eval \${$cacheid+:} false; then :
7527  $as_echo_n "(cached) " >&6
7528else
7529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531int i;
7532int
7533main ()
7534{
7535
7536  ;
7537  return 0;
7538}
7539_ACEOF
7540if ac_fn_c_try_link "$LINENO"; then :
7541  eval $cacheid=yes
7542else
7543  eval $cacheid=no
7544fi
7545rm -f core conftest.err conftest.$ac_objext \
7546    conftest$ac_exeext conftest.$ac_ext
7547fi
7548
7549
7550		CFLAGS="$xorg_testset_save_CFLAGS"
7551
7552		eval supported=\$$cacheid
7553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7554$as_echo "$supported" >&6; }
7555		if test "$supported" = "yes" ; then
7556			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7557			found="yes"
7558		fi
7559	fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575xorg_testset_save_CFLAGS="$CFLAGS"
7576
7577if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7578	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7580$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7581if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7582  $as_echo_n "(cached) " >&6
7583else
7584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585/* end confdefs.h.  */
7586int i;
7587_ACEOF
7588if ac_fn_c_try_compile "$LINENO"; then :
7589  xorg_cv_cc_flag_unknown_warning_option=yes
7590else
7591  xorg_cv_cc_flag_unknown_warning_option=no
7592fi
7593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594fi
7595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7596$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7597	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7598	CFLAGS="$xorg_testset_save_CFLAGS"
7599fi
7600
7601if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7602	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7603		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7604	fi
7605	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7607$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7608if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612/* end confdefs.h.  */
7613int i;
7614_ACEOF
7615if ac_fn_c_try_compile "$LINENO"; then :
7616  xorg_cv_cc_flag_unused_command_line_argument=yes
7617else
7618  xorg_cv_cc_flag_unused_command_line_argument=no
7619fi
7620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621fi
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7623$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7624	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7625	CFLAGS="$xorg_testset_save_CFLAGS"
7626fi
7627
7628found="no"
7629
7630	if test $found = "no" ; then
7631		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7632			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7633		fi
7634
7635		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7636			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7637		fi
7638
7639		CFLAGS="$CFLAGS -Werror=sequence-point"
7640
7641		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7642$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7643		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7644		if eval \${$cacheid+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648/* end confdefs.h.  */
7649int i;
7650int
7651main ()
7652{
7653
7654  ;
7655  return 0;
7656}
7657_ACEOF
7658if ac_fn_c_try_link "$LINENO"; then :
7659  eval $cacheid=yes
7660else
7661  eval $cacheid=no
7662fi
7663rm -f core conftest.err conftest.$ac_objext \
7664    conftest$ac_exeext conftest.$ac_ext
7665fi
7666
7667
7668		CFLAGS="$xorg_testset_save_CFLAGS"
7669
7670		eval supported=\$$cacheid
7671		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7672$as_echo "$supported" >&6; }
7673		if test "$supported" = "yes" ; then
7674			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7675			found="yes"
7676		fi
7677	fi
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693xorg_testset_save_CFLAGS="$CFLAGS"
7694
7695if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7696	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7698$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7699if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703/* end confdefs.h.  */
7704int i;
7705_ACEOF
7706if ac_fn_c_try_compile "$LINENO"; then :
7707  xorg_cv_cc_flag_unknown_warning_option=yes
7708else
7709  xorg_cv_cc_flag_unknown_warning_option=no
7710fi
7711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7712fi
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7714$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7715	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7716	CFLAGS="$xorg_testset_save_CFLAGS"
7717fi
7718
7719if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7720	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7721		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722	fi
7723	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7725$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7726if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h.  */
7731int i;
7732_ACEOF
7733if ac_fn_c_try_compile "$LINENO"; then :
7734  xorg_cv_cc_flag_unused_command_line_argument=yes
7735else
7736  xorg_cv_cc_flag_unused_command_line_argument=no
7737fi
7738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739fi
7740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7741$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7742	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7743	CFLAGS="$xorg_testset_save_CFLAGS"
7744fi
7745
7746found="no"
7747
7748	if test $found = "no" ; then
7749		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7750			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751		fi
7752
7753		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7754			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755		fi
7756
7757		CFLAGS="$CFLAGS -Werror=return-type"
7758
7759		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7760$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7761		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7762		if eval \${$cacheid+:} false; then :
7763  $as_echo_n "(cached) " >&6
7764else
7765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767int i;
7768int
7769main ()
7770{
7771
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_link "$LINENO"; then :
7777  eval $cacheid=yes
7778else
7779  eval $cacheid=no
7780fi
7781rm -f core conftest.err conftest.$ac_objext \
7782    conftest$ac_exeext conftest.$ac_ext
7783fi
7784
7785
7786		CFLAGS="$xorg_testset_save_CFLAGS"
7787
7788		eval supported=\$$cacheid
7789		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7790$as_echo "$supported" >&6; }
7791		if test "$supported" = "yes" ; then
7792			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7793			found="yes"
7794		fi
7795	fi
7796
7797	if test $found = "no" ; then
7798		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800		fi
7801
7802		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7804		fi
7805
7806		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7807
7808		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7809$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7810		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7811		if eval \${$cacheid+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813else
7814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815/* end confdefs.h.  */
7816int i;
7817int
7818main ()
7819{
7820
7821  ;
7822  return 0;
7823}
7824_ACEOF
7825if ac_fn_c_try_link "$LINENO"; then :
7826  eval $cacheid=yes
7827else
7828  eval $cacheid=no
7829fi
7830rm -f core conftest.err conftest.$ac_objext \
7831    conftest$ac_exeext conftest.$ac_ext
7832fi
7833
7834
7835		CFLAGS="$xorg_testset_save_CFLAGS"
7836
7837		eval supported=\$$cacheid
7838		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7839$as_echo "$supported" >&6; }
7840		if test "$supported" = "yes" ; then
7841			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7842			found="yes"
7843		fi
7844	fi
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860xorg_testset_save_CFLAGS="$CFLAGS"
7861
7862if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7863	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7865$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7866if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7867  $as_echo_n "(cached) " >&6
7868else
7869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870/* end confdefs.h.  */
7871int i;
7872_ACEOF
7873if ac_fn_c_try_compile "$LINENO"; then :
7874  xorg_cv_cc_flag_unknown_warning_option=yes
7875else
7876  xorg_cv_cc_flag_unknown_warning_option=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879fi
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7881$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7882	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7883	CFLAGS="$xorg_testset_save_CFLAGS"
7884fi
7885
7886if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7887	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889	fi
7890	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7891	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7892$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7893if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h.  */
7898int i;
7899_ACEOF
7900if ac_fn_c_try_compile "$LINENO"; then :
7901  xorg_cv_cc_flag_unused_command_line_argument=yes
7902else
7903  xorg_cv_cc_flag_unused_command_line_argument=no
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7908$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7909	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7910	CFLAGS="$xorg_testset_save_CFLAGS"
7911fi
7912
7913found="no"
7914
7915	if test $found = "no" ; then
7916		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7918		fi
7919
7920		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7922		fi
7923
7924		CFLAGS="$CFLAGS -Werror=trigraphs"
7925
7926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7927$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7928		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7929		if eval \${$cacheid+:} false; then :
7930  $as_echo_n "(cached) " >&6
7931else
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934int i;
7935int
7936main ()
7937{
7938
7939  ;
7940  return 0;
7941}
7942_ACEOF
7943if ac_fn_c_try_link "$LINENO"; then :
7944  eval $cacheid=yes
7945else
7946  eval $cacheid=no
7947fi
7948rm -f core conftest.err conftest.$ac_objext \
7949    conftest$ac_exeext conftest.$ac_ext
7950fi
7951
7952
7953		CFLAGS="$xorg_testset_save_CFLAGS"
7954
7955		eval supported=\$$cacheid
7956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7957$as_echo "$supported" >&6; }
7958		if test "$supported" = "yes" ; then
7959			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7960			found="yes"
7961		fi
7962	fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978xorg_testset_save_CFLAGS="$CFLAGS"
7979
7980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7985  $as_echo_n "(cached) " >&6
7986else
7987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988/* end confdefs.h.  */
7989int i;
7990_ACEOF
7991if ac_fn_c_try_compile "$LINENO"; then :
7992  xorg_cv_cc_flag_unknown_warning_option=yes
7993else
7994  xorg_cv_cc_flag_unknown_warning_option=no
7995fi
7996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8001	CFLAGS="$xorg_testset_save_CFLAGS"
8002fi
8003
8004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007	fi
8008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8012  $as_echo_n "(cached) " >&6
8013else
8014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015/* end confdefs.h.  */
8016int i;
8017_ACEOF
8018if ac_fn_c_try_compile "$LINENO"; then :
8019  xorg_cv_cc_flag_unused_command_line_argument=yes
8020else
8021  xorg_cv_cc_flag_unused_command_line_argument=no
8022fi
8023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8028	CFLAGS="$xorg_testset_save_CFLAGS"
8029fi
8030
8031found="no"
8032
8033	if test $found = "no" ; then
8034		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8036		fi
8037
8038		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8040		fi
8041
8042		CFLAGS="$CFLAGS -Werror=array-bounds"
8043
8044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
8045$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
8046		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
8047		if eval \${$cacheid+:} false; then :
8048  $as_echo_n "(cached) " >&6
8049else
8050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051/* end confdefs.h.  */
8052int i;
8053int
8054main ()
8055{
8056
8057  ;
8058  return 0;
8059}
8060_ACEOF
8061if ac_fn_c_try_link "$LINENO"; then :
8062  eval $cacheid=yes
8063else
8064  eval $cacheid=no
8065fi
8066rm -f core conftest.err conftest.$ac_objext \
8067    conftest$ac_exeext conftest.$ac_ext
8068fi
8069
8070
8071		CFLAGS="$xorg_testset_save_CFLAGS"
8072
8073		eval supported=\$$cacheid
8074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8075$as_echo "$supported" >&6; }
8076		if test "$supported" = "yes" ; then
8077			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8078			found="yes"
8079		fi
8080	fi
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096xorg_testset_save_CFLAGS="$CFLAGS"
8097
8098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8103  $as_echo_n "(cached) " >&6
8104else
8105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106/* end confdefs.h.  */
8107int i;
8108_ACEOF
8109if ac_fn_c_try_compile "$LINENO"; then :
8110  xorg_cv_cc_flag_unknown_warning_option=yes
8111else
8112  xorg_cv_cc_flag_unknown_warning_option=no
8113fi
8114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8119	CFLAGS="$xorg_testset_save_CFLAGS"
8120fi
8121
8122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8125	fi
8126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8130  $as_echo_n "(cached) " >&6
8131else
8132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133/* end confdefs.h.  */
8134int i;
8135_ACEOF
8136if ac_fn_c_try_compile "$LINENO"; then :
8137  xorg_cv_cc_flag_unused_command_line_argument=yes
8138else
8139  xorg_cv_cc_flag_unused_command_line_argument=no
8140fi
8141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142fi
8143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8146	CFLAGS="$xorg_testset_save_CFLAGS"
8147fi
8148
8149found="no"
8150
8151	if test $found = "no" ; then
8152		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8154		fi
8155
8156		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8158		fi
8159
8160		CFLAGS="$CFLAGS -Werror=write-strings"
8161
8162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
8163$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
8164		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8165		if eval \${$cacheid+:} false; then :
8166  $as_echo_n "(cached) " >&6
8167else
8168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169/* end confdefs.h.  */
8170int i;
8171int
8172main ()
8173{
8174
8175  ;
8176  return 0;
8177}
8178_ACEOF
8179if ac_fn_c_try_link "$LINENO"; then :
8180  eval $cacheid=yes
8181else
8182  eval $cacheid=no
8183fi
8184rm -f core conftest.err conftest.$ac_objext \
8185    conftest$ac_exeext conftest.$ac_ext
8186fi
8187
8188
8189		CFLAGS="$xorg_testset_save_CFLAGS"
8190
8191		eval supported=\$$cacheid
8192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8193$as_echo "$supported" >&6; }
8194		if test "$supported" = "yes" ; then
8195			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8196			found="yes"
8197		fi
8198	fi
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214xorg_testset_save_CFLAGS="$CFLAGS"
8215
8216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8221  $as_echo_n "(cached) " >&6
8222else
8223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224/* end confdefs.h.  */
8225int i;
8226_ACEOF
8227if ac_fn_c_try_compile "$LINENO"; then :
8228  xorg_cv_cc_flag_unknown_warning_option=yes
8229else
8230  xorg_cv_cc_flag_unknown_warning_option=no
8231fi
8232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233fi
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8237	CFLAGS="$xorg_testset_save_CFLAGS"
8238fi
8239
8240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8243	fi
8244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8248  $as_echo_n "(cached) " >&6
8249else
8250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251/* end confdefs.h.  */
8252int i;
8253_ACEOF
8254if ac_fn_c_try_compile "$LINENO"; then :
8255  xorg_cv_cc_flag_unused_command_line_argument=yes
8256else
8257  xorg_cv_cc_flag_unused_command_line_argument=no
8258fi
8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8260fi
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8264	CFLAGS="$xorg_testset_save_CFLAGS"
8265fi
8266
8267found="no"
8268
8269	if test $found = "no" ; then
8270		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8272		fi
8273
8274		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8276		fi
8277
8278		CFLAGS="$CFLAGS -Werror=address"
8279
8280		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
8281$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
8282		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8283		if eval \${$cacheid+:} false; then :
8284  $as_echo_n "(cached) " >&6
8285else
8286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8287/* end confdefs.h.  */
8288int i;
8289int
8290main ()
8291{
8292
8293  ;
8294  return 0;
8295}
8296_ACEOF
8297if ac_fn_c_try_link "$LINENO"; then :
8298  eval $cacheid=yes
8299else
8300  eval $cacheid=no
8301fi
8302rm -f core conftest.err conftest.$ac_objext \
8303    conftest$ac_exeext conftest.$ac_ext
8304fi
8305
8306
8307		CFLAGS="$xorg_testset_save_CFLAGS"
8308
8309		eval supported=\$$cacheid
8310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8311$as_echo "$supported" >&6; }
8312		if test "$supported" = "yes" ; then
8313			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8314			found="yes"
8315		fi
8316	fi
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332xorg_testset_save_CFLAGS="$CFLAGS"
8333
8334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8339  $as_echo_n "(cached) " >&6
8340else
8341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342/* end confdefs.h.  */
8343int i;
8344_ACEOF
8345if ac_fn_c_try_compile "$LINENO"; then :
8346  xorg_cv_cc_flag_unknown_warning_option=yes
8347else
8348  xorg_cv_cc_flag_unknown_warning_option=no
8349fi
8350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351fi
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8355	CFLAGS="$xorg_testset_save_CFLAGS"
8356fi
8357
8358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8361	fi
8362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8366  $as_echo_n "(cached) " >&6
8367else
8368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369/* end confdefs.h.  */
8370int i;
8371_ACEOF
8372if ac_fn_c_try_compile "$LINENO"; then :
8373  xorg_cv_cc_flag_unused_command_line_argument=yes
8374else
8375  xorg_cv_cc_flag_unused_command_line_argument=no
8376fi
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8382	CFLAGS="$xorg_testset_save_CFLAGS"
8383fi
8384
8385found="no"
8386
8387	if test $found = "no" ; then
8388		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8390		fi
8391
8392		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394		fi
8395
8396		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8397
8398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8399$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8400		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8401		if eval \${$cacheid+:} false; then :
8402  $as_echo_n "(cached) " >&6
8403else
8404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405/* end confdefs.h.  */
8406int i;
8407int
8408main ()
8409{
8410
8411  ;
8412  return 0;
8413}
8414_ACEOF
8415if ac_fn_c_try_link "$LINENO"; then :
8416  eval $cacheid=yes
8417else
8418  eval $cacheid=no
8419fi
8420rm -f core conftest.err conftest.$ac_objext \
8421    conftest$ac_exeext conftest.$ac_ext
8422fi
8423
8424
8425		CFLAGS="$xorg_testset_save_CFLAGS"
8426
8427		eval supported=\$$cacheid
8428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8429$as_echo "$supported" >&6; }
8430		if test "$supported" = "yes" ; then
8431			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8432			found="yes"
8433		fi
8434	fi
8435
8436	if test $found = "no" ; then
8437		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8439		fi
8440
8441		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8443		fi
8444
8445		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8446
8447		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8448$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8449		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8450		if eval \${$cacheid+:} false; then :
8451  $as_echo_n "(cached) " >&6
8452else
8453  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455int i;
8456int
8457main ()
8458{
8459
8460  ;
8461  return 0;
8462}
8463_ACEOF
8464if ac_fn_c_try_link "$LINENO"; then :
8465  eval $cacheid=yes
8466else
8467  eval $cacheid=no
8468fi
8469rm -f core conftest.err conftest.$ac_objext \
8470    conftest$ac_exeext conftest.$ac_ext
8471fi
8472
8473
8474		CFLAGS="$xorg_testset_save_CFLAGS"
8475
8476		eval supported=\$$cacheid
8477		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8478$as_echo "$supported" >&6; }
8479		if test "$supported" = "yes" ; then
8480			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8481			found="yes"
8482		fi
8483	fi
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499xorg_testset_save_CFLAGS="$CFLAGS"
8500
8501if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8502	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8503	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8504$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8505if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8506  $as_echo_n "(cached) " >&6
8507else
8508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h.  */
8510int i;
8511_ACEOF
8512if ac_fn_c_try_compile "$LINENO"; then :
8513  xorg_cv_cc_flag_unknown_warning_option=yes
8514else
8515  xorg_cv_cc_flag_unknown_warning_option=no
8516fi
8517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518fi
8519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8520$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8521	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8522	CFLAGS="$xorg_testset_save_CFLAGS"
8523fi
8524
8525if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8526	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8527		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8528	fi
8529	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8530	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8531$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8532if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8533  $as_echo_n "(cached) " >&6
8534else
8535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8536/* end confdefs.h.  */
8537int i;
8538_ACEOF
8539if ac_fn_c_try_compile "$LINENO"; then :
8540  xorg_cv_cc_flag_unused_command_line_argument=yes
8541else
8542  xorg_cv_cc_flag_unused_command_line_argument=no
8543fi
8544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545fi
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8547$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8548	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8549	CFLAGS="$xorg_testset_save_CFLAGS"
8550fi
8551
8552found="no"
8553
8554	if test $found = "no" ; then
8555		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8556			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557		fi
8558
8559		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8560			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8561		fi
8562
8563		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8564
8565		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8566$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8567		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8568		if eval \${$cacheid+:} false; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573int i;
8574int
8575main ()
8576{
8577
8578  ;
8579  return 0;
8580}
8581_ACEOF
8582if ac_fn_c_try_link "$LINENO"; then :
8583  eval $cacheid=yes
8584else
8585  eval $cacheid=no
8586fi
8587rm -f core conftest.err conftest.$ac_objext \
8588    conftest$ac_exeext conftest.$ac_ext
8589fi
8590
8591
8592		CFLAGS="$xorg_testset_save_CFLAGS"
8593
8594		eval supported=\$$cacheid
8595		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8596$as_echo "$supported" >&6; }
8597		if test "$supported" = "yes" ; then
8598			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8599			found="yes"
8600		fi
8601	fi
8602
8603 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8604else
8605{ $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
8606$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;}
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620xorg_testset_save_CFLAGS="$CFLAGS"
8621
8622if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8623	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8625$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8626if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8627  $as_echo_n "(cached) " >&6
8628else
8629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630/* end confdefs.h.  */
8631int i;
8632_ACEOF
8633if ac_fn_c_try_compile "$LINENO"; then :
8634  xorg_cv_cc_flag_unknown_warning_option=yes
8635else
8636  xorg_cv_cc_flag_unknown_warning_option=no
8637fi
8638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639fi
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8641$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8643	CFLAGS="$xorg_testset_save_CFLAGS"
8644fi
8645
8646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649	fi
8650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8652$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8653if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8654  $as_echo_n "(cached) " >&6
8655else
8656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657/* end confdefs.h.  */
8658int i;
8659_ACEOF
8660if ac_fn_c_try_compile "$LINENO"; then :
8661  xorg_cv_cc_flag_unused_command_line_argument=yes
8662else
8663  xorg_cv_cc_flag_unused_command_line_argument=no
8664fi
8665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8668$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8670	CFLAGS="$xorg_testset_save_CFLAGS"
8671fi
8672
8673found="no"
8674
8675	if test $found = "no" ; then
8676		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8678		fi
8679
8680		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682		fi
8683
8684		CFLAGS="$CFLAGS -Wimplicit"
8685
8686		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8687$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8688		cacheid=xorg_cv_cc_flag__Wimplicit
8689		if eval \${$cacheid+:} false; then :
8690  $as_echo_n "(cached) " >&6
8691else
8692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693/* end confdefs.h.  */
8694int i;
8695int
8696main ()
8697{
8698
8699  ;
8700  return 0;
8701}
8702_ACEOF
8703if ac_fn_c_try_link "$LINENO"; then :
8704  eval $cacheid=yes
8705else
8706  eval $cacheid=no
8707fi
8708rm -f core conftest.err conftest.$ac_objext \
8709    conftest$ac_exeext conftest.$ac_ext
8710fi
8711
8712
8713		CFLAGS="$xorg_testset_save_CFLAGS"
8714
8715		eval supported=\$$cacheid
8716		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8717$as_echo "$supported" >&6; }
8718		if test "$supported" = "yes" ; then
8719			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8720			found="yes"
8721		fi
8722	fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738xorg_testset_save_CFLAGS="$CFLAGS"
8739
8740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8745  $as_echo_n "(cached) " >&6
8746else
8747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748/* end confdefs.h.  */
8749int i;
8750_ACEOF
8751if ac_fn_c_try_compile "$LINENO"; then :
8752  xorg_cv_cc_flag_unknown_warning_option=yes
8753else
8754  xorg_cv_cc_flag_unknown_warning_option=no
8755fi
8756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757fi
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8761	CFLAGS="$xorg_testset_save_CFLAGS"
8762fi
8763
8764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8767	fi
8768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8772  $as_echo_n "(cached) " >&6
8773else
8774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775/* end confdefs.h.  */
8776int i;
8777_ACEOF
8778if ac_fn_c_try_compile "$LINENO"; then :
8779  xorg_cv_cc_flag_unused_command_line_argument=yes
8780else
8781  xorg_cv_cc_flag_unused_command_line_argument=no
8782fi
8783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784fi
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8788	CFLAGS="$xorg_testset_save_CFLAGS"
8789fi
8790
8791found="no"
8792
8793	if test $found = "no" ; then
8794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8796		fi
8797
8798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8800		fi
8801
8802		CFLAGS="$CFLAGS -Wnonnull"
8803
8804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8805$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8806		cacheid=xorg_cv_cc_flag__Wnonnull
8807		if eval \${$cacheid+:} false; then :
8808  $as_echo_n "(cached) " >&6
8809else
8810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811/* end confdefs.h.  */
8812int i;
8813int
8814main ()
8815{
8816
8817  ;
8818  return 0;
8819}
8820_ACEOF
8821if ac_fn_c_try_link "$LINENO"; then :
8822  eval $cacheid=yes
8823else
8824  eval $cacheid=no
8825fi
8826rm -f core conftest.err conftest.$ac_objext \
8827    conftest$ac_exeext conftest.$ac_ext
8828fi
8829
8830
8831		CFLAGS="$xorg_testset_save_CFLAGS"
8832
8833		eval supported=\$$cacheid
8834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8835$as_echo "$supported" >&6; }
8836		if test "$supported" = "yes" ; then
8837			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8838			found="yes"
8839		fi
8840	fi
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856xorg_testset_save_CFLAGS="$CFLAGS"
8857
8858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8863  $as_echo_n "(cached) " >&6
8864else
8865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866/* end confdefs.h.  */
8867int i;
8868_ACEOF
8869if ac_fn_c_try_compile "$LINENO"; then :
8870  xorg_cv_cc_flag_unknown_warning_option=yes
8871else
8872  xorg_cv_cc_flag_unknown_warning_option=no
8873fi
8874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875fi
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8879	CFLAGS="$xorg_testset_save_CFLAGS"
8880fi
8881
8882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8885	fi
8886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8890  $as_echo_n "(cached) " >&6
8891else
8892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893/* end confdefs.h.  */
8894int i;
8895_ACEOF
8896if ac_fn_c_try_compile "$LINENO"; then :
8897  xorg_cv_cc_flag_unused_command_line_argument=yes
8898else
8899  xorg_cv_cc_flag_unused_command_line_argument=no
8900fi
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902fi
8903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8906	CFLAGS="$xorg_testset_save_CFLAGS"
8907fi
8908
8909found="no"
8910
8911	if test $found = "no" ; then
8912		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914		fi
8915
8916		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8918		fi
8919
8920		CFLAGS="$CFLAGS -Winit-self"
8921
8922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8923$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8924		cacheid=xorg_cv_cc_flag__Winit_self
8925		if eval \${$cacheid+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h.  */
8930int i;
8931int
8932main ()
8933{
8934
8935  ;
8936  return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_link "$LINENO"; then :
8940  eval $cacheid=yes
8941else
8942  eval $cacheid=no
8943fi
8944rm -f core conftest.err conftest.$ac_objext \
8945    conftest$ac_exeext conftest.$ac_ext
8946fi
8947
8948
8949		CFLAGS="$xorg_testset_save_CFLAGS"
8950
8951		eval supported=\$$cacheid
8952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8953$as_echo "$supported" >&6; }
8954		if test "$supported" = "yes" ; then
8955			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8956			found="yes"
8957		fi
8958	fi
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974xorg_testset_save_CFLAGS="$CFLAGS"
8975
8976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8981  $as_echo_n "(cached) " >&6
8982else
8983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985int i;
8986_ACEOF
8987if ac_fn_c_try_compile "$LINENO"; then :
8988  xorg_cv_cc_flag_unknown_warning_option=yes
8989else
8990  xorg_cv_cc_flag_unknown_warning_option=no
8991fi
8992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8997	CFLAGS="$xorg_testset_save_CFLAGS"
8998fi
8999
9000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9003	fi
9004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9008  $as_echo_n "(cached) " >&6
9009else
9010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011/* end confdefs.h.  */
9012int i;
9013_ACEOF
9014if ac_fn_c_try_compile "$LINENO"; then :
9015  xorg_cv_cc_flag_unused_command_line_argument=yes
9016else
9017  xorg_cv_cc_flag_unused_command_line_argument=no
9018fi
9019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020fi
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024	CFLAGS="$xorg_testset_save_CFLAGS"
9025fi
9026
9027found="no"
9028
9029	if test $found = "no" ; then
9030		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032		fi
9033
9034		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036		fi
9037
9038		CFLAGS="$CFLAGS -Wmain"
9039
9040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
9041$as_echo_n "checking if $CC supports-Wmain... " >&6; }
9042		cacheid=xorg_cv_cc_flag__Wmain
9043		if eval \${$cacheid+:} false; then :
9044  $as_echo_n "(cached) " >&6
9045else
9046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h.  */
9048int i;
9049int
9050main ()
9051{
9052
9053  ;
9054  return 0;
9055}
9056_ACEOF
9057if ac_fn_c_try_link "$LINENO"; then :
9058  eval $cacheid=yes
9059else
9060  eval $cacheid=no
9061fi
9062rm -f core conftest.err conftest.$ac_objext \
9063    conftest$ac_exeext conftest.$ac_ext
9064fi
9065
9066
9067		CFLAGS="$xorg_testset_save_CFLAGS"
9068
9069		eval supported=\$$cacheid
9070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9071$as_echo "$supported" >&6; }
9072		if test "$supported" = "yes" ; then
9073			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9074			found="yes"
9075		fi
9076	fi
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092xorg_testset_save_CFLAGS="$CFLAGS"
9093
9094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9099  $as_echo_n "(cached) " >&6
9100else
9101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102/* end confdefs.h.  */
9103int i;
9104_ACEOF
9105if ac_fn_c_try_compile "$LINENO"; then :
9106  xorg_cv_cc_flag_unknown_warning_option=yes
9107else
9108  xorg_cv_cc_flag_unknown_warning_option=no
9109fi
9110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9111fi
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9115	CFLAGS="$xorg_testset_save_CFLAGS"
9116fi
9117
9118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9121	fi
9122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9126  $as_echo_n "(cached) " >&6
9127else
9128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9129/* end confdefs.h.  */
9130int i;
9131_ACEOF
9132if ac_fn_c_try_compile "$LINENO"; then :
9133  xorg_cv_cc_flag_unused_command_line_argument=yes
9134else
9135  xorg_cv_cc_flag_unused_command_line_argument=no
9136fi
9137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9142	CFLAGS="$xorg_testset_save_CFLAGS"
9143fi
9144
9145found="no"
9146
9147	if test $found = "no" ; then
9148		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9150		fi
9151
9152		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9154		fi
9155
9156		CFLAGS="$CFLAGS -Wmissing-braces"
9157
9158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
9159$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
9160		cacheid=xorg_cv_cc_flag__Wmissing_braces
9161		if eval \${$cacheid+:} false; then :
9162  $as_echo_n "(cached) " >&6
9163else
9164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166int i;
9167int
9168main ()
9169{
9170
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"; then :
9176  eval $cacheid=yes
9177else
9178  eval $cacheid=no
9179fi
9180rm -f core conftest.err conftest.$ac_objext \
9181    conftest$ac_exeext conftest.$ac_ext
9182fi
9183
9184
9185		CFLAGS="$xorg_testset_save_CFLAGS"
9186
9187		eval supported=\$$cacheid
9188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9189$as_echo "$supported" >&6; }
9190		if test "$supported" = "yes" ; then
9191			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9192			found="yes"
9193		fi
9194	fi
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210xorg_testset_save_CFLAGS="$CFLAGS"
9211
9212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9215$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9216if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9217  $as_echo_n "(cached) " >&6
9218else
9219  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220/* end confdefs.h.  */
9221int i;
9222_ACEOF
9223if ac_fn_c_try_compile "$LINENO"; then :
9224  xorg_cv_cc_flag_unknown_warning_option=yes
9225else
9226  xorg_cv_cc_flag_unknown_warning_option=no
9227fi
9228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9229fi
9230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9231$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9232	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9233	CFLAGS="$xorg_testset_save_CFLAGS"
9234fi
9235
9236if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9237	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9238		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9239	fi
9240	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9241	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9242$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9243if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9244  $as_echo_n "(cached) " >&6
9245else
9246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h.  */
9248int i;
9249_ACEOF
9250if ac_fn_c_try_compile "$LINENO"; then :
9251  xorg_cv_cc_flag_unused_command_line_argument=yes
9252else
9253  xorg_cv_cc_flag_unused_command_line_argument=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256fi
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9258$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9259	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9260	CFLAGS="$xorg_testset_save_CFLAGS"
9261fi
9262
9263found="no"
9264
9265	if test $found = "no" ; then
9266		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9267			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9268		fi
9269
9270		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9271			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9272		fi
9273
9274		CFLAGS="$CFLAGS -Wsequence-point"
9275
9276		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
9277$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
9278		cacheid=xorg_cv_cc_flag__Wsequence_point
9279		if eval \${$cacheid+:} false; then :
9280  $as_echo_n "(cached) " >&6
9281else
9282  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283/* end confdefs.h.  */
9284int i;
9285int
9286main ()
9287{
9288
9289  ;
9290  return 0;
9291}
9292_ACEOF
9293if ac_fn_c_try_link "$LINENO"; then :
9294  eval $cacheid=yes
9295else
9296  eval $cacheid=no
9297fi
9298rm -f core conftest.err conftest.$ac_objext \
9299    conftest$ac_exeext conftest.$ac_ext
9300fi
9301
9302
9303		CFLAGS="$xorg_testset_save_CFLAGS"
9304
9305		eval supported=\$$cacheid
9306		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9307$as_echo "$supported" >&6; }
9308		if test "$supported" = "yes" ; then
9309			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9310			found="yes"
9311		fi
9312	fi
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328xorg_testset_save_CFLAGS="$CFLAGS"
9329
9330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9331	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9335  $as_echo_n "(cached) " >&6
9336else
9337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h.  */
9339int i;
9340_ACEOF
9341if ac_fn_c_try_compile "$LINENO"; then :
9342  xorg_cv_cc_flag_unknown_warning_option=yes
9343else
9344  xorg_cv_cc_flag_unknown_warning_option=no
9345fi
9346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347fi
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9350	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9351	CFLAGS="$xorg_testset_save_CFLAGS"
9352fi
9353
9354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9355	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9356		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357	fi
9358	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9359	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9362  $as_echo_n "(cached) " >&6
9363else
9364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365/* end confdefs.h.  */
9366int i;
9367_ACEOF
9368if ac_fn_c_try_compile "$LINENO"; then :
9369  xorg_cv_cc_flag_unused_command_line_argument=yes
9370else
9371  xorg_cv_cc_flag_unused_command_line_argument=no
9372fi
9373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9374fi
9375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9377	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9378	CFLAGS="$xorg_testset_save_CFLAGS"
9379fi
9380
9381found="no"
9382
9383	if test $found = "no" ; then
9384		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9385			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386		fi
9387
9388		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9389			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9390		fi
9391
9392		CFLAGS="$CFLAGS -Wreturn-type"
9393
9394		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9395$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9396		cacheid=xorg_cv_cc_flag__Wreturn_type
9397		if eval \${$cacheid+:} false; then :
9398  $as_echo_n "(cached) " >&6
9399else
9400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h.  */
9402int i;
9403int
9404main ()
9405{
9406
9407  ;
9408  return 0;
9409}
9410_ACEOF
9411if ac_fn_c_try_link "$LINENO"; then :
9412  eval $cacheid=yes
9413else
9414  eval $cacheid=no
9415fi
9416rm -f core conftest.err conftest.$ac_objext \
9417    conftest$ac_exeext conftest.$ac_ext
9418fi
9419
9420
9421		CFLAGS="$xorg_testset_save_CFLAGS"
9422
9423		eval supported=\$$cacheid
9424		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9425$as_echo "$supported" >&6; }
9426		if test "$supported" = "yes" ; then
9427			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9428			found="yes"
9429		fi
9430	fi
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446xorg_testset_save_CFLAGS="$CFLAGS"
9447
9448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9453  $as_echo_n "(cached) " >&6
9454else
9455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456/* end confdefs.h.  */
9457int i;
9458_ACEOF
9459if ac_fn_c_try_compile "$LINENO"; then :
9460  xorg_cv_cc_flag_unknown_warning_option=yes
9461else
9462  xorg_cv_cc_flag_unknown_warning_option=no
9463fi
9464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465fi
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469	CFLAGS="$xorg_testset_save_CFLAGS"
9470fi
9471
9472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475	fi
9476	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9480  $as_echo_n "(cached) " >&6
9481else
9482  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483/* end confdefs.h.  */
9484int i;
9485_ACEOF
9486if ac_fn_c_try_compile "$LINENO"; then :
9487  xorg_cv_cc_flag_unused_command_line_argument=yes
9488else
9489  xorg_cv_cc_flag_unused_command_line_argument=no
9490fi
9491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9495	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9496	CFLAGS="$xorg_testset_save_CFLAGS"
9497fi
9498
9499found="no"
9500
9501	if test $found = "no" ; then
9502		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9503			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9504		fi
9505
9506		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9507			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9508		fi
9509
9510		CFLAGS="$CFLAGS -Wtrigraphs"
9511
9512		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9513$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9514		cacheid=xorg_cv_cc_flag__Wtrigraphs
9515		if eval \${$cacheid+:} false; then :
9516  $as_echo_n "(cached) " >&6
9517else
9518  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519/* end confdefs.h.  */
9520int i;
9521int
9522main ()
9523{
9524
9525  ;
9526  return 0;
9527}
9528_ACEOF
9529if ac_fn_c_try_link "$LINENO"; then :
9530  eval $cacheid=yes
9531else
9532  eval $cacheid=no
9533fi
9534rm -f core conftest.err conftest.$ac_objext \
9535    conftest$ac_exeext conftest.$ac_ext
9536fi
9537
9538
9539		CFLAGS="$xorg_testset_save_CFLAGS"
9540
9541		eval supported=\$$cacheid
9542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9543$as_echo "$supported" >&6; }
9544		if test "$supported" = "yes" ; then
9545			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9546			found="yes"
9547		fi
9548	fi
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564xorg_testset_save_CFLAGS="$CFLAGS"
9565
9566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9567	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9571  $as_echo_n "(cached) " >&6
9572else
9573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574/* end confdefs.h.  */
9575int i;
9576_ACEOF
9577if ac_fn_c_try_compile "$LINENO"; then :
9578  xorg_cv_cc_flag_unknown_warning_option=yes
9579else
9580  xorg_cv_cc_flag_unknown_warning_option=no
9581fi
9582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9583fi
9584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9586	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9587	CFLAGS="$xorg_testset_save_CFLAGS"
9588fi
9589
9590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9591	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593	fi
9594	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9595	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9598  $as_echo_n "(cached) " >&6
9599else
9600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h.  */
9602int i;
9603_ACEOF
9604if ac_fn_c_try_compile "$LINENO"; then :
9605  xorg_cv_cc_flag_unused_command_line_argument=yes
9606else
9607  xorg_cv_cc_flag_unused_command_line_argument=no
9608fi
9609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9613	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9614	CFLAGS="$xorg_testset_save_CFLAGS"
9615fi
9616
9617found="no"
9618
9619	if test $found = "no" ; then
9620		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9621			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9622		fi
9623
9624		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9625			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9626		fi
9627
9628		CFLAGS="$CFLAGS -Warray-bounds"
9629
9630		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9631$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9632		cacheid=xorg_cv_cc_flag__Warray_bounds
9633		if eval \${$cacheid+:} false; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637/* end confdefs.h.  */
9638int i;
9639int
9640main ()
9641{
9642
9643  ;
9644  return 0;
9645}
9646_ACEOF
9647if ac_fn_c_try_link "$LINENO"; then :
9648  eval $cacheid=yes
9649else
9650  eval $cacheid=no
9651fi
9652rm -f core conftest.err conftest.$ac_objext \
9653    conftest$ac_exeext conftest.$ac_ext
9654fi
9655
9656
9657		CFLAGS="$xorg_testset_save_CFLAGS"
9658
9659		eval supported=\$$cacheid
9660		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9661$as_echo "$supported" >&6; }
9662		if test "$supported" = "yes" ; then
9663			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9664			found="yes"
9665		fi
9666	fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682xorg_testset_save_CFLAGS="$CFLAGS"
9683
9684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9687$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9688if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9689  $as_echo_n "(cached) " >&6
9690else
9691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692/* end confdefs.h.  */
9693int i;
9694_ACEOF
9695if ac_fn_c_try_compile "$LINENO"; then :
9696  xorg_cv_cc_flag_unknown_warning_option=yes
9697else
9698  xorg_cv_cc_flag_unknown_warning_option=no
9699fi
9700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9703$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9704	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9705	CFLAGS="$xorg_testset_save_CFLAGS"
9706fi
9707
9708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9709	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9710		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711	fi
9712	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9714$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9715if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9716  $as_echo_n "(cached) " >&6
9717else
9718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9719/* end confdefs.h.  */
9720int i;
9721_ACEOF
9722if ac_fn_c_try_compile "$LINENO"; then :
9723  xorg_cv_cc_flag_unused_command_line_argument=yes
9724else
9725  xorg_cv_cc_flag_unused_command_line_argument=no
9726fi
9727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9728fi
9729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9730$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9731	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9732	CFLAGS="$xorg_testset_save_CFLAGS"
9733fi
9734
9735found="no"
9736
9737	if test $found = "no" ; then
9738		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9739			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9740		fi
9741
9742		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9743			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9744		fi
9745
9746		CFLAGS="$CFLAGS -Wwrite-strings"
9747
9748		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9749$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9750		cacheid=xorg_cv_cc_flag__Wwrite_strings
9751		if eval \${$cacheid+:} false; then :
9752  $as_echo_n "(cached) " >&6
9753else
9754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h.  */
9756int i;
9757int
9758main ()
9759{
9760
9761  ;
9762  return 0;
9763}
9764_ACEOF
9765if ac_fn_c_try_link "$LINENO"; then :
9766  eval $cacheid=yes
9767else
9768  eval $cacheid=no
9769fi
9770rm -f core conftest.err conftest.$ac_objext \
9771    conftest$ac_exeext conftest.$ac_ext
9772fi
9773
9774
9775		CFLAGS="$xorg_testset_save_CFLAGS"
9776
9777		eval supported=\$$cacheid
9778		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9779$as_echo "$supported" >&6; }
9780		if test "$supported" = "yes" ; then
9781			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9782			found="yes"
9783		fi
9784	fi
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800xorg_testset_save_CFLAGS="$CFLAGS"
9801
9802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9807  $as_echo_n "(cached) " >&6
9808else
9809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810/* end confdefs.h.  */
9811int i;
9812_ACEOF
9813if ac_fn_c_try_compile "$LINENO"; then :
9814  xorg_cv_cc_flag_unknown_warning_option=yes
9815else
9816  xorg_cv_cc_flag_unknown_warning_option=no
9817fi
9818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819fi
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9823	CFLAGS="$xorg_testset_save_CFLAGS"
9824fi
9825
9826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829	fi
9830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9834  $as_echo_n "(cached) " >&6
9835else
9836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9837/* end confdefs.h.  */
9838int i;
9839_ACEOF
9840if ac_fn_c_try_compile "$LINENO"; then :
9841  xorg_cv_cc_flag_unused_command_line_argument=yes
9842else
9843  xorg_cv_cc_flag_unused_command_line_argument=no
9844fi
9845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9850	CFLAGS="$xorg_testset_save_CFLAGS"
9851fi
9852
9853found="no"
9854
9855	if test $found = "no" ; then
9856		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858		fi
9859
9860		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9862		fi
9863
9864		CFLAGS="$CFLAGS -Waddress"
9865
9866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9867$as_echo_n "checking if $CC supports-Waddress... " >&6; }
9868		cacheid=xorg_cv_cc_flag__Waddress
9869		if eval \${$cacheid+:} false; then :
9870  $as_echo_n "(cached) " >&6
9871else
9872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873/* end confdefs.h.  */
9874int i;
9875int
9876main ()
9877{
9878
9879  ;
9880  return 0;
9881}
9882_ACEOF
9883if ac_fn_c_try_link "$LINENO"; then :
9884  eval $cacheid=yes
9885else
9886  eval $cacheid=no
9887fi
9888rm -f core conftest.err conftest.$ac_objext \
9889    conftest$ac_exeext conftest.$ac_ext
9890fi
9891
9892
9893		CFLAGS="$xorg_testset_save_CFLAGS"
9894
9895		eval supported=\$$cacheid
9896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9897$as_echo "$supported" >&6; }
9898		if test "$supported" = "yes" ; then
9899			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9900			found="yes"
9901		fi
9902	fi
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918xorg_testset_save_CFLAGS="$CFLAGS"
9919
9920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9922	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9923$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9924if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9925  $as_echo_n "(cached) " >&6
9926else
9927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928/* end confdefs.h.  */
9929int i;
9930_ACEOF
9931if ac_fn_c_try_compile "$LINENO"; then :
9932  xorg_cv_cc_flag_unknown_warning_option=yes
9933else
9934  xorg_cv_cc_flag_unknown_warning_option=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9937fi
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9939$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9940	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9941	CFLAGS="$xorg_testset_save_CFLAGS"
9942fi
9943
9944if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9945	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9946		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9947	fi
9948	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9950$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9951if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9952  $as_echo_n "(cached) " >&6
9953else
9954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956int i;
9957_ACEOF
9958if ac_fn_c_try_compile "$LINENO"; then :
9959  xorg_cv_cc_flag_unused_command_line_argument=yes
9960else
9961  xorg_cv_cc_flag_unused_command_line_argument=no
9962fi
9963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964fi
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9966$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9967	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9968	CFLAGS="$xorg_testset_save_CFLAGS"
9969fi
9970
9971found="no"
9972
9973	if test $found = "no" ; then
9974		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9975			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976		fi
9977
9978		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9979			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9980		fi
9981
9982		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9983
9984		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9985$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9986		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9987		if eval \${$cacheid+:} false; then :
9988  $as_echo_n "(cached) " >&6
9989else
9990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991/* end confdefs.h.  */
9992int i;
9993int
9994main ()
9995{
9996
9997  ;
9998  return 0;
9999}
10000_ACEOF
10001if ac_fn_c_try_link "$LINENO"; then :
10002  eval $cacheid=yes
10003else
10004  eval $cacheid=no
10005fi
10006rm -f core conftest.err conftest.$ac_objext \
10007    conftest$ac_exeext conftest.$ac_ext
10008fi
10009
10010
10011		CFLAGS="$xorg_testset_save_CFLAGS"
10012
10013		eval supported=\$$cacheid
10014		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10015$as_echo "$supported" >&6; }
10016		if test "$supported" = "yes" ; then
10017			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10018			found="yes"
10019		fi
10020	fi
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036xorg_testset_save_CFLAGS="$CFLAGS"
10037
10038if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10039	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10041$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10042if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10043  $as_echo_n "(cached) " >&6
10044else
10045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046/* end confdefs.h.  */
10047int i;
10048_ACEOF
10049if ac_fn_c_try_compile "$LINENO"; then :
10050  xorg_cv_cc_flag_unknown_warning_option=yes
10051else
10052  xorg_cv_cc_flag_unknown_warning_option=no
10053fi
10054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055fi
10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10057$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10059	CFLAGS="$xorg_testset_save_CFLAGS"
10060fi
10061
10062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10065	fi
10066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10068$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10069if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10070  $as_echo_n "(cached) " >&6
10071else
10072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10073/* end confdefs.h.  */
10074int i;
10075_ACEOF
10076if ac_fn_c_try_compile "$LINENO"; then :
10077  xorg_cv_cc_flag_unused_command_line_argument=yes
10078else
10079  xorg_cv_cc_flag_unused_command_line_argument=no
10080fi
10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082fi
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10084$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10085	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10086	CFLAGS="$xorg_testset_save_CFLAGS"
10087fi
10088
10089found="no"
10090
10091	if test $found = "no" ; then
10092		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10093			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10094		fi
10095
10096		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10097			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10098		fi
10099
10100		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10101
10102		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
10103$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
10104		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10105		if eval \${$cacheid+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109/* end confdefs.h.  */
10110int i;
10111int
10112main ()
10113{
10114
10115  ;
10116  return 0;
10117}
10118_ACEOF
10119if ac_fn_c_try_link "$LINENO"; then :
10120  eval $cacheid=yes
10121else
10122  eval $cacheid=no
10123fi
10124rm -f core conftest.err conftest.$ac_objext \
10125    conftest$ac_exeext conftest.$ac_ext
10126fi
10127
10128
10129		CFLAGS="$xorg_testset_save_CFLAGS"
10130
10131		eval supported=\$$cacheid
10132		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10133$as_echo "$supported" >&6; }
10134		if test "$supported" = "yes" ; then
10135			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10136			found="yes"
10137		fi
10138	fi
10139
10140
10141fi
10142
10143
10144
10145
10146
10147
10148
10149		CWARNFLAGS="$BASE_CFLAGS"
10150		if  test "x$GCC" = xyes ; then
10151		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10152		fi
10153
10154
10155
10156
10157
10158
10159
10160
10161# Check whether --enable-strict-compilation was given.
10162if test "${enable_strict_compilation+set}" = set; then :
10163  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10164else
10165  STRICT_COMPILE=no
10166fi
10167
10168
10169
10170
10171
10172
10173STRICT_CFLAGS=""
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187xorg_testset_save_CFLAGS="$CFLAGS"
10188
10189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197/* end confdefs.h.  */
10198int i;
10199_ACEOF
10200if ac_fn_c_try_compile "$LINENO"; then :
10201  xorg_cv_cc_flag_unknown_warning_option=yes
10202else
10203  xorg_cv_cc_flag_unknown_warning_option=no
10204fi
10205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10210	CFLAGS="$xorg_testset_save_CFLAGS"
10211fi
10212
10213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10216	fi
10217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10221  $as_echo_n "(cached) " >&6
10222else
10223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224/* end confdefs.h.  */
10225int i;
10226_ACEOF
10227if ac_fn_c_try_compile "$LINENO"; then :
10228  xorg_cv_cc_flag_unused_command_line_argument=yes
10229else
10230  xorg_cv_cc_flag_unused_command_line_argument=no
10231fi
10232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233fi
10234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10237	CFLAGS="$xorg_testset_save_CFLAGS"
10238fi
10239
10240found="no"
10241
10242	if test $found = "no" ; then
10243		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10245		fi
10246
10247		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10249		fi
10250
10251		CFLAGS="$CFLAGS -pedantic"
10252
10253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
10254$as_echo_n "checking if $CC supports-pedantic... " >&6; }
10255		cacheid=xorg_cv_cc_flag__pedantic
10256		if eval \${$cacheid+:} false; then :
10257  $as_echo_n "(cached) " >&6
10258else
10259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h.  */
10261int i;
10262int
10263main ()
10264{
10265
10266  ;
10267  return 0;
10268}
10269_ACEOF
10270if ac_fn_c_try_link "$LINENO"; then :
10271  eval $cacheid=yes
10272else
10273  eval $cacheid=no
10274fi
10275rm -f core conftest.err conftest.$ac_objext \
10276    conftest$ac_exeext conftest.$ac_ext
10277fi
10278
10279
10280		CFLAGS="$xorg_testset_save_CFLAGS"
10281
10282		eval supported=\$$cacheid
10283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10284$as_echo "$supported" >&6; }
10285		if test "$supported" = "yes" ; then
10286			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10287			found="yes"
10288		fi
10289	fi
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305xorg_testset_save_CFLAGS="$CFLAGS"
10306
10307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10312  $as_echo_n "(cached) " >&6
10313else
10314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315/* end confdefs.h.  */
10316int i;
10317_ACEOF
10318if ac_fn_c_try_compile "$LINENO"; then :
10319  xorg_cv_cc_flag_unknown_warning_option=yes
10320else
10321  xorg_cv_cc_flag_unknown_warning_option=no
10322fi
10323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324fi
10325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10328	CFLAGS="$xorg_testset_save_CFLAGS"
10329fi
10330
10331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334	fi
10335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10339  $as_echo_n "(cached) " >&6
10340else
10341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342/* end confdefs.h.  */
10343int i;
10344_ACEOF
10345if ac_fn_c_try_compile "$LINENO"; then :
10346  xorg_cv_cc_flag_unused_command_line_argument=yes
10347else
10348  xorg_cv_cc_flag_unused_command_line_argument=no
10349fi
10350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351fi
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10355	CFLAGS="$xorg_testset_save_CFLAGS"
10356fi
10357
10358found="no"
10359
10360	if test $found = "no" ; then
10361		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10363		fi
10364
10365		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10367		fi
10368
10369		CFLAGS="$CFLAGS -Werror"
10370
10371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10372$as_echo_n "checking if $CC supports-Werror... " >&6; }
10373		cacheid=xorg_cv_cc_flag__Werror
10374		if eval \${$cacheid+:} false; then :
10375  $as_echo_n "(cached) " >&6
10376else
10377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379int i;
10380int
10381main ()
10382{
10383
10384  ;
10385  return 0;
10386}
10387_ACEOF
10388if ac_fn_c_try_link "$LINENO"; then :
10389  eval $cacheid=yes
10390else
10391  eval $cacheid=no
10392fi
10393rm -f core conftest.err conftest.$ac_objext \
10394    conftest$ac_exeext conftest.$ac_ext
10395fi
10396
10397
10398		CFLAGS="$xorg_testset_save_CFLAGS"
10399
10400		eval supported=\$$cacheid
10401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10402$as_echo "$supported" >&6; }
10403		if test "$supported" = "yes" ; then
10404			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10405			found="yes"
10406		fi
10407	fi
10408
10409	if test $found = "no" ; then
10410		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10411			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412		fi
10413
10414		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10415			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10416		fi
10417
10418		CFLAGS="$CFLAGS -errwarn"
10419
10420		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10421$as_echo_n "checking if $CC supports-errwarn... " >&6; }
10422		cacheid=xorg_cv_cc_flag__errwarn
10423		if eval \${$cacheid+:} false; then :
10424  $as_echo_n "(cached) " >&6
10425else
10426  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427/* end confdefs.h.  */
10428int i;
10429int
10430main ()
10431{
10432
10433  ;
10434  return 0;
10435}
10436_ACEOF
10437if ac_fn_c_try_link "$LINENO"; then :
10438  eval $cacheid=yes
10439else
10440  eval $cacheid=no
10441fi
10442rm -f core conftest.err conftest.$ac_objext \
10443    conftest$ac_exeext conftest.$ac_ext
10444fi
10445
10446
10447		CFLAGS="$xorg_testset_save_CFLAGS"
10448
10449		eval supported=\$$cacheid
10450		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10451$as_echo "$supported" >&6; }
10452		if test "$supported" = "yes" ; then
10453			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10454			found="yes"
10455		fi
10456	fi
10457
10458
10459
10460# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10461# activate it with -Werror, so we add it here explicitly.
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486int i;
10487_ACEOF
10488if ac_fn_c_try_compile "$LINENO"; then :
10489  xorg_cv_cc_flag_unknown_warning_option=yes
10490else
10491  xorg_cv_cc_flag_unknown_warning_option=no
10492fi
10493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10494fi
10495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10496$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10497	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10498	CFLAGS="$xorg_testset_save_CFLAGS"
10499fi
10500
10501if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10502	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10503		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10504	fi
10505	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10506	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10507$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10508if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10509  $as_echo_n "(cached) " >&6
10510else
10511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512/* end confdefs.h.  */
10513int i;
10514_ACEOF
10515if ac_fn_c_try_compile "$LINENO"; then :
10516  xorg_cv_cc_flag_unused_command_line_argument=yes
10517else
10518  xorg_cv_cc_flag_unused_command_line_argument=no
10519fi
10520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521fi
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10523$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10525	CFLAGS="$xorg_testset_save_CFLAGS"
10526fi
10527
10528found="no"
10529
10530	if test $found = "no" ; then
10531		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10533		fi
10534
10535		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10537		fi
10538
10539		CFLAGS="$CFLAGS -Werror=attributes"
10540
10541		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10542$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10543		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10544		if eval \${$cacheid+:} false; then :
10545  $as_echo_n "(cached) " >&6
10546else
10547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548/* end confdefs.h.  */
10549int i;
10550int
10551main ()
10552{
10553
10554  ;
10555  return 0;
10556}
10557_ACEOF
10558if ac_fn_c_try_link "$LINENO"; then :
10559  eval $cacheid=yes
10560else
10561  eval $cacheid=no
10562fi
10563rm -f core conftest.err conftest.$ac_objext \
10564    conftest$ac_exeext conftest.$ac_ext
10565fi
10566
10567
10568		CFLAGS="$xorg_testset_save_CFLAGS"
10569
10570		eval supported=\$$cacheid
10571		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10572$as_echo "$supported" >&6; }
10573		if test "$supported" = "yes" ; then
10574			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10575			found="yes"
10576		fi
10577	fi
10578
10579
10580
10581if test "x$STRICT_COMPILE" = "xyes"; then
10582    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10583    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10584fi
10585
10586
10587
10588
10589
10590
10591cat >>confdefs.h <<_ACEOF
10592#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10593_ACEOF
10594
10595	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10596	if test "x$PVM" = "x"; then
10597		PVM="0"
10598	fi
10599
10600cat >>confdefs.h <<_ACEOF
10601#define PACKAGE_VERSION_MINOR $PVM
10602_ACEOF
10603
10604	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10605	if test "x$PVP" = "x"; then
10606		PVP="0"
10607	fi
10608
10609cat >>confdefs.h <<_ACEOF
10610#define PACKAGE_VERSION_PATCHLEVEL $PVP
10611_ACEOF
10612
10613
10614
10615CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10616mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10617|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10618echo 'git directory not found: installing possibly empty changelog.' >&2)"
10619
10620
10621
10622
10623macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10624INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10625mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10626|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10627echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10628
10629
10630
10631
10632
10633
10634if test x$APP_MAN_SUFFIX = x    ; then
10635    APP_MAN_SUFFIX=1
10636fi
10637if test x$APP_MAN_DIR = x    ; then
10638    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10639fi
10640
10641if test x$LIB_MAN_SUFFIX = x    ; then
10642    LIB_MAN_SUFFIX=3
10643fi
10644if test x$LIB_MAN_DIR = x    ; then
10645    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10646fi
10647
10648if test x$FILE_MAN_SUFFIX = x    ; then
10649    case $host_os in
10650	solaris*)	FILE_MAN_SUFFIX=4  ;;
10651	*)		FILE_MAN_SUFFIX=5  ;;
10652    esac
10653fi
10654if test x$FILE_MAN_DIR = x    ; then
10655    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10656fi
10657
10658if test x$MISC_MAN_SUFFIX = x    ; then
10659    case $host_os in
10660	solaris*)	MISC_MAN_SUFFIX=5  ;;
10661	*)		MISC_MAN_SUFFIX=7  ;;
10662    esac
10663fi
10664if test x$MISC_MAN_DIR = x    ; then
10665    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10666fi
10667
10668if test x$DRIVER_MAN_SUFFIX = x    ; then
10669    case $host_os in
10670	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10671	*)		DRIVER_MAN_SUFFIX=4  ;;
10672    esac
10673fi
10674if test x$DRIVER_MAN_DIR = x    ; then
10675    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10676fi
10677
10678if test x$ADMIN_MAN_SUFFIX = x    ; then
10679    case $host_os in
10680	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10681	*)		ADMIN_MAN_SUFFIX=8  ;;
10682    esac
10683fi
10684if test x$ADMIN_MAN_DIR = x    ; then
10685    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10686fi
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702XORG_MAN_PAGE="X Version 11"
10703
10704MAN_SUBSTS="\
10705	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10706	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10707	-e 's|__xservername__|Xorg|g' \
10708	-e 's|__xconfigfile__|xorg.conf|g' \
10709	-e 's|__projectroot__|\$(prefix)|g' \
10710	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10711	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10712	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10713	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10714	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10715	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10716	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10717
10718
10719
10720# Check whether --enable-silent-rules was given.
10721if test "${enable_silent_rules+set}" = set; then :
10722  enableval=$enable_silent_rules;
10723fi
10724
10725case $enable_silent_rules in
10726yes) AM_DEFAULT_VERBOSITY=0;;
10727no)  AM_DEFAULT_VERBOSITY=1;;
10728*)   AM_DEFAULT_VERBOSITY=0;;
10729esac
10730am_make=${MAKE-make}
10731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10732$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10733if ${am_cv_make_support_nested_variables+:} false; then :
10734  $as_echo_n "(cached) " >&6
10735else
10736  if $as_echo 'TRUE=$(BAR$(V))
10737BAR0=false
10738BAR1=true
10739V=1
10740am__doit:
10741	@$(TRUE)
10742.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10743  am_cv_make_support_nested_variables=yes
10744else
10745  am_cv_make_support_nested_variables=no
10746fi
10747fi
10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10749$as_echo "$am_cv_make_support_nested_variables" >&6; }
10750if test $am_cv_make_support_nested_variables = yes; then
10751    AM_V='$(V)'
10752  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10753else
10754  AM_V=$AM_DEFAULT_VERBOSITY
10755  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10756fi
10757AM_BACKSLASH='\'
10758
10759
10760
10761# Initialize libtool
10762# Check whether --enable-static was given.
10763if test "${enable_static+set}" = set; then :
10764  enableval=$enable_static; p=${PACKAGE-default}
10765    case $enableval in
10766    yes) enable_static=yes ;;
10767    no) enable_static=no ;;
10768    *)
10769     enable_static=no
10770      # Look at the argument we got.  We use all the common list separators.
10771      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10772      for pkg in $enableval; do
10773	IFS="$lt_save_ifs"
10774	if test "X$pkg" = "X$p"; then
10775	  enable_static=yes
10776	fi
10777      done
10778      IFS="$lt_save_ifs"
10779      ;;
10780    esac
10781else
10782  enable_static=no
10783fi
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793case `pwd` in
10794  *\ * | *\	*)
10795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10796$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10797esac
10798
10799
10800
10801macro_version='2.4.2'
10802macro_revision='1.3337'
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816ltmain="$ac_aux_dir/ltmain.sh"
10817
10818# Backslashify metacharacters that are still active within
10819# double-quoted strings.
10820sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10821
10822# Same as above, but do not quote variable references.
10823double_quote_subst='s/\(["`\\]\)/\\\1/g'
10824
10825# Sed substitution to delay expansion of an escaped shell variable in a
10826# double_quote_subst'ed string.
10827delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10828
10829# Sed substitution to delay expansion of an escaped single quote.
10830delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10831
10832# Sed substitution to avoid accidental globbing in evaled expressions
10833no_glob_subst='s/\*/\\\*/g'
10834
10835ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10836ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10837ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10838
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10840$as_echo_n "checking how to print strings... " >&6; }
10841# Test print first, because it will be a builtin if present.
10842if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10843   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10844  ECHO='print -r --'
10845elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10846  ECHO='printf %s\n'
10847else
10848  # Use this function as a fallback that always works.
10849  func_fallback_echo ()
10850  {
10851    eval 'cat <<_LTECHO_EOF
10852$1
10853_LTECHO_EOF'
10854  }
10855  ECHO='func_fallback_echo'
10856fi
10857
10858# func_echo_all arg...
10859# Invoke $ECHO with all args, space-separated.
10860func_echo_all ()
10861{
10862    $ECHO ""
10863}
10864
10865case "$ECHO" in
10866  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10867$as_echo "printf" >&6; } ;;
10868  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10869$as_echo "print -r" >&6; } ;;
10870  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10871$as_echo "cat" >&6; } ;;
10872esac
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10888$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10889if ${ac_cv_path_SED+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10893     for ac_i in 1 2 3 4 5 6 7; do
10894       ac_script="$ac_script$as_nl$ac_script"
10895     done
10896     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10897     { ac_script=; unset ac_script;}
10898     if test -z "$SED"; then
10899  ac_path_SED_found=false
10900  # Loop through the user's path and test for each of PROGNAME-LIST
10901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902for as_dir in $PATH
10903do
10904  IFS=$as_save_IFS
10905  test -z "$as_dir" && as_dir=.
10906    for ac_prog in sed gsed; do
10907    for ac_exec_ext in '' $ac_executable_extensions; do
10908      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10909      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10910# Check for GNU ac_path_SED and select it if it is found.
10911  # Check for GNU $ac_path_SED
10912case `"$ac_path_SED" --version 2>&1` in
10913*GNU*)
10914  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10915*)
10916  ac_count=0
10917  $as_echo_n 0123456789 >"conftest.in"
10918  while :
10919  do
10920    cat "conftest.in" "conftest.in" >"conftest.tmp"
10921    mv "conftest.tmp" "conftest.in"
10922    cp "conftest.in" "conftest.nl"
10923    $as_echo '' >> "conftest.nl"
10924    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10925    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10926    as_fn_arith $ac_count + 1 && ac_count=$as_val
10927    if test $ac_count -gt ${ac_path_SED_max-0}; then
10928      # Best one so far, save it but keep looking for a better one
10929      ac_cv_path_SED="$ac_path_SED"
10930      ac_path_SED_max=$ac_count
10931    fi
10932    # 10*(2^10) chars as input seems more than enough
10933    test $ac_count -gt 10 && break
10934  done
10935  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10936esac
10937
10938      $ac_path_SED_found && break 3
10939    done
10940  done
10941  done
10942IFS=$as_save_IFS
10943  if test -z "$ac_cv_path_SED"; then
10944    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10945  fi
10946else
10947  ac_cv_path_SED=$SED
10948fi
10949
10950fi
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10952$as_echo "$ac_cv_path_SED" >&6; }
10953 SED="$ac_cv_path_SED"
10954  rm -f conftest.sed
10955
10956test -z "$SED" && SED=sed
10957Xsed="$SED -e 1s/^X//"
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10970$as_echo_n "checking for fgrep... " >&6; }
10971if ${ac_cv_path_FGREP+:} false; then :
10972  $as_echo_n "(cached) " >&6
10973else
10974  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10975   then ac_cv_path_FGREP="$GREP -F"
10976   else
10977     if test -z "$FGREP"; then
10978  ac_path_FGREP_found=false
10979  # Loop through the user's path and test for each of PROGNAME-LIST
10980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10982do
10983  IFS=$as_save_IFS
10984  test -z "$as_dir" && as_dir=.
10985    for ac_prog in fgrep; do
10986    for ac_exec_ext in '' $ac_executable_extensions; do
10987      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10988      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10989# Check for GNU ac_path_FGREP and select it if it is found.
10990  # Check for GNU $ac_path_FGREP
10991case `"$ac_path_FGREP" --version 2>&1` in
10992*GNU*)
10993  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10994*)
10995  ac_count=0
10996  $as_echo_n 0123456789 >"conftest.in"
10997  while :
10998  do
10999    cat "conftest.in" "conftest.in" >"conftest.tmp"
11000    mv "conftest.tmp" "conftest.in"
11001    cp "conftest.in" "conftest.nl"
11002    $as_echo 'FGREP' >> "conftest.nl"
11003    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11004    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11005    as_fn_arith $ac_count + 1 && ac_count=$as_val
11006    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11007      # Best one so far, save it but keep looking for a better one
11008      ac_cv_path_FGREP="$ac_path_FGREP"
11009      ac_path_FGREP_max=$ac_count
11010    fi
11011    # 10*(2^10) chars as input seems more than enough
11012    test $ac_count -gt 10 && break
11013  done
11014  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11015esac
11016
11017      $ac_path_FGREP_found && break 3
11018    done
11019  done
11020  done
11021IFS=$as_save_IFS
11022  if test -z "$ac_cv_path_FGREP"; then
11023    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11024  fi
11025else
11026  ac_cv_path_FGREP=$FGREP
11027fi
11028
11029   fi
11030fi
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11032$as_echo "$ac_cv_path_FGREP" >&6; }
11033 FGREP="$ac_cv_path_FGREP"
11034
11035
11036test -z "$GREP" && GREP=grep
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056# Check whether --with-gnu-ld was given.
11057if test "${with_gnu_ld+set}" = set; then :
11058  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11059else
11060  with_gnu_ld=no
11061fi
11062
11063ac_prog=ld
11064if test "$GCC" = yes; then
11065  # Check if gcc -print-prog-name=ld gives a path.
11066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11067$as_echo_n "checking for ld used by $CC... " >&6; }
11068  case $host in
11069  *-*-mingw*)
11070    # gcc leaves a trailing carriage return which upsets mingw
11071    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11072  *)
11073    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11074  esac
11075  case $ac_prog in
11076    # Accept absolute paths.
11077    [\\/]* | ?:[\\/]*)
11078      re_direlt='/[^/][^/]*/\.\./'
11079      # Canonicalize the pathname of ld
11080      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11081      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11082	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11083      done
11084      test -z "$LD" && LD="$ac_prog"
11085      ;;
11086  "")
11087    # If it fails, then pretend we aren't using GCC.
11088    ac_prog=ld
11089    ;;
11090  *)
11091    # If it is relative, then search for the first ld in PATH.
11092    with_gnu_ld=unknown
11093    ;;
11094  esac
11095elif test "$with_gnu_ld" = yes; then
11096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11097$as_echo_n "checking for GNU ld... " >&6; }
11098else
11099  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11100$as_echo_n "checking for non-GNU ld... " >&6; }
11101fi
11102if ${lt_cv_path_LD+:} false; then :
11103  $as_echo_n "(cached) " >&6
11104else
11105  if test -z "$LD"; then
11106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11107  for ac_dir in $PATH; do
11108    IFS="$lt_save_ifs"
11109    test -z "$ac_dir" && ac_dir=.
11110    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11111      lt_cv_path_LD="$ac_dir/$ac_prog"
11112      # Check to see if the program is GNU ld.  I'd rather use --version,
11113      # but apparently some variants of GNU ld only accept -v.
11114      # Break only if it was the GNU/non-GNU ld that we prefer.
11115      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11116      *GNU* | *'with BFD'*)
11117	test "$with_gnu_ld" != no && break
11118	;;
11119      *)
11120	test "$with_gnu_ld" != yes && break
11121	;;
11122      esac
11123    fi
11124  done
11125  IFS="$lt_save_ifs"
11126else
11127  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11128fi
11129fi
11130
11131LD="$lt_cv_path_LD"
11132if test -n "$LD"; then
11133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11134$as_echo "$LD" >&6; }
11135else
11136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11137$as_echo "no" >&6; }
11138fi
11139test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11141$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11142if ${lt_cv_prog_gnu_ld+:} false; then :
11143  $as_echo_n "(cached) " >&6
11144else
11145  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11146case `$LD -v 2>&1 </dev/null` in
11147*GNU* | *'with BFD'*)
11148  lt_cv_prog_gnu_ld=yes
11149  ;;
11150*)
11151  lt_cv_prog_gnu_ld=no
11152  ;;
11153esac
11154fi
11155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11156$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11157with_gnu_ld=$lt_cv_prog_gnu_ld
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11168$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11169if ${lt_cv_path_NM+:} false; then :
11170  $as_echo_n "(cached) " >&6
11171else
11172  if test -n "$NM"; then
11173  # Let the user override the test.
11174  lt_cv_path_NM="$NM"
11175else
11176  lt_nm_to_check="${ac_tool_prefix}nm"
11177  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11178    lt_nm_to_check="$lt_nm_to_check nm"
11179  fi
11180  for lt_tmp_nm in $lt_nm_to_check; do
11181    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11182    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11183      IFS="$lt_save_ifs"
11184      test -z "$ac_dir" && ac_dir=.
11185      tmp_nm="$ac_dir/$lt_tmp_nm"
11186      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11187	# Check to see if the nm accepts a BSD-compat flag.
11188	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11189	#   nm: unknown option "B" ignored
11190	# Tru64's nm complains that /dev/null is an invalid object file
11191	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11192	*/dev/null* | *'Invalid file or object type'*)
11193	  lt_cv_path_NM="$tmp_nm -B"
11194	  break
11195	  ;;
11196	*)
11197	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11198	  */dev/null*)
11199	    lt_cv_path_NM="$tmp_nm -p"
11200	    break
11201	    ;;
11202	  *)
11203	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11204	    continue # so that we can try to find one that supports BSD flags
11205	    ;;
11206	  esac
11207	  ;;
11208	esac
11209      fi
11210    done
11211    IFS="$lt_save_ifs"
11212  done
11213  : ${lt_cv_path_NM=no}
11214fi
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11217$as_echo "$lt_cv_path_NM" >&6; }
11218if test "$lt_cv_path_NM" != "no"; then
11219  NM="$lt_cv_path_NM"
11220else
11221  # Didn't find any BSD compatible name lister, look for dumpbin.
11222  if test -n "$DUMPBIN"; then :
11223    # Let the user override the test.
11224  else
11225    if test -n "$ac_tool_prefix"; then
11226  for ac_prog in dumpbin "link -dump"
11227  do
11228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11231$as_echo_n "checking for $ac_word... " >&6; }
11232if ${ac_cv_prog_DUMPBIN+:} false; then :
11233  $as_echo_n "(cached) " >&6
11234else
11235  if test -n "$DUMPBIN"; then
11236  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11237else
11238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239for as_dir in $PATH
11240do
11241  IFS=$as_save_IFS
11242  test -z "$as_dir" && as_dir=.
11243    for ac_exec_ext in '' $ac_executable_extensions; do
11244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11247    break 2
11248  fi
11249done
11250  done
11251IFS=$as_save_IFS
11252
11253fi
11254fi
11255DUMPBIN=$ac_cv_prog_DUMPBIN
11256if test -n "$DUMPBIN"; then
11257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11258$as_echo "$DUMPBIN" >&6; }
11259else
11260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261$as_echo "no" >&6; }
11262fi
11263
11264
11265    test -n "$DUMPBIN" && break
11266  done
11267fi
11268if test -z "$DUMPBIN"; then
11269  ac_ct_DUMPBIN=$DUMPBIN
11270  for ac_prog in dumpbin "link -dump"
11271do
11272  # Extract the first word of "$ac_prog", so it can be a program name with args.
11273set dummy $ac_prog; ac_word=$2
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11277  $as_echo_n "(cached) " >&6
11278else
11279  if test -n "$ac_ct_DUMPBIN"; then
11280  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11281else
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285  IFS=$as_save_IFS
11286  test -z "$as_dir" && as_dir=.
11287    for ac_exec_ext in '' $ac_executable_extensions; do
11288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11289    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11291    break 2
11292  fi
11293done
11294  done
11295IFS=$as_save_IFS
11296
11297fi
11298fi
11299ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11300if test -n "$ac_ct_DUMPBIN"; then
11301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11302$as_echo "$ac_ct_DUMPBIN" >&6; }
11303else
11304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
11306fi
11307
11308
11309  test -n "$ac_ct_DUMPBIN" && break
11310done
11311
11312  if test "x$ac_ct_DUMPBIN" = x; then
11313    DUMPBIN=":"
11314  else
11315    case $cross_compiling:$ac_tool_warned in
11316yes:)
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11319ac_tool_warned=yes ;;
11320esac
11321    DUMPBIN=$ac_ct_DUMPBIN
11322  fi
11323fi
11324
11325    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11326    *COFF*)
11327      DUMPBIN="$DUMPBIN -symbols"
11328      ;;
11329    *)
11330      DUMPBIN=:
11331      ;;
11332    esac
11333  fi
11334
11335  if test "$DUMPBIN" != ":"; then
11336    NM="$DUMPBIN"
11337  fi
11338fi
11339test -z "$NM" && NM=nm
11340
11341
11342
11343
11344
11345
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11347$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11348if ${lt_cv_nm_interface+:} false; then :
11349  $as_echo_n "(cached) " >&6
11350else
11351  lt_cv_nm_interface="BSD nm"
11352  echo "int some_variable = 0;" > conftest.$ac_ext
11353  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11354  (eval "$ac_compile" 2>conftest.err)
11355  cat conftest.err >&5
11356  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11357  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11358  cat conftest.err >&5
11359  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11360  cat conftest.out >&5
11361  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11362    lt_cv_nm_interface="MS dumpbin"
11363  fi
11364  rm -f conftest*
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11367$as_echo "$lt_cv_nm_interface" >&6; }
11368
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11370$as_echo_n "checking whether ln -s works... " >&6; }
11371LN_S=$as_ln_s
11372if test "$LN_S" = "ln -s"; then
11373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11374$as_echo "yes" >&6; }
11375else
11376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11377$as_echo "no, using $LN_S" >&6; }
11378fi
11379
11380# find the maximum length of command line arguments
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11382$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11383if ${lt_cv_sys_max_cmd_len+:} false; then :
11384  $as_echo_n "(cached) " >&6
11385else
11386    i=0
11387  teststring="ABCD"
11388
11389  case $build_os in
11390  msdosdjgpp*)
11391    # On DJGPP, this test can blow up pretty badly due to problems in libc
11392    # (any single argument exceeding 2000 bytes causes a buffer overrun
11393    # during glob expansion).  Even if it were fixed, the result of this
11394    # check would be larger than it should be.
11395    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11396    ;;
11397
11398  gnu*)
11399    # Under GNU Hurd, this test is not required because there is
11400    # no limit to the length of command line arguments.
11401    # Libtool will interpret -1 as no limit whatsoever
11402    lt_cv_sys_max_cmd_len=-1;
11403    ;;
11404
11405  cygwin* | mingw* | cegcc*)
11406    # On Win9x/ME, this test blows up -- it succeeds, but takes
11407    # about 5 minutes as the teststring grows exponentially.
11408    # Worse, since 9x/ME are not pre-emptively multitasking,
11409    # you end up with a "frozen" computer, even though with patience
11410    # the test eventually succeeds (with a max line length of 256k).
11411    # Instead, let's just punt: use the minimum linelength reported by
11412    # all of the supported platforms: 8192 (on NT/2K/XP).
11413    lt_cv_sys_max_cmd_len=8192;
11414    ;;
11415
11416  mint*)
11417    # On MiNT this can take a long time and run out of memory.
11418    lt_cv_sys_max_cmd_len=8192;
11419    ;;
11420
11421  amigaos*)
11422    # On AmigaOS with pdksh, this test takes hours, literally.
11423    # So we just punt and use a minimum line length of 8192.
11424    lt_cv_sys_max_cmd_len=8192;
11425    ;;
11426
11427  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11428    # This has been around since 386BSD, at least.  Likely further.
11429    if test -x /sbin/sysctl; then
11430      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11431    elif test -x /usr/sbin/sysctl; then
11432      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11433    else
11434      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11435    fi
11436    # And add a safety zone
11437    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11438    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11439    ;;
11440
11441  interix*)
11442    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11443    lt_cv_sys_max_cmd_len=196608
11444    ;;
11445
11446  os2*)
11447    # The test takes a long time on OS/2.
11448    lt_cv_sys_max_cmd_len=8192
11449    ;;
11450
11451  osf*)
11452    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11453    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11454    # nice to cause kernel panics so lets avoid the loop below.
11455    # First set a reasonable default.
11456    lt_cv_sys_max_cmd_len=16384
11457    #
11458    if test -x /sbin/sysconfig; then
11459      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11460        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11461      esac
11462    fi
11463    ;;
11464  sco3.2v5*)
11465    lt_cv_sys_max_cmd_len=102400
11466    ;;
11467  sysv5* | sco5v6* | sysv4.2uw2*)
11468    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11469    if test -n "$kargmax"; then
11470      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11471    else
11472      lt_cv_sys_max_cmd_len=32768
11473    fi
11474    ;;
11475  *)
11476    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11477    if test -n "$lt_cv_sys_max_cmd_len"; then
11478      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11479      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11480    else
11481      # Make teststring a little bigger before we do anything with it.
11482      # a 1K string should be a reasonable start.
11483      for i in 1 2 3 4 5 6 7 8 ; do
11484        teststring=$teststring$teststring
11485      done
11486      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11487      # If test is not a shell built-in, we'll probably end up computing a
11488      # maximum length that is only half of the actual maximum length, but
11489      # we can't tell.
11490      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11491	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11492	      test $i != 17 # 1/2 MB should be enough
11493      do
11494        i=`expr $i + 1`
11495        teststring=$teststring$teststring
11496      done
11497      # Only check the string length outside the loop.
11498      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11499      teststring=
11500      # Add a significant safety factor because C++ compilers can tack on
11501      # massive amounts of additional arguments before passing them to the
11502      # linker.  It appears as though 1/2 is a usable value.
11503      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11504    fi
11505    ;;
11506  esac
11507
11508fi
11509
11510if test -n $lt_cv_sys_max_cmd_len ; then
11511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11512$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11513else
11514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11515$as_echo "none" >&6; }
11516fi
11517max_cmd_len=$lt_cv_sys_max_cmd_len
11518
11519
11520
11521
11522
11523
11524: ${CP="cp -f"}
11525: ${MV="mv -f"}
11526: ${RM="rm -f"}
11527
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11529$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11530# Try some XSI features
11531xsi_shell=no
11532( _lt_dummy="a/b/c"
11533  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11534      = c,a/b,b/c, \
11535    && eval 'test $(( 1 + 1 )) -eq 2 \
11536    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11537  && xsi_shell=yes
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11539$as_echo "$xsi_shell" >&6; }
11540
11541
11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11543$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11544lt_shell_append=no
11545( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11546    >/dev/null 2>&1 \
11547  && lt_shell_append=yes
11548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11549$as_echo "$lt_shell_append" >&6; }
11550
11551
11552if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11553  lt_unset=unset
11554else
11555  lt_unset=false
11556fi
11557
11558
11559
11560
11561
11562# test EBCDIC or ASCII
11563case `echo X|tr X '\101'` in
11564 A) # ASCII based system
11565    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11566  lt_SP2NL='tr \040 \012'
11567  lt_NL2SP='tr \015\012 \040\040'
11568  ;;
11569 *) # EBCDIC based system
11570  lt_SP2NL='tr \100 \n'
11571  lt_NL2SP='tr \r\n \100\100'
11572  ;;
11573esac
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11584$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11585if ${lt_cv_to_host_file_cmd+:} false; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  case $host in
11589  *-*-mingw* )
11590    case $build in
11591      *-*-mingw* ) # actually msys
11592        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11593        ;;
11594      *-*-cygwin* )
11595        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11596        ;;
11597      * ) # otherwise, assume *nix
11598        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11599        ;;
11600    esac
11601    ;;
11602  *-*-cygwin* )
11603    case $build in
11604      *-*-mingw* ) # actually msys
11605        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11606        ;;
11607      *-*-cygwin* )
11608        lt_cv_to_host_file_cmd=func_convert_file_noop
11609        ;;
11610      * ) # otherwise, assume *nix
11611        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11612        ;;
11613    esac
11614    ;;
11615  * ) # unhandled hosts (and "normal" native builds)
11616    lt_cv_to_host_file_cmd=func_convert_file_noop
11617    ;;
11618esac
11619
11620fi
11621
11622to_host_file_cmd=$lt_cv_to_host_file_cmd
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11624$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11625
11626
11627
11628
11629
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11631$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11632if ${lt_cv_to_tool_file_cmd+:} false; then :
11633  $as_echo_n "(cached) " >&6
11634else
11635  #assume ordinary cross tools, or native build.
11636lt_cv_to_tool_file_cmd=func_convert_file_noop
11637case $host in
11638  *-*-mingw* )
11639    case $build in
11640      *-*-mingw* ) # actually msys
11641        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11642        ;;
11643    esac
11644    ;;
11645esac
11646
11647fi
11648
11649to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11651$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11652
11653
11654
11655
11656
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11658$as_echo_n "checking for $LD option to reload object files... " >&6; }
11659if ${lt_cv_ld_reload_flag+:} false; then :
11660  $as_echo_n "(cached) " >&6
11661else
11662  lt_cv_ld_reload_flag='-r'
11663fi
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11665$as_echo "$lt_cv_ld_reload_flag" >&6; }
11666reload_flag=$lt_cv_ld_reload_flag
11667case $reload_flag in
11668"" | " "*) ;;
11669*) reload_flag=" $reload_flag" ;;
11670esac
11671reload_cmds='$LD$reload_flag -o $output$reload_objs'
11672case $host_os in
11673  cygwin* | mingw* | pw32* | cegcc*)
11674    if test "$GCC" != yes; then
11675      reload_cmds=false
11676    fi
11677    ;;
11678  darwin*)
11679    if test "$GCC" = yes; then
11680      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11681    else
11682      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11683    fi
11684    ;;
11685esac
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695if test -n "$ac_tool_prefix"; then
11696  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11697set dummy ${ac_tool_prefix}objdump; ac_word=$2
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11699$as_echo_n "checking for $ac_word... " >&6; }
11700if ${ac_cv_prog_OBJDUMP+:} false; then :
11701  $as_echo_n "(cached) " >&6
11702else
11703  if test -n "$OBJDUMP"; then
11704  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11705else
11706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709  IFS=$as_save_IFS
11710  test -z "$as_dir" && as_dir=.
11711    for ac_exec_ext in '' $ac_executable_extensions; do
11712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11715    break 2
11716  fi
11717done
11718  done
11719IFS=$as_save_IFS
11720
11721fi
11722fi
11723OBJDUMP=$ac_cv_prog_OBJDUMP
11724if test -n "$OBJDUMP"; then
11725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11726$as_echo "$OBJDUMP" >&6; }
11727else
11728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729$as_echo "no" >&6; }
11730fi
11731
11732
11733fi
11734if test -z "$ac_cv_prog_OBJDUMP"; then
11735  ac_ct_OBJDUMP=$OBJDUMP
11736  # Extract the first word of "objdump", so it can be a program name with args.
11737set dummy objdump; ac_word=$2
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
11740if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11741  $as_echo_n "(cached) " >&6
11742else
11743  if test -n "$ac_ct_OBJDUMP"; then
11744  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11745else
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749  IFS=$as_save_IFS
11750  test -z "$as_dir" && as_dir=.
11751    for ac_exec_ext in '' $ac_executable_extensions; do
11752  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11754    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755    break 2
11756  fi
11757done
11758  done
11759IFS=$as_save_IFS
11760
11761fi
11762fi
11763ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11764if test -n "$ac_ct_OBJDUMP"; then
11765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11766$as_echo "$ac_ct_OBJDUMP" >&6; }
11767else
11768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
11770fi
11771
11772  if test "x$ac_ct_OBJDUMP" = x; then
11773    OBJDUMP="false"
11774  else
11775    case $cross_compiling:$ac_tool_warned in
11776yes:)
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11779ac_tool_warned=yes ;;
11780esac
11781    OBJDUMP=$ac_ct_OBJDUMP
11782  fi
11783else
11784  OBJDUMP="$ac_cv_prog_OBJDUMP"
11785fi
11786
11787test -z "$OBJDUMP" && OBJDUMP=objdump
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11798$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11799if ${lt_cv_deplibs_check_method+:} false; then :
11800  $as_echo_n "(cached) " >&6
11801else
11802  lt_cv_file_magic_cmd='$MAGIC_CMD'
11803lt_cv_file_magic_test_file=
11804lt_cv_deplibs_check_method='unknown'
11805# Need to set the preceding variable on all platforms that support
11806# interlibrary dependencies.
11807# 'none' -- dependencies not supported.
11808# `unknown' -- same as none, but documents that we really don't know.
11809# 'pass_all' -- all dependencies passed with no checks.
11810# 'test_compile' -- check by making test program.
11811# 'file_magic [[regex]]' -- check by looking for files in library path
11812# which responds to the $file_magic_cmd with a given extended regex.
11813# If you have `file' or equivalent on your system and you're not sure
11814# whether `pass_all' will *always* work, you probably want this one.
11815
11816case $host_os in
11817aix[4-9]*)
11818  lt_cv_deplibs_check_method=pass_all
11819  ;;
11820
11821beos*)
11822  lt_cv_deplibs_check_method=pass_all
11823  ;;
11824
11825bsdi[45]*)
11826  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11827  lt_cv_file_magic_cmd='/usr/bin/file -L'
11828  lt_cv_file_magic_test_file=/shlib/libc.so
11829  ;;
11830
11831cygwin*)
11832  # func_win32_libid is a shell function defined in ltmain.sh
11833  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11834  lt_cv_file_magic_cmd='func_win32_libid'
11835  ;;
11836
11837mingw* | pw32*)
11838  # Base MSYS/MinGW do not provide the 'file' command needed by
11839  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11840  # unless we find 'file', for example because we are cross-compiling.
11841  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11842  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11843    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11844    lt_cv_file_magic_cmd='func_win32_libid'
11845  else
11846    # Keep this pattern in sync with the one in func_win32_libid.
11847    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11848    lt_cv_file_magic_cmd='$OBJDUMP -f'
11849  fi
11850  ;;
11851
11852cegcc*)
11853  # use the weaker test based on 'objdump'. See mingw*.
11854  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11855  lt_cv_file_magic_cmd='$OBJDUMP -f'
11856  ;;
11857
11858darwin* | rhapsody*)
11859  lt_cv_deplibs_check_method=pass_all
11860  ;;
11861
11862freebsd* | dragonfly*)
11863  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11864    case $host_cpu in
11865    i*86 )
11866      # Not sure whether the presence of OpenBSD here was a mistake.
11867      # Let's accept both of them until this is cleared up.
11868      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11869      lt_cv_file_magic_cmd=/usr/bin/file
11870      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11871      ;;
11872    esac
11873  else
11874    lt_cv_deplibs_check_method=pass_all
11875  fi
11876  ;;
11877
11878gnu*)
11879  lt_cv_deplibs_check_method=pass_all
11880  ;;
11881
11882haiku*)
11883  lt_cv_deplibs_check_method=pass_all
11884  ;;
11885
11886hpux10.20* | hpux11*)
11887  lt_cv_file_magic_cmd=/usr/bin/file
11888  case $host_cpu in
11889  ia64*)
11890    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11891    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11892    ;;
11893  hppa*64*)
11894    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]'
11895    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11896    ;;
11897  *)
11898    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11899    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11900    ;;
11901  esac
11902  ;;
11903
11904interix[3-9]*)
11905  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11906  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11907  ;;
11908
11909irix5* | irix6* | nonstopux*)
11910  case $LD in
11911  *-32|*"-32 ") libmagic=32-bit;;
11912  *-n32|*"-n32 ") libmagic=N32;;
11913  *-64|*"-64 ") libmagic=64-bit;;
11914  *) libmagic=never-match;;
11915  esac
11916  lt_cv_deplibs_check_method=pass_all
11917  ;;
11918
11919# This must be glibc/ELF.
11920linux* | k*bsd*-gnu | kopensolaris*-gnu)
11921  lt_cv_deplibs_check_method=pass_all
11922  ;;
11923
11924netbsd* | netbsdelf*-gnu)
11925  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11926    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11927  else
11928    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11929  fi
11930  ;;
11931
11932newos6*)
11933  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11934  lt_cv_file_magic_cmd=/usr/bin/file
11935  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11936  ;;
11937
11938*nto* | *qnx*)
11939  lt_cv_deplibs_check_method=pass_all
11940  ;;
11941
11942openbsd*)
11943  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11944    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11945  else
11946    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11947  fi
11948  ;;
11949
11950osf3* | osf4* | osf5*)
11951  lt_cv_deplibs_check_method=pass_all
11952  ;;
11953
11954rdos*)
11955  lt_cv_deplibs_check_method=pass_all
11956  ;;
11957
11958solaris*)
11959  lt_cv_deplibs_check_method=pass_all
11960  ;;
11961
11962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11963  lt_cv_deplibs_check_method=pass_all
11964  ;;
11965
11966sysv4 | sysv4.3*)
11967  case $host_vendor in
11968  motorola)
11969    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]'
11970    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11971    ;;
11972  ncr)
11973    lt_cv_deplibs_check_method=pass_all
11974    ;;
11975  sequent)
11976    lt_cv_file_magic_cmd='/bin/file'
11977    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11978    ;;
11979  sni)
11980    lt_cv_file_magic_cmd='/bin/file'
11981    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11982    lt_cv_file_magic_test_file=/lib/libc.so
11983    ;;
11984  siemens)
11985    lt_cv_deplibs_check_method=pass_all
11986    ;;
11987  pc)
11988    lt_cv_deplibs_check_method=pass_all
11989    ;;
11990  esac
11991  ;;
11992
11993tpf*)
11994  lt_cv_deplibs_check_method=pass_all
11995  ;;
11996esac
11997
11998fi
11999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12000$as_echo "$lt_cv_deplibs_check_method" >&6; }
12001
12002file_magic_glob=
12003want_nocaseglob=no
12004if test "$build" = "$host"; then
12005  case $host_os in
12006  mingw* | pw32*)
12007    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12008      want_nocaseglob=yes
12009    else
12010      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12011    fi
12012    ;;
12013  esac
12014fi
12015
12016file_magic_cmd=$lt_cv_file_magic_cmd
12017deplibs_check_method=$lt_cv_deplibs_check_method
12018test -z "$deplibs_check_method" && deplibs_check_method=unknown
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041if test -n "$ac_tool_prefix"; then
12042  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12043set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045$as_echo_n "checking for $ac_word... " >&6; }
12046if ${ac_cv_prog_DLLTOOL+:} false; then :
12047  $as_echo_n "(cached) " >&6
12048else
12049  if test -n "$DLLTOOL"; then
12050  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12051else
12052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053for as_dir in $PATH
12054do
12055  IFS=$as_save_IFS
12056  test -z "$as_dir" && as_dir=.
12057    for ac_exec_ext in '' $ac_executable_extensions; do
12058  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12059    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061    break 2
12062  fi
12063done
12064  done
12065IFS=$as_save_IFS
12066
12067fi
12068fi
12069DLLTOOL=$ac_cv_prog_DLLTOOL
12070if test -n "$DLLTOOL"; then
12071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12072$as_echo "$DLLTOOL" >&6; }
12073else
12074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
12076fi
12077
12078
12079fi
12080if test -z "$ac_cv_prog_DLLTOOL"; then
12081  ac_ct_DLLTOOL=$DLLTOOL
12082  # Extract the first word of "dlltool", so it can be a program name with args.
12083set dummy dlltool; ac_word=$2
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085$as_echo_n "checking for $ac_word... " >&6; }
12086if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12087  $as_echo_n "(cached) " >&6
12088else
12089  if test -n "$ac_ct_DLLTOOL"; then
12090  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12091else
12092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
12094do
12095  IFS=$as_save_IFS
12096  test -z "$as_dir" && as_dir=.
12097    for ac_exec_ext in '' $ac_executable_extensions; do
12098  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12099    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101    break 2
12102  fi
12103done
12104  done
12105IFS=$as_save_IFS
12106
12107fi
12108fi
12109ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12110if test -n "$ac_ct_DLLTOOL"; then
12111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12112$as_echo "$ac_ct_DLLTOOL" >&6; }
12113else
12114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
12116fi
12117
12118  if test "x$ac_ct_DLLTOOL" = x; then
12119    DLLTOOL="false"
12120  else
12121    case $cross_compiling:$ac_tool_warned in
12122yes:)
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12125ac_tool_warned=yes ;;
12126esac
12127    DLLTOOL=$ac_ct_DLLTOOL
12128  fi
12129else
12130  DLLTOOL="$ac_cv_prog_DLLTOOL"
12131fi
12132
12133test -z "$DLLTOOL" && DLLTOOL=dlltool
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12145$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12146if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12147  $as_echo_n "(cached) " >&6
12148else
12149  lt_cv_sharedlib_from_linklib_cmd='unknown'
12150
12151case $host_os in
12152cygwin* | mingw* | pw32* | cegcc*)
12153  # two different shell functions defined in ltmain.sh
12154  # decide which to use based on capabilities of $DLLTOOL
12155  case `$DLLTOOL --help 2>&1` in
12156  *--identify-strict*)
12157    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12158    ;;
12159  *)
12160    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12161    ;;
12162  esac
12163  ;;
12164*)
12165  # fallback: assume linklib IS sharedlib
12166  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12167  ;;
12168esac
12169
12170fi
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12172$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12173sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12174test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12175
12176
12177
12178
12179
12180
12181
12182if test -n "$ac_tool_prefix"; then
12183  for ac_prog in ar
12184  do
12185    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12188$as_echo_n "checking for $ac_word... " >&6; }
12189if ${ac_cv_prog_AR+:} false; then :
12190  $as_echo_n "(cached) " >&6
12191else
12192  if test -n "$AR"; then
12193  ac_cv_prog_AR="$AR" # Let the user override the test.
12194else
12195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198  IFS=$as_save_IFS
12199  test -z "$as_dir" && as_dir=.
12200    for ac_exec_ext in '' $ac_executable_extensions; do
12201  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204    break 2
12205  fi
12206done
12207  done
12208IFS=$as_save_IFS
12209
12210fi
12211fi
12212AR=$ac_cv_prog_AR
12213if test -n "$AR"; then
12214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12215$as_echo "$AR" >&6; }
12216else
12217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218$as_echo "no" >&6; }
12219fi
12220
12221
12222    test -n "$AR" && break
12223  done
12224fi
12225if test -z "$AR"; then
12226  ac_ct_AR=$AR
12227  for ac_prog in ar
12228do
12229  # Extract the first word of "$ac_prog", so it can be a program name with args.
12230set dummy $ac_prog; ac_word=$2
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
12233if ${ac_cv_prog_ac_ct_AR+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236  if test -n "$ac_ct_AR"; then
12237  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12238else
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242  IFS=$as_save_IFS
12243  test -z "$as_dir" && as_dir=.
12244    for ac_exec_ext in '' $ac_executable_extensions; do
12245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246    ac_cv_prog_ac_ct_AR="$ac_prog"
12247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12248    break 2
12249  fi
12250done
12251  done
12252IFS=$as_save_IFS
12253
12254fi
12255fi
12256ac_ct_AR=$ac_cv_prog_ac_ct_AR
12257if test -n "$ac_ct_AR"; then
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12259$as_echo "$ac_ct_AR" >&6; }
12260else
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266  test -n "$ac_ct_AR" && break
12267done
12268
12269  if test "x$ac_ct_AR" = x; then
12270    AR="false"
12271  else
12272    case $cross_compiling:$ac_tool_warned in
12273yes:)
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12276ac_tool_warned=yes ;;
12277esac
12278    AR=$ac_ct_AR
12279  fi
12280fi
12281
12282: ${AR=ar}
12283: ${AR_FLAGS=cru}
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12296$as_echo_n "checking for archiver @FILE support... " >&6; }
12297if ${lt_cv_ar_at_file+:} false; then :
12298  $as_echo_n "(cached) " >&6
12299else
12300  lt_cv_ar_at_file=no
12301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h.  */
12303
12304int
12305main ()
12306{
12307
12308  ;
12309  return 0;
12310}
12311_ACEOF
12312if ac_fn_c_try_compile "$LINENO"; then :
12313  echo conftest.$ac_objext > conftest.lst
12314      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12315      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12316  (eval $lt_ar_try) 2>&5
12317  ac_status=$?
12318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12319  test $ac_status = 0; }
12320      if test "$ac_status" -eq 0; then
12321	# Ensure the archiver fails upon bogus file names.
12322	rm -f conftest.$ac_objext libconftest.a
12323	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12324  (eval $lt_ar_try) 2>&5
12325  ac_status=$?
12326  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327  test $ac_status = 0; }
12328	if test "$ac_status" -ne 0; then
12329          lt_cv_ar_at_file=@
12330        fi
12331      fi
12332      rm -f conftest.* libconftest.a
12333
12334fi
12335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336
12337fi
12338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12339$as_echo "$lt_cv_ar_at_file" >&6; }
12340
12341if test "x$lt_cv_ar_at_file" = xno; then
12342  archiver_list_spec=
12343else
12344  archiver_list_spec=$lt_cv_ar_at_file
12345fi
12346
12347
12348
12349
12350
12351
12352
12353if test -n "$ac_tool_prefix"; then
12354  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12355set dummy ${ac_tool_prefix}strip; ac_word=$2
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if ${ac_cv_prog_STRIP+:} false; then :
12359  $as_echo_n "(cached) " >&6
12360else
12361  if test -n "$STRIP"; then
12362  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367  IFS=$as_save_IFS
12368  test -z "$as_dir" && as_dir=.
12369    for ac_exec_ext in '' $ac_executable_extensions; do
12370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12373    break 2
12374  fi
12375done
12376  done
12377IFS=$as_save_IFS
12378
12379fi
12380fi
12381STRIP=$ac_cv_prog_STRIP
12382if test -n "$STRIP"; then
12383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12384$as_echo "$STRIP" >&6; }
12385else
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
12388fi
12389
12390
12391fi
12392if test -z "$ac_cv_prog_STRIP"; then
12393  ac_ct_STRIP=$STRIP
12394  # Extract the first word of "strip", so it can be a program name with args.
12395set dummy strip; ac_word=$2
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397$as_echo_n "checking for $ac_word... " >&6; }
12398if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12399  $as_echo_n "(cached) " >&6
12400else
12401  if test -n "$ac_ct_STRIP"; then
12402  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12403else
12404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407  IFS=$as_save_IFS
12408  test -z "$as_dir" && as_dir=.
12409    for ac_exec_ext in '' $ac_executable_extensions; do
12410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12411    ac_cv_prog_ac_ct_STRIP="strip"
12412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413    break 2
12414  fi
12415done
12416  done
12417IFS=$as_save_IFS
12418
12419fi
12420fi
12421ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12422if test -n "$ac_ct_STRIP"; then
12423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12424$as_echo "$ac_ct_STRIP" >&6; }
12425else
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427$as_echo "no" >&6; }
12428fi
12429
12430  if test "x$ac_ct_STRIP" = x; then
12431    STRIP=":"
12432  else
12433    case $cross_compiling:$ac_tool_warned in
12434yes:)
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12437ac_tool_warned=yes ;;
12438esac
12439    STRIP=$ac_ct_STRIP
12440  fi
12441else
12442  STRIP="$ac_cv_prog_STRIP"
12443fi
12444
12445test -z "$STRIP" && STRIP=:
12446
12447
12448
12449
12450
12451
12452if test -n "$ac_tool_prefix"; then
12453  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12454set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456$as_echo_n "checking for $ac_word... " >&6; }
12457if ${ac_cv_prog_RANLIB+:} false; then :
12458  $as_echo_n "(cached) " >&6
12459else
12460  if test -n "$RANLIB"; then
12461  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12462else
12463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $PATH
12465do
12466  IFS=$as_save_IFS
12467  test -z "$as_dir" && as_dir=.
12468    for ac_exec_ext in '' $ac_executable_extensions; do
12469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12470    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12472    break 2
12473  fi
12474done
12475  done
12476IFS=$as_save_IFS
12477
12478fi
12479fi
12480RANLIB=$ac_cv_prog_RANLIB
12481if test -n "$RANLIB"; then
12482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12483$as_echo "$RANLIB" >&6; }
12484else
12485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
12487fi
12488
12489
12490fi
12491if test -z "$ac_cv_prog_RANLIB"; then
12492  ac_ct_RANLIB=$RANLIB
12493  # Extract the first word of "ranlib", so it can be a program name with args.
12494set dummy ranlib; ac_word=$2
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12496$as_echo_n "checking for $ac_word... " >&6; }
12497if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12498  $as_echo_n "(cached) " >&6
12499else
12500  if test -n "$ac_ct_RANLIB"; then
12501  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12502else
12503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504for as_dir in $PATH
12505do
12506  IFS=$as_save_IFS
12507  test -z "$as_dir" && as_dir=.
12508    for ac_exec_ext in '' $ac_executable_extensions; do
12509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12510    ac_cv_prog_ac_ct_RANLIB="ranlib"
12511    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12512    break 2
12513  fi
12514done
12515  done
12516IFS=$as_save_IFS
12517
12518fi
12519fi
12520ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12521if test -n "$ac_ct_RANLIB"; then
12522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12523$as_echo "$ac_ct_RANLIB" >&6; }
12524else
12525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
12527fi
12528
12529  if test "x$ac_ct_RANLIB" = x; then
12530    RANLIB=":"
12531  else
12532    case $cross_compiling:$ac_tool_warned in
12533yes:)
12534{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12536ac_tool_warned=yes ;;
12537esac
12538    RANLIB=$ac_ct_RANLIB
12539  fi
12540else
12541  RANLIB="$ac_cv_prog_RANLIB"
12542fi
12543
12544test -z "$RANLIB" && RANLIB=:
12545
12546
12547
12548
12549
12550
12551# Determine commands to create old-style static archives.
12552old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12553old_postinstall_cmds='chmod 644 $oldlib'
12554old_postuninstall_cmds=
12555
12556if test -n "$RANLIB"; then
12557  case $host_os in
12558  openbsd*)
12559    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12560    ;;
12561  *)
12562    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12563    ;;
12564  esac
12565  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12566fi
12567
12568case $host_os in
12569  darwin*)
12570    lock_old_archive_extraction=yes ;;
12571  *)
12572    lock_old_archive_extraction=no ;;
12573esac
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613# If no C compiler was specified, use CC.
12614LTCC=${LTCC-"$CC"}
12615
12616# If no C compiler flags were specified, use CFLAGS.
12617LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12618
12619# Allow CC to be a program name with arguments.
12620compiler=$CC
12621
12622
12623# Check for command to grab the raw symbol name followed by C symbol from nm.
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12625$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12626if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12627  $as_echo_n "(cached) " >&6
12628else
12629
12630# These are sane defaults that work on at least a few old systems.
12631# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12632
12633# Character class describing NM global symbol codes.
12634symcode='[BCDEGRST]'
12635
12636# Regexp to match symbols that can be accessed directly from C.
12637sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12638
12639# Define system-specific variables.
12640case $host_os in
12641aix*)
12642  symcode='[BCDT]'
12643  ;;
12644cygwin* | mingw* | pw32* | cegcc*)
12645  symcode='[ABCDGISTW]'
12646  ;;
12647hpux*)
12648  if test "$host_cpu" = ia64; then
12649    symcode='[ABCDEGRST]'
12650  fi
12651  ;;
12652irix* | nonstopux*)
12653  symcode='[BCDEGRST]'
12654  ;;
12655osf*)
12656  symcode='[BCDEGQRST]'
12657  ;;
12658solaris*)
12659  symcode='[BDRT]'
12660  ;;
12661sco3.2v5*)
12662  symcode='[DT]'
12663  ;;
12664sysv4.2uw2*)
12665  symcode='[DT]'
12666  ;;
12667sysv5* | sco5v6* | unixware* | OpenUNIX*)
12668  symcode='[ABDT]'
12669  ;;
12670sysv4)
12671  symcode='[DFNSTU]'
12672  ;;
12673esac
12674
12675# If we're using GNU nm, then use its standard symbol codes.
12676case `$NM -V 2>&1` in
12677*GNU* | *'with BFD'*)
12678  symcode='[ABCDGIRSTW]' ;;
12679esac
12680
12681# Transform an extracted symbol line into a proper C declaration.
12682# Some systems (esp. on ia64) link data and code symbols differently,
12683# so use this general approach.
12684lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12685
12686# Transform an extracted symbol line into symbol name and symbol address
12687lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12688lt_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'"
12689
12690# Handle CRLF in mingw tool chain
12691opt_cr=
12692case $build_os in
12693mingw*)
12694  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12695  ;;
12696esac
12697
12698# Try without a prefix underscore, then with it.
12699for ac_symprfx in "" "_"; do
12700
12701  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12702  symxfrm="\\1 $ac_symprfx\\2 \\2"
12703
12704  # Write the raw and C identifiers.
12705  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12706    # Fake it for dumpbin and say T for any non-static function
12707    # and D for any global variable.
12708    # Also find C++ and __fastcall symbols from MSVC++,
12709    # which start with @ or ?.
12710    lt_cv_sys_global_symbol_pipe="$AWK '"\
12711"     {last_section=section; section=\$ 3};"\
12712"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12713"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12714"     \$ 0!~/External *\|/{next};"\
12715"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12716"     {if(hide[section]) next};"\
12717"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12718"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12719"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12720"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12721"     ' prfx=^$ac_symprfx"
12722  else
12723    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12724  fi
12725  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12726
12727  # Check to see that the pipe works correctly.
12728  pipe_works=no
12729
12730  rm -f conftest*
12731  cat > conftest.$ac_ext <<_LT_EOF
12732#ifdef __cplusplus
12733extern "C" {
12734#endif
12735char nm_test_var;
12736void nm_test_func(void);
12737void nm_test_func(void){}
12738#ifdef __cplusplus
12739}
12740#endif
12741int main(){nm_test_var='a';nm_test_func();return(0);}
12742_LT_EOF
12743
12744  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12745  (eval $ac_compile) 2>&5
12746  ac_status=$?
12747  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12748  test $ac_status = 0; }; then
12749    # Now try to grab the symbols.
12750    nlist=conftest.nm
12751    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12752  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12753  ac_status=$?
12754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12755  test $ac_status = 0; } && test -s "$nlist"; then
12756      # Try sorting and uniquifying the output.
12757      if sort "$nlist" | uniq > "$nlist"T; then
12758	mv -f "$nlist"T "$nlist"
12759      else
12760	rm -f "$nlist"T
12761      fi
12762
12763      # Make sure that we snagged all the symbols we need.
12764      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12765	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12766	  cat <<_LT_EOF > conftest.$ac_ext
12767/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12768#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12769/* DATA imports from DLLs on WIN32 con't be const, because runtime
12770   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12771# define LT_DLSYM_CONST
12772#elif defined(__osf__)
12773/* This system does not cope well with relocations in const data.  */
12774# define LT_DLSYM_CONST
12775#else
12776# define LT_DLSYM_CONST const
12777#endif
12778
12779#ifdef __cplusplus
12780extern "C" {
12781#endif
12782
12783_LT_EOF
12784	  # Now generate the symbol file.
12785	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12786
12787	  cat <<_LT_EOF >> conftest.$ac_ext
12788
12789/* The mapping between symbol names and symbols.  */
12790LT_DLSYM_CONST struct {
12791  const char *name;
12792  void       *address;
12793}
12794lt__PROGRAM__LTX_preloaded_symbols[] =
12795{
12796  { "@PROGRAM@", (void *) 0 },
12797_LT_EOF
12798	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12799	  cat <<\_LT_EOF >> conftest.$ac_ext
12800  {0, (void *) 0}
12801};
12802
12803/* This works around a problem in FreeBSD linker */
12804#ifdef FREEBSD_WORKAROUND
12805static const void *lt_preloaded_setup() {
12806  return lt__PROGRAM__LTX_preloaded_symbols;
12807}
12808#endif
12809
12810#ifdef __cplusplus
12811}
12812#endif
12813_LT_EOF
12814	  # Now try linking the two files.
12815	  mv conftest.$ac_objext conftstm.$ac_objext
12816	  lt_globsym_save_LIBS=$LIBS
12817	  lt_globsym_save_CFLAGS=$CFLAGS
12818	  LIBS="conftstm.$ac_objext"
12819	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12820	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12821  (eval $ac_link) 2>&5
12822  ac_status=$?
12823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12825	    pipe_works=yes
12826	  fi
12827	  LIBS=$lt_globsym_save_LIBS
12828	  CFLAGS=$lt_globsym_save_CFLAGS
12829	else
12830	  echo "cannot find nm_test_func in $nlist" >&5
12831	fi
12832      else
12833	echo "cannot find nm_test_var in $nlist" >&5
12834      fi
12835    else
12836      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12837    fi
12838  else
12839    echo "$progname: failed program was:" >&5
12840    cat conftest.$ac_ext >&5
12841  fi
12842  rm -rf conftest* conftst*
12843
12844  # Do not use the global_symbol_pipe unless it works.
12845  if test "$pipe_works" = yes; then
12846    break
12847  else
12848    lt_cv_sys_global_symbol_pipe=
12849  fi
12850done
12851
12852fi
12853
12854if test -z "$lt_cv_sys_global_symbol_pipe"; then
12855  lt_cv_sys_global_symbol_to_cdecl=
12856fi
12857if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12859$as_echo "failed" >&6; }
12860else
12861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12862$as_echo "ok" >&6; }
12863fi
12864
12865# Response file support.
12866if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12867  nm_file_list_spec='@'
12868elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12869  nm_file_list_spec='@'
12870fi
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12899$as_echo_n "checking for sysroot... " >&6; }
12900
12901# Check whether --with-sysroot was given.
12902if test "${with_sysroot+set}" = set; then :
12903  withval=$with_sysroot;
12904else
12905  with_sysroot=no
12906fi
12907
12908
12909lt_sysroot=
12910case ${with_sysroot} in #(
12911 yes)
12912   if test "$GCC" = yes; then
12913     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12914   fi
12915   ;; #(
12916 /*)
12917   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12918   ;; #(
12919 no|'')
12920   ;; #(
12921 *)
12922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12923$as_echo "${with_sysroot}" >&6; }
12924   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12925   ;;
12926esac
12927
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12929$as_echo "${lt_sysroot:-no}" >&6; }
12930
12931
12932
12933
12934
12935# Check whether --enable-libtool-lock was given.
12936if test "${enable_libtool_lock+set}" = set; then :
12937  enableval=$enable_libtool_lock;
12938fi
12939
12940test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12941
12942# Some flags need to be propagated to the compiler or linker for good
12943# libtool support.
12944case $host in
12945ia64-*-hpux*)
12946  # Find out which ABI we are using.
12947  echo 'int i;' > conftest.$ac_ext
12948  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12949  (eval $ac_compile) 2>&5
12950  ac_status=$?
12951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12952  test $ac_status = 0; }; then
12953    case `/usr/bin/file conftest.$ac_objext` in
12954      *ELF-32*)
12955	HPUX_IA64_MODE="32"
12956	;;
12957      *ELF-64*)
12958	HPUX_IA64_MODE="64"
12959	;;
12960    esac
12961  fi
12962  rm -rf conftest*
12963  ;;
12964*-*-irix6*)
12965  # Find out which ABI we are using.
12966  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12967  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12968  (eval $ac_compile) 2>&5
12969  ac_status=$?
12970  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971  test $ac_status = 0; }; then
12972    if test "$lt_cv_prog_gnu_ld" = yes; then
12973      case `/usr/bin/file conftest.$ac_objext` in
12974	*32-bit*)
12975	  LD="${LD-ld} -melf32bsmip"
12976	  ;;
12977	*N32*)
12978	  LD="${LD-ld} -melf32bmipn32"
12979	  ;;
12980	*64-bit*)
12981	  LD="${LD-ld} -melf64bmip"
12982	;;
12983      esac
12984    else
12985      case `/usr/bin/file conftest.$ac_objext` in
12986	*32-bit*)
12987	  LD="${LD-ld} -32"
12988	  ;;
12989	*N32*)
12990	  LD="${LD-ld} -n32"
12991	  ;;
12992	*64-bit*)
12993	  LD="${LD-ld} -64"
12994	  ;;
12995      esac
12996    fi
12997  fi
12998  rm -rf conftest*
12999  ;;
13000
13001x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13002s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13003  # Find out which ABI we are using.
13004  echo 'int i;' > conftest.$ac_ext
13005  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13006  (eval $ac_compile) 2>&5
13007  ac_status=$?
13008  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13009  test $ac_status = 0; }; then
13010    case `/usr/bin/file conftest.o` in
13011      *32-bit*)
13012	case $host in
13013	  x86_64-*kfreebsd*-gnu)
13014	    LD="${LD-ld} -m elf_i386_fbsd"
13015	    ;;
13016	  x86_64-*linux*)
13017	    LD="${LD-ld} -m elf_i386"
13018	    ;;
13019	  ppc64-*linux*|powerpc64-*linux*)
13020	    LD="${LD-ld} -m elf32ppclinux"
13021	    ;;
13022	  s390x-*linux*)
13023	    LD="${LD-ld} -m elf_s390"
13024	    ;;
13025	  sparc64-*linux*)
13026	    LD="${LD-ld} -m elf32_sparc"
13027	    ;;
13028	esac
13029	;;
13030      *64-bit*)
13031	case $host in
13032	  x86_64-*kfreebsd*-gnu)
13033	    LD="${LD-ld} -m elf_x86_64_fbsd"
13034	    ;;
13035	  x86_64-*linux*)
13036	    LD="${LD-ld} -m elf_x86_64"
13037	    ;;
13038	  ppc*-*linux*|powerpc*-*linux*)
13039	    LD="${LD-ld} -m elf64ppc"
13040	    ;;
13041	  s390*-*linux*|s390*-*tpf*)
13042	    LD="${LD-ld} -m elf64_s390"
13043	    ;;
13044	  sparc*-*linux*)
13045	    LD="${LD-ld} -m elf64_sparc"
13046	    ;;
13047	esac
13048	;;
13049    esac
13050  fi
13051  rm -rf conftest*
13052  ;;
13053
13054*-*-sco3.2v5*)
13055  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13056  SAVE_CFLAGS="$CFLAGS"
13057  CFLAGS="$CFLAGS -belf"
13058  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13059$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13060if ${lt_cv_cc_needs_belf+:} false; then :
13061  $as_echo_n "(cached) " >&6
13062else
13063  ac_ext=c
13064ac_cpp='$CPP $CPPFLAGS'
13065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13067ac_compiler_gnu=$ac_cv_c_compiler_gnu
13068
13069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13070/* end confdefs.h.  */
13071
13072int
13073main ()
13074{
13075
13076  ;
13077  return 0;
13078}
13079_ACEOF
13080if ac_fn_c_try_link "$LINENO"; then :
13081  lt_cv_cc_needs_belf=yes
13082else
13083  lt_cv_cc_needs_belf=no
13084fi
13085rm -f core conftest.err conftest.$ac_objext \
13086    conftest$ac_exeext conftest.$ac_ext
13087     ac_ext=c
13088ac_cpp='$CPP $CPPFLAGS'
13089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13091ac_compiler_gnu=$ac_cv_c_compiler_gnu
13092
13093fi
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13095$as_echo "$lt_cv_cc_needs_belf" >&6; }
13096  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13097    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13098    CFLAGS="$SAVE_CFLAGS"
13099  fi
13100  ;;
13101*-*solaris*)
13102  # Find out which ABI we are using.
13103  echo 'int i;' > conftest.$ac_ext
13104  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13105  (eval $ac_compile) 2>&5
13106  ac_status=$?
13107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108  test $ac_status = 0; }; then
13109    case `/usr/bin/file conftest.o` in
13110    *64-bit*)
13111      case $lt_cv_prog_gnu_ld in
13112      yes*)
13113        case $host in
13114        i?86-*-solaris*)
13115          LD="${LD-ld} -m elf_x86_64"
13116          ;;
13117        sparc*-*-solaris*)
13118          LD="${LD-ld} -m elf64_sparc"
13119          ;;
13120        esac
13121        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13122        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13123          LD="${LD-ld}_sol2"
13124        fi
13125        ;;
13126      *)
13127	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13128	  LD="${LD-ld} -64"
13129	fi
13130	;;
13131      esac
13132      ;;
13133    esac
13134  fi
13135  rm -rf conftest*
13136  ;;
13137esac
13138
13139need_locks="$enable_libtool_lock"
13140
13141if test -n "$ac_tool_prefix"; then
13142  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13143set dummy ${ac_tool_prefix}mt; ac_word=$2
13144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145$as_echo_n "checking for $ac_word... " >&6; }
13146if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13147  $as_echo_n "(cached) " >&6
13148else
13149  if test -n "$MANIFEST_TOOL"; then
13150  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13151else
13152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153for as_dir in $PATH
13154do
13155  IFS=$as_save_IFS
13156  test -z "$as_dir" && as_dir=.
13157    for ac_exec_ext in '' $ac_executable_extensions; do
13158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161    break 2
13162  fi
13163done
13164  done
13165IFS=$as_save_IFS
13166
13167fi
13168fi
13169MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13170if test -n "$MANIFEST_TOOL"; then
13171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13172$as_echo "$MANIFEST_TOOL" >&6; }
13173else
13174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175$as_echo "no" >&6; }
13176fi
13177
13178
13179fi
13180if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13181  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13182  # Extract the first word of "mt", so it can be a program name with args.
13183set dummy mt; ac_word=$2
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185$as_echo_n "checking for $ac_word... " >&6; }
13186if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13187  $as_echo_n "(cached) " >&6
13188else
13189  if test -n "$ac_ct_MANIFEST_TOOL"; then
13190  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13191else
13192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $PATH
13194do
13195  IFS=$as_save_IFS
13196  test -z "$as_dir" && as_dir=.
13197    for ac_exec_ext in '' $ac_executable_extensions; do
13198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13199    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201    break 2
13202  fi
13203done
13204  done
13205IFS=$as_save_IFS
13206
13207fi
13208fi
13209ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13210if test -n "$ac_ct_MANIFEST_TOOL"; then
13211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13212$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13213else
13214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215$as_echo "no" >&6; }
13216fi
13217
13218  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13219    MANIFEST_TOOL=":"
13220  else
13221    case $cross_compiling:$ac_tool_warned in
13222yes:)
13223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13225ac_tool_warned=yes ;;
13226esac
13227    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13228  fi
13229else
13230  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13231fi
13232
13233test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13235$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13236if ${lt_cv_path_mainfest_tool+:} false; then :
13237  $as_echo_n "(cached) " >&6
13238else
13239  lt_cv_path_mainfest_tool=no
13240  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13241  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13242  cat conftest.err >&5
13243  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13244    lt_cv_path_mainfest_tool=yes
13245  fi
13246  rm -f conftest*
13247fi
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13249$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13250if test "x$lt_cv_path_mainfest_tool" != xyes; then
13251  MANIFEST_TOOL=:
13252fi
13253
13254
13255
13256
13257
13258
13259  case $host_os in
13260    rhapsody* | darwin*)
13261    if test -n "$ac_tool_prefix"; then
13262  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13263set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if ${ac_cv_prog_DSYMUTIL+:} false; then :
13267  $as_echo_n "(cached) " >&6
13268else
13269  if test -n "$DSYMUTIL"; then
13270  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13271else
13272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275  IFS=$as_save_IFS
13276  test -z "$as_dir" && as_dir=.
13277    for ac_exec_ext in '' $ac_executable_extensions; do
13278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13279    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13280    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281    break 2
13282  fi
13283done
13284  done
13285IFS=$as_save_IFS
13286
13287fi
13288fi
13289DSYMUTIL=$ac_cv_prog_DSYMUTIL
13290if test -n "$DSYMUTIL"; then
13291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13292$as_echo "$DSYMUTIL" >&6; }
13293else
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295$as_echo "no" >&6; }
13296fi
13297
13298
13299fi
13300if test -z "$ac_cv_prog_DSYMUTIL"; then
13301  ac_ct_DSYMUTIL=$DSYMUTIL
13302  # Extract the first word of "dsymutil", so it can be a program name with args.
13303set dummy dsymutil; ac_word=$2
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13305$as_echo_n "checking for $ac_word... " >&6; }
13306if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13307  $as_echo_n "(cached) " >&6
13308else
13309  if test -n "$ac_ct_DSYMUTIL"; then
13310  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13311else
13312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313for as_dir in $PATH
13314do
13315  IFS=$as_save_IFS
13316  test -z "$as_dir" && as_dir=.
13317    for ac_exec_ext in '' $ac_executable_extensions; do
13318  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13319    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13320    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13321    break 2
13322  fi
13323done
13324  done
13325IFS=$as_save_IFS
13326
13327fi
13328fi
13329ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13330if test -n "$ac_ct_DSYMUTIL"; then
13331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13332$as_echo "$ac_ct_DSYMUTIL" >&6; }
13333else
13334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335$as_echo "no" >&6; }
13336fi
13337
13338  if test "x$ac_ct_DSYMUTIL" = x; then
13339    DSYMUTIL=":"
13340  else
13341    case $cross_compiling:$ac_tool_warned in
13342yes:)
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13344$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13345ac_tool_warned=yes ;;
13346esac
13347    DSYMUTIL=$ac_ct_DSYMUTIL
13348  fi
13349else
13350  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13351fi
13352
13353    if test -n "$ac_tool_prefix"; then
13354  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13355set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13357$as_echo_n "checking for $ac_word... " >&6; }
13358if ${ac_cv_prog_NMEDIT+:} false; then :
13359  $as_echo_n "(cached) " >&6
13360else
13361  if test -n "$NMEDIT"; then
13362  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13363else
13364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365for as_dir in $PATH
13366do
13367  IFS=$as_save_IFS
13368  test -z "$as_dir" && as_dir=.
13369    for ac_exec_ext in '' $ac_executable_extensions; do
13370  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13371    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13373    break 2
13374  fi
13375done
13376  done
13377IFS=$as_save_IFS
13378
13379fi
13380fi
13381NMEDIT=$ac_cv_prog_NMEDIT
13382if test -n "$NMEDIT"; then
13383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13384$as_echo "$NMEDIT" >&6; }
13385else
13386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13387$as_echo "no" >&6; }
13388fi
13389
13390
13391fi
13392if test -z "$ac_cv_prog_NMEDIT"; then
13393  ac_ct_NMEDIT=$NMEDIT
13394  # Extract the first word of "nmedit", so it can be a program name with args.
13395set dummy nmedit; ac_word=$2
13396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397$as_echo_n "checking for $ac_word... " >&6; }
13398if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13399  $as_echo_n "(cached) " >&6
13400else
13401  if test -n "$ac_ct_NMEDIT"; then
13402  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13403else
13404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405for as_dir in $PATH
13406do
13407  IFS=$as_save_IFS
13408  test -z "$as_dir" && as_dir=.
13409    for ac_exec_ext in '' $ac_executable_extensions; do
13410  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13411    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13412    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13413    break 2
13414  fi
13415done
13416  done
13417IFS=$as_save_IFS
13418
13419fi
13420fi
13421ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13422if test -n "$ac_ct_NMEDIT"; then
13423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13424$as_echo "$ac_ct_NMEDIT" >&6; }
13425else
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13427$as_echo "no" >&6; }
13428fi
13429
13430  if test "x$ac_ct_NMEDIT" = x; then
13431    NMEDIT=":"
13432  else
13433    case $cross_compiling:$ac_tool_warned in
13434yes:)
13435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13437ac_tool_warned=yes ;;
13438esac
13439    NMEDIT=$ac_ct_NMEDIT
13440  fi
13441else
13442  NMEDIT="$ac_cv_prog_NMEDIT"
13443fi
13444
13445    if test -n "$ac_tool_prefix"; then
13446  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13447set dummy ${ac_tool_prefix}lipo; ac_word=$2
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13449$as_echo_n "checking for $ac_word... " >&6; }
13450if ${ac_cv_prog_LIPO+:} false; then :
13451  $as_echo_n "(cached) " >&6
13452else
13453  if test -n "$LIPO"; then
13454  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13455else
13456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13457for as_dir in $PATH
13458do
13459  IFS=$as_save_IFS
13460  test -z "$as_dir" && as_dir=.
13461    for ac_exec_ext in '' $ac_executable_extensions; do
13462  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13463    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13464    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13465    break 2
13466  fi
13467done
13468  done
13469IFS=$as_save_IFS
13470
13471fi
13472fi
13473LIPO=$ac_cv_prog_LIPO
13474if test -n "$LIPO"; then
13475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13476$as_echo "$LIPO" >&6; }
13477else
13478  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13479$as_echo "no" >&6; }
13480fi
13481
13482
13483fi
13484if test -z "$ac_cv_prog_LIPO"; then
13485  ac_ct_LIPO=$LIPO
13486  # Extract the first word of "lipo", so it can be a program name with args.
13487set dummy lipo; ac_word=$2
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489$as_echo_n "checking for $ac_word... " >&6; }
13490if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13491  $as_echo_n "(cached) " >&6
13492else
13493  if test -n "$ac_ct_LIPO"; then
13494  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13495else
13496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497for as_dir in $PATH
13498do
13499  IFS=$as_save_IFS
13500  test -z "$as_dir" && as_dir=.
13501    for ac_exec_ext in '' $ac_executable_extensions; do
13502  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13503    ac_cv_prog_ac_ct_LIPO="lipo"
13504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13505    break 2
13506  fi
13507done
13508  done
13509IFS=$as_save_IFS
13510
13511fi
13512fi
13513ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13514if test -n "$ac_ct_LIPO"; then
13515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13516$as_echo "$ac_ct_LIPO" >&6; }
13517else
13518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519$as_echo "no" >&6; }
13520fi
13521
13522  if test "x$ac_ct_LIPO" = x; then
13523    LIPO=":"
13524  else
13525    case $cross_compiling:$ac_tool_warned in
13526yes:)
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13529ac_tool_warned=yes ;;
13530esac
13531    LIPO=$ac_ct_LIPO
13532  fi
13533else
13534  LIPO="$ac_cv_prog_LIPO"
13535fi
13536
13537    if test -n "$ac_tool_prefix"; then
13538  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13539set dummy ${ac_tool_prefix}otool; ac_word=$2
13540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13541$as_echo_n "checking for $ac_word... " >&6; }
13542if ${ac_cv_prog_OTOOL+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  if test -n "$OTOOL"; then
13546  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13547else
13548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH
13550do
13551  IFS=$as_save_IFS
13552  test -z "$as_dir" && as_dir=.
13553    for ac_exec_ext in '' $ac_executable_extensions; do
13554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557    break 2
13558  fi
13559done
13560  done
13561IFS=$as_save_IFS
13562
13563fi
13564fi
13565OTOOL=$ac_cv_prog_OTOOL
13566if test -n "$OTOOL"; then
13567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13568$as_echo "$OTOOL" >&6; }
13569else
13570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13571$as_echo "no" >&6; }
13572fi
13573
13574
13575fi
13576if test -z "$ac_cv_prog_OTOOL"; then
13577  ac_ct_OTOOL=$OTOOL
13578  # Extract the first word of "otool", so it can be a program name with args.
13579set dummy otool; ac_word=$2
13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13581$as_echo_n "checking for $ac_word... " >&6; }
13582if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13583  $as_echo_n "(cached) " >&6
13584else
13585  if test -n "$ac_ct_OTOOL"; then
13586  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13587else
13588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH
13590do
13591  IFS=$as_save_IFS
13592  test -z "$as_dir" && as_dir=.
13593    for ac_exec_ext in '' $ac_executable_extensions; do
13594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595    ac_cv_prog_ac_ct_OTOOL="otool"
13596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13597    break 2
13598  fi
13599done
13600  done
13601IFS=$as_save_IFS
13602
13603fi
13604fi
13605ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13606if test -n "$ac_ct_OTOOL"; then
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13608$as_echo "$ac_ct_OTOOL" >&6; }
13609else
13610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13611$as_echo "no" >&6; }
13612fi
13613
13614  if test "x$ac_ct_OTOOL" = x; then
13615    OTOOL=":"
13616  else
13617    case $cross_compiling:$ac_tool_warned in
13618yes:)
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13621ac_tool_warned=yes ;;
13622esac
13623    OTOOL=$ac_ct_OTOOL
13624  fi
13625else
13626  OTOOL="$ac_cv_prog_OTOOL"
13627fi
13628
13629    if test -n "$ac_tool_prefix"; then
13630  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13631set dummy ${ac_tool_prefix}otool64; ac_word=$2
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13633$as_echo_n "checking for $ac_word... " >&6; }
13634if ${ac_cv_prog_OTOOL64+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637  if test -n "$OTOOL64"; then
13638  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13639else
13640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641for as_dir in $PATH
13642do
13643  IFS=$as_save_IFS
13644  test -z "$as_dir" && as_dir=.
13645    for ac_exec_ext in '' $ac_executable_extensions; do
13646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13647    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13649    break 2
13650  fi
13651done
13652  done
13653IFS=$as_save_IFS
13654
13655fi
13656fi
13657OTOOL64=$ac_cv_prog_OTOOL64
13658if test -n "$OTOOL64"; then
13659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13660$as_echo "$OTOOL64" >&6; }
13661else
13662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13663$as_echo "no" >&6; }
13664fi
13665
13666
13667fi
13668if test -z "$ac_cv_prog_OTOOL64"; then
13669  ac_ct_OTOOL64=$OTOOL64
13670  # Extract the first word of "otool64", so it can be a program name with args.
13671set dummy otool64; ac_word=$2
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13673$as_echo_n "checking for $ac_word... " >&6; }
13674if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13675  $as_echo_n "(cached) " >&6
13676else
13677  if test -n "$ac_ct_OTOOL64"; then
13678  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13679else
13680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13681for as_dir in $PATH
13682do
13683  IFS=$as_save_IFS
13684  test -z "$as_dir" && as_dir=.
13685    for ac_exec_ext in '' $ac_executable_extensions; do
13686  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13687    ac_cv_prog_ac_ct_OTOOL64="otool64"
13688    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13689    break 2
13690  fi
13691done
13692  done
13693IFS=$as_save_IFS
13694
13695fi
13696fi
13697ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13698if test -n "$ac_ct_OTOOL64"; then
13699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13700$as_echo "$ac_ct_OTOOL64" >&6; }
13701else
13702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13703$as_echo "no" >&6; }
13704fi
13705
13706  if test "x$ac_ct_OTOOL64" = x; then
13707    OTOOL64=":"
13708  else
13709    case $cross_compiling:$ac_tool_warned in
13710yes:)
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13713ac_tool_warned=yes ;;
13714esac
13715    OTOOL64=$ac_ct_OTOOL64
13716  fi
13717else
13718  OTOOL64="$ac_cv_prog_OTOOL64"
13719fi
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13748$as_echo_n "checking for -single_module linker flag... " >&6; }
13749if ${lt_cv_apple_cc_single_mod+:} false; then :
13750  $as_echo_n "(cached) " >&6
13751else
13752  lt_cv_apple_cc_single_mod=no
13753      if test -z "${LT_MULTI_MODULE}"; then
13754	# By default we will add the -single_module flag. You can override
13755	# by either setting the environment variable LT_MULTI_MODULE
13756	# non-empty at configure time, or by adding -multi_module to the
13757	# link flags.
13758	rm -rf libconftest.dylib*
13759	echo "int foo(void){return 1;}" > conftest.c
13760	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13761-dynamiclib -Wl,-single_module conftest.c" >&5
13762	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13763	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13764        _lt_result=$?
13765	# If there is a non-empty error log, and "single_module"
13766	# appears in it, assume the flag caused a linker warning
13767        if test -s conftest.err && $GREP single_module conftest.err; then
13768	  cat conftest.err >&5
13769	# Otherwise, if the output was created with a 0 exit code from
13770	# the compiler, it worked.
13771	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13772	  lt_cv_apple_cc_single_mod=yes
13773	else
13774	  cat conftest.err >&5
13775	fi
13776	rm -rf libconftest.dylib*
13777	rm -f conftest.*
13778      fi
13779fi
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13781$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13782
13783    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13784$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13785if ${lt_cv_ld_exported_symbols_list+:} false; then :
13786  $as_echo_n "(cached) " >&6
13787else
13788  lt_cv_ld_exported_symbols_list=no
13789      save_LDFLAGS=$LDFLAGS
13790      echo "_main" > conftest.sym
13791      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13792      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793/* end confdefs.h.  */
13794
13795int
13796main ()
13797{
13798
13799  ;
13800  return 0;
13801}
13802_ACEOF
13803if ac_fn_c_try_link "$LINENO"; then :
13804  lt_cv_ld_exported_symbols_list=yes
13805else
13806  lt_cv_ld_exported_symbols_list=no
13807fi
13808rm -f core conftest.err conftest.$ac_objext \
13809    conftest$ac_exeext conftest.$ac_ext
13810	LDFLAGS="$save_LDFLAGS"
13811
13812fi
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13814$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13815
13816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13817$as_echo_n "checking for -force_load linker flag... " >&6; }
13818if ${lt_cv_ld_force_load+:} false; then :
13819  $as_echo_n "(cached) " >&6
13820else
13821  lt_cv_ld_force_load=no
13822      cat > conftest.c << _LT_EOF
13823int forced_loaded() { return 2;}
13824_LT_EOF
13825      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13826      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13827      echo "$AR cru libconftest.a conftest.o" >&5
13828      $AR cru libconftest.a conftest.o 2>&5
13829      echo "$RANLIB libconftest.a" >&5
13830      $RANLIB libconftest.a 2>&5
13831      cat > conftest.c << _LT_EOF
13832int main() { return 0;}
13833_LT_EOF
13834      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13835      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13836      _lt_result=$?
13837      if test -s conftest.err && $GREP force_load conftest.err; then
13838	cat conftest.err >&5
13839      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13840	lt_cv_ld_force_load=yes
13841      else
13842	cat conftest.err >&5
13843      fi
13844        rm -f conftest.err libconftest.a conftest conftest.c
13845        rm -rf conftest.dSYM
13846
13847fi
13848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13849$as_echo "$lt_cv_ld_force_load" >&6; }
13850    case $host_os in
13851    rhapsody* | darwin1.[012])
13852      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13853    darwin1.*)
13854      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13855    darwin*) # darwin 5.x on
13856      # if running on 10.5 or later, the deployment target defaults
13857      # to the OS version, if on x86, and 10.4, the deployment
13858      # target defaults to 10.4. Don't you love it?
13859      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13860	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13861	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13862	10.[012]*)
13863	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13864	10.*)
13865	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13866      esac
13867    ;;
13868  esac
13869    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13870      _lt_dar_single_mod='$single_module'
13871    fi
13872    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13873      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13874    else
13875      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13876    fi
13877    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13878      _lt_dsymutil='~$DSYMUTIL $lib || :'
13879    else
13880      _lt_dsymutil=
13881    fi
13882    ;;
13883  esac
13884
13885for ac_header in dlfcn.h
13886do :
13887  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13888"
13889if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13890  cat >>confdefs.h <<_ACEOF
13891#define HAVE_DLFCN_H 1
13892_ACEOF
13893
13894fi
13895
13896done
13897
13898
13899
13900
13901
13902# Set options
13903
13904
13905
13906        enable_dlopen=no
13907
13908
13909  enable_win32_dll=no
13910
13911
13912            # Check whether --enable-shared was given.
13913if test "${enable_shared+set}" = set; then :
13914  enableval=$enable_shared; p=${PACKAGE-default}
13915    case $enableval in
13916    yes) enable_shared=yes ;;
13917    no) enable_shared=no ;;
13918    *)
13919      enable_shared=no
13920      # Look at the argument we got.  We use all the common list separators.
13921      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13922      for pkg in $enableval; do
13923	IFS="$lt_save_ifs"
13924	if test "X$pkg" = "X$p"; then
13925	  enable_shared=yes
13926	fi
13927      done
13928      IFS="$lt_save_ifs"
13929      ;;
13930    esac
13931else
13932  enable_shared=yes
13933fi
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945# Check whether --with-pic was given.
13946if test "${with_pic+set}" = set; then :
13947  withval=$with_pic; lt_p=${PACKAGE-default}
13948    case $withval in
13949    yes|no) pic_mode=$withval ;;
13950    *)
13951      pic_mode=default
13952      # Look at the argument we got.  We use all the common list separators.
13953      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13954      for lt_pkg in $withval; do
13955	IFS="$lt_save_ifs"
13956	if test "X$lt_pkg" = "X$lt_p"; then
13957	  pic_mode=yes
13958	fi
13959      done
13960      IFS="$lt_save_ifs"
13961      ;;
13962    esac
13963else
13964  pic_mode=default
13965fi
13966
13967
13968test -z "$pic_mode" && pic_mode=default
13969
13970
13971
13972
13973
13974
13975
13976  # Check whether --enable-fast-install was given.
13977if test "${enable_fast_install+set}" = set; then :
13978  enableval=$enable_fast_install; p=${PACKAGE-default}
13979    case $enableval in
13980    yes) enable_fast_install=yes ;;
13981    no) enable_fast_install=no ;;
13982    *)
13983      enable_fast_install=no
13984      # Look at the argument we got.  We use all the common list separators.
13985      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13986      for pkg in $enableval; do
13987	IFS="$lt_save_ifs"
13988	if test "X$pkg" = "X$p"; then
13989	  enable_fast_install=yes
13990	fi
13991      done
13992      IFS="$lt_save_ifs"
13993      ;;
13994    esac
13995else
13996  enable_fast_install=yes
13997fi
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009# This can be used to rebuild libtool when needed
14010LIBTOOL_DEPS="$ltmain"
14011
14012# Always use our own libtool.
14013LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044test -z "$LN_S" && LN_S="ln -s"
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059if test -n "${ZSH_VERSION+set}" ; then
14060   setopt NO_GLOB_SUBST
14061fi
14062
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14064$as_echo_n "checking for objdir... " >&6; }
14065if ${lt_cv_objdir+:} false; then :
14066  $as_echo_n "(cached) " >&6
14067else
14068  rm -f .libs 2>/dev/null
14069mkdir .libs 2>/dev/null
14070if test -d .libs; then
14071  lt_cv_objdir=.libs
14072else
14073  # MS-DOS does not allow filenames that begin with a dot.
14074  lt_cv_objdir=_libs
14075fi
14076rmdir .libs 2>/dev/null
14077fi
14078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14079$as_echo "$lt_cv_objdir" >&6; }
14080objdir=$lt_cv_objdir
14081
14082
14083
14084
14085
14086cat >>confdefs.h <<_ACEOF
14087#define LT_OBJDIR "$lt_cv_objdir/"
14088_ACEOF
14089
14090
14091
14092
14093case $host_os in
14094aix3*)
14095  # AIX sometimes has problems with the GCC collect2 program.  For some
14096  # reason, if we set the COLLECT_NAMES environment variable, the problems
14097  # vanish in a puff of smoke.
14098  if test "X${COLLECT_NAMES+set}" != Xset; then
14099    COLLECT_NAMES=
14100    export COLLECT_NAMES
14101  fi
14102  ;;
14103esac
14104
14105# Global variables:
14106ofile=libtool
14107can_build_shared=yes
14108
14109# All known linkers require a `.a' archive for static linking (except MSVC,
14110# which needs '.lib').
14111libext=a
14112
14113with_gnu_ld="$lt_cv_prog_gnu_ld"
14114
14115old_CC="$CC"
14116old_CFLAGS="$CFLAGS"
14117
14118# Set sane defaults for various variables
14119test -z "$CC" && CC=cc
14120test -z "$LTCC" && LTCC=$CC
14121test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14122test -z "$LD" && LD=ld
14123test -z "$ac_objext" && ac_objext=o
14124
14125for cc_temp in $compiler""; do
14126  case $cc_temp in
14127    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14128    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14129    \-*) ;;
14130    *) break;;
14131  esac
14132done
14133cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14134
14135
14136# Only perform the check for file, if the check method requires it
14137test -z "$MAGIC_CMD" && MAGIC_CMD=file
14138case $deplibs_check_method in
14139file_magic*)
14140  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14142$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14143if ${lt_cv_path_MAGIC_CMD+:} false; then :
14144  $as_echo_n "(cached) " >&6
14145else
14146  case $MAGIC_CMD in
14147[\\/*] |  ?:[\\/]*)
14148  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14149  ;;
14150*)
14151  lt_save_MAGIC_CMD="$MAGIC_CMD"
14152  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14153  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14154  for ac_dir in $ac_dummy; do
14155    IFS="$lt_save_ifs"
14156    test -z "$ac_dir" && ac_dir=.
14157    if test -f $ac_dir/${ac_tool_prefix}file; then
14158      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14159      if test -n "$file_magic_test_file"; then
14160	case $deplibs_check_method in
14161	"file_magic "*)
14162	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14163	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14164	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14165	    $EGREP "$file_magic_regex" > /dev/null; then
14166	    :
14167	  else
14168	    cat <<_LT_EOF 1>&2
14169
14170*** Warning: the command libtool uses to detect shared libraries,
14171*** $file_magic_cmd, produces output that libtool cannot recognize.
14172*** The result is that libtool may fail to recognize shared libraries
14173*** as such.  This will affect the creation of libtool libraries that
14174*** depend on shared libraries, but programs linked with such libtool
14175*** libraries will work regardless of this problem.  Nevertheless, you
14176*** may want to report the problem to your system manager and/or to
14177*** bug-libtool@gnu.org
14178
14179_LT_EOF
14180	  fi ;;
14181	esac
14182      fi
14183      break
14184    fi
14185  done
14186  IFS="$lt_save_ifs"
14187  MAGIC_CMD="$lt_save_MAGIC_CMD"
14188  ;;
14189esac
14190fi
14191
14192MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14193if test -n "$MAGIC_CMD"; then
14194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14195$as_echo "$MAGIC_CMD" >&6; }
14196else
14197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14198$as_echo "no" >&6; }
14199fi
14200
14201
14202
14203
14204
14205if test -z "$lt_cv_path_MAGIC_CMD"; then
14206  if test -n "$ac_tool_prefix"; then
14207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14208$as_echo_n "checking for file... " >&6; }
14209if ${lt_cv_path_MAGIC_CMD+:} false; then :
14210  $as_echo_n "(cached) " >&6
14211else
14212  case $MAGIC_CMD in
14213[\\/*] |  ?:[\\/]*)
14214  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14215  ;;
14216*)
14217  lt_save_MAGIC_CMD="$MAGIC_CMD"
14218  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14219  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14220  for ac_dir in $ac_dummy; do
14221    IFS="$lt_save_ifs"
14222    test -z "$ac_dir" && ac_dir=.
14223    if test -f $ac_dir/file; then
14224      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14225      if test -n "$file_magic_test_file"; then
14226	case $deplibs_check_method in
14227	"file_magic "*)
14228	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14229	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14230	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14231	    $EGREP "$file_magic_regex" > /dev/null; then
14232	    :
14233	  else
14234	    cat <<_LT_EOF 1>&2
14235
14236*** Warning: the command libtool uses to detect shared libraries,
14237*** $file_magic_cmd, produces output that libtool cannot recognize.
14238*** The result is that libtool may fail to recognize shared libraries
14239*** as such.  This will affect the creation of libtool libraries that
14240*** depend on shared libraries, but programs linked with such libtool
14241*** libraries will work regardless of this problem.  Nevertheless, you
14242*** may want to report the problem to your system manager and/or to
14243*** bug-libtool@gnu.org
14244
14245_LT_EOF
14246	  fi ;;
14247	esac
14248      fi
14249      break
14250    fi
14251  done
14252  IFS="$lt_save_ifs"
14253  MAGIC_CMD="$lt_save_MAGIC_CMD"
14254  ;;
14255esac
14256fi
14257
14258MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14259if test -n "$MAGIC_CMD"; then
14260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14261$as_echo "$MAGIC_CMD" >&6; }
14262else
14263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264$as_echo "no" >&6; }
14265fi
14266
14267
14268  else
14269    MAGIC_CMD=:
14270  fi
14271fi
14272
14273  fi
14274  ;;
14275esac
14276
14277# Use C for the default configuration in the libtool script
14278
14279lt_save_CC="$CC"
14280ac_ext=c
14281ac_cpp='$CPP $CPPFLAGS'
14282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284ac_compiler_gnu=$ac_cv_c_compiler_gnu
14285
14286
14287# Source file extension for C test sources.
14288ac_ext=c
14289
14290# Object file extension for compiled C test sources.
14291objext=o
14292objext=$objext
14293
14294# Code to be used in simple compile tests
14295lt_simple_compile_test_code="int some_variable = 0;"
14296
14297# Code to be used in simple link tests
14298lt_simple_link_test_code='int main(){return(0);}'
14299
14300
14301
14302
14303
14304
14305
14306# If no C compiler was specified, use CC.
14307LTCC=${LTCC-"$CC"}
14308
14309# If no C compiler flags were specified, use CFLAGS.
14310LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14311
14312# Allow CC to be a program name with arguments.
14313compiler=$CC
14314
14315# Save the default compiler, since it gets overwritten when the other
14316# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14317compiler_DEFAULT=$CC
14318
14319# save warnings/boilerplate of simple test code
14320ac_outfile=conftest.$ac_objext
14321echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14322eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14323_lt_compiler_boilerplate=`cat conftest.err`
14324$RM conftest*
14325
14326ac_outfile=conftest.$ac_objext
14327echo "$lt_simple_link_test_code" >conftest.$ac_ext
14328eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14329_lt_linker_boilerplate=`cat conftest.err`
14330$RM -r conftest*
14331
14332
14333if test -n "$compiler"; then
14334
14335lt_prog_compiler_no_builtin_flag=
14336
14337if test "$GCC" = yes; then
14338  case $cc_basename in
14339  nvcc*)
14340    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14341  *)
14342    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14343  esac
14344
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14346$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14347if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  lt_cv_prog_compiler_rtti_exceptions=no
14351   ac_outfile=conftest.$ac_objext
14352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14353   lt_compiler_flag="-fno-rtti -fno-exceptions"
14354   # Insert the option either (1) after the last *FLAGS variable, or
14355   # (2) before a word containing "conftest.", or (3) at the end.
14356   # Note that $ac_compile itself does not contain backslashes and begins
14357   # with a dollar sign (not a hyphen), so the echo should work correctly.
14358   # The option is referenced via a variable to avoid confusing sed.
14359   lt_compile=`echo "$ac_compile" | $SED \
14360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14362   -e 's:$: $lt_compiler_flag:'`
14363   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14364   (eval "$lt_compile" 2>conftest.err)
14365   ac_status=$?
14366   cat conftest.err >&5
14367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368   if (exit $ac_status) && test -s "$ac_outfile"; then
14369     # The compiler can only warn and ignore the option if not recognized
14370     # So say no if there are warnings other than the usual output.
14371     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14372     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14373     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14374       lt_cv_prog_compiler_rtti_exceptions=yes
14375     fi
14376   fi
14377   $RM conftest*
14378
14379fi
14380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14381$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14382
14383if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14384    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14385else
14386    :
14387fi
14388
14389fi
14390
14391
14392
14393
14394
14395
14396  lt_prog_compiler_wl=
14397lt_prog_compiler_pic=
14398lt_prog_compiler_static=
14399
14400
14401  if test "$GCC" = yes; then
14402    lt_prog_compiler_wl='-Wl,'
14403    lt_prog_compiler_static='-static'
14404
14405    case $host_os in
14406      aix*)
14407      # All AIX code is PIC.
14408      if test "$host_cpu" = ia64; then
14409	# AIX 5 now supports IA64 processor
14410	lt_prog_compiler_static='-Bstatic'
14411      fi
14412      ;;
14413
14414    amigaos*)
14415      case $host_cpu in
14416      powerpc)
14417            # see comment about AmigaOS4 .so support
14418            lt_prog_compiler_pic='-fPIC'
14419        ;;
14420      m68k)
14421            # FIXME: we need at least 68020 code to build shared libraries, but
14422            # adding the `-m68020' flag to GCC prevents building anything better,
14423            # like `-m68040'.
14424            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14425        ;;
14426      esac
14427      ;;
14428
14429    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14430      # PIC is the default for these OSes.
14431      ;;
14432
14433    mingw* | cygwin* | pw32* | os2* | cegcc*)
14434      # This hack is so that the source file can tell whether it is being
14435      # built for inclusion in a dll (and should export symbols for example).
14436      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14437      # (--disable-auto-import) libraries
14438      lt_prog_compiler_pic='-DDLL_EXPORT'
14439      ;;
14440
14441    darwin* | rhapsody*)
14442      # PIC is the default on this platform
14443      # Common symbols not allowed in MH_DYLIB files
14444      lt_prog_compiler_pic='-fno-common'
14445      ;;
14446
14447    haiku*)
14448      # PIC is the default for Haiku.
14449      # The "-static" flag exists, but is broken.
14450      lt_prog_compiler_static=
14451      ;;
14452
14453    hpux*)
14454      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14455      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14456      # sets the default TLS model and affects inlining.
14457      case $host_cpu in
14458      hppa*64*)
14459	# +Z the default
14460	;;
14461      *)
14462	lt_prog_compiler_pic='-fPIC'
14463	;;
14464      esac
14465      ;;
14466
14467    interix[3-9]*)
14468      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14469      # Instead, we relocate shared libraries at runtime.
14470      ;;
14471
14472    msdosdjgpp*)
14473      # Just because we use GCC doesn't mean we suddenly get shared libraries
14474      # on systems that don't support them.
14475      lt_prog_compiler_can_build_shared=no
14476      enable_shared=no
14477      ;;
14478
14479    *nto* | *qnx*)
14480      # QNX uses GNU C++, but need to define -shared option too, otherwise
14481      # it will coredump.
14482      lt_prog_compiler_pic='-fPIC -shared'
14483      ;;
14484
14485    sysv4*MP*)
14486      if test -d /usr/nec; then
14487	lt_prog_compiler_pic=-Kconform_pic
14488      fi
14489      ;;
14490
14491    *)
14492      lt_prog_compiler_pic='-fPIC'
14493      ;;
14494    esac
14495
14496    case $cc_basename in
14497    nvcc*) # Cuda Compiler Driver 2.2
14498      lt_prog_compiler_wl='-Xlinker '
14499      if test -n "$lt_prog_compiler_pic"; then
14500        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14501      fi
14502      ;;
14503    esac
14504  else
14505    # PORTME Check for flag to pass linker flags through the system compiler.
14506    case $host_os in
14507    aix*)
14508      lt_prog_compiler_wl='-Wl,'
14509      if test "$host_cpu" = ia64; then
14510	# AIX 5 now supports IA64 processor
14511	lt_prog_compiler_static='-Bstatic'
14512      else
14513	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14514      fi
14515      ;;
14516
14517    mingw* | cygwin* | pw32* | os2* | cegcc*)
14518      # This hack is so that the source file can tell whether it is being
14519      # built for inclusion in a dll (and should export symbols for example).
14520      lt_prog_compiler_pic='-DDLL_EXPORT'
14521      ;;
14522
14523    hpux9* | hpux10* | hpux11*)
14524      lt_prog_compiler_wl='-Wl,'
14525      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14526      # not for PA HP-UX.
14527      case $host_cpu in
14528      hppa*64*|ia64*)
14529	# +Z the default
14530	;;
14531      *)
14532	lt_prog_compiler_pic='+Z'
14533	;;
14534      esac
14535      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14536      lt_prog_compiler_static='${wl}-a ${wl}archive'
14537      ;;
14538
14539    irix5* | irix6* | nonstopux*)
14540      lt_prog_compiler_wl='-Wl,'
14541      # PIC (with -KPIC) is the default.
14542      lt_prog_compiler_static='-non_shared'
14543      ;;
14544
14545    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14546      case $cc_basename in
14547      # old Intel for x86_64 which still supported -KPIC.
14548      ecc*)
14549	lt_prog_compiler_wl='-Wl,'
14550	lt_prog_compiler_pic='-KPIC'
14551	lt_prog_compiler_static='-static'
14552        ;;
14553      # icc used to be incompatible with GCC.
14554      # ICC 10 doesn't accept -KPIC any more.
14555      icc* | ifort*)
14556	lt_prog_compiler_wl='-Wl,'
14557	lt_prog_compiler_pic='-fPIC'
14558	lt_prog_compiler_static='-static'
14559        ;;
14560      # Lahey Fortran 8.1.
14561      lf95*)
14562	lt_prog_compiler_wl='-Wl,'
14563	lt_prog_compiler_pic='--shared'
14564	lt_prog_compiler_static='--static'
14565	;;
14566      nagfor*)
14567	# NAG Fortran compiler
14568	lt_prog_compiler_wl='-Wl,-Wl,,'
14569	lt_prog_compiler_pic='-PIC'
14570	lt_prog_compiler_static='-Bstatic'
14571	;;
14572      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14573        # Portland Group compilers (*not* the Pentium gcc compiler,
14574	# which looks to be a dead project)
14575	lt_prog_compiler_wl='-Wl,'
14576	lt_prog_compiler_pic='-fpic'
14577	lt_prog_compiler_static='-Bstatic'
14578        ;;
14579      ccc*)
14580        lt_prog_compiler_wl='-Wl,'
14581        # All Alpha code is PIC.
14582        lt_prog_compiler_static='-non_shared'
14583        ;;
14584      xl* | bgxl* | bgf* | mpixl*)
14585	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14586	lt_prog_compiler_wl='-Wl,'
14587	lt_prog_compiler_pic='-qpic'
14588	lt_prog_compiler_static='-qstaticlink'
14589	;;
14590      *)
14591	case `$CC -V 2>&1 | sed 5q` in
14592	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14593	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14594	  lt_prog_compiler_pic='-KPIC'
14595	  lt_prog_compiler_static='-Bstatic'
14596	  lt_prog_compiler_wl=''
14597	  ;;
14598	*Sun\ F* | *Sun*Fortran*)
14599	  lt_prog_compiler_pic='-KPIC'
14600	  lt_prog_compiler_static='-Bstatic'
14601	  lt_prog_compiler_wl='-Qoption ld '
14602	  ;;
14603	*Sun\ C*)
14604	  # Sun C 5.9
14605	  lt_prog_compiler_pic='-KPIC'
14606	  lt_prog_compiler_static='-Bstatic'
14607	  lt_prog_compiler_wl='-Wl,'
14608	  ;;
14609        *Intel*\ [CF]*Compiler*)
14610	  lt_prog_compiler_wl='-Wl,'
14611	  lt_prog_compiler_pic='-fPIC'
14612	  lt_prog_compiler_static='-static'
14613	  ;;
14614	*Portland\ Group*)
14615	  lt_prog_compiler_wl='-Wl,'
14616	  lt_prog_compiler_pic='-fpic'
14617	  lt_prog_compiler_static='-Bstatic'
14618	  ;;
14619	esac
14620	;;
14621      esac
14622      ;;
14623
14624    newsos6)
14625      lt_prog_compiler_pic='-KPIC'
14626      lt_prog_compiler_static='-Bstatic'
14627      ;;
14628
14629    *nto* | *qnx*)
14630      # QNX uses GNU C++, but need to define -shared option too, otherwise
14631      # it will coredump.
14632      lt_prog_compiler_pic='-fPIC -shared'
14633      ;;
14634
14635    osf3* | osf4* | osf5*)
14636      lt_prog_compiler_wl='-Wl,'
14637      # All OSF/1 code is PIC.
14638      lt_prog_compiler_static='-non_shared'
14639      ;;
14640
14641    rdos*)
14642      lt_prog_compiler_static='-non_shared'
14643      ;;
14644
14645    solaris*)
14646      lt_prog_compiler_pic='-KPIC'
14647      lt_prog_compiler_static='-Bstatic'
14648      case $cc_basename in
14649      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14650	lt_prog_compiler_wl='-Qoption ld ';;
14651      *)
14652	lt_prog_compiler_wl='-Wl,';;
14653      esac
14654      ;;
14655
14656    sunos4*)
14657      lt_prog_compiler_wl='-Qoption ld '
14658      lt_prog_compiler_pic='-PIC'
14659      lt_prog_compiler_static='-Bstatic'
14660      ;;
14661
14662    sysv4 | sysv4.2uw2* | sysv4.3*)
14663      lt_prog_compiler_wl='-Wl,'
14664      lt_prog_compiler_pic='-KPIC'
14665      lt_prog_compiler_static='-Bstatic'
14666      ;;
14667
14668    sysv4*MP*)
14669      if test -d /usr/nec ;then
14670	lt_prog_compiler_pic='-Kconform_pic'
14671	lt_prog_compiler_static='-Bstatic'
14672      fi
14673      ;;
14674
14675    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14676      lt_prog_compiler_wl='-Wl,'
14677      lt_prog_compiler_pic='-KPIC'
14678      lt_prog_compiler_static='-Bstatic'
14679      ;;
14680
14681    unicos*)
14682      lt_prog_compiler_wl='-Wl,'
14683      lt_prog_compiler_can_build_shared=no
14684      ;;
14685
14686    uts4*)
14687      lt_prog_compiler_pic='-pic'
14688      lt_prog_compiler_static='-Bstatic'
14689      ;;
14690
14691    *)
14692      lt_prog_compiler_can_build_shared=no
14693      ;;
14694    esac
14695  fi
14696
14697case $host_os in
14698  # For platforms which do not support PIC, -DPIC is meaningless:
14699  *djgpp*)
14700    lt_prog_compiler_pic=
14701    ;;
14702  *)
14703    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14704    ;;
14705esac
14706
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14708$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14709if ${lt_cv_prog_compiler_pic+:} false; then :
14710  $as_echo_n "(cached) " >&6
14711else
14712  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14713fi
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14715$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14716lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14717
14718#
14719# Check to make sure the PIC flag actually works.
14720#
14721if test -n "$lt_prog_compiler_pic"; then
14722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14723$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14724if ${lt_cv_prog_compiler_pic_works+:} false; then :
14725  $as_echo_n "(cached) " >&6
14726else
14727  lt_cv_prog_compiler_pic_works=no
14728   ac_outfile=conftest.$ac_objext
14729   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14730   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14731   # Insert the option either (1) after the last *FLAGS variable, or
14732   # (2) before a word containing "conftest.", or (3) at the end.
14733   # Note that $ac_compile itself does not contain backslashes and begins
14734   # with a dollar sign (not a hyphen), so the echo should work correctly.
14735   # The option is referenced via a variable to avoid confusing sed.
14736   lt_compile=`echo "$ac_compile" | $SED \
14737   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14738   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14739   -e 's:$: $lt_compiler_flag:'`
14740   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14741   (eval "$lt_compile" 2>conftest.err)
14742   ac_status=$?
14743   cat conftest.err >&5
14744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745   if (exit $ac_status) && test -s "$ac_outfile"; then
14746     # The compiler can only warn and ignore the option if not recognized
14747     # So say no if there are warnings other than the usual output.
14748     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14749     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14750     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14751       lt_cv_prog_compiler_pic_works=yes
14752     fi
14753   fi
14754   $RM conftest*
14755
14756fi
14757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14758$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14759
14760if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14761    case $lt_prog_compiler_pic in
14762     "" | " "*) ;;
14763     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14764     esac
14765else
14766    lt_prog_compiler_pic=
14767     lt_prog_compiler_can_build_shared=no
14768fi
14769
14770fi
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782#
14783# Check to make sure the static flag actually works.
14784#
14785wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14787$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14788if ${lt_cv_prog_compiler_static_works+:} false; then :
14789  $as_echo_n "(cached) " >&6
14790else
14791  lt_cv_prog_compiler_static_works=no
14792   save_LDFLAGS="$LDFLAGS"
14793   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14794   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14795   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14796     # The linker can only warn and ignore the option if not recognized
14797     # So say no if there are warnings
14798     if test -s conftest.err; then
14799       # Append any errors to the config.log.
14800       cat conftest.err 1>&5
14801       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14802       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14803       if diff conftest.exp conftest.er2 >/dev/null; then
14804         lt_cv_prog_compiler_static_works=yes
14805       fi
14806     else
14807       lt_cv_prog_compiler_static_works=yes
14808     fi
14809   fi
14810   $RM -r conftest*
14811   LDFLAGS="$save_LDFLAGS"
14812
14813fi
14814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14815$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14816
14817if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14818    :
14819else
14820    lt_prog_compiler_static=
14821fi
14822
14823
14824
14825
14826
14827
14828
14829  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14830$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14831if ${lt_cv_prog_compiler_c_o+:} false; then :
14832  $as_echo_n "(cached) " >&6
14833else
14834  lt_cv_prog_compiler_c_o=no
14835   $RM -r conftest 2>/dev/null
14836   mkdir conftest
14837   cd conftest
14838   mkdir out
14839   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14840
14841   lt_compiler_flag="-o out/conftest2.$ac_objext"
14842   # Insert the option either (1) after the last *FLAGS variable, or
14843   # (2) before a word containing "conftest.", or (3) at the end.
14844   # Note that $ac_compile itself does not contain backslashes and begins
14845   # with a dollar sign (not a hyphen), so the echo should work correctly.
14846   lt_compile=`echo "$ac_compile" | $SED \
14847   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14848   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14849   -e 's:$: $lt_compiler_flag:'`
14850   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14851   (eval "$lt_compile" 2>out/conftest.err)
14852   ac_status=$?
14853   cat out/conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14856   then
14857     # The compiler can only warn and ignore the option if not recognized
14858     # So say no if there are warnings
14859     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14860     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14861     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14862       lt_cv_prog_compiler_c_o=yes
14863     fi
14864   fi
14865   chmod u+w . 2>&5
14866   $RM conftest*
14867   # SGI C++ compiler will create directory out/ii_files/ for
14868   # template instantiation
14869   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14870   $RM out/* && rmdir out
14871   cd ..
14872   $RM -r conftest
14873   $RM conftest*
14874
14875fi
14876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14877$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14878
14879
14880
14881
14882
14883
14884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14886if ${lt_cv_prog_compiler_c_o+:} false; then :
14887  $as_echo_n "(cached) " >&6
14888else
14889  lt_cv_prog_compiler_c_o=no
14890   $RM -r conftest 2>/dev/null
14891   mkdir conftest
14892   cd conftest
14893   mkdir out
14894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896   lt_compiler_flag="-o out/conftest2.$ac_objext"
14897   # Insert the option either (1) after the last *FLAGS variable, or
14898   # (2) before a word containing "conftest.", or (3) at the end.
14899   # Note that $ac_compile itself does not contain backslashes and begins
14900   # with a dollar sign (not a hyphen), so the echo should work correctly.
14901   lt_compile=`echo "$ac_compile" | $SED \
14902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14904   -e 's:$: $lt_compiler_flag:'`
14905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14906   (eval "$lt_compile" 2>out/conftest.err)
14907   ac_status=$?
14908   cat out/conftest.err >&5
14909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14911   then
14912     # The compiler can only warn and ignore the option if not recognized
14913     # So say no if there are warnings
14914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14917       lt_cv_prog_compiler_c_o=yes
14918     fi
14919   fi
14920   chmod u+w . 2>&5
14921   $RM conftest*
14922   # SGI C++ compiler will create directory out/ii_files/ for
14923   # template instantiation
14924   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14925   $RM out/* && rmdir out
14926   cd ..
14927   $RM -r conftest
14928   $RM conftest*
14929
14930fi
14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14932$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14933
14934
14935
14936
14937hard_links="nottested"
14938if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14939  # do not overwrite the value of need_locks provided by the user
14940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14941$as_echo_n "checking if we can lock with hard links... " >&6; }
14942  hard_links=yes
14943  $RM conftest*
14944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14945  touch conftest.a
14946  ln conftest.a conftest.b 2>&5 || hard_links=no
14947  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14949$as_echo "$hard_links" >&6; }
14950  if test "$hard_links" = no; then
14951    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14952$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14953    need_locks=warn
14954  fi
14955else
14956  need_locks=no
14957fi
14958
14959
14960
14961
14962
14963
14964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14965$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14966
14967  runpath_var=
14968  allow_undefined_flag=
14969  always_export_symbols=no
14970  archive_cmds=
14971  archive_expsym_cmds=
14972  compiler_needs_object=no
14973  enable_shared_with_static_runtimes=no
14974  export_dynamic_flag_spec=
14975  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14976  hardcode_automatic=no
14977  hardcode_direct=no
14978  hardcode_direct_absolute=no
14979  hardcode_libdir_flag_spec=
14980  hardcode_libdir_separator=
14981  hardcode_minus_L=no
14982  hardcode_shlibpath_var=unsupported
14983  inherit_rpath=no
14984  link_all_deplibs=unknown
14985  module_cmds=
14986  module_expsym_cmds=
14987  old_archive_from_new_cmds=
14988  old_archive_from_expsyms_cmds=
14989  thread_safe_flag_spec=
14990  whole_archive_flag_spec=
14991  # include_expsyms should be a list of space-separated symbols to be *always*
14992  # included in the symbol list
14993  include_expsyms=
14994  # exclude_expsyms can be an extended regexp of symbols to exclude
14995  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14996  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14997  # as well as any symbol that contains `d'.
14998  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14999  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15000  # platforms (ab)use it in PIC code, but their linkers get confused if
15001  # the symbol is explicitly referenced.  Since portable code cannot
15002  # rely on this symbol name, it's probably fine to never include it in
15003  # preloaded symbol tables.
15004  # Exclude shared library initialization/finalization symbols.
15005  extract_expsyms_cmds=
15006
15007  case $host_os in
15008  cygwin* | mingw* | pw32* | cegcc*)
15009    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15010    # When not using gcc, we currently assume that we are using
15011    # Microsoft Visual C++.
15012    if test "$GCC" != yes; then
15013      with_gnu_ld=no
15014    fi
15015    ;;
15016  interix*)
15017    # we just hope/assume this is gcc and not c89 (= MSVC++)
15018    with_gnu_ld=yes
15019    ;;
15020  openbsd*)
15021    with_gnu_ld=no
15022    ;;
15023  linux* | k*bsd*-gnu | gnu*)
15024    link_all_deplibs=no
15025    ;;
15026  esac
15027
15028  ld_shlibs=yes
15029
15030  # On some targets, GNU ld is compatible enough with the native linker
15031  # that we're better off using the native interface for both.
15032  lt_use_gnu_ld_interface=no
15033  if test "$with_gnu_ld" = yes; then
15034    case $host_os in
15035      aix*)
15036	# The AIX port of GNU ld has always aspired to compatibility
15037	# with the native linker.  However, as the warning in the GNU ld
15038	# block says, versions before 2.19.5* couldn't really create working
15039	# shared libraries, regardless of the interface used.
15040	case `$LD -v 2>&1` in
15041	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15042	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15043	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15044	  *)
15045	    lt_use_gnu_ld_interface=yes
15046	    ;;
15047	esac
15048	;;
15049      *)
15050	lt_use_gnu_ld_interface=yes
15051	;;
15052    esac
15053  fi
15054
15055  if test "$lt_use_gnu_ld_interface" = yes; then
15056    # If archive_cmds runs LD, not CC, wlarc should be empty
15057    wlarc='${wl}'
15058
15059    # Set some defaults for GNU ld with shared library support. These
15060    # are reset later if shared libraries are not supported. Putting them
15061    # here allows them to be overridden if necessary.
15062    runpath_var=LD_RUN_PATH
15063    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15064    export_dynamic_flag_spec='${wl}--export-dynamic'
15065    # ancient GNU ld didn't support --whole-archive et. al.
15066    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15067      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15068    else
15069      whole_archive_flag_spec=
15070    fi
15071    supports_anon_versioning=no
15072    case `$LD -v 2>&1` in
15073      *GNU\ gold*) supports_anon_versioning=yes ;;
15074      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15075      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15076      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15077      *\ 2.11.*) ;; # other 2.11 versions
15078      *) supports_anon_versioning=yes ;;
15079    esac
15080
15081    # See if GNU ld supports shared libraries.
15082    case $host_os in
15083    aix[3-9]*)
15084      # On AIX/PPC, the GNU linker is very broken
15085      if test "$host_cpu" != ia64; then
15086	ld_shlibs=no
15087	cat <<_LT_EOF 1>&2
15088
15089*** Warning: the GNU linker, at least up to release 2.19, is reported
15090*** to be unable to reliably create shared libraries on AIX.
15091*** Therefore, libtool is disabling shared libraries support.  If you
15092*** really care for shared libraries, you may want to install binutils
15093*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15094*** You will then need to restart the configuration process.
15095
15096_LT_EOF
15097      fi
15098      ;;
15099
15100    amigaos*)
15101      case $host_cpu in
15102      powerpc)
15103            # see comment about AmigaOS4 .so support
15104            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15105            archive_expsym_cmds=''
15106        ;;
15107      m68k)
15108            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)'
15109            hardcode_libdir_flag_spec='-L$libdir'
15110            hardcode_minus_L=yes
15111        ;;
15112      esac
15113      ;;
15114
15115    beos*)
15116      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15117	allow_undefined_flag=unsupported
15118	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15119	# support --undefined.  This deserves some investigation.  FIXME
15120	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15121      else
15122	ld_shlibs=no
15123      fi
15124      ;;
15125
15126    cygwin* | mingw* | pw32* | cegcc*)
15127      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15128      # as there is no search path for DLLs.
15129      hardcode_libdir_flag_spec='-L$libdir'
15130      export_dynamic_flag_spec='${wl}--export-all-symbols'
15131      allow_undefined_flag=unsupported
15132      always_export_symbols=no
15133      enable_shared_with_static_runtimes=yes
15134      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'
15135      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15136
15137      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15138        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15139	# If the export-symbols file already is a .def file (1st line
15140	# is EXPORTS), use it as is; otherwise, prepend...
15141	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15142	  cp $export_symbols $output_objdir/$soname.def;
15143	else
15144	  echo EXPORTS > $output_objdir/$soname.def;
15145	  cat $export_symbols >> $output_objdir/$soname.def;
15146	fi~
15147	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15148      else
15149	ld_shlibs=no
15150      fi
15151      ;;
15152
15153    haiku*)
15154      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155      link_all_deplibs=yes
15156      ;;
15157
15158    interix[3-9]*)
15159      hardcode_direct=no
15160      hardcode_shlibpath_var=no
15161      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15162      export_dynamic_flag_spec='${wl}-E'
15163      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15164      # Instead, shared libraries are loaded at an image base (0x10000000 by
15165      # default) and relocated if they conflict, which is a slow very memory
15166      # consuming and fragmenting process.  To avoid this, we pick a random,
15167      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15168      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15169      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15170      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'
15171      ;;
15172
15173    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15174      tmp_diet=no
15175      if test "$host_os" = linux-dietlibc; then
15176	case $cc_basename in
15177	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15178	esac
15179      fi
15180      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15181	 && test "$tmp_diet" = no
15182      then
15183	tmp_addflag=' $pic_flag'
15184	tmp_sharedflag='-shared'
15185	case $cc_basename,$host_cpu in
15186        pgcc*)				# Portland Group C compiler
15187	  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'
15188	  tmp_addflag=' $pic_flag'
15189	  ;;
15190	pgf77* | pgf90* | pgf95* | pgfortran*)
15191					# Portland Group f77 and f90 compilers
15192	  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'
15193	  tmp_addflag=' $pic_flag -Mnomain' ;;
15194	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15195	  tmp_addflag=' -i_dynamic' ;;
15196	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15197	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15198	ifc* | ifort*)			# Intel Fortran compiler
15199	  tmp_addflag=' -nofor_main' ;;
15200	lf95*)				# Lahey Fortran 8.1
15201	  whole_archive_flag_spec=
15202	  tmp_sharedflag='--shared' ;;
15203	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15204	  tmp_sharedflag='-qmkshrobj'
15205	  tmp_addflag= ;;
15206	nvcc*)	# Cuda Compiler Driver 2.2
15207	  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'
15208	  compiler_needs_object=yes
15209	  ;;
15210	esac
15211	case `$CC -V 2>&1 | sed 5q` in
15212	*Sun\ C*)			# Sun C 5.9
15213	  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'
15214	  compiler_needs_object=yes
15215	  tmp_sharedflag='-G' ;;
15216	*Sun\ F*)			# Sun Fortran 8.3
15217	  tmp_sharedflag='-G' ;;
15218	esac
15219	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15220
15221        if test "x$supports_anon_versioning" = xyes; then
15222          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15223	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15224	    echo "local: *; };" >> $output_objdir/$libname.ver~
15225	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15226        fi
15227
15228	case $cc_basename in
15229	xlf* | bgf* | bgxlf* | mpixlf*)
15230	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15231	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15232	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15233	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15234	  if test "x$supports_anon_versioning" = xyes; then
15235	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15236	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15237	      echo "local: *; };" >> $output_objdir/$libname.ver~
15238	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15239	  fi
15240	  ;;
15241	esac
15242      else
15243        ld_shlibs=no
15244      fi
15245      ;;
15246
15247    netbsd* | netbsdelf*-gnu)
15248      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15249	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15250	wlarc=
15251      else
15252	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15254      fi
15255      ;;
15256
15257    solaris*)
15258      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15259	ld_shlibs=no
15260	cat <<_LT_EOF 1>&2
15261
15262*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15263*** create shared libraries on Solaris systems.  Therefore, libtool
15264*** is disabling shared libraries support.  We urge you to upgrade GNU
15265*** binutils to release 2.9.1 or newer.  Another option is to modify
15266*** your PATH or compiler configuration so that the native linker is
15267*** used, and then restart.
15268
15269_LT_EOF
15270      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15271	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15272	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15273      else
15274	ld_shlibs=no
15275      fi
15276      ;;
15277
15278    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15279      case `$LD -v 2>&1` in
15280        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15281	ld_shlibs=no
15282	cat <<_LT_EOF 1>&2
15283
15284*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15285*** reliably create shared libraries on SCO systems.  Therefore, libtool
15286*** is disabling shared libraries support.  We urge you to upgrade GNU
15287*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15288*** your PATH or compiler configuration so that the native linker is
15289*** used, and then restart.
15290
15291_LT_EOF
15292	;;
15293	*)
15294	  # For security reasons, it is highly recommended that you always
15295	  # use absolute paths for naming shared libraries, and exclude the
15296	  # DT_RUNPATH tag from executables and libraries.  But doing so
15297	  # requires that you compile everything twice, which is a pain.
15298	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15299	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15300	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15301	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15302	  else
15303	    ld_shlibs=no
15304	  fi
15305	;;
15306      esac
15307      ;;
15308
15309    sunos4*)
15310      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15311      wlarc=
15312      hardcode_direct=yes
15313      hardcode_shlibpath_var=no
15314      ;;
15315
15316    *)
15317      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15318	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15319	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15320      else
15321	ld_shlibs=no
15322      fi
15323      ;;
15324    esac
15325
15326    if test "$ld_shlibs" = no; then
15327      runpath_var=
15328      hardcode_libdir_flag_spec=
15329      export_dynamic_flag_spec=
15330      whole_archive_flag_spec=
15331    fi
15332  else
15333    # PORTME fill in a description of your system's linker (not GNU ld)
15334    case $host_os in
15335    aix3*)
15336      allow_undefined_flag=unsupported
15337      always_export_symbols=yes
15338      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'
15339      # Note: this linker hardcodes the directories in LIBPATH if there
15340      # are no directories specified by -L.
15341      hardcode_minus_L=yes
15342      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15343	# Neither direct hardcoding nor static linking is supported with a
15344	# broken collect2.
15345	hardcode_direct=unsupported
15346      fi
15347      ;;
15348
15349    aix[4-9]*)
15350      if test "$host_cpu" = ia64; then
15351	# On IA64, the linker does run time linking by default, so we don't
15352	# have to do anything special.
15353	aix_use_runtimelinking=no
15354	exp_sym_flag='-Bexport'
15355	no_entry_flag=""
15356      else
15357	# If we're using GNU nm, then we don't want the "-C" option.
15358	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15359	# Also, AIX nm treats weak defined symbols like other global
15360	# defined symbols, whereas GNU nm marks them as "W".
15361	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15362	  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'
15363	else
15364	  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'
15365	fi
15366	aix_use_runtimelinking=no
15367
15368	# Test if we are trying to use run time linking or normal
15369	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15370	# need to do runtime linking.
15371	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15372	  for ld_flag in $LDFLAGS; do
15373	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15374	    aix_use_runtimelinking=yes
15375	    break
15376	  fi
15377	  done
15378	  ;;
15379	esac
15380
15381	exp_sym_flag='-bexport'
15382	no_entry_flag='-bnoentry'
15383      fi
15384
15385      # When large executables or shared objects are built, AIX ld can
15386      # have problems creating the table of contents.  If linking a library
15387      # or program results in "error TOC overflow" add -mminimal-toc to
15388      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15389      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15390
15391      archive_cmds=''
15392      hardcode_direct=yes
15393      hardcode_direct_absolute=yes
15394      hardcode_libdir_separator=':'
15395      link_all_deplibs=yes
15396      file_list_spec='${wl}-f,'
15397
15398      if test "$GCC" = yes; then
15399	case $host_os in aix4.[012]|aix4.[012].*)
15400	# We only want to do this on AIX 4.2 and lower, the check
15401	# below for broken collect2 doesn't work under 4.3+
15402	  collect2name=`${CC} -print-prog-name=collect2`
15403	  if test -f "$collect2name" &&
15404	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15405	  then
15406	  # We have reworked collect2
15407	  :
15408	  else
15409	  # We have old collect2
15410	  hardcode_direct=unsupported
15411	  # It fails to find uninstalled libraries when the uninstalled
15412	  # path is not listed in the libpath.  Setting hardcode_minus_L
15413	  # to unsupported forces relinking
15414	  hardcode_minus_L=yes
15415	  hardcode_libdir_flag_spec='-L$libdir'
15416	  hardcode_libdir_separator=
15417	  fi
15418	  ;;
15419	esac
15420	shared_flag='-shared'
15421	if test "$aix_use_runtimelinking" = yes; then
15422	  shared_flag="$shared_flag "'${wl}-G'
15423	fi
15424	link_all_deplibs=no
15425      else
15426	# not using gcc
15427	if test "$host_cpu" = ia64; then
15428	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15429	# chokes on -Wl,-G. The following line is correct:
15430	  shared_flag='-G'
15431	else
15432	  if test "$aix_use_runtimelinking" = yes; then
15433	    shared_flag='${wl}-G'
15434	  else
15435	    shared_flag='${wl}-bM:SRE'
15436	  fi
15437	fi
15438      fi
15439
15440      export_dynamic_flag_spec='${wl}-bexpall'
15441      # It seems that -bexpall does not export symbols beginning with
15442      # underscore (_), so it is better to generate a list of symbols to export.
15443      always_export_symbols=yes
15444      if test "$aix_use_runtimelinking" = yes; then
15445	# Warning - without using the other runtime loading flags (-brtl),
15446	# -berok will link without error, but may produce a broken library.
15447	allow_undefined_flag='-berok'
15448        # Determine the default libpath from the value encoded in an
15449        # empty executable.
15450        if test "${lt_cv_aix_libpath+set}" = set; then
15451  aix_libpath=$lt_cv_aix_libpath
15452else
15453  if ${lt_cv_aix_libpath_+:} false; then :
15454  $as_echo_n "(cached) " >&6
15455else
15456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457/* end confdefs.h.  */
15458
15459int
15460main ()
15461{
15462
15463  ;
15464  return 0;
15465}
15466_ACEOF
15467if ac_fn_c_try_link "$LINENO"; then :
15468
15469  lt_aix_libpath_sed='
15470      /Import File Strings/,/^$/ {
15471	  /^0/ {
15472	      s/^0  *\([^ ]*\) *$/\1/
15473	      p
15474	  }
15475      }'
15476  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15477  # Check for a 64-bit object if we didn't find anything.
15478  if test -z "$lt_cv_aix_libpath_"; then
15479    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15480  fi
15481fi
15482rm -f core conftest.err conftest.$ac_objext \
15483    conftest$ac_exeext conftest.$ac_ext
15484  if test -z "$lt_cv_aix_libpath_"; then
15485    lt_cv_aix_libpath_="/usr/lib:/lib"
15486  fi
15487
15488fi
15489
15490  aix_libpath=$lt_cv_aix_libpath_
15491fi
15492
15493        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15494        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"
15495      else
15496	if test "$host_cpu" = ia64; then
15497	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15498	  allow_undefined_flag="-z nodefs"
15499	  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"
15500	else
15501	 # Determine the default libpath from the value encoded in an
15502	 # empty executable.
15503	 if test "${lt_cv_aix_libpath+set}" = set; then
15504  aix_libpath=$lt_cv_aix_libpath
15505else
15506  if ${lt_cv_aix_libpath_+:} false; then :
15507  $as_echo_n "(cached) " >&6
15508else
15509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510/* end confdefs.h.  */
15511
15512int
15513main ()
15514{
15515
15516  ;
15517  return 0;
15518}
15519_ACEOF
15520if ac_fn_c_try_link "$LINENO"; then :
15521
15522  lt_aix_libpath_sed='
15523      /Import File Strings/,/^$/ {
15524	  /^0/ {
15525	      s/^0  *\([^ ]*\) *$/\1/
15526	      p
15527	  }
15528      }'
15529  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15530  # Check for a 64-bit object if we didn't find anything.
15531  if test -z "$lt_cv_aix_libpath_"; then
15532    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15533  fi
15534fi
15535rm -f core conftest.err conftest.$ac_objext \
15536    conftest$ac_exeext conftest.$ac_ext
15537  if test -z "$lt_cv_aix_libpath_"; then
15538    lt_cv_aix_libpath_="/usr/lib:/lib"
15539  fi
15540
15541fi
15542
15543  aix_libpath=$lt_cv_aix_libpath_
15544fi
15545
15546	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15547	  # Warning - without using the other run time loading flags,
15548	  # -berok will link without error, but may produce a broken library.
15549	  no_undefined_flag=' ${wl}-bernotok'
15550	  allow_undefined_flag=' ${wl}-berok'
15551	  if test "$with_gnu_ld" = yes; then
15552	    # We only use this code for GNU lds that support --whole-archive.
15553	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15554	  else
15555	    # Exported symbols can be pulled into shared objects from archives
15556	    whole_archive_flag_spec='$convenience'
15557	  fi
15558	  archive_cmds_need_lc=yes
15559	  # This is similar to how AIX traditionally builds its shared libraries.
15560	  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'
15561	fi
15562      fi
15563      ;;
15564
15565    amigaos*)
15566      case $host_cpu in
15567      powerpc)
15568            # see comment about AmigaOS4 .so support
15569            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15570            archive_expsym_cmds=''
15571        ;;
15572      m68k)
15573            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)'
15574            hardcode_libdir_flag_spec='-L$libdir'
15575            hardcode_minus_L=yes
15576        ;;
15577      esac
15578      ;;
15579
15580    bsdi[45]*)
15581      export_dynamic_flag_spec=-rdynamic
15582      ;;
15583
15584    cygwin* | mingw* | pw32* | cegcc*)
15585      # When not using gcc, we currently assume that we are using
15586      # Microsoft Visual C++.
15587      # hardcode_libdir_flag_spec is actually meaningless, as there is
15588      # no search path for DLLs.
15589      case $cc_basename in
15590      cl*)
15591	# Native MSVC
15592	hardcode_libdir_flag_spec=' '
15593	allow_undefined_flag=unsupported
15594	always_export_symbols=yes
15595	file_list_spec='@'
15596	# Tell ltmain to make .lib files, not .a files.
15597	libext=lib
15598	# Tell ltmain to make .dll files, not .so files.
15599	shrext_cmds=".dll"
15600	# FIXME: Setting linknames here is a bad hack.
15601	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15602	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15603	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15604	  else
15605	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15606	  fi~
15607	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15608	  linknames='
15609	# The linker will not automatically build a static lib if we build a DLL.
15610	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15611	enable_shared_with_static_runtimes=yes
15612	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15613	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15614	# Don't use ranlib
15615	old_postinstall_cmds='chmod 644 $oldlib'
15616	postlink_cmds='lt_outputfile="@OUTPUT@"~
15617	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15618	  case $lt_outputfile in
15619	    *.exe|*.EXE) ;;
15620	    *)
15621	      lt_outputfile="$lt_outputfile.exe"
15622	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15623	      ;;
15624	  esac~
15625	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15626	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15627	    $RM "$lt_outputfile.manifest";
15628	  fi'
15629	;;
15630      *)
15631	# Assume MSVC wrapper
15632	hardcode_libdir_flag_spec=' '
15633	allow_undefined_flag=unsupported
15634	# Tell ltmain to make .lib files, not .a files.
15635	libext=lib
15636	# Tell ltmain to make .dll files, not .so files.
15637	shrext_cmds=".dll"
15638	# FIXME: Setting linknames here is a bad hack.
15639	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15640	# The linker will automatically build a .lib file if we build a DLL.
15641	old_archive_from_new_cmds='true'
15642	# FIXME: Should let the user specify the lib program.
15643	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15644	enable_shared_with_static_runtimes=yes
15645	;;
15646      esac
15647      ;;
15648
15649    darwin* | rhapsody*)
15650
15651
15652  archive_cmds_need_lc=no
15653  hardcode_direct=no
15654  hardcode_automatic=yes
15655  hardcode_shlibpath_var=unsupported
15656  if test "$lt_cv_ld_force_load" = "yes"; then
15657    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\"`'
15658
15659  else
15660    whole_archive_flag_spec=''
15661  fi
15662  link_all_deplibs=yes
15663  allow_undefined_flag="$_lt_dar_allow_undefined"
15664  case $cc_basename in
15665     ifort*) _lt_dar_can_shared=yes ;;
15666     *) _lt_dar_can_shared=$GCC ;;
15667  esac
15668  if test "$_lt_dar_can_shared" = "yes"; then
15669    output_verbose_link_cmd=func_echo_all
15670    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15671    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15672    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}"
15673    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}"
15674
15675  else
15676  ld_shlibs=no
15677  fi
15678
15679      ;;
15680
15681    dgux*)
15682      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683      hardcode_libdir_flag_spec='-L$libdir'
15684      hardcode_shlibpath_var=no
15685      ;;
15686
15687    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15688    # support.  Future versions do this automatically, but an explicit c++rt0.o
15689    # does not break anything, and helps significantly (at the cost of a little
15690    # extra space).
15691    freebsd2.2*)
15692      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15693      hardcode_libdir_flag_spec='-R$libdir'
15694      hardcode_direct=yes
15695      hardcode_shlibpath_var=no
15696      ;;
15697
15698    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15699    freebsd2.*)
15700      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15701      hardcode_direct=yes
15702      hardcode_minus_L=yes
15703      hardcode_shlibpath_var=no
15704      ;;
15705
15706    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15707    freebsd* | dragonfly*)
15708      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15709      hardcode_libdir_flag_spec='-R$libdir'
15710      hardcode_direct=yes
15711      hardcode_shlibpath_var=no
15712      ;;
15713
15714    hpux9*)
15715      if test "$GCC" = yes; then
15716	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'
15717      else
15718	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'
15719      fi
15720      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15721      hardcode_libdir_separator=:
15722      hardcode_direct=yes
15723
15724      # hardcode_minus_L: Not really in the search PATH,
15725      # but as the default location of the library.
15726      hardcode_minus_L=yes
15727      export_dynamic_flag_spec='${wl}-E'
15728      ;;
15729
15730    hpux10*)
15731      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15732	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15733      else
15734	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15735      fi
15736      if test "$with_gnu_ld" = no; then
15737	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15738	hardcode_libdir_separator=:
15739	hardcode_direct=yes
15740	hardcode_direct_absolute=yes
15741	export_dynamic_flag_spec='${wl}-E'
15742	# hardcode_minus_L: Not really in the search PATH,
15743	# but as the default location of the library.
15744	hardcode_minus_L=yes
15745      fi
15746      ;;
15747
15748    hpux11*)
15749      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15750	case $host_cpu in
15751	hppa*64*)
15752	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15753	  ;;
15754	ia64*)
15755	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15756	  ;;
15757	*)
15758	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15759	  ;;
15760	esac
15761      else
15762	case $host_cpu in
15763	hppa*64*)
15764	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15765	  ;;
15766	ia64*)
15767	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15768	  ;;
15769	*)
15770
15771	  # Older versions of the 11.00 compiler do not understand -b yet
15772	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15773	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15774$as_echo_n "checking if $CC understands -b... " >&6; }
15775if ${lt_cv_prog_compiler__b+:} false; then :
15776  $as_echo_n "(cached) " >&6
15777else
15778  lt_cv_prog_compiler__b=no
15779   save_LDFLAGS="$LDFLAGS"
15780   LDFLAGS="$LDFLAGS -b"
15781   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15782   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15783     # The linker can only warn and ignore the option if not recognized
15784     # So say no if there are warnings
15785     if test -s conftest.err; then
15786       # Append any errors to the config.log.
15787       cat conftest.err 1>&5
15788       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15789       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790       if diff conftest.exp conftest.er2 >/dev/null; then
15791         lt_cv_prog_compiler__b=yes
15792       fi
15793     else
15794       lt_cv_prog_compiler__b=yes
15795     fi
15796   fi
15797   $RM -r conftest*
15798   LDFLAGS="$save_LDFLAGS"
15799
15800fi
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15802$as_echo "$lt_cv_prog_compiler__b" >&6; }
15803
15804if test x"$lt_cv_prog_compiler__b" = xyes; then
15805    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15806else
15807    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15808fi
15809
15810	  ;;
15811	esac
15812      fi
15813      if test "$with_gnu_ld" = no; then
15814	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15815	hardcode_libdir_separator=:
15816
15817	case $host_cpu in
15818	hppa*64*|ia64*)
15819	  hardcode_direct=no
15820	  hardcode_shlibpath_var=no
15821	  ;;
15822	*)
15823	  hardcode_direct=yes
15824	  hardcode_direct_absolute=yes
15825	  export_dynamic_flag_spec='${wl}-E'
15826
15827	  # hardcode_minus_L: Not really in the search PATH,
15828	  # but as the default location of the library.
15829	  hardcode_minus_L=yes
15830	  ;;
15831	esac
15832      fi
15833      ;;
15834
15835    irix5* | irix6* | nonstopux*)
15836      if test "$GCC" = yes; then
15837	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'
15838	# Try to use the -exported_symbol ld option, if it does not
15839	# work, assume that -exports_file does not work either and
15840	# implicitly export all symbols.
15841	# This should be the same for all languages, so no per-tag cache variable.
15842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15843$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15844if ${lt_cv_irix_exported_symbol+:} false; then :
15845  $as_echo_n "(cached) " >&6
15846else
15847  save_LDFLAGS="$LDFLAGS"
15848	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15849	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850/* end confdefs.h.  */
15851int foo (void) { return 0; }
15852_ACEOF
15853if ac_fn_c_try_link "$LINENO"; then :
15854  lt_cv_irix_exported_symbol=yes
15855else
15856  lt_cv_irix_exported_symbol=no
15857fi
15858rm -f core conftest.err conftest.$ac_objext \
15859    conftest$ac_exeext conftest.$ac_ext
15860           LDFLAGS="$save_LDFLAGS"
15861fi
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15863$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15864	if test "$lt_cv_irix_exported_symbol" = yes; then
15865          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'
15866	fi
15867      else
15868	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'
15869	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'
15870      fi
15871      archive_cmds_need_lc='no'
15872      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15873      hardcode_libdir_separator=:
15874      inherit_rpath=yes
15875      link_all_deplibs=yes
15876      ;;
15877
15878    netbsd* | netbsdelf*-gnu)
15879      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15880	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15881      else
15882	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15883      fi
15884      hardcode_libdir_flag_spec='-R$libdir'
15885      hardcode_direct=yes
15886      hardcode_shlibpath_var=no
15887      ;;
15888
15889    newsos6)
15890      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891      hardcode_direct=yes
15892      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15893      hardcode_libdir_separator=:
15894      hardcode_shlibpath_var=no
15895      ;;
15896
15897    *nto* | *qnx*)
15898      ;;
15899
15900    openbsd*)
15901      if test -f /usr/libexec/ld.so; then
15902	hardcode_direct=yes
15903	hardcode_shlibpath_var=no
15904	hardcode_direct_absolute=yes
15905	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15906	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15907	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15908	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15909	  export_dynamic_flag_spec='${wl}-E'
15910	else
15911	  case $host_os in
15912	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15913	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15914	     hardcode_libdir_flag_spec='-R$libdir'
15915	     ;;
15916	   *)
15917	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15918	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15919	     ;;
15920	  esac
15921	fi
15922      else
15923	ld_shlibs=no
15924      fi
15925      ;;
15926
15927    os2*)
15928      hardcode_libdir_flag_spec='-L$libdir'
15929      hardcode_minus_L=yes
15930      allow_undefined_flag=unsupported
15931      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'
15932      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15933      ;;
15934
15935    osf3*)
15936      if test "$GCC" = yes; then
15937	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15938	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'
15939      else
15940	allow_undefined_flag=' -expect_unresolved \*'
15941	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'
15942      fi
15943      archive_cmds_need_lc='no'
15944      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15945      hardcode_libdir_separator=:
15946      ;;
15947
15948    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15949      if test "$GCC" = yes; then
15950	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15951	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'
15952	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15953      else
15954	allow_undefined_flag=' -expect_unresolved \*'
15955	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'
15956	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~
15957	$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'
15958
15959	# Both c and cxx compiler support -rpath directly
15960	hardcode_libdir_flag_spec='-rpath $libdir'
15961      fi
15962      archive_cmds_need_lc='no'
15963      hardcode_libdir_separator=:
15964      ;;
15965
15966    solaris*)
15967      no_undefined_flag=' -z defs'
15968      if test "$GCC" = yes; then
15969	wlarc='${wl}'
15970	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15971	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15972	  $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'
15973      else
15974	case `$CC -V 2>&1` in
15975	*"Compilers 5.0"*)
15976	  wlarc=''
15977	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15978	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15979	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15980	  ;;
15981	*)
15982	  wlarc='${wl}'
15983	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15984	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15985	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15986	  ;;
15987	esac
15988      fi
15989      hardcode_libdir_flag_spec='-R$libdir'
15990      hardcode_shlibpath_var=no
15991      case $host_os in
15992      solaris2.[0-5] | solaris2.[0-5].*) ;;
15993      *)
15994	# The compiler driver will combine and reorder linker options,
15995	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15996	# but is careful enough not to reorder.
15997	# Supported since Solaris 2.6 (maybe 2.5.1?)
15998	if test "$GCC" = yes; then
15999	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16000	else
16001	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16002	fi
16003	;;
16004      esac
16005      link_all_deplibs=yes
16006      ;;
16007
16008    sunos4*)
16009      if test "x$host_vendor" = xsequent; then
16010	# Use $CC to link under sequent, because it throws in some extra .o
16011	# files that make .init and .fini sections work.
16012	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16013      else
16014	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16015      fi
16016      hardcode_libdir_flag_spec='-L$libdir'
16017      hardcode_direct=yes
16018      hardcode_minus_L=yes
16019      hardcode_shlibpath_var=no
16020      ;;
16021
16022    sysv4)
16023      case $host_vendor in
16024	sni)
16025	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16026	  hardcode_direct=yes # is this really true???
16027	;;
16028	siemens)
16029	  ## LD is ld it makes a PLAMLIB
16030	  ## CC just makes a GrossModule.
16031	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16032	  reload_cmds='$CC -r -o $output$reload_objs'
16033	  hardcode_direct=no
16034        ;;
16035	motorola)
16036	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16037	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16038	;;
16039      esac
16040      runpath_var='LD_RUN_PATH'
16041      hardcode_shlibpath_var=no
16042      ;;
16043
16044    sysv4.3*)
16045      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046      hardcode_shlibpath_var=no
16047      export_dynamic_flag_spec='-Bexport'
16048      ;;
16049
16050    sysv4*MP*)
16051      if test -d /usr/nec; then
16052	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16053	hardcode_shlibpath_var=no
16054	runpath_var=LD_RUN_PATH
16055	hardcode_runpath_var=yes
16056	ld_shlibs=yes
16057      fi
16058      ;;
16059
16060    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16061      no_undefined_flag='${wl}-z,text'
16062      archive_cmds_need_lc=no
16063      hardcode_shlibpath_var=no
16064      runpath_var='LD_RUN_PATH'
16065
16066      if test "$GCC" = yes; then
16067	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16068	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16069      else
16070	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16071	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16072      fi
16073      ;;
16074
16075    sysv5* | sco3.2v5* | sco5v6*)
16076      # Note: We can NOT use -z defs as we might desire, because we do not
16077      # link with -lc, and that would cause any symbols used from libc to
16078      # always be unresolved, which means just about no library would
16079      # ever link correctly.  If we're not using GNU ld we use -z text
16080      # though, which does catch some bad symbols but isn't as heavy-handed
16081      # as -z defs.
16082      no_undefined_flag='${wl}-z,text'
16083      allow_undefined_flag='${wl}-z,nodefs'
16084      archive_cmds_need_lc=no
16085      hardcode_shlibpath_var=no
16086      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16087      hardcode_libdir_separator=':'
16088      link_all_deplibs=yes
16089      export_dynamic_flag_spec='${wl}-Bexport'
16090      runpath_var='LD_RUN_PATH'
16091
16092      if test "$GCC" = yes; then
16093	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095      else
16096	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16097	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16098      fi
16099      ;;
16100
16101    uts4*)
16102      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16103      hardcode_libdir_flag_spec='-L$libdir'
16104      hardcode_shlibpath_var=no
16105      ;;
16106
16107    *)
16108      ld_shlibs=no
16109      ;;
16110    esac
16111
16112    if test x$host_vendor = xsni; then
16113      case $host in
16114      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16115	export_dynamic_flag_spec='${wl}-Blargedynsym'
16116	;;
16117      esac
16118    fi
16119  fi
16120
16121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16122$as_echo "$ld_shlibs" >&6; }
16123test "$ld_shlibs" = no && can_build_shared=no
16124
16125with_gnu_ld=$with_gnu_ld
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141#
16142# Do we need to explicitly link libc?
16143#
16144case "x$archive_cmds_need_lc" in
16145x|xyes)
16146  # Assume -lc should be added
16147  archive_cmds_need_lc=yes
16148
16149  if test "$enable_shared" = yes && test "$GCC" = yes; then
16150    case $archive_cmds in
16151    *'~'*)
16152      # FIXME: we may have to deal with multi-command sequences.
16153      ;;
16154    '$CC '*)
16155      # Test whether the compiler implicitly links with -lc since on some
16156      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16157      # to ld, don't add -lc before -lgcc.
16158      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16159$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16160if ${lt_cv_archive_cmds_need_lc+:} false; then :
16161  $as_echo_n "(cached) " >&6
16162else
16163  $RM conftest*
16164	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16165
16166	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16167  (eval $ac_compile) 2>&5
16168  ac_status=$?
16169  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16170  test $ac_status = 0; } 2>conftest.err; then
16171	  soname=conftest
16172	  lib=conftest
16173	  libobjs=conftest.$ac_objext
16174	  deplibs=
16175	  wl=$lt_prog_compiler_wl
16176	  pic_flag=$lt_prog_compiler_pic
16177	  compiler_flags=-v
16178	  linker_flags=-v
16179	  verstring=
16180	  output_objdir=.
16181	  libname=conftest
16182	  lt_save_allow_undefined_flag=$allow_undefined_flag
16183	  allow_undefined_flag=
16184	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16185  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16186  ac_status=$?
16187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16188  test $ac_status = 0; }
16189	  then
16190	    lt_cv_archive_cmds_need_lc=no
16191	  else
16192	    lt_cv_archive_cmds_need_lc=yes
16193	  fi
16194	  allow_undefined_flag=$lt_save_allow_undefined_flag
16195	else
16196	  cat conftest.err 1>&5
16197	fi
16198	$RM conftest*
16199
16200fi
16201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16202$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16203      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16204      ;;
16205    esac
16206  fi
16207  ;;
16208esac
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
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16362$as_echo_n "checking dynamic linker characteristics... " >&6; }
16363
16364if test "$GCC" = yes; then
16365  case $host_os in
16366    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16367    *) lt_awk_arg="/^libraries:/" ;;
16368  esac
16369  case $host_os in
16370    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16371    *) lt_sed_strip_eq="s,=/,/,g" ;;
16372  esac
16373  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16374  case $lt_search_path_spec in
16375  *\;*)
16376    # if the path contains ";" then we assume it to be the separator
16377    # otherwise default to the standard path separator (i.e. ":") - it is
16378    # assumed that no part of a normal pathname contains ";" but that should
16379    # okay in the real world where ";" in dirpaths is itself problematic.
16380    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16381    ;;
16382  *)
16383    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16384    ;;
16385  esac
16386  # Ok, now we have the path, separated by spaces, we can step through it
16387  # and add multilib dir if necessary.
16388  lt_tmp_lt_search_path_spec=
16389  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16390  for lt_sys_path in $lt_search_path_spec; do
16391    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16392      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16393    else
16394      test -d "$lt_sys_path" && \
16395	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16396    fi
16397  done
16398  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16399BEGIN {RS=" "; FS="/|\n";} {
16400  lt_foo="";
16401  lt_count=0;
16402  for (lt_i = NF; lt_i > 0; lt_i--) {
16403    if ($lt_i != "" && $lt_i != ".") {
16404      if ($lt_i == "..") {
16405        lt_count++;
16406      } else {
16407        if (lt_count == 0) {
16408          lt_foo="/" $lt_i lt_foo;
16409        } else {
16410          lt_count--;
16411        }
16412      }
16413    }
16414  }
16415  if (lt_foo != "") { lt_freq[lt_foo]++; }
16416  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16417}'`
16418  # AWK program above erroneously prepends '/' to C:/dos/paths
16419  # for these hosts.
16420  case $host_os in
16421    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16422      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16423  esac
16424  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16425else
16426  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16427fi
16428library_names_spec=
16429libname_spec='lib$name'
16430soname_spec=
16431shrext_cmds=".so"
16432postinstall_cmds=
16433postuninstall_cmds=
16434finish_cmds=
16435finish_eval=
16436shlibpath_var=
16437shlibpath_overrides_runpath=unknown
16438version_type=none
16439dynamic_linker="$host_os ld.so"
16440sys_lib_dlsearch_path_spec="/lib /usr/lib"
16441need_lib_prefix=unknown
16442hardcode_into_libs=no
16443
16444# when you set need_version to no, make sure it does not cause -set_version
16445# flags to be left without arguments
16446need_version=unknown
16447
16448case $host_os in
16449aix3*)
16450  version_type=linux # correct to gnu/linux during the next big refactor
16451  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16452  shlibpath_var=LIBPATH
16453
16454  # AIX 3 has no versioning support, so we append a major version to the name.
16455  soname_spec='${libname}${release}${shared_ext}$major'
16456  ;;
16457
16458aix[4-9]*)
16459  version_type=linux # correct to gnu/linux during the next big refactor
16460  need_lib_prefix=no
16461  need_version=no
16462  hardcode_into_libs=yes
16463  if test "$host_cpu" = ia64; then
16464    # AIX 5 supports IA64
16465    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16466    shlibpath_var=LD_LIBRARY_PATH
16467  else
16468    # With GCC up to 2.95.x, collect2 would create an import file
16469    # for dependence libraries.  The import file would start with
16470    # the line `#! .'.  This would cause the generated library to
16471    # depend on `.', always an invalid library.  This was fixed in
16472    # development snapshots of GCC prior to 3.0.
16473    case $host_os in
16474      aix4 | aix4.[01] | aix4.[01].*)
16475      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16476	   echo ' yes '
16477	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16478	:
16479      else
16480	can_build_shared=no
16481      fi
16482      ;;
16483    esac
16484    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16485    # soname into executable. Probably we can add versioning support to
16486    # collect2, so additional links can be useful in future.
16487    if test "$aix_use_runtimelinking" = yes; then
16488      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16489      # instead of lib<name>.a to let people know that these are not
16490      # typical AIX shared libraries.
16491      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492    else
16493      # We preserve .a as extension for shared libraries through AIX4.2
16494      # and later when we are not doing run time linking.
16495      library_names_spec='${libname}${release}.a $libname.a'
16496      soname_spec='${libname}${release}${shared_ext}$major'
16497    fi
16498    shlibpath_var=LIBPATH
16499  fi
16500  ;;
16501
16502amigaos*)
16503  case $host_cpu in
16504  powerpc)
16505    # Since July 2007 AmigaOS4 officially supports .so libraries.
16506    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16507    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508    ;;
16509  m68k)
16510    library_names_spec='$libname.ixlibrary $libname.a'
16511    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16512    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'
16513    ;;
16514  esac
16515  ;;
16516
16517beos*)
16518  library_names_spec='${libname}${shared_ext}'
16519  dynamic_linker="$host_os ld.so"
16520  shlibpath_var=LIBRARY_PATH
16521  ;;
16522
16523bsdi[45]*)
16524  version_type=linux # correct to gnu/linux during the next big refactor
16525  need_version=no
16526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527  soname_spec='${libname}${release}${shared_ext}$major'
16528  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16529  shlibpath_var=LD_LIBRARY_PATH
16530  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16531  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16532  # the default ld.so.conf also contains /usr/contrib/lib and
16533  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16534  # libtool to hard-code these into programs
16535  ;;
16536
16537cygwin* | mingw* | pw32* | cegcc*)
16538  version_type=windows
16539  shrext_cmds=".dll"
16540  need_version=no
16541  need_lib_prefix=no
16542
16543  case $GCC,$cc_basename in
16544  yes,*)
16545    # gcc
16546    library_names_spec='$libname.dll.a'
16547    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16548    postinstall_cmds='base_file=`basename \${file}`~
16549      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16550      dldir=$destdir/`dirname \$dlpath`~
16551      test -d \$dldir || mkdir -p \$dldir~
16552      $install_prog $dir/$dlname \$dldir/$dlname~
16553      chmod a+x \$dldir/$dlname~
16554      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16555        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16556      fi'
16557    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16558      dlpath=$dir/\$dldll~
16559       $RM \$dlpath'
16560    shlibpath_overrides_runpath=yes
16561
16562    case $host_os in
16563    cygwin*)
16564      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16565      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16566
16567      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16568      ;;
16569    mingw* | cegcc*)
16570      # MinGW DLLs use traditional 'lib' prefix
16571      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16572      ;;
16573    pw32*)
16574      # pw32 DLLs use 'pw' prefix rather than 'lib'
16575      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16576      ;;
16577    esac
16578    dynamic_linker='Win32 ld.exe'
16579    ;;
16580
16581  *,cl*)
16582    # Native MSVC
16583    libname_spec='$name'
16584    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16585    library_names_spec='${libname}.dll.lib'
16586
16587    case $build_os in
16588    mingw*)
16589      sys_lib_search_path_spec=
16590      lt_save_ifs=$IFS
16591      IFS=';'
16592      for lt_path in $LIB
16593      do
16594        IFS=$lt_save_ifs
16595        # Let DOS variable expansion print the short 8.3 style file name.
16596        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16597        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16598      done
16599      IFS=$lt_save_ifs
16600      # Convert to MSYS style.
16601      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16602      ;;
16603    cygwin*)
16604      # Convert to unix form, then to dos form, then back to unix form
16605      # but this time dos style (no spaces!) so that the unix form looks
16606      # like /cygdrive/c/PROGRA~1:/cygdr...
16607      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16608      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16609      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16610      ;;
16611    *)
16612      sys_lib_search_path_spec="$LIB"
16613      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16614        # It is most probably a Windows format PATH.
16615        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16616      else
16617        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16618      fi
16619      # FIXME: find the short name or the path components, as spaces are
16620      # common. (e.g. "Program Files" -> "PROGRA~1")
16621      ;;
16622    esac
16623
16624    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16625    postinstall_cmds='base_file=`basename \${file}`~
16626      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16627      dldir=$destdir/`dirname \$dlpath`~
16628      test -d \$dldir || mkdir -p \$dldir~
16629      $install_prog $dir/$dlname \$dldir/$dlname'
16630    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16631      dlpath=$dir/\$dldll~
16632       $RM \$dlpath'
16633    shlibpath_overrides_runpath=yes
16634    dynamic_linker='Win32 link.exe'
16635    ;;
16636
16637  *)
16638    # Assume MSVC wrapper
16639    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16640    dynamic_linker='Win32 ld.exe'
16641    ;;
16642  esac
16643  # FIXME: first we should search . and the directory the executable is in
16644  shlibpath_var=PATH
16645  ;;
16646
16647darwin* | rhapsody*)
16648  dynamic_linker="$host_os dyld"
16649  version_type=darwin
16650  need_lib_prefix=no
16651  need_version=no
16652  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16653  soname_spec='${libname}${release}${major}$shared_ext'
16654  shlibpath_overrides_runpath=yes
16655  shlibpath_var=DYLD_LIBRARY_PATH
16656  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16657
16658  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16659  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16660  ;;
16661
16662dgux*)
16663  version_type=linux # correct to gnu/linux during the next big refactor
16664  need_lib_prefix=no
16665  need_version=no
16666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16667  soname_spec='${libname}${release}${shared_ext}$major'
16668  shlibpath_var=LD_LIBRARY_PATH
16669  ;;
16670
16671freebsd* | dragonfly*)
16672  # DragonFly does not have aout.  When/if they implement a new
16673  # versioning mechanism, adjust this.
16674  if test -x /usr/bin/objformat; then
16675    objformat=`/usr/bin/objformat`
16676  else
16677    case $host_os in
16678    freebsd[23].*) objformat=aout ;;
16679    *) objformat=elf ;;
16680    esac
16681  fi
16682  version_type=freebsd-$objformat
16683  case $version_type in
16684    freebsd-elf*)
16685      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16686      need_version=no
16687      need_lib_prefix=no
16688      ;;
16689    freebsd-*)
16690      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16691      need_version=yes
16692      ;;
16693  esac
16694  shlibpath_var=LD_LIBRARY_PATH
16695  case $host_os in
16696  freebsd2.*)
16697    shlibpath_overrides_runpath=yes
16698    ;;
16699  freebsd3.[01]* | freebsdelf3.[01]*)
16700    shlibpath_overrides_runpath=yes
16701    hardcode_into_libs=yes
16702    ;;
16703  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16704  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16705    shlibpath_overrides_runpath=no
16706    hardcode_into_libs=yes
16707    ;;
16708  *) # from 4.6 on, and DragonFly
16709    shlibpath_overrides_runpath=yes
16710    hardcode_into_libs=yes
16711    ;;
16712  esac
16713  ;;
16714
16715gnu*)
16716  version_type=linux # correct to gnu/linux during the next big refactor
16717  need_lib_prefix=no
16718  need_version=no
16719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16720  soname_spec='${libname}${release}${shared_ext}$major'
16721  shlibpath_var=LD_LIBRARY_PATH
16722  shlibpath_overrides_runpath=no
16723  hardcode_into_libs=yes
16724  ;;
16725
16726haiku*)
16727  version_type=linux # correct to gnu/linux during the next big refactor
16728  need_lib_prefix=no
16729  need_version=no
16730  dynamic_linker="$host_os runtime_loader"
16731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16732  soname_spec='${libname}${release}${shared_ext}$major'
16733  shlibpath_var=LIBRARY_PATH
16734  shlibpath_overrides_runpath=yes
16735  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16736  hardcode_into_libs=yes
16737  ;;
16738
16739hpux9* | hpux10* | hpux11*)
16740  # Give a soname corresponding to the major version so that dld.sl refuses to
16741  # link against other versions.
16742  version_type=sunos
16743  need_lib_prefix=no
16744  need_version=no
16745  case $host_cpu in
16746  ia64*)
16747    shrext_cmds='.so'
16748    hardcode_into_libs=yes
16749    dynamic_linker="$host_os dld.so"
16750    shlibpath_var=LD_LIBRARY_PATH
16751    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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    if test "X$HPUX_IA64_MODE" = X32; then
16755      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16756    else
16757      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16758    fi
16759    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16760    ;;
16761  hppa*64*)
16762    shrext_cmds='.sl'
16763    hardcode_into_libs=yes
16764    dynamic_linker="$host_os dld.sl"
16765    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16766    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16767    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768    soname_spec='${libname}${release}${shared_ext}$major'
16769    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16770    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16771    ;;
16772  *)
16773    shrext_cmds='.sl'
16774    dynamic_linker="$host_os dld.sl"
16775    shlibpath_var=SHLIB_PATH
16776    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16777    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778    soname_spec='${libname}${release}${shared_ext}$major'
16779    ;;
16780  esac
16781  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16782  postinstall_cmds='chmod 555 $lib'
16783  # or fails outright, so override atomically:
16784  install_override_mode=555
16785  ;;
16786
16787interix[3-9]*)
16788  version_type=linux # correct to gnu/linux during the next big refactor
16789  need_lib_prefix=no
16790  need_version=no
16791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16792  soname_spec='${libname}${release}${shared_ext}$major'
16793  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16794  shlibpath_var=LD_LIBRARY_PATH
16795  shlibpath_overrides_runpath=no
16796  hardcode_into_libs=yes
16797  ;;
16798
16799irix5* | irix6* | nonstopux*)
16800  case $host_os in
16801    nonstopux*) version_type=nonstopux ;;
16802    *)
16803	if test "$lt_cv_prog_gnu_ld" = yes; then
16804		version_type=linux # correct to gnu/linux during the next big refactor
16805	else
16806		version_type=irix
16807	fi ;;
16808  esac
16809  need_lib_prefix=no
16810  need_version=no
16811  soname_spec='${libname}${release}${shared_ext}$major'
16812  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16813  case $host_os in
16814  irix5* | nonstopux*)
16815    libsuff= shlibsuff=
16816    ;;
16817  *)
16818    case $LD in # libtool.m4 will add one of these switches to LD
16819    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16820      libsuff= shlibsuff= libmagic=32-bit;;
16821    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16822      libsuff=32 shlibsuff=N32 libmagic=N32;;
16823    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16824      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16825    *) libsuff= shlibsuff= libmagic=never-match;;
16826    esac
16827    ;;
16828  esac
16829  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16830  shlibpath_overrides_runpath=no
16831  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16832  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16833  hardcode_into_libs=yes
16834  ;;
16835
16836# No shared lib support for Linux oldld, aout, or coff.
16837linux*oldld* | linux*aout* | linux*coff*)
16838  dynamic_linker=no
16839  ;;
16840
16841# This must be glibc/ELF.
16842linux* | k*bsd*-gnu | kopensolaris*-gnu)
16843  version_type=linux # correct to gnu/linux during the next big refactor
16844  need_lib_prefix=no
16845  need_version=no
16846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847  soname_spec='${libname}${release}${shared_ext}$major'
16848  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16849  shlibpath_var=LD_LIBRARY_PATH
16850  shlibpath_overrides_runpath=no
16851
16852  # Some binutils ld are patched to set DT_RUNPATH
16853  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16854  $as_echo_n "(cached) " >&6
16855else
16856  lt_cv_shlibpath_overrides_runpath=no
16857    save_LDFLAGS=$LDFLAGS
16858    save_libdir=$libdir
16859    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16860	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16861    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862/* end confdefs.h.  */
16863
16864int
16865main ()
16866{
16867
16868  ;
16869  return 0;
16870}
16871_ACEOF
16872if ac_fn_c_try_link "$LINENO"; then :
16873  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16874  lt_cv_shlibpath_overrides_runpath=yes
16875fi
16876fi
16877rm -f core conftest.err conftest.$ac_objext \
16878    conftest$ac_exeext conftest.$ac_ext
16879    LDFLAGS=$save_LDFLAGS
16880    libdir=$save_libdir
16881
16882fi
16883
16884  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16885
16886  # This implies no fast_install, which is unacceptable.
16887  # Some rework will be needed to allow for fast_install
16888  # before this can be enabled.
16889  hardcode_into_libs=yes
16890
16891  # Append ld.so.conf contents to the search path
16892  if test -f /etc/ld.so.conf; then
16893    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' ' '`
16894    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16895  fi
16896
16897  # We used to test for /lib/ld.so.1 and disable shared libraries on
16898  # powerpc, because MkLinux only supported shared libraries with the
16899  # GNU dynamic linker.  Since this was broken with cross compilers,
16900  # most powerpc-linux boxes support dynamic linking these days and
16901  # people can always --disable-shared, the test was removed, and we
16902  # assume the GNU/Linux dynamic linker is in use.
16903  dynamic_linker='GNU/Linux ld.so'
16904  ;;
16905
16906netbsdelf*-gnu)
16907  version_type=linux
16908  need_lib_prefix=no
16909  need_version=no
16910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16911  soname_spec='${libname}${release}${shared_ext}$major'
16912  shlibpath_var=LD_LIBRARY_PATH
16913  shlibpath_overrides_runpath=no
16914  hardcode_into_libs=yes
16915  dynamic_linker='NetBSD ld.elf_so'
16916  ;;
16917
16918netbsd*)
16919  version_type=sunos
16920  need_lib_prefix=no
16921  need_version=no
16922  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16923    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16924    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16925    dynamic_linker='NetBSD (a.out) ld.so'
16926  else
16927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928    soname_spec='${libname}${release}${shared_ext}$major'
16929    dynamic_linker='NetBSD ld.elf_so'
16930  fi
16931  shlibpath_var=LD_LIBRARY_PATH
16932  shlibpath_overrides_runpath=yes
16933  hardcode_into_libs=yes
16934  ;;
16935
16936newsos6)
16937  version_type=linux # correct to gnu/linux during the next big refactor
16938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939  shlibpath_var=LD_LIBRARY_PATH
16940  shlibpath_overrides_runpath=yes
16941  ;;
16942
16943*nto* | *qnx*)
16944  version_type=qnx
16945  need_lib_prefix=no
16946  need_version=no
16947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948  soname_spec='${libname}${release}${shared_ext}$major'
16949  shlibpath_var=LD_LIBRARY_PATH
16950  shlibpath_overrides_runpath=no
16951  hardcode_into_libs=yes
16952  dynamic_linker='ldqnx.so'
16953  ;;
16954
16955openbsd*)
16956  version_type=sunos
16957  sys_lib_dlsearch_path_spec="/usr/lib"
16958  need_lib_prefix=no
16959  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16960  case $host_os in
16961    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16962    *)				need_version=no  ;;
16963  esac
16964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16965  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16966  shlibpath_var=LD_LIBRARY_PATH
16967  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16968    case $host_os in
16969      openbsd2.[89] | openbsd2.[89].*)
16970	shlibpath_overrides_runpath=no
16971	;;
16972      *)
16973	shlibpath_overrides_runpath=yes
16974	;;
16975      esac
16976  else
16977    shlibpath_overrides_runpath=yes
16978  fi
16979  ;;
16980
16981os2*)
16982  libname_spec='$name'
16983  shrext_cmds=".dll"
16984  need_lib_prefix=no
16985  library_names_spec='$libname${shared_ext} $libname.a'
16986  dynamic_linker='OS/2 ld.exe'
16987  shlibpath_var=LIBPATH
16988  ;;
16989
16990osf3* | osf4* | osf5*)
16991  version_type=osf
16992  need_lib_prefix=no
16993  need_version=no
16994  soname_spec='${libname}${release}${shared_ext}$major'
16995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996  shlibpath_var=LD_LIBRARY_PATH
16997  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16998  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16999  ;;
17000
17001rdos*)
17002  dynamic_linker=no
17003  ;;
17004
17005solaris*)
17006  version_type=linux # correct to gnu/linux during the next big refactor
17007  need_lib_prefix=no
17008  need_version=no
17009  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010  soname_spec='${libname}${release}${shared_ext}$major'
17011  shlibpath_var=LD_LIBRARY_PATH
17012  shlibpath_overrides_runpath=yes
17013  hardcode_into_libs=yes
17014  # ldd complains unless libraries are executable
17015  postinstall_cmds='chmod +x $lib'
17016  ;;
17017
17018sunos4*)
17019  version_type=sunos
17020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17022  shlibpath_var=LD_LIBRARY_PATH
17023  shlibpath_overrides_runpath=yes
17024  if test "$with_gnu_ld" = yes; then
17025    need_lib_prefix=no
17026  fi
17027  need_version=yes
17028  ;;
17029
17030sysv4 | sysv4.3*)
17031  version_type=linux # correct to gnu/linux during the next big refactor
17032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033  soname_spec='${libname}${release}${shared_ext}$major'
17034  shlibpath_var=LD_LIBRARY_PATH
17035  case $host_vendor in
17036    sni)
17037      shlibpath_overrides_runpath=no
17038      need_lib_prefix=no
17039      runpath_var=LD_RUN_PATH
17040      ;;
17041    siemens)
17042      need_lib_prefix=no
17043      ;;
17044    motorola)
17045      need_lib_prefix=no
17046      need_version=no
17047      shlibpath_overrides_runpath=no
17048      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17049      ;;
17050  esac
17051  ;;
17052
17053sysv4*MP*)
17054  if test -d /usr/nec ;then
17055    version_type=linux # correct to gnu/linux during the next big refactor
17056    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17057    soname_spec='$libname${shared_ext}.$major'
17058    shlibpath_var=LD_LIBRARY_PATH
17059  fi
17060  ;;
17061
17062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17063  version_type=freebsd-elf
17064  need_lib_prefix=no
17065  need_version=no
17066  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17067  soname_spec='${libname}${release}${shared_ext}$major'
17068  shlibpath_var=LD_LIBRARY_PATH
17069  shlibpath_overrides_runpath=yes
17070  hardcode_into_libs=yes
17071  if test "$with_gnu_ld" = yes; then
17072    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17073  else
17074    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17075    case $host_os in
17076      sco3.2v5*)
17077        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17078	;;
17079    esac
17080  fi
17081  sys_lib_dlsearch_path_spec='/usr/lib'
17082  ;;
17083
17084tpf*)
17085  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17086  version_type=linux # correct to gnu/linux during the next big refactor
17087  need_lib_prefix=no
17088  need_version=no
17089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090  shlibpath_var=LD_LIBRARY_PATH
17091  shlibpath_overrides_runpath=no
17092  hardcode_into_libs=yes
17093  ;;
17094
17095uts4*)
17096  version_type=linux # correct to gnu/linux during the next big refactor
17097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098  soname_spec='${libname}${release}${shared_ext}$major'
17099  shlibpath_var=LD_LIBRARY_PATH
17100  ;;
17101
17102*)
17103  dynamic_linker=no
17104  ;;
17105esac
17106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17107$as_echo "$dynamic_linker" >&6; }
17108test "$dynamic_linker" = no && can_build_shared=no
17109
17110variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17111if test "$GCC" = yes; then
17112  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17113fi
17114
17115if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17116  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17117fi
17118if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17119  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17120fi
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17214$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17215hardcode_action=
17216if test -n "$hardcode_libdir_flag_spec" ||
17217   test -n "$runpath_var" ||
17218   test "X$hardcode_automatic" = "Xyes" ; then
17219
17220  # We can hardcode non-existent directories.
17221  if test "$hardcode_direct" != no &&
17222     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17223     # have to relink, otherwise we might link with an installed library
17224     # when we should be linking with a yet-to-be-installed one
17225     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17226     test "$hardcode_minus_L" != no; then
17227    # Linking always hardcodes the temporary library directory.
17228    hardcode_action=relink
17229  else
17230    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17231    hardcode_action=immediate
17232  fi
17233else
17234  # We cannot hardcode anything, or else we can only hardcode existing
17235  # directories.
17236  hardcode_action=unsupported
17237fi
17238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17239$as_echo "$hardcode_action" >&6; }
17240
17241if test "$hardcode_action" = relink ||
17242   test "$inherit_rpath" = yes; then
17243  # Fast installation is not supported
17244  enable_fast_install=no
17245elif test "$shlibpath_overrides_runpath" = yes ||
17246     test "$enable_shared" = no; then
17247  # Fast installation is not necessary
17248  enable_fast_install=needless
17249fi
17250
17251
17252
17253
17254
17255
17256  if test "x$enable_dlopen" != xyes; then
17257  enable_dlopen=unknown
17258  enable_dlopen_self=unknown
17259  enable_dlopen_self_static=unknown
17260else
17261  lt_cv_dlopen=no
17262  lt_cv_dlopen_libs=
17263
17264  case $host_os in
17265  beos*)
17266    lt_cv_dlopen="load_add_on"
17267    lt_cv_dlopen_libs=
17268    lt_cv_dlopen_self=yes
17269    ;;
17270
17271  mingw* | pw32* | cegcc*)
17272    lt_cv_dlopen="LoadLibrary"
17273    lt_cv_dlopen_libs=
17274    ;;
17275
17276  cygwin*)
17277    lt_cv_dlopen="dlopen"
17278    lt_cv_dlopen_libs=
17279    ;;
17280
17281  darwin*)
17282  # if libdl is installed we need to link against it
17283    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17284$as_echo_n "checking for dlopen in -ldl... " >&6; }
17285if ${ac_cv_lib_dl_dlopen+:} false; then :
17286  $as_echo_n "(cached) " >&6
17287else
17288  ac_check_lib_save_LIBS=$LIBS
17289LIBS="-ldl  $LIBS"
17290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291/* end confdefs.h.  */
17292
17293/* Override any GCC internal prototype to avoid an error.
17294   Use char because int might match the return type of a GCC
17295   builtin and then its argument prototype would still apply.  */
17296#ifdef __cplusplus
17297extern "C"
17298#endif
17299char dlopen ();
17300int
17301main ()
17302{
17303return dlopen ();
17304  ;
17305  return 0;
17306}
17307_ACEOF
17308if ac_fn_c_try_link "$LINENO"; then :
17309  ac_cv_lib_dl_dlopen=yes
17310else
17311  ac_cv_lib_dl_dlopen=no
17312fi
17313rm -f core conftest.err conftest.$ac_objext \
17314    conftest$ac_exeext conftest.$ac_ext
17315LIBS=$ac_check_lib_save_LIBS
17316fi
17317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17318$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17319if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17320  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17321else
17322
17323    lt_cv_dlopen="dyld"
17324    lt_cv_dlopen_libs=
17325    lt_cv_dlopen_self=yes
17326
17327fi
17328
17329    ;;
17330
17331  *)
17332    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17333if test "x$ac_cv_func_shl_load" = xyes; then :
17334  lt_cv_dlopen="shl_load"
17335else
17336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17337$as_echo_n "checking for shl_load in -ldld... " >&6; }
17338if ${ac_cv_lib_dld_shl_load+:} false; then :
17339  $as_echo_n "(cached) " >&6
17340else
17341  ac_check_lib_save_LIBS=$LIBS
17342LIBS="-ldld  $LIBS"
17343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344/* end confdefs.h.  */
17345
17346/* Override any GCC internal prototype to avoid an error.
17347   Use char because int might match the return type of a GCC
17348   builtin and then its argument prototype would still apply.  */
17349#ifdef __cplusplus
17350extern "C"
17351#endif
17352char shl_load ();
17353int
17354main ()
17355{
17356return shl_load ();
17357  ;
17358  return 0;
17359}
17360_ACEOF
17361if ac_fn_c_try_link "$LINENO"; then :
17362  ac_cv_lib_dld_shl_load=yes
17363else
17364  ac_cv_lib_dld_shl_load=no
17365fi
17366rm -f core conftest.err conftest.$ac_objext \
17367    conftest$ac_exeext conftest.$ac_ext
17368LIBS=$ac_check_lib_save_LIBS
17369fi
17370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17371$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17372if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17373  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17374else
17375  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17376if test "x$ac_cv_func_dlopen" = xyes; then :
17377  lt_cv_dlopen="dlopen"
17378else
17379  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17380$as_echo_n "checking for dlopen in -ldl... " >&6; }
17381if ${ac_cv_lib_dl_dlopen+:} false; then :
17382  $as_echo_n "(cached) " >&6
17383else
17384  ac_check_lib_save_LIBS=$LIBS
17385LIBS="-ldl  $LIBS"
17386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387/* end confdefs.h.  */
17388
17389/* Override any GCC internal prototype to avoid an error.
17390   Use char because int might match the return type of a GCC
17391   builtin and then its argument prototype would still apply.  */
17392#ifdef __cplusplus
17393extern "C"
17394#endif
17395char dlopen ();
17396int
17397main ()
17398{
17399return dlopen ();
17400  ;
17401  return 0;
17402}
17403_ACEOF
17404if ac_fn_c_try_link "$LINENO"; then :
17405  ac_cv_lib_dl_dlopen=yes
17406else
17407  ac_cv_lib_dl_dlopen=no
17408fi
17409rm -f core conftest.err conftest.$ac_objext \
17410    conftest$ac_exeext conftest.$ac_ext
17411LIBS=$ac_check_lib_save_LIBS
17412fi
17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17414$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17415if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17416  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17417else
17418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17419$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17420if ${ac_cv_lib_svld_dlopen+:} false; then :
17421  $as_echo_n "(cached) " >&6
17422else
17423  ac_check_lib_save_LIBS=$LIBS
17424LIBS="-lsvld  $LIBS"
17425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426/* end confdefs.h.  */
17427
17428/* Override any GCC internal prototype to avoid an error.
17429   Use char because int might match the return type of a GCC
17430   builtin and then its argument prototype would still apply.  */
17431#ifdef __cplusplus
17432extern "C"
17433#endif
17434char dlopen ();
17435int
17436main ()
17437{
17438return dlopen ();
17439  ;
17440  return 0;
17441}
17442_ACEOF
17443if ac_fn_c_try_link "$LINENO"; then :
17444  ac_cv_lib_svld_dlopen=yes
17445else
17446  ac_cv_lib_svld_dlopen=no
17447fi
17448rm -f core conftest.err conftest.$ac_objext \
17449    conftest$ac_exeext conftest.$ac_ext
17450LIBS=$ac_check_lib_save_LIBS
17451fi
17452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17453$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17454if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17455  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17456else
17457  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17458$as_echo_n "checking for dld_link in -ldld... " >&6; }
17459if ${ac_cv_lib_dld_dld_link+:} false; then :
17460  $as_echo_n "(cached) " >&6
17461else
17462  ac_check_lib_save_LIBS=$LIBS
17463LIBS="-ldld  $LIBS"
17464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465/* end confdefs.h.  */
17466
17467/* Override any GCC internal prototype to avoid an error.
17468   Use char because int might match the return type of a GCC
17469   builtin and then its argument prototype would still apply.  */
17470#ifdef __cplusplus
17471extern "C"
17472#endif
17473char dld_link ();
17474int
17475main ()
17476{
17477return dld_link ();
17478  ;
17479  return 0;
17480}
17481_ACEOF
17482if ac_fn_c_try_link "$LINENO"; then :
17483  ac_cv_lib_dld_dld_link=yes
17484else
17485  ac_cv_lib_dld_dld_link=no
17486fi
17487rm -f core conftest.err conftest.$ac_objext \
17488    conftest$ac_exeext conftest.$ac_ext
17489LIBS=$ac_check_lib_save_LIBS
17490fi
17491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17492$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17493if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17494  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17495fi
17496
17497
17498fi
17499
17500
17501fi
17502
17503
17504fi
17505
17506
17507fi
17508
17509
17510fi
17511
17512    ;;
17513  esac
17514
17515  if test "x$lt_cv_dlopen" != xno; then
17516    enable_dlopen=yes
17517  else
17518    enable_dlopen=no
17519  fi
17520
17521  case $lt_cv_dlopen in
17522  dlopen)
17523    save_CPPFLAGS="$CPPFLAGS"
17524    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17525
17526    save_LDFLAGS="$LDFLAGS"
17527    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17528
17529    save_LIBS="$LIBS"
17530    LIBS="$lt_cv_dlopen_libs $LIBS"
17531
17532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17533$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17534if ${lt_cv_dlopen_self+:} false; then :
17535  $as_echo_n "(cached) " >&6
17536else
17537  	  if test "$cross_compiling" = yes; then :
17538  lt_cv_dlopen_self=cross
17539else
17540  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17541  lt_status=$lt_dlunknown
17542  cat > conftest.$ac_ext <<_LT_EOF
17543#line $LINENO "configure"
17544#include "confdefs.h"
17545
17546#if HAVE_DLFCN_H
17547#include <dlfcn.h>
17548#endif
17549
17550#include <stdio.h>
17551
17552#ifdef RTLD_GLOBAL
17553#  define LT_DLGLOBAL		RTLD_GLOBAL
17554#else
17555#  ifdef DL_GLOBAL
17556#    define LT_DLGLOBAL		DL_GLOBAL
17557#  else
17558#    define LT_DLGLOBAL		0
17559#  endif
17560#endif
17561
17562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17563   find out it does not work in some platform. */
17564#ifndef LT_DLLAZY_OR_NOW
17565#  ifdef RTLD_LAZY
17566#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17567#  else
17568#    ifdef DL_LAZY
17569#      define LT_DLLAZY_OR_NOW		DL_LAZY
17570#    else
17571#      ifdef RTLD_NOW
17572#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17573#      else
17574#        ifdef DL_NOW
17575#          define LT_DLLAZY_OR_NOW	DL_NOW
17576#        else
17577#          define LT_DLLAZY_OR_NOW	0
17578#        endif
17579#      endif
17580#    endif
17581#  endif
17582#endif
17583
17584/* When -fvisbility=hidden is used, assume the code has been annotated
17585   correspondingly for the symbols needed.  */
17586#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17587int fnord () __attribute__((visibility("default")));
17588#endif
17589
17590int fnord () { return 42; }
17591int main ()
17592{
17593  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17594  int status = $lt_dlunknown;
17595
17596  if (self)
17597    {
17598      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17599      else
17600        {
17601	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17602          else puts (dlerror ());
17603	}
17604      /* dlclose (self); */
17605    }
17606  else
17607    puts (dlerror ());
17608
17609  return status;
17610}
17611_LT_EOF
17612  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17613  (eval $ac_link) 2>&5
17614  ac_status=$?
17615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17616  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17617    (./conftest; exit; ) >&5 2>/dev/null
17618    lt_status=$?
17619    case x$lt_status in
17620      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17621      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17622      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17623    esac
17624  else :
17625    # compilation failed
17626    lt_cv_dlopen_self=no
17627  fi
17628fi
17629rm -fr conftest*
17630
17631
17632fi
17633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17634$as_echo "$lt_cv_dlopen_self" >&6; }
17635
17636    if test "x$lt_cv_dlopen_self" = xyes; then
17637      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17638      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17639$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17640if ${lt_cv_dlopen_self_static+:} false; then :
17641  $as_echo_n "(cached) " >&6
17642else
17643  	  if test "$cross_compiling" = yes; then :
17644  lt_cv_dlopen_self_static=cross
17645else
17646  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17647  lt_status=$lt_dlunknown
17648  cat > conftest.$ac_ext <<_LT_EOF
17649#line $LINENO "configure"
17650#include "confdefs.h"
17651
17652#if HAVE_DLFCN_H
17653#include <dlfcn.h>
17654#endif
17655
17656#include <stdio.h>
17657
17658#ifdef RTLD_GLOBAL
17659#  define LT_DLGLOBAL		RTLD_GLOBAL
17660#else
17661#  ifdef DL_GLOBAL
17662#    define LT_DLGLOBAL		DL_GLOBAL
17663#  else
17664#    define LT_DLGLOBAL		0
17665#  endif
17666#endif
17667
17668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17669   find out it does not work in some platform. */
17670#ifndef LT_DLLAZY_OR_NOW
17671#  ifdef RTLD_LAZY
17672#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17673#  else
17674#    ifdef DL_LAZY
17675#      define LT_DLLAZY_OR_NOW		DL_LAZY
17676#    else
17677#      ifdef RTLD_NOW
17678#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17679#      else
17680#        ifdef DL_NOW
17681#          define LT_DLLAZY_OR_NOW	DL_NOW
17682#        else
17683#          define LT_DLLAZY_OR_NOW	0
17684#        endif
17685#      endif
17686#    endif
17687#  endif
17688#endif
17689
17690/* When -fvisbility=hidden is used, assume the code has been annotated
17691   correspondingly for the symbols needed.  */
17692#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17693int fnord () __attribute__((visibility("default")));
17694#endif
17695
17696int fnord () { return 42; }
17697int main ()
17698{
17699  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17700  int status = $lt_dlunknown;
17701
17702  if (self)
17703    {
17704      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17705      else
17706        {
17707	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17708          else puts (dlerror ());
17709	}
17710      /* dlclose (self); */
17711    }
17712  else
17713    puts (dlerror ());
17714
17715  return status;
17716}
17717_LT_EOF
17718  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17719  (eval $ac_link) 2>&5
17720  ac_status=$?
17721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17722  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17723    (./conftest; exit; ) >&5 2>/dev/null
17724    lt_status=$?
17725    case x$lt_status in
17726      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17727      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17728      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17729    esac
17730  else :
17731    # compilation failed
17732    lt_cv_dlopen_self_static=no
17733  fi
17734fi
17735rm -fr conftest*
17736
17737
17738fi
17739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17740$as_echo "$lt_cv_dlopen_self_static" >&6; }
17741    fi
17742
17743    CPPFLAGS="$save_CPPFLAGS"
17744    LDFLAGS="$save_LDFLAGS"
17745    LIBS="$save_LIBS"
17746    ;;
17747  esac
17748
17749  case $lt_cv_dlopen_self in
17750  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17751  *) enable_dlopen_self=unknown ;;
17752  esac
17753
17754  case $lt_cv_dlopen_self_static in
17755  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17756  *) enable_dlopen_self_static=unknown ;;
17757  esac
17758fi
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776striplib=
17777old_striplib=
17778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17779$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17780if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17781  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17782  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17784$as_echo "yes" >&6; }
17785else
17786# FIXME - insert some real tests, host_os isn't really good enough
17787  case $host_os in
17788  darwin*)
17789    if test -n "$STRIP" ; then
17790      striplib="$STRIP -x"
17791      old_striplib="$STRIP -S"
17792      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17793$as_echo "yes" >&6; }
17794    else
17795      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17796$as_echo "no" >&6; }
17797    fi
17798    ;;
17799  *)
17800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17801$as_echo "no" >&6; }
17802    ;;
17803  esac
17804fi
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817  # Report which library types will actually be built
17818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17819$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17821$as_echo "$can_build_shared" >&6; }
17822
17823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17824$as_echo_n "checking whether to build shared libraries... " >&6; }
17825  test "$can_build_shared" = "no" && enable_shared=no
17826
17827  # On AIX, shared libraries and static libraries use the same namespace, and
17828  # are all built from PIC.
17829  case $host_os in
17830  aix3*)
17831    test "$enable_shared" = yes && enable_static=no
17832    if test -n "$RANLIB"; then
17833      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17834      postinstall_cmds='$RANLIB $lib'
17835    fi
17836    ;;
17837
17838  aix[4-9]*)
17839    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17840      test "$enable_shared" = yes && enable_static=no
17841    fi
17842    ;;
17843  esac
17844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17845$as_echo "$enable_shared" >&6; }
17846
17847  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17848$as_echo_n "checking whether to build static libraries... " >&6; }
17849  # Make sure either enable_shared or enable_static is yes.
17850  test "$enable_shared" = yes || enable_static=yes
17851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17852$as_echo "$enable_static" >&6; }
17853
17854
17855
17856
17857fi
17858ac_ext=c
17859ac_cpp='$CPP $CPPFLAGS'
17860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862ac_compiler_gnu=$ac_cv_c_compiler_gnu
17863
17864CC="$lt_save_CC"
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880        ac_config_commands="$ac_config_commands libtool"
17881
17882
17883
17884
17885# Only expand once:
17886
17887
17888
17889# Checks for programs.
17890if test "x$CC" != xcc; then
17891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17892$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17893else
17894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17895$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17896fi
17897set dummy $CC; ac_cc=`$as_echo "$2" |
17898		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17899if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17900  $as_echo_n "(cached) " >&6
17901else
17902  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903/* end confdefs.h.  */
17904
17905int
17906main ()
17907{
17908
17909  ;
17910  return 0;
17911}
17912_ACEOF
17913# Make sure it works both with $CC and with simple cc.
17914# We do the test twice because some compilers refuse to overwrite an
17915# existing .o file with -o, though they will create one.
17916ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17917rm -f conftest2.*
17918if { { case "(($ac_try" in
17919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920  *) ac_try_echo=$ac_try;;
17921esac
17922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17923$as_echo "$ac_try_echo"; } >&5
17924  (eval "$ac_try") 2>&5
17925  ac_status=$?
17926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927  test $ac_status = 0; } &&
17928   test -f conftest2.$ac_objext && { { case "(($ac_try" in
17929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930  *) ac_try_echo=$ac_try;;
17931esac
17932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17933$as_echo "$ac_try_echo"; } >&5
17934  (eval "$ac_try") 2>&5
17935  ac_status=$?
17936  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17937  test $ac_status = 0; };
17938then
17939  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17940  if test "x$CC" != xcc; then
17941    # Test first that cc exists at all.
17942    if { ac_try='cc -c conftest.$ac_ext >&5'
17943  { { case "(($ac_try" in
17944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17945  *) ac_try_echo=$ac_try;;
17946esac
17947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17948$as_echo "$ac_try_echo"; } >&5
17949  (eval "$ac_try") 2>&5
17950  ac_status=$?
17951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17952  test $ac_status = 0; }; }; then
17953      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17954      rm -f conftest2.*
17955      if { { case "(($ac_try" in
17956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957  *) ac_try_echo=$ac_try;;
17958esac
17959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17960$as_echo "$ac_try_echo"; } >&5
17961  (eval "$ac_try") 2>&5
17962  ac_status=$?
17963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17964  test $ac_status = 0; } &&
17965	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
17966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967  *) ac_try_echo=$ac_try;;
17968esac
17969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17970$as_echo "$ac_try_echo"; } >&5
17971  (eval "$ac_try") 2>&5
17972  ac_status=$?
17973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17974  test $ac_status = 0; };
17975      then
17976	# cc works too.
17977	:
17978      else
17979	# cc exists but doesn't like -o.
17980	eval ac_cv_prog_cc_${ac_cc}_c_o=no
17981      fi
17982    fi
17983  fi
17984else
17985  eval ac_cv_prog_cc_${ac_cc}_c_o=no
17986fi
17987rm -f core conftest*
17988
17989fi
17990if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17992$as_echo "yes" >&6; }
17993else
17994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17995$as_echo "no" >&6; }
17996
17997$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17998
17999fi
18000
18001# FIXME: we rely on the cache variable name because
18002# there is no other way.
18003set dummy $CC
18004am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18005eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18006if test "$am_t" != yes; then
18007   # Losing compiler, so override with the script.
18008   # FIXME: It is wrong to rewrite CC.
18009   # But if we don't then we get into trouble of one sort or another.
18010   # A longer-term fix would be to have automake use am__CC in this case,
18011   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18012   CC="$am_aux_dir/compile $CC"
18013fi
18014
18015
18016
18017
18018
18019# Define a configure option for an alternate module directory
18020
18021# Check whether --with-xorg-module-dir was given.
18022if test "${with_xorg_module_dir+set}" = set; then :
18023  withval=$with_xorg_module_dir; moduledir="$withval"
18024else
18025  moduledir="$libdir/xorg/modules"
18026fi
18027
18028
18029# Define a configure option to build the vmwarectrl client tool
18030# Check whether --enable-vmwarectrl-client was given.
18031if test "${enable_vmwarectrl_client+set}" = set; then :
18032  enableval=$enable_vmwarectrl_client; VMWARECTRL=$enableval
18033else
18034  VMWARECTRL=no
18035fi
18036
18037 if test "x$VMWARECTRL" = xyes; then
18038  BUILD_VMWARECTRL_TRUE=
18039  BUILD_VMWARECTRL_FALSE='#'
18040else
18041  BUILD_VMWARECTRL_TRUE='#'
18042  BUILD_VMWARECTRL_FALSE=
18043fi
18044
18045
18046# Store the list of server defined optional extensions in REQUIRED_MODULES
18047
18048
18049	SAVE_CFLAGS="$CFLAGS"
18050	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18051	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053
18054#include "xorg-server.h"
18055#if !defined RANDR
18056#error RANDR not defined
18057#endif
18058
18059int
18060main ()
18061{
18062
18063  ;
18064  return 0;
18065}
18066_ACEOF
18067if ac_fn_c_try_compile "$LINENO"; then :
18068  _EXT_CHECK=yes
18069else
18070  _EXT_CHECK=no
18071fi
18072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18073	CFLAGS="$SAVE_CFLAGS"
18074	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18075$as_echo_n "checking if RANDR is defined... " >&6; }
18076	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18077$as_echo "$_EXT_CHECK" >&6; }
18078	if test "$_EXT_CHECK" != no; then
18079		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18080	fi
18081
18082
18083
18084	SAVE_CFLAGS="$CFLAGS"
18085	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18086	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18087/* end confdefs.h.  */
18088
18089#include "xorg-server.h"
18090#if !defined RENDER
18091#error RENDER not defined
18092#endif
18093
18094int
18095main ()
18096{
18097
18098  ;
18099  return 0;
18100}
18101_ACEOF
18102if ac_fn_c_try_compile "$LINENO"; then :
18103  _EXT_CHECK=yes
18104else
18105  _EXT_CHECK=no
18106fi
18107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18108	CFLAGS="$SAVE_CFLAGS"
18109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18110$as_echo_n "checking if RENDER is defined... " >&6; }
18111	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18112$as_echo "$_EXT_CHECK" >&6; }
18113	if test "$_EXT_CHECK" != no; then
18114		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18115	fi
18116
18117
18118
18119	SAVE_CFLAGS="$CFLAGS"
18120	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18121	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18122/* end confdefs.h.  */
18123
18124#include "xorg-server.h"
18125#if !defined DPMSExtension
18126#error DPMSExtension not defined
18127#endif
18128
18129int
18130main ()
18131{
18132
18133  ;
18134  return 0;
18135}
18136_ACEOF
18137if ac_fn_c_try_compile "$LINENO"; then :
18138  _EXT_CHECK=yes
18139else
18140  _EXT_CHECK=no
18141fi
18142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143	CFLAGS="$SAVE_CFLAGS"
18144	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18145$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18146	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18147$as_echo "$_EXT_CHECK" >&6; }
18148	if test "$_EXT_CHECK" != no; then
18149		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18150	fi
18151
18152
18153
18154	SAVE_CFLAGS="$CFLAGS"
18155	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18156	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18157/* end confdefs.h.  */
18158
18159#include "xorg-server.h"
18160#if !defined XINERAMA
18161#error XINERAMA not defined
18162#endif
18163
18164int
18165main ()
18166{
18167
18168  ;
18169  return 0;
18170}
18171_ACEOF
18172if ac_fn_c_try_compile "$LINENO"; then :
18173  _EXT_CHECK=yes
18174else
18175  _EXT_CHECK=no
18176fi
18177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18178	CFLAGS="$SAVE_CFLAGS"
18179	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XINERAMA is defined" >&5
18180$as_echo_n "checking if XINERAMA is defined... " >&6; }
18181	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18182$as_echo "$_EXT_CHECK" >&6; }
18183	if test "$_EXT_CHECK" != no; then
18184		REQUIRED_MODULES="$REQUIRED_MODULES xineramaproto"
18185	fi
18186
18187
18188
18189	SAVE_CFLAGS="$CFLAGS"
18190	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18191	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192/* end confdefs.h.  */
18193
18194#include "xorg-server.h"
18195#if !defined XV
18196#error XV not defined
18197#endif
18198
18199int
18200main ()
18201{
18202
18203  ;
18204  return 0;
18205}
18206_ACEOF
18207if ac_fn_c_try_compile "$LINENO"; then :
18208  _EXT_CHECK=yes
18209else
18210  _EXT_CHECK=no
18211fi
18212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213	CFLAGS="$SAVE_CFLAGS"
18214	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18215$as_echo_n "checking if XV is defined... " >&6; }
18216	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18217$as_echo "$_EXT_CHECK" >&6; }
18218	if test "$_EXT_CHECK" != no; then
18219		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18220	fi
18221
18222
18223# Obtain compiler/linker options for the driver dependencies
18224
18225pkg_failed=no
18226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18227$as_echo_n "checking for XORG... " >&6; }
18228
18229if test -n "$XORG_CFLAGS"; then
18230    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18231 elif test -n "$PKG_CONFIG"; then
18232    if test -n "$PKG_CONFIG" && \
18233    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18234  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
18235  ac_status=$?
18236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18237  test $ac_status = 0; }; then
18238  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18239		      test "x$?" != "x0" && pkg_failed=yes
18240else
18241  pkg_failed=yes
18242fi
18243 else
18244    pkg_failed=untried
18245fi
18246if test -n "$XORG_LIBS"; then
18247    pkg_cv_XORG_LIBS="$XORG_LIBS"
18248 elif test -n "$PKG_CONFIG"; then
18249    if test -n "$PKG_CONFIG" && \
18250    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.1 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18251  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES") 2>&5
18252  ac_status=$?
18253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254  test $ac_status = 0; }; then
18255  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18256		      test "x$?" != "x0" && pkg_failed=yes
18257else
18258  pkg_failed=yes
18259fi
18260 else
18261    pkg_failed=untried
18262fi
18263
18264
18265
18266if test $pkg_failed = yes; then
18267   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18268$as_echo "no" >&6; }
18269
18270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18271        _pkg_short_errors_supported=yes
18272else
18273        _pkg_short_errors_supported=no
18274fi
18275        if test $_pkg_short_errors_supported = yes; then
18276	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18277        else
18278	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18279        fi
18280	# Put the nasty error message in config.log where it belongs
18281	echo "$XORG_PKG_ERRORS" >&5
18282
18283	as_fn_error $? "Package requirements (xorg-server >= 1.0.1 xproto fontsproto $REQUIRED_MODULES) were not met:
18284
18285$XORG_PKG_ERRORS
18286
18287Consider adjusting the PKG_CONFIG_PATH environment variable if you
18288installed software in a non-standard prefix.
18289
18290Alternatively, you may set the environment variables XORG_CFLAGS
18291and XORG_LIBS to avoid the need to call pkg-config.
18292See the pkg-config man page for more details." "$LINENO" 5
18293elif test $pkg_failed = untried; then
18294     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18295$as_echo "no" >&6; }
18296	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18298as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18299is in your PATH or set the PKG_CONFIG environment variable to the full
18300path to pkg-config.
18301
18302Alternatively, you may set the environment variables XORG_CFLAGS
18303and XORG_LIBS to avoid the need to call pkg-config.
18304See the pkg-config man page for more details.
18305
18306To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18307See \`config.log' for more details" "$LINENO" 5; }
18308else
18309	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18310	XORG_LIBS=$pkg_cv_XORG_LIBS
18311        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18312$as_echo "yes" >&6; }
18313
18314fi
18315if test -n "$PKG_CONFIG" && \
18316    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.1.0\""; } >&5
18317  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.1.0") 2>&5
18318  ac_status=$?
18319  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18320  test $ac_status = 0; }; then
18321
18322$as_echo "#define HAVE_XORG_SERVER_1_1_0 1" >>confdefs.h
18323
18324fi
18325
18326if test -n "$PKG_CONFIG" && \
18327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.2.0\""; } >&5
18328  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.2.0") 2>&5
18329  ac_status=$?
18330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18331  test $ac_status = 0; }; then
18332
18333$as_echo "#define HAVE_XORG_SERVER_1_2_0 1" >>confdefs.h
18334
18335fi
18336
18337if test -n "$PKG_CONFIG" && \
18338    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4.99\""; } >&5
18339  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4.99") 2>&5
18340  ac_status=$?
18341  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18342  test $ac_status = 0; }; then
18343
18344$as_echo "#define HAVE_XORG_SERVER_1_5_0 1" >>confdefs.h
18345
18346fi
18347
18348if test -n "$PKG_CONFIG" && \
18349    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.7.0\""; } >&5
18350  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.7.0") 2>&5
18351  ac_status=$?
18352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18353  test $ac_status = 0; }; then
18354
18355$as_echo "#define HAVE_XORG_SERVER_1_7_0 1" >>confdefs.h
18356
18357		 BUILD_VMWGFX=yes
18358else
18359  BUILD_VMWGFX=no
18360fi
18361
18362if test -n "$PKG_CONFIG" && \
18363    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12.0\""; } >&5
18364  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12.0") 2>&5
18365  ac_status=$?
18366  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18367  test $ac_status = 0; }; then
18368
18369$as_echo "#define HAVE_XORG_SERVER_1_12_0 1" >>confdefs.h
18370
18371fi
18372
18373# Obtain compiler/linker options for the vmwarectrl client tool
18374
18375pkg_failed=no
18376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
18377$as_echo_n "checking for X11... " >&6; }
18378
18379if test -n "$X11_CFLAGS"; then
18380    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18381 elif test -n "$PKG_CONFIG"; then
18382    if test -n "$PKG_CONFIG" && \
18383    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
18384  ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
18385  ac_status=$?
18386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18387  test $ac_status = 0; }; then
18388  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11 xext" 2>/dev/null`
18389		      test "x$?" != "x0" && pkg_failed=yes
18390else
18391  pkg_failed=yes
18392fi
18393 else
18394    pkg_failed=untried
18395fi
18396if test -n "$X11_LIBS"; then
18397    pkg_cv_X11_LIBS="$X11_LIBS"
18398 elif test -n "$PKG_CONFIG"; then
18399    if test -n "$PKG_CONFIG" && \
18400    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext\""; } >&5
18401  ($PKG_CONFIG --exists --print-errors "x11 xext") 2>&5
18402  ac_status=$?
18403  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18404  test $ac_status = 0; }; then
18405  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11 xext" 2>/dev/null`
18406		      test "x$?" != "x0" && pkg_failed=yes
18407else
18408  pkg_failed=yes
18409fi
18410 else
18411    pkg_failed=untried
18412fi
18413
18414
18415
18416if test $pkg_failed = yes; then
18417   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18418$as_echo "no" >&6; }
18419
18420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18421        _pkg_short_errors_supported=yes
18422else
18423        _pkg_short_errors_supported=no
18424fi
18425        if test $_pkg_short_errors_supported = yes; then
18426	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext" 2>&1`
18427        else
18428	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext" 2>&1`
18429        fi
18430	# Put the nasty error message in config.log where it belongs
18431	echo "$X11_PKG_ERRORS" >&5
18432
18433	as_fn_error $? "Package requirements (x11 xext) were not met:
18434
18435$X11_PKG_ERRORS
18436
18437Consider adjusting the PKG_CONFIG_PATH environment variable if you
18438installed software in a non-standard prefix.
18439
18440Alternatively, you may set the environment variables X11_CFLAGS
18441and X11_LIBS to avoid the need to call pkg-config.
18442See the pkg-config man page for more details." "$LINENO" 5
18443elif test $pkg_failed = untried; then
18444     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445$as_echo "no" >&6; }
18446	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18448as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18449is in your PATH or set the PKG_CONFIG environment variable to the full
18450path to pkg-config.
18451
18452Alternatively, you may set the environment variables X11_CFLAGS
18453and X11_LIBS to avoid the need to call pkg-config.
18454See the pkg-config man page for more details.
18455
18456To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18457See \`config.log' for more details" "$LINENO" 5; }
18458else
18459	X11_CFLAGS=$pkg_cv_X11_CFLAGS
18460	X11_LIBS=$pkg_cv_X11_LIBS
18461        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18462$as_echo "yes" >&6; }
18463
18464fi
18465
18466# Checks for libraries.
18467
18468save_CFLAGS="$CFLAGS"
18469CFLAGS="$XORG_CFLAGS"
18470ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18471"
18472if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18473  XSERVER_LIBPCIACCESS=yes
18474else
18475  XSERVER_LIBPCIACCESS=no
18476fi
18477
18478CFLAGS="$save_CFLAGS"
18479
18480if test x$XSERVER_LIBPCIACCESS = xyes; then
18481
18482pkg_failed=no
18483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18484$as_echo_n "checking for PCIACCESS... " >&6; }
18485
18486if test -n "$PCIACCESS_CFLAGS"; then
18487    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18488 elif test -n "$PKG_CONFIG"; then
18489    if test -n "$PKG_CONFIG" && \
18490    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18491  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18492  ac_status=$?
18493  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18494  test $ac_status = 0; }; then
18495  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18496		      test "x$?" != "x0" && pkg_failed=yes
18497else
18498  pkg_failed=yes
18499fi
18500 else
18501    pkg_failed=untried
18502fi
18503if test -n "$PCIACCESS_LIBS"; then
18504    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18505 elif test -n "$PKG_CONFIG"; then
18506    if test -n "$PKG_CONFIG" && \
18507    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18508  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18509  ac_status=$?
18510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18511  test $ac_status = 0; }; then
18512  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18513		      test "x$?" != "x0" && pkg_failed=yes
18514else
18515  pkg_failed=yes
18516fi
18517 else
18518    pkg_failed=untried
18519fi
18520
18521
18522
18523if test $pkg_failed = yes; then
18524   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18525$as_echo "no" >&6; }
18526
18527if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18528        _pkg_short_errors_supported=yes
18529else
18530        _pkg_short_errors_supported=no
18531fi
18532        if test $_pkg_short_errors_supported = yes; then
18533	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18534        else
18535	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18536        fi
18537	# Put the nasty error message in config.log where it belongs
18538	echo "$PCIACCESS_PKG_ERRORS" >&5
18539
18540	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18541
18542$PCIACCESS_PKG_ERRORS
18543
18544Consider adjusting the PKG_CONFIG_PATH environment variable if you
18545installed software in a non-standard prefix.
18546
18547Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18548and PCIACCESS_LIBS to avoid the need to call pkg-config.
18549See the pkg-config man page for more details." "$LINENO" 5
18550elif test $pkg_failed = untried; then
18551     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18552$as_echo "no" >&6; }
18553	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18555as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18556is in your PATH or set the PKG_CONFIG environment variable to the full
18557path to pkg-config.
18558
18559Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18560and PCIACCESS_LIBS to avoid the need to call pkg-config.
18561See the pkg-config man page for more details.
18562
18563To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18564See \`config.log' for more details" "$LINENO" 5; }
18565else
18566	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18567	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18568        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18569$as_echo "yes" >&6; }
18570
18571fi
18572fi
18573
18574 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18575  XSERVER_LIBPCIACCESS_TRUE=
18576  XSERVER_LIBPCIACCESS_FALSE='#'
18577else
18578  XSERVER_LIBPCIACCESS_TRUE='#'
18579  XSERVER_LIBPCIACCESS_FALSE=
18580fi
18581
18582
18583
18584
18585if test x$BUILD_VMWGFX = xyes; then
18586
18587pkg_failed=no
18588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
18589$as_echo_n "checking for LIBDRM... " >&6; }
18590
18591if test -n "$LIBDRM_CFLAGS"; then
18592    pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
18593 elif test -n "$PKG_CONFIG"; then
18594    if test -n "$PKG_CONFIG" && \
18595    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
18596  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
18597  ac_status=$?
18598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18599  test $ac_status = 0; }; then
18600  pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
18601		      test "x$?" != "x0" && pkg_failed=yes
18602else
18603  pkg_failed=yes
18604fi
18605 else
18606    pkg_failed=untried
18607fi
18608if test -n "$LIBDRM_LIBS"; then
18609    pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
18610 elif test -n "$PKG_CONFIG"; then
18611    if test -n "$PKG_CONFIG" && \
18612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
18613  ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
18614  ac_status=$?
18615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18616  test $ac_status = 0; }; then
18617  pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
18618		      test "x$?" != "x0" && pkg_failed=yes
18619else
18620  pkg_failed=yes
18621fi
18622 else
18623    pkg_failed=untried
18624fi
18625
18626
18627
18628if test $pkg_failed = yes; then
18629   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18630$as_echo "no" >&6; }
18631
18632if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18633        _pkg_short_errors_supported=yes
18634else
18635        _pkg_short_errors_supported=no
18636fi
18637        if test $_pkg_short_errors_supported = yes; then
18638	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1`
18639        else
18640	        LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1`
18641        fi
18642	# Put the nasty error message in config.log where it belongs
18643	echo "$LIBDRM_PKG_ERRORS" >&5
18644
18645	BUILD_VMWGFX=no
18646elif test $pkg_failed = untried; then
18647     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648$as_echo "no" >&6; }
18649	BUILD_VMWGFX=no
18650else
18651	LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
18652	LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
18653        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18654$as_echo "yes" >&6; }
18655
18656fi
18657fi
18658if test x$BUILD_VMWGFX = xyes; then
18659
18660pkg_failed=no
18661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATRACKER" >&5
18662$as_echo_n "checking for XATRACKER... " >&6; }
18663
18664if test -n "$XATRACKER_CFLAGS"; then
18665    pkg_cv_XATRACKER_CFLAGS="$XATRACKER_CFLAGS"
18666 elif test -n "$PKG_CONFIG"; then
18667    if test -n "$PKG_CONFIG" && \
18668    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5
18669  ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5
18670  ac_status=$?
18671  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18672  test $ac_status = 0; }; then
18673  pkg_cv_XATRACKER_CFLAGS=`$PKG_CONFIG --cflags "xatracker >= 0.4.0" 2>/dev/null`
18674		      test "x$?" != "x0" && pkg_failed=yes
18675else
18676  pkg_failed=yes
18677fi
18678 else
18679    pkg_failed=untried
18680fi
18681if test -n "$XATRACKER_LIBS"; then
18682    pkg_cv_XATRACKER_LIBS="$XATRACKER_LIBS"
18683 elif test -n "$PKG_CONFIG"; then
18684    if test -n "$PKG_CONFIG" && \
18685    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xatracker >= 0.4.0\""; } >&5
18686  ($PKG_CONFIG --exists --print-errors "xatracker >= 0.4.0") 2>&5
18687  ac_status=$?
18688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18689  test $ac_status = 0; }; then
18690  pkg_cv_XATRACKER_LIBS=`$PKG_CONFIG --libs "xatracker >= 0.4.0" 2>/dev/null`
18691		      test "x$?" != "x0" && pkg_failed=yes
18692else
18693  pkg_failed=yes
18694fi
18695 else
18696    pkg_failed=untried
18697fi
18698
18699
18700
18701if test $pkg_failed = yes; then
18702   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703$as_echo "no" >&6; }
18704
18705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18706        _pkg_short_errors_supported=yes
18707else
18708        _pkg_short_errors_supported=no
18709fi
18710        if test $_pkg_short_errors_supported = yes; then
18711	        XATRACKER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1`
18712        else
18713	        XATRACKER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xatracker >= 0.4.0" 2>&1`
18714        fi
18715	# Put the nasty error message in config.log where it belongs
18716	echo "$XATRACKER_PKG_ERRORS" >&5
18717
18718	BUILD_VMWGFX=no
18719elif test $pkg_failed = untried; then
18720     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18721$as_echo "no" >&6; }
18722	BUILD_VMWGFX=no
18723else
18724	XATRACKER_CFLAGS=$pkg_cv_XATRACKER_CFLAGS
18725	XATRACKER_LIBS=$pkg_cv_XATRACKER_LIBS
18726        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18727$as_echo "yes" >&6; }
18728
18729fi
18730fi
18731
18732DRIVER_NAME=vmware
18733
18734
18735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Kernel Mode Setting and 3D" >&5
18736$as_echo_n "checking whether to build Kernel Mode Setting and 3D... " >&6; }
18737if test x$BUILD_VMWGFX = xyes; then
18738	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739$as_echo "yes" >&6; }
18740
18741$as_echo "#define BUILD_VMWGFX 1" >>confdefs.h
18742
18743else
18744	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745$as_echo "no" >&6; }
18746fi
18747
18748 if test "x$BUILD_VMWGFX" = xyes; then
18749  BUILD_VMWGFX_TRUE=
18750  BUILD_VMWGFX_FALSE='#'
18751else
18752  BUILD_VMWGFX_TRUE='#'
18753  BUILD_VMWGFX_FALSE=
18754fi
18755
18756
18757ac_config_files="$ac_config_files Makefile man/Makefile saa/Makefile vmwgfx/Makefile src/Makefile vmwarectrl/Makefile"
18758
18759
18760cat >confcache <<\_ACEOF
18761# This file is a shell script that caches the results of configure
18762# tests run on this system so they can be shared between configure
18763# scripts and configure runs, see configure's option --config-cache.
18764# It is not useful on other systems.  If it contains results you don't
18765# want to keep, you may remove or edit it.
18766#
18767# config.status only pays attention to the cache file if you give it
18768# the --recheck option to rerun configure.
18769#
18770# `ac_cv_env_foo' variables (set or unset) will be overridden when
18771# loading this file, other *unset* `ac_cv_foo' will be assigned the
18772# following values.
18773
18774_ACEOF
18775
18776# The following way of writing the cache mishandles newlines in values,
18777# but we know of no workaround that is simple, portable, and efficient.
18778# So, we kill variables containing newlines.
18779# Ultrix sh set writes to stderr and can't be redirected directly,
18780# and sets the high bit in the cache file unless we assign to the vars.
18781(
18782  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18783    eval ac_val=\$$ac_var
18784    case $ac_val in #(
18785    *${as_nl}*)
18786      case $ac_var in #(
18787      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18788$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18789      esac
18790      case $ac_var in #(
18791      _ | IFS | as_nl) ;; #(
18792      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18793      *) { eval $ac_var=; unset $ac_var;} ;;
18794      esac ;;
18795    esac
18796  done
18797
18798  (set) 2>&1 |
18799    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18800    *${as_nl}ac_space=\ *)
18801      # `set' does not quote correctly, so add quotes: double-quote
18802      # substitution turns \\\\ into \\, and sed turns \\ into \.
18803      sed -n \
18804	"s/'/'\\\\''/g;
18805	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18806      ;; #(
18807    *)
18808      # `set' quotes correctly as required by POSIX, so do not add quotes.
18809      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18810      ;;
18811    esac |
18812    sort
18813) |
18814  sed '
18815     /^ac_cv_env_/b end
18816     t clear
18817     :clear
18818     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18819     t end
18820     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18821     :end' >>confcache
18822if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18823  if test -w "$cache_file"; then
18824    if test "x$cache_file" != "x/dev/null"; then
18825      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18826$as_echo "$as_me: updating cache $cache_file" >&6;}
18827      if test ! -f "$cache_file" || test -h "$cache_file"; then
18828	cat confcache >"$cache_file"
18829      else
18830        case $cache_file in #(
18831        */* | ?:*)
18832	  mv -f confcache "$cache_file"$$ &&
18833	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18834        *)
18835	  mv -f confcache "$cache_file" ;;
18836	esac
18837      fi
18838    fi
18839  else
18840    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18841$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18842  fi
18843fi
18844rm -f confcache
18845
18846test "x$prefix" = xNONE && prefix=$ac_default_prefix
18847# Let make expand exec_prefix.
18848test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18849
18850DEFS=-DHAVE_CONFIG_H
18851
18852ac_libobjs=
18853ac_ltlibobjs=
18854U=
18855for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18856  # 1. Remove the extension, and $U if already installed.
18857  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18858  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18859  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18860  #    will be set to the directory where LIBOBJS objects are built.
18861  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18862  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18863done
18864LIBOBJS=$ac_libobjs
18865
18866LTLIBOBJS=$ac_ltlibobjs
18867
18868
18869if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18870  as_fn_error $? "conditional \"AMDEP\" was never defined.
18871Usually this means the macro was only invoked conditionally." "$LINENO" 5
18872fi
18873if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18874  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18875Usually this means the macro was only invoked conditionally." "$LINENO" 5
18876fi
18877 if test -n "$EXEEXT"; then
18878  am__EXEEXT_TRUE=
18879  am__EXEEXT_FALSE='#'
18880else
18881  am__EXEEXT_TRUE='#'
18882  am__EXEEXT_FALSE=
18883fi
18884
18885if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18886  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18887Usually this means the macro was only invoked conditionally." "$LINENO" 5
18888fi
18889if test -z "${BUILD_VMWARECTRL_TRUE}" && test -z "${BUILD_VMWARECTRL_FALSE}"; then
18890  as_fn_error $? "conditional \"BUILD_VMWARECTRL\" was never defined.
18891Usually this means the macro was only invoked conditionally." "$LINENO" 5
18892fi
18893if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18894  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18895Usually this means the macro was only invoked conditionally." "$LINENO" 5
18896fi
18897if test -z "${BUILD_VMWGFX_TRUE}" && test -z "${BUILD_VMWGFX_FALSE}"; then
18898  as_fn_error $? "conditional \"BUILD_VMWGFX\" was never defined.
18899Usually this means the macro was only invoked conditionally." "$LINENO" 5
18900fi
18901
18902: "${CONFIG_STATUS=./config.status}"
18903ac_write_fail=0
18904ac_clean_files_save=$ac_clean_files
18905ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18907$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18908as_write_fail=0
18909cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18910#! $SHELL
18911# Generated by $as_me.
18912# Run this file to recreate the current configuration.
18913# Compiler output produced by configure, useful for debugging
18914# configure, is in config.log if it exists.
18915
18916debug=false
18917ac_cs_recheck=false
18918ac_cs_silent=false
18919
18920SHELL=\${CONFIG_SHELL-$SHELL}
18921export SHELL
18922_ASEOF
18923cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18924## -------------------- ##
18925## M4sh Initialization. ##
18926## -------------------- ##
18927
18928# Be more Bourne compatible
18929DUALCASE=1; export DUALCASE # for MKS sh
18930if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18931  emulate sh
18932  NULLCMD=:
18933  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18934  # is contrary to our usage.  Disable this feature.
18935  alias -g '${1+"$@"}'='"$@"'
18936  setopt NO_GLOB_SUBST
18937else
18938  case `(set -o) 2>/dev/null` in #(
18939  *posix*) :
18940    set -o posix ;; #(
18941  *) :
18942     ;;
18943esac
18944fi
18945
18946
18947as_nl='
18948'
18949export as_nl
18950# Printing a long string crashes Solaris 7 /usr/bin/printf.
18951as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18952as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18953as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18954# Prefer a ksh shell builtin over an external printf program on Solaris,
18955# but without wasting forks for bash or zsh.
18956if test -z "$BASH_VERSION$ZSH_VERSION" \
18957    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18958  as_echo='print -r --'
18959  as_echo_n='print -rn --'
18960elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18961  as_echo='printf %s\n'
18962  as_echo_n='printf %s'
18963else
18964  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18965    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18966    as_echo_n='/usr/ucb/echo -n'
18967  else
18968    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18969    as_echo_n_body='eval
18970      arg=$1;
18971      case $arg in #(
18972      *"$as_nl"*)
18973	expr "X$arg" : "X\\(.*\\)$as_nl";
18974	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18975      esac;
18976      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18977    '
18978    export as_echo_n_body
18979    as_echo_n='sh -c $as_echo_n_body as_echo'
18980  fi
18981  export as_echo_body
18982  as_echo='sh -c $as_echo_body as_echo'
18983fi
18984
18985# The user is always right.
18986if test "${PATH_SEPARATOR+set}" != set; then
18987  PATH_SEPARATOR=:
18988  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18989    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18990      PATH_SEPARATOR=';'
18991  }
18992fi
18993
18994
18995# IFS
18996# We need space, tab and new line, in precisely that order.  Quoting is
18997# there to prevent editors from complaining about space-tab.
18998# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18999# splitting by setting IFS to empty value.)
19000IFS=" ""	$as_nl"
19001
19002# Find who we are.  Look in the path if we contain no directory separator.
19003as_myself=
19004case $0 in #((
19005  *[\\/]* ) as_myself=$0 ;;
19006  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19007for as_dir in $PATH
19008do
19009  IFS=$as_save_IFS
19010  test -z "$as_dir" && as_dir=.
19011    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19012  done
19013IFS=$as_save_IFS
19014
19015     ;;
19016esac
19017# We did not find ourselves, most probably we were run as `sh COMMAND'
19018# in which case we are not to be found in the path.
19019if test "x$as_myself" = x; then
19020  as_myself=$0
19021fi
19022if test ! -f "$as_myself"; then
19023  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19024  exit 1
19025fi
19026
19027# Unset variables that we do not need and which cause bugs (e.g. in
19028# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19029# suppresses any "Segmentation fault" message there.  '((' could
19030# trigger a bug in pdksh 5.2.14.
19031for as_var in BASH_ENV ENV MAIL MAILPATH
19032do eval test x\${$as_var+set} = xset \
19033  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19034done
19035PS1='$ '
19036PS2='> '
19037PS4='+ '
19038
19039# NLS nuisances.
19040LC_ALL=C
19041export LC_ALL
19042LANGUAGE=C
19043export LANGUAGE
19044
19045# CDPATH.
19046(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19047
19048
19049# as_fn_error STATUS ERROR [LINENO LOG_FD]
19050# ----------------------------------------
19051# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19052# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19053# script with STATUS, using 1 if that was 0.
19054as_fn_error ()
19055{
19056  as_status=$1; test $as_status -eq 0 && as_status=1
19057  if test "$4"; then
19058    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19059    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19060  fi
19061  $as_echo "$as_me: error: $2" >&2
19062  as_fn_exit $as_status
19063} # as_fn_error
19064
19065
19066# as_fn_set_status STATUS
19067# -----------------------
19068# Set $? to STATUS, without forking.
19069as_fn_set_status ()
19070{
19071  return $1
19072} # as_fn_set_status
19073
19074# as_fn_exit STATUS
19075# -----------------
19076# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19077as_fn_exit ()
19078{
19079  set +e
19080  as_fn_set_status $1
19081  exit $1
19082} # as_fn_exit
19083
19084# as_fn_unset VAR
19085# ---------------
19086# Portably unset VAR.
19087as_fn_unset ()
19088{
19089  { eval $1=; unset $1;}
19090}
19091as_unset=as_fn_unset
19092# as_fn_append VAR VALUE
19093# ----------------------
19094# Append the text in VALUE to the end of the definition contained in VAR. Take
19095# advantage of any shell optimizations that allow amortized linear growth over
19096# repeated appends, instead of the typical quadratic growth present in naive
19097# implementations.
19098if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19099  eval 'as_fn_append ()
19100  {
19101    eval $1+=\$2
19102  }'
19103else
19104  as_fn_append ()
19105  {
19106    eval $1=\$$1\$2
19107  }
19108fi # as_fn_append
19109
19110# as_fn_arith ARG...
19111# ------------------
19112# Perform arithmetic evaluation on the ARGs, and store the result in the
19113# global $as_val. Take advantage of shells that can avoid forks. The arguments
19114# must be portable across $(()) and expr.
19115if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19116  eval 'as_fn_arith ()
19117  {
19118    as_val=$(( $* ))
19119  }'
19120else
19121  as_fn_arith ()
19122  {
19123    as_val=`expr "$@" || test $? -eq 1`
19124  }
19125fi # as_fn_arith
19126
19127
19128if expr a : '\(a\)' >/dev/null 2>&1 &&
19129   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19130  as_expr=expr
19131else
19132  as_expr=false
19133fi
19134
19135if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19136  as_basename=basename
19137else
19138  as_basename=false
19139fi
19140
19141if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19142  as_dirname=dirname
19143else
19144  as_dirname=false
19145fi
19146
19147as_me=`$as_basename -- "$0" ||
19148$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19149	 X"$0" : 'X\(//\)$' \| \
19150	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19151$as_echo X/"$0" |
19152    sed '/^.*\/\([^/][^/]*\)\/*$/{
19153	    s//\1/
19154	    q
19155	  }
19156	  /^X\/\(\/\/\)$/{
19157	    s//\1/
19158	    q
19159	  }
19160	  /^X\/\(\/\).*/{
19161	    s//\1/
19162	    q
19163	  }
19164	  s/.*/./; q'`
19165
19166# Avoid depending upon Character Ranges.
19167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19170as_cr_digits='0123456789'
19171as_cr_alnum=$as_cr_Letters$as_cr_digits
19172
19173ECHO_C= ECHO_N= ECHO_T=
19174case `echo -n x` in #(((((
19175-n*)
19176  case `echo 'xy\c'` in
19177  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19178  xy)  ECHO_C='\c';;
19179  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19180       ECHO_T='	';;
19181  esac;;
19182*)
19183  ECHO_N='-n';;
19184esac
19185
19186rm -f conf$$ conf$$.exe conf$$.file
19187if test -d conf$$.dir; then
19188  rm -f conf$$.dir/conf$$.file
19189else
19190  rm -f conf$$.dir
19191  mkdir conf$$.dir 2>/dev/null
19192fi
19193if (echo >conf$$.file) 2>/dev/null; then
19194  if ln -s conf$$.file conf$$ 2>/dev/null; then
19195    as_ln_s='ln -s'
19196    # ... but there are two gotchas:
19197    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19198    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19199    # In both cases, we have to default to `cp -p'.
19200    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19201      as_ln_s='cp -p'
19202  elif ln conf$$.file conf$$ 2>/dev/null; then
19203    as_ln_s=ln
19204  else
19205    as_ln_s='cp -p'
19206  fi
19207else
19208  as_ln_s='cp -p'
19209fi
19210rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19211rmdir conf$$.dir 2>/dev/null
19212
19213
19214# as_fn_mkdir_p
19215# -------------
19216# Create "$as_dir" as a directory, including parents if necessary.
19217as_fn_mkdir_p ()
19218{
19219
19220  case $as_dir in #(
19221  -*) as_dir=./$as_dir;;
19222  esac
19223  test -d "$as_dir" || eval $as_mkdir_p || {
19224    as_dirs=
19225    while :; do
19226      case $as_dir in #(
19227      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19228      *) as_qdir=$as_dir;;
19229      esac
19230      as_dirs="'$as_qdir' $as_dirs"
19231      as_dir=`$as_dirname -- "$as_dir" ||
19232$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19233	 X"$as_dir" : 'X\(//\)[^/]' \| \
19234	 X"$as_dir" : 'X\(//\)$' \| \
19235	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19236$as_echo X"$as_dir" |
19237    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19238	    s//\1/
19239	    q
19240	  }
19241	  /^X\(\/\/\)[^/].*/{
19242	    s//\1/
19243	    q
19244	  }
19245	  /^X\(\/\/\)$/{
19246	    s//\1/
19247	    q
19248	  }
19249	  /^X\(\/\).*/{
19250	    s//\1/
19251	    q
19252	  }
19253	  s/.*/./; q'`
19254      test -d "$as_dir" && break
19255    done
19256    test -z "$as_dirs" || eval "mkdir $as_dirs"
19257  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19258
19259
19260} # as_fn_mkdir_p
19261if mkdir -p . 2>/dev/null; then
19262  as_mkdir_p='mkdir -p "$as_dir"'
19263else
19264  test -d ./-p && rmdir ./-p
19265  as_mkdir_p=false
19266fi
19267
19268if test -x / >/dev/null 2>&1; then
19269  as_test_x='test -x'
19270else
19271  if ls -dL / >/dev/null 2>&1; then
19272    as_ls_L_option=L
19273  else
19274    as_ls_L_option=
19275  fi
19276  as_test_x='
19277    eval sh -c '\''
19278      if test -d "$1"; then
19279	test -d "$1/.";
19280      else
19281	case $1 in #(
19282	-*)set "./$1";;
19283	esac;
19284	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19285	???[sx]*):;;*)false;;esac;fi
19286    '\'' sh
19287  '
19288fi
19289as_executable_p=$as_test_x
19290
19291# Sed expression to map a string onto a valid CPP name.
19292as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19293
19294# Sed expression to map a string onto a valid variable name.
19295as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19296
19297
19298exec 6>&1
19299## ----------------------------------- ##
19300## Main body of $CONFIG_STATUS script. ##
19301## ----------------------------------- ##
19302_ASEOF
19303test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19304
19305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19306# Save the log message, to keep $0 and so on meaningful, and to
19307# report actual input values of CONFIG_FILES etc. instead of their
19308# values after options handling.
19309ac_log="
19310This file was extended by xf86-video-vmware $as_me 13.0.1, which was
19311generated by GNU Autoconf 2.68.  Invocation command line was
19312
19313  CONFIG_FILES    = $CONFIG_FILES
19314  CONFIG_HEADERS  = $CONFIG_HEADERS
19315  CONFIG_LINKS    = $CONFIG_LINKS
19316  CONFIG_COMMANDS = $CONFIG_COMMANDS
19317  $ $0 $@
19318
19319on `(hostname || uname -n) 2>/dev/null | sed 1q`
19320"
19321
19322_ACEOF
19323
19324case $ac_config_files in *"
19325"*) set x $ac_config_files; shift; ac_config_files=$*;;
19326esac
19327
19328case $ac_config_headers in *"
19329"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19330esac
19331
19332
19333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19334# Files that config.status was made for.
19335config_files="$ac_config_files"
19336config_headers="$ac_config_headers"
19337config_commands="$ac_config_commands"
19338
19339_ACEOF
19340
19341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19342ac_cs_usage="\
19343\`$as_me' instantiates files and other configuration actions
19344from templates according to the current configuration.  Unless the files
19345and actions are specified as TAGs, all are instantiated by default.
19346
19347Usage: $0 [OPTION]... [TAG]...
19348
19349  -h, --help       print this help, then exit
19350  -V, --version    print version number and configuration settings, then exit
19351      --config     print configuration, then exit
19352  -q, --quiet, --silent
19353                   do not print progress messages
19354  -d, --debug      don't remove temporary files
19355      --recheck    update $as_me by reconfiguring in the same conditions
19356      --file=FILE[:TEMPLATE]
19357                   instantiate the configuration file FILE
19358      --header=FILE[:TEMPLATE]
19359                   instantiate the configuration header FILE
19360
19361Configuration files:
19362$config_files
19363
19364Configuration headers:
19365$config_headers
19366
19367Configuration commands:
19368$config_commands
19369
19370Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19371
19372_ACEOF
19373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19374ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19375ac_cs_version="\\
19376xf86-video-vmware config.status 13.0.1
19377configured by $0, generated by GNU Autoconf 2.68,
19378  with options \\"\$ac_cs_config\\"
19379
19380Copyright (C) 2010 Free Software Foundation, Inc.
19381This config.status script is free software; the Free Software Foundation
19382gives unlimited permission to copy, distribute and modify it."
19383
19384ac_pwd='$ac_pwd'
19385srcdir='$srcdir'
19386INSTALL='$INSTALL'
19387MKDIR_P='$MKDIR_P'
19388AWK='$AWK'
19389test -n "\$AWK" || AWK=awk
19390_ACEOF
19391
19392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19393# The default lists apply if the user does not specify any file.
19394ac_need_defaults=:
19395while test $# != 0
19396do
19397  case $1 in
19398  --*=?*)
19399    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19400    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19401    ac_shift=:
19402    ;;
19403  --*=)
19404    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19405    ac_optarg=
19406    ac_shift=:
19407    ;;
19408  *)
19409    ac_option=$1
19410    ac_optarg=$2
19411    ac_shift=shift
19412    ;;
19413  esac
19414
19415  case $ac_option in
19416  # Handling of the options.
19417  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19418    ac_cs_recheck=: ;;
19419  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19420    $as_echo "$ac_cs_version"; exit ;;
19421  --config | --confi | --conf | --con | --co | --c )
19422    $as_echo "$ac_cs_config"; exit ;;
19423  --debug | --debu | --deb | --de | --d | -d )
19424    debug=: ;;
19425  --file | --fil | --fi | --f )
19426    $ac_shift
19427    case $ac_optarg in
19428    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19429    '') as_fn_error $? "missing file argument" ;;
19430    esac
19431    as_fn_append CONFIG_FILES " '$ac_optarg'"
19432    ac_need_defaults=false;;
19433  --header | --heade | --head | --hea )
19434    $ac_shift
19435    case $ac_optarg in
19436    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19437    esac
19438    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19439    ac_need_defaults=false;;
19440  --he | --h)
19441    # Conflict between --help and --header
19442    as_fn_error $? "ambiguous option: \`$1'
19443Try \`$0 --help' for more information.";;
19444  --help | --hel | -h )
19445    $as_echo "$ac_cs_usage"; exit ;;
19446  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19447  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19448    ac_cs_silent=: ;;
19449
19450  # This is an error.
19451  -*) as_fn_error $? "unrecognized option: \`$1'
19452Try \`$0 --help' for more information." ;;
19453
19454  *) as_fn_append ac_config_targets " $1"
19455     ac_need_defaults=false ;;
19456
19457  esac
19458  shift
19459done
19460
19461ac_configure_extra_args=
19462
19463if $ac_cs_silent; then
19464  exec 6>/dev/null
19465  ac_configure_extra_args="$ac_configure_extra_args --silent"
19466fi
19467
19468_ACEOF
19469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19470if \$ac_cs_recheck; then
19471  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19472  shift
19473  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19474  CONFIG_SHELL='$SHELL'
19475  export CONFIG_SHELL
19476  exec "\$@"
19477fi
19478
19479_ACEOF
19480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19481exec 5>>config.log
19482{
19483  echo
19484  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19485## Running $as_me. ##
19486_ASBOX
19487  $as_echo "$ac_log"
19488} >&5
19489
19490_ACEOF
19491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19492#
19493# INIT-COMMANDS
19494#
19495AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19496
19497
19498# The HP-UX ksh and POSIX shell print the target directory to stdout
19499# if CDPATH is set.
19500(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19501
19502sed_quote_subst='$sed_quote_subst'
19503double_quote_subst='$double_quote_subst'
19504delay_variable_subst='$delay_variable_subst'
19505enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19506macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19507macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19508enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19509pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19510enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19511SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19512ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19513PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19514host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19515host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19516host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19517build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19518build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19519build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19520SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19521Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19522GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19523EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19524FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19525LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19526NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19527LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19528max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19529ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19530exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19531lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19532lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19533lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19534lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19535lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19536reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19537reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19538OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19539deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19540file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19541file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19542want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19543DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19544sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19545AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19546AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19547archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19548STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19549RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19550old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19551old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19552old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19553lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19554CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19555CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19556compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19557GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19558lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19559lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19560lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19561lt_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"`'
19562nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19563lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19564objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19565MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19566lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19567lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19568lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19569lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19570lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19571need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19572MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19573DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19574NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19575LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19576OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19577OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19578libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19579shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19580extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19581archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19582enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19583export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19584whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19585compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19586old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19587old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19588archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19589archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19590module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19591module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19592with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19593allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19594no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19595hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19596hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19597hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19598hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19599hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19600hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19601hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19602inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19603link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19604always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19605export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19606exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19607include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19608prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19609postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19610file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19611variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19612need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19613need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19614version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19615runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19616shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19617shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19618libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19619library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19620soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19621install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19622postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19623postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19624finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19625finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19626hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19627sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19628sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19629hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19630enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19631enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19632enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19633old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19634striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19635
19636LTCC='$LTCC'
19637LTCFLAGS='$LTCFLAGS'
19638compiler='$compiler_DEFAULT'
19639
19640# A function that is used when there is no print builtin or printf.
19641func_fallback_echo ()
19642{
19643  eval 'cat <<_LTECHO_EOF
19644\$1
19645_LTECHO_EOF'
19646}
19647
19648# Quote evaled strings.
19649for var in SHELL \
19650ECHO \
19651PATH_SEPARATOR \
19652SED \
19653GREP \
19654EGREP \
19655FGREP \
19656LD \
19657NM \
19658LN_S \
19659lt_SP2NL \
19660lt_NL2SP \
19661reload_flag \
19662OBJDUMP \
19663deplibs_check_method \
19664file_magic_cmd \
19665file_magic_glob \
19666want_nocaseglob \
19667DLLTOOL \
19668sharedlib_from_linklib_cmd \
19669AR \
19670AR_FLAGS \
19671archiver_list_spec \
19672STRIP \
19673RANLIB \
19674CC \
19675CFLAGS \
19676compiler \
19677lt_cv_sys_global_symbol_pipe \
19678lt_cv_sys_global_symbol_to_cdecl \
19679lt_cv_sys_global_symbol_to_c_name_address \
19680lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19681nm_file_list_spec \
19682lt_prog_compiler_no_builtin_flag \
19683lt_prog_compiler_pic \
19684lt_prog_compiler_wl \
19685lt_prog_compiler_static \
19686lt_cv_prog_compiler_c_o \
19687need_locks \
19688MANIFEST_TOOL \
19689DSYMUTIL \
19690NMEDIT \
19691LIPO \
19692OTOOL \
19693OTOOL64 \
19694shrext_cmds \
19695export_dynamic_flag_spec \
19696whole_archive_flag_spec \
19697compiler_needs_object \
19698with_gnu_ld \
19699allow_undefined_flag \
19700no_undefined_flag \
19701hardcode_libdir_flag_spec \
19702hardcode_libdir_separator \
19703exclude_expsyms \
19704include_expsyms \
19705file_list_spec \
19706variables_saved_for_relink \
19707libname_spec \
19708library_names_spec \
19709soname_spec \
19710install_override_mode \
19711finish_eval \
19712old_striplib \
19713striplib; do
19714    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19715    *[\\\\\\\`\\"\\\$]*)
19716      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19717      ;;
19718    *)
19719      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19720      ;;
19721    esac
19722done
19723
19724# Double-quote double-evaled strings.
19725for var in reload_cmds \
19726old_postinstall_cmds \
19727old_postuninstall_cmds \
19728old_archive_cmds \
19729extract_expsyms_cmds \
19730old_archive_from_new_cmds \
19731old_archive_from_expsyms_cmds \
19732archive_cmds \
19733archive_expsym_cmds \
19734module_cmds \
19735module_expsym_cmds \
19736export_symbols_cmds \
19737prelink_cmds \
19738postlink_cmds \
19739postinstall_cmds \
19740postuninstall_cmds \
19741finish_cmds \
19742sys_lib_search_path_spec \
19743sys_lib_dlsearch_path_spec; do
19744    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19745    *[\\\\\\\`\\"\\\$]*)
19746      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19747      ;;
19748    *)
19749      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19750      ;;
19751    esac
19752done
19753
19754ac_aux_dir='$ac_aux_dir'
19755xsi_shell='$xsi_shell'
19756lt_shell_append='$lt_shell_append'
19757
19758# See if we are running on zsh, and set the options which allow our
19759# commands through without removal of \ escapes INIT.
19760if test -n "\${ZSH_VERSION+set}" ; then
19761   setopt NO_GLOB_SUBST
19762fi
19763
19764
19765    PACKAGE='$PACKAGE'
19766    VERSION='$VERSION'
19767    TIMESTAMP='$TIMESTAMP'
19768    RM='$RM'
19769    ofile='$ofile'
19770
19771
19772
19773
19774_ACEOF
19775
19776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19777
19778# Handling of arguments.
19779for ac_config_target in $ac_config_targets
19780do
19781  case $ac_config_target in
19782    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19783    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19784    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19785    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19786    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19787    "saa/Makefile") CONFIG_FILES="$CONFIG_FILES saa/Makefile" ;;
19788    "vmwgfx/Makefile") CONFIG_FILES="$CONFIG_FILES vmwgfx/Makefile" ;;
19789    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19790    "vmwarectrl/Makefile") CONFIG_FILES="$CONFIG_FILES vmwarectrl/Makefile" ;;
19791
19792  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19793  esac
19794done
19795
19796
19797# If the user did not use the arguments to specify the items to instantiate,
19798# then the envvar interface is used.  Set only those that are not.
19799# We use the long form for the default assignment because of an extremely
19800# bizarre bug on SunOS 4.1.3.
19801if $ac_need_defaults; then
19802  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19803  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19804  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19805fi
19806
19807# Have a temporary directory for convenience.  Make it in the build tree
19808# simply because there is no reason against having it here, and in addition,
19809# creating and moving files from /tmp can sometimes cause problems.
19810# Hook for its removal unless debugging.
19811# Note that there is a small window in which the directory will not be cleaned:
19812# after its creation but before its name has been assigned to `$tmp'.
19813$debug ||
19814{
19815  tmp= ac_tmp=
19816  trap 'exit_status=$?
19817  : "${ac_tmp:=$tmp}"
19818  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19819' 0
19820  trap 'as_fn_exit 1' 1 2 13 15
19821}
19822# Create a (secure) tmp directory for tmp files.
19823
19824{
19825  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19826  test -d "$tmp"
19827}  ||
19828{
19829  tmp=./conf$$-$RANDOM
19830  (umask 077 && mkdir "$tmp")
19831} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19832ac_tmp=$tmp
19833
19834# Set up the scripts for CONFIG_FILES section.
19835# No need to generate them if there are no CONFIG_FILES.
19836# This happens for instance with `./config.status config.h'.
19837if test -n "$CONFIG_FILES"; then
19838
19839
19840ac_cr=`echo X | tr X '\015'`
19841# On cygwin, bash can eat \r inside `` if the user requested igncr.
19842# But we know of no other shell where ac_cr would be empty at this
19843# point, so we can use a bashism as a fallback.
19844if test "x$ac_cr" = x; then
19845  eval ac_cr=\$\'\\r\'
19846fi
19847ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19848if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19849  ac_cs_awk_cr='\\r'
19850else
19851  ac_cs_awk_cr=$ac_cr
19852fi
19853
19854echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19855_ACEOF
19856
19857
19858{
19859  echo "cat >conf$$subs.awk <<_ACEOF" &&
19860  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19861  echo "_ACEOF"
19862} >conf$$subs.sh ||
19863  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19864ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19865ac_delim='%!_!# '
19866for ac_last_try in false false false false false :; do
19867  . ./conf$$subs.sh ||
19868    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19869
19870  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19871  if test $ac_delim_n = $ac_delim_num; then
19872    break
19873  elif $ac_last_try; then
19874    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19875  else
19876    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19877  fi
19878done
19879rm -f conf$$subs.sh
19880
19881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19882cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19883_ACEOF
19884sed -n '
19885h
19886s/^/S["/; s/!.*/"]=/
19887p
19888g
19889s/^[^!]*!//
19890:repl
19891t repl
19892s/'"$ac_delim"'$//
19893t delim
19894:nl
19895h
19896s/\(.\{148\}\)..*/\1/
19897t more1
19898s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19899p
19900n
19901b repl
19902:more1
19903s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19904p
19905g
19906s/.\{148\}//
19907t nl
19908:delim
19909h
19910s/\(.\{148\}\)..*/\1/
19911t more2
19912s/["\\]/\\&/g; s/^/"/; s/$/"/
19913p
19914b
19915:more2
19916s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19917p
19918g
19919s/.\{148\}//
19920t delim
19921' <conf$$subs.awk | sed '
19922/^[^""]/{
19923  N
19924  s/\n//
19925}
19926' >>$CONFIG_STATUS || ac_write_fail=1
19927rm -f conf$$subs.awk
19928cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19929_ACAWK
19930cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19931  for (key in S) S_is_set[key] = 1
19932  FS = ""
19933
19934}
19935{
19936  line = $ 0
19937  nfields = split(line, field, "@")
19938  substed = 0
19939  len = length(field[1])
19940  for (i = 2; i < nfields; i++) {
19941    key = field[i]
19942    keylen = length(key)
19943    if (S_is_set[key]) {
19944      value = S[key]
19945      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19946      len += length(value) + length(field[++i])
19947      substed = 1
19948    } else
19949      len += 1 + keylen
19950  }
19951
19952  print line
19953}
19954
19955_ACAWK
19956_ACEOF
19957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19958if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19959  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19960else
19961  cat
19962fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19963  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19964_ACEOF
19965
19966# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19967# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19968# trailing colons and then remove the whole line if VPATH becomes empty
19969# (actually we leave an empty line to preserve line numbers).
19970if test "x$srcdir" = x.; then
19971  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19972h
19973s///
19974s/^/:/
19975s/[	 ]*$/:/
19976s/:\$(srcdir):/:/g
19977s/:\${srcdir}:/:/g
19978s/:@srcdir@:/:/g
19979s/^:*//
19980s/:*$//
19981x
19982s/\(=[	 ]*\).*/\1/
19983G
19984s/\n//
19985s/^[^=]*=[	 ]*$//
19986}'
19987fi
19988
19989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19990fi # test -n "$CONFIG_FILES"
19991
19992# Set up the scripts for CONFIG_HEADERS section.
19993# No need to generate them if there are no CONFIG_HEADERS.
19994# This happens for instance with `./config.status Makefile'.
19995if test -n "$CONFIG_HEADERS"; then
19996cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19997BEGIN {
19998_ACEOF
19999
20000# Transform confdefs.h into an awk script `defines.awk', embedded as
20001# here-document in config.status, that substitutes the proper values into
20002# config.h.in to produce config.h.
20003
20004# Create a delimiter string that does not exist in confdefs.h, to ease
20005# handling of long lines.
20006ac_delim='%!_!# '
20007for ac_last_try in false false :; do
20008  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20009  if test -z "$ac_tt"; then
20010    break
20011  elif $ac_last_try; then
20012    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20013  else
20014    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20015  fi
20016done
20017
20018# For the awk script, D is an array of macro values keyed by name,
20019# likewise P contains macro parameters if any.  Preserve backslash
20020# newline sequences.
20021
20022ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20023sed -n '
20024s/.\{148\}/&'"$ac_delim"'/g
20025t rset
20026:rset
20027s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20028t def
20029d
20030:def
20031s/\\$//
20032t bsnl
20033s/["\\]/\\&/g
20034s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20035D["\1"]=" \3"/p
20036s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20037d
20038:bsnl
20039s/["\\]/\\&/g
20040s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20041D["\1"]=" \3\\\\\\n"\\/p
20042t cont
20043s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20044t cont
20045d
20046:cont
20047n
20048s/.\{148\}/&'"$ac_delim"'/g
20049t clear
20050:clear
20051s/\\$//
20052t bsnlc
20053s/["\\]/\\&/g; s/^/"/; s/$/"/p
20054d
20055:bsnlc
20056s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20057b cont
20058' <confdefs.h | sed '
20059s/'"$ac_delim"'/"\\\
20060"/g' >>$CONFIG_STATUS || ac_write_fail=1
20061
20062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20063  for (key in D) D_is_set[key] = 1
20064  FS = ""
20065}
20066/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20067  line = \$ 0
20068  split(line, arg, " ")
20069  if (arg[1] == "#") {
20070    defundef = arg[2]
20071    mac1 = arg[3]
20072  } else {
20073    defundef = substr(arg[1], 2)
20074    mac1 = arg[2]
20075  }
20076  split(mac1, mac2, "(") #)
20077  macro = mac2[1]
20078  prefix = substr(line, 1, index(line, defundef) - 1)
20079  if (D_is_set[macro]) {
20080    # Preserve the white space surrounding the "#".
20081    print prefix "define", macro P[macro] D[macro]
20082    next
20083  } else {
20084    # Replace #undef with comments.  This is necessary, for example,
20085    # in the case of _POSIX_SOURCE, which is predefined and required
20086    # on some systems where configure will not decide to define it.
20087    if (defundef == "undef") {
20088      print "/*", prefix defundef, macro, "*/"
20089      next
20090    }
20091  }
20092}
20093{ print }
20094_ACAWK
20095_ACEOF
20096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20097  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20098fi # test -n "$CONFIG_HEADERS"
20099
20100
20101eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20102shift
20103for ac_tag
20104do
20105  case $ac_tag in
20106  :[FHLC]) ac_mode=$ac_tag; continue;;
20107  esac
20108  case $ac_mode$ac_tag in
20109  :[FHL]*:*);;
20110  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20111  :[FH]-) ac_tag=-:-;;
20112  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20113  esac
20114  ac_save_IFS=$IFS
20115  IFS=:
20116  set x $ac_tag
20117  IFS=$ac_save_IFS
20118  shift
20119  ac_file=$1
20120  shift
20121
20122  case $ac_mode in
20123  :L) ac_source=$1;;
20124  :[FH])
20125    ac_file_inputs=
20126    for ac_f
20127    do
20128      case $ac_f in
20129      -) ac_f="$ac_tmp/stdin";;
20130      *) # Look for the file first in the build tree, then in the source tree
20131	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20132	 # because $ac_f cannot contain `:'.
20133	 test -f "$ac_f" ||
20134	   case $ac_f in
20135	   [\\/$]*) false;;
20136	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20137	   esac ||
20138	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20139      esac
20140      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20141      as_fn_append ac_file_inputs " '$ac_f'"
20142    done
20143
20144    # Let's still pretend it is `configure' which instantiates (i.e., don't
20145    # use $as_me), people would be surprised to read:
20146    #    /* config.h.  Generated by config.status.  */
20147    configure_input='Generated from '`
20148	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20149	`' by configure.'
20150    if test x"$ac_file" != x-; then
20151      configure_input="$ac_file.  $configure_input"
20152      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20153$as_echo "$as_me: creating $ac_file" >&6;}
20154    fi
20155    # Neutralize special characters interpreted by sed in replacement strings.
20156    case $configure_input in #(
20157    *\&* | *\|* | *\\* )
20158       ac_sed_conf_input=`$as_echo "$configure_input" |
20159       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20160    *) ac_sed_conf_input=$configure_input;;
20161    esac
20162
20163    case $ac_tag in
20164    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20165      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20166    esac
20167    ;;
20168  esac
20169
20170  ac_dir=`$as_dirname -- "$ac_file" ||
20171$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20172	 X"$ac_file" : 'X\(//\)[^/]' \| \
20173	 X"$ac_file" : 'X\(//\)$' \| \
20174	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20175$as_echo X"$ac_file" |
20176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20177	    s//\1/
20178	    q
20179	  }
20180	  /^X\(\/\/\)[^/].*/{
20181	    s//\1/
20182	    q
20183	  }
20184	  /^X\(\/\/\)$/{
20185	    s//\1/
20186	    q
20187	  }
20188	  /^X\(\/\).*/{
20189	    s//\1/
20190	    q
20191	  }
20192	  s/.*/./; q'`
20193  as_dir="$ac_dir"; as_fn_mkdir_p
20194  ac_builddir=.
20195
20196case "$ac_dir" in
20197.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20198*)
20199  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20200  # A ".." for each directory in $ac_dir_suffix.
20201  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20202  case $ac_top_builddir_sub in
20203  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20204  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20205  esac ;;
20206esac
20207ac_abs_top_builddir=$ac_pwd
20208ac_abs_builddir=$ac_pwd$ac_dir_suffix
20209# for backward compatibility:
20210ac_top_builddir=$ac_top_build_prefix
20211
20212case $srcdir in
20213  .)  # We are building in place.
20214    ac_srcdir=.
20215    ac_top_srcdir=$ac_top_builddir_sub
20216    ac_abs_top_srcdir=$ac_pwd ;;
20217  [\\/]* | ?:[\\/]* )  # Absolute name.
20218    ac_srcdir=$srcdir$ac_dir_suffix;
20219    ac_top_srcdir=$srcdir
20220    ac_abs_top_srcdir=$srcdir ;;
20221  *) # Relative name.
20222    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20223    ac_top_srcdir=$ac_top_build_prefix$srcdir
20224    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20225esac
20226ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20227
20228
20229  case $ac_mode in
20230  :F)
20231  #
20232  # CONFIG_FILE
20233  #
20234
20235  case $INSTALL in
20236  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20237  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20238  esac
20239  ac_MKDIR_P=$MKDIR_P
20240  case $MKDIR_P in
20241  [\\/$]* | ?:[\\/]* ) ;;
20242  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20243  esac
20244_ACEOF
20245
20246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20247# If the template does not know about datarootdir, expand it.
20248# FIXME: This hack should be removed a few years after 2.60.
20249ac_datarootdir_hack=; ac_datarootdir_seen=
20250ac_sed_dataroot='
20251/datarootdir/ {
20252  p
20253  q
20254}
20255/@datadir@/p
20256/@docdir@/p
20257/@infodir@/p
20258/@localedir@/p
20259/@mandir@/p'
20260case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20261*datarootdir*) ac_datarootdir_seen=yes;;
20262*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20263  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20264$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20265_ACEOF
20266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20267  ac_datarootdir_hack='
20268  s&@datadir@&$datadir&g
20269  s&@docdir@&$docdir&g
20270  s&@infodir@&$infodir&g
20271  s&@localedir@&$localedir&g
20272  s&@mandir@&$mandir&g
20273  s&\\\${datarootdir}&$datarootdir&g' ;;
20274esac
20275_ACEOF
20276
20277# Neutralize VPATH when `$srcdir' = `.'.
20278# Shell code in configure.ac might set extrasub.
20279# FIXME: do we really want to maintain this feature?
20280cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20281ac_sed_extra="$ac_vpsub
20282$extrasub
20283_ACEOF
20284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20285:t
20286/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20287s|@configure_input@|$ac_sed_conf_input|;t t
20288s&@top_builddir@&$ac_top_builddir_sub&;t t
20289s&@top_build_prefix@&$ac_top_build_prefix&;t t
20290s&@srcdir@&$ac_srcdir&;t t
20291s&@abs_srcdir@&$ac_abs_srcdir&;t t
20292s&@top_srcdir@&$ac_top_srcdir&;t t
20293s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20294s&@builddir@&$ac_builddir&;t t
20295s&@abs_builddir@&$ac_abs_builddir&;t t
20296s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20297s&@INSTALL@&$ac_INSTALL&;t t
20298s&@MKDIR_P@&$ac_MKDIR_P&;t t
20299$ac_datarootdir_hack
20300"
20301eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20302  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20303
20304test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20305  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20306  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20307      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20309which seems to be undefined.  Please make sure it is defined" >&5
20310$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20311which seems to be undefined.  Please make sure it is defined" >&2;}
20312
20313  rm -f "$ac_tmp/stdin"
20314  case $ac_file in
20315  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20316  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20317  esac \
20318  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20319 ;;
20320  :H)
20321  #
20322  # CONFIG_HEADER
20323  #
20324  if test x"$ac_file" != x-; then
20325    {
20326      $as_echo "/* $configure_input  */" \
20327      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20328    } >"$ac_tmp/config.h" \
20329      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20330    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20331      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20332$as_echo "$as_me: $ac_file is unchanged" >&6;}
20333    else
20334      rm -f "$ac_file"
20335      mv "$ac_tmp/config.h" "$ac_file" \
20336	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20337    fi
20338  else
20339    $as_echo "/* $configure_input  */" \
20340      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20341      || as_fn_error $? "could not create -" "$LINENO" 5
20342  fi
20343# Compute "$ac_file"'s index in $config_headers.
20344_am_arg="$ac_file"
20345_am_stamp_count=1
20346for _am_header in $config_headers :; do
20347  case $_am_header in
20348    $_am_arg | $_am_arg:* )
20349      break ;;
20350    * )
20351      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20352  esac
20353done
20354echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20355$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20356	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20357	 X"$_am_arg" : 'X\(//\)$' \| \
20358	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20359$as_echo X"$_am_arg" |
20360    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20361	    s//\1/
20362	    q
20363	  }
20364	  /^X\(\/\/\)[^/].*/{
20365	    s//\1/
20366	    q
20367	  }
20368	  /^X\(\/\/\)$/{
20369	    s//\1/
20370	    q
20371	  }
20372	  /^X\(\/\).*/{
20373	    s//\1/
20374	    q
20375	  }
20376	  s/.*/./; q'`/stamp-h$_am_stamp_count
20377 ;;
20378
20379  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20380$as_echo "$as_me: executing $ac_file commands" >&6;}
20381 ;;
20382  esac
20383
20384
20385  case $ac_file$ac_mode in
20386    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20387  # Autoconf 2.62 quotes --file arguments for eval, but not when files
20388  # are listed without --file.  Let's play safe and only enable the eval
20389  # if we detect the quoting.
20390  case $CONFIG_FILES in
20391  *\'*) eval set x "$CONFIG_FILES" ;;
20392  *)   set x $CONFIG_FILES ;;
20393  esac
20394  shift
20395  for mf
20396  do
20397    # Strip MF so we end up with the name of the file.
20398    mf=`echo "$mf" | sed -e 's/:.*$//'`
20399    # Check whether this is an Automake generated Makefile or not.
20400    # We used to match only the files named `Makefile.in', but
20401    # some people rename them; so instead we look at the file content.
20402    # Grep'ing the first line is not enough: some people post-process
20403    # each Makefile.in and add a new line on top of each file to say so.
20404    # Grep'ing the whole file is not good either: AIX grep has a line
20405    # limit of 2048, but all sed's we know have understand at least 4000.
20406    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20407      dirpart=`$as_dirname -- "$mf" ||
20408$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20409	 X"$mf" : 'X\(//\)[^/]' \| \
20410	 X"$mf" : 'X\(//\)$' \| \
20411	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20412$as_echo X"$mf" |
20413    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20414	    s//\1/
20415	    q
20416	  }
20417	  /^X\(\/\/\)[^/].*/{
20418	    s//\1/
20419	    q
20420	  }
20421	  /^X\(\/\/\)$/{
20422	    s//\1/
20423	    q
20424	  }
20425	  /^X\(\/\).*/{
20426	    s//\1/
20427	    q
20428	  }
20429	  s/.*/./; q'`
20430    else
20431      continue
20432    fi
20433    # Extract the definition of DEPDIR, am__include, and am__quote
20434    # from the Makefile without running `make'.
20435    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20436    test -z "$DEPDIR" && continue
20437    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20438    test -z "am__include" && continue
20439    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20440    # When using ansi2knr, U may be empty or an underscore; expand it
20441    U=`sed -n 's/^U = //p' < "$mf"`
20442    # Find all dependency output files, they are included files with
20443    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20444    # simplest approach to changing $(DEPDIR) to its actual value in the
20445    # expansion.
20446    for file in `sed -n "
20447      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20448	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20449      # Make sure the directory exists.
20450      test -f "$dirpart/$file" && continue
20451      fdir=`$as_dirname -- "$file" ||
20452$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20453	 X"$file" : 'X\(//\)[^/]' \| \
20454	 X"$file" : 'X\(//\)$' \| \
20455	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20456$as_echo X"$file" |
20457    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20458	    s//\1/
20459	    q
20460	  }
20461	  /^X\(\/\/\)[^/].*/{
20462	    s//\1/
20463	    q
20464	  }
20465	  /^X\(\/\/\)$/{
20466	    s//\1/
20467	    q
20468	  }
20469	  /^X\(\/\).*/{
20470	    s//\1/
20471	    q
20472	  }
20473	  s/.*/./; q'`
20474      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20475      # echo "creating $dirpart/$file"
20476      echo '# dummy' > "$dirpart/$file"
20477    done
20478  done
20479}
20480 ;;
20481    "libtool":C)
20482
20483    # See if we are running on zsh, and set the options which allow our
20484    # commands through without removal of \ escapes.
20485    if test -n "${ZSH_VERSION+set}" ; then
20486      setopt NO_GLOB_SUBST
20487    fi
20488
20489    cfgfile="${ofile}T"
20490    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20491    $RM "$cfgfile"
20492
20493    cat <<_LT_EOF >> "$cfgfile"
20494#! $SHELL
20495
20496# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20497# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20498# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20499# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20500#
20501#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20502#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20503#                 Foundation, Inc.
20504#   Written by Gordon Matzigkeit, 1996
20505#
20506#   This file is part of GNU Libtool.
20507#
20508# GNU Libtool is free software; you can redistribute it and/or
20509# modify it under the terms of the GNU General Public License as
20510# published by the Free Software Foundation; either version 2 of
20511# the License, or (at your option) any later version.
20512#
20513# As a special exception to the GNU General Public License,
20514# if you distribute this file as part of a program or library that
20515# is built using GNU Libtool, you may include this file under the
20516# same distribution terms that you use for the rest of that program.
20517#
20518# GNU Libtool is distributed in the hope that it will be useful,
20519# but WITHOUT ANY WARRANTY; without even the implied warranty of
20520# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20521# GNU General Public License for more details.
20522#
20523# You should have received a copy of the GNU General Public License
20524# along with GNU Libtool; see the file COPYING.  If not, a copy
20525# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20526# obtained by writing to the Free Software Foundation, Inc.,
20527# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20528
20529
20530# The names of the tagged configurations supported by this script.
20531available_tags=""
20532
20533# ### BEGIN LIBTOOL CONFIG
20534
20535# Whether or not to build static libraries.
20536build_old_libs=$enable_static
20537
20538# Which release of libtool.m4 was used?
20539macro_version=$macro_version
20540macro_revision=$macro_revision
20541
20542# Whether or not to build shared libraries.
20543build_libtool_libs=$enable_shared
20544
20545# What type of objects to build.
20546pic_mode=$pic_mode
20547
20548# Whether or not to optimize for fast installation.
20549fast_install=$enable_fast_install
20550
20551# Shell to use when invoking shell scripts.
20552SHELL=$lt_SHELL
20553
20554# An echo program that protects backslashes.
20555ECHO=$lt_ECHO
20556
20557# The PATH separator for the build system.
20558PATH_SEPARATOR=$lt_PATH_SEPARATOR
20559
20560# The host system.
20561host_alias=$host_alias
20562host=$host
20563host_os=$host_os
20564
20565# The build system.
20566build_alias=$build_alias
20567build=$build
20568build_os=$build_os
20569
20570# A sed program that does not truncate output.
20571SED=$lt_SED
20572
20573# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20574Xsed="\$SED -e 1s/^X//"
20575
20576# A grep program that handles long lines.
20577GREP=$lt_GREP
20578
20579# An ERE matcher.
20580EGREP=$lt_EGREP
20581
20582# A literal string matcher.
20583FGREP=$lt_FGREP
20584
20585# A BSD- or MS-compatible name lister.
20586NM=$lt_NM
20587
20588# Whether we need soft or hard links.
20589LN_S=$lt_LN_S
20590
20591# What is the maximum length of a command?
20592max_cmd_len=$max_cmd_len
20593
20594# Object file suffix (normally "o").
20595objext=$ac_objext
20596
20597# Executable file suffix (normally "").
20598exeext=$exeext
20599
20600# whether the shell understands "unset".
20601lt_unset=$lt_unset
20602
20603# turn spaces into newlines.
20604SP2NL=$lt_lt_SP2NL
20605
20606# turn newlines into spaces.
20607NL2SP=$lt_lt_NL2SP
20608
20609# convert \$build file names to \$host format.
20610to_host_file_cmd=$lt_cv_to_host_file_cmd
20611
20612# convert \$build files to toolchain format.
20613to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20614
20615# An object symbol dumper.
20616OBJDUMP=$lt_OBJDUMP
20617
20618# Method to check whether dependent libraries are shared objects.
20619deplibs_check_method=$lt_deplibs_check_method
20620
20621# Command to use when deplibs_check_method = "file_magic".
20622file_magic_cmd=$lt_file_magic_cmd
20623
20624# How to find potential files when deplibs_check_method = "file_magic".
20625file_magic_glob=$lt_file_magic_glob
20626
20627# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20628want_nocaseglob=$lt_want_nocaseglob
20629
20630# DLL creation program.
20631DLLTOOL=$lt_DLLTOOL
20632
20633# Command to associate shared and link libraries.
20634sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20635
20636# The archiver.
20637AR=$lt_AR
20638
20639# Flags to create an archive.
20640AR_FLAGS=$lt_AR_FLAGS
20641
20642# How to feed a file listing to the archiver.
20643archiver_list_spec=$lt_archiver_list_spec
20644
20645# A symbol stripping program.
20646STRIP=$lt_STRIP
20647
20648# Commands used to install an old-style archive.
20649RANLIB=$lt_RANLIB
20650old_postinstall_cmds=$lt_old_postinstall_cmds
20651old_postuninstall_cmds=$lt_old_postuninstall_cmds
20652
20653# Whether to use a lock for old archive extraction.
20654lock_old_archive_extraction=$lock_old_archive_extraction
20655
20656# A C compiler.
20657LTCC=$lt_CC
20658
20659# LTCC compiler flags.
20660LTCFLAGS=$lt_CFLAGS
20661
20662# Take the output of nm and produce a listing of raw symbols and C names.
20663global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20664
20665# Transform the output of nm in a proper C declaration.
20666global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20667
20668# Transform the output of nm in a C name address pair.
20669global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20670
20671# Transform the output of nm in a C name address pair when lib prefix is needed.
20672global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20673
20674# Specify filename containing input files for \$NM.
20675nm_file_list_spec=$lt_nm_file_list_spec
20676
20677# The root where to search for dependent libraries,and in which our libraries should be installed.
20678lt_sysroot=$lt_sysroot
20679
20680# The name of the directory that contains temporary libtool files.
20681objdir=$objdir
20682
20683# Used to examine libraries when file_magic_cmd begins with "file".
20684MAGIC_CMD=$MAGIC_CMD
20685
20686# Must we lock files when doing compilation?
20687need_locks=$lt_need_locks
20688
20689# Manifest tool.
20690MANIFEST_TOOL=$lt_MANIFEST_TOOL
20691
20692# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20693DSYMUTIL=$lt_DSYMUTIL
20694
20695# Tool to change global to local symbols on Mac OS X.
20696NMEDIT=$lt_NMEDIT
20697
20698# Tool to manipulate fat objects and archives on Mac OS X.
20699LIPO=$lt_LIPO
20700
20701# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20702OTOOL=$lt_OTOOL
20703
20704# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20705OTOOL64=$lt_OTOOL64
20706
20707# Old archive suffix (normally "a").
20708libext=$libext
20709
20710# Shared library suffix (normally ".so").
20711shrext_cmds=$lt_shrext_cmds
20712
20713# The commands to extract the exported symbol list from a shared archive.
20714extract_expsyms_cmds=$lt_extract_expsyms_cmds
20715
20716# Variables whose values should be saved in libtool wrapper scripts and
20717# restored at link time.
20718variables_saved_for_relink=$lt_variables_saved_for_relink
20719
20720# Do we need the "lib" prefix for modules?
20721need_lib_prefix=$need_lib_prefix
20722
20723# Do we need a version for libraries?
20724need_version=$need_version
20725
20726# Library versioning type.
20727version_type=$version_type
20728
20729# Shared library runtime path variable.
20730runpath_var=$runpath_var
20731
20732# Shared library path variable.
20733shlibpath_var=$shlibpath_var
20734
20735# Is shlibpath searched before the hard-coded library search path?
20736shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20737
20738# Format of library name prefix.
20739libname_spec=$lt_libname_spec
20740
20741# List of archive names.  First name is the real one, the rest are links.
20742# The last name is the one that the linker finds with -lNAME
20743library_names_spec=$lt_library_names_spec
20744
20745# The coded name of the library, if different from the real name.
20746soname_spec=$lt_soname_spec
20747
20748# Permission mode override for installation of shared libraries.
20749install_override_mode=$lt_install_override_mode
20750
20751# Command to use after installation of a shared archive.
20752postinstall_cmds=$lt_postinstall_cmds
20753
20754# Command to use after uninstallation of a shared archive.
20755postuninstall_cmds=$lt_postuninstall_cmds
20756
20757# Commands used to finish a libtool library installation in a directory.
20758finish_cmds=$lt_finish_cmds
20759
20760# As "finish_cmds", except a single script fragment to be evaled but
20761# not shown.
20762finish_eval=$lt_finish_eval
20763
20764# Whether we should hardcode library paths into libraries.
20765hardcode_into_libs=$hardcode_into_libs
20766
20767# Compile-time system search path for libraries.
20768sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20769
20770# Run-time system search path for libraries.
20771sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20772
20773# Whether dlopen is supported.
20774dlopen_support=$enable_dlopen
20775
20776# Whether dlopen of programs is supported.
20777dlopen_self=$enable_dlopen_self
20778
20779# Whether dlopen of statically linked programs is supported.
20780dlopen_self_static=$enable_dlopen_self_static
20781
20782# Commands to strip libraries.
20783old_striplib=$lt_old_striplib
20784striplib=$lt_striplib
20785
20786
20787# The linker used to build libraries.
20788LD=$lt_LD
20789
20790# How to create reloadable object files.
20791reload_flag=$lt_reload_flag
20792reload_cmds=$lt_reload_cmds
20793
20794# Commands used to build an old-style archive.
20795old_archive_cmds=$lt_old_archive_cmds
20796
20797# A language specific compiler.
20798CC=$lt_compiler
20799
20800# Is the compiler the GNU compiler?
20801with_gcc=$GCC
20802
20803# Compiler flag to turn off builtin functions.
20804no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20805
20806# Additional compiler flags for building library objects.
20807pic_flag=$lt_lt_prog_compiler_pic
20808
20809# How to pass a linker flag through the compiler.
20810wl=$lt_lt_prog_compiler_wl
20811
20812# Compiler flag to prevent dynamic linking.
20813link_static_flag=$lt_lt_prog_compiler_static
20814
20815# Does compiler simultaneously support -c and -o options?
20816compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20817
20818# Whether or not to add -lc for building shared libraries.
20819build_libtool_need_lc=$archive_cmds_need_lc
20820
20821# Whether or not to disallow shared libs when runtime libs are static.
20822allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20823
20824# Compiler flag to allow reflexive dlopens.
20825export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20826
20827# Compiler flag to generate shared objects directly from archives.
20828whole_archive_flag_spec=$lt_whole_archive_flag_spec
20829
20830# Whether the compiler copes with passing no objects directly.
20831compiler_needs_object=$lt_compiler_needs_object
20832
20833# Create an old-style archive from a shared archive.
20834old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20835
20836# Create a temporary old-style archive to link instead of a shared archive.
20837old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20838
20839# Commands used to build a shared archive.
20840archive_cmds=$lt_archive_cmds
20841archive_expsym_cmds=$lt_archive_expsym_cmds
20842
20843# Commands used to build a loadable module if different from building
20844# a shared archive.
20845module_cmds=$lt_module_cmds
20846module_expsym_cmds=$lt_module_expsym_cmds
20847
20848# Whether we are building with GNU ld or not.
20849with_gnu_ld=$lt_with_gnu_ld
20850
20851# Flag that allows shared libraries with undefined symbols to be built.
20852allow_undefined_flag=$lt_allow_undefined_flag
20853
20854# Flag that enforces no undefined symbols.
20855no_undefined_flag=$lt_no_undefined_flag
20856
20857# Flag to hardcode \$libdir into a binary during linking.
20858# This must work even if \$libdir does not exist
20859hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20860
20861# Whether we need a single "-rpath" flag with a separated argument.
20862hardcode_libdir_separator=$lt_hardcode_libdir_separator
20863
20864# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20865# DIR into the resulting binary.
20866hardcode_direct=$hardcode_direct
20867
20868# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20869# DIR into the resulting binary and the resulting library dependency is
20870# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20871# library is relocated.
20872hardcode_direct_absolute=$hardcode_direct_absolute
20873
20874# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20875# into the resulting binary.
20876hardcode_minus_L=$hardcode_minus_L
20877
20878# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20879# into the resulting binary.
20880hardcode_shlibpath_var=$hardcode_shlibpath_var
20881
20882# Set to "yes" if building a shared library automatically hardcodes DIR
20883# into the library and all subsequent libraries and executables linked
20884# against it.
20885hardcode_automatic=$hardcode_automatic
20886
20887# Set to yes if linker adds runtime paths of dependent libraries
20888# to runtime path list.
20889inherit_rpath=$inherit_rpath
20890
20891# Whether libtool must link a program against all its dependency libraries.
20892link_all_deplibs=$link_all_deplibs
20893
20894# Set to "yes" if exported symbols are required.
20895always_export_symbols=$always_export_symbols
20896
20897# The commands to list exported symbols.
20898export_symbols_cmds=$lt_export_symbols_cmds
20899
20900# Symbols that should not be listed in the preloaded symbols.
20901exclude_expsyms=$lt_exclude_expsyms
20902
20903# Symbols that must always be exported.
20904include_expsyms=$lt_include_expsyms
20905
20906# Commands necessary for linking programs (against libraries) with templates.
20907prelink_cmds=$lt_prelink_cmds
20908
20909# Commands necessary for finishing linking programs.
20910postlink_cmds=$lt_postlink_cmds
20911
20912# Specify filename containing input files.
20913file_list_spec=$lt_file_list_spec
20914
20915# How to hardcode a shared library path into an executable.
20916hardcode_action=$hardcode_action
20917
20918# ### END LIBTOOL CONFIG
20919
20920_LT_EOF
20921
20922  case $host_os in
20923  aix3*)
20924    cat <<\_LT_EOF >> "$cfgfile"
20925# AIX sometimes has problems with the GCC collect2 program.  For some
20926# reason, if we set the COLLECT_NAMES environment variable, the problems
20927# vanish in a puff of smoke.
20928if test "X${COLLECT_NAMES+set}" != Xset; then
20929  COLLECT_NAMES=
20930  export COLLECT_NAMES
20931fi
20932_LT_EOF
20933    ;;
20934  esac
20935
20936
20937ltmain="$ac_aux_dir/ltmain.sh"
20938
20939
20940  # We use sed instead of cat because bash on DJGPP gets confused if
20941  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20942  # text mode, it properly converts lines to CR/LF.  This bash problem
20943  # is reportedly fixed, but why not run on old versions too?
20944  sed '$q' "$ltmain" >> "$cfgfile" \
20945     || (rm -f "$cfgfile"; exit 1)
20946
20947  if test x"$xsi_shell" = xyes; then
20948  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20949func_dirname ()\
20950{\
20951\    case ${1} in\
20952\      */*) func_dirname_result="${1%/*}${2}" ;;\
20953\      *  ) func_dirname_result="${3}" ;;\
20954\    esac\
20955} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20956  && mv -f "$cfgfile.tmp" "$cfgfile" \
20957    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20958test 0 -eq $? || _lt_function_replace_fail=:
20959
20960
20961  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20962func_basename ()\
20963{\
20964\    func_basename_result="${1##*/}"\
20965} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20966  && mv -f "$cfgfile.tmp" "$cfgfile" \
20967    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20968test 0 -eq $? || _lt_function_replace_fail=:
20969
20970
20971  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20972func_dirname_and_basename ()\
20973{\
20974\    case ${1} in\
20975\      */*) func_dirname_result="${1%/*}${2}" ;;\
20976\      *  ) func_dirname_result="${3}" ;;\
20977\    esac\
20978\    func_basename_result="${1##*/}"\
20979} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20980  && mv -f "$cfgfile.tmp" "$cfgfile" \
20981    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20982test 0 -eq $? || _lt_function_replace_fail=:
20983
20984
20985  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20986func_stripname ()\
20987{\
20988\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20989\    # positional parameters, so assign one to ordinary parameter first.\
20990\    func_stripname_result=${3}\
20991\    func_stripname_result=${func_stripname_result#"${1}"}\
20992\    func_stripname_result=${func_stripname_result%"${2}"}\
20993} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20994  && mv -f "$cfgfile.tmp" "$cfgfile" \
20995    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20996test 0 -eq $? || _lt_function_replace_fail=:
20997
20998
20999  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21000func_split_long_opt ()\
21001{\
21002\    func_split_long_opt_name=${1%%=*}\
21003\    func_split_long_opt_arg=${1#*=}\
21004} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21005  && mv -f "$cfgfile.tmp" "$cfgfile" \
21006    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21007test 0 -eq $? || _lt_function_replace_fail=:
21008
21009
21010  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21011func_split_short_opt ()\
21012{\
21013\    func_split_short_opt_arg=${1#??}\
21014\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21015} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21016  && mv -f "$cfgfile.tmp" "$cfgfile" \
21017    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21018test 0 -eq $? || _lt_function_replace_fail=:
21019
21020
21021  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21022func_lo2o ()\
21023{\
21024\    case ${1} in\
21025\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21026\      *)    func_lo2o_result=${1} ;;\
21027\    esac\
21028} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21029  && mv -f "$cfgfile.tmp" "$cfgfile" \
21030    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21031test 0 -eq $? || _lt_function_replace_fail=:
21032
21033
21034  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21035func_xform ()\
21036{\
21037    func_xform_result=${1%.*}.lo\
21038} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21039  && mv -f "$cfgfile.tmp" "$cfgfile" \
21040    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21041test 0 -eq $? || _lt_function_replace_fail=:
21042
21043
21044  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21045func_arith ()\
21046{\
21047    func_arith_result=$(( $* ))\
21048} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21049  && mv -f "$cfgfile.tmp" "$cfgfile" \
21050    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21051test 0 -eq $? || _lt_function_replace_fail=:
21052
21053
21054  sed -e '/^func_len ()$/,/^} # func_len /c\
21055func_len ()\
21056{\
21057    func_len_result=${#1}\
21058} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21059  && mv -f "$cfgfile.tmp" "$cfgfile" \
21060    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21061test 0 -eq $? || _lt_function_replace_fail=:
21062
21063fi
21064
21065if test x"$lt_shell_append" = xyes; then
21066  sed -e '/^func_append ()$/,/^} # func_append /c\
21067func_append ()\
21068{\
21069    eval "${1}+=\\${2}"\
21070} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21071  && mv -f "$cfgfile.tmp" "$cfgfile" \
21072    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21073test 0 -eq $? || _lt_function_replace_fail=:
21074
21075
21076  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21077func_append_quoted ()\
21078{\
21079\    func_quote_for_eval "${2}"\
21080\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21081} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21082  && mv -f "$cfgfile.tmp" "$cfgfile" \
21083    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21084test 0 -eq $? || _lt_function_replace_fail=:
21085
21086
21087  # Save a `func_append' function call where possible by direct use of '+='
21088  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21089    && mv -f "$cfgfile.tmp" "$cfgfile" \
21090      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21091  test 0 -eq $? || _lt_function_replace_fail=:
21092else
21093  # Save a `func_append' function call even when '+=' is not available
21094  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21095    && mv -f "$cfgfile.tmp" "$cfgfile" \
21096      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21097  test 0 -eq $? || _lt_function_replace_fail=:
21098fi
21099
21100if test x"$_lt_function_replace_fail" = x":"; then
21101  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21102$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21103fi
21104
21105
21106   mv -f "$cfgfile" "$ofile" ||
21107    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21108  chmod +x "$ofile"
21109
21110 ;;
21111
21112  esac
21113done # for ac_tag
21114
21115
21116as_fn_exit 0
21117_ACEOF
21118ac_clean_files=$ac_clean_files_save
21119
21120test $ac_write_fail = 0 ||
21121  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21122
21123
21124# configure is writing to config.log, and then calls config.status.
21125# config.status does its own redirection, appending to config.log.
21126# Unfortunately, on DOS this fails, as config.log is still kept open
21127# by configure, so config.status won't be able to write to it; its
21128# output is simply discarded.  So we exec the FD to /dev/null,
21129# effectively closing config.log, so it can be properly (re)opened and
21130# appended to by config.status.  When coming back to configure, we
21131# need to make the FD available again.
21132if test "$no_create" != yes; then
21133  ac_cs_success=:
21134  ac_config_status_args=
21135  test "$silent" = yes &&
21136    ac_config_status_args="$ac_config_status_args --quiet"
21137  exec 5>/dev/null
21138  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21139  exec 5>>config.log
21140  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21141  # would make configure fail if this is the last instruction.
21142  $ac_cs_success || as_fn_exit 1
21143fi
21144if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21145  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21146$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21147fi
21148
21149